bootstrap: fail when bootstrap_post_import_hook fails
[gnulib.git] / ChangeLog
1 2012-01-21  Jim Meyering  <meyering@redhat.com>
2
3         bootstrap: fail when bootstrap_post_import_hook fails
4         Otherwise, it's far too easy to miss diagnostics emitted
5         between gnulib-tool's output and that of running configure.
6         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7
8 2012-01-17  Jim Meyering  <meyering@redhat.com>
9
10         maint: enable sc_trailing_blank
11         * build-aux/pmccabe.css: Remove trailing blanks.
12         * doc/acl-cygwin.txt: Likewise.
13         * doc/gnu-oids.texi: Likewise
14         * cfg.mk: Enable sc_trailing_blank.
15         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
16
17 2012-01-17  Jim Meyering  <meyering@redhat.com>
18
19         maint: enable sc_prohibit_openat_without_use
20         * cfg.mk: Enable sc_prohibit_openat_without_use.
21         Exempt lib/selinux-at.c.
22
23 2012-01-17  Jim Meyering  <meyering@redhat.com>
24
25         maint: enable sc_prohibit_cloexec_without_use
26         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
28
29 2012-01-17  Jim Meyering  <meyering@redhat.com>
30
31         maint: enable sc_prohibit_intprops_without_use
32         * cfg.mk: Enable sc_prohibit_intprops_without_use
33         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
34
35 2012-01-17  Jim Meyering  <meyering@redhat.com>
36
37         maint: enable sc_prohibit_hash_pjw_without_use
38         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40         to match any use of \<hash_pjw\>, i.e., not necessarily with a
41         following " (".
42
43 2012-01-17  Jim Meyering  <meyering@redhat.com>
44
45         maint: enable double-word-prohibiting rule
46         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
47         Exempt three files.
48
49 2012-01-17  Jim Meyering  <meyering@redhat.com>
50
51         maint: remove empty lines at EOF, but excluding modules/*
52         Apply syntax rules at home as well as abroad.  Most changes
53         were induced by running this:
54           make srcdir=. _build-aux=build-aux -f top/maint.mk \
55             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
56             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
57         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
58         Exempt modules/* and two binary files.
59         Also exempt doc/INSTALL*, per request from Bruno Haible.
60         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
61         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
62         * doc/Copyright/request-assign.future: Likewise.
63         * doc/Copyright/request-disclaim.changes: Likewise.
64         * doc/INSTALL: Likewise.
65         * doc/INSTALL.ISO: Likewise.
66         * doc/INSTALL.UTF-8: Likewise.
67         * doc/acl-cygwin.txt: Likewise.
68         * doc/acl-resources.txt: Likewise.
69         * doc/fdl-1.2.texi: Likewise.
70         * doc/fdl-1.3.texi: Likewise.
71         * doc/fdl.texi: Likewise.
72         * lib/argp-pin.c: Likewise.
73         * lib/round.c: Likewise.
74         * lib/unicase/u16-totitle.c: Likewise.
75         * lib/unictype/block_test.c: Likewise.
76         * lib/uninorm/canonical-decomposition.c: Likewise.
77         * m4/README: Likewise.
78         * m4/relocatable-lib.m4: Likewise.
79         * tests/test-isnand-nolibm.c: Likewise.
80         * tests/test-isnand.c: Likewise.
81         * tests/uninorm/NormalizationTest.txt: Likewise.
82
83 2012-01-17  Jim Meyering  <meyering@redhat.com>
84
85         maint: add framework to run syntax-check rules against gnulib sources
86         * cfg.mk: New file, to disable all currently-failing tests.
87         We'll enable them one by one, as they are made to pass.
88         * Makefile (sc_maint): New rule.
89
90 2012-01-21  Bruno Haible  <bruno@clisp.org>
91
92         stdint: Add support for Android.
93         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
94         include the system's <stdint.h>.
95         Reported by Simon Josefsson <simon@josefsson.org>.
96
97 2012-01-19  Jim Meyering  <meyering@redhat.com>
98
99         bootstrap: add bootstrap_post_import_hook
100         Bison does still need something like the gnulib_mk_hook whose
101         invocation I had to remove along with slurp in commit 767ccd40.
102         Technically, we could get along without it, but doing so would
103         have required living with a warning and a mandatory post-bootstrap
104         automake rerun.
105         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
106         (bootstrap_post_import_hook): New function.
107         Invoke it after gnulib-tool --import and before autoreconf.
108
109 2012-01-18  Jim Meyering  <meyering@redhat.com>
110
111         gitlog-to-changelog: don't use "no_"-prefixed variable name
112         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
113         to enable both --cluster and --no-cluster.  Change variable name,
114         s/\$no_cluster/$cluster/, and reverse usage to match.
115
116         gitlog-to-changelog: use "||", not "or" in expressions
117         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
118         expressions.
119
120 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
121
122         gitlog-to-changelog: new option --no-cluster
123         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
124         clustering of adjacent commit messages.
125
126 2012-01-17  Jim Meyering  <meyering@redhat.com>
127
128         maint: spell file systems with two words, not one
129         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
130         two words, not one.
131
132 2012-01-16  Jim Meyering  <meyering@redhat.com>
133
134         bootstrap: add a FIXME comment to ensure we eventually remove the hack
135         * build-aux/bootstrap (gnulib_tool_options): Add comment.
136
137 2012-01-16  Eric Blake  <eblake@redhat.com>
138
139         bootstrap: cater to autoconf 2.59
140         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
141         is not available.
142
143         bootstrap: properly check for libtool
144         * build-aux/bootstrap (libtoolize): Also run libtool when older
145         usage is detected.
146
147 2012-01-15  Bruno Haible  <bruno@clisp.org>
148
149         Improve support for MSVC 9.
150         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
151         clashes on MSVC.
152         * lib/fcntl.in.h: Likewise.
153         * lib/stdlib.in.h: Likewise.
154         * lib/sys_stat.in.h: Likewise.
155
156 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
157
158         gnupload: we hold the master copy of this script now
159         For motivation and more information, see:
160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
161         * build-aux/gnupload: Make it clear in the heading comments that the
162         master copy of this file is maintained by gnulib.  Since we are at
163         it, bump its copyright year and ...
164         ($scriptversion): ... the date in its version.
165         ($usage): Patches and bug reports should be sent to the gnulib list,
166         not the automake one.
167         * config/srclist.txt: Don't try to sync 'gnupload' from automake
168         anymore.
169
170 2012-01-15  Bruno Haible  <bruno@clisp.org>
171
172         Fix module 'random'.
173         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
174         initstate, setstate are declared.
175
176 2012-01-14  Bruno Haible  <bruno@clisp.org>
177
178         Tests for module 'random'.
179         * modules/random-tests: New file.
180         * tests/test-random.c: New file, based on tests/test-random_r.c.
181
182         New module 'random'.
183         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
184         declarations.
185         * lib/random.c: New file, based on glibc/stdlib/random.c.
186         * m4/random.m4: New file.
187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
188         HAVE_RANDOM.
189         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
190         * modules/random: New file.
191         * config/srclist.txt: Add an entry for random.c.
192         * doc/posix-functions/random.texi: Mention the 'random' module.
193         * doc/posix-functions/initstate.texi: Likewise.
194         * doc/posix-functions/setstate.texi: Likewise.
195         * doc/posix-functions/srandom.texi: Likewise.
196
197 2012-01-12  Bruno Haible  <bruno@clisp.org>
198
199         random_r: Use common idioms.
200         * lib/random_r.c: Include <stdlib.h> first.
201
202         random_r: Override incompatible API on AIX, OSF/1.
203         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
204         Override the system function if REPLACE_RANDOM_R is 1.
205         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
206         and OSF/1, set REPLACE_RANDOM_R.
207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
208         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
209         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
210         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
211         * doc/glibc-functions/random_r.texi: Likewise.
212         * doc/glibc-functions/setstate_r.texi: Likewise.
213
214         random_r: Support for MSVC 9.
215         * lib/random_r.c: Include stdint.h, not inttypes.h.
216
217 2012-01-12  Eric Blake  <eblake@redhat.com>
218
219         inet_ntop: guard extra work by IF_LINT
220         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
221         better code generation when not checking for warnings.
222         Suggested by Paul Eggert and Jim Meyering.
223
224         strptime: fix regression on mingw
225         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
226         Fix regression.  Reported by Bruno Haible.
227
228 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
229             Bruno Haible  <bruno@clisp.org>
230
231         copy-file: add error-code-returning variant.
232         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
233         (qcopy_file_preserving): New declaration.
234         * lib/copy-file.c (qcopy_file_preserving): Renamed from
235         copy_file_preserving. Change return type to 'int'. Don't emit an error
236         message here.
237         (copy_file_preserving): New function.
238         * tests/test-copy-file.c: Include <stdlib.h>.
239         (main): Test qcopy_file_preserving if the environment variable
240         NO_STDERR_OUTPUT is set.
241         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
242         with NO_STDERR_OUTPUT
243         * tests/test-copy-file-2.sh: Likewise.
244
245 2012-01-10  Bruno Haible  <bruno@clisp.org>
246
247         copy-file: Use 'quote' module consistently.
248         * lib/copy-file.c (copy_file_preserving): Use quote().
249
250         copy-file: Refactor.
251         * lib/copy-file.c: Include quote.h.
252         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
253         message here.
254         * modules/copy-file (Depends-on): Add quote.
255
256         acl: Export qcopy_acl.
257         * lib/acl.h (qcopy_acl): New declaration.
258         * lib/copy-acl.c (qcopy_acl): Make non-static.
259
260         acl: Rename a local variable.
261         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
262
263         acl: Align return values of copy_acl and qcopy_acl.
264         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
265         maybe < -1.
266
267 2012-01-11  Eric Blake  <eblake@redhat.com>
268
269         strptime: silence gcc warnings
270         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
271         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
272         Reported by Daniel P. Berrange.
273
274         inet_ntop: silence gcc warning
275         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
276         Reported by Daniel P. Berrange.
277
278 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
279
280         getloadavg test: skip the test on GNU/Linux without /proc mounted
281         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
282         file.  When /proc is not mounted, it always fails with ENOENT.
283         * tests/test-getloadavg.c (main): Treat ENOENT return code from
284         getloadavg(3) the same way as ENOSYS and ENOTSUP.
285
286 2012-01-10  Bruno Haible  <bruno@clisp.org>
287
288         regex: Avoid link error on MSVC 9.
289         * modules/regex (Depends-on): Add wctype.
290
291 2012-01-10  Bruno Haible  <bruno@clisp.org>
292
293         doc: Mention --with-tests option.
294         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
295         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
296         --with-tests.
297         Reported by Reuben Thomas.
298
299 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
300
301         users.txt: order package names lexicographically.
302         * users.txt: Order package names lexicographically.
303
304 2012-01-10  Jim Meyering  <meyering@redhat.com>
305
306         maint.mk: fix description in comment
307         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
308
309         ignore-value: remove deprecated ignore_ptr function
310         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
311         * NEWS: Note this.
312
313 2012-01-09  Jim Meyering  <meyering@redhat.com>
314
315         test-init.sh: avoid a subshell
316         * tests/test-init.sh: Remove protective subshell.
317         Suggested by Bernhard Voelker.  While a subshell is normally
318         required to protect against older shells (Solaris, FreeBSD) that
319         warn about a missing program before performing redirection, the
320         shell-selection tests performed by init.sh probably exclude any
321         offending shell.
322
323 2012-01-08  Bruno Haible  <bruno@clisp.org>
324
325         setlocale tests: Avoid test failure on Solaris 11 2011-11.
326         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
327         variable.
328
329 2012-01-08  Bruno Haible  <bruno@clisp.org>
330
331         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
332         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
333         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
334         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
335         macro.
336         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
337         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
338         * lib/spawn_faction_addopen.c: Add workaround implementation if
339         HAVE_WORKING_POSIX_SPAWN.
340         * modules/spawn (Makefile): Substitute
341         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
342         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
343         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
344         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
345         (Depends-on): Update conditions.
346         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
347         the Solaris 11 bug.
348
349 2012-01-08  Bruno Haible  <bruno@clisp.org>
350
351         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
352         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
354         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
355         macro.
356         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
357         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
358         * lib/spawn_faction_adddup2.c: Add workaround implementation if
359         HAVE_WORKING_POSIX_SPAWN.
360         * modules/spawn (Makefile): Substitute
361         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
362         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
363         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
364         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
365         (Depends-on): Update conditions.
366         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
367         the Solaris 11 bug.
368
369 2012-01-08  Bruno Haible  <bruno@clisp.org>
370
371         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
372         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
373         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
375         HAVE_WORKING_POSIX_SPAWN.
376         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
377         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
378         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
379         * lib/spawn_faction_addclose.c: Add workaround implementation if
380         HAVE_WORKING_POSIX_SPAWN.
381         * modules/spawn (Makefile): Substitute
382         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
383         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
384         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
385         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
386         (Depends-on): Update conditions.
387         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
388         the Solaris 11 bug.
389
390 2012-01-08  Bruno Haible  <bruno@clisp.org>
391
392         doc: Update for Solaris 11 2011-11.
393         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
394         * m4/printf.m4: Update comments.
395
396 2012-01-08  Bruno Haible  <bruno@clisp.org>
397
398         mktime: Avoid compilation error on Solaris 11.
399         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
400
401 2012-01-08  Bruno Haible  <bruno@clisp.org>
402
403         doc: Small fix.
404         * doc/posix-headers/nl_types.texi: Correct platforms list.
405
406 2012-01-08  Simon Josefsson  <simon@josefsson.org>
407
408         Add lgpl-3.0 module.
409         * MODULES.html.sh (Support for building documentation): Add
410         lgpl-3.0.
411         * modules/lgpl-3.0: New file.
412
413 2012-01-08  Jim Meyering  <meyering@redhat.com>
414
415         select.c: indent with spaces, not TABs
416         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
417
418 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
419
420         quotearg: do not use grave accent for left quote
421         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
422         locale_quoting_style.
423         (quotearg_buffer_restyled): Fix example.
424         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
425
426 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
427
428         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
429         Most programs do not have translation catalogs for English and much
430         less separate catalogs for British and American English.  Drop the
431         suggestion to translators about these two, and provide it
432         automatically for Unicode locales.  Like most programs, even those
433         using American English, we use single quotation marks.  This conflicts
434         with the American typographic convention, but works better when you
435         cite the entire error message within double quotes.  It also tries not
436         to clash with established practice and with what non-gnulib programs
437         will usually do.
438         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
439         using an UTF-8 or GB-18030 locale.  The list of other locales with
440         quotes was provided by Bruno Haible.
441         (quotearg_buffer_restyled): Adjust instructions to translators.
442         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
443         text, since this would be wrong when using Unicode.
444         * modules/quotearg: Depend on c-strcaseeq.
445
446 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
447
448         quotearg: fix Wikipedia link
449         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
450
451 2012-01-07  Simon Josefsson  <simon@josefsson.org>
452
453         Fix for mingw with MSVC9.
454         * m4/ld-version-script.m4: Check that compiler rejects version
455         scripts with syntax errors.  Reported by Bruno Haible
456         <bruno@clisp.org>.
457
458 2012-01-06  Bruno Haible  <bruno@clisp.org>
459
460         Talk about "native Windows API", not "Woe32".
461         * lib/accept4.c: Update comments to mention native Windows.
462         * lib/execute.c: Likewise.
463         * lib/fatal-signal.c: Likewise.
464         * lib/localcharset.c: Likewise.
465         * lib/nanosleep.c: Likewise.
466         * lib/nl_langinfo.c: Likewise.
467         * lib/pclose.c: Likewise.
468         * lib/pipe-filter-gi.c: Likewise.
469         * lib/pipe-filter-ii.c: Likewise.
470         * lib/pipe.c: Likewise.
471         * lib/pipe2.c: Likewise.
472         * lib/popen.c: Likewise.
473         * lib/progreloc.c: Likewise.
474         * lib/relocatable.c: Likewise.
475         * lib/sigaction.c: Likewise.
476         * lib/sigprocmask.c: Likewise.
477         * lib/spawn-pipe.h: Likewise.
478         * lib/spawn-pipe.c: Likewise.
479         * lib/spawni.c: Likewise.
480         * lib/stat-time.h: Likewise.
481         * lib/w32spawn.h: Likewise.
482         * tests/test-isatty.c: Likewise.
483         * lib/config.charset: More comments.
484         * doc/gnulib-intro.texi: Mention native Windows.
485         * doc/posix-functions/_Exit_C99.texi: Likewise.
486         * doc/posix-headers/fcntl.texi: Likewise.
487
488 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
489
490         argp: Avoid crash if translator uses % characters in a translation.
491         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
492         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
493
494 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
495
496         doc: C11 and C++11 are now official
497         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
498         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
499         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
500         * modules/stdalign:
501         Replace references to draft C1X to C11, and to draft C++0X to C++11.
502
503 2012-01-06  Bruno Haible  <bruno@clisp.org>
504
505         uc-is-grapheme-break tests: Tweak.
506         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
507         message.
508
509 2012-01-06  Bruno Haible  <bruno@clisp.org>
510
511         test-init.sh: correct the test for diff -u
512         * tests/test-init.sh: Also redirect stdout to /dev/null.
513
514 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
515
516         Use ', not `, for quoting output.
517         * build-aux/announce-gen (usage, sizes, print_news_deltas)
518         (print_changelog_deltas, get_tool_versions, main program):
519         * build-aux/git-version-gen:
520         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
521         * build-aux/move-if-change (help):
522         * build-aux/useless-if-before-free (usage, main program):
523         * check-module (parse_module_file, usage)
524         (find_included_lib_files, check_module):
525         * lib/argmatch.c (main) [TEST]:
526         * lib/argp-help.c (_help):
527         * lib/getopt1.c (main) [TEST]:
528         * lib/git-merge-changelog.c (usage):
529         * lib/xstrtol-error.c (xstrtol_error):
530         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
531         * m4/argz.m4 (gl_FUNC_ARGZ):
532         * m4/bison.m4 (gl_BISON):
533         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
535         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
536         * m4/fpending.m4 (gl_PREREQ_FPENDING):
537         * m4/gc-random.m4 (gl_GC_RANDOM):
538         * m4/intl.m4 (gt_CHECK_DECL):
539         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
540         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
541         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
542         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
543         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
544         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
545         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
546         * tests/test-dirname.c (main):
547         * tests/test-getpass.c (main):
548         * tests/test-iconvme.c (main):
549         * tests/test-parse-datetime.c (LOG):
550         * tests/test-xstrtoimax.sh:
551         * tests/test-xstrtol.sh:
552         * tests/test-xstrtoll.sh:
553         * tests/test-xstrtoumax.sh:
554         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
555         * top/GNUmakefile (abort-due-to-no-makefile):
556         Quote 'like this', not `like this', as per the recent change to
557         the GNU coding standards.
558
559 2012-01-05  Bruno Haible  <bruno@clisp.org>
560
561         strtoimax: Don't force a replacement on systems where intmax_t is int.
562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
563         'intmax_t' is not larger than 'int'.
564         Reported by Pádraig Brady <P@draigBrady.com>.
565
566 2012-01-05  Bruno Haible  <bruno@clisp.org>
567
568         doc: Mention NetBSD bugs.
569         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
570         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
571
572 2012-01-05  Bruno Haible  <bruno@clisp.org>
573
574         strtoumax tests: Enhance tests.
575         * tests/test-strtoumax.c (main): Add tests for large values.
576
577 2012-01-05  Bruno Haible  <bruno@clisp.org>
578
579         strtoimax: Work around AIX 5.1 bug.
580         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
581         definition.
582         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
583         Set HAVE_STRTOIMAX.
584         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
585         REPLACE_STRTOIMAX.
586         * modules/inttypes-incomplete (Makefile.am): Substitute
587         REPLACE_STRTOIMAX.
588         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
589         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
590         (Depends-on): Update conditions.
591         * tests/test-strtoimax.c (main): Add tests for large values.
592         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
593
594 2012-01-05  Bruno Haible  <bruno@clisp.org>
595
596         inttypes: Modernize.
597         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
598         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
599         (Makefile.am): Update inttypes.h rule.
600
601 2012-01-05  Jim Meyering  <meyering@redhat.com>
602
603         init.sh: don't waste a subshell just to redirect stderr
604         * tests/init.sh: In testing for diff -u and diff -c, use a
605         stderr-redirecting exec inside `...` rather than a subshell.
606
607         test-init.sh: avoid failure on HP-UX 11.00
608         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
609         resolves to diff -c or cmp.  Reported by Bruno Haible.
610
611 2012-01-05  Bruno Haible  <bruno@clisp.org>
612
613         Tests for module 'strtoull'.
614         * modules/strtoull-tests: New file.
615         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
616
617 2012-01-05  Bruno Haible  <bruno@clisp.org>
618
619         Tests for module 'strtoll'.
620         * modules/strtoll-tests: New file.
621         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
622
623 2012-01-05  Bruno Haible  <bruno@clisp.org>
624
625         Tests for module 'strtoul'.
626         * modules/strtoul-tests: New file.
627         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
628
629 2012-01-05  Bruno Haible  <bruno@clisp.org>
630
631         Tests for module 'strtol'.
632         * modules/strtol-tests: New file.
633         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
634
635 2012-01-04  Jim Meyering  <meyering@redhat.com>
636
637         test-init.sh: accommodate Solaris 5.10's different diff -u output
638         * tests/test-init.sh: Also exempt @@ lines from the comparison
639         of diff output, since Solaris 5.10 and GNU diff formats differ.
640         Reported by Stefano Lattarini.
641
642 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
643
644         test-posixtm: don't assume signed integer wraparound
645         * tests/test-posixtm.c (main): Don't assume wraparound semantics
646         after signed integer overflow.  Inspired by (though it may not
647         fix) Bruno Haible's bug report in
648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
649
650         Spell out "Windows 9x" and "Windows XP".
651         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
652         "Windows 9x" and "WinXP" with "Windows XP".
653
654 2012-01-04  Jim Meyering  <meyering@redhat.com>
655
656         test-vc-list-files-cvs.sh: remove obsolete comment
657         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
658         double exit.  Now that's all encapsulated via skip_ and Exit.
659
660 2012-01-04  Bruno Haible  <bruno@clisp.org>
661
662         Talk about "native Windows API", not "Win32".
663         * lib/classpath.c: Update comments to mention native Windows.
664         * lib/csharpexec.c: Likewise.
665         * lib/dup2.c: Likewise.
666         * lib/error.c: Likewise.
667         * lib/fcntl.c: Likewise.
668         * lib/filename.h: Likewise.
669         * lib/findprog.c: Likewise.
670         * lib/get-rusage-as.c: Likewise.
671         * lib/get-rusage-data.c: Likewise.
672         * lib/getpagesize.c: Likewise.
673         * lib/javaexec.c: Likewise.
674         * lib/msvc-inval.c: Likewise.
675         * lib/msvc-nothrow.c: Likewise.
676         * lib/nanosleep.c: Likewise.
677         * lib/nonblocking.c: Likewise.
678         * lib/printf-parse.c: Likewise.
679         * lib/setlocale.c: Likewise.
680         * lib/sigaction.c: Likewise.
681         * lib/strerror_r.c: Likewise.
682         * lib/tmpdir.c: Likewise.
683         * lib/vasnprintf.c: Likewise.
684         * lib/w32spawn.h: Likewise.
685         * lib/waitpid.c: Likewise.
686         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
687         * m4/locale-ar.m4: Likewise.
688         * m4/locale-fr.m4: Likewise.
689         * m4/locale-ja.m4: Likewise.
690         * m4/locale-tr.m4: Likewise.
691         * m4/locale-zh.m4: Likewise.
692         * m4/printf.m4: Likewise.
693         * tests/test-cloexec.c: Likewise.
694         * tests/test-copy-acl.sh: Likewise.
695         * tests/test-copy-file.sh: Likewise.
696         * tests/test-file-has-acl.sh: Likewise.
697         * tests/test-set-mode-acl.sh: Likewise.
698         * tests/test-dup-safer.c: Likewise.
699         * tests/test-dup2.c: Likewise.
700         * tests/test-dup3.c: Likewise.
701         * tests/test-fcntl.c: Likewise.
702         * tests/test-nonblocking-pipe.h: Likewise.
703         * tests/test-nonblocking-socket.h: Likewise.
704         * tests/test-pipe.c: Likewise.
705         * tests/test-pipe2.c: Likewise.
706         * tests/test-spawn-pipe-child.c: Likewise.
707         * doc/acl-resources.txt: Likewise.
708         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
709         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
710         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
711         * lib/localcharset.c: Update comments to mention native Windows.
712         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
713         * lib/localename.c: Likewise.
714         * lib/progreloc.c: Likewise.
715         * lib/relocatable.c: Likewise.
716         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
717         (windows_compute_revents): Renamed from win32_compute_revents.
718         (windows_compute_revents_socket): Renamed from
719         win32_compute_revents_socket.
720         * lib/select.c: Update comments to mention native Windows.
721         (windows_poll_handle): Renamed from win32_poll_handle.
722         * m4/threadlib.m4: Update comments to mention native Windows.
723         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
724         --enable-threads=windows instead of --enable-threads=win32. Set
725         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
726         * lib/glthread/lock.h: Update comments to mention native Windows.
727         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
728         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
729         USE_WIN32_THREADS.
730         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
731         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
732         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
733         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
734         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
735         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
736         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
737         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
738         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
739         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
740         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
741         * tests/test-tls.c: Likewise.
742         Rationale:
743         Microsoft renamed the "Win32 API" to "Windows API", as it is available
744         on both 32-bit and 64-bit Windows systems.
745         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
746         line of distinction is between "native Windows" on one side and Unix/
747         POSIX systems on the other side. More details in
748         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
749         Suggested by Paul Eggert.
750
751 2012-01-03  Bruno Haible  <bruno@clisp.org>
752
753         isatty: Support for MSVC 9.
754         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
755         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
756         (_isatty_nothrow): New function.
757         (isatty): Use it instead of _isatty.
758         (IsConsoleHandle): Add comment, from Paolo Bonzini.
759         * lib/poll.c (IsConsoleHandle): Likewise.
760         * lib/select.c (IsConsoleHandle): Likewise.
761         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
762         (gl_PREREQ_ISATTY): New macro.
763         * modules/isatty (Depends-on): Add msvc-inval.
764         (configure.ac): Invoke gl_PREREQ_ISATTY.
765
766 2012-01-03  Jim Meyering  <meyering@redhat.com>
767
768         maint.mk: remove temporary transition aid from over 1.5 years ago
769         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
770         purpose was to aid in the transition (avoiding silent malfunction)
771         from that old name to the new _sc_search_regexp.  This shim was
772         added by commit 219c504b.
773
774         init.sh: do not try to accommodate compare arguments starting with "-"
775         * tests/init.sh (compare_dev_null_): Do not try to accommodate
776         compare arguments that start with "-".  Besides, we do not worry
777         about this when invoking diff or cmp; why start now with sed?
778         Using "--" to separate options from argument would trigger sed
779         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
780         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
781
782 2012-01-02  Bruno Haible  <bruno@clisp.org>
783
784         Enhance tests for module 'isatty'.
785         * modules/isatty-tests (Depends-on): Add pipe-posix.
786         * tests/test-isatty.c: Include <fcntl.h>.
787         (DEV_NULL): New macro.
788         (main): Test the resut of isatty() also on regular files, pipes, and
789         /dev/null.
790
791         New module 'isatty'.
792         * lib/unistd.in.h (isatty): New declaration.
793         * lib/isatty.c: New file, based on an idea of
794         Bastien Roucariès <roucaries.bastien@gmail.com>.
795         * m4/isatty.m4: New file.
796         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
797         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
798         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
799         REPLACE_ISATTY.
800         * modules/isatty: New file.
801         * doc/posix-functions/isatty.texi: Mention the new module.
802         Suggested by Paolo Bonzini.
803
804 2012-01-02  Bruno Haible  <bruno@clisp.org>
805
806         canonicalize: Tweak 2011-12-29 commit.
807         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
808         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
809
810 2012-01-02  Jim Meyering  <meyering@redhat.com>
811
812         gitlog-to-changelog: describe input syntax in --help output
813         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
814
815         gitlog-to-changelog: fix typo in --help: show backslash before email @
816         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
817         in sources, but not in actual output.
818
819 2011-12-30  Jim Meyering  <meyering@redhat.com>
820
821         gitlog-to-changelog: don't malfunction when name contains %-directive
822         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
823         in a name string cause trouble.  E.g., with a user name of "%s",
824         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
825
826 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
827
828         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
829         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
830         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
831         the "  (tiny change)" notation that is appended to the standard
832         ChangeLog "date  name  email" header line.
833
834 2012-01-01  Jim Meyering  <meyering@redhat.com>
835
836         test-framework-sh: init.sh: fix "make dist" failure
837         When using gnulib-tool's --with-tests option and any module that
838         depends on test-framework-sh, "make dist" would fail due to the
839         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
840         in the gltests directory, and not in the gllib/ directory.
841         One way to work around that is to move the EXTRA_DIST += init.sh
842         from the primary module to the -tests one:
843         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
844         * modules/test-framework-sh (Makefile.am): ...not here.
845         Reported by Tom G. Christensen in
846         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
847
848         version-etc: update copyright year reported by --version
849         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
850
851 2011-12-31  Pádraig Brady  <P@draigBrady.com>
852
853         canonicalize: only stat() if required
854         * lib/canonicalize.c (canonicalize_filename_mode):
855         Avoid calling l?stat() when both CAN_MISSING,
856         and CAN_NOLINKS are set, as we neither need
857         to resolve symlinks or test component existence.
858
859 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
860
861         doc: cover st_ino issues once; add OpenVMS etc.
862         * doc/posix-functions/stat.texi (stat):
863         * doc/posix-functions/lstat.texi (lstat):
864         * doc/posix-functions/fstatat.texi (fstatat):
865         * doc/posix-functions/fstat.texi (fstat):
866         Move general 'struct stat' stuff to sys_stat.texi,
867         leaving behind a pointer.
868         * doc/posix-headers/sys_stat.texi (sys/stat.h):
869         Merge duplicate info about 'struct stat' problems into here.
870         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
871         and suggest partial workarounds.
872
873         same-inode: port to OpenVMS
874         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
875         three st_ino values.
876
877 2011-12-30  Pádraig Brady  <P@draigBrady.com>
878
879         canonicalize: fix references to stat() and lstat()
880         * lib/canonicalize.c (canonicalize_filename_mode):
881         Ensure references always resolve to a replacement
882         function if required (even via a macro).
883
884 2011-12-30  Jim Meyering  <meyering@redhat.com>
885
886         gitlog-to-changelog: remove a little duplication
887         * build-aux/gitlog-to-changelog (main): Grep @lines once,
888         rather than twice.
889
890 2011-12-29  Pádraig Brady  <P@draigBrady.com>
891
892         canonicalize: add support for not resolving symlinks
893         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
894         indicate we don't want to follow symlinks.  Also
895         provide CAN_MODE_MASK to aid setting these existing
896         mutually exclusive values.
897         * lib/canonicalize.c (canonicalize_filename_mode):
898         Extract the flags from can_mode parameter, which
899         are currently just used to select between stat()
900         and lstat().  Also ensure that mutually exclusive
901         values are flagged immediately as invalid.
902         * tests/test-canonicalize.c: Verify symlinks are
903         not followed, and that invalid flag combinations
904         are diagnosed.
905
906 2011-12-25  Jim Meyering  <meyering@redhat.com>
907
908         gitlog-to-changelog: do not clump multi-paragraph entries
909         Identical header lines (date,name,email+coauthors) are suppressed,
910         thus putting all entries with those same characteristics under
911         a single header.  However, when a log entry consists of two or
912         more paragraphs, it may not be clear where it starts and ends.
913         This change makes it so that such an entry is always separated
914         from others by a header line, even when that header would
915         otherwise be suppressed.
916         * build-aux/gitlog-to-changelog: Implement the above.
917         Inspired by a related request from Stefano Lattarini in
918         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
919
920 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
921
922         announce-gen: fix `cmd' typo in diagnostic
923         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
924         diagnostic: a missing '$' meant that the command was not output.
925
926 2011-12-23  Jim Meyering  <meyering@redhat.com>
927
928         test-framework-sh: distribute init.sh
929         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
930         Otherwise, "make -C gnulib-tests check" (at least in grep) would
931         fail due to the lack of init.sh.
932
933         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
934         * modules/atexit-tests: Rather than listing tests/init.sh,
935         now that there's a module for it, simply depend on that new module.
936         * modules/closein-tests: Likewise.
937         * modules/exclude-tests: Likewise.
938         * modules/getcwd-tests: Likewise.
939         * modules/perror-tests: Likewise.
940         * modules/pread-tests: Likewise.
941         * modules/pwrite-tests: Likewise.
942         * modules/vc-list-files-tests: Likewise.
943         * modules/verify-tests: Likewise.
944         * modules/xalloc-die-tests: Likewise.
945         * modules/xstrtoimax-tests: Likewise.
946         * modules/xstrtol-tests: Likewise.
947         * modules/xstrtoll-tests: Likewise.
948         * modules/xstrtoumax-tests: Likewise.
949         * modules/yesno-tests: Likewise.
950
951 2011-12-22  Jim Meyering  <meyering@redhat.com>
952
953         test-framework-sh: add minimal tests of init.sh's compare function
954         * modules/test-framework-sh-tests: New file.
955         * tests/test-init.sh: New file.
956
957         test-framework-sh: new module
958         * modules/test-framework-sh: New file.
959         * MODULES.html.sh (Support for maintaining and releasing projects):
960         List it.
961
962         init.sh: do not emit simulated diff output to stderr
963         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
964
965 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
966
967         .gitignore: ignore gnulib.dvi and regex.info
968         * doc/.gitignore:add gnulib.dvi and regex.info
969
970 2011-12-22  Jim Meyering  <meyering@redhat.com>
971
972         init.sh: correct previous change
973         * tests/init.sh (compare): My previous change was wrong.
974         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
975
976         init.sh: avoid unwarranted test failure when using "set -e"
977         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
978         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
979         a use like "compare exp out" would get evoke an unconditional failure.
980
981 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
982
983         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
984         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
985         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
986         autoreconf that did not.
987         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
988         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
989
990 2011-12-17  Jim Meyering  <meyering@redhat.com>
991
992         bootstrap: remove some now-unneeded code
993         This script arose back when gnulib-tool was young.
994         Since then, it has seen improvements that render much of this
995         script unnecessary.  In particular, it can now make symlinks
996         to the files it uses.  Also, I no longer see as much value in
997         marking files as read-only via comments.
998         If you relied on the symlink-creation feature of the preceding
999         version of this script, you can get most of that functionality
1000         by adding the --symlink option to the definition of
1001         gnulib_tool_option_extras in your bootstrap.conf file.
1002         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1003         Run autopoint and libtoolize *before* gnulib-tool.
1004         After it, run an abbreviated autoreconf, rather than a loop around
1005         all tools.
1006         (slirp, bt_mark_as_generated): Remove functions.
1007
1008 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1009
1010         ftoastr: fix typo
1011         * lib/ftoastr.h: Fix misspelling in comment.
1012
1013 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1014
1015         * top/README-release: fix punctuation.
1016
1017 2011-12-17  Jim Meyering  <meyering@redhat.com>
1018
1019         bootstrap: correct the recent buildreq change
1020         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1021         had no effect.
1022         * build-aux/bootstrap (buildreq): Bracket each search term with
1023         "*...*", so that the shell "case" statement works as intended.
1024         Add comments.
1025
1026 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1027
1028         build: let bootstrap resort to wget when downloading .po files
1029         * build-aux/bootstrap (download_po_files): Fallback to wget when
1030         downloading the .po files via rsync fails.  This is necessary to
1031         bootstrap from behind a strict firewall.
1032
1033 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1034
1035         stdint: don't assume C++11 when compiling with g++
1036         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1038         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1039         work also in C++ before C++11, as that improperly inhibits
1040         generating a substitute stdint.h for that case.
1041
1042 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         alloca: protect comment from gnulib-tool
1045         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1046         that gnulib-tool doesn't think it's a license, and munge it to
1047         say "GCC version 3".
1048
1049 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1050
1051         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1052         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1053         $(abs_top_builddir) instead of $(top_builddir).
1054
1055 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1056
1057         strftime-tests: also test nanoseconds
1058         * tests/test-strftime.c (T): Add a test of %N.
1059
1060 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1061
1062         inttypes, stdint: add C++11 support
1063         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1064         when including inttypes.h and stdint.h.  Support this change to
1065         the standard.
1066         * doc/posix-headers/inttypes.texi (inttypes.h):
1067         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1068         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1069         Define if not defined already, for the benefit of pre-C++11 hosts.
1070         Define the standard format macros (e.g., PRId8) always.
1071         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1072         Likewise, if __cpluspus.  Define the standard constant and limit
1073         macros (e.g., INT8_C, INT8_MAX) always.
1074         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1075         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1076         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1077         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1078         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1079         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1080         Likewise.
1081
1082 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         nonblocking tests: Fix test failure on Linux/PPC.
1085         Suggested by Prerna Saxena in
1086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1087         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1088         Set to 1100000.
1089
1090 2011-12-12  Jim Meyering  <meyering@redhat.com>
1091
1092         argmatch: don't hard-code `' when listing valid option arguments
1093         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1094         use the quote function to add quotes.  Use fputs rather than
1095         fprintf for the format string with no format directive.
1096
1097 2011-12-07  Eric Blake  <eblake@redhat.com>
1098
1099         bootstrap: detect tools required by gnulib-tool
1100         * build-aux/bootstrap (buildreq): Provide minimum implicit
1101         dependencies.
1102         * DEPENDENCIES: Mention patch as a prereq.
1103
1104 2011-12-04  Bruno Haible  <bruno@clisp.org>
1105
1106         sethostname: Port to Windows platforms.
1107         * lib/sethostname.c: Provide an alternate implementation for Windows
1108         platforms.
1109         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1110         (main): Skip the test if sethostname() fails with EPERM. On Windows
1111         platforms, don't check the result of gethostname().
1112
1113 2011-12-04  Bruno Haible  <bruno@clisp.org>
1114             Jim Meyering  <meyering@redhat.com>
1115
1116         tests: Avoid spurious error message on platforms without mktemp program.
1117         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1118
1119 2011-12-04  Bruno Haible  <bruno@clisp.org>
1120
1121         sethostname: Fix documentation.
1122         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1123         "not fixed" section.
1124
1125 2011-12-03  Bruno Haible  <bruno@clisp.org>
1126
1127         gnulib-tool: Verify that the License field is present and non-empty.
1128         * gnulib-tool (func_get_license_raw): New function, extracted from
1129         func_get_license.
1130         (func_get_license): Use it. Warn if the module is not a test module and
1131         has no license.
1132         Suggested by Jim Meyering.
1133
1134 2011-12-03  Bruno Haible  <bruno@clisp.org>
1135
1136         sethostname tests: Fix link error on mingw.
1137         * tests/test-sethostname1.c: New file, extracted from
1138         tests/test-sethostname.c.
1139         * tests/test-sethostname2.c: New file, extracted from
1140         tests/test-sethostname.c.
1141         * tests/test-sethostname.c: Remove file.
1142         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1143         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1144         (Depends-on): Add gethostname.
1145         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1146         Link the latter with $(GETHOSTNAME_LIB).
1147
1148         sethostname tests: Fix compilation error on mingw.
1149         * tests/test-sethostname.c: Don't include <sys/types.h>.
1150         (geteuid): Use a dummy value without uid_t.
1151         * modules/sethostname-tests (Depends-on): Remove sys_types.
1152
1153         sethostname tests: Avoid a gcc warning.
1154         * tests/test-sethostname.c (main): Remove an unused variable.
1155
1156         Tweak last commit.
1157         * modules/sethostname-tests (Files): Sort by decreasing importance.
1158         (configure.ac): Check for geteuid.
1159         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1160         the test when there's nothing to test. Drop an unnecessary cast.
1161         Improve an error message. Verify that the final sethostname() call
1162         succeeds.
1163
1164 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1165
1166         Add a test suite for the sethostname module.
1167         * modules/sethostname-tests: New file.  A test program
1168         for the sethostname module.
1169         * tests/test-sethostname.c: Likewise.
1170
1171 2011-12-03  Bruno Haible  <bruno@clisp.org>
1172
1173         Tweak last commit.
1174         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1175         Fix preprocessor directives indentation. Fix typos.
1176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1177         * modules/unistd (Makefile): Likewise.
1178
1179 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1180
1181         Integrate the sethostname module into unistd.
1182         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1183         into the unistd.h header.
1184         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1185         preprocessor directives.
1186         * modules/unistd: Setup the Makefile substitutions of the
1187         SETHOSTNAME preprocessor directives.
1188
1189 2011-12-03  Bruno Haible  <bruno@clisp.org>
1190
1191         Tweak last commit.
1192         * lib/sethostname.c: Don't include <string.h>.
1193         (sethostname): No need to copy the argument string to the stack. Don't
1194         call clearerr. Preserve errno when fprintf failed.
1195         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1196         Don't invoke AC_REPLACE_FUNCS.
1197         * modules/sethostname (Link): Remove empty section.
1198         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1199         failure problem.
1200
1201 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1202
1203         New module 'sethostname'.
1204         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1205         for systems that lack it.
1206         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1207         sethostname declaration and function.
1208         * modules/sethostname: New file.  Define the sethostname module.
1209
1210 2011-12-03  Bruno Haible  <bruno@clisp.org>
1211
1212         Tweak last commit.
1213         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1214
1215 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1216
1217         Split the HOST_NAME_MAX detection into a separate m4 macro.
1218         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1219         macro so it can be used by the pending sethostname module.
1220
1221 2011-12-03  Bruno Haible  <bruno@clisp.org>
1222
1223         Fix module descriptions syntax.
1224         * modules/argv-iter (License): Fix syntax.
1225         * modules/di-set (License): Likewise.
1226         * modules/ino-map (License): Likewise.
1227         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1228
1229 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1230
1231         stdalign: port to Clang 3.0
1232         Problem reported by Simon Josefsson in
1233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1234         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1235         which has <stdalign.h> but which does not define alignof.
1236         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1237
1238 2011-12-01  Eric Blake  <eblake@redhat.com>
1239
1240         mktempd: silence dd usage
1241         * build-aux/mktempd (rand_bytes): Silence dd.
1242
1243 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1244
1245         manywarnings: Don't mention gcc version in docstring.
1246         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1247         Jim Meyering <meyering@redhat.com>.
1248
1249 2011-11-30  Jim Meyering  <meyering@redhat.com>
1250
1251         hash: mark a few floating point constants with "f" suffix
1252         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1253         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1254         floating point constants with "f", since they're destined to be
1255         saved/used as "float"s.
1256
1257 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1258
1259         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1260         * tests/test-float.c (test_long_double): Correct and re-enable the
1261         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1262
1263 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1264
1265         Avoid subtracting two pointers that don't point into the same block.
1266         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1267         only pointers into the same memory block are subtracted. We cannot
1268         assume that sizeof (ptrdiff_t) == sizeof (void *).
1269
1270 2011-11-29  Eric Blake  <eblake@redhat.com>
1271
1272         maint.mk: add syntax check for use of compare from init.sh
1273         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1274         moved here from coreutils.
1275
1276         manywarnings: drop -Wunsuffixed-float-constants
1277         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1278         '1.0D', which is the only way to silence this warning for 'double'.
1279
1280 2011-11-29  Jim Meyering  <meyering@redhat.com>
1281
1282         hash: mark compute_bucket_size with the pure attribute
1283         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1284
1285         quotearg, propername: correct pragma guard expression
1286         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1287         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1288
1289 2011-11-28  Jim Meyering  <meyering@redhat.com>
1290
1291         propername: do not mark proper_name with the const attribute
1292         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1293         since it examines data pointed to by its parameter.
1294         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1295         the suggestion from -Wsuggest-attribute=const.
1296
1297         propername: mark one more function as const
1298         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1299
1300 2011-11-27  Jim Meyering  <meyering@redhat.com>
1301
1302         mark functions with const and pure attributes
1303
1304         Mark functions per suggestions from gcc-4.6 when using these options:
1305         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1306         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1307         Follow these guidelines: when possible, apply the attribute to
1308         an extern declaration, not to its definition.  Apply it to the
1309         definition only when the definition is static.
1310         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1311         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1312         * lib/base64.h (isbase64): Likewise.
1313         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1314         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1315         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1316         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1317         (c_tolower, c_toupper): Likewise.
1318         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1319         * lib/chdir-long.c (find_non_slash): Likewise.
1320         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1321         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1322         * lib/file-type.h (file_type): Likewise.
1323         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1324         * lib/filevercmp.c (verrevcmp): Likewise.
1325         * lib/freadahead.h (freadahead): Likewise.
1326         * lib/fts.c (fts_maxarglen): Likewise.
1327         * lib/hash-pjw.h (hash_pjw): Likewise.
1328         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1329         * lib/hash.c (is_prime, next_prime): Likewise.
1330         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1331         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1332         (hash_table_ok, hash_get_first, hash_string): Likewise.
1333         (compute_bucket_size): Likewise.
1334         * lib/i-ring.h (i_ring_empty): Likewise.
1335         * lib/isnan.c (isnanl): Likewise.
1336         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1337         * lib/memcasecmp.h (memcasecmp): Likewise.
1338         * lib/memchr2.h (memchr2): Likewise.
1339         * lib/memcmp2.h (memcmp2): Likewise.
1340         * lib/parse-datetime.y (lookup_zone): Likewise.
1341         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1342         [!WINDOWS_SOCKETS]: Likewise.
1343         * lib/strnlen1.h (strnlen1): Likewise.
1344         * lib/uniwidth.in.h (uc_width): Likewise.
1345         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1346         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1347         (quoting_options_from_style): Add a comment.
1348         * lib/propername.h (proper_name): Add a comment.
1349
1350 2011-11-27  Bruno Haible  <bruno@clisp.org>
1351
1352         Remove unused macros from !_LIBC code in glibc-borrowed files.
1353         * lib/fnmatch.c (STRCOLL): Remove macro.
1354         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1355         * lib/glob.c (__stat, __readdir64): Remove macros.
1356         * lib/tempname.c (__open64, __xstat64): Remove macros.
1357         Suggested by Paul Eggert.
1358
1359 2011-11-27  Bruno Haible  <bruno@clisp.org>
1360
1361         getcwd: Fix link error on MSVC 9.
1362         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1363
1364 2011-11-27  Bruno Haible  <bruno@clisp.org>
1365
1366         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1367         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1368         HAVE_OPENDIR is 0.
1369         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1370         HAVE_CLOSEDIR is 0.
1371         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1372         is 0.
1373         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1374
1375 2011-11-27  Bruno Haible  <bruno@clisp.org>
1376
1377         getcwd: Fix bug from 2011-08-17.
1378         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1379         platforms that need it.
1380         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1381         code of 4 to be a failure, not a success. This ensures that
1382         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1383
1384 2011-11-27  Bruno Haible  <bruno@clisp.org>
1385
1386         binary-io tests: Avoid test failure on mingw when libtool is used.
1387         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1388         Don't verify the size of t-bin-out1.tmp here.
1389         * tests/test-binary-io.sh: Verify it here.
1390         Reported by Simon Josefsson.
1391
1392 2011-11-26  Bruno Haible  <bruno@clisp.org>
1393
1394         Fix conflict between two instantiations of module 'unistd'.
1395         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1396         ${include_guard_prefix} also in the autoconf snippet.
1397         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1399         GNULIB_UNISTD_H_GETOPT.
1400         * modules/getopt-posix (configure.ac): Set the
1401         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1402         * modules/getopt-gnu (configure.ac): Likewise.
1403         * modules/unistd (Makefile.am): Change the substitution value of
1404         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1405         Reported by Simon Josefsson.
1406
1407 2011-11-25  Bruno Haible  <bruno@clisp.org>
1408
1409         pagealign_alloc: Doc and comments.
1410         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1411         module.
1412         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1413
1414 2011-11-25  Jim Meyering  <meyering@redhat.com>
1415
1416         test-update-copyright.sh: avoid false-positive failure
1417         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1418         around false positive failure on Cygwin/Windows.  The latter was
1419         matching erroneously-created files with names like
1420         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1421
1422 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1423
1424         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1425         * m4/valgrind-tests.m4: Check that the parameters that will be
1426         used works, not just a subset of them.  Reported by Bruno Haible
1427         <bruno@clisp.org>.
1428
1429 2011-11-24  Jim Meyering  <meyering@redhat.com>
1430
1431         test-stdalign.c: comment out long double tests
1432         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1433         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1434         error: '_Alignas' specifiers cannot reduce alignment of \
1435         'static_longdouble_alignas'.
1436
1437 2011-11-22  Jim Meyering  <meyering@redhat.com>
1438
1439         init.sh: make "compare /dev/null FILE" output more readable
1440         * tests/init.sh (compare_): Document the preferred order of arguments.
1441         (emit_diff_u_header_): New function.
1442         (compare_dev_null_): Emit a simulated diff, rather than just the
1443         contents of the unexpected file.  Suggestion from Bruno Haible.
1444
1445 2011-11-21  Jim Meyering  <meyering@redhat.com>
1446             Eric Blake  <eblake@redhat.com>
1447
1448         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1449         * tests/init.sh: Make our compare function slightly more portable.
1450         Reported by Bruno Haible in
1451         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1452
1453 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1454
1455         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1456         before using it, in code that ends up in config.h.
1457
1458 2011-11-20  Bruno Haible  <bruno@clisp.org>
1459
1460         getcwd: Work around getcwd bug on AIX 5..7.
1461         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1462         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1463         Use a different value for gl_cv_func_getcwd_path_max. Move the
1464         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1465         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1466         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1467         Define HAVE_MINIMALLY_WORKING_GETCWD.
1468         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1469         where it is not even minimally working, that is, on AIX.
1470         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1471         m4/getcwd-path-max.m4.
1472         (main): Update exit code computation.
1473         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1474         getcwd does not handle long file names.
1475
1476 2011-11-20  Bruno Haible  <bruno@clisp.org>
1477
1478         getcwd: Fix bug from 2009-09-10.
1479         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1480         like "no".
1481
1482 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1483
1484         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1485
1486 2011-11-20  Bruno Haible  <bruno@clisp.org>
1487
1488         fma tests: Avoid shadowing local variables.
1489         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1490         expected.
1491
1492 2011-11-20  Bruno Haible  <bruno@clisp.org>
1493
1494         copysignf tests: Fix.
1495         * tests/test-copysignf.c: Fix signature check.
1496
1497 2011-11-20  Bruno Haible  <bruno@clisp.org>
1498
1499         fma: Remove unused code.
1500         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1501         unused macros.
1502
1503 2011-11-20  Bruno Haible  <bruno@clisp.org>
1504
1505         sethostname: Fix doc about AIX.
1506         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1507         sethostname; it has it.
1508
1509         sethostname: Mention more portability problems.
1510         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1511         problem.
1512         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1513
1514 2011-11-19  Bruno Haible  <bruno@clisp.org>
1515
1516         Depend on module fcntl-h when AT_FDCWD is used.
1517         * modules/utimens (Depends-on): Add fcntl-h.
1518         * modules/areadlinkat (Depends-on): Likewise.
1519         * modules/areadlinkat-with-size (Depends-on): Likewise.
1520         * modules/faccessat (Depends-on): Likewise.
1521         * modules/fchmodat (Depends-on): Likewise.
1522         * modules/fchownat (Depends-on): Likewise.
1523         * modules/getcwd (Depends-on): Likewise.
1524         * modules/mkdirat (Depends-on): Likewise.
1525         * modules/mkfifoat (Depends-on): Likewise.
1526         * modules/readlinkat (Depends-on): Likewise.
1527         * modules/symlinkat (Depends-on): Likewise.
1528         * modules/dup2-tests (Depends-on): Likewise.
1529         * modules/fdutimensat-tests (Depends-on): Likewise.
1530         * modules/futimens-tests (Depends-on): Likewise.
1531
1532 2011-11-19  Bruno Haible  <bruno@clisp.org>
1533
1534         euidaccess: Update a comment.
1535         * lib/euidaccess.c: Update comment about platforms with faccessat.
1536
1537 2011-11-19  Bruno Haible  <bruno@clisp.org>
1538
1539         openat: Fix file list.
1540         * modules/openat (Files): Remove lib/at-func.c.
1541
1542 2011-11-19  Bruno Haible  <bruno@clisp.org>
1543
1544         fstatat: Simplify.
1545         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1546         gnulib should define rpl_fstatat, there is a
1547         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1548
1549 2011-11-19  Bruno Haible  <bruno@clisp.org>
1550
1551         Ensure 'inline' can be used in tests/test-utimens-common.h.
1552         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1553         * modules/futimens-tests (configure.ac): Likewise.
1554         * modules/utimens-tests (configure.ac): Likewise.
1555         * modules/utimensat-tests (configure.ac): Likewise.
1556
1557 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1558
1559         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1560         not hash_insert0.
1561         (hash_insert_if_absent): Doc fix.
1562
1563 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1564
1565         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1566
1567 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1568
1569         test-getcwd: disambiguate exit status
1570         * tests/test-getcwd.c (test_long_name): Return 0..7.
1571         (main): Exit with an unambiguous exit status.  The old
1572         code yielded a mysterious mixture of two failure codes.
1573
1574         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1575         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1576         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1577         rpl_fstatat or fstatat.  This should fix the other problem
1578         reported by Kai Habel in
1579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1580         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1582         and I reproduced it on a Solaris 8 host we still have in production.
1583
1584 2011-11-18  Jim Meyering  <meyering@redhat.com>
1585
1586         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1587         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1588         Add a sentence to the comment.
1589         (hash_insert0): New function that simply calls hash_insert_if_absent.
1590         * lib/hash.h (hash_insert_if_absent): Declare it.
1591         (hash_insert0): Add deprecation attribute.
1592         (_GL_ATTRIBUTE_DEPRECATED): Define.
1593         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1594         not hash_insert0.
1595         * NEWS: Mention it, even though it's not really an incompatible change.
1596
1597 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1598
1599         openat: avoid compilation failure due to lack of <errno.h> inclusion
1600         * lib/openat.c: Include <errno.h>.
1601
1602 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         * modules/getcwd (Depends-on): Add fdopendir.
1605         This fixes one of the two problems reported by Kai Habel in
1606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1607
1608         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1609         stdalign problem reported by Ian Beckwith in
1610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1611         * modules/crypto/gc-arcfour (Depends-on):
1612         Depend conditionally on crypto/arcfour.
1613         * modules/crypto/gc-arctwo (Depends-on):
1614         Depend conditionally on crypto/arctwo.
1615         * modules/crypto/gc-des (Depends-on):
1616         Depend conditionally on crypto/des.
1617         * modules/crypto/gc-hmac-md5 (Depends-on):
1618         Depend conditionally on crypto/hmac-md5.
1619         * modules/crypto/gc-hmac-sha1 (Depends-on):
1620         Depend conditionally on crypto/hmac-sha1.
1621         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1622         * modules/crypto/gc-md4 (Depends-on):
1623         Depend conditionally on crypto/md4.
1624         * modules/crypto/gc-md5 (Depends-on):
1625         Depend conditionally on crypto/md5.
1626         * modules/crypto/gc-rijndael (Depends-on):
1627         Depend conditionally on crypto/rijndael.
1628         * modules/crypto/gc-sha1 (Depends-on):
1629         Depend conditionally on crypto/sha1.
1630         * modules/crypto/gc-arcfour:
1631         * modules/crypto/gc-arctwo:
1632         * modules/crypto/gc-des:
1633         * modules/crypto/gc-hmac-md5:
1634         * modules/crypto/gc-hmac-sha1:
1635         * modules/crypto/gc-md2:
1636         * modules/crypto/gc-md4:
1637         * modules/crypto/gc-md5:
1638         * modules/crypto/gc-rijndael:
1639         * modules/crypto/gc-sha1:
1640         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1641         now that the conditional dependencies do the work for us.
1642
1643 2011-11-17  Jim Meyering  <meyering@redhat.com>
1644
1645         tests: factor st_ctime-comparison out of two headers
1646         * tests/test-utimens-common.h (ctime_compare): Define.
1647         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1648         * tests/test-lutimens.h (test_lutimens): Likewise.
1649         * tests/test-utimens.h (test_utimens): Likewise.
1650
1651         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1652         Invoke the test program via an init.sh-using wrapper.
1653         * tests/test-getcwd.sh: New file.
1654         * modules/getcwd-tests (Files): Add it.
1655         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1656
1657 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1658
1659         gitlog-to-changelog: support multi-author commits.
1660         The FSF cares about keeping track of all authors of patches to its
1661         projects, but Git doesn't provide obvious support for multi-author
1662         changesets. Consensus seems to be forming around the use of extra
1663         Signed-off-by inspired lines in the log message formatted as
1664         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1665         multi-author commits between version control systems.
1666         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1667         log message and output in standard ChangeLog multi-author format.
1668         Reported by Peter Rosin <peda@lysator.liu.se>
1669
1670 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1671             Bruno Haible  <bruno@clisp.org>
1672
1673         Fix some modules' file list.
1674         * modules/fstatat (Files): Add m4/lstat.m4.
1675         * modules/openat (Files): Likewise.
1676         * modules/unlinkat (Files): Likewise.
1677
1678 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1679
1680         maint.mk: fix tight-scope.mk generation in VPATH builds.
1681         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1682         reference with $(srcdir) so that the file is found correctly even
1683         when running `make syntax-check' in a VPATH build.
1684
1685 2011-11-13  Bruno Haible  <bruno@clisp.org>
1686             Jim Meyering  <meyering@redhat.com>
1687
1688         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1689         * tests/init.sh (compare): Remove "No differences encountered" or
1690         synonymous output from the 'diff' program.
1691
1692 2011-11-13  Bruno Haible  <bruno@clisp.org>
1693
1694         Makefile: Tweak indentation.
1695         * Makefile: Use tab as first character in every line that contains rule
1696         commands.
1697
1698 2011-11-13  Bruno Haible  <bruno@clisp.org>
1699
1700         Syntax check for copyright statements.
1701         * check-copyright: New file.
1702         * Makefile (sc_check_copyright): New rule.
1703
1704 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1705
1706         * build-aux/git-version-gen: Add --prefix to configure the tag
1707         match string.
1708
1709 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1710
1711         * build-aux/git-version-gen: Add --help and --version.
1712
1713 2011-11-12  Jim Meyering  <meyering@redhat.com>
1714
1715         revamp the other test-exclude?.sh scripts to use init.sh, too
1716         * tests/test-exclude1.sh: Use init.sh.
1717         * tests/test-exclude2.sh: Likewise.
1718         * tests/test-exclude3.sh: Likewise.
1719         * tests/test-exclude4.sh: Likewise.
1720         * tests/test-exclude5.sh: Likewise.
1721         * tests/test-exclude6.sh: Likewise.
1722         * tests/test-exclude7.sh: Likewise.
1723         * tests/test-exclude8.sh: Likewise.
1724         * modules/exclude-tests (Files): List init.sh.
1725
1726         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1727         These shell scripts ignored failure of the binary test-exclude,
1728         so making the latter return 77 didn't cause them to be skipped.
1729         * tests/test-exclude5.sh: Exit with test-exclude's error status
1730         when that program fails.  Revamp to use init.sh.
1731         * tests/test-exclude2.sh: Likewise.
1732
1733         test-exclude: fix a typo
1734         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1735
1736 2011-11-11  Bruno Haible  <bruno@clisp.org>
1737
1738         obstack: Fix compilation error on MSVC 9.
1739         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1740
1741 2011-11-11  Jim Meyering  <meyering@redhat.com>
1742
1743         test-exclude: skip tests rather than failing on deficient systems
1744         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1745         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1746         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1747         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1748
1749 2011-11-10  Bruno Haible  <bruno@clisp.org>
1750
1751         ptsname_r test: Avoid gcc warning on glibc systems.
1752         * tests/test-ptsname_r.c (null_ptr): New function.
1753         (test_errors): Use it.
1754
1755 2011-11-10  Bruno Haible  <bruno@clisp.org>
1756
1757         ptsname_r: Avoid compilation error on OSF/1 5.1.
1758         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1760         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1761         function is not declared or incompatibly declared.
1762         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1763         * modules/ptsname_r (Depends-on, configure.ac): Update.
1764         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1765
1766 2011-11-10  Bruno Haible  <bruno@clisp.org>
1767
1768         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1769         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1770         When cross-compiling, guess yes on all platforms except AIX.
1771         Reported by Ludovic Courtès <ludo@gnu.org>.
1772
1773 2011-11-09  Bruno Haible  <bruno@clisp.org>
1774
1775         ptsname_r tests: Fix bugs.
1776         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1777         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1778
1779 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1780
1781         fstatat: work with cross-compilation
1782         Problem reported by Ludovic Courtès in
1783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1784         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1785         "cross-compiling" and assume the bug is present.  Replace
1786         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1787         an inverted sense, to be more conservative about our assumptions.
1788         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1789
1790 2011-11-09  Bruno Haible  <bruno@clisp.org>
1791
1792         Improve MODULES.html output.
1793         * modules/mkfifoat (Description): Use the word "function".
1794         * modules/readlinkat (Description): Likewise.
1795         * modules/symlinkat (Description): Likewise.
1796
1797 2011-11-09  Eric Blake  <eblake@redhat.com>
1798
1799         ptsname_r-tests: new test module
1800         * modules/ptsname_r-tests: New module.
1801         * tests/test-ptsname_r.c: New file.
1802
1803         ptsname_r: new module
1804         * modules/ptsname_r: New module.
1805         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1806         * lib/ptsname.c (__ptsname_r): Split...
1807         * lib/ptsname_r.c: ...into new file.
1808         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1809         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1810         * modules/stdlib (Makefile.am): Substitute witnesses.
1811         * lib/stdlib.in.h (ptsname_r): Declare it.
1812         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1813         * MODULES.html.sh (Misc): Likewise.
1814         * modules/ptsname (Depends-on): Alter dependency.
1815         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1816
1817 2011-11-09  Jim Meyering  <meyering@redhat.com>
1818
1819         announce-gen: be more concise when there's only one URL+tarball
1820         * build-aux/announce-gen (get_tool_versions): When you distribute
1821         only one type of tarball, combine the first two "Here are..."
1822         sections and make the key-checking grammar independent of
1823         how many tarballs there are.
1824
1825 2011-11-09  Eric Blake  <eblake@redhat.com>
1826
1827         openpty: provide a stub on mingw
1828         * lib/pty.in.h (includes): Provide forward declarations.
1829         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1830
1831         raise: fix mingw handling of SIGPIPE
1832         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1833
1834 2011-11-08  Bruno Haible  <bruno@clisp.org>
1835
1836         More conditional dependencies.
1837         * modules/faccessat (Depends-on): Add conditions.
1838         * modules/fchmodat (Depends-on): Likewise.
1839         * modules/fchownat (Depends-on): Likewise.
1840         * modules/fstatat (Depends-on): Likewise.
1841         * modules/mkfifoat (Depends-on): Likewise.
1842         * modules/readlinkat (Depends-on): Likewise.
1843         * modules/symlinkat (Depends-on): Likewise.
1844         * modules/unlinkat (Depends-on): Likewise.
1845         * modules/utimensat (Depends-on): Likewise.
1846         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1847         * modules/linkat (Depends-on): Refine the conditions.
1848         * modules/renameat (Depends-on): Likewise.
1849
1850 2011-11-08  Bruno Haible  <bruno@clisp.org>
1851
1852         faccessat: Move AC_LIBOBJ invocation to module description.
1853         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1854         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1855         invocation from here...
1856         * modules/faccessat (configure.ac): ... to here. Invoke
1857         gl_PREREQ_FACCESSAT.
1858
1859 2011-11-08  Bruno Haible  <bruno@clisp.org>
1860
1861         faccessat: Simplify autoconf macro.
1862         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1863         gl_FUNC_EUIDACCESS.
1864
1865 2011-11-08  Bruno Haible  <bruno@clisp.org>
1866
1867         renameat: Fix dependencies.
1868         * modules/renameat (Depends-on): Add stdbool.
1869
1870 2011-11-08  Bruno Haible  <bruno@clisp.org>
1871
1872         mkfifoat: Fix module description.
1873         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1874         not gl_UNISTD_MODULE_INDICATOR.
1875
1876 2011-11-08  Bruno Haible  <bruno@clisp.org>
1877
1878         fstatat: Remove unused dependency.
1879         * modules/fstatat (Depends-on): Remove fstat.
1880
1881 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1882
1883         GNUmakefile: behave when Makefile is missing.
1884         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1885
1886 2011-11-08  Bruno Haible  <bruno@clisp.org>
1887
1888         openat: Conditionalize dependencies.
1889         * lib/openat.c: Reduce the scope of some #includes.
1890         * modules/openat (Depends-on): Add conditions.
1891
1892 2011-11-07  Jim Meyering  <meyering@redhat.com>
1893
1894         maint.mk: extract GPG key ID without using a temporary file
1895         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1896         without using a temporary file.  Based on a suggestion from Werner Koch
1897         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1898
1899 2011-11-07  Eric Blake  <eblake@redhat.com>
1900
1901         grantpt: fix typo
1902         * lib/stdlib.in.h (grantpt): Check correct function.
1903
1904         maint.mk: silence new syntax check
1905         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1906
1907 2011-11-06  Bruno Haible  <bruno@clisp.org>
1908
1909         Doc about floating-point and math API.
1910         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1911         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1912
1913 2011-11-06  Bruno Haible  <bruno@clisp.org>
1914
1915         stdalign tests: Skip the test when compiled by Sun C.
1916         * tests/test-stdalign.c (main): Skip the test on Sun C.
1917
1918 2011-11-06  Bruno Haible  <bruno@clisp.org>
1919
1920         ansi-c++-opt: Complete the 2011-06-05 change.
1921         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1922         does not support namespaces, set the variable to "no", not to ":".
1923
1924 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1927
1928 2011-11-06  Bruno Haible  <bruno@clisp.org>
1929
1930         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1931         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1932         (minus_zerol) [HP-UX]: New macro.
1933         (unary_minus) [HP-UX]: New function.
1934         (copysignl) [HP-UX]: Use unary_minus function.
1935
1936 2011-11-06  Bruno Haible  <bruno@clisp.org>
1937
1938         ldexp, ldexpf, ldexpl: Enhance tests.
1939         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1940         and tests/test-ldexpl.c.
1941         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1942         LDEXP, MIN_EXP, MAX_EXP): New macros.
1943         Include test-ldexp.h.
1944         (main): Just call test_function.
1945         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1946         infinity.h, nan.h.
1947         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1948         MAX_EXP): New macros.
1949         Include test-ldexp.h.
1950         (x, y): Remove variables.
1951         (main): Just call test_function.
1952         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1953         infinity.h, nan.h.
1954         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1955         MAX_EXP): New macros.
1956         Include test-ldexp.h.
1957         (x, y): Remove variables.
1958         (main): Just call test_function.
1959         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1960         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1961         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1962         (Depends-on): Add isnand-nolibm, signbit, float.
1963         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1964         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1965         (Depends-on): Add isnanf-nolibm, signbit, float.
1966
1967 2011-11-06  Bruno Haible  <bruno@clisp.org>
1968
1969         math tests: Cosmetics.
1970         * tests/test-math-c++.cc: Reorder declarations.
1971
1972 2011-11-05  Bruno Haible  <bruno@clisp.org>
1973
1974         fma*: Simplify test.
1975         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1976         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1977
1978         Tests for module 'fmal'.
1979         * modules/fmal-tests: New file.
1980         * tests/test-fmal1.c: New file.
1981         * tests/test-fmal2.c: New file.
1982
1983         New module 'fmal'.
1984         * lib/math.in.h (fmal): New declaration.
1985         * lib/fmal.c: New file.
1986         * m4/fmal.m4: New file.
1987         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1989         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1990         REPLACE_FMAL.
1991         * modules/fmal: New file.
1992         * doc/posix-functions/fmal.texi: Mention the new module and the various
1993         bugs.
1994
1995         Tests for module 'fmaf'.
1996         * modules/fmaf-tests: New file.
1997         * tests/test-fmaf1.c: New file.
1998         * tests/test-fmaf2.c: New file.
1999
2000         New module 'fmaf'.
2001         * lib/math.in.h (fmaf): New declaration.
2002         * lib/fmaf.c: New file.
2003         * m4/fmaf.m4: New file.
2004         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2006         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2007         REPLACE_FMAF.
2008         * modules/fmaf: New file.
2009         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2010         bugs.
2011
2012         Tests for module 'fma'.
2013         * modules/fma-tests: New file.
2014         * tests/test-fma1.c: New file.
2015         * tests/test-fma1.h: New file.
2016         * tests/test-fma2.c: New file.
2017         * tests/test-fma2.h: New file.
2018
2019         New module 'fma'.
2020         * lib/math.in.h (fma): New declaration.
2021         * lib/fma.c: New file.
2022         * m4/fma.m4: New file.
2023         * m4/fegetround.m4: New file.
2024         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2026         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2027         REPLACE_FMA.
2028         * modules/fma: New file.
2029         * doc/posix-functions/fma.texi: Mention the new module and the various
2030         bugs.
2031
2032         Extend gl_MATHFUNC.
2033         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2034         Support 'void' as argument type.
2035         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2036
2037 2011-11-05  Jim Meyering  <meyering@redhat.com>
2038
2039         maint.mk: also prohibit inclusion of dirent.h without use
2040         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2041
2042 2011-11-05  Bruno Haible  <bruno@clisp.org>
2043
2044         ldexpl tests: Avoid test failure on MSVC 9.
2045         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2046         value. Needed in order to enforce the conversion from a value greater
2047         than LDBL_MAX to Infinity.
2048
2049 2011-11-05  Bruno Haible  <bruno@clisp.org>
2050
2051         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2052         * modules/at-internal: New file, extracted from modules/openat.
2053         * modules/openat-h: New file.
2054         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2055         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2056         * modules/openat (Description): Add reference to POSIX function.
2057         (Files): Remove lib/openat.h, lib/openat-proc.c.
2058         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2059         intprops, unistd.
2060         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2061         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2062         gl_FCNTL_MODULE_INDICATOR.
2063         (Include): Remove unistd.h, openat.h.
2064         * modules/areadlinkat (Files): Add lib/at-func.c.
2065         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2066         openat-die, openat-h, save-cwd.
2067         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2068         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2069         openat-die, openat-h, save-cwd, unistd.
2070         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2071         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2072         openat-h, save-cwd. Remove fcntl-h, openat.
2073         * modules/fchmodat (Files): Remove lib/openat.h.
2074         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2075         openat, stdbool, unistd.
2076         * modules/fchownat (Files): Remove lib/openat.h.
2077         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2078         openat, stdbool, sys_stat.
2079         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2080         lib/openat-proc.c.
2081         (Depends-on): Add at-internal.
2082         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2083         * modules/fstatat (Files): Remove lib/openat.h.
2084         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2085         stdbool, unistd.
2086         * modules/fts (Depends-on): Add openat-h.
2087         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2088         openat.
2089         * modules/mkdirat (Files): Remove lib/openat.h.
2090         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2091         openat, stdbool, sys_stat.
2092         * modules/mkfifoat (Files): Add lib/at-func.c.
2093         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2094         openat-h, save-cwd. Remove fcntl-h, openat.
2095         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2096         * modules/readlinkat (Files): Add lib/at-func.c.
2097         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2098         openat-h, save-cwd. Remove fcntl-h, openat.
2099         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2100         openat.
2101         * modules/selinux-at (Files): Add lib/at-func.c.
2102         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2103         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2104         * modules/symlinkat (Files): Add lib/at-func.c.
2105         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2106         openat-h, save-cwd. Remove fcntl-h, openat.
2107         * modules/unlinkat (Files): Remove lib/openat.h.
2108         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2109         stdbool.
2110         * modules/utimensat (Files): Add lib/at-func.c.
2111         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2112         openat-die, openat-h, save-cwd.
2113         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2114         * modules/fdutimensat-tests (Depends-on): Add openat.
2115         * modules/fstatat-tests (Depends-on): Add openat-h.
2116         * modules/readlinkat-tests (Depends-on): Add openat.
2117         * modules/symlinkat-tests (Depends-on): Add openat.
2118
2119 2011-11-05  Bruno Haible  <bruno@clisp.org>
2120
2121         openat: Include <stdbool.h>.
2122         * lib/openat.c: Include <stdbool.h>.
2123
2124 2011-11-04  Bruno Haible  <bruno@clisp.org>
2125
2126         fchownat, renameat, unlinkat: Fix dependencies.
2127         * modules/fchownat (Depends-on): Add fstatat.
2128         * modules/renameat (Depends-on): Likewise.
2129         * modules/unlinkat (Depends-on): Likewise.
2130
2131 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         openat: remove direct dependency on dirent
2134         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2135         and hasn't been needed ever since fdopendir was split into its own
2136         module on 2009-08-31.
2137         * modules/openat (Depends-on): Remove dirent.
2138
2139 2011-11-04  Bruno Haible  <bruno@clisp.org>
2140
2141         renameat: Optimize code size.
2142         * modules/renameat (configure.ac): Don't compile at-func2.c if
2143         REPLACE_RENAMEAT is 1.
2144
2145 2011-11-04  Bruno Haible  <bruno@clisp.org>
2146
2147         openat tests: Fix file list.
2148         * modules/openat-tests (Files): Add tests/test-open.h.
2149
2150 2011-11-04  Bruno Haible  <bruno@clisp.org>
2151
2152         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2153         * modules/fchmodat (Depends-on): Add openat-die.
2154         * modules/fchownat (Depends-on): Likewise.
2155         * modules/linkat (Depends-on): Likewise.
2156         * modules/renameat (Depends-on): Likewise.
2157         * modules/openat (Depends-on): Add dirent.
2158
2159 2011-11-04  Jim Meyering  <meyering@redhat.com>
2160
2161         at-func*.c: fix comments
2162         * lib/at-func2.c: Correct/improve first-line comment.
2163         * lib/at-func.c: Correct grammar in first-line comment.
2164
2165 2011-11-04  Bruno Haible  <bruno@clisp.org>
2166
2167         New module 'mkdirat', split off from module 'openat'.
2168         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2169         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2170         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2171         * modules/mkdirat: New file, extracted from modules/openat.
2172         * modules/openat (Files): Remove lib/mkdirat.c.
2173         (Depends-on): Remove mkdir.
2174         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2175         (Include): Remove <sys/stat.h>.
2176         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2177         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2178         tests/test-mkdir.h.
2179         (Depends-on): Remove ignore-value.
2180         (Makefile.am): Remove rules for test-mkdirat.
2181         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2182         of module 'openat'.
2183         * NEWS: Mention the change.
2184
2185 2011-11-04  Bruno Haible  <bruno@clisp.org>
2186
2187         closedir: Avoid warning on mingw.
2188         * lib/closedir.c: Include <unistd.h>.
2189
2190 2011-11-04  Bruno Haible  <bruno@clisp.org>
2191
2192         New module 'fstatat', split off from module 'openat'.
2193         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2194         defined.
2195         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2196         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2197         gl_FUNC_FSTATAT.
2198         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2199         * modules/fstatat: New file, extracted from modules/openat.
2200         * modules/openat (Files): Remove lib/fstatat.c.
2201         (Depends-on): Remove lstat.
2202         (configure.ac): Remove AC_LIBOBJ of fstatat.
2203         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2204         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2205         tests/test-lstat.h, tests/test-stat.h.
2206         (Depends-on): Remove getcwd-lgpl.
2207         (Makefile.am): Remove rules for test-fstatat.
2208         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2209         of module 'openat'.
2210         * NEWS: Mention the change.
2211         * modules/getcwd (Depends-on): Add fstatat.
2212         * modules/linkat (Depends-on): Likewise.
2213         * modules/mkfifoat-tests (Depends-on): Likewise.
2214         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2215
2216 2011-11-03  Bruno Haible  <bruno@clisp.org>
2217
2218         New module 'unlinkat', split off from module 'openat'.
2219         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2220         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2221         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2222         * modules/unlinkat: New file, extracted from modules/openat. Correct
2223         the dependency conditions.
2224         * modules/openat (Files): Remove lib/unlinkat.c.
2225         (Depends-on): Remove rmdir, unlink.
2226         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2227         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2228         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2229         tests/test-rmdir.h, tests/test-unlink.h.
2230         (Depends-on): Remove unlinkdir.
2231         (Makefile.am): Remove rules for test-unlinkat.
2232         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2233         of module 'openat'.
2234         * NEWS: Mention the change.
2235         * modules/linkat-tests (Depends-on): Add unlinkat.
2236         * modules/mkfifoat-tests (Depends-on): Likewise.
2237         * modules/readlinkat-tests (Depends-on): Likewise.
2238
2239 2011-11-02  Bruno Haible  <bruno@clisp.org>
2240
2241         New module 'fchmodat', split off from module 'openat'.
2242         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2243         defined.
2244         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2245         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2246         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2247         * modules/fchmodat: New file, extracted from modules/openat.
2248         * modules/openat (Files): Remove lib/fchmodat.c.
2249         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2250         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2251         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2252         (Makefile.am): Remove rules for test-fchmodat.
2253         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2254         of module 'openat'.
2255         * NEWS: Mention the change.
2256
2257 2011-11-02  Jim Meyering  <meyering@redhat.com>
2258
2259         putenv: indent #definition of "environ" to placate cppi
2260         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2261
2262         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2263         Git logs are often treated as immutable, because editing them
2264         changes the SHA1 checksums of all descendants.  Thus, errors in
2265         git logs tend to stay there forever.  However, when we generate
2266         a ChangeLog file -- typically for distribution -- from that git log,
2267         we can actually make corrections in the generated file.  The key
2268         lies in recording in machine-readable/applicable form the desired
2269         corrections.  See --help for description and an example.
2270         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2271         (usage): Describe it; alphabetize option descriptions.
2272         (main): Honor the new option, carefully.
2273
2274 2011-11-01  Jim Meyering  <meyering@redhat.com>
2275
2276         gitlog-to-changelog: avoid an infloop
2277         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2278         that ends up being empty.
2279
2280 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2281
2282         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2283         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2284         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2285         contains (possibly-quoted) backslashes.  This should avoid
2286         all-too-common shell bugs if COMPLICATED contains backslashes in
2287         the "wrong" places.  Reported by David Evans in
2288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2289         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2290         because we want ASCII ranges.  Is there some reason we don't use
2291         the C locale everywhere in this script?
2292         (func_module, top level): Avoid unwanted pathname expansion when
2293         $repo_url_prefix or $repo_url_suffix_repl contain shell
2294         metacharacters like '?' and '*'.
2295
2296 2011-11-01  Bruno Haible  <bruno@clisp.org>
2297
2298         fchownat: Improve description.
2299         * modules/fchownat (Description): Add link to function.
2300
2301 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2302
2303         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2304         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2306         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2307
2308 2011-11-01  Bruno Haible  <bruno@clisp.org>
2309
2310         alignof: Avoid collision with stdalign module.
2311         * lib/alignof.h (alignof): Remove macro.
2312         * NEWS: Mention the change.
2313         Reported by Paul Eggert.
2314
2315 2011-11-01  Bruno Haible  <bruno@clisp.org>
2316
2317         New module 'fchownat', split off from module 'openat'.
2318         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2319         defined.
2320         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2321         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2322         invoke gl_FUNC_FCHOWNAT.
2323         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2324         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2325         * modules/fchownat: New file, extracted from modules/openat.
2326         * modules/openat (Files): Remove lib/fchownat.c.
2327         (Depends-on): Remove lchown.
2328         (configure.ac): Remove AC_LIBOBJ of fchownat.
2329         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2330         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2331         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2332         (Depends-on): Remove mgetgroups, usleep, stat-time.
2333         (configure.ac): Remove test for getegid.
2334         (Makefile.am): Remove rules for test-fchownat.
2335         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2336         of module 'openat'.
2337         * NEWS: Mention the change.
2338
2339 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2340
2341         stdalign: port better to MSVC and to Sun C 5.11
2342         This fixes some of the problems reported by Bruno Haible in
2343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2344         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2345         shortcomings of MSVC and of Sun C 5.11.
2346         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2347         around __declspec arg.
2348         * modules/stdalign-tests (Files): Add tests/macros.h.
2349         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2350         Include macros.h, for ASSERT.
2351         (DECLARE_ALIGNED): Remove.
2352         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2353         to catch bug), and to 1 if not (simplifies the rest of the code).
2354         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2355         (CHECK_AUTO): Remove.
2356         (CHECK_ALIGNED): Check only the alignment of the static vars,
2357         since auto var alignment isn't supported by Sun C 5.11.
2358         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2359         ASSERT failures are easier to diagnose.
2360
2361 2011-10-31  Bruno Haible  <bruno@clisp.org>
2362
2363         doc about some IRIX 5.3 problems.
2364         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2365         on IRIX 5.3.
2366         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2367         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2368         5.3.
2369         * doc/posix-functions/grantpt.texi: Likewise.
2370         * doc/posix-functions/unlockpt.texi: Likewise.
2371         * doc/posix-functions/lgamma.texi: Likewise.
2372         * doc/posix-functions/nextafter.texi: Likewise.
2373         * doc/posix-functions/remainder.texi: Likewise.
2374         * doc/posix-functions/select.texi: Mention misplaced declaration on
2375         IRIX 5.3.
2376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2377
2378 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2379
2380         gitlog-to-changelog: fix git-log invocation.
2381         git-log mishandles date strings before 1970-01-01 UTC, and there is
2382         no use to specify --since=1970-01-01 by default anyway.
2383         * build-aux/gitlog-to-changelog: By default, when no --since option
2384         was given, do not specify explicit --since option to git-log.
2385
2386 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2387
2388         gitlog-to-changelog: new option --append-dot.
2389         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2390         first non-blank line of each commit message terminated with a dot.
2391
2392 2011-10-30  Bruno Haible  <bruno@clisp.org>
2393
2394         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2395         * lib/ffsl.h: Include <config.h>.
2396         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2397
2398 2011-10-30  Jim Meyering  <meyering@redhat.com>
2399
2400         GNUmakefile: reenable "make syntax-check" for most projects
2401         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2402         build-aux variable", "syntax-check" would do nothing but succeed with
2403         the "No version control files detected..." diagnostic (unless you
2404         happened to override _build-aux via cfg.mk).
2405         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2406         to precede inclusion of maint.mk.  Otherwise, these variables would
2407         be used undefined in any project that does not override the default.
2408
2409 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2410
2411         gitlog-to-changelog: treat a message with only blank lines as empty.
2412         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2413         trailing blank lines before the code that issues a warning about an
2414         empty commit message.
2415
2416 2011-10-30  Jim Meyering  <meyering@redhat.com>
2417
2418         test-parse-datetime.c: avoid new DST-related false positive test failure
2419         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2420         based on the time/date we'll convert, not the current time.
2421         Otherwise, the moment we cross a DST boundary like today's in
2422         Europe, (CEST to CET), that offset ends up being one hour off.
2423
2424 2011-10-27  Bruno Haible  <bruno@clisp.org>
2425
2426         fstat: Tweak documentation.
2427         * modules/fstat (Description): More precise description.
2428
2429 2011-10-27  Bruno Haible  <bruno@clisp.org>
2430
2431         Update documentation regarding 'largefile' module.
2432         * doc/posix-functions/fstat.texi: Tweak wording.
2433         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2434         problems with huge directories and/or small ino_t types.
2435         * doc/posix-functions/readdir.texi: Likewise.
2436         * doc/posix-functions/rewinddir.texi: Likewise.
2437
2438 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2439
2440         maint.mk: don't maintain a second build-aux variable.
2441         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2442         depends on GNUmakefile, which already maintains a cfg.mk
2443         overridable $(_build-aux) for projects with a non-standard
2444         build-aux directory location, although without the $(srcdir)
2445         prefix.  Use that variable consistently instead of introducing a
2446         second one.  Adjust all call sites.
2447
2448 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2449
2450         Add stdalign module and use it in other modules.
2451         This is based on a previous proposal by Bruno Haible
2452         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2453
2454         stdalign: new module
2455         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2456         * modules/stdalign: New files.
2457         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2458         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2459
2460         stdalign-tests: new module
2461         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2462
2463         argp: use stdalign
2464         * lib/argp-parse.c: Include <stdalign.h>.
2465         (alignof): Remove.
2466         * modules/argp (Depends-on): Add stdalign.
2467
2468         crypto libraries: use stdalign
2469         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2470         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2471         Do not include <stdlib.h> twice, in md4.c.
2472         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2473         because we are accessing a pointer's bit-pattern, not a size.
2474         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2475         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2476         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2477         * modules/crypto/sha512: Likewise.
2478
2479         sys_socket: use stdalign, not alignof
2480         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2481         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2482
2483 2011-10-27  Bruno Haible  <bruno@clisp.org>
2484
2485         raise test: Avoid a test failure on Linux/MIPS.
2486         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2487         because 99 is a valid signal on Linux/MIPS.
2488
2489 2011-10-27  Bruno Haible  <bruno@clisp.org>
2490
2491         nonblocking tests: Fix test failure on Linux/MIPS.
2492         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2493         Set to 270000.
2494
2495 2011-10-27  Bruno Haible  <bruno@clisp.org>
2496
2497         utimensat: Work around problem on Linux/hppa.
2498         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2499         values.
2500         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2501
2502 2011-10-25  Jim Meyering  <meyering@redhat.com>
2503
2504         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2505         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2506         after symbols like NULL, size_t, etc.
2507         Reported by Alfred M. Szmidt.
2508
2509         maint.mk: exempt ENODATA from a syntax-check rule
2510         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2511         from the sc_prohibit_always-defined_macros syntax-check rule.
2512         Add a comment.  See this for more details:
2513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2514
2515 2011-10-23  Jim Meyering  <meyering@redhat.com>
2516
2517         fts: close parent dir FD before returning from post-traversal fts_read
2518         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2519         unlink A, even though an FD open on A remained.  This is suboptimal
2520         (holding a file descriptor open longer than needed), but otherwise not
2521         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2522         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2523         that represents a real problem: it causes the removal of A to fail
2524         with e.g., "rm: cannot remove `A': Device or resource busy"
2525
2526         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2527         directory file descriptors.  After completing the final, FTS_DP,
2528         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2529         cache, but then proceeded to add a new FD to it via the subsequent
2530         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2531         final file descriptor would be closed only via fts_close's call to
2532         fd_ring_clear.  Now, it is usually closed earlier, via the final
2533         FTS_DP-returning fts_read call.
2534         * lib/fts.c (restore_initial_cwd): New function, converted from
2535         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2536         Update callers.
2537         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2538         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2539
2540 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2541             Bruno Haible  <bruno@clisp.org>
2542             Jim Meyering  <jim@meyering.net>
2543
2544         readme-release: improve safety of release prep instructions.
2545         * README-release: Don't git pull all branches when only master
2546         is needed for the release process.
2547         Run make maintainer-clean before changing trees and merging.
2548         Don't try to run ./configure right after git pull in case files
2549         that influence the bootstrap process have changed, move the
2550         ./configure step to after running ./bootstrap.
2551         Don't bootstrap "one last time"... it's the first time!
2552
2553 2011-10-22  Bruno Haible  <bruno@clisp.org>
2554
2555         errno, strerror-override: Support for MSVC 10.
2556         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2557         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2558         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2559         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2560         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2561         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2562         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2563         Assign values compatible with MSVC 10.
2564         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2565         New macros.
2566         (GNULIB_defined_EWINSOCK): New macro.
2567         * lib/strerror-override.c (strerror_override): Update accordingly.
2568         * lib/strerror-override.h: Likewise.
2569         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2570         longer equal to the corresponding errno value.
2571         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2572
2573 2011-10-22  Bruno Haible  <bruno@clisp.org>
2574
2575         perror: Recognize when test program crashes.
2576         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2577         strerror, set gl_cv_func_perror_works to no.
2578         Reported by Daniel Richard G. <skunk@iskunk.org>.
2579
2580         perror: Fix indentation.
2581         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2582
2583 2011-10-22  Bruno Haible  <bruno@clisp.org>
2584
2585         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2586         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2587         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2588         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2589         functions, not as a macro.
2590         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2591         macros.
2592         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2593         absence of macro.
2594         Suggested by Eric Blake.
2595         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2596
2597 2011-10-21  Bruno Haible  <bruno@clisp.org>
2598
2599         relocatable-prog-wrapper: Don't leave object files behind.
2600         * build-aux/install-reloc: Re-synchronize list of .o files to be
2601         removed with list of compilation units.
2602
2603 2011-10-20  Bruno Haible  <bruno@clisp.org>
2604
2605         openpty, posix_openpt: Remove code duplication.
2606         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2607         * lib/openpty.c: Include <stdlib.h>.
2608         (openpty): Use posix_openpt on all platforms except IRIX.
2609         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2610
2611 2011-10-20  Bruno Haible  <bruno@clisp.org>
2612
2613         unlockpt: Detect invalid argument.
2614         * lib/unlockpt.c: Include <fcntl.h>.
2615         (unlockpt): Check whether fd is valid, using fcntl().
2616         * modules/unlockpt (Depends-on): Add fcntl-h.
2617
2618 2011-10-20  Bruno Haible  <bruno@clisp.org>
2619
2620         openpty: Avoid compilation error on AIX 6.1.
2621         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2622
2623 2011-10-20  Bruno Haible  <bruno@clisp.org>
2624
2625         posix_openpt: Support for OpenBSD.
2626         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2627         (posix_openpt) [OpenBSD]: New code.
2628         * lib/grantpt.c: Include <fcntl.h>.
2629         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2630         * modules/grantpt (Depends-on): Add fcntl-h.
2631
2632 2011-10-20  Bruno Haible  <bruno@clisp.org>
2633
2634         posix_openpt test: Coding style.
2635         * tests/test-posix_openpt.c: Use GNU coding style.
2636
2637 2011-10-20  Bruno Haible  <bruno@clisp.org>
2638
2639         grantpt: Support --avoid=pt_chown.
2640         * modules/grantpt (Files): Add lib/pty-private.h.
2641
2642 2011-10-20  Bruno Haible  <bruno@clisp.org>
2643
2644         posix_openpt: Fix autoconf macro.
2645         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2646         unneeded check for _getpty.
2647
2648 2011-10-20  Bruno Haible  <bruno@clisp.org>
2649
2650         openpty: Update comments.
2651         * lib/openpty.c: Add comments about Minix.
2652
2653 2011-10-19  Eric Blake  <eblake@redhat.com>
2654
2655         openpty: relax license
2656         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2657
2658         pt_chown: use configmake to simplify build
2659         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2660
2661         ptsname and others: relax license
2662         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2663         * modules/unlockpt (License): Likewise.
2664         * modules/pt_chown (License): Likewise.
2665         * modules/ptsname (License): Likewise.
2666         * modules/ttyname_r (License): Likewise.
2667
2668 2011-10-19  Jim Meyering  <meyering@redhat.com>
2669
2670         posix_openpt: remove spurious #endif
2671         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2672
2673 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2674
2675         maint.mk: Respect $(build_aux) in web-manual rule.
2676         * top/maint.mk (web-manual): Find gen-announce script in user's
2677         $(build_aux) directory instead of hard-coding 'build-aux'.
2678
2679 2011-10-19  Bruno Haible  <bruno@clisp.org>
2680
2681         posix_openpt: Fix compilation error.
2682         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2683         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2684         Mention the openpty module as an alternative.
2685
2686 2011-10-19  Bruno Haible  <bruno@clisp.org>
2687
2688         Support for old NeXTstep 3.3 frexp().
2689         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2690         execution time of the test to 5 seconds.
2691         Reported by Daniel Richard G. <skunk@iskunk.org>.
2692
2693 2011-10-19  Bruno Haible  <bruno@clisp.org>
2694
2695         Support for old NeXTstep 3.3 sed.
2696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2697         part, use /.../, not \|...|. Escape periods in the header file name.
2698         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2699         Reported by Daniel Richard G. <skunk@iskunk.org>.
2700
2701 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2702
2703         Support for old NeXTstep 3.3 gcc.
2704         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2705         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2706         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2707         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2708         * lib/regex.h (_Restrict_arr_): Likewise.
2709         * lib/regex_internal.h (re_token_t): Likewise.
2710         * lib/regexec.c (check_node_accept_bytes): Likewise.
2711         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2712
2713 2011-10-18  Eric Blake  <eblake@redhat.com>
2714
2715         posix_openpt: new module
2716         * modules/posix_openpt: New module.
2717         * m4/posix_openpt.m4: New file.
2718         * lib/posix_openpt.c: Likewise.
2719         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2720         (gl_STDLIB_H_DEFAULTS): Set defaults.
2721         * modules/stdlib (Makefile.am): Substitute macros.
2722         * lib/stdlib.in.h (posix_openpt): Declare.
2723         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2724         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2725         * modules/posix_openpt-tests: New test module.
2726         * tests/test-posix_openpt.c: New test.
2727
2728 2011-10-15  Bruno Haible  <bruno@clisp.org>
2729
2730         xstrtoll: Fix compilation failure.
2731         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2732         from lib/strtol.c.
2733         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2734         some platforms.
2735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2736
2737 2011-10-15  Bruno Haible  <bruno@clisp.org>
2738
2739         vasnprintf: Optimize bit search operation.
2740         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2742         gl_DOUBLE_EXPONENT_LOCATION.
2743         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2744         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2745         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2746         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2747         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2748         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2749         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2750         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2751         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2752
2753 2011-10-15  Bruno Haible  <bruno@clisp.org>
2754
2755         vasnprintf: Fix comments.
2756         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2757
2758 2011-10-14  Bruno Haible  <bruno@clisp.org>
2759
2760         Tests for module 'integer_length_ll'.
2761         * modules/integer_length_ll-tests: New file.
2762         * tests/test-integer_length_ll.c: New file.
2763
2764         New module 'integer_length_ll'.
2765         * lib/integer_length_ll.c: New file.
2766         * modules/integer_length_ll: New file.
2767
2768 2011-10-14  Bruno Haible  <bruno@clisp.org>
2769
2770         Tests for module 'integer_length_l'.
2771         * modules/integer_length_l-tests: New file.
2772         * tests/test-integer_length_l.c: New file.
2773
2774         New module 'integer_length_l'.
2775         * lib/integer_length_l.c: New file.
2776         * modules/integer_length_l: New file.
2777
2778 2011-10-14  Bruno Haible  <bruno@clisp.org>
2779
2780         Tests for module 'integer_length'.
2781         * modules/integer_length-tests: New file.
2782         * tests/test-integer_length.c: New file.
2783
2784         New module 'integer_length'.
2785         * lib/integer_length.h: New file.
2786         * lib/integer_length.c: New file.
2787         * modules/integer_length: New file.
2788
2789 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2790
2791         popen: Fix dependency conditions.
2792         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2793
2794 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2795
2796         perror: Fix autoconf test.
2797         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2798         <stdlib.h> and <string.h>.
2799
2800 2011-10-14  Bruno Haible  <bruno@clisp.org>
2801
2802         ffsl: Optimize on 64-bit platforms.
2803         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2804         unrolling.
2805
2806 2011-10-13  Bruno Haible  <bruno@clisp.org>
2807
2808         ffsl: Optimize on 32-bit platforms.
2809         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2810         use ffs() without a loop.
2811
2812         ffsl, ffsll: Optimize for GCC.
2813         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2814         * lib/ffsl.c (GCC_BUILTIN): New macro.
2815         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2816
2817 2011-10-13  Bruno Haible  <bruno@clisp.org>
2818
2819         ffs, bcopy, memset: Support symbol renaming via config.h.
2820         * lib/ffs.c: Include <config.h>.
2821         * lib/bcopy.c: Likewise.
2822         * lib/memset.c: Likewise.
2823
2824 2011-10-10  Bruno Haible  <bruno@clisp.org>
2825
2826         atanl: Simplify for platforms where 'long double' == 'double'.
2827         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2828         alternative implementation.
2829         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2830         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2831         * modules/atanl (Depends-on): Add atan. Update conditions.
2832
2833 2011-10-10  Bruno Haible  <bruno@clisp.org>
2834
2835         acosl: Simplify for platforms where 'long double' == 'double'.
2836         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2837         alternative implementation.
2838         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2839         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2840         * modules/acosl (Depends-on): Add acos. Update conditions.
2841
2842 2011-10-10  Bruno Haible  <bruno@clisp.org>
2843
2844         asinl: Simplify for platforms where 'long double' == 'double'.
2845         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2846         alternative implementation.
2847         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2848         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2849         * modules/asinl (Depends-on): Add asin. Update conditions.
2850
2851 2011-10-10  Bruno Haible  <bruno@clisp.org>
2852
2853         tanl: Simplify for platforms where 'long double' == 'double'.
2854         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2855         implementation.
2856         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2857         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2858         * modules/tanl (Depends-on): Add tan. Update conditions.
2859         (configure.ac): Don't compile trigl.c if
2860         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2861
2862 2011-10-10  Bruno Haible  <bruno@clisp.org>
2863
2864         cosl: Simplify for platforms where 'long double' == 'double'.
2865         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2866         implementation.
2867         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2868         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2869         * modules/cosl (Depends-on): Add cos. Update conditions.
2870         (configure.ac): Don't compile sincosl.c and trigl.c if
2871         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2872
2873 2011-10-10  Bruno Haible  <bruno@clisp.org>
2874
2875         sinl: Simplify for platforms where 'long double' == 'double'.
2876         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2877         implementation.
2878         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2879         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2880         * modules/sinl (Depends-on): Add sin. Update conditions.
2881         (configure.ac): Don't compile sincosl.c and trigl.c if
2882         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2883
2884 2011-10-10  Bruno Haible  <bruno@clisp.org>
2885
2886         logl: Simplify for platforms where 'long double' == 'double'.
2887         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2888         implementation.
2889         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2890         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2891         * modules/logl (Depends-on): Add log. Update conditions.
2892
2893 2011-10-10  Bruno Haible  <bruno@clisp.org>
2894
2895         expl: Simplify for platforms where 'long double' == 'double'.
2896         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2897         implementation.
2898         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2899         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2900         * modules/expl (Depends-on): Add exp. Update conditions.
2901
2902 2011-10-10  Bruno Haible  <bruno@clisp.org>
2903
2904         sqrtl: Simplify for platforms where 'long double' == 'double'.
2905         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2906         alternative implementation.
2907         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2908         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2909         * modules/sqrtl (Depends-on): Update conditions.
2910
2911 2011-10-10  Bruno Haible  <bruno@clisp.org>
2912
2913         ldexpl: Simplify for platforms where 'long double' == 'double'.
2914         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2915         alternative implementation.
2916         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2917         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2918         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2919
2920 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2921
2922         ffsll: set correct witness
2923         * modules/ffsll (configure.ac): Fix typo.
2924
2925 2011-10-10  Bruno Haible  <bruno@clisp.org>
2926
2927         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2928         * lib/printf-frexpl.c: Include <config.h>.
2929         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2930         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2931         second time.
2932         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2933         gl_LONG_DOUBLE_VS_DOUBLE.
2934         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2935         conditions.
2936
2937 2011-10-10  Bruno Haible  <bruno@clisp.org>
2938
2939         frexpl: Simplify for platforms where 'long double' == 'double'.
2940         * lib/frexpl.c: Include <config.h>.
2941         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2942         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2943         time.
2944         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2945         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2946         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2947         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2948         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2949         conditions.
2950
2951 2011-10-10  Jim Meyering  <meyering@redhat.com>
2952
2953         test-renameat: don't leave behind a temporary file
2954         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2955           ERROR: files left in build directory after distclean:
2956           ./gltests/test-renameat.too
2957           make[1]: *** [distcleancheck] Error 1
2958         Reported by Tom G. Christensen.
2959
2960 2011-10-09  Bruno Haible  <bruno@clisp.org>
2961
2962         rint: Determine RINT_LIBM correctly on AIX 7.
2963         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2964         directly, not only through a function pointer. Also accept an optional
2965         4th argument with extra code.
2966         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2967         rintf() call by gcc when optimizing.
2968
2969         mathfunc.m4: Refactor.
2970         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2971         m4 variable.
2972
2973 2011-10-09  Bruno Haible  <bruno@clisp.org>
2974
2975         rintl: Simplify for platforms where 'long double' == 'double'.
2976         * lib/rintl.c: Include <config.h>.
2977         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2978         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2979         time.
2980         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2981         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2982         * modules/rintl (Depends-on): Add rint. Update conditions.
2983
2984 2011-10-09  Bruno Haible  <bruno@clisp.org>
2985
2986         roundl: Simplify for platforms where 'long double' == 'double'.
2987         * lib/roundl.c: Include <config.h>.
2988         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2989         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2990         time.
2991         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2992         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2993         * modules/roundl (Depends-on): Add round. Update conditions.
2994
2995 2011-10-09  Bruno Haible  <bruno@clisp.org>
2996
2997         truncl: Simplify for platforms where 'long double' == 'double'.
2998         * lib/truncl.c: Include <config.h>.
2999         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3000         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3001         time.
3002         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3003         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3004         * modules/truncl (Depends-on): Add trunc. Update conditions.
3005
3006 2011-10-09  Bruno Haible  <bruno@clisp.org>
3007
3008         ceill: Simplify for platforms where 'long double' == 'double'.
3009         * lib/ceill.c: Include <config.h>.
3010         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3011         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3012         time.
3013         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3014         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3015         * modules/ceill (Depends-on): Add ceil. Update conditions.
3016
3017 2011-10-09  Bruno Haible  <bruno@clisp.org>
3018
3019         floorl: Simplify for platforms where 'long double' == 'double'.
3020         * lib/floorl.c: Include <config.h>.
3021         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3022         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3023         time.
3024         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3025         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3026         * modules/floorl (Depends-on): Add floor. Update conditions.
3027
3028 2011-10-09  Bruno Haible  <bruno@clisp.org>
3029
3030         rint: Fix ordering constraints.
3031         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3032         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3033         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3034
3035 2011-10-09  Bruno Haible  <bruno@clisp.org>
3036
3037         copysignl: Simplify for platforms where 'long double' == 'double'.
3038         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3039         alternative.
3040         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3041         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3042         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3043
3044 2011-10-09  Bruno Haible  <bruno@clisp.org>
3045
3046         Tests for module 'rintl'.
3047         * modules/rintl-tests: New file.
3048         * tests/test-rintl.c: New file.
3049
3050         New module 'rintl'.
3051         * lib/math.in.h (rintl): New declaration.
3052         * lib/rintl.c: New file.
3053         * m4/rintl.m4: New file.
3054         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3056         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3057         * modules/rintl: New file.
3058         * tests/test-math-c++.cc: Check the declaration of rintl.
3059         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3060         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3061         * doc/posix-functions/rintl.texi: Mention the new module.
3062
3063 2011-10-09  Bruno Haible  <bruno@clisp.org>
3064
3065         Tests for module 'rintf'.
3066         * modules/rintf-tests: New file.
3067         * tests/test-rintf.c: New file.
3068
3069         New module 'rintf'.
3070         * lib/math.in.h (rintf): New declaration.
3071         * lib/rintf.c: New file.
3072         * m4/rintf.m4: New file.
3073         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3075         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3076         * modules/rintf: New file.
3077         * tests/test-math-c++.cc: Check the declaration of rintf.
3078         * doc/posix-functions/rintf.texi: Mention the new module.
3079
3080 2011-10-09  Bruno Haible  <bruno@clisp.org>
3081
3082         rint: Support for MSVC.
3083         * lib/math.in.h (rint): New declaration.
3084         * lib/rint.c: New file.
3085         * m4/rint.m4: New file.
3086         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3088         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3089         * modules/rint (Description): Fix.
3090         (Files): Add lib/rint.c, m4/rint.m4.
3091         (Depends-on): Add math.
3092         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3093         gl_MATH_MODULE_INDICATOR.
3094         * tests/test-math-c++.cc: Check the declaration of rint.
3095         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3096         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3097         * doc/posix-functions/rint.texi: Mention the replacement provided by
3098         the module.
3099
3100         rint tests: More tests.
3101         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3102         minus-zero.h, infinity.h, nan.h.
3103         (main): Skip the test if the current rounding mode is not standard. Add
3104         tests for negative numbers, minus zero, infinity, NaN.
3105         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3106         tests/nan.h.
3107         (Depends-on): Add isnand-nolibm.
3108
3109 2011-10-09  Bruno Haible  <bruno@clisp.org>
3110
3111         Tests for module 'copysignl'.
3112         * modules/copysignl-tests: New file.
3113         * tests/test-copysignl.c: New file.
3114
3115         New module 'copysignl'.
3116         * lib/math.in.h (copysignl): New declaration.
3117         * lib/copysignl.c: New file.
3118         * m4/copysignl.m4: New file.
3119         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3121         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3122         HAVE_COPYSIGNL.
3123         * modules/copysignl: New file.
3124         * tests/test-math-c++.cc: Check the declaration of copysignl.
3125         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3126         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3127         * doc/posix-functions/copysignl.texi: Mention the new module.
3128
3129 2011-10-09  Bruno Haible  <bruno@clisp.org>
3130
3131         Tests for module 'copysignf'.
3132         * modules/copysignf-tests: New file.
3133         * tests/test-copysignf.c: New file.
3134
3135         New module 'copysignf'.
3136         * lib/math.in.h (copysignf): New declaration.
3137         * lib/copysignf.c: New file.
3138         * m4/copysignf.m4: New file.
3139         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3141         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3142         HAVE_COPYSIGNF.
3143         * modules/copysignf: New file.
3144         * tests/test-math-c++.cc: Check the declaration of copysignf.
3145         * doc/posix-functions/copysignf.texi: Mention the new module.
3146
3147 2011-10-09  Bruno Haible  <bruno@clisp.org>
3148
3149         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3150         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3151         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3152         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3154         gl_SIGNAL_H_DEFAULTS.
3155
3156 2011-10-09  Bruno Haible  <bruno@clisp.org>
3157
3158         poll: Make macro safer.
3159         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3160         ac_cv_header_poll_h is not set.
3161
3162 2011-10-09  Bruno Haible  <bruno@clisp.org>
3163
3164         copysign: Provide replacement.
3165         * lib/math.in.h (copysign): New declaration.
3166         * lib/copysign.c: New file.
3167         * m4/copysign.m4: New file.
3168         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3170         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3171         HAVE_COPYSIGN.
3172         * modules/copysign (Description): Clarify.
3173         (Files): Add lib/copysign.c, m4/copysign.m4.
3174         (Depends-on): Add math, signbit.
3175         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3176         gl_MATH_MODULE_INDICATOR.
3177         * tests/test-math-c++.cc: Check the declaration of copysign.
3178         * doc/posix-functions/copysign.texi: Mention the effects of the module
3179         on Minix and MSVC.
3180
3181 2011-10-09  Bruno Haible  <bruno@clisp.org>
3182
3183         isinf: Ensure macro on AIX 5.1.
3184         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3185         macro.
3186         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3187
3188 2011-10-09  Bruno Haible  <bruno@clisp.org>
3189
3190         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3191         * modules/snprintf-posix-tests (configure.ac): Require
3192         gl_LONG_DOUBLE_VS_DOUBLE.
3193         * modules/sprintf-posix-tests (configure.ac): Likewise.
3194         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3195         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3196         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3197         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3198         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3199         tests on platforms where 'long double' is the same as 'double'.
3200         * tests/test-sprintf-posix.h (test_function): Likewise.
3201         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3202         * tests/test-vasprintf-posix.c (test_function): Likewise.
3203
3204         *printf: Fix for platforms where 'long double' == 'double'.
3205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3206         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3207         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3208         * modules/fprintf-posix (Files): Likewise.
3209         * modules/obstack-printf-posix (Files): Likewise.
3210         * modules/snprintf-posix (Files): Likewise.
3211         * modules/sprintf-posix (Files): Likewise.
3212         * modules/vasnprintf (Files): Likewise.
3213         * modules/vasnprintf-posix (Files): Likewise.
3214         * modules/vasprintf-posix (Files): Likewise.
3215         * modules/vdprintf-posix (Files): Likewise.
3216         * modules/vfprintf-posix (Files): Likewise.
3217         * modules/vsnprintf-posix (Files): Likewise.
3218         * modules/vsprintf-posix (Files): Likewise.
3219         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3220         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3221         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3222         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3223         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3224         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3225         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3226
3227         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3228         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3229         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3230         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3231         'long double'.
3232         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3233
3234         isinf: Fix for platforms where 'long double' == 'double'.
3235         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3236         Don't blindly assume 80-bit 'long double'.
3237
3238         isfinite: Fix for platforms where 'long double' == 'double'.
3239         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3240         Don't blindly assume 80-bit 'long double'.
3241
3242         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3243         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3244         * modules/isfinite-tests (configure.ac): Require
3245         gl_LONG_DOUBLE_VS_DOUBLE.
3246         * modules/isinf-tests (configure.ac): Likewise.
3247         * modules/isnan-tests (configure.ac): Likewise.
3248         * modules/isnanl-tests (configure.ac): Likewise.
3249         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3250         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3251         tests on platforms where 'long double' is the same as 'double'.
3252         * tests/test-isinf.c (test_isinfl): Likewise.
3253         * tests/test-isnan.c (test_long_double): Likewise.
3254         * tests/test-isnanl.h (main): Likewise.
3255
3256 2011-10-08  Bruno Haible  <bruno@clisp.org>
3257
3258         Tests for module 'tanhf'.
3259         * modules/tanhf-tests: New file.
3260         * tests/test-tanhf.c: New file.
3261
3262         New module 'tanhf'.
3263         * lib/math.in.h (tanhf): New declaration.
3264         * lib/tanhf.c: New file.
3265         * m4/tanhf.m4: New file.
3266         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3268         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3269         * modules/tanhf: New file.
3270         * tests/test-math-c++.cc: Check the declaration of tanhf.
3271         * doc/posix-functions/tanhf.texi: Mention the new module.
3272
3273         tanh: Use a .m4 file.
3274         * m4/tanh.m4: New file.
3275         * modules/tanh (Files): Add it.
3276         (configure.ac): Just invoke gl_FUNC_TANH.
3277
3278 2011-10-08  Bruno Haible  <bruno@clisp.org>
3279
3280         Tests for module 'coshf'.
3281         * modules/coshf-tests: New file.
3282         * tests/test-coshf.c: New file.
3283
3284         New module 'coshf'.
3285         * lib/math.in.h (coshf): New declaration.
3286         * lib/coshf.c: New file.
3287         * m4/coshf.m4: New file.
3288         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3290         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3291         * modules/coshf: New file.
3292         * tests/test-math-c++.cc: Check the declaration of coshf.
3293         * doc/posix-functions/coshf.texi: Mention the new module.
3294
3295         cosh: Use a .m4 file.
3296         * m4/cosh.m4: New file.
3297         * modules/cosh (Files): Add it.
3298         (configure.ac): Just invoke gl_FUNC_COSH.
3299
3300 2011-10-08  Bruno Haible  <bruno@clisp.org>
3301
3302         Tests for module 'sinhf'.
3303         * modules/sinhf-tests: New file.
3304         * tests/test-sinhf.c: New file.
3305
3306         New module 'sinhf'.
3307         * lib/math.in.h (sinhf): New declaration.
3308         * lib/sinhf.c: New file.
3309         * m4/sinhf.m4: New file.
3310         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3312         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3313         * modules/sinhf: New file.
3314         * tests/test-math-c++.cc: Check the declaration of sinhf.
3315         * doc/posix-functions/sinhf.texi: Mention the new module.
3316
3317         sinh: Use a .m4 file.
3318         * m4/sinh.m4: New file.
3319         * modules/sinh (Files): Add it.
3320         (configure.ac): Just invoke gl_FUNC_SINH.
3321
3322 2011-10-08  Bruno Haible  <bruno@clisp.org>
3323
3324         Tests for module 'atan2f'.
3325         * modules/atan2f-tests: New file.
3326         * tests/test-atan2f.c: New file.
3327
3328         New module 'atan2f'.
3329         * lib/math.in.h (atan2f): New declaration.
3330         * lib/atan2f.c: New file.
3331         * m4/atan2f.m4: New file.
3332         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3334         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3335         * modules/atan2f: New file.
3336         * tests/test-math-c++.cc: Check the declaration of atan2f.
3337         * doc/posix-functions/atan2f.texi: Mention the new module.
3338
3339         atan2: Use a .m4 file.
3340         * m4/atan2.m4: New file.
3341         * modules/atan2 (Files): Add it.
3342         (configure.ac): Just invoke gl_FUNC_ATAN2.
3343
3344 2011-10-08  Bruno Haible  <bruno@clisp.org>
3345
3346         Tests for module 'atanf'.
3347         * modules/atanf-tests: New file.
3348         * tests/test-atanf.c: New file.
3349
3350         New module 'atanf'.
3351         * lib/math.in.h (atanf): New declaration.
3352         * lib/atanf.c: New file.
3353         * m4/atanf.m4: New file.
3354         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3356         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3357         * modules/atanf: New file.
3358         * tests/test-math-c++.cc: Check the declaration of atanf.
3359         * doc/posix-functions/atanf.texi: Mention the new module.
3360
3361         atan: Use a .m4 file.
3362         * m4/atan.m4: New file.
3363         * modules/atan (Files): Add it.
3364         (configure.ac): Just invoke gl_FUNC_ATAN.
3365
3366 2011-10-08  Bruno Haible  <bruno@clisp.org>
3367
3368         Tests for module 'acosf'.
3369         * modules/acosf-tests: New file.
3370         * tests/test-acosf.c: New file.
3371
3372         New module 'acosf'.
3373         * lib/math.in.h (acosf): New declaration.
3374         * lib/acosf.c: New file.
3375         * m4/acosf.m4: New file.
3376         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3378         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3379         * modules/acosf: New file.
3380         * tests/test-math-c++.cc: Check the declaration of acosf.
3381         * doc/posix-functions/acosf.texi: Mention the new module.
3382
3383         acos: Use a .m4 file.
3384         * m4/acos.m4: New file.
3385         * modules/acos (Files): Add it.
3386         (configure.ac): Just invoke gl_FUNC_ACOS.
3387
3388 2011-10-08  Bruno Haible  <bruno@clisp.org>
3389
3390         Tests for module 'asinf'.
3391         * modules/asinf-tests: New file.
3392         * tests/test-asinf.c: New file.
3393
3394         New module 'asinf'.
3395         * lib/math.in.h (asinf): New declaration.
3396         * lib/asinf.c: New file.
3397         * m4/asinf.m4: New file.
3398         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3400         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3401         * modules/asinf: New file.
3402         * tests/test-math-c++.cc: Check the declaration of asinf.
3403         * doc/posix-functions/asinf.texi: Mention the new module.
3404
3405         asin: Use a .m4 file.
3406         * m4/asin.m4: New file.
3407         * modules/asin (Files): Add it.
3408         (configure.ac): Just invoke gl_FUNC_ASIN.
3409
3410 2011-10-08  Bruno Haible  <bruno@clisp.org>
3411
3412         Tests for module 'tanf'.
3413         * modules/tanf-tests: New file.
3414         * tests/test-tanf.c: New file.
3415
3416         New module 'tanf'.
3417         * lib/math.in.h (tanf): New declaration.
3418         * lib/tanf.c: New file.
3419         * m4/tanf.m4: New file.
3420         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3422         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3423         * modules/tanf: New file.
3424         * tests/test-math-c++.cc: Check the declaration of tanf.
3425         * doc/posix-functions/tanf.texi: Mention the new module.
3426
3427         tan: Use a .m4 file.
3428         * m4/tan.m4: New file.
3429         * modules/tan (Files): Add it.
3430         (configure.ac): Just invoke gl_FUNC_TAN.
3431
3432 2011-10-08  Bruno Haible  <bruno@clisp.org>
3433
3434         Tests for module 'cosf'.
3435         * modules/cosf-tests: New file.
3436         * tests/test-cosf.c: New file.
3437
3438         New module 'cosf'.
3439         * lib/math.in.h (cosf): New declaration.
3440         * lib/cosf.c: New file.
3441         * m4/cosf.m4: New file.
3442         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3444         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3445         * modules/cosf: New file.
3446         * tests/test-math-c++.cc: Check the declaration of cosf.
3447         * doc/posix-functions/cosf.texi: Mention the new module.
3448
3449         cos: Use a .m4 file.
3450         * m4/cos.m4: New file.
3451         * modules/cos (Files): Add it.
3452         (configure.ac): Just invoke gl_FUNC_COS.
3453
3454 2011-10-08  Bruno Haible  <bruno@clisp.org>
3455
3456         Tests for module 'sinf'.
3457         * modules/sinf-tests: New file.
3458         * tests/test-sinf.c: New file.
3459
3460         New module 'sinf'.
3461         * lib/math.in.h (sinf): New declaration.
3462         * lib/sinf.c: New file.
3463         * m4/sinf.m4: New file.
3464         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3466         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3467         * modules/sinf: New file.
3468         * tests/test-math-c++.cc: Check the declaration of sinf.
3469         * doc/posix-functions/sinf.texi: Mention the new module.
3470
3471         sin: Use a .m4 file.
3472         * m4/sin.m4: New file.
3473         * modules/sin (Files): Add it.
3474         (configure.ac): Just invoke gl_FUNC_SIN.
3475
3476 2011-10-08  Bruno Haible  <bruno@clisp.org>
3477
3478         Tests for module 'powf'.
3479         * modules/powf-tests: New file.
3480         * tests/test-powf.c: New file.
3481
3482         New module 'powf'.
3483         * lib/math.in.h (powf): New declaration.
3484         * lib/powf.c: New file.
3485         * m4/powf.m4: New file.
3486         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3488         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3489         * modules/powf: New file.
3490         * tests/test-math-c++.cc: Check the declaration of powf.
3491         * doc/posix-functions/powf.texi: Mention the new module.
3492
3493         pow: Use a .m4 file.
3494         * m4/pow.m4: New file.
3495         * modules/pow (Files): Add it.
3496         (configure.ac): Just invoke gl_FUNC_POW.
3497
3498 2011-10-08  Bruno Haible  <bruno@clisp.org>
3499
3500         Tests for module 'log10f'.
3501         * modules/log10f-tests: New file.
3502         * tests/test-log10f.c: New file.
3503
3504         New module 'log10f'.
3505         * lib/math.in.h (log10f): New declaration.
3506         * lib/log10f.c: New file.
3507         * m4/log10f.m4: New file.
3508         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3510         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3511         * modules/log10f: New file.
3512         * tests/test-math-c++.cc: Check the declaration of log10f.
3513         * doc/posix-functions/log10f.texi: Mention the new module.
3514
3515         log10: Use a .m4 file.
3516         * m4/log10.m4: New file.
3517         * modules/log10 (Files): Add it.
3518         (configure.ac): Just invoke gl_FUNC_LOG10.
3519
3520 2011-10-08  Bruno Haible  <bruno@clisp.org>
3521
3522         Tests for module 'logf'.
3523         * modules/logf-tests: New file.
3524         * tests/test-logf.c: New file.
3525
3526         New module 'logf'.
3527         * lib/math.in.h (logf): New declaration.
3528         * lib/logf.c: New file.
3529         * m4/logf.m4: New file.
3530         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3532         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3533         * modules/logf: New file.
3534         * tests/test-math-c++.cc: Check the declaration of logf.
3535         * doc/posix-functions/logf.texi: Mention the new module.
3536
3537         log: Use a .m4 file.
3538         * m4/log.m4: New file.
3539         * modules/log (Files): Add it.
3540         (configure.ac): Just invoke gl_FUNC_LOG.
3541
3542 2011-10-08  Bruno Haible  <bruno@clisp.org>
3543
3544         Tests for module 'expf'.
3545         * modules/expf-tests: New file.
3546         * tests/test-expf.c: New file.
3547
3548         New module 'expf'.
3549         * lib/math.in.h (expf): New declaration.
3550         * lib/expf.c: New file.
3551         * m4/expf.m4: New file.
3552         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3554         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3555         * modules/expf: New file.
3556         * tests/test-math-c++.cc: Check the declaration of expf.
3557         * doc/posix-functions/expf.texi: Mention the new module.
3558
3559         exp: Use a .m4 file.
3560         * m4/exp.m4: New file.
3561         * modules/exp (Files): Add it.
3562         (configure.ac): Just invoke gl_FUNC_EXP.
3563
3564 2011-10-08  Bruno Haible  <bruno@clisp.org>
3565
3566         Tests for module 'sqrtf'.
3567         * modules/sqrtf-tests: New file.
3568         * tests/test-sqrtf.c: New file.
3569
3570         New module 'sqrtf'.
3571         * lib/math.in.h (sqrtf): New declaration.
3572         * lib/sqrtf.c: New file.
3573         * m4/sqrtf.m4: New file.
3574         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3576         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3577         * modules/sqrtf: New file.
3578         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3579         * doc/posix-functions/sqrtf.texi: Mention the new module.
3580
3581 2011-10-08  Bruno Haible  <bruno@clisp.org>
3582
3583         Tests: Avoid link failures w.r.t. libintl.
3584         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3585         $(LIBINTL).
3586         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3587         $(LIBINTL).
3588         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3589         against $(LIBINTL).
3590         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3591         $(LIBINTL).
3592         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3593         $(LIBINTL).
3594         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3595
3596 2011-10-08  Bruno Haible  <bruno@clisp.org>
3597
3598         pow tests: Defeat compiler optimizations.
3599         * tests/test-pow.c (main): Assign arguments to x and y before use.
3600
3601 2011-10-08  Bruno Haible  <bruno@clisp.org>
3602
3603         gnulib-tool: Improve last commit.
3604         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3605         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3606         ignore dependencies that are not among the modules list.
3607
3608 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3609
3610         gnulib-tool: don't follow dependencies to avoided modules
3611         This fixes a bug that is related to the previous one.
3612         * gnulib-tool (func_modules_transitive_closure)
3613         (func_emit_autoconf_snippets):
3614         Check whether a dependency is acceptable before using it.
3615         (--extract-dependencies): Report an error if --avoid is also used,
3616         since this combination of options is not yet supported.
3617
3618         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3619         Problem reported by Peter Dyballa in
3620         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3621         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3622         when echoing "$condition".
3623
3624 2011-10-07  Bruno Haible  <bruno@clisp.org>
3625
3626         Fix documentation about math functions on MacOS X.
3627         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3628         MacOS X 10.5.
3629         * doc/posix-functions/fdim.texi: Likewise.
3630         * doc/posix-functions/feclearexcept.texi: Likewise.
3631         * doc/posix-functions/fegetenv.texi: Likewise.
3632         * doc/posix-functions/fegetround.texi: Likewise.
3633         * doc/posix-functions/feholdexcept.texi: Likewise.
3634         * doc/posix-functions/feraiseexcept.texi: Likewise.
3635         * doc/posix-functions/fesetenv.texi: Likewise.
3636         * doc/posix-functions/fesetround.texi: Likewise.
3637         * doc/posix-functions/fetestexcept.texi: Likewise.
3638         * doc/posix-functions/feupdateenv.texi: Likewise.
3639         * doc/posix-functions/fmax.texi: Likewise.
3640         * doc/posix-functions/fmin.texi: Likewise.
3641         * doc/posix-functions/log2.texi: Likewise.
3642         * doc/posix-functions/modff.texi: Likewise.
3643         * doc/posix-functions/nan.texi: Likewise.
3644         * doc/posix-functions/nanf.texi: Likewise.
3645         * doc/posix-functions/nextafterf.texi: Likewise.
3646         * doc/posix-functions/remquo.texi: Likewise.
3647
3648 2011-10-07  Bruno Haible  <bruno@clisp.org>
3649
3650         modff: Drop assumption about library that defines modff.
3651         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3652         AC_CHECK_FUNCS.
3653         * modules/modff (Files): Add m4/mathfunc.m4.
3654
3655 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3656
3657         raise tests: Avoid a GCC warning.
3658         * tests/test-raise.c (handler): Use _Noreturn.
3659
3660 2011-10-07  Bruno Haible  <bruno@clisp.org>
3661
3662         Tests for module 'ldexpf'.
3663         * modules/ldexpf-tests: New file.
3664         * tests/test-ldexpf.c: New file.
3665
3666         New module 'ldexpf'.
3667         * lib/math.in.h (ldexpf): New declaration.
3668         * lib/ldexpf.c: New file.
3669         * m4/ldexpf.m4: New file.
3670         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3672         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3673         * modules/ldexpf: New file.
3674         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3675         * doc/posix-functions/ldexpf.texi: Mention the new module.
3676
3677 2011-10-06  Bruno Haible  <bruno@clisp.org>
3678
3679         frexpf: Work around problems on IRIX and mingw.
3680         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3682         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3683         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3684         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3685         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3686         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3687
3688 2011-10-06  Bruno Haible  <bruno@clisp.org>
3689
3690         fabsf: Drop assumption about library that defines fabsf.
3691         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3692         AC_CHECK_FUNCS.
3693         * modules/fabsf (Files): Add m4/mathfunc.m4.
3694
3695 2011-10-06  Bruno Haible  <bruno@clisp.org>
3696
3697         frexpf: Drop assumption about library that defines frexpf.
3698         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3699         'int *', 'float *', 'long double *', 'float', 'long double'.
3700         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3701         AC_CHECK_FUNCS.
3702         * modules/frexpf (Files): Add m4/mathfunc.m4.
3703
3704         Tests for module 'frexpf'.
3705         * modules/frexpf-tests: New file.
3706         * tests/test-frexpf.c: New file.
3707
3708         New module 'frexpf'.
3709         * lib/math.in.h (frexpf): New declaration.
3710         * lib/frexpf.c: New file.
3711         * m4/frexpf.m4: New file.
3712         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3714         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3715         * modules/frexpf: New file.
3716         * tests/test-math-c++.cc: Check the declaration of frexpf.
3717         * doc/posix-functions/frexpf.texi: Mention the new module.
3718
3719 2011-10-06  Bruno Haible  <bruno@clisp.org>
3720
3721         math: Sort function declarations of math.in.h.
3722         * lib/math.in.h (frexp, logb): Move declarations.
3723
3724 2011-10-05  Bruno Haible  <bruno@clisp.org>
3725
3726         Tests for module 'modff'.
3727         * modules/modff-tests: New file.
3728         * tests/test-modff.c: New file.
3729
3730         New module 'modff'.
3731         * lib/math.in.h (modff): New declaration.
3732         * lib/modff.c: New file.
3733         * m4/modff.m4: New file.
3734         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3736         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3737         * modules/modff: New file.
3738         * tests/test-math-c++.cc: Check the declaration of modff.
3739         * doc/posix-functions/modff.texi: Mention the new module.
3740
3741         modf tests: Make test sharper.
3742         * tests/test-modf.c (main): Strengthen upper bound.
3743
3744         modf: Use a .m4 file.
3745         * m4/modf.m4: New file.
3746         * modules/modf (Files): Add it.
3747         (configure.ac): Just invoke gl_FUNC_MODF.
3748
3749 2011-10-05  Bruno Haible  <bruno@clisp.org>
3750
3751         Tests for module 'fmodf'.
3752         * modules/fmodf-tests: New file.
3753         * tests/test-fmodf.c: New file.
3754
3755         New module 'fmodf'.
3756         * lib/math.in.h (fmodf): New declaration.
3757         * lib/fmodf.c: New file.
3758         * m4/fmodf.m4: New file.
3759         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3761         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3762         * modules/fmodf: New file.
3763         * tests/test-math-c++.cc: Check the declaration of fmodf.
3764         * doc/posix-functions/fmodf.texi: Mention the new module.
3765
3766         fmod: Use a .m4 file.
3767         * m4/fmod.m4: New file.
3768         * modules/fmod (Files): Add it.
3769         (configure.ac): Just invoke gl_FUNC_FMOD.
3770
3771 2011-10-05  Bruno Haible  <bruno@clisp.org>
3772
3773         Tests for module 'fabsf'.
3774         * modules/fabsf-tests: New file.
3775         * tests/test-fabsf.c: New file.
3776
3777         New module 'fabsf'.
3778         * lib/math.in.h (fabsf): New declaration.
3779         * lib/fabsf.c: New file.
3780         * m4/fabsf.m4: New file.
3781         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3783         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3784         * modules/fabsf: New file.
3785         * tests/test-math-c++.cc: Check the declaration of fabsf.
3786         * doc/posix-functions/fabsf.texi: Mention the new module.
3787
3788         fabs: Use a .m4 file.
3789         * m4/fabs.m4: New file.
3790         * modules/fabs (Files): Add it.
3791         (configure.ac): Just invoke gl_FUNC_FABS.
3792
3793 2011-10-05  Jim Meyering  <meyering@redhat.com>
3794
3795         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3796         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3797         ls -lL regression introduced in coreutils-8.12, it does so at the
3798         cost of an additional stat call in the common case.  Besides, now
3799         that the kernel change that prompted commit 95f7c57f has been reverted
3800         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3801         we have no use for commit 95f7c57f, "file-has-acl: use
3802         acl_extended_file_nofollow if available".
3803
3804 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3805
3806         file-has-acl: revert unintended change in behavior of ls -L
3807         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3808         derived from...
3809         (file_has_acl): ...code here.  Call it.
3810         This problem was introduced with 2011-07-22 commit 95f7c57f,
3811         "file-has-acl: use acl_extended_file_nofollow if available".
3812         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3813
3814 2011-10-03  Bruno Haible  <bruno@clisp.org>
3815
3816         poll: Avoid link errors on MSVC.
3817         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3818         * modules/poll (Depends-on): Add sockets.
3819         (Link): New section.
3820         * NEWS: Mention the change.
3821         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3822         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3823         $(LIB_POLL) instead of $(LIBSOCKET).
3824
3825 2011-10-03  Bruno Haible  <bruno@clisp.org>
3826
3827         sys_select tests: Fix link error on MSVC 9.
3828         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3829         with $(LIB_SELECT) instead of $(LIBSOCKET).
3830
3831 2011-10-03  Bruno Haible  <bruno@clisp.org>
3832
3833         sys_select: Fix compilation error on mingw.
3834         * lib/sys_select.in.h: On native Windows, include <io.h>.
3835
3836 2011-10-03  Bruno Haible  <bruno@clisp.org>
3837
3838         wmemset: Support for MSVC.
3839         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3840         whether wmemset() exists.
3841
3842 2011-10-03  Bruno Haible  <bruno@clisp.org>
3843
3844         wmemmove: Support for MSVC.
3845         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3846         whether wmemmove() exists.
3847
3848 2011-10-03  Bruno Haible  <bruno@clisp.org>
3849
3850         wmemcpy: Support for MSVC.
3851         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3852         whether wmemcpy() exists.
3853
3854 2011-10-03  Bruno Haible  <bruno@clisp.org>
3855
3856         wmemcmp: Support for MSVC.
3857         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3858         whether wmemcmp() exists.
3859
3860 2011-10-03  Bruno Haible  <bruno@clisp.org>
3861
3862         wmemchr: Support for MSVC.
3863         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3864         whether wmemchr() exists.
3865
3866 2011-10-03  Bruno Haible  <bruno@clisp.org>
3867
3868         glthread/*, strsignal: Support for MSVC.
3869         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3870         including <winsock.h> on MSVC 9.
3871         * lib/glthread/lock.h: Likewise.
3872         * lib/glthread/thread.h: Likewise.
3873         * lib/glthread/tls.h: Likewise.
3874         * lib/glthread/yield.h: Likewise.
3875         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3876         if HAVE_UNISTD_H is false.
3877         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3878
3879 2011-10-03  Bruno Haible  <bruno@clisp.org>
3880
3881         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3882         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3883         Set to 100000.
3884
3885 2011-10-03  Bruno Haible  <bruno@clisp.org>
3886
3887         acl: Fix specification.
3888         * lib/file-has-acl.c (file_has_acl): Fix specification.
3889
3890 2011-10-03  Bruno Haible  <bruno@clisp.org>
3891
3892         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3893         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3894         (compute_curr_prefix, shared_library_fullname,
3895         find_shared_library_fullname, get_shared_library_fullname, relocate):
3896         Use it together with PIC && INSTALLDIR.
3897         Reported by <jojelino@gmail.com>
3898         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3899
3900 2011-10-01  Jim Meyering  <meyering@redhat.com>
3901
3902         maint.mk: adjust a release-related rule not to require use of gzip
3903         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3904         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3905         projects that build only .tar.xz files.  Also fix an erroneous test.
3906
3907         test-linkat: don't leave behind a temporary file
3908         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3909         Otherwise, coreutils' "make distcheck" would fail with this:
3910           Only in /c/cu/tests/torture/coreutils/test/\
3911             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3912           make[2]: *** [my-distcheck] Error 1
3913
3914         float, math: add omitted file
3915         * lib/itold.c: Add file, required for yesterday's float change.
3916
3917 2011-10-01  Bruno Haible  <bruno@clisp.org>
3918
3919         isinf: Fix for OpenBSD/x86.
3920         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3921         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3922         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3923
3924 2011-10-01  Bruno Haible  <bruno@clisp.org>
3925
3926         isfinite: Fix syntax error in configure test.
3927         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3928
3929         isfinite: Fix typo.
3930         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3931         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3932
3933 2011-10-01  Bruno Haible  <bruno@clisp.org>
3934
3935         nonblocking tests: Fix test failure on Linux/IA-64.
3936         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3937         Set to 270000.
3938
3939 2011-10-01  Bruno Haible  <bruno@clisp.org>
3940
3941         mkfifoat tests: Fix a test failure on mingw.
3942         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3943         with error ENOSYS.
3944
3945 2011-09-30  Bruno Haible  <bruno@clisp.org>
3946
3947         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3948         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3949         'long double'. Set REPLACE_ITOLD.
3950         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3951         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3952         * lib/itold.c: New file.
3953         * modules/float (Files): Add lib/itold.c.
3954         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3955         (Makefile.am): Substitute REPLACE_ITOLD.
3956         * modules/math (Depends-on): Add float.
3957         (Makefile.am): Substitute REPLACE_ITOLD.
3958         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3959         * doc/posix-headers/math.texi: Likewise.
3960         * doc/posix-functions/logl.texi: Likewise.
3961
3962 2011-09-30  Bruno Haible  <bruno@clisp.org>
3963
3964         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3965         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3966         Set to 140000.
3967
3968 2011-09-30  Bruno Haible  <bruno@clisp.org>
3969
3970         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3971         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3972         invocation, say "right after AC_PROG_CC_STDC", not "right after
3973         AC_PROG_CC".
3974         Reported by Gary V. Vaughan <gary@gnu.org>.
3975
3976 2011-09-30  Bruno Haible  <bruno@clisp.org>
3977
3978         Centralize C99 requirement.
3979         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3980         * modules/stdarg (configure.ac-early): Invoke it instead of
3981         AC_PROG_CC_STDC.
3982         Reported by Gary V. Vaughan and Paul Eggert.
3983
3984 2011-09-29  Bruno Haible  <bruno@clisp.org>
3985
3986         float: Fix LDBL_MAX value on Linux/PowerPC.
3987         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3988         on Linux/PowerPC.
3989         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3990         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3991         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3992         platform.
3993         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3994
3995 2011-09-29  Bruno Haible  <bruno@clisp.org>
3996
3997         doc: Improve doc about gl_EARLY.
3998         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3999         AC_PROG_CC_STDC invocation.
4000         Reported by Gary V. Vaughan <gary@gnu.org>.
4001
4002 2011-09-28  Bruno Haible  <bruno@clisp.org>
4003
4004         fgetc, fputc, fread, fwrite tests: Fix link error.
4005         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4006         on non-MSVC platforms.
4007         * tests/test-fputc.c (main): Likewise.
4008         * tests/test-fread.c (main): Likewise.
4009         * tests/test-fwrite.c (main): Likewise.
4010         Reported by Jim Meyering.
4011
4012 2011-09-27  Bruno Haible  <bruno@clisp.org>
4013
4014         fputc, fwrite tests: Avoid test failure on MSVC.
4015         * tests/test-fgetc.c: Include msvc-inval.h.
4016         (main): Invoke gl_msvc_inval_ensure_handler.
4017         * tests/test-fputc.c: Include msvc-inval.h.
4018         (main): Invoke gl_msvc_inval_ensure_handler.
4019         * tests/test-fread.c: Include msvc-inval.h.
4020         (main): Invoke gl_msvc_inval_ensure_handler.
4021         * tests/test-fwrite.c: Include msvc-inval.h.
4022         (main): Invoke gl_msvc_inval_ensure_handler.
4023         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4024         * modules/fputc-tests (Depends-on): Likewise.
4025         * modules/fread-tests (Depends-on): Likewise.
4026         * modules/fwrite-tests (Depends-on): Likewise.
4027
4028 2011-09-27  Bruno Haible  <bruno@clisp.org>
4029
4030         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4031         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4032         (raise): Remove older, duplicated declaration.
4033         (_gl_raise_SIGPIPE): New declaration.
4034         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4035         (rpl_raise): Remove function.
4036         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4037         a gnulib-defined SIGPIPE here.
4038         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4039         'sigprocmask' has detected missing signal-blocking and the module
4040         'sigpipe' is enabled.
4041         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4042
4043 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4044
4045         base64-tests: avoid memory leak
4046         * tests/test-base64.c (main): Plug memory leak.
4047
4048         base32: new module
4049         * modules/base32: New module.
4050         * lib/base32.c: New file.
4051         * lib/base32.h: Likewise.
4052         * m4/base32.m4: Likewise.
4053         * modules/base32-tests: New test.
4054         * tests/test-base32.c: Likewise.
4055         * MODULES.html.sh (Misc): Mention it.
4056
4057 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4058
4059         gnulib: use more-standard license notice wording
4060         * gnulib-tool (func_emit_copyright_notice): When emitting a
4061         license notice into a file, use the standard wording as suggested
4062         by the current information for GNU maintainers, except say "file"
4063         rather than "program".  The new wording gives a license version
4064         number, which addresses an issue raised by Glenn Morris in
4065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4066         * m4/onceonly.m4: Use that same wording here, too.
4067
4068         dup2: minor simplification
4069         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4070         as lib/dup2.c no longer uses 'inline'.
4071
4072 2011-09-25  Bruno Haible  <bruno@clisp.org>
4073
4074         strings: Fix compilation error on MSVC.
4075         * lib/strings.in.h: Include <stddef.h> for size_t.
4076
4077 2011-09-25  Bruno Haible  <bruno@clisp.org>
4078
4079         fflush et al.: Document limitation on MSVC.
4080         * doc/posix-functions/fflush.texi: Document possible crash in handling
4081         mode other than DEFAULT_HANDLING.
4082         * doc/posix-functions/fgetc.texi: Likewise.
4083         * doc/posix-functions/fputc.texi: Likewise.
4084         * doc/posix-functions/fread.texi: Likewise.
4085         * doc/posix-functions/fwrite.texi: Likewise.
4086
4087 2011-09-25  Bruno Haible  <bruno@clisp.org>
4088
4089         msvc-inval: Allow three invalid parameter handling modes.
4090         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4091         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4092         macros.
4093         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4094         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4095         SANE_LIBRARY_HANDLING as a no-op.
4096         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4097         <stdlib.h>.
4098         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4099
4100 2011-09-25  Bruno Haible  <bruno@clisp.org>
4101
4102         msvc-inval: Make handler multithread-safe.
4103         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4104         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4105         declarations.
4106         (gl_msvc_inval_current): New declaration.
4107         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4108         Operate on the structure returned by gl_msvc_inval_current().
4109         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4110         Remove varaiables.
4111         (tls_index, tls_initialized): New variables.
4112         (not_per_thread): New variable.
4113         (gl_msvc_inval_current): New function.
4114         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4115         returned by gl_msvc_inval_current().
4116
4117 2011-09-25  Bruno Haible  <bruno@clisp.org>
4118
4119         msvc-inval: Install handler globally.
4120         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4121         !_MSC_VER.
4122         (gl_msvc_invalid_parameter_handler): Remove declaration.
4123         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4124         declarations.
4125         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4126         Install the handler globally, don't uninstall it.
4127         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4128         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4129         currently valid, call RaiseException instead.
4130         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4131         for !_MSC_VER.
4132
4133 2011-09-25  Bruno Haible  <bruno@clisp.org>
4134
4135         strerror_r-posix: Fix for MSVC 9.
4136         * lib/strerror_r.c (local_snprintf): New function.
4137         (snprintf): Define to local_snprintf, not to _snprintf.
4138
4139 2011-09-25  Bruno Haible  <bruno@clisp.org>
4140
4141         ftruncate: Support for MSVC 9.
4142         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4143         (chsize_nothrow): New function.
4144         (chsize): Redefine as a macro.
4145         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4146         * modules/ftruncate (Depends-on): Add msvc-inval.
4147
4148 2011-09-25  Bruno Haible  <bruno@clisp.org>
4149
4150         New module 'fstat'.
4151         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4152         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4153         * lib/fchdir.c (rpl_fstat): Remove function.
4154         * m4/fstat.m4: New file.
4155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4157         declared.
4158         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4159         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4160         * modules/fstat: New file.
4161         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4162         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4163         is set.
4164         * doc/posix-functions/fstat.texi: Mention the new module and the
4165         problem on MSVC.
4166         * NEWS: Mention the change.
4167         * modules/acl (Depends-on): Add fstat.
4168         * modules/chdir-safer (Depends-on): Likewise.
4169         * modules/chown (Depends-on): Likewise.
4170         * modules/copy-file (Depends-on): Likewise.
4171         * modules/fchdir (Depends-on): Likewise.
4172         * modules/fdopendir (Depends-on): Likewise.
4173         * modules/fopen (Depends-on): Likewise.
4174         * modules/fts (Depends-on): Likewise.
4175         * modules/getcwd (Depends-on): Likewise.
4176         * modules/isapipe (Depends-on): Likewise.
4177         * modules/linkat (Depends-on): Likewise.
4178         * modules/lseek (Depends-on): Likewise.
4179         * modules/mkdir-p (Depends-on): Likewise.
4180         * modules/open (Depends-on): Likewise.
4181         * modules/openat (Depends-on): Likewise.
4182         * modules/read-file (Depends-on): Likewise.
4183         * modules/renameat (Depends-on): Likewise.
4184         * modules/utimens (Depends-on): Likewise.
4185
4186 2011-09-25  Bruno Haible  <bruno@clisp.org>
4187
4188         linkat: Fix compilation on MSVC 9.
4189         * lib/linkat.c: Don't include <stdint.h>.
4190
4191 2011-09-25  Bruno Haible  <bruno@clisp.org>
4192
4193         fclose: Support for MSVC 9.
4194         * lib/fclose.c: Include msvc-inval.h.
4195         (fclose_nothrow): New function.
4196         (rpl_fclose): Use it.
4197         * modules/fclose (Depends-on): Add msvc-inval.
4198         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4199
4200 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         dup2: minor simplifications
4203         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4204         that it's a performance win.
4205         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4206         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4207
4208 2011-09-24  Jim Meyering  <meyering@redhat.com>
4209
4210         test-futimens: avoid a warning from gcc -Wshadow
4211         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4212         to avoid a shadowing warning.
4213
4214 2011-09-24  Bruno Haible  <bruno@clisp.org>
4215
4216         fdopen: Support for MSVC 9.
4217         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4218         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4219         * lib/fdopen.c: Include msvc-inval.h.
4220         (fdopen_nothrow): New function.
4221         (rpl_fdopen): Use it.
4222         * modules/fdopen (Depends-on): Add msvc-inval.
4223         * modules/fclose-tests (Depends-on): Add fdopen.
4224         * modules/fflush-tests (Depends-on): Likewise.
4225         * modules/fgetc-tests (Depends-on): Likewise.
4226         * modules/fputc-tests (Depends-on): Likewise.
4227         * modules/fread-tests (Depends-on): Likewise.
4228         * modules/freopen-tests (Depends-on): Likewise.
4229         * modules/fseeko-tests (Depends-on): Likewise.
4230         * modules/ftello-tests (Depends-on): Likewise.
4231         * modules/fwrite-tests  (Depends-on): Likewise.
4232         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4233
4234 2011-09-24  Bruno Haible  <bruno@clisp.org>
4235
4236         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4237         * modules/fgetc-tests (Depends-on): Add unistd.
4238         * modules/fputc-tests (Depends-on): Likewise.
4239         * modules/fread-tests (Depends-on): Likewise.
4240         * modules/fwrite-tests (Depends-on): Likewise.
4241
4242 2011-09-24  Bruno Haible  <bruno@clisp.org>
4243
4244         dup: Simplify autoconf test.
4245         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4246         on gl_MSVC_INVAL's result.
4247
4248 2011-09-24  Bruno Haible  <bruno@clisp.org>
4249
4250         Tests for function fwrite().
4251         * modules/fwrite-tests: New file.
4252         * tests/test-fwrite.c: New file.
4253         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4254
4255         Tests for function fread().
4256         * modules/fread-tests: New file.
4257         * tests/test-fread.c: New file.
4258         * modules/stdio-tests (Depends-on): Add fread-tests.
4259
4260         Activate fputc tests.
4261         * modules/stdio-tests (Depends-on): Add fputc-tests.
4262
4263         Enhance fgetc, fputc tests.
4264         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4265         * tests/test-fputc.c (main): Likewise.
4266
4267 2011-09-24  Bruno Haible  <bruno@clisp.org>
4268
4269         write: Support for MSVC 9.
4270         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4271         is not 1.
4272         * lib/write.c (write_nothrow): New function.
4273         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4274         not 1. Use write_nothrow.
4275         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4276         invalid parameter handler.
4277         (gl_PREREQ_WRITE): New macro.
4278         * modules/write (Depends-on): Add msvc-inval.
4279         (configure.ac): Invoke gl_PREREQ_WRITE.
4280         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4281
4282 2011-09-24  Bruno Haible  <bruno@clisp.org>
4283
4284         read: Fix last commit.
4285         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4286
4287 2011-09-24  Bruno Haible  <bruno@clisp.org>
4288
4289         dup2: Fix last commit.
4290         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4291         (rpl_dup2): Disable fcntl workaround on native Windows.
4292
4293         sigprocmask: Make code safer.
4294         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4295         section that changes macro definitions for this compilation unit.
4296
4297 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4298
4299         dup2: clarify by coalescing Windows-specific material
4300         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4301         "msvc-nothrow.h"' to the Windows-specific section, so that the
4302         Emacs source need not contain these include files.
4303         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4304         Windows-specific fixes into this function rather than just the
4305         nothrow fix, as this shortens and clarifies the code.  Always
4306         define as a function, as that's a bit cleaner than having it be
4307         sometimes a function and sometimes a macro.
4308         (rpl_dup2): Move the Windows-specific stuff out of here and into
4309         ms_windows_dup2.  Don't protect the Haiku-related fix with
4310         "#if !defined __linux__", as the same code also works around
4311         a Linux kernel bug, and it doesn't add any system calls on any
4312         platform.  Add comment about FreeBSD 6.1.
4313
4314         sigprocmask: move #include directive
4315         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4316         Windows-specific section, so that the Emacs source need not
4317         contain msvc-inval.h.
4318
4319 2011-09-23  Bruno Haible  <bruno@clisp.org>
4320
4321         read: Support for MSVC 9.
4322         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4323         is not 1.
4324         * lib/read.c (read_nothrow): New function.
4325         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4326         read_nothrow.
4327         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4328         invalid parameter handler.
4329         (gl_PREREQ_READ): New macro.
4330         * modules/read (Depends-on): Add msvc-inval.
4331         (configure.ac): Invoke gl_PREREQ_READ.
4332         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4333
4334 2011-09-23  Bruno Haible  <bruno@clisp.org>
4335
4336         close: Support for MSVC 9.
4337         * lib/close.c: Include <errno.h>, msvc-inval.h.
4338         (close_nothrow): New function.
4339         (rpl_close): Use it.
4340         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4341         invalid parameter handler.
4342         * modules/close (Depends-on): Add msvc-inval.
4343         * modules/dup2-tests (Depends-on): Add close.
4344         * modules/dup3-tests (Depends-on): Likewise.
4345         * modules/fcntl-tests (Depends-on): Likewise.
4346         * modules/spawn-pipe-tests (Depends-on): Likewise.
4347         * modules/unistd-safer-tests (Depends-on): Likewise.
4348         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4349
4350 2011-09-23  Bruno Haible  <bruno@clisp.org>
4351
4352         New module 'dup'.
4353         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4354         Allow replacement.
4355         * lib/dup.c: New file.
4356         * lib/fchdir.c (rpl_dup): Remove function.
4357         * m4/dup.m4: New file.
4358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4359         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4360         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4361         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4362         * modules/dup: New file.
4363         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4364         'dup' module is in use.
4365         * modules/fdopendir (Depends-on): Add dup.
4366         * modules/fdutimensat-tests (Depends-on): Likewise.
4367         * modules/fts (Depends-on): Likewise.
4368         * modules/futimens-tests (Depends-on): Likewise.
4369         * modules/posix_spawnp-tests (Depends-on): Likewise.
4370         * modules/unistd-safer-tests (Depends-on): Likewise.
4371         * modules/utimens-tests (Depends-on): Likewise.
4372         * doc/posix-functions/dup.texi: Mention the new module and the problem
4373         on MSVC.
4374
4375 2011-09-23  Bruno Haible  <bruno@clisp.org>
4376
4377         getdtablesize: Support for MSVC 9.
4378         * lib/getdtablesize.c: Include msvc-inval.h.
4379         (_setmaxstdio_nothrow): New function.
4380         (_setmaxstdio): Redefine it.
4381         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4382         * modules/getdtablesize (Depends-on): Add msvc-inval.
4383         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4384
4385 2011-09-23  Bruno Haible  <bruno@clisp.org>
4386
4387         signal-h: Rename from signal.
4388         * modules/signal-h: Renamed from modules/signal.
4389         * modules/pthread_sigmask (Depends-on): Update.
4390         * modules/raise (Depends-on): Likewise.
4391         * modules/sigaction (Depends-on): Likewise.
4392         * modules/sigpipe (Depends-on): Likewise.
4393         * modules/sigprocmask (Depends-on): Likewise.
4394         * modules/sys_select (Depends-on): Likewise.
4395         * modules/signal-h-tests: Renamed from modules/signal-tests.
4396         (Files, Depends-on, Makefile.am): Update.
4397         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4398         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4399         (Files, Makefile.am): Update.
4400         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4401         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4402         * modules/signal: New placeholder file.
4403         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4404         * doc/posix-headers/signal.texi: Update.
4405         * NEWS: Mention the change.
4406
4407 2011-09-23  Bruno Haible  <bruno@clisp.org>
4408
4409         sigprocmask: Avoid crashes through signal() on MSVC 9.
4410         * lib/sigprocmask.c: Include msvc-inval.h.
4411         (signal_nothrow): New function.
4412         (signal): Redefine it.
4413         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4414         * modules/sigprocmask (Depends-on): Add msvc-inval.
4415         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4416
4417 2011-09-23  Bruno Haible  <bruno@clisp.org>
4418
4419         Tests for module 'raise'.
4420         * modules/raise-tests: New file.
4421         * tests/test-raise.c: New file.
4422
4423         raise: Support for MSVC.
4424         * lib/signal.in.h (raise): New declaration.
4425         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4426         for native Windows platforms.
4427         * m4/raise.m4: New file.
4428         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4429         HAVE_RAISE, REPLACE_RAISE.
4430         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4431         REPLACE_RAISE.
4432         * modules/raise (Status, Notice): Remove fields.
4433         (Files): Add m4/raise.m4.
4434         (Depends-on): Add signal, msvc-inval.
4435         (configure.ac): Use the common idioms.
4436         (Maintainer): Add me.
4437         * tests/test-signal-c++.cc: Check the signature of raise.
4438         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4439
4440 2011-09-23  Bruno Haible  <bruno@clisp.org>
4441
4442         pipe2: Fix compilation on pre-C99 compilers.
4443         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4444
4445 2011-09-23  Bruno Haible  <bruno@clisp.org>
4446
4447         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4448         * lib/msvc-nothrow.h: New file.
4449         * lib/msvc-nothrow.c: New file.
4450         * m4/msvc-nothrow.m4: New file.
4451         * modules/msvc-nothrow: New file.
4452         * lib/dup2.c: Include msvc-nothrow.h.
4453         (rpl_dup2): No need to protect _get_osfhandle call here.
4454         * lib/accept4.c: Include msvc-nothrow.h.
4455         * lib/error.c: Likewise.
4456         * lib/fcntl.c: Likewise.
4457         * lib/lseek.c: Likewise.
4458         * lib/nonblocking.c: Likewise.
4459         * lib/poll.c: Likewise.
4460         * lib/read.c: Likewise.
4461         * lib/select.c: Likewise.
4462         * lib/sockets.h: Likewise.
4463         * lib/sockets.c: Likewise.
4464         * lib/stdio-read.c: Likewise.
4465         * lib/stdio-write.c: Likewise.
4466         * lib/write.c: Likewise.
4467         * lib/w32sock.h: Likewise.
4468         * lib/w32spawn.h: Likewise.
4469         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4470         * lib/fsync.c: Likewise.
4471         * lib/isapipe.c: Likewise.
4472         * modules/dup2 (Depends-on): Add msvc-nothrow.
4473         * modules/accept4 (Depends-on): Likewise.
4474         * modules/error (Depends-on): Likewise.
4475         * modules/fcntl (Depends-on): Likewise.
4476         * modules/lseek (Depends-on): Likewise.
4477         * modules/nonblocking (Depends-on): Likewise.
4478         * modules/poll (Depends-on): Likewise.
4479         * modules/read (Depends-on): Likewise.
4480         * modules/select (Depends-on): Likewise.
4481         * modules/sockets (Depends-on): Likewise.
4482         * modules/sigpipe (Depends-on): Likewise.
4483         * modules/write (Depends-on): Likewise.
4484         * modules/accept (Depends-on): Likewise.
4485         * modules/bind (Depends-on): Likewise.
4486         * modules/connect (Depends-on): Likewise.
4487         * modules/gethostname (Depends-on): Likewise.
4488         * modules/getpeername (Depends-on): Likewise.
4489         * modules/getsockname (Depends-on): Likewise.
4490         * modules/getsockopt (Depends-on): Likewise.
4491         * modules/ioctl (Depends-on): Likewise.
4492         * modules/listen (Depends-on): Likewise.
4493         * modules/recv (Depends-on): Likewise.
4494         * modules/recvfrom (Depends-on): Likewise.
4495         * modules/send (Depends-on): Likewise.
4496         * modules/sendto (Depends-on): Likewise.
4497         * modules/setsockopt (Depends-on): Likewise.
4498         * modules/shutdown (Depends-on): Likewise.
4499         * modules/socket (Depends-on): Likewise.
4500         * modules/execute (Depends-on): Likewise.
4501         * modules/spawn-pipe (Depends-on): Likewise.
4502         * modules/flock (Depends-on): Likewise.
4503         * modules/fsync (Depends-on): Likewise.
4504         * modules/isapipe (Depends-on): Likewise.
4505         * tests/test-cloexec.c: Include msvc-nothrow.h.
4506         * tests/test-dup-safer.c: Likewise.
4507         * tests/test-dup2.c: Likewise.
4508         * tests/test-dup3.c: Likewise.
4509         * tests/test-fcntl.c: Likewise.
4510         * tests/test-pipe.c: Likewise.
4511         * tests/test-pipe2.c: Likewise.
4512         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4513         * modules/unistd-safer-tests (Depends-on): Likewise.
4514         * modules/dup2-tests (Depends-on): Likewise.
4515         * modules/dup3-tests (Depends-on): Likewise.
4516         * modules/fcntl-tests (Depends-on): Likewise.
4517         * modules/pipe-posix-tests (Depends-on): Likewise.
4518         * modules/pipe2-tests (Depends-on): Likewise.
4519
4520 2011-09-23  Bruno Haible  <bruno@clisp.org>
4521
4522         dup2: Make code more maintainable.
4523         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4524         (rpl_dup2): Use it.
4525         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4526         * modules/dup2 (configure.ac): Invoke it.
4527         Reported by Paul Eggert.
4528
4529 2011-09-23  Bruno Haible  <bruno@clisp.org>
4530
4531         msvc-inval: Fix compilation error.
4532         * lib/msvc-inval.h: Include <excpt.h>.
4533
4534 2011-09-23  Bruno Haible  <bruno@clisp.org>
4535
4536         mkdir: Tweak for MSVC 9.
4537         * lib/sys_stat.in.h: Update comments.
4538         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4539
4540         Tests for module 'chdir'.
4541         * modules/chdir-tests: New file.
4542         * tests/test-chdir.c: New file.
4543
4544         New module 'chdir'.
4545         * modules/chdir: New file.
4546         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4547         (chdir): New declaration.
4548         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4549         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4550         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4551         * tests/test-unistd-c++.cc: Check signature of chdir.
4552         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4553         * modules/chdir-long (Depends-on): Add chdir.
4554         * modules/fchdir (Depends-on): Likewise.
4555         * modules/rename (Depends-on): Likewise.
4556         * modules/savewd (Depends-on): Likewise.
4557
4558         rmdir: Support for mingw, MSVC 9.
4559         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4560         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4561
4562         getcwd: Tweak for MSVC 9.
4563         * lib/unistd.in.h: Update comments.
4564         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4565
4566 2011-09-22  Bruno Haible  <bruno@clisp.org>
4567
4568         strerror_r-posix: Avoid a link error on MSVC.
4569         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4570         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4571
4572 2011-09-22  Bruno Haible  <bruno@clisp.org>
4573
4574         select: Avoid link errors on MSVC.
4575         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4576         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4577         * modules/pselect (Link): Likewise.
4578         * NEWS: Mention the change.
4579         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4580         test-select-stdin against $(LIB_SELECT).
4581         * modules/pselect-tests (Makefile.am): Link test-pselect against
4582         $(LIB_SELECT).
4583
4584 2011-09-22  Bruno Haible  <bruno@clisp.org>
4585
4586         select: Avoid compilation error on MSVC.
4587         * lib/select.c: Don't include <stdbool.h>.
4588
4589 2011-09-21  Bruno Haible  <bruno@clisp.org>
4590
4591         Consolidate all uses of PATH_MAX in *.m4 files.
4592         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4593         macros.
4594         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4595         and gl_PATHMAX_SNIPPET.
4596         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4597         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4598         * modules/chdir-long (Files): Add m4/pathmax.m4.
4599         * modules/getcwd (Files): Likewise.
4600
4601 2011-09-21  Bruno Haible  <bruno@clisp.org>
4602
4603         ftruncate: Un-deprecate, concentrate on Win32 support.
4604         * modules/ftruncate (Status, Notice): Remove sections.
4605         (Depends-on): Add largefile.
4606         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4607         non-mingw platforms.
4608         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4609         include <io.h>.
4610         * modules/perror-tests (Depends-on): Add ftruncate.
4611         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4612         'ftruncate' module.
4613
4614 2011-09-21  Bruno Haible  <bruno@clisp.org>
4615
4616         Add dependencies to new dirent related modules.
4617         * modules/opendir (Depends-on): Add closedir.
4618         * modules/getcwd (Depends-on): Add opendir, closedir.
4619         * modules/dirent-safer-tests (Depends-on): Likewise.
4620         * modules/fdopendir-tests (Depends-on): Likewise.
4621         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4622         * modules/renameat-tests (Depends-on): Likewise.
4623
4624 2011-09-21  Bruno Haible  <bruno@clisp.org>
4625
4626         opendir: Avoid compilation error on mingw.
4627         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4628         * modules/opendir (Depends-on): Add unistd.
4629
4630 2011-09-21  Bruno Haible  <bruno@clisp.org>
4631
4632         ftruncate tests: Avoid a test failure on mingw.
4633         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4634
4635 2011-09-21  Bruno Haible  <bruno@clisp.org>
4636
4637         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4638         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4639         native Windows.
4640
4641 2011-09-21  Bruno Haible  <bruno@clisp.org>
4642
4643         New module 'fdopen'.
4644         * lib/stdio.in.h (fdopen): New declaration.
4645         * lib/fdopen.c: New file.
4646         * m4/fdopen.m4: New file.
4647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4648         REPLACE_FDOPEN.
4649         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4650         REPLACE_FDOPEN.
4651         * modules/fdopen: New file.
4652         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4653         * tests/test-stdio-c++.cc: Check signature of fdopen.
4654         * doc/posix-functions/fdopen.texi: Mention the new module.
4655
4656 2011-09-21  Bruno Haible  <bruno@clisp.org>
4657
4658         unlockpt tests: Avoid test failure on NetBSD 5.1.
4659         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4660         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4661
4662 2011-09-21  Bruno Haible  <bruno@clisp.org>
4663
4664         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4665         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4666         * tests/test-getlogin_r.c (main): Likewise.
4667
4668 2011-09-20  Bruno Haible  <bruno@clisp.org>
4669
4670         time tests: Don't require pid_t.
4671         * doc/posix-headers/time.texi: Revert last change.
4672         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4673         * tests/test-time.c: Comment out the check for pid_t.
4674
4675 2011-09-20  Bruno Haible  <bruno@clisp.org>
4676
4677         fsync tests: Avoid a test failure on mingw.
4678         * tests/test-fsync.c (main): Allow a failure with EIO.
4679
4680 2011-09-20  Bruno Haible  <bruno@clisp.org>
4681
4682         euidaccess: Update comments.
4683         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4684
4685 2011-09-20  Bruno Haible  <bruno@clisp.org>
4686
4687         Ensure EBADF returns for socket functions on mingw.
4688         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4689         descriptor is invalid.
4690         * lib/bind.c (rpl_bind): Likewise.
4691         * lib/connect.c (rpl_connect): Likewise.
4692         * lib/getpeername.c (rpl_getpeername): Likewise.
4693         * lib/getsockname.c (rpl_getsockname): Likewise.
4694         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4695         * lib/listen.c (rpl_listen): Likewise.
4696         * lib/recv.c (rpl_recv): Likewise.
4697         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4698         * lib/send.c (rpl_send): Likewise.
4699         * lib/sendto.c (rpl_sendto): Likewise.
4700         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4701         * lib/shutdown.c (rpl_shutdown): Likewise.
4702
4703 2011-09-20  Bruno Haible  <bruno@clisp.org>
4704
4705         select tests: EBADF tests.
4706         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4707         test_bad_fd): New functions.
4708         (test_function): Invoke also test_bad_fd.
4709
4710 2011-09-20  Bruno Haible  <bruno@clisp.org>
4711
4712         Tests for module 'posix_spawn_file_actions_addopen.
4713         * modules/posix_spawn_file_actions_addopen-tests: New file.
4714         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4715
4716         Tests for module 'posix_spawn_file_actions_adddup2'.
4717         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4718         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4719
4720         Tests for module 'posix_spawn_file_actions_addclose'.
4721         * modules/posix_spawn_file_actions_addclose-tests: New file.
4722         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4723
4724 2011-09-20  Bruno Haible  <bruno@clisp.org>
4725
4726         Tests for module 'unlockpt'.
4727         * modules/unlockpt-tests: New file.
4728         * tests/test-unlockpt.c: New file.
4729         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4730
4731         Tests for module 'grantpt'.
4732         * modules/grantpt-tests: New file.
4733         * tests/test-grantpt.c: New file.
4734         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4735
4736 2011-09-20  Bruno Haible  <bruno@clisp.org>
4737
4738         freopen tests: EBADF tests.
4739         * tests/test-freopen.c: Include errno.h, unistd.h.
4740         (main): Add tests for EBADF, commented out for the moment.
4741
4742         fclose tests: EBADF tests.
4743         * tests/test-fclose.c (main): Add tests for EBADF.
4744
4745         fflush tests: EBADF tests.
4746         * tests/test-fflush.c: Include errno.h, macros.h.
4747         (main): Add tests for EBADF.
4748
4749         ftello tests: EBADF tests.
4750         * tests/test-ftello4.sh: New file.
4751         * tests/test-ftello4.c: New file.
4752         * modules/ftello-tests (Files): Add them.
4753         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4754
4755         fseeko tests: EBADF tests.
4756         * tests/test-fseeko4.sh: New file.
4757         * tests/test-fseeko4.c: New file.
4758         * modules/fseeko-tests (Files): Add them.
4759         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4760
4761         Tests for function fputc().
4762         * modules/fputc-tests: New file.
4763         * tests/test-fputc.c: New file.
4764         * modules/stdio-tests (Depends-on): Add fputc-tests.
4765
4766         Tests for function fgetc().
4767         * modules/fgetc-tests: New file.
4768         * tests/test-fgetc.c: New file.
4769         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4770
4771         Tests for function fdopen().
4772         * modules/fdopen-tests: New file.
4773         * tests/test-fdopen.c: New file.
4774         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4775
4776         Tests for module 'vdprintf'.
4777         * modules/vdprintf-tests: New file.
4778         * tests/test-vdprintf.c: New file.
4779
4780         Tests for module 'dprintf'.
4781         * modules/dprintf-tests: New file.
4782         * tests/test-dprintf.c: New file.
4783
4784 2011-09-20  Bruno Haible  <bruno@clisp.org>
4785
4786         Tests for module 'ioctl'.
4787         * modules/ioctl-tests: New file.
4788         * tests/test-ioctl.c: New file.
4789
4790 2011-09-20  Bruno Haible  <bruno@clisp.org>
4791
4792         fcntl tests: EBADF tests.
4793         * tests/test-fcntl.c (main): Add more tests for EBADF.
4794
4795 2011-09-20  Bruno Haible  <bruno@clisp.org>
4796
4797         utimensat tests: EBADF tests.
4798         * tests/test-utimensat.c (main): Add tests for EBADF.
4799
4800         renameat tests: EBADF tests.
4801         * tests/test-renameat.c (main): Add tests for EBADF.
4802
4803         mkfifoat tests: EBADF tests.
4804         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4805
4806         readlinkat tests: EBADF tests.
4807         * tests/test-readlinkat.c (main): Add tests for EBADF.
4808
4809         symlinkat tests: EBADF tests.
4810         * tests/test-symlinkat.c (main): Add tests for EBADF.
4811
4812         linkat tests: EBADF tests.
4813         * tests/test-linkat.c (main): Add tests for EBADF.
4814
4815         Tests for module 'faccessat'.
4816         * modules/faccessat-tests: New file.
4817         * tests/test-faccessat.c: New file.
4818
4819         fdopendir tests: EBADF tests.
4820         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4821
4822         openat tests: EBADF tests.
4823         * tests/test-fchownat.c (main): Add tests for EBADF.
4824         * tests/test-fstatat.c (main): Likewise.
4825         * tests/test-mkdirat.c (main): Likewise.
4826         * tests/test-openat.c (main): Likewise.
4827         * tests/test-unlinkat.c (main): Likewise.
4828         * tests/test-fchmodat.c: New file.
4829         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4830         (Makefile.am): Also run 'test-fchmodat'.
4831
4832 2011-09-20  Bruno Haible  <bruno@clisp.org>
4833
4834         utimens, futimens, fdutimensat tests: EBADF tests.
4835         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4836
4837         Tests for function fstat().
4838         * modules/fstat-tests: New file.
4839         * tests/test-fstat.c: New file.
4840         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4841
4842 2011-09-20  Bruno Haible  <bruno@clisp.org>
4843
4844         test-ttyname_r tests: EBADF tests.
4845         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4846
4847         Tests for module 'isatty'.
4848         * modules/isatty-tests: New file.
4849         * tests/test-isatty.c: New file.
4850
4851         Tests for module 'write'.
4852         * modules/write-tests: New file.
4853         * tests/test-write.c: New file.
4854
4855         Tests for module 'read'.
4856         * modules/read-tests: New file.
4857         * tests/test-read.c: New file.
4858
4859         pwrite tests: EBADF tests.
4860         * tests/test-pwrite.c (main): Add tests for EBADF.
4861
4862         pread tests: EBADF tests.
4863         * tests/test-pread.c (main): Add tests for EBADF.
4864
4865         lseek tests: EBADF tests.
4866         * tests/test-lseek.c (main): Add more tests for EBADF.
4867
4868         Tests for module 'ftruncate'.
4869         * modules/ftruncate-tests: New file.
4870         * tests/test-ftruncate.sh: New file.
4871         * tests/test-ftruncate.c: New file.
4872
4873         fsync tests: EBADF tests.
4874         * tests/test-fsync.c (main): Add more tests for EBADF.
4875
4876         fdatasync tests: EBADF tests.
4877         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4878
4879         Tests for module 'fchown'.
4880         * modules/fchown-tests: New file.
4881         * tests/test-fchown.c: New file.
4882
4883         Tests for module 'fchmod'.
4884         * modules/fchmod-tests: New file.
4885         * tests/test-fchmod.c: New file.
4886
4887         fchdir tests: EBADF tests.
4888         * tests/test-fchdir.c (main): Add more tests for EBADF.
4889
4890         dup2 tests: EBADF tests.
4891         * tests/test-dup2.c (main): Add more tests for EBADF.
4892
4893         Tests for module 'dup'.
4894         * modules/dup-tests: New file.
4895         * tests/test-dup.c: New file.
4896
4897         Tests for module 'close'.
4898         * modules/close-tests: New file.
4899         * tests/test-close.c: New file.
4900
4901 2011-09-20  Bruno Haible  <bruno@clisp.org>
4902
4903         Tests for module 'shutdown'.
4904         * modules/shutdown-tests: New file.
4905         * tests/test-shutdown.c: New file.
4906
4907         Tests for module 'setsockopt'.
4908         * modules/setsockopt-tests: New file.
4909         * tests/test-setsockopt.c: New file.
4910
4911         Tests for module 'sendto'.
4912         * modules/sendto-tests: New file.
4913         * tests/test-sendto.c: New file.
4914
4915         Tests for module 'send'.
4916         * modules/send-tests: New file.
4917         * tests/test-send.c: New file.
4918
4919         Tests for module 'recvfrom'.
4920         * modules/recvfrom-tests: New file.
4921         * tests/test-recvfrom.c: New file.
4922
4923         Tests for module 'recv'.
4924         * modules/recv-tests: New file.
4925         * tests/test-recv.c: New file.
4926
4927         Tests for module 'listen'.
4928         * modules/listen-tests: New file.
4929         * tests/test-listen.c: New file.
4930
4931         Tests for module 'getsockopt'.
4932         * modules/getsockopt-tests: New file.
4933         * tests/test-getsockopt.c: New file.
4934
4935         Tests for module 'getsockname'.
4936         * modules/getsockname-tests: New file.
4937         * tests/test-getsockname.c: New file.
4938
4939         Tests for module 'getpeername'.
4940         * modules/getpeername-tests: New file.
4941         * tests/test-getpeername.c: New file.
4942
4943         Tests for module 'connect'.
4944         * modules/connect-tests: New file.
4945         * tests/test-connect.c: New file.
4946
4947         Tests for module 'bind'.
4948         * modules/bind-tests: New file.
4949         * tests/test-bind.c: New file.
4950
4951         accept4 tests: Fix for native Windows.
4952         * tests/test-accept4.c: Include sockets.h.
4953         (main): Invoke gl_sockets_startup.
4954         * modules/accept4-tests (Depends-on): Add sockets.
4955
4956         accept tests: Fix for native Windows.
4957         * tests/test-accept.c: Include sockets.h.
4958         (main): Invoke gl_sockets_startup.
4959         * modules/accept-tests (Depends-on): Add sockets.
4960
4961 2011-09-19  Bruno Haible  <bruno@clisp.org>
4962
4963         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4964         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4965         do...while(0).
4966         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4967         Suggested by Paul Eggert.
4968
4969 2011-09-19  Bruno Haible  <bruno@clisp.org>
4970
4971         sched: Ensure pid_t is defined.
4972         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4973         not define pid_t.
4974         * lib/sched.in.h: Include <sys/types.h>.
4975         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4977
4978 2011-09-19  Bruno Haible  <bruno@clisp.org>
4979
4980         msvc-inval: Ensure the entire expansion is a single statement.
4981         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4982         of braces.
4983
4984 2011-09-19  Jim Meyering  <meyering@redhat.com>
4985
4986         tests: use printf, not echo in init.sh's warn_ function
4987         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4988         misbehave when given strings containing a backslash or starting
4989         with e.g., -n.  James Youngman suggested setting IFS.
4990
4991 2011-09-19  Eric Blake  <eblake@redhat.com>
4992
4993         futimens: enhance test
4994         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4995         closed non-negative fd.
4996
4997         date: accept 'hence' as opposite of 'ago'
4998         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4999         * tests/test-parse-datetime.c (main): Enhance test.
5000         Suggested by Jesse Wilson.
5001
5002 2011-09-19  Jim Meyering  <meyering@redhat.com>
5003
5004         getcwd: don't fail in a deep directory on a system without openat
5005         Before this change, getcwd would fail when called from a directory
5006         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5007         the non-openat implementation used "..", "../..", "../../..", etc.
5008         to access ancestor directories.  With too many, that string would
5009         be longer than PATH_MAX.
5010         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5011         using gnulib's openat replacement.
5012         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5013         we're using the replacement function.
5014
5015 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5016
5017         maint.mk: avoid warnings from perl about missing files
5018         * top/maint.mk (def_sym_regex): Ignore files listed in
5019         $(gl_other_headers_) that do not exist, say because a project
5020         does not use a corresponding module.
5021
5022 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5023
5024         stat: use pathmax.h only if needed
5025         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5026         This is better for Emacs, which does not have a mingw port and
5027         therefore can avoid the pathmax module.
5028
5029         utimens: remove dependency on dup2
5030         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5031         to work around the Linux kernel bug.
5032         * modules/utimens (Depends-on): Remove dup2.
5033
5034 2011-09-18  Bruno Haible  <bruno@clisp.org>
5035
5036         inet_ntop, inet_pton: Look for it also in libresolv.
5037         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5038         libnsl, search for it in libresolv.
5039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5040         Needed on Solaris 7.
5041
5042 2011-09-18  Bruno Haible  <bruno@clisp.org>
5043
5044         accept, accept4 tests: Avoid link error on Solaris.
5045         * modules/accept-tests (Makefile.am): Link test-accept against
5046         $(LIBSOCKET).
5047         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5048         $(LIBSOCKET).
5049
5050         accept4: Avoid link error on Solaris.
5051         * modules/accept4 (Link): New section.
5052
5053         socket functions: Avoid link errors on Solaris.
5054         * modules/accept (Depends-on): Add socketlib.
5055         (Link): New section.
5056         * modules/bind (Depends-on): Add socketlib.
5057         (Link): New section.
5058         * modules/connect (Depends-on): Add socketlib.
5059         (Link): New section.
5060         * modules/getpeername (Depends-on): Add socketlib.
5061         (Link): New section.
5062         * modules/getsockname (Depends-on): Add socketlib.
5063         (Link): New section.
5064         * modules/getsockopt (Depends-on): Add socketlib.
5065         (Link): New section.
5066         * modules/listen (Depends-on): Add socketlib.
5067         (Link): New section.
5068         * modules/recv (Depends-on): Add socketlib.
5069         (Link): New section.
5070         * modules/recvfrom (Depends-on): Add socketlib.
5071         (Link): New section.
5072         * modules/send (Depends-on): Add socketlib.
5073         (Link): New section.
5074         * modules/sendto (Depends-on): Add socketlib.
5075         (Link): New section.
5076         * modules/setsockopt (Depends-on): Add socketlib.
5077         (Link): New section.
5078         * modules/shutdown (Depends-on): Add socketlib.
5079         (Link): New section.
5080         * modules/socket (Depends-on): Add socketlib.
5081         (Link): New section.
5082
5083 2011-09-18  Bruno Haible  <bruno@clisp.org>
5084
5085         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5086         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5087         than 5 seconds.
5088         * modules/ptsname-tests (configure.ac): Test for alarm.
5089
5090 2011-09-18  Bruno Haible  <bruno@clisp.org>
5091
5092         posix_spawn_file_actions_add*: Fix module dependencies.
5093         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5094         posix_spawn_file_actions_init.
5095         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5096         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5097
5098 2011-09-18  Bruno Haible  <bruno@clisp.org>
5099
5100         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5101         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5102         * tests/test-renameat.c (main): Likewise.
5103
5104 2011-09-18  Bruno Haible  <bruno@clisp.org>
5105
5106         Tests for module 'accept4'.
5107         * modules/accept4-tests: New file.
5108         * tests/test-accept4.c: New file.
5109
5110 2011-09-18  Bruno Haible  <bruno@clisp.org>
5111
5112         Tests for module 'accept'.
5113         * modules/accept-tests: New file.
5114         * tests/test-accept.c: New file.
5115
5116 2011-09-18  Bruno Haible  <bruno@clisp.org>
5117
5118         dup2: Support for MSVC.
5119         * lib/dup2.c: Include msvc-inval.h.
5120         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5121         _get_osfhandle calls.
5122         * modules/dup2 (Depends-on): Add msvc-inval.
5123         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5124
5125         New module 'msvc-inval'.
5126         * lib/msvc-inval.h: New file.
5127         * lib/msvc-inval.c: New file.
5128         * m4/msvc-inval.m4: New file.
5129         * modules/msvc-inval: New file.
5130
5131 2011-09-17  Bruno Haible  <bruno@clisp.org>
5132
5133         Tests for module 'pclose'.
5134         * modules/pclose-tests: New file.
5135
5136         New module 'pclose'.
5137         * lib/stdio.in.h (pclose): New declaration.
5138         * lib/pclose.c: New file.
5139         * m4/pclose.m4: New file.
5140         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5141         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5142         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5143         * modules/pclose: New file.
5144         * modules/popen-tests (Depends-on): Add pclose.
5145         * modules/popen-safer-tests (Depends-on): Likewise.
5146         * doc/posix-functions/pclose.texi: Mention the new module.
5147
5148 2011-09-17  Bruno Haible  <bruno@clisp.org>
5149
5150         popen: Support for MSVC.
5151         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5152         * lib/popen.c (popen): Provide alternate definition for native Windows.
5153         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5155         * modules/popen (Depends-on, configure.ac): Update condition.
5156         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5157         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5158         fixed.
5159
5160 2011-09-17  Bruno Haible  <bruno@clisp.org>
5161
5162         isnanl, isnand, isnanf: Work around MSVC bug.
5163         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5164
5165 2011-09-17  Bruno Haible  <bruno@clisp.org>
5166
5167         sys_socket tests: Fix recent mistake.
5168         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5169
5170 2011-09-17  Bruno Haible  <bruno@clisp.org>
5171
5172         putenv: Support for MSVC.
5173         * modules/putenv (Depends-on): Add environ.
5174         * lib/putenv.c (environ): Disable declaration.
5175         * lib/unistd.in.h: Update comment.
5176
5177 2011-09-17  Bruno Haible  <bruno@clisp.org>
5178
5179         math: Avoid macro redefinition warnings on MSVC.
5180         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5181         Undefine before redefining.
5182
5183 2011-09-17  Bruno Haible  <bruno@clisp.org>
5184
5185         doc: Mention functions which are declared as macros.
5186         * doc/posix-functions/*[fl].texi: Mention that some functions are
5187         defined as macros with arguments only.
5188
5189 2011-09-17  Bruno Haible  <bruno@clisp.org>
5190
5191         Add dependencies to new dirent related modules.
5192         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5193         * modules/fts (Depends-on): Likewise.
5194         * modules/glob (Depends-on): Likewise.
5195         * modules/savedir (Depends-on): Likewise.
5196         * modules/scandir (Depends-on): Likewise.
5197         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5198         * modules/fdopendir (Depends-on): Add opendir.
5199
5200 2011-09-17  Bruno Haible  <bruno@clisp.org>
5201
5202         inet_pton: Support for MSVC on Windows Vista or newer.
5203         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5204         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5205         HAVE_DECL_INET_PTON is defined.
5206         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5207         On platforms with <winsock2.h>, test whether inet_pton is declared in
5208         <ws2tcpip.h>. If so, arrange to replace it.
5209         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5210         REPLACE_INET_PTON.
5211         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5212         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5213         (Depends-on, configure.ac): Update condition.
5214         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5215
5216 2011-09-17  Bruno Haible  <bruno@clisp.org>
5217
5218         inet_ntop: Support for MSVC on Windows Vista or newer.
5219         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5220         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5221         HAVE_DECL_INET_NTOP is defined.
5222         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5223         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5224         <ws2tcpip.h>. If so, arrange to replace it.
5225         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5226         REPLACE_INET_NTOP.
5227         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5228         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5229         (Depends-on, configure.ac): Update condition.
5230         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5231
5232 2011-09-16  Eric Blake  <eblake@redhat.com>
5233
5234         test-fsync: yet another enhancement
5235         * tests/test-fsync.c (main): Also test behavior on read-only text
5236         file.
5237
5238 2011-09-16  Bruno Haible  <bruno@clisp.org>
5239
5240         Enhance fsync, fdatasync tests.
5241         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5242         * tests/test-fdatasync.c (main): Likewise.
5243
5244 2011-09-16  Bruno Haible  <bruno@clisp.org>
5245
5246         Support for MSVC compiler: Ensure mode_t gets defined.
5247         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5248         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5250         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5251         * tests/test-fcntl-h.c: Check that mode_t is defined.
5252         * tests/test-sys_stat.c: Likewise.
5253         * tests/test-sys_types.c: Likewise.
5254         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5255         * doc/posix-headers/sys_stat.texi: Likewise.
5256         * doc/posix-headers/sys_types.texi: Likewise.
5257
5258 2011-09-16  Bruno Haible  <bruno@clisp.org>
5259
5260         sys_stat: Support for MSVC.
5261         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5262         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5263         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5264         MSVC.
5265
5266 2011-09-16  Bruno Haible  <bruno@clisp.org>
5267
5268         Support for MSVC compiler: Ensure off_t gets defined.
5269         * lib/unistd.in.h: Include <sys/types.h>.
5270         * tests/test-fcntl-h.c: Check that off_t is defined.
5271         * tests/test-sys_stat.c: Likewise.
5272         * tests/test-sys_types.c: Likewise.
5273
5274 2011-09-16  Eric Blake  <eblake@redhat.com>
5275
5276         fdatasync: port to Solaris
5277         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5278         * modules/fdatasync (Link): Document it.
5279         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5280
5281         fdatasync: port to MacOS X 10.7
5282         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5283         declared.
5284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5285         * modules/unistd (Makefile.am): Substitute it.
5286         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5287         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5288
5289         fdatasync: minor improvements
5290         * modules/fdatasync (Depends-on): Add condition for fsync.
5291         * lib/fdatasync.c (fdatasync): Add comment.
5292         * tests/test-unistd-c++.cc: Test fdatasync.
5293
5294         unistd: update refs to newer POSIX
5295         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5296         Suggested by Bruno Haible.
5297
5298         fdatasync: new module
5299         * modules/fsync (Description): Document difference to fdatasync.
5300         * modules/fdatasync: New module.
5301         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5302         * lib/fdatasync.c (fdatasync): Likewise.
5303         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5304         defaults.
5305         * modules/unistd (Makefile.am): Set witnesses.
5306         * lib/unistd.in.h (fdatasync): Declare.
5307         * MODULES.html.sh: Document it.
5308         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5309         * modules/fdatasync-tests: New test.
5310         * tests/test-fdatasync.c: Likewise.
5311
5312 2011-09-16  Eric Blake  <eblake@redhat.com>
5313
5314         test-fsync: enhance tests
5315         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5316         * tests/test-fsync.c (main): Enhance test.
5317
5318 2011-09-15  Bruno Haible  <bruno@clisp.org>
5319
5320         Support for MSVC compiler: Ensure ssize_t gets defined.
5321         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5322         * doc/posix-headers/stdio.texi: Likewise.
5323         * modules/stdio (Depends-on): Add ssize_t.
5324         * modules/sys_socket (Depends-on): Likewise.
5325         * modules/sys_types (Depends-on): Likewise.
5326         * modules/sys_uio (Depends-on): Likewise.
5327         * modules/unistd (Depends-on): Likewise.
5328         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5329         * tests/test-sys_types.c: Check that ssize_t is defined.
5330
5331 2011-09-14  Bruno Haible  <bruno@clisp.org>
5332
5333         Avoid using #, the m4 comment starter character, near brackets.
5334         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5335         delimiter character in sed expressions.
5336         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5337         Suggested by Eric Blake.
5338
5339         Properly quote AC_CHECK_DECLS' 4th argument.
5340         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5341         argument.
5342         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5343         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5344         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5345         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5346         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5347         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5348         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5349         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5350         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5351         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5352         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5353         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5354         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5355         * m4/isinf.m4 (gl_ISINF): Likewise.
5356         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5357         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5358         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5359         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5360         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5362         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5363         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5364         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5365         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5366         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5367         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5369         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5371         Reported by Eric Blake.
5372
5373         Properly quote AC_CHECK_DECL's 4th argument.
5374         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5375         argument.
5376         * m4/argp.m4 (gl_ARGP): Likewise.
5377         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5378         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5379         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5380         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5381         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5382         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5383         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5384         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5385         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5386         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5387         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5388         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5389         Reported by Eric Blake.
5390
5391 2011-09-14  Eric Blake  <eblake@redhat.com>
5392
5393         opendir: avoid compile warning
5394         * lib/opendir.c (includes): Always include errno.h.
5395         Reported by Tatsuro MATSUOKA.
5396
5397 2011-09-14  Jim Meyering  <meyering@redhat.com>
5398
5399         maint.mk: sc_tight_scope: propagate failure from sub-make
5400         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5401         Reported by Martin von Gagern.
5402
5403 2011-09-13  Bruno Haible  <bruno@clisp.org>
5404
5405         tempname: Support for MSVC.
5406         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5407         MSVC.
5408         * modules/tempname (Depends-on): Add fcntl-h.
5409
5410 2011-09-13  Bruno Haible  <bruno@clisp.org>
5411
5412         sys_time: Support for MSVC.
5413         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5414         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5415         include <winsock2.h>.
5416         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5417         function declarations that collide with POSIX.
5418         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5419         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5420
5421 2011-09-13  Bruno Haible  <bruno@clisp.org>
5422
5423         stat: Support for MSVC.
5424         * lib/stat.c: Include pathmax.h.
5425         * modules/stat (Depends-on): Add pathmax.
5426
5427         pathmax: Support for native Windows.
5428         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5429
5430 2011-09-12  Bruno Haible  <bruno@clisp.org>
5431
5432         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5433         * lib/dirent.in.h (struct dirent): New type.
5434         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5435         DT_WHT): New macros.
5436         (DIR): New type.
5437         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5438         (readdir, rewinddir): New declarations.
5439         * lib/dirent-private.h: New file.
5440         * lib/opendir.c: New file.
5441         * lib/readdir.c: New file.
5442         * lib/rewinddir.c: New file.
5443         * lib/closedir.c: New file.
5444         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5445         * m4/opendir.m4: New file.
5446         * m4/readdir.m4: New file.
5447         * m4/rewinddir.m4: New file.
5448         * m4/closedir.m4: New file.
5449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5450         REPLACE_CLOSEDIR here.
5451         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5452         readdir, rewinddir are declared.
5453         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5454         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5455         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5456         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5457         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5458         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5459         * modules/opendir: New file.
5460         * modules/readdir: New file.
5461         * modules/rewinddir: New file.
5462         * modules/closedir: New file.
5463         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5464         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5465         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5466         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5467         * NEWS: Mention the 'fchdir' change.
5468
5469 2011-09-11  Bruno Haible  <bruno@clisp.org>
5470
5471         asm-underscore.m4: Support for MSVC.
5472         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5473         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5474
5475 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5476
5477         Doc about crypt functions.
5478         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5479         needing for _GNU_SOURCE to get crypt.
5480         * doc/posix-functions/encrypt.texi: Likewise.
5481         * doc/posix-functions/setkey.texi: Likewise.
5482
5483 2011-09-11  Bruno Haible  <bruno@clisp.org>
5484
5485         doc: Update regarding MSVC 9.
5486         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5487         tested".
5488         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5489         * doc/posix-headers/*.texi: Likewise.
5490         * doc/pastposix-functions/*.texi: Likewise.
5491         * doc/glibc-functions/*.texi: Likewise.
5492         * doc/glibc-headers/*.texi: Likewise.
5493
5494 2011-09-11  Bruno Haible  <bruno@clisp.org>
5495
5496         unistd et al.: Don't assume <unistd.h> exists.
5497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5498         does not exist.
5499         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5500         exist. But include <stdlib.h>.
5501         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5502         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5503         symlink() does not exist.
5504         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5505         include <io.h> instead.
5506         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5507         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5508         include <direct.h> instead.
5509         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5510         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5511         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5512         <io.h> instead.
5513         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5514         correctly if the system does not have hard links.
5515         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5516         <direct.h> instead.
5517         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5518         it when looking for function declarations.
5519         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5520         <direct.h> and <io.h> instead.
5521         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5522
5523 2011-09-11  Bruno Haible  <bruno@clisp.org>
5524
5525         strcase: Support for MSVC.
5526         * modules/strcase (Status, Notice): Remove obsoletion mark.
5527         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5528         * doc/posix-functions/strncasecmp.texi: Likewise.
5529
5530         strings: Don't assume <strings.h> exists.
5531         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5532         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5533         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5534         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5535
5536 2011-09-11  Bruno Haible  <bruno@clisp.org>
5537
5538         dirent: Don't assume <dirent.h> exists.
5539         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5540         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5541         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5542         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5543
5544 2011-09-11  Bruno Haible  <bruno@clisp.org>
5545
5546         Fix wint_t on MSVC.
5547         * lib/wchar.in.h (wint_t): On MSVC, override it.
5548         * lib/wctype.in.h (wint_t): Likewise.
5549         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5550         MSVC.
5551         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5552         * doc/posix-headers/wctype.texi: Likewise.
5553
5554 2011-09-11  Bruno Haible  <bruno@clisp.org>
5555
5556         sys_types: Fix typo.
5557         * lib/sys_types.in.h: Fix typo in comment.
5558         Reported by Paul Eggert.
5559
5560         Support for MSVC compiler: Ensure size_t gets defined.
5561         * modules/strings (Depends-on): Add 'sys_types'.
5562         * modules/sys_uio (Depends-on): Likewise.
5563         * lib/sys_uio.in.h: Update comment.
5564
5565         C++ tests for module 'sys_types'.
5566         * modules/sys_types-c++-tests: New file.
5567         * tests/test-sys_types-c++.cc: New file.
5568
5569         Tests for module 'sys_types'.
5570         * modules/sys_types-tests: New file.
5571         * tests/test-sys_types.c: New file.
5572
5573         New module 'sys_types'.
5574         * lib/sys_types.in.h: New file.
5575         * m4/sys_types_h.m4: New file.
5576         * modules/sys_types: New file.
5577         * doc/posix-headers/sys_types.texi: Mention the new module and the
5578         size_t problem on MSVC 9.
5579
5580 2011-09-11  Bruno Haible  <bruno@clisp.org>
5581
5582         Support for MSVC compiler: Avoid division by a literal 0.
5583         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5584         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5585         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5586         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5587         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5588         * tests/infinity.h: New file.
5589         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5590         on MSVC.
5591         * tests/test-ceilf1.c: Include infinity.h.
5592         (main): Use Infinityf.
5593         * tests/test-ceil1.c: Include infinity.h.
5594         (main): Use Infinityd.
5595         * tests/test-ceill.c: Include infinity.h.
5596         (main): Use Infinityl.
5597         * tests/test-dprintf-posix.c: Include infinity.h.
5598         (test_function): Use Infinityd.
5599         * tests/test-floorf1.c: Include infinity.h.
5600         (main): Use Infinityf.
5601         * tests/test-floor1.c: Include infinity.h.
5602         (main): Use Infinityd.
5603         * tests/test-floorl.c: Include infinity.h.
5604         (main): Use Infinityl.
5605         * tests/test-fprintf-posix.c: Include infinity.h.
5606         (test_function): Use Infinityd.
5607         * tests/test-frexp.c: Include infinity.h.
5608         (main): Use Infinityd.
5609         * tests/test-frexpl.c: Include infinity.h.
5610         (main): Use Infinityl.
5611         * tests/test-isfinite.c: Include infinity.h.
5612         (test_isfinitef): Use Infinityf.
5613         (test_isfinited): Use Infinityd.
5614         (test_isfinitel): Use Infinityl.
5615         * tests/test-isinf.c: Include infinity.h.
5616         (test_isinff): Use Infinityf.
5617         (test_isinfd): Use Infinityd.
5618         (test_isinfl): Use Infinityl.
5619         * tests/test-isnan.c: Include infinity.h.
5620         (test_float): Use Infinityf.
5621         (test_double): Use Infinityd.
5622         (test_long_double): Use Infinityl.
5623         * tests/test-isnanf.h: Include infinity.h.
5624         (main): Use Infinityf.
5625         * tests/test-isnand.h: Include infinity.h.
5626         (main): Use Infinityd.
5627         * tests/test-isnanl.h: Include infinity.h.
5628         (main): Use Infinityl.
5629         * tests/test-ldexpl.c: Include infinity.h.
5630         (main): Use Infinityl.
5631         * tests/test-printf-posix.h: Include infinity.h.
5632         (test_function): Use Infinityd.
5633         * tests/test-roundf1.c: Include infinity.h.
5634         (main): Use Infinityf.
5635         * tests/test-round1.c: Include infinity.h.
5636         (main): Use Infinityd.
5637         * tests/test-roundl.c: Include infinity.h.
5638         (main): Use Infinityl.
5639         * tests/test-signbit.c: Include infinity.h.
5640         (test_signbitf): Use Infinityf.
5641         (test_signbitd): Use Infinityd.
5642         (test_signbitl): Use Infinityl.
5643         * tests/test-snprintf-posix.h: Include infinity.h.
5644         (test_function): Use Infinityd, Infinityl.
5645         * tests/test-sprintf-posix.h: Include infinity.h.
5646         (test_function): Use Infinityd, Infinityl.
5647         * tests/test-truncf1.c: Include infinity.h.
5648         (main): Use Infinityf.
5649         * tests/test-trunc1.c: Include infinity.h.
5650         (main): Use Infinityd.
5651         * tests/test-truncl.c: Include infinity.h.
5652         (main): Use Infinityl.
5653         * tests/test-vasnprintf-posix.c: Include infinity.h.
5654         (test_function): Use Infinityd, Infinityl.
5655         * tests/test-vasprintf-posix.c: Include infinity.h.
5656         (test_function): Use Infinityd, Infinityl.
5657         * modules/ceilf-tests (Files): Add tests/infinity.h.
5658         * modules/ceil-tests (Files): Likewise.
5659         * modules/ceill-tests (Files): Likewise.
5660         * modules/dprintf-posix-tests (Files): Likewise.
5661         * modules/floorf-tests (Files): Likewise.
5662         * modules/floor-tests (Files): Likewise.
5663         * modules/floorl-tests (Files): Likewise.
5664         * modules/fprintf-posix-tests (Files): Likewise.
5665         * modules/frexp-tests (Files): Likewise.
5666         * modules/frexp-nolibm-tests (Files): Likewise.
5667         * modules/frexpl-tests (Files): Likewise.
5668         * modules/frexpl-nolibm-tests (Files): Likewise.
5669         * modules/isfinite-tests (Files): Likewise.
5670         * modules/isinf-tests (Files): Likewise.
5671         * modules/isnan-tests (Files): Likewise.
5672         * modules/isnanf-tests (Files): Likewise.
5673         * modules/isnanf-nolibm-tests (Files): Likewise.
5674         * modules/isnand-tests (Files): Likewise.
5675         * modules/isnand-nolibm-tests (Files): Likewise.
5676         * modules/isnanl-tests (Files): Likewise.
5677         * modules/isnanl-nolibm-tests (Files): Likewise.
5678         * modules/ldexpl-tests (Files): Likewise.
5679         * modules/printf-posix-tests (Files): Likewise.
5680         * modules/roundf-tests (Files): Likewise.
5681         * modules/round-tests (Files): Likewise.
5682         * modules/roundl-tests (Files): Likewise.
5683         * modules/signbit-tests (Files): Likewise.
5684         * modules/snprintf-posix-tests (Files): Likewise.
5685         * modules/sprintf-posix-tests (Files): Likewise.
5686         * modules/truncf-tests (Files): Likewise.
5687         * modules/trunc-tests (Files): Likewise.
5688         * modules/truncl-tests (Files): Likewise.
5689         * modules/vasnprintf-posix-tests (Files): Likewise.
5690         * modules/vasprintf-posix-tests (Files): Likewise.
5691         * modules/vdprintf-posix-tests (Files): Likewise.
5692         * modules/vfprintf-posix-tests (Files): Likewise.
5693         * modules/vprintf-posix-tests (Files): Likewise.
5694         * modules/vsnprintf-posix-tests (Files): Likewise.
5695         * modules/vsprintf-posix-tests (Files): Likewise.
5696         * modules/xprintf-posix-tests (Files): Likewise.
5697
5698 2011-09-11  Bruno Haible  <bruno@clisp.org>
5699
5700         Ensure pid_t gets defined.
5701         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5702         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5703         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5704         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5705         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5706         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5707         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5708         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5709         * tests/test-fcntl-h.c: Check that pid_t is defined.
5710         * tests/test-sched.c: Likewise.
5711         * tests/test-termios.c: Likewise.
5712         * tests/test-time.c: Likewise.
5713         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5714         * doc/posix-headers/signal.texi: Likewise.
5715         * doc/posix-headers/sys_types.texi: Likewise.
5716         * doc/posix-headers/time.texi: Likewise.
5717
5718 2011-09-11  Bruno Haible  <bruno@clisp.org>
5719
5720         acl: Fix compilation on Solaris 10 (older version).
5721         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5722         of ACE_EVERYONE.
5723         * lib/set-mode-acl.c (qset_acl): Likewise.
5724         Reported by Christian Jullien <eligis@orange.fr>.
5725
5726 2011-09-10  Bruno Haible  <bruno@clisp.org>
5727
5728         iconv, unsetenv: Add support for MSVC compiler.
5729         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5730         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5731
5732 2011-09-10  Bruno Haible  <bruno@clisp.org>
5733
5734         *printf: Add support for MSVC compiler.
5735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5736         handles the exception caused by the %n directive. When cross-compiling,
5737         guess no on native Windows.
5738         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5739         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5740         emulate it through vsnprintf.
5741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5742         * doc/posix-functions/dprintf.texi: Update documentation regarding
5743         MSVC 9.
5744         * doc/posix-functions/fprintf.texi: Likewise.
5745         * doc/posix-functions/printf.texi: Likewise.
5746         * doc/posix-functions/snprintf.texi: Likewise.
5747         * doc/posix-functions/sprintf.texi: Likewise.
5748         * doc/posix-functions/swprintf.texi: Likewise.
5749         * doc/posix-functions/vdprintf.texi: Likewise.
5750         * doc/posix-functions/vfprintf.texi: Likewise.
5751         * doc/posix-functions/vprintf.texi: Likewise.
5752         * doc/posix-functions/vsnprintf.texi: Likewise.
5753         * doc/posix-functions/vsprintf.texi: Likewise.
5754         * doc/glibc-functions/asprintf.texi: Likewise.
5755         * doc/glibc-functions/obstack_printf.texi: Likewise.
5756         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5757         * doc/glibc-functions/vasprintf.texi: Likewise.
5758
5759 2011-09-10  Bruno Haible  <bruno@clisp.org>
5760
5761         nocrash: Add support for native Windows.
5762         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5763
5764 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5765             Bruno Haible  <bruno@clisp.org>
5766
5767         absolute-header, include-next: Add support for MSVC compiler.
5768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5769         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5770         directory separator in #line directives.
5771         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5772         recognize also backslash as directory separator in #line directives.
5773
5774 2011-09-08  Jim Meyering  <meyering@redhat.com>
5775
5776         maint.mk: mark the post-release commit log with "maint: " prefix
5777         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5778         one-line commit-log summary.
5779
5780 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5781             Bruno Haible  <bruno@clisp.org>
5782
5783         Doc about crypt functions.
5784         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5785         systems.
5786         * doc/posix-functions/encrypt.texi: Likewise.
5787         * doc/posix-functions/setkey.texi: Likewise.
5788
5789 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5790
5791         * lib/gc.h: Fix copyright header.
5792
5793 2011-09-07  Bruno Haible  <bruno@clisp.org>
5794
5795         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5796         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5797         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5798
5799 2011-09-07  Bruno Haible  <bruno@clisp.org>
5800
5801         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5802         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5803         * lib/freopen.c: Likewise.
5804         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5805         * lib/lstat.c: Likewise.
5806         * lib/stat.c: Likewise.
5807         * lib/open.c: Use different syntax for include of <fcntl.h>.
5808         * lib/openat.c: Include fcntl.h again, explicitly.
5809
5810 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5811
5812         parse-datetime: document the newly accepted format
5813         * doc/parse-datetime.texi (Combined date and time of day items):
5814         New section.
5815
5816 2011-09-06  Bruno Haible  <bruno@clisp.org>
5817
5818         acl: Fix a test failure on newer Solaris 10 with ZFS.
5819         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5820         ENOSYS as no ACL.
5821         Reported by Jim Meyering.
5822
5823 2011-09-06  Bruno Haible  <bruno@clisp.org>
5824
5825         acl: Update for AIX >= 5.3 with NFS.
5826         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5827         ENOSYS as no ACL.
5828
5829         acl: Fix a test failure on AIX >= 5.3 with NFS.
5830         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5831         as no ACL.
5832
5833 2011-09-06  Bruno Haible  <bruno@clisp.org>
5834
5835         acl: Fix a test failure on IRIX 6.5 with NFS.
5836         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5837         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5838         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5839         * lib/copy-acl.c (qcopy_acl): Likewise.
5840
5841 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5842
5843         openat: port to AIX 7.1 with large files
5844         AIX 7.1 does a "#define openat open64at" if large files are in use,
5845         so we can't simply #undef openat.  Use the orig_openat trick (similar
5846         to orig_open in lib/open.c) to work around the problem.  Problem
5847         reported by Kevin Brott for GNU tar, in the thread containing
5848         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5849         * lib/openat.c (__need_system_fcntl_h): Define first.
5850         Include <fcntl.h> and <sys/types.h> before undefining.
5851         (orig_openat) [HAVE_OPENAT]: New inline function.
5852         (openat) [HAVE_OPENAT]: Do not undef.
5853         (rpl_openat): Use orig_openat, not openat.
5854
5855 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5856             Bruno Haible  <bruno@clisp.org>
5857
5858         acl: Avoid errors on NonStop Kernel.
5859         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5860         ENOTSUP errors.
5861
5862 2011-09-05  Bruno Haible  <bruno@clisp.org>
5863
5864         acl: Clean up Solaris code.
5865         * lib/acl-internal.h: Remove no-op #if.
5866         * lib/file-has-acl.c: Likewise.
5867         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5868         * lib/copy-acl.c (qcopy_acl): Likewise.
5869
5870 2011-09-05  Bruno Haible  <bruno@clisp.org>
5871
5872         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5873         binaries built on the original Solaris 10.
5874         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5875         trivial.
5876
5877 2011-09-05  Bruno Haible  <bruno@clisp.org>
5878
5879         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5880         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5881         10.
5882         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5883         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5884         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5885         instead of acl_get, facl_get, acl_set, facl_set.
5886
5887 2011-09-05  Bruno Haible  <bruno@clisp.org>
5888
5889         copy-file: Try unit tests on more file systems.
5890         * tests/test-copy-file-1.sh: New file.
5891         * tests/test-copy-file-2.sh: New file.
5892         * modules/copy-file-tests (Files): Add them.
5893         (Makefile.am): Add them to TESTS.
5894
5895         acl: Try unit tests on more file systems.
5896         * tests/test-file-has-acl-1.sh: New file.
5897         * tests/test-file-has-acl-2.sh: New file.
5898         * tests/test-set-mode-acl-1.sh: New file.
5899         * tests/test-set-mode-acl-2.sh: New file.
5900         * tests/test-copy-acl-1.sh: New file.
5901         * tests/test-copy-acl-2.sh: New file.
5902         * modules/acl-tests (Files): Add them.
5903         (Makefile.am): Add them to TESTS.
5904
5905 2011-09-04  Bruno Haible  <bruno@clisp.org>
5906
5907         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5908         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5909         10.
5910         (OLD_ALLOW, OLD_DENY): New macros.
5911         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5912         ACE_ACCESS_ALLOWED_ACE_TYPE.
5913         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5914         ACE_ACCESS_DENIED_ACE_TYPE.
5915         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5916         (NEW_ACE_EXECUTE): Fix value.
5917         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5918         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5919         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5920         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5921         NEW_ACE_SYNCHRONIZE): New macros.
5922         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5923         instead of acl_fromtext, acl_set, facl_set.
5924         Fixes a coreutils/tests/cp/perm failure.
5925
5926 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5927
5928         openat: test for fstatat (..., 0) bug
5929         Further testing with tar suggests that fstatat (..., 0)
5930         does not work in general, on AIX 7.1; see
5931         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5932         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5933         replacement fstatat (which is what older AIX releases were using
5934         anyway).
5935         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5936         use is now changed to orig_fstatat.  This was probably the right
5937         thing to do anyway.
5938         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5939         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5940         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5941         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5942         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5943         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5944         if the bug is found.
5945
5946         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5947         This tests for another fstatat bug on AIX 7.1:
5948         fstatat (AT_FDCWD, ..., 0) does not work.  See
5949         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5950         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5951         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5952         (rpl_fstatat): Adjust so that it works around either (or both)
5953         bugs if present.
5954         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5955
5956 2011-09-03  Karl Berry  <karl@gnu.org>
5957
5958         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5959         in index entries.
5960
5961 2011-09-02  Bruno Haible  <bruno@clisp.org>
5962
5963         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5964         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5965         values of AR, ARFLAGS, RANLIB.
5966         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5967
5968 2011-09-02  Bruno Haible  <bruno@clisp.org>
5969
5970         Find 'ar' program that fits with --host argument.
5971         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5972
5973 2011-09-02  Bruno Haible  <bruno@clisp.org>
5974
5975         tests: init.sh: Support any non-GNU diff.
5976         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5977         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5978         Solaris 8.
5979
5980 2011-09-02  Bruno Haible  <bruno@clisp.org>
5981
5982         tests: init.sh: work also with any non-GNU diff that supports -u
5983         * tests/init.sh: Relax check for diff -u support.
5984         Rather than checking for GNU diff via --version, simply check
5985         for support for -u itself.  Useful at least on OpenBSD 4.9,
5986         AIX 7.1, IRIX 6.5, and Solaris 10.
5987
5988 2011-09-01  Bruno Haible  <bruno@clisp.org>
5989
5990         strtoimax, strtoumax: Document problem on HP-UX 11.
5991         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5992         * doc/posix-functions/strtoumax.texi: Likewise.
5993
5994 2011-09-01  Bruno Haible  <bruno@clisp.org>
5995
5996         strtoumax: Avoid link error on OSF/1 with DTK cc.
5997         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5998         defined as a function.
5999         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6000         strtoumax is defined, not whether it is declared.
6001
6002 2011-09-01  Bruno Haible  <bruno@clisp.org>
6003
6004         strtoimax: Avoid link error on OSF/1 with DTK cc.
6005         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6006         defined as a function.
6007         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6008         strtoimax is defined, not whether it is declared.
6009
6010 2011-09-01  Bruno Haible  <bruno@clisp.org>
6011
6012         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6013         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6014         as a function.
6015         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6016         whether it is declared.
6017
6018 2011-09-01  Bruno Haible  <bruno@clisp.org>
6019
6020         imaxabs: Avoid link error on OSF/1 with DTK cc.
6021         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6022         as a function.
6023         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6024         whether it is declared.
6025
6026 2011-09-01  Bruno Haible  <bruno@clisp.org>
6027
6028         Tests for module 'strtoumax'.
6029         * modules/strtoumax-tests: New file.
6030         * tests/test-strtoumax.c: New file.
6031
6032         Tests for module 'strtoimax'.
6033         * modules/strtoimax-tests: New file.
6034         * tests/test-strtoimax.c: New file.
6035
6036         Tests for module 'imaxdiv'.
6037         * modules/imaxdiv-tests: New file.
6038         * tests/test-imaxdiv.c: New file.
6039
6040         Tests for module 'imaxabs'.
6041         * modules/imaxabs-tests: New file.
6042         * tests/test-imaxabs.c: New file.
6043
6044 2011-09-01  Bruno Haible  <bruno@clisp.org>
6045
6046         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6047         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6048         pthread_create.
6049
6050 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6051
6052         openat: work around AIX 7.1 fstatat issue
6053         This should fix the problem that was not properly fixed
6054         in the previous change, dated 2011-08-30.
6055         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6056         __need_system_stat_h defined.
6057         (orig_fstatat) [HAVE_FSTATAT]: New function.
6058         (rpl_fstatat): Go back to the old way of doing things,
6059         except call orig_fstatat instead of fstatat.
6060         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6061         Remove unnecessary check whether fstatat fills in st_size etc.
6062
6063 2011-09-01  Bruno Haible  <bruno@clisp.org>
6064
6065         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6066         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6067         just include the system's header.
6068
6069 2011-08-31  Jim Meyering  <meyering@redhat.com>
6070
6071         tests: avoid spurious assertion failure in test-float.c on ppc64
6072         * tests/test-float.c (test_long_double): Comment out an assertion,
6073         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6074         with gcc-4.4.4.
6075
6076         maint: indent with spaces, not TABs
6077         I need to get in the habit of running gnulib's "make check".
6078         Both of these would have been caught.
6079         * m4/largefile.m4: Indent with spaces, not TABs.
6080         * lib/parse-datetime.y (iso_8601_time): Likewise.
6081         Spotted by Pádraig Brady.
6082
6083         test-parse-datetime.c: accommodate a relatively strict gcc warning
6084         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6085         to avoid a warning from gcc's -Werror=missing-declarations.
6086         Insert a few spaces-before-funcall-parenthesis.
6087
6088 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6089
6090         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6091         The parser now accepts ISO 8601 date-time strings with "T" as the
6092         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6093         with a space between the date and time strings.  Now it also parses
6094         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6095         variants like "2004-02-29T16:21:42.333-07:00"
6096         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6097         of day representation using the 'T' separator character.
6098         * doc/parse-datetime.texi (General date syntax): replace use of
6099         deprecated --iso-8601 option with --rfc-3339 in example of date
6100         command output formats that can be parsed.
6101         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6102         lib/parse-datetime.y.
6103         (gmt_offset): New function.
6104         (main): Add additional test cases to validate ISO8601 extended
6105         date and time of day parsing.
6106
6107 2011-08-31  Bruno Haible  <bruno@clisp.org>
6108
6109         freopen: Documentation.
6110         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6111         name.
6112         Reported by Claudio Bley <claudio.bley@gmail.com>.
6113
6114 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6115
6116         freopen: Don't crash if the filename argument is NULL.
6117         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6118         NULL.
6119
6120 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         openat: work around AIX 7.1 fstatat bug
6123         Problem reported by Kevin Brott for GNU tar, in the thread containing
6124         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6125         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6126         FSTATAT_ST_SIZE_ETC_BROKEN.
6127         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6128         rpl_fstatat.
6129         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6130         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6131         AC_CHECK_FUNCS_ONCE for fstatat.
6132         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6133         fchmodat, mkdirat, openat and unlinkat.
6134
6135 2011-08-30  Bruno Haible  <bruno@clisp.org>
6136
6137         Avoid endless recursions if config.h includes some header files.
6138         * lib/fopen.c (__need_FILE): Define already before including config.h.
6139         * lib/freopen.c (__need_FILE): Likewise.
6140         * lib/open.c (__need_system_fcntl_h): Likewise.
6141         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6142         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6143         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6144
6145 2011-08-25  Karl Berry  <karl@gnu.org>
6146
6147         * config/srclist.txt (ylwrap): new try.
6148         * build-aux/ylwrap: new file.
6149
6150 2011-08-23  Bruno Haible  <bruno@clisp.org>
6151
6152         tmpdir: Use a good default directory on native Windows.
6153         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6154         (P_tmpdir): Default to _P_tmpdir on native Windows.
6155         (path_search): On native Windows, try the value returned by GetTempPath
6156         before trying P_tmpdir.
6157         * modules/tmpdir (Depends-on): Add pathmax.
6158         Suggested by John Darrington <john@darrington.wattle.id.au>.
6159
6160 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6161
6162         doc: fix typo in README-release
6163         * top/README-release: Capitalize first word of a sentence.
6164
6165 2011-08-19  Jim Meyering  <meyering@redhat.com>
6166
6167         fts: do not exhaust memory when processing million-entry directories
6168         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6169         directory would require about 256*N bytes of memory.  Thus, it was
6170         easy to construct a directory too large to be processed by any of
6171         those tools.  With this change, fts' maximum memory utilization is
6172         now limited to around 30MB.
6173         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6174         (fts_read): When we've processed the final entry (i.e., when
6175         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6176         using the parent entry to read any remaining entries.  Dispatch
6177         depending on what fts_build returns:
6178         - NULL+stop, aka failure: stop
6179         - NULL otherwise: move up in the dir hierarchy
6180         - non-NULL: handle this new entry
6181         (fts_build): Declare and use new local, continue_readdir.
6182         Prepare to be called from fts_read, when the entries
6183         from a partially-read directory have just been exhausted.
6184         In that case, we'll skip the opendir and instead use the parent's
6185         fts_dirp and derive dir_fd from that.
6186         Finally, in the readdir loop, if we read max_entries entries,
6187         exit the loop ensuring *not* to call closedir.  This is required
6188         so that fts_dirp can be reused on a subsequent call.
6189         Prompted by Ben England's report of memory exhaustion in find
6190         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6191
6192         maint: fts: move decl of `dp' down into while loop; split a long line
6193         * lib/fts.c (fts_build): No semantic change.
6194
6195         fts: add/use new struct member, fts_dirp
6196         We are about to use this to manage any directory with
6197         too many entries to read all of them into memory at once.
6198         To do that, we'll need to save the DIR* pointer in each
6199         affected FTSENT struct.
6200         * lib/fts_.h: Include <dirent.h>.
6201         (struct FTSENT) [fts_dirp]: New member.
6202         * lib/fts.c (closedir_and_clear): Define.
6203         Use it in place of closedir so that we are sure to
6204         clear the new fts_dirp member when done with it.
6205         (fts_alloc): Initialize the new member.
6206         (fts_lfree): Free, if needed.
6207
6208         maint: fts: give __opendir2 a new parameter and rename
6209         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6210         than surreptitiously using sole caller's "dir_fd".
6211         (fts_opendir): Rename from __opendir2.
6212
6213         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6214         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6215
6216         maint: fts.c: correct off-by-one indentation
6217         * lib/fts.c (fts_build): Correct indentation, change style
6218         of a couple of block comments, and bracing style.
6219
6220         maint: fts.c: move __opendir2 #define "up" out of function body
6221         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6222
6223         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6224         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6225         out for a long time and besides was useful only on BSD systems.
6226
6227 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6228
6229         regex: port to Stratus OpenVOS
6230         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6231         define to empty, rather than attempting nonportable optimizations.
6232         Problem reported by Paul Green in:
6233         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6234         and fix suggested by Eric Blake in:
6235         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6236
6237 2011-08-17  Eric Blake  <eblake@redhat.com>
6238
6239         getcwd: fix test failures on mingw
6240         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6241         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6242         test if long directory cannot be created, and allow mingw errno.
6243
6244         getcwd-lgpl: fix m4 to match relaxed test for BSD
6245         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6246         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6247         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6248         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6249         signature problem.
6250
6251         getcwd: fix compilation on mingw64
6252         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6253         getcwd.
6254         Reported by Marc-André Lureau.
6255
6256         pipe2: silence compiler warning
6257         * lib/pipe2.c (pipe2): Hide label if it is not used.
6258
6259 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6260
6261         relocatable-prog: fix link error
6262         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6263         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6264         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6265         into modules/relocatable-lib without noticing that
6266         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6267         also needs to build relocatable.c.
6268
6269 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6270
6271         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6273         shell code: it contained a 'break' that was not in a loop.
6274         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6275         via a shell-language loop; this may have been true in old Autoconf
6276         versions, but it's not true in Autoconf 2.68.  I found this bug
6277         when testing coreutils git on Solaris 8, whose shell complains
6278         about the syntax error.
6279
6280 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6281
6282         * lib/base64.c: Fix comment to reference RFC 4648.
6283         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6284         <gvtulder@gmail.com>.
6285
6286 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6287
6288         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6289
6290         po/Makefile.in.in: fix make -q problem
6291         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6292         rule, since there's no file named 'check-macro-version' and its
6293         use as a file breaks make -q.
6294         (all): Don't depend on check-macro-version.
6295         (CHECK_MACRO_VERSION): New macro.
6296         (stamp-po): Use it.
6297
6298         configmake: fix make -q problem
6299         * modules/configmake (configmake.h): Update configmake.h's time stamp
6300         even if the file does not change.  Otherwise, 'make -q' fails.
6301         Problem reported by Simon Josefsson in
6302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6303
6304 2011-08-11  Jim Meyering  <meyering@redhat.com>
6305
6306         git-version-gen: correct the advice in a comment
6307         * build-aux/git-version-gen: Correct comment.
6308         Don't recommend to list .tarball-version in .gitignore.
6309
6310 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6311
6312         base64: fix off-by-one buffer size bug
6313         Problem and (trivial) fix reported by Gijs van Tulder in
6314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6315         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6316         * tests/test-base64.c (main): Catch the bug.
6317
6318 2011-08-10  Eric Blake  <eblake@redhat.com>
6319
6320         closein: correct comments
6321         * lib/closein.c (close_stdin): Improve comments.
6322
6323 2011-08-09  Bruno Haible  <bruno@clisp.org>
6324
6325         More tests for 'fseeko'.
6326         * tests/test-fseeko3.c: New file, from Eric Blake.
6327         * tests/test-fseeko3.sh: New file.
6328         * modules/fseeko-tests (Files): Add them.
6329         (TESTS): Add test-fseeko3.sh.
6330         (check_PROGRAMS): Add test-fseeko3.
6331
6332 2011-08-09  Eric Blake  <eblake@redhat.com>
6333
6334         fseeko: remove unneeded hack
6335         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6336
6337         fseeko: fix bug on glibc
6338         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6339         Reported by John W. Eaton.
6340
6341 2011-08-08  Bruno Haible  <bruno@clisp.org>
6342
6343         unictype/base: Fix interoperability with preinstalled libunistring.
6344         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6345         Reported by Simon Josefsson.
6346
6347 2011-08-08  Bruno Haible  <bruno@clisp.org>
6348
6349         iswblank: Detect declaration correctly.
6350         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6351         AC_CHECK_DECLS invocation.
6352
6353 2011-08-08  Bruno Haible  <bruno@clisp.org>
6354
6355         tcgetsid: Detect declaration correctly.
6356         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6357         AC_CHECK_DECLS invocation.
6358         Reported by Simon Josefsson.
6359
6360 2011-08-08  Eric Blake  <eblake@redhat.com>
6361
6362         largefile: fix typo that regressed large file support
6363         * modules/largefile (configure.ac-early): Fix section name.
6364
6365 2011-08-06  Karl Berry  <karl@gnu.org>
6366
6367         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6368         a separate module.
6369
6370 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6371
6372         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6373         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6374         get prototype for free.
6375
6376 2011-08-04  Bruno Haible  <bruno@clisp.org>
6377
6378         Tests for module 'pathmax'.
6379         * modules/pathmax-tests: New file.
6380         * tests/test-pathmax.c: New file.
6381
6382         canonicalize-lgpl: Support larger filenames on the Hurd.
6383         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6384         Reported by Paul Eggert.
6385
6386         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6387         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6388         * lib/chdir-long.h: Include pathmax.h.
6389         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6390         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6391         (PATH_MAX): Remove code that is done by pathmax.h.
6392         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6393         * lib/tmpfile.c: Add a comment.
6394         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6395         * modules/chdir-long (Depends-on): Add pathmax.
6396         * modules/getcwd (Depends-on): Add pathmax.
6397         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6398         is not defined.
6399         * doc/posix-headers/limits.texi: Mention the pathmax module.
6400         * NEWS: Mention the change.
6401
6402 2011-08-02  Bruno Haible  <bruno@clisp.org>
6403
6404         pthread_sigmask: Actually use results of gl_THREADLIB.
6405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6406         gl_THREADLIB, not gl_[]THREADLIB.
6407         Reported by Eric Blake.
6408
6409 2011-08-02  Jim Meyering  <meyering@redhat.com>
6410
6411         maint.mk: relax the default _gl_TS_function_match regexp
6412         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6413         space between function name and "(" in an "extern" declaration.
6414         That would fail to match a decl with no space there: extern void foo();
6415
6416 2011-07-31  Iain Nicol  <iain@thenicols.net>
6417
6418         git-version-gen: document that EXTRA_DIST must include .version
6419         * build-aux/git-version-gen: In the how-to-use comment, document
6420         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6421         will fail when run from an unpacked distribution tarball.
6422
6423 2011-08-01  Bruno Haible  <bruno@clisp.org>
6424
6425         wctype-h: Fix last change.
6426         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6427         REPLACE_TOWLOWER to 0.
6428         Reported by Sam Steingold <sds@gnu.org>.
6429
6430 2011-07-31  Bruno Haible  <bruno@clisp.org>
6431
6432         frexpl: Update autoconf test.
6433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6434         according to changes of 2011-06-20.
6435
6436 2011-07-31  Bruno Haible  <bruno@clisp.org>
6437
6438         sys_utsname: Add support for Minix.
6439         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6440         <sys/utsname.h>.
6441         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6442         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6443
6444 2011-07-31  Bruno Haible  <bruno@clisp.org>
6445
6446         strings: Add support for Minix.
6447         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6448         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6449         * doc/posix-headers/strings.texi: Document the Minix problem.
6450
6451 2011-07-31  Bruno Haible  <bruno@clisp.org>
6452
6453         wctype-h: Add support for Minix.
6454         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6455         REPLACE_TOWLOWER.
6456         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6457         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6458         REPLACE_ISWCNTRL.
6459
6460 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6461
6462         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6463         This is a performance improvement for 64-bit hosts: it causes the
6464         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6465
6466 2011-07-31  Bruno Haible  <bruno@clisp.org>
6467
6468         stdioext: Add support for Minix.
6469         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6470         * lib/fpurge.c (fpurge): Likewise.
6471         * lib/freadahead.c (freadahead): Likewise.
6472         * lib/freadable.c (freadable): Likewise.
6473         * lib/freading.c (freading): Likewise.
6474         * lib/freadptr.c (freadptr): Likewise.
6475         * lib/freadseek.c (freadptrinc): Likewise.
6476         * lib/fseeko.c (rpl_fseeko): Likewise.
6477         * lib/fseterr.c (fseterr): Likewise.
6478         * lib/fwritable.c (fwritable): Likewise.
6479         * lib/fwriting.c (fwriting): Likewise.
6480         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6481         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6482
6483 2011-07-31  Bruno Haible  <bruno@clisp.org>
6484
6485         errno: Port to Minix.
6486         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6487         ECONNABORTED are defined.
6488         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6489         GNULIB_defined_ECONNABORTED): New macros.
6490         * lib/strerror-override.h (strerror_override): Test also
6491         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6492         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6493         ECONNABORTED.
6494         * doc/posix-headers/errno.texi: Mention the Minix problem.
6495
6496 2011-07-31  Bruno Haible  <bruno@clisp.org>
6497
6498         Work around declaration collisions on Minix.
6499         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6500         defined, set REPLACE_MBSINIT.
6501         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6502         defined, set REPLACE_MBRTOWC.
6503         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6504         set REPLACE_MBRLEN.
6505         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6506         defined, set REPLACE_MBSRTOWCS.
6507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6508         defined, set REPLACE_WCRTOMB.
6509         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6510         defined, set REPLACE_WCSRTOMBS.
6511
6512 2011-07-31  Bruno Haible  <bruno@clisp.org>
6513
6514         Add support for Minix with ACK compiler.
6515         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6516         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6517         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6518
6519 2011-07-31  Bruno Haible  <bruno@clisp.org>
6520
6521         Documentation about Minix.
6522         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6523         * doc/glibc-headers/*.texi: Likewise.
6524         * doc/posix-functions/*.texi: Likewise.
6525         * doc/glibc-functions/*.texi: Likewise.
6526
6527 2011-07-31  Bruno Haible  <bruno@clisp.org>
6528
6529         snippet/warn-on-use: Fix indentation.
6530         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6531
6532 2011-07-25  Jim Meyering  <meyering@redhat.com>
6533
6534         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6535         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6536         commands.
6537
6538 2011-07-27  Jim Meyering  <meyering@redhat.com>
6539
6540         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6541         * top/maint.mk (gl_extract_significant_defines_): Now that
6542         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6543         gnulib/lib/signal.in.h, and now that we recommend to
6544         define-if-undefined those two symbols in application code,
6545         we must filter them out of the "significant" list.
6546         This avoids a "make syntax-check" failure in coreutils.
6547
6548 2011-07-26  Eric Blake  <eblake@redhat.com>
6549
6550         warnings: add comments about previous patch
6551         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6552         * m4/include_next.m4: Likewise.
6553         * m4/warn-on-use.m4: Likewise.
6554         * m4/warnings.m4: Likewise, and simplify use.
6555         Suggested by Stefano Lattarini.
6556
6557         include-next, warnings: support older autoconf
6558         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6559         AS_VAR_PUSHDEF in a way that works with older autoconf.
6560         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6561         Reported by Daniel P. Berrange.
6562
6563 2011-07-25  Bruno Haible  <bruno@clisp.org>
6564
6565         fseek, ftell: Fix doc.
6566         * doc/posix-functions/fseek.texi: Reword statement about
6567         AC_SYS_LARGEFILE.
6568         * doc/posix-functions/ftell.texi: Likewise.
6569
6570 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6571             Bruno Haible  <bruno@clisp.org>
6572
6573         Add dependencies to the 'largefile' module.
6574         * modules/fopen (Depends-on): Add 'largefile'.
6575         * modules/freopen (Depends-on): Likewise.
6576         * modules/fseeko (Depends-on): Likewise.
6577         * modules/ftello (Depends-on): Likewise.
6578         * modules/glob (Depends-on): Likewise.
6579         * modules/lseek (Depends-on): Likewise.
6580         * modules/lstat (Depends-on): Likewise.
6581         * modules/mkostemp (Depends-on): Likewise.
6582         * modules/mkostemps (Depends-on): Likewise.
6583         * modules/mkstemp (Depends-on): Likewise.
6584         * modules/mkstemps (Depends-on): Likewise.
6585         * modules/open (Depends-on): Likewise.
6586         * modules/openat (Depends-on): Likewise.
6587         * modules/pread (Depends-on): Likewise.
6588         * modules/pwrite (Depends-on): Likewise.
6589         * modules/scandir (Depends-on): Likewise.
6590         * modules/stat (Depends-on): Likewise.
6591         * modules/tmpfile (Depends-on): Likewise.
6592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6593         since the containing module now depends on the largefile module.
6594         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6595         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6596         off_t is fixed by gnulib.
6597         * doc/posix-functions/freopen.texi: Likewise.
6598         * doc/posix-functions/fseeko.texi: Likewise.
6599         * doc/posix-functions/fstatat.texi: Likewise.
6600         * doc/posix-functions/ftello.texi: Likewise.
6601         * doc/posix-functions/glob.texi: Likewise.
6602         * doc/posix-functions/lseek.texi: Likewise.
6603         * doc/posix-functions/lstat.texi: Likewise.
6604         * doc/posix-functions/mkstemp.texi: Likewise.
6605         * doc/posix-functions/open.texi: Likewise.
6606         * doc/posix-functions/openat.texi: Likewise.
6607         * doc/posix-functions/pread.texi: Likewise.
6608         * doc/posix-functions/pwrite.texi: Likewise.
6609         * doc/posix-functions/scandir.texi: Likewise.
6610         * doc/posix-functions/stat.texi: Likewise.
6611         * doc/posix-functions/tmpfile.texi: Likewise.
6612         * doc/glibc-functions/mkostemp.texi: Likewise.
6613         * doc/glibc-functions/mkostemps.texi: Likewise.
6614         * doc/glibc-functions/mkstemps.texi: Likewise.
6615
6616 2011-07-25  Bruno Haible  <bruno@clisp.org>
6617
6618         fcntl: Move AC_LIBOBJ invocation to module description.
6619         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6620         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6621
6622         fcntl: Remove call-in from fchdir.m4.
6623         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6625
6626         dup3: Remove potential call-in from fchdir.m4.
6627         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6629
6630         dup2: Move AC_LIBOBJ invocation to module description.
6631         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6632         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6633         Don't invoke AC_LIBOBJ.
6634         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6635
6636         dup2: Remove call-in from fchdir.m4.
6637         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6639
6640         fclose: Move AC_LIBOBJ invocation to module description.
6641         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6642         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6643         to 1.
6644         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6645
6646         fclose: Remove call-in from close.m4.
6647         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6648         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6649
6650         close: Move AC_LIBOBJ invocation to module description.
6651         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6652         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6653         1.
6654         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6655
6656         close: Remove call-in from fchdir.m4.
6657         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6659
6660         open: Move AC_LIBOBJ invocation to module description.
6661         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6662         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6663         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6664
6665         open: Remove call-in from fchdir.m4.
6666         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6668
6669         fchdir: Start to remove gl_REPLACE_* idiom.
6670         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6671         (gl_FUNC_FCHDIR): Invoke it.
6672
6673 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         * lib/ftell.c (ftell): Comment out cast.
6676
6677         close: use gl_REPLACE_FCLOSE only if defined
6678         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6679         is defined.  The close module doesn't depend on the fclose module
6680         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6682         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6683
6684 2011-07-24  Jim Meyering  <meyering@redhat.com>
6685
6686         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6687         * tests/test-select.h (test_function): Declare as "static".
6688
6689 2011-07-24  Bruno Haible  <bruno@clisp.org>
6690
6691         doc: Mention the effects of AC_SYS_LARGEFILE.
6692         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6693         on this function.
6694         * doc/posix-functions/aio_error.texi: Likewise.
6695         * doc/posix-functions/aio_fsync.texi: Likewise.
6696         * doc/posix-functions/aio_read.texi: Likewise.
6697         * doc/posix-functions/aio_return.texi: Likewise.
6698         * doc/posix-functions/aio_suspend.texi: Likewise.
6699         * doc/posix-functions/aio_write.texi: Likewise.
6700         * doc/posix-functions/fgetpos.texi: Likewise.
6701         * doc/posix-functions/fopen.texi: Likewise.
6702         * doc/posix-functions/freopen.texi: Likewise.
6703         * doc/posix-functions/fsetpos.texi: Likewise.
6704         * doc/posix-functions/fstatvfs.texi: Likewise.
6705         * doc/posix-functions/ftruncate.texi: Likewise.
6706         * doc/posix-functions/ftw.texi: Likewise.
6707         * doc/posix-functions/getrlimit.texi: Likewise.
6708         * doc/posix-functions/glob.texi: Likewise.
6709         * doc/posix-functions/lio_listio.texi: Likewise.
6710         * doc/posix-functions/lockf.texi: Likewise.
6711         * doc/posix-functions/mkstemp.texi: Likewise.
6712         * doc/posix-functions/mmap.texi: Likewise.
6713         * doc/posix-functions/nftw.texi: Likewise.
6714         * doc/posix-functions/openat.texi: Likewise.
6715         * doc/posix-functions/opendir.texi: Likewise.
6716         * doc/posix-functions/posix_fadvise.texi: Likewise.
6717         * doc/posix-functions/posix_fallocate.texi: Likewise.
6718         * doc/posix-functions/pread.texi: Likewise.
6719         * doc/posix-functions/pwrite.texi: Likewise.
6720         * doc/posix-functions/readdir.texi: Likewise.
6721         * doc/posix-functions/readdir_r.texi: Likewise.
6722         * doc/posix-functions/rewinddir.texi: Likewise.
6723         * doc/posix-functions/scandir.texi: Likewise.
6724         * doc/posix-functions/seekdir.texi: Likewise.
6725         * doc/posix-functions/setrlimit.texi: Likewise.
6726         * doc/posix-functions/statvfs.texi: Likewise.
6727         * doc/posix-functions/telldir.texi: Likewise.
6728         * doc/posix-functions/tmpfile.texi: Likewise.
6729         * doc/posix-functions/truncate.texi: Likewise.
6730         * doc/glibc-functions/fallocate.texi: Likewise.
6731         * doc/glibc-functions/fstatfs.texi: Likewise.
6732         * doc/glibc-functions/fts_children.texi: Likewise.
6733         * doc/glibc-functions/fts_read.texi: Likewise.
6734         * doc/glibc-functions/getdirentries.texi: Likewise.
6735         * doc/glibc-functions/mkostemp.texi: Likewise.
6736         * doc/glibc-functions/mkostemps.texi: Likewise.
6737         * doc/glibc-functions/mkstemps.texi: Likewise.
6738         * doc/glibc-functions/preadv.texi: Likewise.
6739         * doc/glibc-functions/pwritev.texi: Likewise.
6740         * doc/glibc-functions/sendfile.texi: Likewise.
6741         * doc/glibc-functions/statfs.texi: Likewise.
6742
6743 2011-07-24  Bruno Haible  <bruno@clisp.org>
6744
6745         doc: Fix typo.
6746         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6747
6748 2011-07-24  Bruno Haible  <bruno@clisp.org>
6749
6750         doc: Mention fsusage.
6751         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6752
6753 2011-07-24  Bruno Haible  <bruno@clisp.org>
6754
6755         doc: Mention new glibc headers and functions.
6756         * doc/glibc-headers/gshadow.texi: New file.
6757         * doc/glibc-functions/endsgent.texi: New file.
6758         * doc/glibc-functions/fgetsgent.texi: New file.
6759         * doc/glibc-functions/fgetsgent_r.texi: New file.
6760         * doc/glibc-functions/getsgent.texi: New file.
6761         * doc/glibc-functions/getsgent_r.texi: New file.
6762         * doc/glibc-functions/getsgnam.texi: New file.
6763         * doc/glibc-functions/getsgnam_r.texi: New file.
6764         * doc/glibc-functions/putsgent.texi: New file.
6765         * doc/glibc-functions/setsgent.texi: New file.
6766         * doc/glibc-functions/sgetsgent.texi: New file.
6767         * doc/glibc-functions/sgetsgent_r.texi: New file.
6768         * doc/glibc-functions/malloc_info.texi: New file.
6769         * doc/glibc-functions/preadv.texi: New file.
6770         * doc/glibc-functions/pwritev.texi: New file.
6771         * doc/glibc-functions/register_printf_modifier.texi: New file.
6772         * doc/glibc-functions/register_printf_specifier.texi: New file.
6773         * doc/glibc-functions/register_printf_type.texi: New file.
6774         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6775         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6776         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6777         * doc/glibc-functions/pthread_getname_np.texi: New file.
6778         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6779         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6780         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6781         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6782         * doc/glibc-functions/pthread_setname_np.texi: New file.
6783         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6784         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6785         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6786         * doc/glibc-functions/qsort_r.texi: New file.
6787         * doc/glibc-functions/quick_exit.texi: New file.
6788         * doc/glibc-functions/syncfs.texi: New file.
6789         * doc/gnulib.texi: Include them.
6790         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6791         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6792         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6793         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6794         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6795         * doc/glibc-functions/execvpe.texi: Likewise.
6796
6797 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6798
6799         ftell: don't include <unistd.h>
6800         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6801         guaranteed to define off_t, and the ftell module depends on the
6802         stdio module.
6803
6804         ftell: do not assume wraparound signed arithmetic
6805         * lib/ftell.c: Include <limits.h>.
6806         (ftell): Don't assume wraparound signed arithmetic.
6807
6808 2011-07-24  Bruno Haible  <bruno@clisp.org>
6809
6810         close: No longer depend on module 'fclose'.
6811         * modules/close (Depends-on): Remove fclose.
6812         * NEWS: Mention the change.
6813         Suggested by Sam Steingold <sds@gnu.org>.
6814
6815 2011-07-24  Bruno Haible  <bruno@clisp.org>
6816
6817         fsusage: Enable large volume support on AIX >= 5.2.
6818         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6819         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6820         instead of STAT_STATVFS.
6821         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6822
6823         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6824         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6825         f_blocks field only on MacOS X.
6826
6827         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6829         * modules/fsusage (Depends-on): Add largefile.
6830
6831 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6832
6833         * README: Modernize discussion of signed integers.
6834         Assuming overflow wraparound is no longer safe.
6835         Mention ones' complement and signed magnitude.
6836
6837 2011-07-22  Bruno Haible  <bruno@clisp.org>
6838
6839         select tests, pselect tests: Refactor.
6840         * tests/test-select.h: New file, extracted from tests/test-select.c.
6841         (select_fn): New type.
6842         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6843         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6844         test_pipe): Add my_select argument.
6845         (test_function): Renamed from main. Add my_select argument.
6846         * tests/test-select.c: Move most code to tests/test-select.h. Include
6847         test-select.h.
6848         * modules/select-tests (Files): Add tests/test-select.h.
6849         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6850         (my_select, main): New functions.
6851         * modules/pselect-tests (Files): Add tests/test-select.h,
6852         tests/macros.h, tests/signature.h.
6853         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6854         (configure.ac): Check for <sys/wait.h>.
6855
6856 2011-07-22  Bruno Haible  <bruno@clisp.org>
6857
6858         sys_select tests: Check the signature of FD_*.
6859         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6860         signature tests from here...
6861         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6862         here.
6863         * modules/sys_select-tests (Files): Add tests/signature.h.
6864
6865 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6866
6867         largefile: new module, replacing large-inode
6868         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6869         * MODULES.html.sh: Add largefile, remove large-inode.
6870         * modules/largefile, m4/largefile.m4: New files.
6871         * modules/large-inode, m4/large-inode.m4: Remove.
6872
6873         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6875         implementations that use only 32 bits to count blocks.
6876         On typical hosts with 1024-byte blocks, this fails with file
6877         systems as small as 4 TiB.  Problem reported by Herb Wartens
6878         <http://debbugs.gnu.org/9140> and this should also fix a similar
6879         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6880
6881         large-inode: New module
6882         * MODULES.html.sh: Add it.
6883         * modules/large-inode, m4/large-inode.m4: New files.
6884
6885         extensions: Enable extensions on MacOS X 10.5 and later.
6886         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6887
6888 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6889
6890         file-has-acl: use acl_extended_file_nofollow if available
6891         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6892         (acl_extended_file): New macro.
6893         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6894         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6895
6896 2011-07-21  Bruno Haible  <bruno@clisp.org>
6897
6898         Declare system functions in a way that works with C++.
6899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6900         declare fdopendir as extern "C".
6901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6902         declare frexpl as extern "C".
6903         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6904         declare gai_strerror as extern "C".
6905         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6906         programs, declare gai_strerror as extern "C".
6907         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6908         declare getlogin_r as extern "C".
6909         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6910         as extern "C".
6911         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6912         declare ldexpl as extern "C".
6913         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6914         as extern "C".
6915         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6916         program, declare getmntinfo as extern "C".
6917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6918         stpncpy as extern "C".
6919         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6920         program, declare __xpg_strerror_r as extern "C".
6921         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6922         strndup as extern "C".
6923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6924         declare memset and bzero as extern "C".
6925         Reported by Sam Steingold <sds@gnu.org>.
6926
6927 2011-07-12  Jim Meyering  <meyering@redhat.com>
6928
6929         maint.mk: prohibit inclusion of "verify.h" without use
6930         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6931
6932 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6933
6934         timer-time: A new module to check for timer_settime()
6935         * m4/timer_time.m4: Check for the posix function.
6936         * modules/timer-time: Add the new module.
6937         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6938         Mention it.
6939
6940 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6941             Bruno Haible  <bruno@clisp.org>
6942
6943         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6944         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6945         not defined, assume POSIX threads and look for pthread_sigmask in
6946         $LIBS, without changing $CPPFLAGS.
6947
6948 2011-07-19  Bruno Haible  <bruno@clisp.org>
6949
6950         strstr: Update cross-compilation guess.
6951         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6952         CPUs, guess no, in view of glibc
6953         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6954         Suggested by Eric Blake. Reported by Reuben Thomas.
6955
6956 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6957
6958         getopt-gnu: suppress core dumps from detection code
6959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6960         to suppress core dumps that may well occur on glibc systems.
6961         * modules/getopt-gnu: Depend on nocrash.
6962
6963 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6964
6965         pthread_sigmask: ensure usleep is declared
6966         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6967         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6968
6969 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6970
6971         doc: Document NonStop portability issues.
6972         * doc/posix-functions/sigaction.texi (sigaction):
6973         * doc/posix-headers/signal.texi (signal.h):
6974         Document NonStop.  See Joachim Schmitz in
6975         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6976
6977 2011-07-15  Bruno Haible  <bruno@clisp.org>
6978
6979         ffsl, ffsll: Avoid unportable behaviour.
6980         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6981
6982 2011-07-15  Bruno Haible  <bruno@clisp.org>
6983
6984         ffs: More tests.
6985         * tests/test-ffs.c (NBITS): New macro.
6986         (main): Add more tests.
6987         * tests/test-ffsl.c (NBITS): New macro.
6988         (main): Add more tests.
6989         * tests/test-ffsll.c (NBITS): New macro.
6990         (main): Add more tests.
6991
6992 2011-07-15  Eric Blake  <eblake@redhat.com>
6993
6994         ffsl, ffsll: new modules
6995         * modules/ffsl: New file.
6996         * modules/ffsll: Likewise.
6997         * m4/ffsl.m4: Likewise.
6998         * m4/ffsll.m4: Likewise.
6999         * lib/ffsl.c: Likewise.
7000         * lib/ffsl.h: Likewise.
7001         * lib/ffsll.c: Likewise.
7002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7003         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7004         * modules/string (Makefile.am): Substitute witnesses.
7005         * lib/strings.in.h (ffsl, ffsll): Declare.
7006         * modules/ffsl-tests: New test file.
7007         * modules/ffsll-tests: Likewise.
7008         * tests/test-ffsl.c: Likewise.
7009         * tests/test-ffsll.c: Likewise.
7010         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7011         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7012         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7013
7014         ffs: fix m4 prerequisite
7015         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7016
7017         ffs: avoid undefined behavior
7018         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7019         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7020         Reported by Bruno Haible.
7021
7022 2011-07-12  Bruno Haible  <bruno@clisp.org>
7023
7024         pthread_sigmask: Rely on module 'threadlib'.
7025         * modules/pthread_sigmask (Depends-on): Add threadlib.
7026         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7027         is defined.
7028
7029 2011-07-12  Bruno Haible  <bruno@clisp.org>
7030
7031         regex: Depend on module 'strcase'.
7032         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7033
7034 2011-07-12  Jim Meyering  <meyering@redhat.com>
7035
7036         warn-on-use: fix typo in file name
7037         * modules/snippet/warn-on-use (Files): Correct file name:
7038         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7039
7040 2011-07-12  Bruno Haible  <bruno@clisp.org>
7041
7042         strings: Document module.
7043         * doc/posix-headers/strings.texi: Mention module 'strings'.
7044
7045 2011-07-12  Bruno Haible  <bruno@clisp.org>
7046
7047         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7048         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7049         (Files, Makefile.am): Update.
7050         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7051         * modules/stdlib (Depends-on): Update.
7052
7053 2011-07-12  Bruno Haible  <bruno@clisp.org>
7054
7055         * NEWS: Mention the changes.
7056
7057         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7058         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7059         (Files, Makefile.am): Update.
7060         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7061         * modules/arpa_inet (Depends-on): Update.
7062         * modules/ctype (Depends-on): Update.
7063         * modules/dirent (Depends-on): Update.
7064         * modules/fcntl-h (Depends-on): Update.
7065         * modules/glob (Depends-on): Update.
7066         * modules/iconv-h (Depends-on): Update.
7067         * modules/inttypes-incomplete (Depends-on): Update.
7068         * modules/langinfo (Depends-on): Update.
7069         * modules/locale (Depends-on): Update.
7070         * modules/math (Depends-on): Update.
7071         * modules/netdb (Depends-on): Update.
7072         * modules/poll-h (Depends-on): Update.
7073         * modules/pty (Depends-on): Update.
7074         * modules/search (Depends-on): Update.
7075         * modules/signal (Depends-on): Update.
7076         * modules/spawn (Depends-on): Update.
7077         * modules/stdio (Depends-on): Update.
7078         * modules/stdlib (Depends-on): Update.
7079         * modules/string (Depends-on): Update.
7080         * modules/strings (Depends-on): Update.
7081         * modules/sys_file (Depends-on): Update.
7082         * modules/sys_ioctl (Depends-on): Update.
7083         * modules/sys_select (Depends-on): Update.
7084         * modules/sys_socket (Depends-on): Update.
7085         * modules/sys_stat (Depends-on): Update.
7086         * modules/sys_time (Depends-on): Update.
7087         * modules/sys_times (Depends-on): Update.
7088         * modules/sys_utsname (Depends-on): Update.
7089         * modules/sys_wait (Depends-on): Update.
7090         * modules/termios (Depends-on): Update.
7091         * modules/time (Depends-on): Update.
7092         * modules/unistd (Depends-on): Update.
7093         * modules/wchar (Depends-on): Update.
7094         * modules/wctype-h (Depends-on): Update.
7095         * MODULES.html.sh (Support for building libraries and executables):
7096         Update.
7097
7098         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7099         * modules/snippet/unused-parameter: Renamed from
7100         modules/unused-parameter.
7101         (Files, Makefile.am): Update.
7102         * build-aux/snippet/unused-parameter.h: Renamed from
7103         build-aux/unused-parameter.h.
7104         * modules/selinux-h (Depends-on): Update.
7105         * modules/unistr/base (Depends-on): Update.
7106         * MODULES.html.sh (Core language properties): Update.
7107
7108         Rename module 'link-warning' to 'snippet/link-warning'.
7109         * modules/snippet/link-warning: Renamed from modules/link-warning.
7110         (Files, Makefile.am): Update.
7111         * build-aux/snippet/link-warning.h: Renamed from
7112         build-aux/link-warning.h.
7113         * MODULES.html.sh (Support for building libraries and executables):
7114         Update.
7115
7116         Rename module 'c++defs' to 'snippet/c++defs'.
7117         * modules/snippet/c++defs: Renamed from modules/c++defs.
7118         (Files, Makefile.am): Update.
7119         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7120         * modules/arpa_inet (Depends-on): Update.
7121         * modules/ctype (Depends-on): Update.
7122         * modules/dirent (Depends-on): Update.
7123         * modules/fcntl-h (Depends-on): Update.
7124         * modules/glob (Depends-on): Update.
7125         * modules/iconv-h (Depends-on): Update.
7126         * modules/langinfo (Depends-on): Update.
7127         * modules/locale (Depends-on): Update.
7128         * modules/math (Depends-on): Update.
7129         * modules/netdb (Depends-on): Update.
7130         * modules/poll-h (Depends-on): Update.
7131         * modules/pty (Depends-on): Update.
7132         * modules/search (Depends-on): Update.
7133         * modules/signal (Depends-on): Update.
7134         * modules/spawn (Depends-on): Update.
7135         * modules/stdio (Depends-on): Update.
7136         * modules/stdlib (Depends-on): Update.
7137         * modules/string (Depends-on): Update.
7138         * modules/strings (Depends-on): Update.
7139         * modules/sys_ioctl (Depends-on): Update.
7140         * modules/sys_select (Depends-on): Update.
7141         * modules/sys_socket (Depends-on): Update.
7142         * modules/sys_stat (Depends-on): Update.
7143         * modules/sys_time (Depends-on): Update.
7144         * modules/sys_wait (Depends-on): Update.
7145         * modules/termios (Depends-on): Update.
7146         * modules/time (Depends-on): Update.
7147         * modules/unistd (Depends-on): Update.
7148         * modules/wchar (Depends-on): Update.
7149         * modules/wctype-h (Depends-on): Update.
7150
7151         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7152         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7153         (Files, Makefile.am): Update.
7154         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7155         * modules/argv-iter (Depends-on): Update.
7156         * modules/arpa_inet (Depends-on): Update.
7157         * modules/dirent (Depends-on): Update.
7158         * modules/fcntl-h (Depends-on): Update.
7159         * modules/fnmatch (Depends-on): Update.
7160         * modules/getopt-posix (Depends-on): Update.
7161         * modules/glob (Depends-on): Update.
7162         * modules/iconv-h (Depends-on): Update.
7163         * modules/inttypes-incomplete (Depends-on): Update.
7164         * modules/locale (Depends-on): Update.
7165         * modules/math (Depends-on): Update.
7166         * modules/netdb (Depends-on): Update.
7167         * modules/search (Depends-on): Update.
7168         * modules/signal (Depends-on): Update.
7169         * modules/spawn (Depends-on): Update.
7170         * modules/stdio (Depends-on): Update.
7171         * modules/stdlib (Depends-on): Update.
7172         * modules/string (Depends-on): Update.
7173         * modules/strings (Depends-on): Update.
7174         * modules/sys_socket (Depends-on): Update.
7175         * modules/sys_stat (Depends-on): Update.
7176         * modules/sys_time (Depends-on): Update.
7177         * modules/sys_times (Depends-on): Update.
7178         * modules/sys_utsname (Depends-on): Update.
7179         * modules/time (Depends-on): Update.
7180         * modules/unistd (Depends-on): Update.
7181         * modules/wchar (Depends-on): Update.
7182         * MODULES.html.sh (Support for building libraries and executables):
7183         Update.
7184
7185 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7186
7187         Improvements on _Noreturn and related modules.
7188
7189         modules/_Exit-tests: test _Noreturn too
7190         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7191         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7192         (main): Use them.
7193
7194         stdnoreturn, stdnoreturn-tests: remove modules
7195         They're not needed here and a bit premature for use elsewhere.  See
7196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7197         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7198         * tests/test-stdnoreturn.c: Remove files.
7199         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7200         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7201         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7202         and using noreturn.
7203         * modules/openat, modules/sigpipe-die, modules/xalloc:
7204         * modules/xmemdup0, modules/xstrtol:
7205         Remove dependency on stdnoreturn.
7206
7207         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7208         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7209         Reparenthesize to avoid GCC warning.
7210         Support Microsoft's syntax.
7211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7212
7213         _Noreturn-tests: remove module
7214         * modules/_Noreturn-tests: Remove.
7215         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7216         * tests/test-_Noreturn.c: Remove.
7217         * tests/test-stdnoreturn.c: Merge from the old
7218         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7219
7220 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7221
7222         _Noreturn, stdnoreturn, and related modules.
7223
7224         * top/maint.mk: Adjust to new noreturn support.
7225         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7226         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7227
7228         xalloc: use stdnoreturn.h
7229         * lib/xalloc.h: Include <stdnoreturn.h>.
7230         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7231         * modules/xalloc (Depends-on): Add stdnoreturn.
7232
7233         xstrtol: use stdnoreturn.h
7234         * lib/xstrtol.h: Include <stdnoreturn.h>.
7235         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7236         * modules/xstrtol (Depends-on): Add stdnoreturn.
7237
7238         xmemdup0: use stdnoreturn.h
7239         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7240         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7241         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7242
7243         sigpipe-die: use stdnoreturn.h
7244         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7245         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7246         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7247
7248         openat: use stdnoreturn.h
7249         * lib/openat.h: Include <stdnoreturn.h>.
7250         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7251         * modules/openat (Depends-on): Add stdnoreturn.
7252
7253         * lib/openat-die.c (openat_save_fail): Modernize comment.
7254
7255         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7256
7257         * lib/glthread/thread.h: Modernize comment.
7258
7259         obstack: use _Noreturn
7260         * lib/obstack.c (__attribute__): Remove macro.
7261         (print_and_abort): Use _Noreturn.
7262
7263         c-stack: use _Noreturn
7264         * lib/c-stack.c (die, overflow_handler, segv_handler):
7265         Use _Noreturn rather than __attribute__((noreturn)).
7266
7267         argmatch-tests, exclude_tests: use _Noreturn
7268         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7269         Remove.
7270         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7271
7272         stdlib: use _Noreturn
7273         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7274         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7275         * modules/stdlib (Depends-on): Add _Noreturn.
7276         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7277
7278         stdnoreturn-tests: new module
7279         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7280
7281         stdnoreturn: new module
7282         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7283         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7284
7285         _Noreturn-tests: new module
7286         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7287
7288         _Noreturn: new module
7289         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7290         New section, mentioning it.
7291         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7292
7293         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7294
7295 2011-07-11  Eric Blake  <eblake@redhat.com>
7296
7297         ffs: new module
7298         * modules/ffs: New file.
7299         * m4/ffs.m4: Likewise.
7300         * lib/ffs.c: Likewise.
7301         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7302         * modules/strings (Makefile.am): Substitute witness.
7303         (Depends-on): Add c++defs.
7304         * lib/strings.in.h (ffs): Declare.
7305         * modules/ffs-tests: New test file.
7306         * tests/test-ffs.c: Test new module.
7307         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7308         * doc/posix-functions/ffs.texi (ffs): Likewise.
7309
7310         regex: avoid compiler warning
7311         * lib/regex.c (includes): Include <strings.h>, for use of
7312         strcasecmp in regcomp.c.
7313         Reported by Joachim Schmitz.
7314
7315 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7316
7317         stdint: respect system's intmax_t if INTMAX_MAX
7318         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7319         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7320         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7321         long but int64_t is long long, and where we will clash with the
7322         system intmax_t if we override it.  See
7323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7324         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7325         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7326         similarly for UINTMAX_C.
7327
7328 2011-07-08  Bruno Haible  <bruno@clisp.org>
7329
7330         pthread_sigmask tests: Avoid a compiler warning.
7331         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7332         non-zero.
7333
7334         sigprocmask tests: A better way to avoid a compiler warning.
7335         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7336         (main): Complain if system() returns non-zero.
7337         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7338
7339 2011-07-08  Bruno Haible  <bruno@clisp.org>
7340
7341         pthread_sigmask: Work around IRIX bug.
7342         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7343         bug.
7344         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7345         there may be unblocked pending signals.
7346         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7347
7348 2011-07-08  Bruno Haible  <bruno@clisp.org>
7349
7350         pthread_sigmask: Work around Cygwin bug.
7351         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7352         bug.
7353         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7354         the system's pthread_sigmask function.
7355         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7356
7357 2011-07-08  Bruno Haible  <bruno@clisp.org>
7358
7359         pthread_sigmask: Work around bug in single-threaded implementation.
7360         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7361         FreeBSD, HP-UX, Solaris bug.
7362         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7363         * lib/pthread_sigmask.c: Include <stddef.h>.
7364         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7365         the system's pthread_sigmask function.
7366         * modules/pthread_sigmask (configure.ac): Invoke
7367         gl_PREREQ_PTHREAD_SIGMASK.
7368         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7369         HP-UX, Solaris.
7370
7371 2011-07-08  Eric Blake  <eblake@redhat.com>
7372
7373         test-sigprocmask: avoid compiler warning
7374         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7375         * tests/test-sigprocmask.c (main): Use it to silence warning.
7376         Reported by Jim Meyering.
7377
7378         test-snprintf: avoid compiler warning
7379         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7380         * tests/test-vsnprintf.c (main): Likewise.
7381         Reported by Jim Meyering.
7382
7383 2011-07-08  Bruno Haible  <bruno@clisp.org>
7384
7385         Tests for module 'pthread_sigmask'.
7386         * modules/pthread_sigmask-tests: New file.
7387         * tests/test-pthread_sigmask1.c: New file, based on
7388         tests/test-sigprocmask.c.
7389         * tests/test-pthread_sigmask2.c: New file.
7390
7391 2011-07-08  Jim Meyering  <meyering@redhat.com>
7392
7393         test-getopt.h: avoid warning about an unused variable
7394         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7395
7396 2011-07-07  Jim Meyering  <meyering@redhat.com>
7397
7398         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7399         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7400         now that it no longer contains leading TABs.
7401         Remove unused "url=FIXME" statement.
7402
7403 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7404
7405         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7406         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7407         When gl_THREADLIB is not in use, assume that the POSIX sematics
7408         are desired.  This is better for Emacs, which uses POSIX semantics
7409         on GNUish and/or POSIXish platforms, and does not use threads at
7410         all otherwise.
7411
7412         pthread_sigmask: fix typo when testing for libraries
7413         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7414         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7415
7416 2011-07-08  Eric Blake  <eblake@redhat.com>
7417
7418         fts: introduce FTS_NOATIME
7419         * lib/fts_.h (FTS_NOATIME): New bit flag.
7420         (FTS_OPTIONMASK): Adjust.
7421         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7422         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7423
7424 2011-07-08  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'thread'.
7427         * modules/thread-tests: New file.
7428         * tests/test-thread_self.c: New file.
7429         * tests/test-thread_create.cc: New file.
7430
7431 2011-07-08  Bruno Haible  <bruno@clisp.org>
7432
7433         thread: Avoid gcc warnings when using gl_thread_self().
7434         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7435         'void *'.
7436         (gl_thread_self_pointer): Update.
7437
7438 2011-07-07  Bruno Haible  <bruno@clisp.org>
7439
7440         signal-c++-tests: Check declaration of pthread_sigmask.
7441         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7442         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7443         $(LIB_PTHREAD_SIGMASK).
7444
7445 2011-07-07  Bruno Haible  <bruno@clisp.org>
7446
7447         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7448         * lib/signal.in.h (pthread_sigmask): Override if
7449         REPLACE_PTHREAD_SIGMASK is 1.
7450         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7451         REPLACE_PTHREAD_SIGMASK.
7452         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7453         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7454         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7455         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7456         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7457
7458 2011-07-07  Bruno Haible  <bruno@clisp.org>
7459
7460         pthread_sigmask: Ensure declaration in <signal.h>.
7461         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7462         include <pthread.h>.
7463         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7464         problem.
7465
7466 2011-07-07  Bruno Haible  <bruno@clisp.org>
7467
7468         pthread_sigmask: Document the module.
7469         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7470
7471 2011-07-07  Bruno Haible  <bruno@clisp.org>
7472
7473         pthread_sigmask: Follow gnulib conventions.
7474         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7475         gl_PTHREAD_SIGMASK.
7476         * modules/pthread_sigmask (configure.ac): Update.
7477
7478 2011-07-07  Bruno Haible  <bruno@clisp.org>
7479
7480         pthread_sigmask: Make declaration C++ safe.
7481         * lib/signal.in.h: In two special conditions, just do an #include_next.
7482         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7483         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7484         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7485         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7486         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7487         not REPLACE_PTHREAD_MASK.
7488         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7489         not REPLACE_PTHREAD_MASK.
7490         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7491
7492 2011-07-07  Bruno Haible  <bruno@clisp.org>
7493
7494         pthread_sigmask: Fix return value.
7495         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7496         * lib/pthread_sigmask.c: New file.
7497         * modules/pthread_sigmask (Files): Add it.
7498         (configure.ac): Invoke AC_LIBOBJ.
7499
7500 2011-07-07  Eric Blake  <eblake@redhat.com>
7501
7502         getopt: more portable argv creation
7503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7504         const, use char arrays rather than strings.
7505         Suggested by Paul Eggert.
7506
7507 2011-07-07  Bruno Haible  <bruno@clisp.org>
7508
7509         Tests for module 'sigprocmask'.
7510         * modules/sigprocmask-tests: New file.
7511         * tests/test-sigprocmask.c: New file.
7512
7513 2011-07-07  Bruno Haible  <bruno@clisp.org>
7514
7515         float tests: Tweak.
7516         * tests/test-float.c (main): Tweak skip message.
7517
7518 2011-07-07  Eric Blake  <eblake@redhat.com>
7519
7520         getopt: avoid compiler warning during configure
7521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7522         assigning string literals to non-const pointer.
7523
7524         getopt-gnu: avoid crash in glibc getopt
7525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7526         * tests/test-getopt.h (test_getopt): Enhance test.
7527         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7528         * doc/posix-functions/getopt.texi (getopt): Document it.
7529         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7530         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7531         Likewise.
7532
7533 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7534
7535         getopt: handle W; without long options in getopt [BZ #12922]
7536         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7537         but no long options are defined, just return 'W'.
7538
7539 2011-07-07  Bruno Haible  <bruno@clisp.org>
7540
7541         Avoid literal tabs.
7542         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7543         variable containing a tab instead of a literal tab.
7544         Reported by Jim Meyering.
7545
7546 2011-07-07  Bruno Haible  <bruno@clisp.org>
7547
7548         Comments.
7549         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7550
7551 2011-07-06  Bruno Haible  <bruno@clisp.org>
7552
7553         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7554         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7555         <winsock2.h>.
7556         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7557         lib/sys_socket.in.h.
7558         (close, gethostname): Hide declarations from <winsock2.h>.
7559         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7560         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7561         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7562         (select): Don't override if gnulib's <sys/select.h> was already
7563         included.
7564         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7565         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7566         setsockopt, shutdown, select): Tweak indentation.
7567
7568 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7569
7570         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7571         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7572         in an application that does not use the sys_select module.
7573
7574 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7575
7576         poll: do not return 0 on timeout=-1
7577         * lib/poll.c: Loop with yield if no events occured
7578
7579 2011-07-06  Eric Blake  <eblake@redhat.com>
7580
7581         pthread_sigmask: always replace when not using pthread
7582         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7583         replacement when using some threading other than pthread.  Fix
7584         logic bug.
7585
7586 2011-07-06  Bruno Haible  <bruno@clisp.org>
7587
7588         Comments.
7589         * m4/printf.m4: Update comments about mingw.
7590
7591 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         sys_select: define sigset_t more portably
7594         * lib/sys_select.in.h: Always include <sys/types.h>, since
7595         we now need sigset_t and mingw defines it there.
7596         Include <signal.h> before split inclusion guard, to avoid
7597         mishaps on Solaris, whose <signal.h> eventually includes us.
7598         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7599         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7600         which come from ...
7601         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7602         gl_CHECK_TYPE_SIGSET_T.
7603         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7604         does the real work.
7605         * modules/sys_select (Depends-on): Add 'signal'.
7606
7607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7608         Suggested by Bruno Haible.
7609
7610         pselect: Use pthread_sigmask, not sigprocmask.
7611         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7612         multithreaded apps better than sigprocmask does.
7613         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7614         sigprocmask directly.
7615
7616 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7619         Don't #undef,  since we don't need any underlying pselect.
7620         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7621         (Depends-on): Add select.
7622         (Link): Add $(LIBSOCKET).
7623         These changes suggested by Bruno Haible.
7624
7625         pselect: document better
7626         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7627         * doc/posix-functions/pselect.texi (pselect): Document new module.
7628
7629         pthread_sigmask: new module
7630         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7631         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7632         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7633         This is done only as a macro; I don't know how well that'll
7634         work for C++.  Move <sys/types.h> include before the include_next,
7635         to avoid mishap on Solaris.
7636         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7637         * modules/signal (Makefile.am): Substitute the check's results.
7638         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7639
7640         test-pselect: new module
7641         * modules/pselect-tests, tests/test-pselect.c: New files.
7642         * tests/test-select.c, tests/test-sys_select-c++.cc:
7643         If TEST_PSELECT is defined, test pselect instead of testing select.
7644
7645         * tests/test-sys_select.c (sigset_t): Test for it, too.
7646         Suggested by Bruno Haible.
7647
7648 2011-07-05  Eric Blake  <eblake@redhat.com>
7649
7650         snprintf: guarantee %1$d, for libintl
7651         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7652         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7653         * doc/posix-functions/snprintf.texi (snprintf): Update.
7654         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7655         * tests/test-snprintf.c (main): Enhance test.
7656         * tests/test-vsnprintf.c (main): Likewise.
7657
7658 2011-07-05  Jim Meyering  <meyering@redhat.com>
7659
7660         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7661         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7662         per Bruno's request, to accommodate this idiom (no space after "#")
7663         even when the function is inside an #if block:
7664         char *
7665         gets (char *s)
7666         #undef gets
7667         {
7668           ...
7669         }
7670
7671 2011-07-04  Jim Meyering  <meyering@redhat.com>
7672
7673         maint: indent with spaces, not TABs, and add a rule to check this
7674         * tests/test-userspec.c: Indent with spaces, not TABs.
7675         * tests/test-argp.c: Likewise.
7676         * tests/test-c-stack2.sh: Likewise.
7677         * tests/test-parse-duration.sh: Likewise
7678         * m4/strtod.m4: Likewise.
7679         * m4/alloca.m4: Likewise.
7680         * m4/pselect.m4: Likewise.
7681         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7682
7683 2011-07-03  Jim Meyering  <meyering@redhat.com>
7684
7685         maint.mk: correct omissions in prohibit_argmatch_without_use check
7686         This rule would mistakenly report that argmatch.h is included without
7687         use even when both the argmatch and invalid_arg macro were used.
7688         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7689         of argmatch and invalid_arg.
7690
7691 2011-07-03  Bruno Haible  <bruno@clisp.org>
7692
7693         Comments about EINTR.
7694         * lib/safe-read.h: Explain the purpose of this module.
7695         * lib/safe-write.h: Likewise.
7696         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7697         module.
7698         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7699         module.
7700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7701
7702 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7703
7704         xnanosleep: Rewrite to use new dtotimespec module.
7705         It has the conversion code that used to be in xnanosleep.
7706         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7707         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7708         (TIME_T_MAX): Remove.
7709         (xnanosleep): Rewrite in terms of dtotimespec.
7710         * modules/xnanosleep (Depends-on): Add dtotimespec.
7711         Remove intprops, stdbool.
7712
7713         timespec-add, timespec-sub: new modules
7714         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7715         * lib/timespec-add.c, lib/timespec-sub.c:
7716         * modules/timespec-add, modules/timespec-sub: New files.
7717
7718         dtotimespec: new module
7719         * lib/timespec.h (dtotimespec): New decl.
7720         * lib/dtotimespec.c, modules/dtotimespec: New files.
7721
7722         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7723
7724         pselect: new module
7725         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7726         (pselect): New decls.
7727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7728         since the standard pselect decl uses 'restrict'.
7729         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7730         HAVE_PSELECT, REPLACE_PSELECT.
7731         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7732         HAVE_PSELECT, REPLACE_PSELECT.
7733         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7734
7735         sys_select: don't depend on sys_socket
7736         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7738         This fix works on GNU and GNU-like platforms, but has not been tested
7739         on native Windows.
7740         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7742         gl_HEADER_SYS_SOCKET.
7743         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7744         gl_PREREQ_SYS_H_WINSOCK2.
7745
7746 2011-06-29  Eric Blake  <eblake@redhat.com>
7747
7748         pipe2: fix C89 compile problem
7749         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7750         Reported by Bruno Haible.
7751
7752         pipe, pipe2: don't corrupt fd on error
7753         * lib/pipe.c (pipe): Leave fd unchanged on error.
7754         * lib/pipe2.c (pipe2): Likewise.
7755         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7756         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7757
7758 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7759
7760         mmap-anon: do not use regular expressions inadvertently
7761         * m4/mmap-anon.m4: Remove trailing period from strings sought
7762         in the output.
7763
7764 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7765
7766         nanosleep: fix integer overflow problem
7767         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7768         arithmetic wraps around on overflow.
7769
7770         nanosleep: simplify carrying
7771         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7772         first call to the underyling nanosleep, not for the last one.
7773         This doesn't fix any bugs, but it simplifies the computation of
7774         the remaining delay.  Found while auditing integer overflow issues.
7775
7776         dup2: remove test for existence of fcntl
7777         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7778         "#if HAVE_FCNTL", in the configure-time test program.
7779         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7780         and therefore speeds up "configure" a bit.  Found while
7781         adding the dup2 module to Emacs.
7782
7783 2011-06-24  Eric Blake  <eblake@redhat.com>
7784
7785         maint.mk: enhance useless header checks
7786         * top/maint.mk (_sc_header_without_use): Check both include
7787         styles.
7788         (sc_prohibit_assert_without_use)
7789         (sc_prohibit_close_stream_without_use)
7790         (sc_prohibit_getopt_without_use)
7791         (sc_prohibit_quotearg_without_use)
7792         (sc_prohibit_quote_without_use)
7793         (sc_prohibit_long_options_without_use)
7794         (sc_prohibit_inttostr_without_use)
7795         (sc_prohibit_ignore_value_without_use)
7796         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7797         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7798         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7799         (sc_prohibit_hash_pjw_without_use)
7800         (sc_prohibit_safe_read_without_use)
7801         (sc_prohibit_argmatch_without_use)
7802         (sc_prohibit_canonicalize_without_use)
7803         (sc_prohibit_root_dev_ino_without_use)
7804         (sc_prohibit_openat_without_use)
7805         (sc_prohibit_c_ctype_without_use)
7806         (sc_prohibit_signal_without_use)
7807         (sc_prohibit_stdio--_without_use)
7808         (sc_prohibit_stdio-safer_without_use)
7809         (sc_prohibit_strings_without_use)
7810         (sc_prohibit_intprops_without_use)
7811         (sc_prohibit_stddef_without_use)
7812         (sc_prohibit_xfreopen_without_use): Update clients.
7813
7814 2011-06-24  Jim Meyering  <meyering@redhat.com>
7815
7816         syntax-check: keep one maint.mk rule in sync with its header
7817         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7818         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7819         I prefer to avoid temporary files here, so use <(...), but that
7820         is not supported by /bin/sh, so...
7821         (SHELL): Define to /bin/bash.
7822
7823 2011-06-24  Eric Blake  <eblake@redhat.com>
7824
7825         maint.mk: update sc_prohibit_intprops_without_use
7826         * top/maint.mk (_intprops_names): Match recent changes.
7827
7828 2011-06-24  Bruno Haible  <bruno@clisp.org>
7829
7830         strerror-override: No-op tweak.
7831         * lib/strerror-override.h (strerror_override): Reorder conditions,
7832         for consistency with lib/strerror-override.c.
7833
7834 2011-06-23  Eric Blake  <eblake@redhat.com>
7835
7836         maint.mk: test further PATH_MAX issues
7837         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7838         (sc_prohibit_path_max_allocation): ...and also test alloca.
7839         Suggested by Jim Meyering.
7840
7841 2011-06-22  Eric Blake  <eblake@redhat.com>
7842
7843         maint.mk: add syntax-check to avoid char[PATH_MAX]
7844         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7845
7846         stat: be robust to PATH_MAX definition
7847         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7848         * modules/stat (Depends-on): Add verify.
7849
7850         link: work around IRIX bug
7851         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7852         * lib/link.c (rpl_link): Work around it.
7853         * tests/test-link.h (test_link): Enhance test.
7854         * doc/posix-functions/link.texi (link): Document the bug.
7855
7856         getopt: silence clang warning
7857         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7858         dereference.
7859         Reported by Gustavo Martin Domato.
7860
7861 2011-06-22  Jim Meyering  <meyering@redhat.com>
7862
7863         bootstrap: do not insert a blank line into each .gitignore file
7864         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7865
7866 2011-06-21  Eric Blake  <eblake@redhat.com>
7867
7868         perror: test for output mismatch
7869         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7870         perror on IRIX.
7871
7872         strerror_r: fix OpenBSD behavior on out-of-range
7873         * lib/strerror_r.c (strerror_r): Always use maximal string.
7874         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7875
7876         strerror_r: fix OpenBSD behavior on 0
7877         * lib/strerror-override.c (strerror_override): Also override 0
7878         when needed.
7879         * lib/strerror-override.h (strerror_override): Likewise.
7880         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7881         earlier.
7882         * lib/strerror_r.c (strerror_r): Likewise.
7883         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7884         behavior...
7885         (gl_FUNC_STRERROR_0): ...into new macro.
7886         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7887         is overridden.
7888         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7889         * modules/strerror-override (Files): Add strerror.m4.
7890         (configure.ac): Also provide override for 0 when needed.
7891         * doc/posix-functions/strerror.texi (strerror): Document this.
7892         * doc/posix-functions/perror.texi (perror): Likewise.
7893
7894         perror: adjust array size
7895         * modules/perror (Depends-on): Add strerror-override.
7896         * lib/perror.c (perror): Use it to avoid magic number.
7897
7898         strerror-override: reduce size
7899         * lib/strerror-override.c (strerror_override): Use fewer lines.
7900
7901 2011-06-20  Bruno Haible  <bruno@clisp.org>
7902
7903         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7904         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7905
7906 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7907
7908         alloca: port to compilers that can optimize like GCC 4.6.0
7909         * lib/alloca.c (find_stack_direction): New signature, taken from
7910         Autoconf git.  This works with GCC 4.6.0.  This code should never
7911         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7912         be used with other compilers that optimize as well as GCC 4.6.0 does.
7913         (alloca): Adjust to new signature.
7914         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7915         New macro, which patches Autoconf in a similar way.
7916
7917         c-stack: stop worrying about stack direction
7918         * lib/c-stack.c (find_stack_direction): Remove.
7919         (segv_handler): Don't worry about stack direction growth, as it's
7920         too much of a pain to configure this correctly, given how compilers
7921         are optimizing-away our stack-growth detection code.  Instead, assume
7922         that any access to just before or just after the stack is OK.
7923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7924         Don't require AC_FUNC_ALLOCA; no longer needed.
7925
7926 2011-06-20  Eric Blake  <eblake@redhat.com>
7927
7928         test-stat: don't allocate PATH_MAX bytes
7929         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7930         PATH_MAX-sized buffer.
7931         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7932         * modules/stat-tests (Depends-on): Likewise.
7933         * tests/test-fstatat.c (includes): Drop pathmax.h.
7934         * tests/test-stat.c (includes): Likewise.
7935         Reported by Bruno Haible.
7936
7937 2011-06-20  Bruno Haible  <bruno@clisp.org>
7938
7939         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7940         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7941         * lib/float.c: New file.
7942         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7943         REPLACE_FLOAT_LDBL.
7944         * modules/float (Files): Add lib/float.c.
7945         (configure.ac): Invoke AC_LIBOBJ.
7946         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7947
7948 2011-06-20  Bruno Haible  <bruno@clisp.org>
7949
7950         Tests for module 'float'.
7951         * modules/float-tests: New file.
7952         * tests/test-float.c: New file.
7953
7954 2011-06-19  Bruno Haible  <bruno@clisp.org>
7955
7956         isinf: Coding style.
7957         * lib/isinf.c: Use GNU coding style.
7958
7959 2011-06-19  Bruno Haible  <bruno@clisp.org>
7960
7961         linkat test: Avoid test failure on AIX 7.1.
7962         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7963         * tests/test-link.h (test_link): Likewise.
7964
7965 2011-06-19  Bruno Haible  <bruno@clisp.org>
7966
7967         pread test: Avoid test failure on OpenBSD 4.9.
7968         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7969
7970 2011-06-19  Bruno Haible  <bruno@clisp.org>
7971
7972         sprintf-posix: Fix test failure on AIX 7.1.
7973         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7974         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7975         on AIX.
7976         * doc/posix-functions/fprintf.texi: Likewise.
7977         * doc/posix-functions/printf.texi: Likewise.
7978         * doc/posix-functions/snprintf.texi: Likewise.
7979         * doc/posix-functions/sprintf.texi: Likewise.
7980         * doc/posix-functions/vdprintf.texi: Likewise.
7981         * doc/posix-functions/vfprintf.texi: Likewise.
7982         * doc/posix-functions/vprintf.texi: Likewise.
7983         * doc/posix-functions/vsnprintf.texi: Likewise.
7984         * doc/posix-functions/vsprintf.texi: Likewise.
7985
7986 2011-06-19  Bruno Haible  <bruno@clisp.org>
7987
7988         roundl-ieee: Fix test failure on AIX 7.1.
7989         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7990         * doc/posix-functions/roundl.texi: Mention problem with negative
7991         arguments.
7992
7993 2011-06-19  Bruno Haible  <bruno@clisp.org>
7994
7995         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7996         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7997         * doc/posix-functions/round.texi: Mention problem with negative
7998         arguments.
7999         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8000
8001 2011-06-19  Bruno Haible  <bruno@clisp.org>
8002
8003         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8004         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8005         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8006         * doc/posix-functions/roundf.texi: Mention problem with negative
8007         arguments.
8008         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8009
8010 2011-06-19  Bruno Haible  <bruno@clisp.org>
8011
8012         ceilf-ieee: Work around bug on MacOS X 10.5.
8013         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8014
8015         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8016         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8017         IEEE compliant, avoid compiler optimizations.
8018         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8019         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8020         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8021         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8022         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8023         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8024         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8025         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8026         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8027         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8028
8029 2011-06-19  Bruno Haible  <bruno@clisp.org>
8030
8031         ceilf-ieee: Work around bug on AIX 7.1.
8032         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8033         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8034
8035 2011-06-19  Bruno Haible  <bruno@clisp.org>
8036
8037         ceil-ieee: Work around bug on AIX 7.1.
8038         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8039         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8040
8041 2011-06-18  Bruno Haible  <bruno@clisp.org>
8042
8043         fsync test: Avoid test failure on MacOS X and AIX.
8044         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8045         EINVAL.
8046
8047 2011-06-18  Bruno Haible  <bruno@clisp.org>
8048
8049         openat, fdopendir tests: Fix link errors.
8050         * modules/openat-tests (Depends-on): Add progname.
8051         * modules/fdopendir-tests (Depends-on): Likewise.
8052         * tests/test-fchownat.c: Include progname.h.
8053         (main): Call set_program_name.
8054         * tests/test-fstatat.c: Include progname.h.
8055         (main): Call set_program_name.
8056         * tests/test-mkdirat.c: Include progname.h.
8057         (main): Call set_program_name.
8058         * tests/test-openat.c: Include progname.h.
8059         (main): Call set_program_name.
8060         * tests/test-unlinkat.c: Include progname.h.
8061         (main): Call set_program_name.
8062         * tests/test-fdopendir.c: Include progname.h.
8063         (main): Call set_program_name.
8064
8065 2011-06-18  Bruno Haible  <bruno@clisp.org>
8066
8067         Doc update.
8068         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8069         HP-UX.
8070         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8071
8072 2011-06-18  Bruno Haible  <bruno@clisp.org>
8073
8074         getcwd tests: Avoid compilation error on HP-UX 11.31.
8075         * modules/getcwd-tests (Depends-on): Add pathmax.
8076         * tests/test-getcwd.c: Include pathmax.h.
8077
8078 2011-06-18  Bruno Haible  <bruno@clisp.org>
8079
8080         isfinite, isinf: Fix link error on AIX 6 and 7.
8081         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8082         needed, also test the macro with a 'float' argument.
8083         * m4/isinf.m4 (gl_ISINF): Likewise.
8084
8085 2011-06-18  Bruno Haible  <bruno@clisp.org>
8086
8087         getloadavg: Don't clobber LIBS. Regression from previous commit.
8088         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8089         AC_CHECK_LIB from here...
8090         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8091         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8092         gl_func_getloadavg_done.
8093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8094
8095 2011-06-18  Bruno Haible  <bruno@clisp.org>
8096
8097         clean-temp: Improve documentation.
8098         * lib/clean-temp.h: Explain better how to use this module.
8099         Reported by John Darrington <john@darrington.wattle.id.au>.
8100
8101 2011-06-17  Bruno Haible  <bruno@clisp.org>
8102
8103         pread, pwrite: Avoid cc warning on AIX.
8104         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8105         (pwrite): Likewise.
8106
8107 2011-06-17  Bruno Haible  <bruno@clisp.org>
8108
8109         spawn-pipe tests: Fix link error.
8110         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8112
8113 2011-06-17  Bruno Haible  <bruno@clisp.org>
8114
8115         Tests: Remove unnecessary dependency.
8116         * modules/canonicalize-tests (Depends-on): Remove progname.
8117         * modules/chown-tests (Depends-on): Likewise.
8118         * modules/dirname-tests (Depends-on): Likewise.
8119         * modules/fdopendir-tests (Depends-on): Likewise.
8120         * modules/fdutimensat-tests (Depends-on): Likewise.
8121         * modules/hash-tests (Depends-on): Likewise.
8122         * modules/lchown-tests (Depends-on): Likewise.
8123         * modules/linkat-tests (Depends-on): Likewise.
8124         * modules/renameat-tests (Depends-on): Likewise.
8125         * modules/spawn-pipe-tests (Depends-on): Likewise.
8126         * modules/utimensat-tests (Depends-on): Likewise.
8127
8128 2011-06-17  Bruno Haible  <bruno@clisp.org>
8129
8130         spawn-pipe tests: Fix link error.
8131         * tests/test-spawn-pipe-child.c: Undefine fflush.
8132
8133 2011-06-17  Bruno Haible  <bruno@clisp.org>
8134
8135         Fix tests link errors.
8136         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8137         * modules/chown-tests (Makefile.am): Don't link test-chown with
8138         LIBINTL.
8139         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8140         LIBINTL.
8141         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8142         LIBINTL.
8143         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8144         LIBINTL.
8145
8146 2011-06-16  Bruno Haible  <bruno@clisp.org>
8147
8148         crypto/gc-sha1: Fix recent regression.
8149         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8150         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8151
8152         crypto/gc-md5: Fix recent regression.
8153         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8154
8155         crypto/gc-md4: Fix recent regression.
8156         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8157         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8158
8159         crypto/gc-arctwo: Fix recent regression.
8160         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8161         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8162
8163         crypto/gc-rijndael: Fix recent regression.
8164         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8165         (configure.ac): Invoke AC_LIBOBJ here.
8166         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8168
8169         crypto/gc-hmac-sha1: Fix recent regression.
8170         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8171         (configure.ac): Invoke AC_LIBOBJ here.
8172         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8174
8175         crypto/gc-hmac-md5: Fix recent regression.
8176         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8177         (configure.ac): Invoke AC_LIBOBJ here.
8178         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8180
8181         crypto/gc-des: Fix recent regression.
8182         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8183         (configure.ac): Invoke AC_LIBOBJ here.
8184         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8186
8187         crypto/gc-arcfour: Fix recent regression.
8188         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8189         (configure.ac): Invoke AC_LIBOBJ here.
8190         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8192
8193 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8194
8195         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8196         After the 2011-05-21 change, this macro requires
8197         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8198         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8199
8200 2011-06-16  Bruno Haible  <bruno@clisp.org>
8201
8202         fprintftime: Move AC_LIBOBJ invocations to module description.
8203         * m4/fprintftime.m4: Remove file.
8204         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8205         (configure.ac): Remove gl_FPRINTFTIME call.
8206         (Makefile.am): Augment lib_SOURCES.
8207         Reported by Jim Meyering.
8208
8209 2011-06-16  Bruno Haible  <bruno@clisp.org>
8210
8211         tmpfile-safer: Finish 2011-05-23 commit.
8212         * m4/stdio-safer.m4: Really remove file.
8213         Reported by Jim Meyering.
8214
8215 2011-06-16  Bruno Haible  <bruno@clisp.org>
8216
8217         syntax-check: Fix typo.
8218         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8219         printf-posix.m4.
8220         Reported by Jim Meyering.
8221
8222 2011-06-13  Jim Meyering  <meyering@redhat.com>
8223
8224         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8225         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8226
8227 2011-05-23  Bruno Haible  <bruno@clisp.org>
8228
8229         yesno: Move AC_LIBOBJ invocations to module description.
8230         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8231         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8232
8233 2011-05-23  Bruno Haible  <bruno@clisp.org>
8234
8235         xstrtol: Move AC_LIBOBJ invocations to module description.
8236         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8237         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8238
8239 2011-05-23  Bruno Haible  <bruno@clisp.org>
8240
8241         xstrtold: Move AC_LIBOBJ invocations to module description.
8242         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8243         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8244
8245 2011-05-23  Bruno Haible  <bruno@clisp.org>
8246
8247         xstrtod: Move AC_LIBOBJ invocations to module description.
8248         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8249         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8250
8251 2011-05-23  Bruno Haible  <bruno@clisp.org>
8252
8253         xnanosleep: Move AC_LIBOBJ invocations to module description.
8254         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8255         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8256
8257 2011-05-23  Bruno Haible  <bruno@clisp.org>
8258
8259         xgetcwd: Move AC_LIBOBJ invocations to module description.
8260         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8261         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8262
8263 2011-05-23  Bruno Haible  <bruno@clisp.org>
8264
8265         xalloc: Move AC_LIBOBJ invocations to module description.
8266         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8267         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8268
8269 2011-05-23  Bruno Haible  <bruno@clisp.org>
8270
8271         write-any-file: Move AC_LIBOBJ invocations to module description.
8272         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8273         invocation.
8274         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8275
8276 2011-05-23  Bruno Haible  <bruno@clisp.org>
8277
8278         utimens: Move AC_LIBOBJ invocations to module description.
8279         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8280         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8281
8282 2011-05-23  Bruno Haible  <bruno@clisp.org>
8283
8284         utimecmp: Move AC_LIBOBJ invocations to module description.
8285         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8286         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8287
8288 2011-05-23  Bruno Haible  <bruno@clisp.org>
8289
8290         userspec: Move AC_LIBOBJ invocations to module description.
8291         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8292         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8293
8294 2011-05-23  Bruno Haible  <bruno@clisp.org>
8295
8296         unlinkdir: Move AC_LIBOBJ invocations to module description.
8297         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8298         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8299
8300 2011-05-23  Bruno Haible  <bruno@clisp.org>
8301
8302         unistd-safer: Move AC_LIBOBJ invocations to module description.
8303         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8304         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8305
8306 2011-05-23  Bruno Haible  <bruno@clisp.org>
8307
8308         tempname: Move AC_LIBOBJ invocations to module description.
8309         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8310         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8311
8312 2011-05-23  Bruno Haible  <bruno@clisp.org>
8313
8314         strftime: Move AC_LIBOBJ invocations to module description.
8315         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8316         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8317
8318 2011-05-23  Bruno Haible  <bruno@clisp.org>
8319
8320         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8321         * m4/stdlib-safer.m4: Remove file.
8322         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8323         (configure.ac): Remove gl_STDLIB_SAFER call.
8324         (Makefile.am): Augment lib_SOURCES.
8325
8326 2011-05-23  Bruno Haible  <bruno@clisp.org>
8327
8328         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8329         * m4/stdio-safer.m4: Remove file.
8330         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8331         (configure.ac): Remove gl_TMPFILE_SAFER call.
8332         (Makefile.am): Augment lib_SOURCES.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         popen-safer: Move AC_LIBOBJ invocations to module description.
8337         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8338         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8339         (configure.ac): Remove gl_POPEN_SAFER call.
8340         (Makefile.am): Augment lib_SOURCES.
8341
8342 2011-05-23  Bruno Haible  <bruno@clisp.org>
8343
8344         freopen-safer: Move AC_LIBOBJ invocations to module description.
8345         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8346         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8347         (configure.ac): Remove gl_FREOPEN_SAFER call.
8348         (Makefile.am): Augment lib_SOURCES.
8349
8350 2011-05-23  Bruno Haible  <bruno@clisp.org>
8351
8352         fopen-safer: Move AC_LIBOBJ invocations to module description.
8353         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8354         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8355         (configure.ac): Remove gl_FOPEN_SAFER call.
8356         (Makefile.am): Augment lib_SOURCES.
8357
8358 2011-05-23  Bruno Haible  <bruno@clisp.org>
8359
8360         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8361         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8362         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8363
8364 2011-05-23  Bruno Haible  <bruno@clisp.org>
8365
8366         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8367         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8368         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8369
8370 2011-05-23  Bruno Haible  <bruno@clisp.org>
8371
8372         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8373         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8374         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8375
8376 2011-05-23  Bruno Haible  <bruno@clisp.org>
8377
8378         settime: Move AC_LIBOBJ invocations to module description.
8379         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8380         * modules/settime (Makefile.am): Augment lib_SOURCES.
8381
8382 2011-05-23  Bruno Haible  <bruno@clisp.org>
8383
8384         savedir: Move AC_LIBOBJ invocations to module description.
8385         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8386         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8387
8388 2011-05-23  Bruno Haible  <bruno@clisp.org>
8389
8390         save-cwd: Move AC_LIBOBJ invocations to module description.
8391         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8392         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8393
8394 2011-05-23  Bruno Haible  <bruno@clisp.org>
8395
8396         same: Move AC_LIBOBJ invocations to module description.
8397         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8398         * modules/same (Makefile.am): Augment lib_SOURCES.
8399
8400 2011-05-23  Bruno Haible  <bruno@clisp.org>
8401
8402         safe-write: Move AC_LIBOBJ invocations to module description.
8403         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8404         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8405         instead of gl_SAFE_WRITE.
8406         (Makefile.am): Augment lib_SOURCES.
8407
8408 2011-05-23  Bruno Haible  <bruno@clisp.org>
8409
8410         safe-read: Move AC_LIBOBJ invocations to module description.
8411         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8412         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8413         of gl_SAFE_READ.
8414         (Makefile.am): Augment lib_SOURCES.
8415
8416 2011-05-23  Bruno Haible  <bruno@clisp.org>
8417
8418         safe-alloc: Move AC_LIBOBJ invocations to module description.
8419         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8420         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8421
8422 2011-05-23  Bruno Haible  <bruno@clisp.org>
8423
8424         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8425         * m4/rijndael.m4: Remove file.
8426         * modules/crypto/rijndael (Files): Remove it.
8427         (configure.ac): Remove gl_RIJNDAEL call.
8428         (Makefile.am): Augment lib_SOURCES.
8429
8430 2011-05-23  Bruno Haible  <bruno@clisp.org>
8431
8432         readtokens: Move AC_LIBOBJ invocations to module description.
8433         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8434         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8435
8436 2011-05-23  Bruno Haible  <bruno@clisp.org>
8437
8438         read-file: Move AC_LIBOBJ invocations to module description.
8439         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8440         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8441         of gl_FUNC_READ_FILE.
8442         (Makefile.am): Augment lib_SOURCES.
8443
8444 2011-05-23  Bruno Haible  <bruno@clisp.org>
8445
8446         quotearg: Move AC_LIBOBJ invocations to module description.
8447         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8448         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8449
8450 2011-05-23  Bruno Haible  <bruno@clisp.org>
8451
8452         quote: Move AC_LIBOBJ invocations to module description.
8453         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8454         * modules/quote (Makefile.am): Augment lib_SOURCES.
8455
8456 2011-05-23  Bruno Haible  <bruno@clisp.org>
8457
8458         posixver: Move AC_LIBOBJ invocations to module description.
8459         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8460         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8461
8462 2011-05-23  Bruno Haible  <bruno@clisp.org>
8463
8464         posixtm: Move AC_LIBOBJ invocations to module description.
8465         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8466         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8467
8468 2011-05-23  Bruno Haible  <bruno@clisp.org>
8469
8470         physmem: Move AC_LIBOBJ invocations to module description.
8471         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8472         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8473
8474 2011-05-23  Bruno Haible  <bruno@clisp.org>
8475
8476         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8477         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8478         invocation.
8479         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8480
8481 2011-05-23  Bruno Haible  <bruno@clisp.org>
8482
8483         mpsort: Move AC_LIBOBJ invocations to module description.
8484         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8485         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8486
8487 2011-05-23  Bruno Haible  <bruno@clisp.org>
8488
8489         modechange: Move AC_LIBOBJ invocations to module description.
8490         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8491         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8492
8493 2011-05-23  Bruno Haible  <bruno@clisp.org>
8494
8495         mkdir-p: Move AC_LIBOBJ invocations to module description.
8496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8497         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8498
8499 2011-05-23  Bruno Haible  <bruno@clisp.org>
8500
8501         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8502         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8503         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8504
8505 2011-05-23  Bruno Haible  <bruno@clisp.org>
8506
8507         mgetgroups: Move AC_LIBOBJ invocations to module description.
8508         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8509         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8510
8511 2011-05-23  Bruno Haible  <bruno@clisp.org>
8512
8513         memxor: Move AC_LIBOBJ invocations to module description.
8514         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8515         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8516
8517 2011-05-23  Bruno Haible  <bruno@clisp.org>
8518
8519         memcoll: Move AC_LIBOBJ invocations to module description.
8520         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8521         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8522
8523 2011-05-23  Bruno Haible  <bruno@clisp.org>
8524
8525         memcasecmp: Move AC_LIBOBJ invocations to module description.
8526         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8527         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8528
8529 2011-05-23  Bruno Haible  <bruno@clisp.org>
8530
8531         crypto/md5: Move AC_LIBOBJ invocations to module description.
8532         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8533         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8534
8535 2011-05-23  Bruno Haible  <bruno@clisp.org>
8536
8537         crypto/md4: Move AC_LIBOBJ invocations to module description.
8538         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8539         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8540
8541 2011-05-23  Bruno Haible  <bruno@clisp.org>
8542
8543         crypto/md2: Move AC_LIBOBJ invocations to module description.
8544         * m4/md2.m4: Remove file.
8545         * modules/crypto/md2 (Files): Remove it.
8546         (configure.ac): Remove gl_MD2 call.
8547         (Makefile.am): Augment lib_SOURCES.
8548
8549 2011-05-23  Bruno Haible  <bruno@clisp.org>
8550
8551         long-options: Move AC_LIBOBJ invocations to module description.
8552         * m4/long-options.m4: Remove file.
8553         * modules/long-options (Files): Remove it.
8554         (configure.ac): Remove gl_LONG_OPTIONS call.
8555         (Makefile.am): Augment lib_SOURCES.
8556
8557 2011-05-23  Bruno Haible  <bruno@clisp.org>
8558
8559         i-ring: Move AC_LIBOBJ invocations to module description.
8560         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8561         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8562
8563 2011-05-23  Bruno Haible  <bruno@clisp.org>
8564
8565         idcache: Move AC_LIBOBJ invocations to module description.
8566         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8567         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8568
8569 2011-05-23  Bruno Haible  <bruno@clisp.org>
8570
8571         human: Move AC_LIBOBJ invocations to module description.
8572         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8573         * modules/human (Makefile.am): Augment lib_SOURCES.
8574
8575 2011-05-23  Bruno Haible  <bruno@clisp.org>
8576
8577         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8578         * m4/hmac-sha1.m4: Remove file.
8579         * modules/crypto/hmac-sha1 (Files): Remove it.
8580         (configure.ac): Remove gl_HMAC_SHA1 call.
8581         (Makefile.am): Augment lib_SOURCES.
8582
8583 2011-05-23  Bruno Haible  <bruno@clisp.org>
8584
8585         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8586         * m4/hmac-md5.m4: Remove file.
8587         * modules/crypto/hmac-md5 (Files): Remove it.
8588         (configure.ac): Remove gl_HMAC_MD5 call.
8589         (Makefile.am): Augment lib_SOURCES.
8590
8591 2011-05-23  Bruno Haible  <bruno@clisp.org>
8592
8593         hash: Move AC_LIBOBJ invocations to module description.
8594         * m4/hash.m4: Remove file.
8595         * modules/hash (Files): Remove it.
8596         (configure.ac): Remove gl_HASH call.
8597         (Makefile.am): Augment lib_SOURCES.
8598
8599 2011-05-23  Bruno Haible  <bruno@clisp.org>
8600
8601         hard-locale: Move AC_LIBOBJ invocations to module description.
8602         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8603         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8604
8605 2011-05-23  Bruno Haible  <bruno@clisp.org>
8606
8607         getugroups: Move AC_LIBOBJ invocations to module description.
8608         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8609         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8610
8611 2011-05-23  Bruno Haible  <bruno@clisp.org>
8612
8613         gettime: Move AC_LIBOBJ invocations to module description.
8614         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8615         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8616
8617 2011-05-23  Bruno Haible  <bruno@clisp.org>
8618
8619         getndelim2: Move AC_LIBOBJ invocations to module description.
8620         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8621         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8622
8623 2011-05-23  Bruno Haible  <bruno@clisp.org>
8624
8625         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8626         * m4/gc-pbkdf2-sha1.m4: Remove file.
8627         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8628         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8629         (Makefile.am): Augment lib_SOURCES.
8630
8631 2011-05-23  Bruno Haible  <bruno@clisp.org>
8632
8633         fts: Move AC_LIBOBJ invocations to module description.
8634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8635         * modules/fts (configure.ac): ... to here.
8636
8637 2011-05-23  Bruno Haible  <bruno@clisp.org>
8638
8639         file-type: Move AC_LIBOBJ invocations to module description.
8640         * m4/file-type.m4: Remove file.
8641         * modules/file-type (Files): Remove it.
8642         (configure.ac): Remove gl_FILE_TYPE call.
8643         (Makefile.am): Augment lib_SOURCES.
8644
8645 2011-05-23  Bruno Haible  <bruno@clisp.org>
8646
8647         filenamecat*: Respect rules for use of AC_LIBOBJ.
8648         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8649         Remove AC_LIBOBJ invocation.
8650         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8651         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8652
8653 2011-05-23  Bruno Haible  <bruno@clisp.org>
8654
8655         filemode: Move AC_LIBOBJ invocations to module description.
8656         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8657         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8658
8659 2011-05-23  Bruno Haible  <bruno@clisp.org>
8660
8661         openat-safer: Move AC_LIBOBJ invocations to module description.
8662         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8663         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8664
8665 2011-05-23  Bruno Haible  <bruno@clisp.org>
8666
8667         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8668         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8669         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         exclude: Move AC_LIBOBJ invocations to module description.
8674         * m4/exclude.m4: Remove file.
8675         * modules/exclude (Files): Remove it.
8676         (configure.ac): Remove gl_EXCLUDE call.
8677         (Makefile.am): Augment lib_SOURCES.
8678
8679 2011-05-23  Bruno Haible  <bruno@clisp.org>
8680
8681         dirname*: Respect rules for use of AC_LIBOBJ.
8682         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8683         invocations.
8684         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8685         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8686
8687 2011-05-23  Bruno Haible  <bruno@clisp.org>
8688
8689         dirent-safer: Move AC_LIBOBJ invocations to module description.
8690         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8691         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8692
8693 2011-05-23  Bruno Haible  <bruno@clisp.org>
8694
8695         crypto/des: Move AC_LIBOBJ invocations to module description.
8696         * m4/des.m4: Remove file.
8697         * modules/crypto/des (Files): Remove it.
8698         (configure.ac): Remove gl_DES call.
8699         (Makefile.am): Augment lib_SOURCES.
8700
8701 2011-05-23  Bruno Haible  <bruno@clisp.org>
8702
8703         cycle-check: Move AC_LIBOBJ invocations to module description.
8704         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8705         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8706
8707 2011-05-23  Bruno Haible  <bruno@clisp.org>
8708
8709         c-strtold: Move AC_LIBOBJ invocations to module description.
8710         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8711         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8712
8713 2011-05-23  Bruno Haible  <bruno@clisp.org>
8714
8715         c-strtod: Move AC_LIBOBJ invocations to module description.
8716         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8717         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8718
8719 2011-05-23  Bruno Haible  <bruno@clisp.org>
8720
8721         crc: Move AC_LIBOBJ invocations to module description.
8722         * m4/crc.m4: Remove file.
8723         * modules/crc (Files): Remove it.
8724         (configure.ac): Remove gl_CRC call.
8725         (Makefile.am): Augment lib_SOURCES.
8726
8727 2011-05-23  Bruno Haible  <bruno@clisp.org>
8728
8729         close-stream: Move AC_LIBOBJ invocations to module description.
8730         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8731         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8732
8733 2011-05-23  Bruno Haible  <bruno@clisp.org>
8734
8735         closeout: Move AC_LIBOBJ invocations to module description.
8736         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8737         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8738
8739 2011-05-23  Bruno Haible  <bruno@clisp.org>
8740
8741         closein: Move AC_LIBOBJ invocations to module description.
8742         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8743         * modules/closein (Makefile.am): Augment lib_SOURCES.
8744
8745 2011-05-23  Bruno Haible  <bruno@clisp.org>
8746
8747         cloexec: Move AC_LIBOBJ invocations to module description.
8748         * m4/cloexec.m4: Remove file.
8749         * modules/cloexec (Files): Remove it.
8750         (configure.ac): Remove gl_CLOEXEC call.
8751         (Makefile.am): Augment lib_SOURCES.
8752
8753 2011-05-23  Bruno Haible  <bruno@clisp.org>
8754
8755         check-version: Move AC_LIBOBJ invocations to module description.
8756         * m4/check-version.m4: Remove file.
8757         * modules/check-version (Files): Remove it.
8758         (configure.ac): Remove gl_CHECK_VERSION call.
8759         (Makefile.am): Augment lib_SOURCES.
8760
8761 2011-05-23  Bruno Haible  <bruno@clisp.org>
8762
8763         chdir-safer: Move AC_LIBOBJ invocations to module description.
8764         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8765         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8766
8767 2011-05-23  Bruno Haible  <bruno@clisp.org>
8768
8769         canonicalize: Move AC_LIBOBJ invocations to module description.
8770         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8771         AC_LIBOBJ invocation.
8772         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8773
8774 2011-05-23  Bruno Haible  <bruno@clisp.org>
8775
8776         canon-host: Move AC_LIBOBJ invocations to module description.
8777         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8778         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8779         instead of gl_CANON_HOST.
8780         (Makefile.am): Augment lib_SOURCES.
8781
8782 2011-05-23  Bruno Haible  <bruno@clisp.org>
8783
8784         backupfile: Move AC_LIBOBJ invocations to module description.
8785         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8786         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8787
8788 2011-05-23  Bruno Haible  <bruno@clisp.org>
8789
8790         argmatch: Move AC_LIBOBJ invocations to module description.
8791         * m4/argmatch.m4: Remove file.
8792         * modules/argmatch (Files): Remove it.
8793         (configure.ac): Remove gl_ARGMATCH call.
8794         (Makefile.am): Augment lib_SOURCES.
8795
8796 2011-05-23  Bruno Haible  <bruno@clisp.org>
8797
8798         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8799         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8800         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8801
8802 2011-05-23  Bruno Haible  <bruno@clisp.org>
8803
8804         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8805         * m4/arcfour.m4: Remove file.
8806         * modules/crypto/arcfour (Files): Remove it.
8807         (configure.ac): Remove gl_ARCFOUR call.
8808         (Makefile.am): Augment lib_SOURCES.
8809
8810 2011-05-22  Bruno Haible  <bruno@clisp.org>
8811
8812         write: Move AC_LIBOBJ invocations to module description.
8813         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8814         * modules/write (configure.ac): ... to here.
8815
8816 2011-05-22  Bruno Haible  <bruno@clisp.org>
8817
8818         wmemset: Move AC_LIBOBJ invocations to module description.
8819         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8820         here...
8821         * modules/wmemset (configure.ac): ... to here.
8822
8823 2011-05-22  Bruno Haible  <bruno@clisp.org>
8824
8825         wmemmove: Move AC_LIBOBJ invocations to module description.
8826         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8827         here...
8828         * modules/wmemmove (configure.ac): ... to here.
8829
8830 2011-05-22  Bruno Haible  <bruno@clisp.org>
8831
8832         wmemcpy: Move AC_LIBOBJ invocations to module description.
8833         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8834         here...
8835         * modules/wmemcpy (configure.ac): ... to here.
8836
8837 2011-05-22  Bruno Haible  <bruno@clisp.org>
8838
8839         wmemcmp: Move AC_LIBOBJ invocations to module description.
8840         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8841         here...
8842         * modules/wmemcmp (configure.ac): ... to here.
8843
8844 2011-05-22  Bruno Haible  <bruno@clisp.org>
8845
8846         wmemchr: Move AC_LIBOBJ invocations to module description.
8847         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8848         here...
8849         * modules/wmemchr (configure.ac): ... to here.
8850
8851 2011-05-22  Bruno Haible  <bruno@clisp.org>
8852
8853         wcswidth: Move AC_LIBOBJ invocations to module description.
8854         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8855         here...
8856         * modules/wcswidth (configure.ac): ... to here.
8857
8858 2011-05-22  Bruno Haible  <bruno@clisp.org>
8859
8860         wcwidth: Respect rules for use of AC_LIBOBJ.
8861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8862         invocation from here...
8863         * modules/wcwidth (configure.ac): ... to here.
8864         (Depends-on): Update conditions.
8865
8866 2011-05-22  Bruno Haible  <bruno@clisp.org>
8867
8868         wctype: Move AC_LIBOBJ invocations to module description.
8869         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8870         invocation from here...
8871         * modules/wctype (configure.ac): ... to here.
8872         (Depends-on): Update conditions.
8873
8874 2011-05-22  Bruno Haible  <bruno@clisp.org>
8875
8876         wctrans: Move AC_LIBOBJ invocations to module description.
8877         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8878         invocation from here...
8879         * modules/wctrans (configure.ac): ... to here.
8880
8881 2011-05-22  Bruno Haible  <bruno@clisp.org>
8882
8883         wctomb: Move AC_LIBOBJ invocations to module description.
8884         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8885         invocations from here...
8886         * modules/wctomb (configure.ac): ... to here.
8887
8888 2011-05-22  Bruno Haible  <bruno@clisp.org>
8889
8890         wctob: Move AC_LIBOBJ invocations to module description.
8891         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8892         gl_PREREQ_WCTOB invocations from here...
8893         * modules/wctob (configure.ac): ... to here.
8894         (Depends-on): Update conditions.
8895
8896 2011-05-22  Bruno Haible  <bruno@clisp.org>
8897
8898         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8899         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8900         here...
8901         * modules/wcsxfrm (configure.ac): ... to here.
8902
8903 2011-05-22  Bruno Haible  <bruno@clisp.org>
8904
8905         wcstok: Move AC_LIBOBJ invocations to module description.
8906         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8907         * modules/wcstok (configure.ac): ... to here.
8908
8909 2011-05-22  Bruno Haible  <bruno@clisp.org>
8910
8911         wcsstr: Move AC_LIBOBJ invocations to module description.
8912         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8913         * modules/wcsstr (configure.ac): ... to here.
8914
8915 2011-05-22  Bruno Haible  <bruno@clisp.org>
8916
8917         wcsspn: Move AC_LIBOBJ invocations to module description.
8918         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8919         * modules/wcsspn (configure.ac): ... to here.
8920
8921 2011-05-22  Bruno Haible  <bruno@clisp.org>
8922
8923         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8924         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8925         gl_PREREQ_WCSRTOMBS invocations from here...
8926         * modules/wcsrtombs (configure.ac): ... to here.
8927
8928 2011-05-22  Bruno Haible  <bruno@clisp.org>
8929
8930         wcsrchr: Move AC_LIBOBJ invocations to module description.
8931         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8932         here...
8933         * modules/wcsrchr (configure.ac): ... to here.
8934
8935 2011-05-22  Bruno Haible  <bruno@clisp.org>
8936
8937         wcspbrk: Move AC_LIBOBJ invocations to module description.
8938         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8939         here...
8940         * modules/wcspbrk (configure.ac): ... to here.
8941
8942 2011-05-22  Bruno Haible  <bruno@clisp.org>
8943
8944         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8945         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8946         gl_PREREQ_WCSNRTOMBS invocations from here...
8947         * modules/wcsnrtombs (configure.ac): ... to here.
8948
8949 2011-05-22  Bruno Haible  <bruno@clisp.org>
8950
8951         wcsnlen: Move AC_LIBOBJ invocations to module description.
8952         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8953         here...
8954         * modules/wcsnlen (configure.ac): ... to here.
8955
8956 2011-05-22  Bruno Haible  <bruno@clisp.org>
8957
8958         wcsncpy: Move AC_LIBOBJ invocations to module description.
8959         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8960         here...
8961         * modules/wcsncpy (configure.ac): ... to here.
8962
8963 2011-05-22  Bruno Haible  <bruno@clisp.org>
8964
8965         wcsncmp: Move AC_LIBOBJ invocations to module description.
8966         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8967         here...
8968         * modules/wcsncmp (configure.ac): ... to here.
8969
8970 2011-05-22  Bruno Haible  <bruno@clisp.org>
8971
8972         wcsncat: Move AC_LIBOBJ invocations to module description.
8973         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8974         here...
8975         * modules/wcsncat (configure.ac): ... to here.
8976
8977 2011-05-22  Bruno Haible  <bruno@clisp.org>
8978
8979         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8980         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8981         from here...
8982         * modules/wcsncasecmp (configure.ac): ... to here.
8983
8984 2011-05-22  Bruno Haible  <bruno@clisp.org>
8985
8986         wcslen: Move AC_LIBOBJ invocations to module description.
8987         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8988         * modules/wcslen (configure.ac): ... to here.
8989
8990 2011-05-22  Bruno Haible  <bruno@clisp.org>
8991
8992         wcsdup: Move AC_LIBOBJ invocations to module description.
8993         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8994         * modules/wcsdup (configure.ac): ... to here.
8995
8996 2011-05-22  Bruno Haible  <bruno@clisp.org>
8997
8998         wcscspn: Move AC_LIBOBJ invocations to module description.
8999         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9000         here...
9001         * modules/wcscspn (configure.ac): ... to here.
9002
9003 2011-05-22  Bruno Haible  <bruno@clisp.org>
9004
9005         wcscpy: Move AC_LIBOBJ invocations to module description.
9006         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9007         * modules/wcscpy (configure.ac): ... to here.
9008
9009 2011-05-22  Bruno Haible  <bruno@clisp.org>
9010
9011         wcscoll: Move AC_LIBOBJ invocations to module description.
9012         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9013         here...
9014         * modules/wcscoll (configure.ac): ... to here.
9015
9016 2011-05-22  Bruno Haible  <bruno@clisp.org>
9017
9018         wcscmp: Move AC_LIBOBJ invocations to module description.
9019         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9020         * modules/wcscmp (configure.ac): ... to here.
9021
9022 2011-05-22  Bruno Haible  <bruno@clisp.org>
9023
9024         wcschr: Move AC_LIBOBJ invocations to module description.
9025         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9026         * modules/wcschr (configure.ac): ... to here.
9027
9028 2011-05-22  Bruno Haible  <bruno@clisp.org>
9029
9030         wcscat: Move AC_LIBOBJ invocations to module description.
9031         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9032         * modules/wcscat (configure.ac): ... to here.
9033
9034 2011-05-22  Bruno Haible  <bruno@clisp.org>
9035
9036         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9037         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9038         here...
9039         * modules/wcscasecmp (configure.ac): ... to here.
9040
9041 2011-05-22  Bruno Haible  <bruno@clisp.org>
9042
9043         wcrtomb: Move AC_LIBOBJ invocations to module description.
9044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9045         invocations from here...
9046         * modules/wcrtomb (configure.ac): ... to here.
9047
9048 2011-05-22  Bruno Haible  <bruno@clisp.org>
9049
9050         wcpncpy: Move AC_LIBOBJ invocations to module description.
9051         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9052         here...
9053         * modules/wcpncpy (configure.ac): ... to here.
9054
9055 2011-05-22  Bruno Haible  <bruno@clisp.org>
9056
9057         wcpcpy: Move AC_LIBOBJ invocations to module description.
9058         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9059         * modules/wcpcpy (configure.ac): ... to here.
9060
9061 2011-05-22  Bruno Haible  <bruno@clisp.org>
9062
9063         waitpid: Move AC_LIBOBJ invocations to module description.
9064         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9065         invocation from here...
9066         * modules/waitpid (configure.ac): ... to here.
9067
9068 2011-05-22  Bruno Haible  <bruno@clisp.org>
9069
9070         utimensat: Move AC_LIBOBJ invocations to module description.
9071         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9072         here...
9073         * modules/utimensat (configure.ac): ... to here.
9074
9075 2011-05-22  Bruno Haible  <bruno@clisp.org>
9076
9077         usleep: Move AC_LIBOBJ invocations to module description.
9078         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9079         here...
9080         * modules/usleep (configure.ac): ... to here.
9081
9082 2011-05-22  Bruno Haible  <bruno@clisp.org>
9083
9084         unlockpt: Move AC_LIBOBJ invocations to module description.
9085         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9086         gl_PREREQ_UNLOCKPT invocations from here...
9087         * modules/unlockpt (configure.ac): ... to here.
9088
9089 2011-05-22  Bruno Haible  <bruno@clisp.org>
9090
9091         unlink: Respect rules for use of AC_LIBOBJ.
9092         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9093         * modules/unlink (configure.ac): ... to here.
9094
9095 2011-05-22  Bruno Haible  <bruno@clisp.org>
9096
9097         uname: Move AC_LIBOBJ invocations to module description.
9098         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9099         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9100         here...
9101         * modules/uname (configure.ac): ... to here.
9102
9103 2011-05-22  Bruno Haible  <bruno@clisp.org>
9104
9105         ttyname_r: Move AC_LIBOBJ invocations to module description.
9106         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9107         gl_PREREQ_TTYNAME_R invocations from here...
9108         * modules/ttyname_r (configure.ac): ... to here.
9109
9110 2011-05-22  Bruno Haible  <bruno@clisp.org>
9111
9112         tsearch: Move AC_LIBOBJ invocations to module description.
9113         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9114         invocations from here...
9115         * modules/tsearch (configure.ac): ... to here.
9116
9117 2011-05-22  Bruno Haible  <bruno@clisp.org>
9118
9119         towctrans: Move AC_LIBOBJ invocations to module description.
9120         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9121         AC_LIBOBJ invocation from here...
9122         * modules/towctrans (configure.ac): ... to here.
9123
9124 2011-05-22  Bruno Haible  <bruno@clisp.org>
9125
9126         tmpfile: Move AC_LIBOBJ invocations to module description.
9127         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9128         invocations from here...
9129         * modules/tmpfile (configure.ac): ... to here.
9130
9131 2011-05-22  Bruno Haible  <bruno@clisp.org>
9132
9133         times: Move AC_LIBOBJ invocations to module description.
9134         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9135         * modules/times (configure.ac): ... to here.
9136
9137 2011-05-22  Bruno Haible  <bruno@clisp.org>
9138
9139         time_r: Move AC_LIBOBJ invocations to module description.
9140         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9141         invocations from here...
9142         * modules/time_r (configure.ac): ... to here.
9143
9144 2011-05-22  Bruno Haible  <bruno@clisp.org>
9145
9146         timegm: Move AC_LIBOBJ invocations to module description.
9147         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9148         invocations from here...
9149         * modules/timegm (configure.ac): ... to here.
9150
9151 2011-05-22  Bruno Haible  <bruno@clisp.org>
9152
9153         tcgetsid: Move AC_LIBOBJ invocations to module description.
9154         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9155         and gl_PREREQ_TCGETSID invocations from here...
9156         * modules/tcgetsid (configure.ac): ... to here.
9157         (Depends-on): Update conditions.
9158
9159 2011-05-22  Bruno Haible  <bruno@clisp.org>
9160
9161         symlinkat: Move AC_LIBOBJ invocations to module description.
9162         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9163         here...
9164         * modules/symlinkat (configure.ac): ... to here.
9165
9166 2011-05-22  Bruno Haible  <bruno@clisp.org>
9167
9168         symlink: Move AC_LIBOBJ invocations to module description.
9169         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9170         here...
9171         * modules/symlink (configure.ac): ... to here.
9172
9173 2011-05-22  Bruno Haible  <bruno@clisp.org>
9174
9175         strverscmp: Move AC_LIBOBJ invocations to module description.
9176         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9177         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9178         from here...
9179         * modules/strverscmp (configure.ac): ... to here.
9180
9181 2011-05-22  Bruno Haible  <bruno@clisp.org>
9182
9183         strtok_r: Move AC_LIBOBJ invocations to module description.
9184         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9185         and gl_PREREQ_STRTOK_R invocations from here...
9186         * modules/strtok_r (configure.ac): ... to here.
9187         (Depends-on): Update conditions.
9188
9189 2011-05-22  Bruno Haible  <bruno@clisp.org>
9190
9191         strtoumax: Move AC_LIBOBJ invocations to module description.
9192         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9194         from here...
9195         * modules/strtoumax (configure.ac): ... to here.
9196
9197 2011-05-22  Bruno Haible  <bruno@clisp.org>
9198
9199         strtoimax: Move AC_LIBOBJ invocations to module description.
9200         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9202         from here...
9203         * modules/strtoimax (configure.ac): ... to here.
9204
9205 2011-05-22  Bruno Haible  <bruno@clisp.org>
9206
9207         strtoull: Move AC_LIBOBJ invocations to module description.
9208         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9210         from here...
9211         * modules/strtoull (configure.ac): ... to here.
9212
9213 2011-05-22  Bruno Haible  <bruno@clisp.org>
9214
9215         strtoll: Move AC_LIBOBJ invocations to module description.
9216         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9218         here...
9219         * modules/strtoll (configure.ac): ... to here.
9220
9221 2011-05-22  Bruno Haible  <bruno@clisp.org>
9222
9223         strtoul: Move AC_LIBOBJ invocations to module description.
9224         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9225         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9226         * modules/strtoul (configure.ac): ... to here.
9227
9228 2011-05-22  Bruno Haible  <bruno@clisp.org>
9229
9230         strtol: Move AC_LIBOBJ invocations to module description.
9231         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9232         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9233         * modules/strtol (configure.ac): ... to here.
9234
9235 2011-05-22  Bruno Haible  <bruno@clisp.org>
9236
9237         strtod: Move AC_LIBOBJ invocations to module description.
9238         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9239         invocations from here...
9240         * modules/strtod (configure.ac): ... to here.
9241
9242 2011-05-22  Bruno Haible  <bruno@clisp.org>
9243
9244         strstr*: Move AC_LIBOBJ invocations to module description.
9245         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9246         invocations from here...
9247         * modules/strstr-simple (configure.ac): ... to here.
9248         * modules/strstr (configure.ac): ... and here.
9249
9250 2011-05-22  Bruno Haible  <bruno@clisp.org>
9251
9252         strsignal: Move AC_LIBOBJ invocations to module description.
9253         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9254         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9255         * modules/strsignal (configure.ac): ... to here.
9256         (Depends-on): Update conditions.
9257
9258 2011-05-22  Bruno Haible  <bruno@clisp.org>
9259
9260         strsep: Move AC_LIBOBJ invocations to module description.
9261         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9262         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9263         here...
9264         * modules/strsep (configure.ac): ... to here.
9265
9266 2011-05-22  Bruno Haible  <bruno@clisp.org>
9267
9268         strptime: Move AC_LIBOBJ invocations to module description.
9269         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9270         gl_PREREQ_STRPTIME invocations from here...
9271         * modules/strptime (configure.ac): ... to here.
9272
9273 2011-05-22  Bruno Haible  <bruno@clisp.org>
9274
9275         strpbrk: Move AC_LIBOBJ invocations to module description.
9276         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9277         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9278         here...
9279         * modules/strpbrk (configure.ac): ... to here.
9280
9281 2011-05-22  Bruno Haible  <bruno@clisp.org>
9282
9283         strnlen: Move AC_LIBOBJ invocations to module description.
9284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9285         invocations from here...
9286         * modules/strnlen (configure.ac): ... to here.
9287
9288 2011-05-22  Bruno Haible  <bruno@clisp.org>
9289
9290         strndup: Move AC_LIBOBJ invocations to module description.
9291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9292         invocations from here...
9293         * modules/strndup (configure.ac): ... to here.
9294         (Depends-on): Update conditions.
9295
9296 2011-05-22  Bruno Haible  <bruno@clisp.org>
9297
9298         strncat: Move AC_LIBOBJ invocations to module description.
9299         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9300         invocations from here...
9301         * modules/strncat (configure.ac): ... to here.
9302
9303 2011-05-22  Bruno Haible  <bruno@clisp.org>
9304
9305         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9306         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9307         invocations from here...
9308         * modules/strdup (configure.ac): ... to here.
9309         * modules/strdup-posix (configure.ac): ... and here.
9310
9311 2011-05-22  Bruno Haible  <bruno@clisp.org>
9312
9313         strcspn: Move AC_LIBOBJ invocations to module description.
9314         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9315         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9316         here...
9317         * modules/strcspn (configure.ac): ... to here.
9318
9319 2011-05-22  Bruno Haible  <bruno@clisp.org>
9320
9321         strchrnul: Move AC_LIBOBJ invocations to module description.
9322         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9323         gl_PREREQ_STRCHRNUL invocations from here...
9324         * modules/strchrnul (configure.ac): ... to here.
9325
9326 2011-05-22  Bruno Haible  <bruno@clisp.org>
9327
9328         strcasestr*: Move AC_LIBOBJ invocations to module description.
9329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9330         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9331         * modules/strcasestr-simple (configure.ac): ... to here.
9332         * modules/strcasestr (configure.ac): ... and here.
9333
9334 2011-05-22  Bruno Haible  <bruno@clisp.org>
9335
9336         strcase: Move AC_LIBOBJ invocations to module description.
9337         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9338         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9339         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9340         gl_PREREQ_STRNCASECMP invocations from here...
9341         * modules/strcase (configure.ac): ... to here.
9342
9343 2011-05-22  Bruno Haible  <bruno@clisp.org>
9344
9345         stpncpy: Move AC_LIBOBJ invocations to module description.
9346         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9347         here...
9348         * modules/stpncpy (configure.ac): ... to here.
9349
9350 2011-05-22  Bruno Haible  <bruno@clisp.org>
9351
9352         stpcpy: Move AC_LIBOBJ invocations to module description.
9353         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9355         here...
9356         * modules/stpcpy (configure.ac): ... to here.
9357
9358 2011-05-21  Bruno Haible  <bruno@clisp.org>
9359
9360         stat: Move AC_LIBOBJ invocations to module description.
9361         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9362         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9363         here...
9364         * modules/stat (configure.ac): ... to here.
9365
9366 2011-05-21  Bruno Haible  <bruno@clisp.org>
9367
9368         sleep: Move AC_LIBOBJ invocations to module description.
9369         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9370         * modules/sleep (configure.ac): ... to here.
9371
9372 2011-05-21  Bruno Haible  <bruno@clisp.org>
9373
9374         signbit: Move AC_LIBOBJ invocations to module description.
9375         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9376         * modules/signbit (configure.ac): ... to here.
9377
9378 2011-05-21  Bruno Haible  <bruno@clisp.org>
9379
9380         sigprocmask: Move AC_LIBOBJ invocations to module description.
9381         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9382         gl_PREREQ_SIGPROMASK invocations from here...
9383         * modules/sigprocmask (configure.ac): ... to here.
9384
9385 2011-05-21  Bruno Haible  <bruno@clisp.org>
9386
9387         sigaction: Move AC_LIBOBJ invocations to module description.
9388         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9389         gl_PREREQ_SIGACTION invocations from here...
9390         * modules/sigaction (configure.ac): ... to here.
9391
9392 2011-05-21  Bruno Haible  <bruno@clisp.org>
9393
9394         sig2str: Move AC_LIBOBJ invocations to module description.
9395         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9396         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9397         here...
9398         * modules/sig2str (configure.ac): ... to here.
9399
9400 2011-05-21  Bruno Haible  <bruno@clisp.org>
9401
9402         setlocale: Move AC_LIBOBJ invocations to module description.
9403         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9404         gl_PREREQ_SETLOCALE invocations from here...
9405         * modules/setlocale (configure.ac): ... to here.
9406
9407 2011-05-21  Bruno Haible  <bruno@clisp.org>
9408
9409         unsetenv: Move AC_LIBOBJ invocations to module description.
9410         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9411         and gl_PREREQ_UNSETENV invocations from here...
9412         * modules/unsetenv (configure.ac): ... to here.
9413         (Depends-on): Update.
9414
9415 2011-05-21  Bruno Haible  <bruno@clisp.org>
9416
9417         setenv: Move AC_LIBOBJ invocations to module description.
9418         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9419         here...
9420         * modules/setenv (configure.ac): ... to here.
9421
9422 2011-05-21  Bruno Haible  <bruno@clisp.org>
9423
9424         selinux-h: Move AC_LIBOBJ invocations to module description.
9425         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9426         AC_LIBOBJ invocation from here...
9427         * modules/selinux-h (configure.ac): ... to here.
9428
9429 2011-05-21  Bruno Haible  <bruno@clisp.org>
9430
9431         select: Respect rules for use of AC_LIBOBJ.
9432         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9433         here...
9434         * modules/select (configure.ac): ... to here.
9435
9436 2011-05-21  Bruno Haible  <bruno@clisp.org>
9437
9438         scandir: Move AC_LIBOBJ invocations to module description.
9439         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9440         invocations from here...
9441         * modules/scandir (configure.ac): ... to here.
9442
9443 2011-05-21  Bruno Haible  <bruno@clisp.org>
9444
9445         rpmatch: Move AC_LIBOBJ invocations to module description.
9446         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9448         here...
9449         * modules/rpmatch (configure.ac): ... to here.
9450
9451 2011-05-21  Bruno Haible  <bruno@clisp.org>
9452
9453         rmdir: Respect rules for use of AC_LIBOBJ.
9454         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9455         * modules/rmdir (configure.ac): ... to here.
9456
9457 2011-05-21  Bruno Haible  <bruno@clisp.org>
9458
9459         renameat: Move AC_LIBOBJ invocations to module description.
9460         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9461         here...
9462         * modules/renameat (configure.ac): ... to here.
9463
9464 2011-05-21  Bruno Haible  <bruno@clisp.org>
9465
9466         rename: Respect rules for use of AC_LIBOBJ.
9467         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9468         here...
9469         * modules/rename (configure.ac): ... to here.
9470
9471 2011-05-21  Bruno Haible  <bruno@clisp.org>
9472
9473         remove: Move AC_LIBOBJ invocations to module description.
9474         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9475         here...
9476         * modules/remove (configure.ac): ... to here.
9477
9478 2011-05-21  Bruno Haible  <bruno@clisp.org>
9479
9480         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9481         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9482         macro.
9483         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9484         * modules/relocatable-lib (configure.ac): ... to here.
9485         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9486         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9487
9488 2011-05-21  Bruno Haible  <bruno@clisp.org>
9489
9490         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9491         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9492         here...
9493         * modules/relocatable-prog (configure.ac): ... to here.
9494
9495 2011-05-21  Bruno Haible  <bruno@clisp.org>
9496
9497         regex: Move AC_LIBOBJ invocations to module description.
9498         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9499         invocations from here...
9500         * modules/regex (configure.ac): ... to here.
9501
9502 2011-05-21  Bruno Haible  <bruno@clisp.org>
9503
9504         realloc-*: Move AC_LIBOBJ invocations to module description.
9505         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9506         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9507         AC_LIBOBJ invocations from here...
9508         * modules/realloc-gnu (configure.ac): ... to here.
9509         * modules/realloc-posix (configure.ac): ... and here.
9510
9511 2011-05-21  Bruno Haible  <bruno@clisp.org>
9512
9513         readutmp: Move AC_LIBOBJ invocations to module description.
9514         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9515         * modules/readutmp (configure.ac): ... to here.
9516
9517 2011-05-21  Bruno Haible  <bruno@clisp.org>
9518
9519         readlinkat: Move AC_LIBOBJ invocations to module description.
9520         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9521         here...
9522         * modules/readlinkat (configure.ac): ... to here.
9523
9524 2011-05-21  Bruno Haible  <bruno@clisp.org>
9525
9526         readlink: Move AC_LIBOBJ invocations to module description.
9527         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9528         gl_PREREQ_READLINK invocations from here...
9529         * modules/readlink (configure.ac): ... to here.
9530
9531 2011-05-21  Bruno Haible  <bruno@clisp.org>
9532
9533         readline: Move AC_LIBOBJ invocations to module description.
9534         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9535         gl_PREREQ_READLINE invocations from here...
9536         * modules/readline (configure.ac): ... to here.
9537
9538 2011-05-21  Bruno Haible  <bruno@clisp.org>
9539
9540         read: Move AC_LIBOBJ invocations to module description.
9541         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9542         * modules/read (configure.ac): ... to here.
9543
9544 2011-05-21  Bruno Haible  <bruno@clisp.org>
9545
9546         rawmemchr: Move AC_LIBOBJ invocations to module description.
9547         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9549         from here...
9550         * modules/rawmemchr (configure.ac): ... to here.
9551
9552 2011-05-21  Bruno Haible  <bruno@clisp.org>
9553
9554         random_r: Move AC_LIBOBJ invocations to module description.
9555         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9556         gl_PREREQ_RANDOM_R invocations from here...
9557         * modules/random_r (configure.ac): ... to here.
9558
9559 2011-05-21  Bruno Haible  <bruno@clisp.org>
9560
9561         pwrite: Move AC_LIBOBJ invocations to module description.
9562         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9563         * modules/pwrite (configure.ac): ... to here.
9564
9565 2011-05-21  Bruno Haible  <bruno@clisp.org>
9566
9567         putenv: Move AC_LIBOBJ invocations to module description.
9568         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9569         * modules/putenv (configure.ac): ... to here.
9570
9571 2011-05-21  Bruno Haible  <bruno@clisp.org>
9572
9573         login_tty: Move AC_LIBOBJ invocations to module description.
9574         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9575         * modules/login_tty (configure.ac): ... to here.
9576
9577 2011-05-21  Bruno Haible  <bruno@clisp.org>
9578
9579         openpty: Move AC_LIBOBJ invocations to module description.
9580         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9581         * modules/openpty (configure.ac): ... to here.
9582
9583 2011-05-21  Bruno Haible  <bruno@clisp.org>
9584
9585         forkpty: Move AC_LIBOBJ invocations to module description.
9586         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9587         * modules/forkpty (configure.ac): ... to here.
9588
9589 2011-05-21  Bruno Haible  <bruno@clisp.org>
9590
9591         ptsname: Move AC_LIBOBJ invocations to module description.
9592         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9593         invocations from here...
9594         * modules/ptsname (configure.ac): ... to here.
9595
9596 2011-05-21  Bruno Haible  <bruno@clisp.org>
9597
9598         pread: Move AC_LIBOBJ invocations to module description.
9599         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9600         * modules/pread (configure.ac): ... to here.
9601
9602 2011-05-21  Bruno Haible  <bruno@clisp.org>
9603
9604         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9605         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9606         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9607         * modules/posix_spawn (configure.ac): ... to here.
9608         * modules/posix_spawnp (configure.ac): ... and here.
9609
9610 2011-05-21  Bruno Haible  <bruno@clisp.org>
9611
9612         popen: Move AC_LIBOBJ invocations to module description.
9613         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9614         invocations from here...
9615         * modules/popen (configure.ac): ... to here.
9616
9617 2011-05-21  Bruno Haible  <bruno@clisp.org>
9618
9619         poll: Move AC_LIBOBJ invocations to module description.
9620         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9621         invocations from here...
9622         * modules/poll (configure.ac): ... to here.
9623
9624 2011-05-21  Bruno Haible  <bruno@clisp.org>
9625
9626         pipe-posix: Move AC_LIBOBJ invocations to module description.
9627         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9628         * modules/pipe-posix (configure.ac): ... to here.
9629
9630 2011-05-21  Bruno Haible  <bruno@clisp.org>
9631
9632         openat: Respect rules for use of AC_LIBOBJ.
9633         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9634         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9635         * modules/openat (configure.ac): ... to here.
9636
9637 2011-05-21  Bruno Haible  <bruno@clisp.org>
9638
9639         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9640         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9641         invocation from here...
9642         * modules/obstack-printf (configure.ac): ... to here.
9643         * modules/obstack-printf-posix (configure.ac): ... and here.
9644
9645 2011-05-21  Bruno Haible  <bruno@clisp.org>
9646
9647         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9648         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9649         from here...
9650         * modules/nl_langinfo (configure.ac): ... to here.
9651
9652 2011-05-21  Bruno Haible  <bruno@clisp.org>
9653
9654         nanosleep: Move AC_LIBOBJ invocations to module description.
9655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9656         gl_PREREQ_NANOSLEEP invocations from here...
9657         * modules/nanosleep (configure.ac): ... to here.
9658
9659 2011-05-21  Bruno Haible  <bruno@clisp.org>
9660
9661         mountlist: Move AC_LIBOBJ invocations to module description.
9662         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9663         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9664         * modules/mountlist (configure.ac): ... to here.
9665
9666 2011-05-21  Bruno Haible  <bruno@clisp.org>
9667
9668         mktime: Respect rules for use of AC_LIBOBJ.
9669         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9670         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9671         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9672         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9673         * modules/mktime (configure.ac): ... to here.
9674         * modules/mktime-internal (configure.ac): ... and here.
9675         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9676
9677 2011-05-21  Bruno Haible  <bruno@clisp.org>
9678
9679         mkstemps: Move AC_LIBOBJ invocations to module description.
9680         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9681         here...
9682         * modules/mkstemps (configure.ac): ... to here.
9683
9684 2011-05-21  Bruno Haible  <bruno@clisp.org>
9685
9686         mkstemp: Move AC_LIBOBJ invocations to module description.
9687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9688         gl_PREREQ_MKSTEMP invocations from here...
9689         * modules/mkstemp (configure.ac): ... to here.
9690
9691 2011-05-21  Bruno Haible  <bruno@clisp.org>
9692
9693         mkostemps: Move AC_LIBOBJ invocations to module description.
9694         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9695         here...
9696         * modules/mkostemps (configure.ac): ... to here.
9697
9698 2011-05-21  Bruno Haible  <bruno@clisp.org>
9699
9700         mkostemp: Move AC_LIBOBJ invocations to module description.
9701         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9702         gl_PREREQ_MKOSTEMP invocations from here...
9703         * modules/mkostemp (configure.ac): ... to here.
9704
9705 2011-05-21  Bruno Haible  <bruno@clisp.org>
9706
9707         mknod: Move AC_LIBOBJ invocations to module description.
9708         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9709         * modules/mknod (configure.ac): ... to here.
9710
9711 2011-05-21  Bruno Haible  <bruno@clisp.org>
9712
9713         mkfifoat: Move AC_LIBOBJ invocations to module description.
9714         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9715         here...
9716         * modules/mkfifoat (configure.ac): ... to here.
9717
9718 2011-05-21  Bruno Haible  <bruno@clisp.org>
9719
9720         mkfifo: Respect rules for use of AC_LIBOBJ.
9721         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9722         here...
9723         * modules/mkfifo (configure.ac): ... to here.
9724
9725 2011-05-21  Bruno Haible  <bruno@clisp.org>
9726
9727         mkdtemp: Move AC_LIBOBJ invocations to module description.
9728         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9729         invocations from here...
9730         * modules/mkdtemp (configure.ac): ... to here.
9731
9732 2011-05-21  Bruno Haible  <bruno@clisp.org>
9733
9734         mkdir: Move AC_LIBOBJ invocations to module description.
9735         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9736         * modules/mkdir (configure.ac): ... to here.
9737
9738 2011-05-21  Bruno Haible  <bruno@clisp.org>
9739
9740         memset: Move AC_LIBOBJ invocations to module description.
9741         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9743         here...
9744         * modules/memset (configure.ac): ... to here.
9745
9746 2011-05-21  Bruno Haible  <bruno@clisp.org>
9747
9748         memrchr: Move AC_LIBOBJ invocations to module description.
9749         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9751         here...
9752         * modules/memrchr (configure.ac): ... to here.
9753
9754 2011-05-21  Bruno Haible  <bruno@clisp.org>
9755
9756         mempcpy: Move AC_LIBOBJ invocations to module description.
9757         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9758         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9759         here...
9760         * modules/mempcpy (configure.ac): ... to here.
9761
9762 2011-05-21  Bruno Haible  <bruno@clisp.org>
9763
9764         memmove: Move AC_LIBOBJ invocations to module description.
9765         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9767         here...
9768         * modules/memmove (configure.ac): ... to here.
9769
9770 2011-05-21  Bruno Haible  <bruno@clisp.org>
9771
9772         memmem*: Move AC_LIBOBJ invocations to module description.
9773         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9774         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9775         here...
9776         (gl_FUNC_MEMMEM): ... and here...
9777         * modules/memmem-simple (configure.ac): ... to here.
9778         * modules/memmem (configure.ac): ... and here.
9779
9780 2011-05-21  Bruno Haible  <bruno@clisp.org>
9781
9782         memcpy: Move AC_LIBOBJ invocations to module description.
9783         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9785         here...
9786         * modules/memcpy (configure.ac): ... to here.
9787
9788 2011-05-21  Bruno Haible  <bruno@clisp.org>
9789
9790         memcmp: Simplify autoconf macro.
9791         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9792         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9793         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9794
9795 2011-05-21  Bruno Haible  <bruno@clisp.org>
9796
9797         memcmp: Move AC_LIBOBJ invocations to module description.
9798         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9799         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9800         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9801         * modules/memcmp (configure.ac): ... to here.
9802         (Depends-on): Update conditions.
9803
9804 2011-05-21  Bruno Haible  <bruno@clisp.org>
9805
9806         memchr: Respect rules for use of AC_LIBOBJ.
9807         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9808         invocations from here...
9809         * modules/memchr (configure.ac): ... to here.
9810
9811 2011-05-21  Bruno Haible  <bruno@clisp.org>
9812
9813         mbtowc: Move AC_LIBOBJ invocations to module description.
9814         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9815         invocations from here...
9816         * modules/mbtowc (configure.ac): ... to here.
9817
9818 2011-05-21  Bruno Haible  <bruno@clisp.org>
9819
9820         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9821         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9822         gl_PREREQ_MBSRTOWCS invocations from here...
9823         * modules/mbsrtowcs (configure.ac): ... to here.
9824
9825 2011-05-21  Bruno Haible  <bruno@clisp.org>
9826
9827         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9828         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9829         gl_PREREQ_MBSNRTOWCS invocations from here...
9830         * modules/mbsnrtowcs (configure.ac): ... to here.
9831
9832 2011-05-21  Bruno Haible  <bruno@clisp.org>
9833
9834         mbsinit: Move AC_LIBOBJ invocations to module description.
9835         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9836         invocations from here...
9837         * modules/mbsinit (configure.ac): ... to here.
9838
9839 2011-05-21  Bruno Haible  <bruno@clisp.org>
9840
9841         mbrlen: Move AC_LIBOBJ invocations to module description.
9842         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9843         invocations from here...
9844         * modules/mbrlen (configure.ac): ... to here.
9845
9846 2011-05-21  Bruno Haible  <bruno@clisp.org>
9847
9848         mbrtowc: Respect rules for use of AC_LIBOBJ.
9849         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9850         invocations from here...
9851         * modules/mbrtowc (configure.ac): ... to here.
9852
9853 2011-05-21  Bruno Haible  <bruno@clisp.org>
9854
9855         malloc-*: Move AC_LIBOBJ invocations to module description.
9856         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9857         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9858         AC_LIBOBJ invocations from here...
9859         * modules/malloc-gnu (configure.ac): ... to here.
9860         * modules/malloc-posix (configure.ac): ... and here.
9861
9862 2011-05-21  Bruno Haible  <bruno@clisp.org>
9863
9864         lstat, openat: Respect rules for use of AC_LIBOBJ.
9865         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9866         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9867         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9868         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9869         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9870         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9871         here.
9872         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9873
9874 2011-05-21  Bruno Haible  <bruno@clisp.org>
9875
9876         lseek: Move AC_LIBOBJ invocations to module description.
9877         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9878         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9879         * modules/lseek (configure.ac): ... to here.
9880
9881 2011-05-21  Bruno Haible  <bruno@clisp.org>
9882
9883         linkat: Move AC_LIBOBJ invocations to module description.
9884         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9885         here...
9886         * modules/linkat (configure.ac): ... to here.
9887
9888 2011-05-21  Bruno Haible  <bruno@clisp.org>
9889
9890         link: Respect rules for use of AC_LIBOBJ.
9891         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9892         * modules/link (configure.ac): ... to here.
9893
9894 2011-05-21  Bruno Haible  <bruno@clisp.org>
9895
9896         lchown: Move AC_LIBOBJ invocations to module description.
9897         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9898         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9899         * modules/lchown (configure.ac): ... to here.
9900
9901 2011-05-21  Bruno Haible  <bruno@clisp.org>
9902
9903         iswctype: Move AC_LIBOBJ invocations to module description.
9904         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9905         here...
9906         * modules/iswctype (configure.ac): ... to here.
9907
9908 2011-05-21  Bruno Haible  <bruno@clisp.org>
9909
9910         iswblank: Move AC_LIBOBJ invocations to module description.
9911         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9912         here...
9913         * modules/iswblank (configure.ac): ... to here.
9914
9915 2011-05-21  Bruno Haible  <bruno@clisp.org>
9916
9917         atanl: Move AC_LIBOBJ invocations to module description.
9918         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9919         * modules/atanl (configure.ac): ... to here.
9920
9921 2011-05-21  Bruno Haible  <bruno@clisp.org>
9922
9923         acosl: Move AC_LIBOBJ invocations to module description.
9924         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9925         * modules/acosl (configure.ac): ... to here.
9926
9927 2011-05-21  Bruno Haible  <bruno@clisp.org>
9928
9929         asinl: Respect rules for use of AC_LIBOBJ.
9930         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9931         * modules/asinl (configure.ac): ... to here.
9932
9933 2011-05-21  Bruno Haible  <bruno@clisp.org>
9934
9935         tanl: Move AC_LIBOBJ invocations to module description.
9936         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9937         * modules/tanl (configure.ac): ... to here.
9938
9939 2011-05-21  Bruno Haible  <bruno@clisp.org>
9940
9941         cosl: Move AC_LIBOBJ invocations to module description.
9942         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9943         * modules/cosl (configure.ac): ... to here.
9944
9945 2011-05-21  Bruno Haible  <bruno@clisp.org>
9946
9947         sinl: Move AC_LIBOBJ invocations to module description.
9948         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9949         * modules/sinl (configure.ac): ... to here.
9950
9951 2011-05-21  Bruno Haible  <bruno@clisp.org>
9952
9953         logl: Move AC_LIBOBJ invocations to module description.
9954         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9955         * modules/logl (configure.ac): ... to here.
9956
9957 2011-05-21  Bruno Haible  <bruno@clisp.org>
9958
9959         expl: Move AC_LIBOBJ invocations to module description.
9960         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9961         * modules/expl (configure.ac): ... to here.
9962
9963 2011-05-21  Bruno Haible  <bruno@clisp.org>
9964
9965         roundl: Move AC_LIBOBJ invocations to module description.
9966         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9967         * modules/roundl (configure.ac): ... to here.
9968
9969 2011-05-21  Bruno Haible  <bruno@clisp.org>
9970
9971         round: Move AC_LIBOBJ invocations to module description.
9972         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9973         * modules/round (configure.ac): ... to here.
9974
9975 2011-05-21  Bruno Haible  <bruno@clisp.org>
9976
9977         roundf: Move AC_LIBOBJ invocations to module description.
9978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9979         * modules/roundf (configure.ac): ... to here.
9980
9981 2011-05-21  Bruno Haible  <bruno@clisp.org>
9982
9983         truncl: Move AC_LIBOBJ invocations to module description.
9984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9985         * modules/truncl (configure.ac): ... to here.
9986
9987 2011-05-21  Bruno Haible  <bruno@clisp.org>
9988
9989         trunc: Move AC_LIBOBJ invocations to module description.
9990         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9991         * modules/trunc (configure.ac): ... to here.
9992
9993 2011-05-21  Bruno Haible  <bruno@clisp.org>
9994
9995         truncf: Move AC_LIBOBJ invocations to module description.
9996         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9997         * modules/truncf (configure.ac): ... to here.
9998
9999 2011-05-21  Bruno Haible  <bruno@clisp.org>
10000
10001         ceill: Move AC_LIBOBJ invocations to module description.
10002         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10003         * modules/ceill (configure.ac): ... to here.
10004
10005 2011-05-21  Bruno Haible  <bruno@clisp.org>
10006
10007         ceil: Move AC_LIBOBJ invocations to module description.
10008         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10009         * modules/ceil (configure.ac): ... to here.
10010
10011 2011-05-21  Bruno Haible  <bruno@clisp.org>
10012
10013         ceilf: Move AC_LIBOBJ invocations to module description.
10014         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10015         * modules/ceilf (configure.ac): ... to here.
10016
10017 2011-05-21  Bruno Haible  <bruno@clisp.org>
10018
10019         floorl: Respect rules for use of AC_LIBOBJ.
10020         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10021         * modules/floorl (configure.ac): ... to here.
10022
10023 2011-05-21  Bruno Haible  <bruno@clisp.org>
10024
10025         floor: Respect rules for use of AC_LIBOBJ.
10026         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10027         * modules/floor (configure.ac): ... to here.
10028
10029 2011-05-21  Bruno Haible  <bruno@clisp.org>
10030
10031         floorf: Move AC_LIBOBJ invocations to module description.
10032         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10033         * modules/floorf (configure.ac): ... to here.
10034
10035 2011-05-20  Bruno Haible  <bruno@clisp.org>
10036
10037         sqrtl: Respect rules for use of AC_LIBOBJ.
10038         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10039         * modules/sqrtl (configure.ac): ... to here.
10040
10041 2011-05-20  Bruno Haible  <bruno@clisp.org>
10042
10043         ldexpl: Respect rules for use of AC_LIBOBJ.
10044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10045         * modules/ldexpl (configure.ac): ... to here.
10046
10047 2011-05-20  Bruno Haible  <bruno@clisp.org>
10048
10049         frexpl*: Respect rules for use of AC_LIBOBJ.
10050         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10051         invocation from here...
10052         * modules/frexpl (configure.ac): ... to here.
10053         * modules/frexpl-nolibm (configure.ac): ... and here.
10054
10055 2011-05-20  Bruno Haible  <bruno@clisp.org>
10056
10057         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10058         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10059         invocation from here...
10060         * modules/frexp (configure.ac): ... to here.
10061         * modules/frexp-nolibm (configure.ac): ... and here.
10062
10063 2011-05-20  Bruno Haible  <bruno@clisp.org>
10064
10065         isnan: Respect rules for use of AC_LIBOBJ.
10066         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10067         invocations here.
10068         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10069         REPLACE_ISNAN.
10070         * modules/isnand (configure.ac): Likewise.
10071         * modules/isnanl (configure.ac): Likewise.
10072
10073 2011-05-20  Bruno Haible  <bruno@clisp.org>
10074
10075         isnanl*: Respect rules for use of AC_LIBOBJ.
10076         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10077         invocation from here...
10078         * modules/isnanl (configure.ac): ... to here.
10079         * modules/isnanl-nolibm (configure.ac): ... and here.
10080
10081 2011-05-20  Bruno Haible  <bruno@clisp.org>
10082
10083         isnand*: Move AC_LIBOBJ invocations to module description.
10084         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10085         invocation from here...
10086         * modules/isnand (configure.ac): ... to here.
10087         * modules/isnand-nolibm (configure.ac): ... and here.
10088
10089 2011-05-20  Bruno Haible  <bruno@clisp.org>
10090
10091         isnanf*: Move AC_LIBOBJ invocations to module description.
10092         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10093         invocation from here...
10094         * modules/isnanf (configure.ac): ... to here.
10095         * modules/isnanf-nolibm (configure.ac): ... and here.
10096
10097 2011-05-20  Bruno Haible  <bruno@clisp.org>
10098
10099         isnan*: Separate the AC_LIBOBJ invocations.
10100         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10101         AC_LIBOBJ invocation.
10102         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10103         here.
10104         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10105         AC_LIBOBJ invocation.
10106         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10107         here.
10108         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10109         AC_LIBOBJ invocation.
10110         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10111         here.
10112         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10113
10114 2011-05-08  Bruno Haible  <bruno@clisp.org>
10115
10116         isinf: Move AC_LIBOBJ invocations to module description.
10117         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10118         * modules/isinf (configure.ac): ... to here.
10119
10120 2011-05-08  Bruno Haible  <bruno@clisp.org>
10121
10122         isfinite: Move AC_LIBOBJ invocations to module description.
10123         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10124         * modules/isfinite (configure.ac): ... to here.
10125
10126 2011-05-08  Bruno Haible  <bruno@clisp.org>
10127
10128         isblank: Move AC_LIBOBJ invocations to module description.
10129         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10130         here...
10131         * modules/isblank (configure.ac): ... to here.
10132
10133 2011-05-08  Bruno Haible  <bruno@clisp.org>
10134
10135         isapipe: Move AC_LIBOBJ invocations to module description.
10136         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10137         gl_PREREQ_ISAPIPE invocations from here...
10138         * modules/isapipe (configure.ac): ... to here.
10139         (Depends-on): Update condition.
10140
10141 2011-05-08  Bruno Haible  <bruno@clisp.org>
10142
10143         ioctl: Move AC_LIBOBJ invocations to module description.
10144         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10145         invocations from here...
10146         * modules/ioctl (configure.ac): ... to here.
10147         (Depends-on): Update condition.
10148
10149 2011-05-08  Bruno Haible  <bruno@clisp.org>
10150
10151         imaxdiv: Move AC_LIBOBJ invocations to module description.
10152         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10153         invocations from here...
10154         * modules/imaxdiv (configure.ac): ... to here.
10155
10156 2011-05-08  Bruno Haible  <bruno@clisp.org>
10157
10158         imaxabs: Move AC_LIBOBJ invocations to module description.
10159         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10160         invocations from here...
10161         * modules/imaxabs (configure.ac): ... to here.
10162
10163 2011-05-08  Bruno Haible  <bruno@clisp.org>
10164
10165         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10167         AC_LIBOBJ invocations from here...
10168         * modules/getaddrinfo (configure.ac): ... to here.
10169         (Depends-on): Add conditions.
10170
10171 2011-05-08  Bruno Haible  <bruno@clisp.org>
10172
10173         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10174         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10175         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10176         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10177         (gl_PREREQ_INET_PTON): ... from here.
10178         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10179         gl_PREREQ_INET_PTON here.
10180         (Depends-on): Update condition.
10181
10182 2011-05-08  Bruno Haible  <bruno@clisp.org>
10183
10184         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10185         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10186         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10187         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10188         (gl_PREREQ_INET_NTOP): ... from here.
10189         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10190         gl_PREREQ_INET_NTOP here.
10191         (Depends-on): Update condition.
10192
10193 2011-05-08  Bruno Haible  <bruno@clisp.org>
10194
10195         iconv_open: Move AC_LIBOBJ invocations to module description.
10196         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10197         AC_LIBOBJ invocations from here...
10198         * modules/iconv_open (configure.ac): ... to here.
10199
10200 2011-05-08  Bruno Haible  <bruno@clisp.org>
10201
10202         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10203         If module 'iconv_open' is among the main modules and module
10204         'iconv_open-utf' is among the tests dependencies, then
10205         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10206         return the special iconv_t values. Therefore iconv() and iconv_close()
10207         must support these special iconv_t values, already in lib, not only in
10208         tests.
10209         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10210         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10211         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10212         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10213         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10214         (Depends-on): Add the dependencies of iconv_open-utf.
10215         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10216         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10217         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10218
10219 2011-05-08  Bruno Haible  <bruno@clisp.org>
10220
10221         group-member: Move AC_LIBOBJ invocations to module description.
10222         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10223         gl_PREREQ_GROUP_MEMBER invocations from here...
10224         * modules/group-member (configure.ac): ... to here.
10225
10226 2011-05-08  Bruno Haible  <bruno@clisp.org>
10227
10228         grantpt: Move AC_LIBOBJ invocations to module description.
10229         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10230         invocations from here...
10231         * modules/grantpt (configure.ac): ... to here.
10232
10233 2011-05-08  Bruno Haible  <bruno@clisp.org>
10234
10235         glob: Move AC_LIBOBJ invocations to module description.
10236         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10237         from here...
10238         * modules/glob (configure.ac): ... to here.
10239
10240 2011-05-08  Bruno Haible  <bruno@clisp.org>
10241
10242         getusershell: Move AC_LIBOBJ invocations to module description.
10243         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10244         Move AC_LIBOBJ invocation from here...
10245         * modules/getusershell (configure.ac): ... to here.
10246         (Depends-on): Update condition.
10247
10248 2011-05-08  Bruno Haible  <bruno@clisp.org>
10249
10250         gettimeofday: Move AC_LIBOBJ invocations to module description.
10251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10252         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10253         gl_PREREQ_GETTIMEOFDAY invocations from here...
10254         * modules/gettimeofday (configure.ac): ... to here.
10255
10256 2011-05-08  Bruno Haible  <bruno@clisp.org>
10257
10258         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10259         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10260         just gl_FUNC_TZSET.
10261         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10262         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10263         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10264         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10265
10266 2011-05-08  Bruno Haible  <bruno@clisp.org>
10267
10268         getsubopt: Move AC_LIBOBJ invocations to module description.
10269         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10270         gl_PREREQ_GETSUBOPT invocations from here...
10271         * modules/getsubopt (configure.ac): ... to here.
10272
10273 2011-05-08  Bruno Haible  <bruno@clisp.org>
10274
10275         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10276         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10277         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10278         * modules/getpass-gnu (configure.ac): ... to here.
10279
10280 2011-05-08  Bruno Haible  <bruno@clisp.org>
10281
10282         getpass: Move AC_LIBOBJ invocations to module description.
10283         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10284         gl_PREREQ_GETPASS invocations from here...
10285         * modules/getpass (configure.ac): ... to here.
10286
10287 2011-05-08  Bruno Haible  <bruno@clisp.org>
10288
10289         getpagesize: Move AC_LIBOBJ invocations to module description.
10290         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10291         from here...
10292         * modules/getpagesize (configure.ac): ... to here.
10293
10294 2011-05-08  Bruno Haible  <bruno@clisp.org>
10295
10296         getopt: Move AC_LIBOBJ invocations to module description.
10297         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10298         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10299         invocations from here...
10300         * modules/getopt-gnu (configure.ac): ... to here.
10301         * modules/getopt-posix (configure.ac): ... and here.
10302         (Depends-on): Update condition.
10303
10304 2011-05-08  Bruno Haible  <bruno@clisp.org>
10305
10306         getopt, argp: Respect rules for use of AC_LIBOBJ.
10307         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10308         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10309         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10310         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10311
10312 2011-05-08  Bruno Haible  <bruno@clisp.org>
10313
10314         getlogin_r: Move AC_LIBOBJ invocations to module description.
10315         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10316         gl_PREREQ_GETLOGIN_R invocations from here...
10317         * modules/getlogin_r (configure.ac): ... to here.
10318
10319 2011-05-08  Bruno Haible  <bruno@clisp.org>
10320
10321         getlogin: Move AC_LIBOBJ invocations to module description.
10322         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10323         here...
10324         * modules/getlogin (configure.ac): ... to here.
10325
10326 2011-05-08  Bruno Haible  <bruno@clisp.org>
10327
10328         getloadavg: Move AC_LIBOBJ invocations to module description.
10329         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10330         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10331         * modules/getloadavg (configure.ac): ... to here.
10332
10333 2011-05-08  Bruno Haible  <bruno@clisp.org>
10334
10335         gethrxtime: Move AC_LIBOBJ invocations to module description.
10336         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10337         LIB_GETHRXTIME from here...
10338         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10339         invocations from here...
10340         * modules/gethrxtime (configure.ac): ... to here.
10341
10342 2011-05-08  Bruno Haible  <bruno@clisp.org>
10343
10344         gethostname: Move AC_LIBOBJ invocations to module description.
10345         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10346         gl_PREREQ_GETHOSTNAME invocations from here...
10347         * modules/gethostname (configure.ac): ... to here.
10348
10349 2011-05-08  Bruno Haible  <bruno@clisp.org>
10350
10351         getgroups: Move AC_LIBOBJ invocations to module description.
10352         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10353         here...
10354         * modules/getgroups (configure.ac): ... to here.
10355
10356 2011-05-08  Bruno Haible  <bruno@clisp.org>
10357
10358         getdtablesize: Move AC_LIBOBJ invocations to module description.
10359         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10360         invocation from here...
10361         * modules/getdtablesize (configure.ac): ... to here.
10362
10363 2011-05-08  Bruno Haible  <bruno@clisp.org>
10364
10365         getdomainname: Move AC_LIBOBJ invocations to module description.
10366         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10367         gl_PREREQ_GETDOMAINNAME invocations from here...
10368         * modules/getdomainname (configure.ac): ... to here.
10369
10370 2011-05-08  Bruno Haible  <bruno@clisp.org>
10371
10372         getline: Move AC_LIBOBJ invocations to module description.
10373         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10374         invocations from here...
10375         * modules/getline (configure.ac): ... to here.
10376
10377 2011-05-08  Bruno Haible  <bruno@clisp.org>
10378
10379         getline: Simplify.
10380         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10381         It's already handled through the module dependency.
10382
10383 2011-05-08  Bruno Haible  <bruno@clisp.org>
10384
10385         getdelim: Move AC_LIBOBJ invocations to module description.
10386         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10387         and gl_PREREQ_GETDELIM invocations from here...
10388         * modules/getdelim (configure.ac): ... to here.
10389         (Depends-on): Fix condition.
10390
10391 2011-05-08  Bruno Haible  <bruno@clisp.org>
10392
10393         getcwd: Move AC_LIBOBJ invocations to module description.
10394         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10395         invocations from here...
10396         * modules/getcwd (configure.ac): ... to here.
10397
10398 2011-05-08  Bruno Haible  <bruno@clisp.org>
10399
10400         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10401         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10402         here...
10403         * modules/getcwd-lgpl (configure.ac): ... to here.
10404
10405 2011-05-07  Bruno Haible  <bruno@clisp.org>
10406
10407         crypto/gc: Move AC_LIBOBJ invocations to module description.
10408         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10409         * modules/crypto/gc (configure.ac): ... to here.
10410
10411 2011-05-07  Bruno Haible  <bruno@clisp.org>
10412
10413         fwriting: Move AC_LIBOBJ invocations to module description.
10414         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10415         here...
10416         * modules/fwriting (configure.ac): ... to here.
10417
10418 2011-05-07  Bruno Haible  <bruno@clisp.org>
10419
10420         fwritable: Move AC_LIBOBJ invocations to module description.
10421         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10422         here...
10423         * modules/fwritable (configure.ac): ... to here.
10424
10425 2011-05-07  Bruno Haible  <bruno@clisp.org>
10426
10427         futimens: Move AC_LIBOBJ invocations to module description.
10428         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10429         here...
10430         * modules/futimens (configure.ac): ... to here.
10431
10432 2011-05-07  Bruno Haible  <bruno@clisp.org>
10433
10434         ftruncate: Move AC_LIBOBJ invocations to module description.
10435         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10436         gl_PREREQ_FTRUNCATE invocations from here...
10437         * modules/ftruncate (configure.ac): ... to here.
10438
10439 2011-05-07  Bruno Haible  <bruno@clisp.org>
10440
10441         fsync: Move AC_LIBOBJ invocations to module description.
10442         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10443         invocations from here...
10444         * modules/fsync (configure.ac): ... to here.
10445
10446 2011-05-07  Bruno Haible  <bruno@clisp.org>
10447
10448         fsusage: Move AC_LIBOBJ invocations to module description.
10449         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10450         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10451         * modules/fsusage (configure.ac): ... to here.
10452
10453 2011-05-07  Bruno Haible  <bruno@clisp.org>
10454
10455         freopen: Move AC_LIBOBJ invocations to module description.
10456         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10457         invocations from here...
10458         * modules/freopen (configure.ac): ... to here.
10459
10460 2011-05-07  Bruno Haible  <bruno@clisp.org>
10461
10462         free: Move AC_LIBOBJ invocations to module description.
10463         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10464         invocations from here...
10465         * modules/free (configure.ac): ... to here.
10466
10467 2011-05-07  Bruno Haible  <bruno@clisp.org>
10468
10469         freadable: Move AC_LIBOBJ invocations to module description.
10470         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10471         here...
10472         * modules/freadable (configure.ac): ... to here.
10473
10474 2011-05-07  Bruno Haible  <bruno@clisp.org>
10475
10476         fpurge: Move AC_LIBOBJ invocations to module description.
10477         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10478         invocations from here...
10479         * modules/fpurge (configure.ac): ... to here.
10480
10481 2011-05-07  Bruno Haible  <bruno@clisp.org>
10482
10483         fpending: Move AC_LIBOBJ invocations to module description.
10484         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10485         gl_FUNC_FPENDING.
10486         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10487         invocations from here...
10488         * modules/fpending (configure.ac): ... to here.
10489
10490 2011-05-07  Bruno Haible  <bruno@clisp.org>
10491
10492         fopen: Move AC_LIBOBJ invocations to module description.
10493         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10494         invocations from here...
10495         * modules/fopen (configure.ac): ... to here.
10496
10497 2011-05-07  Bruno Haible  <bruno@clisp.org>
10498
10499         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10500         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10501         gl_FUNC_FNMATCH_POSIX.
10502         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10503         invocations from here...
10504         * modules/fnmatch (configure.ac): ... to here.
10505         * modules/fnmatch-gnu (configure.ac): ... and here.
10506
10507 2011-05-07  Bruno Haible  <bruno@clisp.org>
10508
10509         flock: Move AC_LIBOBJ invocations to module description.
10510         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10511         invocations from here...
10512         * modules/flock (configure.ac): ... to here.
10513
10514 2011-05-07  Bruno Haible  <bruno@clisp.org>
10515
10516         fileblocks: Move AC_LIBOBJ invocations to module description.
10517         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10518         gl_PREREQ_FILEBLOCKS invocations from here...
10519         * modules/fileblocks (configure.ac): ... to here.
10520
10521 2011-05-06  Bruno Haible  <bruno@clisp.org>
10522
10523         fflush: Move AC_LIBOBJ invocations to module description.
10524         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10525         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10526         invocations from here...
10527         * modules/fflush (configure.ac): ... to here.
10528
10529 2011-05-06  Bruno Haible  <bruno@clisp.org>
10530
10531         fdopendir: Move AC_LIBOBJ invocations to module description.
10532         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10533         here...
10534         * modules/fdopendir (configure.ac): ... to here.
10535         (Depends-on): Improve conditions.
10536
10537 2011-05-06  Bruno Haible  <bruno@clisp.org>
10538
10539         _Exit: Move AC_LIBOBJ invocations to module description.
10540         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10541         invocations from here...
10542         * modules/_Exit (configure.ac): ... to here.
10543
10544 2011-05-21  Bruno Haible  <bruno@clisp.org>
10545
10546         euidaccess: Respect rules for use of AC_LIBOBJ.
10547         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10549         from here...
10550         * modules/euidaccess (configure.ac): ... to here.
10551
10552 2011-05-06  Bruno Haible  <bruno@clisp.org>
10553
10554         error: Move AC_LIBOBJ invocations to module description.
10555         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10556         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10557         invocations from here...
10558         * modules/error (configure.ac): ... to here.
10559
10560 2011-05-06  Bruno Haible  <bruno@clisp.org>
10561
10562         duplocale: Move AC_LIBOBJ invocations to module description.
10563         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10564         gl_PREREQ_DUPLOCALE invocations from here...
10565         * modules/duplocale (configure.ac): ... to here.
10566
10567 2011-05-05  Bruno Haible  <bruno@clisp.org>
10568
10569         dirfd: Move AC_LIBOBJ invocations to module description.
10570         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10571         gl_FUNC_DIRFD.
10572         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10573         here...
10574         * modules/dirfd (configure.ac): ... to here.
10575         (Depends-on): Fix condition.
10576
10577 2011-05-05  Bruno Haible  <bruno@clisp.org>
10578
10579         chown: Respect rules for use of AC_LIBOBJ.
10580         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10581         * modules/chown (configure.ac): ... to here.
10582
10583 2011-05-05  Bruno Haible  <bruno@clisp.org>
10584
10585         chdir-long: Move AC_LIBOBJ invocations to module description.
10586         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10587         gl_PREREQ_CHDIR_LONG invocations from here...
10588         * modules/chdir-long (configure.ac): ... to here.
10589
10590 2011-05-05  Bruno Haible  <bruno@clisp.org>
10591
10592         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10593         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10594         from here...
10595         * modules/canonicalize-lgpl (configure.ac): ... to here.
10596
10597 2011-05-05  Bruno Haible  <bruno@clisp.org>
10598
10599         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10600         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10601         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10602         REPLACE_CALLOC.
10603         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10604         * modules/calloc-gnu (configure.ac): Likewise.
10605
10606 2011-05-05  Bruno Haible  <bruno@clisp.org>
10607
10608         btowc: Move AC_LIBOBJ invocations to module description.
10609         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10610         invocations from here...
10611         * modules/btowc (configure.ac): ... to here.
10612
10613 2011-05-21  Bruno Haible  <bruno@clisp.org>
10614
10615         atexit: Move AC_LIBOBJ invocations to module description.
10616         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10618         here...
10619         * modules/atexit (configure.ac): ... to here.
10620
10621 2011-05-05  Bruno Haible  <bruno@clisp.org>
10622
10623         atoll: Move AC_LIBOBJ invocations to module description.
10624         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10625         invocations from here...
10626         * modules/atoll (configure.ac): ... to here.
10627
10628 2011-05-05  Bruno Haible  <bruno@clisp.org>
10629
10630         argz: Move AC_LIBOBJ invocations to module description.
10631         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10632         * modules/argz (configure.ac): ... to here.
10633
10634 2011-05-05  Bruno Haible  <bruno@clisp.org>
10635
10636         alphasort: Move AC_LIBOBJ invocations to module description.
10637         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10638         gl_PREREQ_ALPHASORT invocations from here...
10639         * modules/alphasort (configure.ac): ... to here.
10640
10641 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10642
10643         verify: new macro verify_expr; verify_true deprecated
10644         * NEWS: Mention this.
10645         * doc/verify.texi (Compile-time Assertions): Document this.
10646         * lib/verify.h (verify_true): Deprecate.
10647         (verify_expr): New macro.
10648         * tests/test-verify.c (function): Test verify_expr.
10649
10650 2011-06-14  Jim Meyering  <meyering@redhat.com>
10651
10652         init.sh: give more portable redirection-related advice in a comment
10653         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10654         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10655         for lots of discussion.  Stefano Lattarini suggested the solution
10656         of putting "9>&2" after the command.  Reported by Bruno Haible.
10657
10658 2011-06-13  Bruno Haible  <bruno@clisp.org>
10659
10660         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10661         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10662         'none'.
10663
10664 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10665
10666         ftoastr: use strtof only if HAVE_STRTOF
10667         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10669         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10670         * modules/ftoastr (configure.ac): Check for strtof.
10671
10672 2011-06-13  Bruno Haible  <bruno@clisp.org>
10673
10674         gnulib-tool: Addendum to 2011-06-08 commit.
10675         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10676         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10677
10678 2011-06-13  Bruno Haible  <bruno@clisp.org>
10679
10680         fseeko: Provide a non-inline replacement of fseek().
10681         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10682         * modules/fseeko (Depends-on): Add fseek.
10683         * modules/fseek (License): Change to LGPLv2+.
10684
10685 2011-06-13  Bruno Haible  <bruno@clisp.org>
10686
10687         ftello: Provide a non-inline replacement of ftell().
10688         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10689         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10690         not have ftello() (such as on mingw).
10691         * modules/ftello (Depends-on): Add ftell.
10692         * modules/ftell (License): Change to LGPLv2+.
10693
10694 2011-05-07  Bruno Haible  <bruno@clisp.org>
10695
10696         ftell: Move AC_LIBOBJ invocations to module description.
10697         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10698         * modules/ftell (configure.ac): ... to here.
10699
10700 2011-05-07  Bruno Haible  <bruno@clisp.org>
10701
10702         ftello: Respect rules for use of AC_LIBOBJ.
10703         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10704         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10705         here...
10706         * modules/ftello (configure.ac): ... to here.
10707
10708 2011-05-07  Bruno Haible  <bruno@clisp.org>
10709
10710         fseeko: Simplify.
10711         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10712         (gl_FUNC_FSEEKO): Inline it here.
10713
10714 2011-05-07  Bruno Haible  <bruno@clisp.org>
10715
10716         fseek: Move AC_LIBOBJ invocations to module description.
10717         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10718         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10719         * modules/fseek (configure.ac): ... to here.
10720
10721 2011-05-07  Bruno Haible  <bruno@clisp.org>
10722
10723         fseek: Respect rules for use of AC_LIBOBJ.
10724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10725         here...
10726         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10727
10728 2011-05-07  Bruno Haible  <bruno@clisp.org>
10729
10730         fseeko: Respect rules for use of AC_LIBOBJ.
10731         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10732         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10733         here...
10734         * modules/fseeko (configure.ac): ... to here.
10735
10736 2011-06-13  Bruno Haible  <bruno@clisp.org>
10737
10738         gnulib-tool: Allow comments in the 'Depends-on' section.
10739         * doc/gnulib.texi (Module description): Mention comment syntax in the
10740         Depends-on section.
10741         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10742
10743 2011-06-13  Bruno Haible  <bruno@clisp.org>
10744
10745         file-set.h: guard __attibute__ use, now that it's not always defined
10746         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10747         versions that support it.  This fixes a coreutils build failure with
10748         the vendor cc on HP-UX 11.31.
10749
10750 2011-06-12  Bruno Haible  <bruno@clisp.org>
10751
10752         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10753         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10754         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10755         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10756         (acl, aclsort): New declarations.
10757         (aclv_nontrivial): New declaration.
10758         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10759         (file_has_acl): Read also the second kind of HP-UX ACLs.
10760         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10761         kind of HP-UX ACLs if the first kind fails.
10762         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10763         second kind of HP-UX ACLs.
10764         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10765         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10766         agree.
10767         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10768         hpuxjfs.
10769         Handle hpuxjfs.
10770         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10771         hpuxjfs.
10772         Handle hpuxjfs.
10773         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10774         (func_test_same_acls): Use both lsacl and getacl.
10775         Handle hpuxjfs.
10776         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10777         (func_test_same_acls): Use both lsacl and getacl.
10778         Handle hpuxjfs.
10779
10780 2011-06-12  Bruno Haible  <bruno@clisp.org>
10781
10782         acl: Complete the 2010-08-10 fix.
10783         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10784         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10785         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10786         explicitly.
10787         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10788         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10789
10790 2011-06-12  Bruno Haible  <bruno@clisp.org>
10791
10792         spawn-pipe tests: Comments.
10793         * tests/test-spawn-pipe-child.c (main): Update comment.
10794         Reported by James Youngman <jay@gnu.org>.
10795
10796 2011-06-11  James Youngman  <jay@gnu.org>
10797
10798         New module 'stat-size'.
10799         * modules/stat-size: New module.  Provides macros for accessing
10800         file size information in instances of struct stat.  Depends on the
10801         fileblocks module because it calls st_blocks.
10802         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10803         * doc/gnulib.texi: Include stat-size.texi.
10804         * doc/stat-size.texi: Documentation for this module.
10805         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10806         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10807         AC_STRUCT_ST_BLOCKS.
10808
10809 2011-06-09  Bruno Haible  <bruno@clisp.org>
10810
10811         thread: Support pthreads-win32.
10812         * lib/glthread/thread.h (gl_thread_self): Define differently on
10813         pthreads-win32.
10814         (gl_null_thread): New declaration.
10815         (gl_thread_self_pointer): New macro.
10816         * lib/glthread/thread.c (gl_null_thread): New constant.
10817         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10818         gl_thread_self.
10819         * tests/test-tls.c: Likewise.
10820         Suggested by Paul Eggert. Reported by Eric Blake.
10821
10822 2011-06-09  Bruno Haible  <bruno@clisp.org>
10823
10824         thread: Fix confusion between NULL and 0.
10825         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10826         Reported by Paul Eggert.
10827
10828 2011-06-09  Bruno Haible  <bruno@clisp.org>
10829
10830         spawn-pipe tests: Avoid test failure on HP-UX 11.
10831         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10832         is closed.
10833
10834 2011-06-09  Bruno Haible  <bruno@clisp.org>
10835
10836         acl tests: Fix compilation error on HP-UX 11.
10837         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10838
10839 2011-06-09  Bruno Haible  <bruno@clisp.org>
10840
10841         rmdir: Avoid test failure on HP-UX 10.20.
10842         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10843         EEXIST.
10844
10845 2011-06-08  Eric Blake  <eblake@redhat.com>
10846
10847         perror: fix test on mingw
10848         * modules/perror-tests (Depends-on): Add dup2.
10849
10850         strerror_r-posix: fix on MacOS
10851         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10852         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10853         logic bug.
10854         * lib/strerror_r.c (strerror_r): Fix the bug.
10855         * lib/strerror.c (strerror): Likewise.
10856         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10857         problem.
10858         * doc/posix-functions/strerror.texi (strerror): Likewise.
10859         * doc/posix-functions/perror.texi (perror): Likewise.
10860         * tests/test-strerror.c (main): Enhance test.
10861         * tests/test-strerror_r.c (main): Likewise.
10862
10863 2011-06-08  Bruno Haible  <bruno@clisp.org>
10864
10865         gnulib-tool: Better isolation between different gnulib-tool invocations.
10866         * gnulib-tool: New option --witness-c-macro.
10867         (witness_c_macro): New variable.
10868         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10869         AM_CPPFLAGS define it as a C macro.
10870         (func_emit_tests_Makefile_am): Likewise.
10871         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10872         read it from there.
10873         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10874         m4_define, not AC_DEFUN.
10875         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10876         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10877         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10878         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10879         s|...|...|, to substitute the values of the GNULIB_* module indicator
10880         variables.
10881         * modules/dirent (Makefile.am): Likewise.
10882         * modules/fcntl-h (Makefile.am): Likewise.
10883         * modules/iconv-h (Makefile.am): Likewise.
10884         * modules/langinfo (Makefile.am): Likewise.
10885         * modules/locale (Makefile.am): Likewise.
10886         * modules/math (Makefile.am): Likewise.
10887         * modules/netdb (Makefile.am): Likewise.
10888         * modules/poll-h (Makefile.am): Likewise.
10889         * modules/pty (Makefile.am): Likewise.
10890         * modules/search (Makefile.am): Likewise.
10891         * modules/signal (Makefile.am): Likewise.
10892         * modules/spawn (Makefile.am): Likewise.
10893         * modules/stdio (Makefile.am): Likewise.
10894         * modules/stdlib (Makefile.am): Likewise.
10895         * modules/string (Makefile.am): Likewise.
10896         * modules/sys_ioctl (Makefile.am): Likewise.
10897         * modules/sys_select (Makefile.am): Likewise.
10898         * modules/sys_socket (Makefile.am): Likewise.
10899         * modules/sys_stat (Makefile.am): Likewise.
10900         * modules/sys_times (Makefile.am): Likewise.
10901         * modules/sys_utsname (Makefile.am): Likewise.
10902         * modules/sys_wait (Makefile.am): Likewise.
10903         * modules/termios (Makefile.am): Likewise.
10904         * modules/time (Makefile.am): Likewise.
10905         * modules/unistd (Makefile.am): Likewise.
10906         * modules/wchar (Makefile.am): Likewise.
10907
10908 2011-06-08  Eric Blake  <eblake@redhat.com>
10909
10910         strerror: simplify replacement
10911         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10912         * modules/strerror (configure.ac): No prereqs needed here...
10913         * modules/strerror-override (configure.ac): ...but this needs it.
10914         (Files): Add file for needed prereq macro.
10915
10916 2011-06-08  Bruno Haible  <bruno@clisp.org>
10917
10918         strerror_r-posix: Tweaks.
10919         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10920         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10921         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10922         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10923         (gl_FUNC_STRERROR_R): ... to here.
10924         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10925
10926 2011-06-07  Eric Blake  <eblake@redhat.com>
10927
10928         perror: document fixed bugs
10929         * doc/posix-functions/perror.texi (perror): Document recent
10930         patches.
10931
10932 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10933
10934         stat-time: get_stat_birthtime failure is better-defined
10935         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10936         return a timestamp whose tv_sec and tv_nsec values are both -1.
10937         Previously, the spec said only that the tv_nsec value was negative.
10938         This upward-compatible change simplifies GNU tar a bit.
10939
10940 2011-06-07  Eric Blake  <eblake@redhat.com>
10941
10942         strerror_r-posix: work around cygwin 1.7.9
10943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10944         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10945         bug without replacing strerror_r.
10946         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10947         strerror_r is buggy, but without requiring strerror_r compilation.
10948         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10949
10950         test-perror: relax test to ignore cygwin bug
10951         * tests/test-perror2.c (main): Relax test on requiring detection
10952         of stream errors, and use unbuffered stream.
10953         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10954         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10955         * doc/posix-functions/fputc.texi (fputc): Likewise.
10956         * doc/posix-functions/fputs.texi (fputs): Likewise.
10957         * doc/posix-functions/fputws.texi (fputws): Likewise.
10958         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10959         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10960         * doc/posix-functions/getopt.texi (getopt): Likewise.
10961         * doc/posix-functions/perror.texi (perror): Likewise.
10962         * doc/posix-functions/printf.texi (printf): Likewise.
10963         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10964         * doc/posix-functions/psignal.texi (psignal): Likewise.
10965         * doc/posix-functions/putc.texi (putc): Likewise.
10966         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10967         Likewise.
10968         * doc/posix-functions/putchar.texi (putchar): Likewise.
10969         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10970         Likewise.
10971         * doc/posix-functions/puts.texi (puts): Likewise.
10972         * doc/posix-functions/putwc.texi (putwc): Likewise.
10973         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10974         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10975         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10976         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10977         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10978         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10979         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10980         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10981
10982 2011-05-22  Bruno Haible  <bruno@clisp.org>
10983
10984         strerror: Move AC_LIBOBJ invocations to module description.
10985         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10986         gl_PREREQ_STRERROR invocations from here...
10987         * modules/strerror (configure.ac): ... to here.
10988
10989 2011-05-21  Bruno Haible  <bruno@clisp.org>
10990
10991         perror: Use common idiom.
10992         * modules/perror (configure.ac): Reorder statements.
10993
10994 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10995
10996         tests: fix usage message in 'mktempd_'
10997         * tests/init.sh (mktempd_): In the usage message, use literal
10998         'mktempd_', not '$ME' (which is even undefined), as the name of
10999         the subroutine.
11000
11001 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11002
11003         tests init: new function 'fatal_', for hard errors
11004         Before this patch, the only way offered by tests/init.sh to
11005         properly signal a hard error was the `framework_failure_'
11006         function.  But the error message issued by that function,
11007         as its name would suggest, refers to a set-up failure in the
11008         testsuite, while hard errors can obviously also be due to
11009         other reasons.  The best way to fix this inconsistency is to
11010         introduce a new function with a more general error message.
11011         * tests/init.sh (fatal_): New function.
11012
11013 2011-06-06  Eric Blake  <eblake@redhat.com>
11014
11015         canonicalize-lgpl: use common idiom
11016         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11017         over newer POSIX -Rf.
11018         Reported by Bruno Haible.
11019
11020         canonicalize-lgpl: work around AIX realpath bug
11021         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11022         * doc/posix-functions/realpath.texi (realpath): Document it.
11023         Reported by Bruno Haible.
11024
11025         strerror: work around FreeBSD bug
11026         * lib/strerror.c (strerror): Special case 0.
11027         Reported by Bruno Haible.
11028
11029         strerror-override: avoid bloating errno module
11030         * modules/errno (Files, configure.ac): Move replacement strings...
11031         * modules/strerror-override: ...to new module.
11032         * modules/strerror (Depends-on): Add strerror-override.
11033         * modules/strerror_r-posix (Depends-on): Likewise.
11034         * MODULES.html.sh: Document new module.
11035         Reported by Bruno Haible.
11036
11037 2011-06-06  Bruno Haible  <bruno@clisp.org>
11038
11039         spawn-pipe tests: Rename program.
11040         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11041         * tests/test-spawn-pipe-child.c: Update comment.
11042         * tests/test-spawn-pipe.sh: Update.
11043         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11044
11045         spawn-pipe tests: Link the child program only against libc.
11046         * tests/test-spawn-pipe-child.c: New file, extracted from
11047         tests/test-spawn-pipe.c.
11048         (main): Expect only one argument.
11049         (is_open): New function, copied from tests/test-pipe.c.
11050         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11051         (child_main): Remove function.
11052         (test_pipe): Pass only one argument to the child program.
11053         (main): Remove child process code. Expect the child program's name as
11054         first argument.
11055         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11056         argument.
11057         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11058         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11059         test-spawn-pipe-child against no libraries.
11060
11061 2011-06-06  Bruno Haible  <bruno@clisp.org>
11062
11063         careadlinkat: Avoid mismatch between ssize_t and int.
11064         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11065         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11066
11067 2011-06-06  Jim Meyering  <meyering@redhat.com>
11068
11069         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11070         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11071         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11072
11073 2011-06-05  Bruno Haible  <bruno@clisp.org>
11074
11075         ansi-c++-opt: Interoperability with libtool.
11076         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11077         set the variable to "no", not to ":".
11078         * NEWS: Mention the change.
11079
11080 2011-06-05  Bruno Haible  <bruno@clisp.org>
11081
11082         acl: Fix test failure on AIX 7.
11083         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11084         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11085
11086 2011-06-05  Bruno Haible  <bruno@clisp.org>
11087
11088         pipe-filter-ii: Fix test failure on AIX and IRIX.
11089         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11090         with EAGAIN, retry with a smaller buffer size.
11091
11092 2011-06-05  Bruno Haible  <bruno@clisp.org>
11093
11094         localename: Fix link dependencies.
11095         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11096         * modules/localename-tests (Makefile.am): Link test-localename with
11097         $(LIBTHREAD).
11098
11099 2011-06-05  Bruno Haible  <bruno@clisp.org>
11100
11101         error: Avoid gcc warning.
11102         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11103
11104 2011-06-05  Bruno Haible  <bruno@clisp.org>
11105
11106         unsetenv: Avoid gcc warning.
11107         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11108
11109 2011-06-05  Bruno Haible  <bruno@clisp.org>
11110
11111         setenv: Avoid gcc warning.
11112         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11113
11114 2011-06-05  Bruno Haible  <bruno@clisp.org>
11115
11116         sys_select: Ensure memset is declared also on AIX 7.
11117         * lib/sys_select.in.h: Include <string.h> also on AIX.
11118         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11119         self-contained also on AIX 7.1.
11120
11121 2011-06-04  Jim Meyering  <meyering@redhat.com>
11122
11123         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11124         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11125         function name, "error".
11126         (_gl_translatable_diag_func_re): New configurable variable.
11127
11128 2011-06-04  Bruno Haible  <bruno@clisp.org>
11129
11130         getopt: Avoid gcc warning.
11131         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11132
11133 2011-06-04  Bruno Haible  <bruno@clisp.org>
11134
11135         strerror_r: Fix comments.
11136         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11137         commit.
11138
11139 2011-06-04  Bruno Haible  <bruno@clisp.org>
11140
11141         perror: Fix compilation error.
11142         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11143         Undefine fprintf, not sprintf.
11144         * modules/perror (Depends-on): Remove intprops, verify.
11145
11146 2011-06-04  Bruno Haible  <bruno@clisp.org>
11147
11148         setlocale: Enable replacement on Cygwin 1.5.
11149         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11150         Cygwin 1.5.x.
11151         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11152         LC_CTYPE category also exists on Cygwin 1.5.x.
11153
11154 2011-06-04  Bruno Haible  <bruno@clisp.org>
11155
11156         strerror-override: Don't disable symbol renamings.
11157         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11158         * lib/strerror-override.c: Include config.h.
11159         (strerror_override): Don't undefine.
11160
11161 2011-06-03  Bruno Haible  <bruno@clisp.org>
11162
11163         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11164         * lib/localename.h: Update copyright header.
11165         * lib/localename.c: Likewise.
11166         * lib/relocatable.h: Likewise.
11167         * lib/relocatable.c: Likewise.
11168
11169 2011-06-02  Bruno Haible  <bruno@clisp.org>
11170
11171         doc: Fix a module name.
11172         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11173
11174 2011-06-02  Bruno Haible  <bruno@clisp.org>
11175
11176         pipe2: Remove dependency on 'nonblocking' module.
11177         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11178         O_NONBLOCK is defined by gnulib.
11179         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11180         is zero.
11181         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11182         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11183         defined by gnulib.
11184         (get_nonblocking_flag): New function.
11185         (main): Test O_NONBLOCK flag only if it is nonzero.
11186         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11187
11188 2011-06-03  Jim Meyering  <meyering@redhat.com>
11189
11190         maint: three new prohibit-header-without-use rules
11191         Prohibit use of cloexec.h, posixver.h, same.h without use.
11192         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11193         (sc_prohibit_posixver_without_use): Likewise.
11194         (sc_prohibit_same_without_use): Likewise.
11195
11196 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11197
11198         allocator: 'die' routine is now given requested size
11199         * lib/allocator.h (struct allocator.die): New size arg.
11200         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11201         If the actual problem is an ssize_t limitation, not a size_t or
11202         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11203
11204 2011-06-01  Eric Blake  <eblake@redhat.com>
11205
11206         strerror: drop strerror_r dependency
11207         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11208         * lib/strerror-override.c (strerror_override): ...to new file.
11209         * lib/strerror-override.h: Add prototype.
11210         * lib/strerror-impl.h: Delete.
11211         * lib/strerror.c (strerror): New implementation.
11212         * modules/errno (Files): Add new files.
11213         (configure.ac): Compile new file as appropriate.
11214         * modules/strerror (Files): Drop unused file.
11215         (Depends-on): Drop strerror_r-posix.
11216         * MODULES.html.sh: Document strerror_r-posix.
11217         Requested by Sam Steingold.
11218
11219         perror: call strerror_r directly
11220         * modules/perror (Files): Drop strerror-impl.h.
11221         * lib/perror.c (perror): Use our own stack buffer, rather than
11222         calling a wrapper that uses static storage.
11223         * doc/posix-functions/perror.texi (perror): Document a limitation
11224         of our replacement.
11225
11226         strerror_r: fix includes for FreeBSD
11227         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11228         since we use abort on some platforms.
11229         Reported by Matthias Bolte.
11230
11231 2011-05-31  Bruno Haible  <bruno@clisp.org>
11232
11233         Fix link errors in tests: openat-die uses gettext-h.
11234         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11235         against $(LIBINTL).
11236         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11237         against $(LIBINTL).
11238         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11239         $(LIBINTL).
11240         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11241         against $(LIBINTL).
11242         * modules/linkat-tests (Makefile.am): Link test-linkat against
11243         $(LIBINTL).
11244         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11245         $(LIBINTL).
11246         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11247         against $(LIBINTL).
11248         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11249         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11250         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11251         $(LIBINTL).
11252         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11253         $(LIBINTL).
11254         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11255         $(LIBINTL).
11256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11257
11258 2011-05-31  Bruno Haible  <bruno@clisp.org>
11259
11260         Fix link errors in tests: wait-process uses gettext-h.
11261         * modules/nonblocking-pipe-tests (Makefile.am): Set
11262         test_nonblocking_pipe_main_LDADD.
11263         * modules/nonblocking-socket-tests (Makefile.am): Link
11264         test-nonblocking-socket-main against $(LIBINTL).
11265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11266
11267 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11268
11269         assert-h: work around 'verify' incompatibility
11270         * lib/verify.h: Use @...@ directives, not ifdef.
11271         * modules/assert-h (assert.h): Implement the directives.
11272         (assert.h): Substitute the symbol-prefix more consistently.
11273
11274 2011-05-29  Jim Meyering  <meyering@redhat.com>
11275
11276         trim: remove three superfluous assignments
11277         * lib/trim.c (trim2): Remove three superfluous assignments
11278         and correct brace positioning.
11279
11280 2011-05-29  Bruno Haible  <bruno@clisp.org>
11281
11282         wctype-h: Avoid namespace pollution on Solaris 2.6.
11283         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11284         identifiers.
11285         * doc/posix-headers/wctype.texi: Mention the problem.
11286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11287
11288 2011-05-28  Jim Meyering  <meyering@redhat.com>
11289
11290         parse-datetime.y: accommodate -Wstrict-overflow
11291         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11292         placate -Wstrict-overflow.
11293
11294         trim: avoid a warning from -O2 -Wstrict-overflow
11295         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11296
11297 2011-05-29  Bruno Haible  <bruno@clisp.org>
11298
11299         gnulib-tool: Fix bug in yesterday's commit.
11300         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11301         twice.
11302
11303 2011-05-29  Bruno Haible  <bruno@clisp.org>
11304
11305         Allow multiple gnulib generated include files to be combined.
11306         * gnulib-tool (func_compute_include_guard_prefix): New function.
11307         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11308         ${gl_include_guard_prefix} references.
11309         (func_import, func_create_testdir): Invoke
11310         func_compute_include_guard_prefix.
11311         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11312         * lib/ctype.in.h: Likewise.
11313         * lib/dirent.in.h: Likewise.
11314         * lib/errno.in.h: Likewise.
11315         * lib/fcntl.in.h: Likewise.
11316         * lib/float.in.h: Likewise.
11317         * lib/getopt.in.h: Likewise.
11318         * lib/iconv.in.h: Likewise.
11319         * lib/langinfo.in.h: Likewise.
11320         * lib/locale.in.h: Likewise.
11321         * lib/math.in.h: Likewise.
11322         * lib/netdb.in.h: Likewise.
11323         * lib/netinet_in.in.h: Likewise.
11324         * lib/poll.in.h: Likewise.
11325         * lib/pthread.in.h: Likewise.
11326         * lib/pty.in.h: Likewise.
11327         * lib/sched.in.h: Likewise.
11328         * lib/se-selinux.in.h: Likewise.
11329         * lib/search.in.h: Likewise.
11330         * lib/signal.in.h: Likewise.
11331         * lib/spawn.in.h: Likewise.
11332         * lib/stdarg.in.h: Likewise.
11333         * lib/stddef.in.h: Likewise.
11334         * lib/stdint.in.h: Likewise.
11335         * lib/stdio.in.h: Likewise.
11336         * lib/stdlib.in.h: Likewise.
11337         * lib/string.in.h: Likewise.
11338         * lib/strings.in.h: Likewise.
11339         * lib/sys_file.in.h: Likewise.
11340         * lib/sys_ioctl.in.h: Likewise.
11341         * lib/sys_select.in.h: Likewise.
11342         * lib/sys_socket.in.h: Likewise.
11343         * lib/sys_stat.in.h: Likewise.
11344         * lib/sys_time.in.h: Likewise.
11345         * lib/sys_times.in.h: Likewise.
11346         * lib/sys_uio.in.h: Likewise.
11347         * lib/sys_utsname.in.h: Likewise.
11348         * lib/sys_wait.in.h: Likewise.
11349         * lib/sysexits.in.h: Likewise.
11350         * lib/termios.in.h: Likewise.
11351         * lib/time.in.h: Likewise.
11352         * lib/unistd.in.h: Likewise.
11353         * lib/wchar.in.h: Likewise.
11354         * lib/wctype.in.h: Likewise.
11355         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11356         * modules/ctype (Makefile.am): Likewise.
11357         * modules/dirent (Makefile.am): Likewise.
11358         * modules/errno (Makefile.am): Likewise.
11359         * modules/fcntl-h (Makefile.am): Likewise.
11360         * modules/float (Makefile.am): Likewise.
11361         * modules/getopt-posix (Makefile.am): Likewise.
11362         * modules/iconv-h (Makefile.am): Likewise.
11363         * modules/langinfo (Makefile.am): Likewise.
11364         * modules/locale (Makefile.am): Likewise.
11365         * modules/math (Makefile.am): Likewise.
11366         * modules/netdb (Makefile.am): Likewise.
11367         * modules/netinet_in (Makefile.am): Likewise.
11368         * modules/poll-h (Makefile.am): Likewise.
11369         * modules/pthread (Makefile.am): Likewise.
11370         * modules/pty (Makefile.am): Likewise.
11371         * modules/sched (Makefile.am): Likewise.
11372         * modules/search (Makefile.am): Likewise.
11373         * modules/selinux-h (Makefile.am): Likewise.
11374         * modules/signal (Makefile.am): Likewise.
11375         * modules/spawn (Makefile.am): Likewise.
11376         * modules/stdarg (Makefile.am): Likewise.
11377         * modules/stddef (Makefile.am): Likewise.
11378         * modules/stdint (Makefile.am): Likewise.
11379         * modules/stdio (Makefile.am): Likewise.
11380         * modules/stdlib (Makefile.am): Likewise.
11381         * modules/string (Makefile.am): Likewise.
11382         * modules/strings (Makefile.am): Likewise.
11383         * modules/sys_file (Makefile.am): Likewise.
11384         * modules/sys_ioctl (Makefile.am): Likewise.
11385         * modules/sys_select (Makefile.am): Likewise.
11386         * modules/sys_socket (Makefile.am): Likewise.
11387         * modules/sys_stat (Makefile.am): Likewise.
11388         * modules/sys_time (Makefile.am): Likewise.
11389         * modules/sys_times (Makefile.am): Likewise.
11390         * modules/sys_uio (Makefile.am): Likewise.
11391         * modules/sys_utsname (Makefile.am): Likewise.
11392         * modules/sys_wait (Makefile.am): Likewise.
11393         * modules/sysexits (Makefile.am): Likewise.
11394         * modules/termios (Makefile.am): Likewise.
11395         * modules/time (Makefile.am): Likewise.
11396         * modules/unistd (Makefile.am): Likewise.
11397         * modules/wchar (Makefile.am): Likewise.
11398         * modules/wctype-h (Makefile.am): Likewise.
11399         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11400
11401 2011-05-29  Bruno Haible  <bruno@clisp.org>
11402
11403         assert-h: Allow multiple gnulib generated replacements to coexist.
11404         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11405
11406 2011-05-29  Bruno Haible  <bruno@clisp.org>
11407
11408         argp: Allow coexistence with strerror_r-posix module.
11409         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11410         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11411         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11412         not the glibc signature.
11413
11414 2011-05-28  Bruno Haible  <bruno@clisp.org>
11415
11416         gnulib-tool: Alternative structure of testdirs, similar to --import.
11417         * gnulib-tool: New option --single-configure.
11418         (func_usage): Document it.
11419         (single_configure): New variable.
11420         (func_modules_transitive_closure_separately,
11421         func_modules_transitive_closure_separately,
11422         func_determine_use_libtests, func_modules_add_dummy_separately,
11423         func_modules_to_filelist_separately): New functions, extracted from
11424         func_import.
11425         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11426         (func_import): Use the new functions.
11427         (func_create_testdir): Set final_modules. Handle $single_configure =
11428         true case.
11429
11430 2011-05-28  Bruno Haible  <bruno@clisp.org>
11431
11432         getloadavg: Remove an unreliable safety check.
11433         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11434         getloadavg.c is in place.
11435         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11436         Reported by Sam Steingold <sds@gnu.org>.
11437
11438 2011-05-28  Bruno Haible  <bruno@clisp.org>
11439
11440         doc: Cleanup yet another file produced by texinfo.tex.
11441         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11442
11443 2011-05-28  Bruno Haible  <bruno@clisp.org>
11444
11445         Finish the conditional dependencies mechanism.
11446         * gnulib-tool: New option --no-conditional-dependencies.
11447         (func_usage): Document it. Don't mark --conditional-dependencies as
11448         experimental.
11449         (cond_dependencies): The possible values can now be true, false, empty.
11450         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11451         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11452         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11453
11454 2011-05-28  Bruno Haible  <bruno@clisp.org>
11455
11456         doc: Use a recent texinfo.tex.
11457         * doc/Makefile (tex_opts): New variable.
11458         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11459
11460 2011-05-28  Jim Meyering  <meyering@redhat.com>
11461
11462         intprops.h: adjust comment to match code change
11463         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11464         only once, it *may* have side effects.  Also fix an unrelated typo.
11465         (_GL_INT_SIGNED): Likewise.
11466
11467 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11468
11469         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11470
11471 2011-05-26  Bruno Haible  <bruno@clisp.org>
11472
11473         mbsrchr: Avoid collision with system function on Interix.
11474         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11475         Reported by Markus Duft <mduft@gentoo.org>.
11476
11477 2011-05-15  James Youngman  <jay@gnu.org>
11478
11479         getopt: for ambiguous options, enumerate the possibilities.
11480         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11481         the ambiguous options when an ambiguous prefix is given. This was
11482         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11483         glibc change was
11484         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11485
11486 2011-05-25  Eric Blake  <eblake@redhat.com>
11487
11488         getcwd: work around mingw bug
11489         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11490         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11491         Reported by Matthias Bolte.
11492
11493 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11494
11495         test-intprops: disable -Wtype-limits diagnostics
11496         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11497         diagnostics.  Otherwise, the integer overflow macros generate many
11498         diagnostics.  Reported by Jim Meyering in
11499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11500
11501         intprops: shorten, to pacify gcc -Woverlength-strings
11502         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11503         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11504         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11505         likely to run afoul of C compiler limits for string constant lengths.
11506         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11507
11508 2011-05-24  Eric Blake  <eblake@redhat.com>
11509
11510         docs: document recently fixed glibc printf bug
11511         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11512         * doc/posix-functions/printf.texi (printf): Likewise.
11513         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11514         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11515
11516         closein-tests: convert to init.sh
11517         * modules/closein-tests (Files): Add init.sh
11518         * tests/test-closein.sh Use it.
11519
11520         yesno-tests: convert to init.sh
11521         * modules/yesno-tests (Files): Add init.sh.
11522         * tests/test-yesno.sh: Use it.
11523
11524         atexit-tests: ensure reliable exit status
11525         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11526         Reported by Bruno Haible.
11527
11528 2011-05-24  Bruno Haible  <bruno@clisp.org>
11529
11530         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11531         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11532         gl_PREREQ_STRERROR_R invocations from here...
11533         * modules/strerror_r-posix (configure.ac): ... to here.
11534
11535 2011-05-24  Eric Blake  <eblake@redhat.com>
11536
11537         strerror_r: fix missing header
11538         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11539
11540         strerror_r: fix AIX test failures
11541         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11542         ERANGE failure.
11543
11544         strerror_r: fix Solaris test failures
11545         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11546         failures.
11547         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11548
11549         strerror_r: enforce POSIX recommendations
11550         * lib/strerror_r.c (safe_copy): New helper method.
11551         (strerror_r): Guarantee a non-empty string.
11552         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11553         recent POSIX rulings and to match our strerror guarantees.
11554         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11555
11556 2011-05-24  Jim Meyering  <meyering@redhat.com>
11557
11558         test-perror2.c: avoid warning about unused variable
11559         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11560
11561 2011-05-24  Eric Blake  <eblake@redhat.com>
11562
11563         perror: avoid spurious test failure on HP-UX
11564         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11565
11566         tests: fix logic bug in init.sh
11567         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11568         shell.
11569
11570 2011-05-24  Jim Meyering  <meyering@redhat.com>
11571
11572         utimensat: do not reference an out-of-scope buffer
11573         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11574         declared in an inner scope, yet "times" would be dereferenced outside
11575         the scope in which "ts" was valid.
11576         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11577         of ts[2] "out/up", so that the use of aliased "times" (via
11578         "times = ts;") does not end up referencing an out-of-scope "ts"
11579
11580         opendir-safer.c: don't clobber errno; don't close negative FD
11581         * lib/opendir-safer.c (opendir_safer):
11582         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11583         file descriptor, and more importantly, don't clobber the
11584         offending errno value with EINVAL.  Before, upon failure
11585         of dup_safer, we would pass the negative file descriptor to
11586         fdopendir, which would clobber errno.
11587
11588 2011-05-23  Bruno Haible  <bruno@clisp.org>
11589
11590         idcache: Fix module description.
11591         * modules/idcache (Include): Set to "idcache.h".
11592
11593 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         gnulib-tool: fix portability problem with MacOS sed
11596         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11597         before the "}".  Problem reported by Leo in
11598         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11599         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11600         sed_extract_condition1, sed_extract_condition2.
11601
11602 2011-05-23  Bruno Haible  <bruno@clisp.org>
11603
11604         hash: Simplify autoconf macro.
11605         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11606
11607 2011-05-23  Bruno Haible  <bruno@clisp.org>
11608
11609         getugroups: Fix module description.
11610         * modules/getugroups (Include): Set to "getugroups.h".
11611
11612 2011-05-23  Bruno Haible  <bruno@clisp.org>
11613
11614         linkat: Simplify autoconf macro.
11615         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11616
11617 2011-05-23  Bruno Haible  <bruno@clisp.org>
11618             Eric Blake  <eblake@redhat.com>
11619
11620         linkat, renameat: Update dependencies.
11621         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11622         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11623         symlinkat.
11624
11625 2011-05-23  Jim Meyering  <meyering@redhat.com>
11626
11627         maint.mk: more tight_scope improvements
11628         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11629         (_gl_TS_headers): Define only in if-0'd block.
11630         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11631         sometimes we must *not* use it.  Adjust uses accordingly.
11632         (sc_tight_scope): Use much simpler grep-based test to determine
11633         whether we skip this rule.
11634
11635         maint.mk: generalize/improve the tight-scope rule
11636         * top/maint.mk: Emit a warning when the test is skipped.
11637         (_gl_TS_dir): Add $(srcdir)/ prefix.
11638         (_gl_TS_function_match): Simplify, rather than trying
11639         to enumerate common types.  Otherwise, it would fail to match an
11640         "extern unsigned char const *" declaration in idutils.
11641         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11642         a way to support use of that type of macro.
11643         (_gl_TS_var_match): Simplify regexp.
11644         (_gl_TS_obj_files): New configurable variable.
11645         (_gl_TS_headers): Likewise.
11646
11647 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11648
11649         verify: fix bug when gnulib <assert.h> is also included
11650         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11651         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11652         Perhaps there's a better way, but this fixes the immediate problem.
11653         Problem reported by Bruno Haible in
11654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11655
11656 2011-05-22  Bruno Haible  <bruno@clisp.org>
11657
11658         xgetcwd: Simplify autoconf macro.
11659         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11660
11661 2011-05-22  Bruno Haible  <bruno@clisp.org>
11662
11663         New module 'mktime-internal'.
11664         * modules/mktime-internal: New file.
11665         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11666         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11667         mktime_internal as a C macro if libc has __mktime_internal.
11668         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11669         conditions.
11670         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11671
11672 2011-05-22  Bruno Haible  <bruno@clisp.org>
11673
11674         timegm: Correct mktime replacement statements.
11675         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11676         defining mktime as a C macro. This completes a 2009-07-28 commit.
11677
11678 2011-05-22  Bruno Haible  <bruno@clisp.org>
11679
11680         timegm: Simplify autoconf macro.
11681         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11682
11683 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11684
11685         clock-time: change to LGPLv2+.
11686         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11687         BSD-like but we have no mark for that; this is good enough for now.
11688
11689 2011-05-21  Bruno Haible  <bruno@clisp.org>
11690
11691         strerror_r: Fix comments.
11692         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11693
11694 2011-05-21  Bruno Haible  <bruno@clisp.org>
11695
11696         relocatable-prog-wrapper: Fix possible link error.
11697         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11698         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11699         (gl_FUNC_SETENV): ... to here.
11700         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11701         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11702
11703 2011-05-21  Bruno Haible  <bruno@clisp.org>
11704
11705         relocatable-prog-wrapper: Assume strerror() exists.
11706         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11707         m4/strerror.m4.
11708         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11709         * lib/relocwrapper.c: Remove mention of strerror module.
11710         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11711         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11712         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11713         C macro.
11714
11715 2011-05-21  Bruno Haible  <bruno@clisp.org>
11716
11717         select: Simplify replacement idiom.
11718         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11719         Win32 platforms.
11720         * lib/sys_select.in.h (select): Simplify accordingly.
11721         * modules/select (Depends-on): Likewise.
11722
11723 2011-05-21  Bruno Haible  <bruno@clisp.org>
11724
11725         mkdir-p: Simplify autoconf macro.
11726         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11727         gl_FUNC_LCHOWN.
11728
11729 2011-05-21  Eric Blake  <eblake@redhat.com>
11730
11731         strerror_r: avoid clobbering strerror on cygwin
11732         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11733         fall back instead to sys_errlist.
11734         * modules/strerror (configure.ac): Add witness.
11735         * tests/test-strerror_r.c (main): Enhance test.
11736         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11737         * tests/test-perror2.c (main): Free memory before exit.
11738
11739 2011-05-21  Bruno Haible  <bruno@clisp.org>
11740
11741         mkdtemp: Use gnulib naming conventions.
11742         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11743         * modules/mkdtemp (configure.ac): Update.
11744
11745 2011-05-20  Eric Blake  <eblake@redhat.com>
11746
11747         strerror_r: avoid corrupting errno on Solaris
11748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11749         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11750
11751         strerror_r: avoid compiler warning
11752         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11753
11754         strerror_r: simplify AIX code
11755         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11756
11757         test-perror: avoid spurious failure on FreeBSD
11758         * modules/perror-tests (Depends-on): Add strerror, now that
11759         strerror_r no longer pulls it in.
11760
11761 2011-05-20  Bruno Haible  <bruno@clisp.org>
11762
11763         strerror_r-posix: Remove unused dependencies.
11764         * modules/strerror_r-posix (Depends-on): Remove strerror.
11765         Reported by Eric Blake.
11766
11767 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11768
11769         intprops: remove assumption about A|B representation
11770         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11771         is a valid integer if both A and B are.  Although this is true for
11772         all known practical hosts, the C standard doesn't guarantee it,
11773         and the code need not assume it.  Also, this change may work around
11774         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11776
11777 2011-05-20  Eric Blake  <eblake@redhat.com>
11778
11779         perror: work around FreeBSD bug
11780         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11781         is broken.  Move AC_LIBOBJ...
11782         * modules/perror (configure.ac): Here.
11783         * doc/posix-functions/perror.texi (perror): Document this.
11784         * tests/test-perror2.c (main): Enhance test.
11785
11786         test-perror: check for strerror interactions
11787         * tests/macros.h (STREQ): Add macro.
11788         * modules/perror-tests (Files): Add second test.
11789         * tests/test-perror2.c (main): New file.
11790         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11791
11792         test-perror: rewrite to use init script
11793         * modules/perror-tests (Files): Add init.sh.
11794         * tests/test-perror.sh: Use temporary directory.
11795
11796 2011-05-20  Jim Meyering  <meyering@redhat.com>
11797
11798         maint: replace misused "a" with "an"
11799         * doc/intprops.texi: "a integer"
11800         * doc/regex.texi: "a explanation"
11801         * lib/alignof.h: "a object"
11802         * lib/argmatch.h: "a explanation"
11803         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11804         * lib/stdint.in.h: "a integer"
11805         * lib/userspec.c: "a owner"
11806         * doc/gnulib.texi: Fix "a idea", and reword.
11807
11808 2011-05-19  Jim Meyering  <meyering@redhat.com>
11809
11810         maint: correct misuse of "a" and "an"
11811         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11812         * lib/argp-help.c: "an docum...": s/an/a/
11813         * lib/argp-parse.c: "An vector": s/An/A/
11814         * lib/execute.c: "an native": s/an/a/
11815         * lib/spawn-pipe.c: Likewise.
11816         * lib/gc.h: "an Gc_rc": s/an/a/
11817         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11818         * lib/fts.c: "an stat.st_dev": s/an/a/
11819
11820 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11821
11822         intprops-tests: work around HP-UX 11.23 cc bug with constants
11823         * tests/test-intprops.c (VERIFY): New macro.
11824         (main): Use it, instead of verify, to work around the compiler bug; see
11825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11826
11827         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11828         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11829         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11830         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11831         (_GL_REMAINDER_OVERFLOW): Use it.
11832
11833         intprops-tests: revert unsigned part of previous change
11834         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11835         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11836         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11838
11839 2011-05-19  Bruno Haible  <bruno@clisp.org>
11840
11841         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11842         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11843         strerror_r() returned without filling the buffer.
11844         Reported by Eric Blake.
11845
11846 2011-05-19  Eric Blake  <eblake@redhat.com>
11847
11848         strerror_r: guarantee unchanged errno
11849         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11850         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11851         failure.
11852         * tests/test-strerror_r.c (main): Enhance test.
11853
11854 2011-05-19  Bruno Haible  <bruno@clisp.org>
11855
11856         strerror_r: Reorder #if blocks.
11857         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11858         for consistency with the previous commit.
11859
11860 2011-05-19  Bruno Haible  <bruno@clisp.org>
11861
11862         perror: Avoid clobbering the strerror buffer when possible.
11863         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11864         * lib/strerror.c: Include it.
11865         * modules/strerror (Files): Add lib/strerror-impl.h.
11866         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11867         (my_strerror): New function, defined through lib/strerror-impl.h.
11868         (perror): Use it instead of strerror.
11869         * modules/perror (Files): Add lib/strerror-impl.h.
11870         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11871
11872 2011-05-19  Eric Blake  <eblake@redhat.com>
11873
11874         strerror_r: fix on newer cygwin
11875         * lib/strerror_r.c (strerror_r): Cygwin now has
11876         __xpg_strerror_r, use it.
11877
11878 2011-05-19  Bruno Haible  <bruno@clisp.org>
11879
11880         strerror_r: Avoid clobbering the strerror buffer when possible.
11881         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11882         (sys_nerr, sys_errlist): New declarations.
11883         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11884         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11885         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11886
11887 2011-05-19  Bruno Haible  <bruno@clisp.org>
11888
11889         strerror_r: Fix test failure on mingw.
11890         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11891         EXTEND_STRERROR_R.
11892         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11893         macros from errno.in.h instead.
11894
11895 2011-05-19  Eric Blake  <eblake@redhat.com>
11896
11897         strerror: relax test for Solaris
11898         * tests/test-strerror.c (main): Permit Solaris behavior.
11899         * tests/test-strerror_r.c (main): Likewise.
11900
11901         strerror: enforce POSIX ruling on strerror(0)
11902         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11904         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11905         * doc/posix-functions/strerror.texi (strerror): Document it.
11906         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11907         * tests/test-strerror.c (main): Strengthen test.
11908         * tests/test-strerror_r.c (main): Likewise.
11909
11910 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11911
11912         intprop-tests: port to older and more-pedantic compilers
11913         * modules/intprops-tests (Files): Add tests/macros.h.
11914         * tests/test-intprops.c: Include macros.h.
11915         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11916         it's no longer documented to expand to an integer constant expression.
11917         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11918         argument is floating point, as it's no longer documented to expand
11919         to an integer constant expression in that case.
11920         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11921         compiler bugs reported by Bruno Haible.  See
11922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11923         (U0, U1): New constants, to work around the same bugs.  Also,
11924         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11925
11926         intprops: work around C compiler bugs
11927         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11928         bug in Sun C 5.11 2010/08/13 and other compilers; see
11929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11930
11931         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11932         * doc/intprops.texi (Integer Type Determination): Fix
11933         documentation for TYPE_IS_INTEGER: it returns an constant
11934         expression, not an integer constant expression.  Fix doc for
11935         TYPE_SIGNED: it returns an integer constant expression only if its
11936         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11937         hardly worth documented that way....)
11938
11939 2011-05-18  Bruno Haible  <bruno@clisp.org>
11940
11941         strerror_r: Avoid clobbering the strerror buffer when possible.
11942         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11943         Handle gnulib defined errno values here. When strerror() returns NULL
11944         or an empty string, return EINVAL.
11945         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11946         gnulib defined errno values here.
11947         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11948
11949 2011-05-18  Eric Blake  <eblake@redhat.com>
11950
11951         fnmatch: avoid compiler warning
11952         * lib/fnmatch_loop.c (FCT): Use correct type.
11953         Reported by Matthias Bolte.
11954
11955 2011-05-13  Jim Meyering  <meyering@redhat.com>
11956
11957         maint.mk: three new prohibit_<HDR>_without_use rules
11958         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11959         (sc_prohibit_stdio-safer_without_use): Likewise.
11960         (sc_prohibit_xfreopen_without_use): Likewise.
11961
11962 2011-05-17  Jim Meyering  <meyering@redhat.com>
11963
11964         announce-gen: fail if the NEWS delta is empty
11965         If there's nothing noteworthy in NEWS, then either you forgot
11966         or you shouldn't be releasing.
11967         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11968
11969 2011-05-17  Pádraig Brady <P@draigBrady.com>
11970
11971         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11972         reserved symbols starting with double underscore from the check.
11973
11974 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11975
11976         intprops: add doc
11977         * doc/intprops.texi: New file, documenting intprops.
11978         * doc/gnulib.texi (Particular Modules): Include it.
11979
11980         verify: add doc to gnulib manual and fix example
11981         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11982         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11983         (Compile-time Assertions): Fix example so it can't overflow.
11984
11985 2011-05-17  Jim Meyering  <meyering@redhat.com>
11986
11987         warnings.m4: don't usurp save_CPPFLAGS variable name
11988         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11989
11990         doc: fix typo
11991         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11992
11993 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11994             Bruno Haible  <bruno@clisp.org>
11995
11996         doc: Tweak recent change.
11997         * README (Portability guidelines): Tweak new text.
11998         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11999         Interix 6.1.
12000
12001 2011-05-16  Eric Blake  <eblake@redhat.com>
12002
12003         inttypes: avoid autoconf warning
12004         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12005         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12006
12007 2011-05-16  Sam Steingold <sds@gnu.org>
12008         and Eric Blake  <eblake@redhat.com>
12009
12010         vc-list-files: accept multiple directory operands
12011         * build-aux/vc-list-files: Iterate over all remaining operands.
12012
12013 2011-05-16  Bruno Haible  <bruno@clisp.org>
12014
12015         Fix confusion regarding deprecated modules.
12016         * modules/calloc (Status, Notice): Mark module as deprecated, not
12017         obsolete.
12018         * modules/fnmatch-posix (Status, Notice): Likewise.
12019         * modules/getdate (Status, Notice): Likewise.
12020         * modules/getopt (Status, Notice): Likewise.
12021         * modules/malloc (Status, Notice): Likewise.
12022         * modules/pipe (Status, Notice): Likewise.
12023         * modules/realloc (Status, Notice): Likewise.
12024         * modules/rename-dest-slash (Status, Notice): Likewise.
12025         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12026         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12027         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12028         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12029         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12030
12031 2011-05-16  Bruno Haible  <bruno@clisp.org>
12032
12033         doc: List the target platforms.
12034         * doc/gnulib-intro.texi (Target Platforms): New section.
12035         * doc/gnulib.texi (Introduction): Update menu.
12036         * README (Portability guidelines): Refer to the new section. Update
12037         statement about oldest supported environment. Remove rationale why
12038         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12039         unportable C89 function.
12040         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12041         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12042
12043 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12044
12045         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12046
12047 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12048
12049         intprops-tests: new module
12050         * modules/intprops-tests, tests/test-intprops.c: New files.
12051
12052         intprops: add safe, portable integer overflow checking
12053         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12054         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12055         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12056         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12057         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12058         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12059         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12060         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12061         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12062         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12063         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12064
12065 2011-05-12  James Youngman  <jay@gnu.org>
12066
12067         Add a test for glibc's Bugzilla bug #12378.
12068         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12069         doesn't allow the literal matching of a lone "[" (which is
12070         required by POSIX).
12071         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12072
12073 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12074
12075         Sync glibc change fixing Bugzilla bug #12378.
12076         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12077         beginning and fall back to matching as normal character if the
12078         string ends before the matching ']' is found.  This is what POSIX
12079         requires.
12080
12081 2011-05-13  Eric Blake  <eblake@redhat.com>
12082
12083         getcwd-lgpl: relax test for FreeBSD
12084         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12085         issue.
12086         * tests/test-getcwd-lgpl.c (main): Relax test.
12087         Reported by Matthias Bolte.
12088
12089 2011-05-11  Eric Blake  <eblake@redhat.com>
12090
12091         test-fflush: silence compiler warning
12092         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12093
12094 2011-05-11  Bruno Haible  <bruno@clisp.org>
12095
12096         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12098         * modules/canonicalize (Depends-on): Add 'nocrash'.
12099         * modules/canonicalize-lgpl (Depends-on): Likewise.
12100         * doc/posix-functions/realpath.texi: Update platforms list.
12101         Reported by Ryan Schmidt <ryandesign@macports.org>.
12102
12103 2011-05-11  Bruno Haible  <bruno@clisp.org>
12104
12105         group-member: Declare function in <unistd.h>.
12106         * lib/unistd.in.h (group_member): New declaration.
12107         * lib/group-member.h: Remove file.
12108         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12109         * tests/test-unistd-c++.cc: Check signature of group_member.
12110         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12111         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12112         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12113         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12114         HAVE_GROUP_MEMBER.
12115         * modules/group-member (Files): Remove lib/group-member.h.
12116         (Depends-on): Add unistd. Specify conditions.
12117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12118         (Include): Change to <unistd.h>.
12119         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12120         HAVE_GROUP_MEMBER.
12121         * NEWS: Mention the change.
12122         * lib/euidaccess.c: Don't include group-member.h.
12123
12124 2011-05-11  Bruno Haible  <bruno@clisp.org>
12125
12126         group-member: Document module.
12127         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12128         module.
12129
12130 2011-05-11  Bruno Haible  <bruno@clisp.org>
12131
12132         fclose: Fix mistake earlier today.
12133         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12134
12135 2011-05-11  Eric Blake  <eblake@redhat.com>
12136
12137         fclose: preserve fflush errors
12138         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12139         Reported by Jim Meyering.
12140
12141         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12142         * build-aux/bootstrap (check_versions): When no specific version
12143         is required, merely check that the app produces an exit status
12144         that indicates its existence.
12145
12146         maint.mk: drop redundant check
12147         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12148         the same but better.
12149
12150 2011-05-11  Bruno Haible  <bruno@clisp.org>
12151
12152         fclose: Fix possible link error.
12153         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12154         unregister_shadow_fd. Improve comments.
12155         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12156         Eric Blake.
12157
12158 2011-05-11  Jim Meyering  <meyering@redhat.com>
12159
12160         maint.mk: improve "can not" detection and generalize rule name
12161         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12162         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12163         Use the same technique as in sc_prohibit_doubled_word, so that
12164         we recognize "can not" also when the words are separated by a newline.
12165         Suggested by Eric Blake.
12166         (perl_filename_lineno_text_): Define.  Factored out of...
12167         (prohibit_doubled_word_): ...here.  Use the new definition.
12168         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12169         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12170         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12171
12172 2011-05-10  Eric Blake  <eblake@redhat.com>
12173
12174         fclose: avoid double close race when possible
12175         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12176         all but WINDOWS_SOCKETS.
12177
12178 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12179
12180         openat: correct new comment
12181         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12182
12183 2011-05-10  Jim Meyering  <meyering@redhat.com>
12184
12185         openat: add comments
12186         * lib/openat-proc.c (openat_proc_name): Add comments,
12187         mostly from Eric Blake.
12188
12189 2011-05-09  Eric Blake  <eblake@redhat.com>
12190
12191         openat: reduce syscalls in first probe of /proc
12192         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12193         be a directory.  Simplify the probe for .. bugs.
12194         * modules/openat (Depends-on): Drop same-inode.
12195         Reported by Bastien ROUCARIES.
12196
12197 2011-05-09  Jim Meyering  <meyering@redhat.com>
12198
12199         maint.mk: change semantics/name of tight_scope variables
12200         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12201         Rename variables to align with semantics that make them more useful.
12202
12203         maint.mk: tweak new rule's name not to impinge
12204         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12205         (sc_tight_scope): Use new rule name rather than $@-0.
12206
12207         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12208         * top/maint.mk (sc_tight_scope): New rule.
12209         (sc_tight_scope-0): New rule, ifdef'd out.
12210         (_gl_TS_dir): Default.
12211         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12212         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12213
12214 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12215
12216         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12217         Haible <bruno@clisp.org>.
12218
12219 2011-05-08  Bruno Haible  <bruno@clisp.org>
12220
12221         Comments.
12222         * m4/isnanf.m4: Add comment.
12223         * m4/isnanl.m4: Likewise.
12224
12225 2011-05-08  Bruno Haible  <bruno@clisp.org>
12226
12227         glob: Remove obsolete macro.
12228         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12229
12230 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12231
12232         intprops: Sun C 5.11 supports __typeof__
12233         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12234         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12235         which is new.
12236         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12237
12238         intprops: switch to usual gnulib indenting and naming
12239         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12240         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12241
12242         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12243
12244 2011-05-08  Jim Meyering  <meyering@redhat.com>
12245
12246         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12247         * top/maint.mk (release-prep): Use make's --no-print-directory
12248         option when generating the announcement.  This eliminates the
12249         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12250         generated announcement template.
12251
12252 2011-05-08  Bruno Haible  <bruno@clisp.org>
12253
12254         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12255         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12256         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12257
12258 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12259
12260         ignore-value, verify: Omit include files from lib_SOURCES.
12261         * modules/ignore-value, modules/verify (Makefile.am):
12262         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12263         that leads Automake to duplicate use of am__objects_... variables
12264         in Makefile.in.  See
12265         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12266
12267 2011-05-07  Bruno Haible  <bruno@clisp.org>
12268
12269         fclose: Simplify autoconf macro.
12270         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12271         defined.
12272
12273 2011-05-07  Bruno Haible  <bruno@clisp.org>
12274
12275         canonicalize-lgpl: Fix autoconf macro ordering bug.
12276         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12277         gl_STDLIB_H_DEFAULTS.
12278
12279 2011-05-06  Eric Blake  <eblake@redhat.com>
12280
12281         maintainer-makefile: make sc_po_check easier to tune
12282         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12283         to probe for strings, such as an alternate location for gnulib.
12284
12285         fclose: guarantee behavior on seekable stdin
12286         * modules/fclose (Depends-on): Add fflush.
12287         * doc/posix-functions/fclose.texi (fclose): Document this.
12288         * tests/test-fclose.c (main): Make test for this unconditional.
12289
12290 2011-05-06  Bruno Haible  <bruno@clisp.org>
12291
12292         fflush, fpurge: Relicense under LGPLv2+.
12293         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12294         * modules/fpurge (License): Likewise.
12295         With permission from Eric Blake and Jim Meyering.
12296         Suggested by Eric Blake.
12297
12298 2011-05-06  Karl Berry  <karl@gnu.org>
12299
12300         * MODULES.html.sh (func_all_modules): remove exit.
12301
12302 2011-05-06  Jim Meyering  <meyering@redhat.com>
12303
12304         maint.mk: use info-gnu@ as the default only for a stable release
12305         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12306         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12307         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12308         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12309
12310 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         assert-h: new module, which supports C1X-style static_assert
12313         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12314         * lib/verify.h: Revamp so that this can be copied into assert.h,
12315         while retaining the ability to use it standalone as before.
12316         Rename private identifiers so as not to encroach on the
12317         standard C namespace, since this is now used by assert.h.
12318         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12319         the old verify_true.
12320         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12321         the old verify_true.  Use _GL_VERIFY_TYPE.
12322         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12323         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12324         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12325         defined when this file is copied into the replacement assert.h.
12326         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12327         and _Static_assert is not built in.
12328         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12329         defined, and use the new macros mentioned above.
12330         * doc/posix-headers/assert.texi: Document this.
12331
12332 2011-05-05  Bruno Haible  <bruno@clisp.org>
12333
12334         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12335         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12336         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12337         gl_REPLACE_FCLOSE here.
12338         * modules/fflush (Depends-on): Remove fclose.
12339         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12340         combination with module 'fclose'.
12341
12342 2011-05-05  Bruno Haible  <bruno@clisp.org>
12343
12344         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12345         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12346         gl_FUNC_FFLUSH.
12347         (gl_FUNC_FFLUSH): Use it.
12348         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12349         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12350         gl_REPLACE_FSEEKO here.
12351
12352 2011-05-05  Bruno Haible  <bruno@clisp.org>
12353
12354         tzset: Relicense under LGPL.
12355         * modules/tzset (License): Change to LGPL.
12356         No agreement needed; it's a no-op.
12357
12358         strtoimax, strtoumax: Relicense under LGPL.
12359         * modules/strtoimax (License): Change to LGPL.
12360         * modules/strtoumax (License): Likewise.
12361         With permission from Jim Meyering, Paul Eggert:
12362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12364
12365         getgroups: Relicense under LGPL.
12366         * modules/getgroups (License): Change to LGPL.
12367         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12371
12372         nanosleep: Relicense under LGPL.
12373         * modules/nanosleep (License): Change to LGPL.
12374         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12375         Haible:
12376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12380
12381         futimens: Relicense under LGPL.
12382         * modules/futimens (License): Change to LGPL.
12383         With permission from Eric Blake:
12384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12385
12386         fflush: Relicense under LGPL.
12387         * modules/fflush (License): Change to LGPL.
12388         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12392
12393         tmpfile: Relicense under LGPL.
12394         * modules/tmpfile (License): Change to LGPL.
12395         With permission from Ben Pfaff:
12396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12397
12398         isfinite: Relicense under LGPL.
12399         * modules/isfinite (License): Change to LGPL.
12400         With permission from Ben Pfaff, Bruno Haible:
12401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12403
12404         acosl..tanl: Relicense under LGPL.
12405         * modules/acosl (License): Change to LGPL.
12406         * modules/asinl (License): Likewise.
12407         * modules/atanl (License): Likewise.
12408         * modules/cosl (License): Likewise.
12409         * modules/expl (License): Likewise.
12410         * modules/logl (License): Likewise.
12411         * modules/sinl (License): Likewise.
12412         * modules/sqrtl (License): Likewise.
12413         * modules/tanl (License): Likewise.
12414         Source code originally from glibc and Paolo Bonzini. Agreements:
12415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12417
12418 2011-05-05  Bruno Haible  <bruno@clisp.org>
12419
12420         signal: Define sighandler_t.
12421         * lib/signal.in.h (sighandler_t): New type.
12422         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12423         whether sighandler_t is defined.
12424         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12425         * modules/signal (Depends-on): Add extensions.
12426         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12427         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12428         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12429
12430 2011-05-05  Eric Blake  <eblake@redhat.com>
12431
12432         maint: remove useless REPLACE_*_H macros
12433         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12434         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12435         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12436         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12437         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12438         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12439         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12440         * m4/btowc.m4: Update callers.
12441         * m4/dirfd.m4: Likewise.
12442         * m4/duplocale.m4: Likewise.
12443         * m4/fchdir.m4: Likewise.
12444         * m4/fdopendir.m4: Likewise.
12445         * m4/inet_ntop.m4: Likewise.
12446         * m4/inet_pton.m4: Likewise.
12447         * m4/ioctl.m4: Likewise.
12448         * m4/mbrlen.m4: Likewise.
12449         * m4/mbrtowc.m4: Likewise.
12450         * m4/mbsinit.m4: Likewise.
12451         * m4/mbsnrtowcs.m4: Likewise.
12452         * m4/mbsrtowcs.m4: Likewise.
12453         * m4/poll.m4: Likewise.
12454         * m4/setlocale.m4: Likewise.
12455         * m4/wcrtomb.m4: Likewise.
12456         * m4/wcsnrtombs.m4: Likewise.
12457         * m4/wcsrtombs.m4: Likewise.
12458         * m4/wctob.m4: Likewise.
12459         * m4/wcwidth.m4: Likewise.
12460         * modules/posix_spawn: Likewise.
12461         * modules/posix_spawn_file_actions_addclose: Likewise.
12462         * modules/posix_spawn_file_actions_adddup2: Likewise.
12463         * modules/posix_spawn_file_actions_addopen: Likewise.
12464         * modules/posix_spawn_file_actions_destroy: Likewise.
12465         * modules/posix_spawn_file_actions_init: Likewise.
12466         * modules/posix_spawnattr_destroy: Likewise.
12467         * modules/posix_spawnattr_getflags: Likewise.
12468         * modules/posix_spawnattr_getpgroup: Likewise.
12469         * modules/posix_spawnattr_getschedparam: Likewise.
12470         * modules/posix_spawnattr_getschedpolicy: Likewise.
12471         * modules/posix_spawnattr_getsigdefault: Likewise.
12472         * modules/posix_spawnattr_getsigmask: Likewise.
12473         * modules/posix_spawnattr_init: Likewise.
12474         * modules/posix_spawnattr_setflags: Likewise.
12475         * modules/posix_spawnattr_setpgroup: Likewise.
12476         * modules/posix_spawnattr_setschedparam: Likewise.
12477         * modules/posix_spawnattr_setschedpolicy: Likewise.
12478         * modules/posix_spawnattr_setsigdefault: Likewise.
12479         * modules/posix_spawnattr_setsigmask: Likewise.
12480         * modules/posix_spawnp: Likewise.
12481
12482 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12483
12484         Add option to do-release-commit-and-tag to specify branch.
12485         * build-aux/do-release-commit-and-tag: Add --branch.
12486
12487 2011-05-03  Bruno Haible  <bruno@clisp.org>
12488
12489         Avoid unnecessary compilation units, through conditional dependencies.
12490         * modules/accept (Depends-on): Add conditions to the dependencies.
12491         * modules/acosl (Depends-on): Likewise.
12492         * modules/argz (Depends-on): Likewise.
12493         * modules/asinl (Depends-on): Likewise.
12494         * modules/atanl (Depends-on): Likewise.
12495         * modules/atoll (Depends-on): Likewise.
12496         * modules/bind (Depends-on): Likewise.
12497         * modules/btowc (Depends-on): Likewise.
12498         * modules/canonicalize-lgpl (Depends-on): Likewise.
12499         * modules/ceil (Depends-on): Likewise.
12500         * modules/ceilf (Depends-on): Likewise.
12501         * modules/ceill (Depends-on): Likewise.
12502         * modules/chdir-long (Depends-on): Likewise.
12503         * modules/chown (Depends-on): Likewise.
12504         * modules/close (Depends-on): Likewise.
12505         * modules/connect (Depends-on): Likewise.
12506         * modules/cosl (Depends-on): Likewise.
12507         * modules/dirfd (Depends-on): Likewise.
12508         * modules/dprintf (Depends-on): Likewise.
12509         * modules/dprintf-posix (Depends-on): Likewise.
12510         * modules/error (Depends-on): Likewise.
12511         * modules/euidaccess (Depends-on): Likewise.
12512         * modules/expl (Depends-on): Likewise.
12513         * modules/faccessat (Depends-on): Likewise.
12514         * modules/fchdir (Depends-on): Likewise.
12515         * modules/fclose (Depends-on): Likewise.
12516         * modules/fcntl (Depends-on): Likewise.
12517         * modules/fdopendir (Depends-on): Likewise.
12518         * modules/fflush (Depends-on): Likewise.
12519         * modules/floor (Depends-on): Likewise.
12520         * modules/floorf (Depends-on): Likewise.
12521         * modules/floorl (Depends-on): Likewise.
12522         * modules/fnmatch (Depends-on): Likewise.
12523         * modules/fopen (Depends-on): Likewise.
12524         * modules/fprintf-posix (Depends-on): Likewise.
12525         * modules/frexp (Depends-on): Likewise.
12526         * modules/frexp-nolibm (Depends-on): Likewise.
12527         * modules/frexpl (Depends-on): Likewise.
12528         * modules/frexpl-nolibm (Depends-on): Likewise.
12529         * modules/fseek (Depends-on): Likewise.
12530         * modules/fsusage (Depends-on): Likewise.
12531         * modules/ftell (Depends-on): Likewise.
12532         * modules/ftello (Depends-on): Likewise.
12533         * modules/futimens (Depends-on): Likewise.
12534         * modules/getcwd (Depends-on): Likewise.
12535         * modules/getcwd-lgpl (Depends-on): Likewise.
12536         * modules/getdelim (Depends-on): Likewise.
12537         * modules/getdomainname (Depends-on): Likewise.
12538         * modules/getgroups (Depends-on): Likewise.
12539         * modules/gethostname (Depends-on): Likewise.
12540         * modules/getline (Depends-on): Likewise.
12541         * modules/getlogin_r (Depends-on): Likewise.
12542         * modules/getopt-posix (Depends-on): Likewise.
12543         * modules/getpeername (Depends-on): Likewise.
12544         * modules/getsockname (Depends-on): Likewise.
12545         * modules/getsockopt (Depends-on): Likewise.
12546         * modules/getsubopt (Depends-on): Likewise.
12547         * modules/getusershell (Depends-on): Likewise.
12548         * modules/glob (Depends-on): Likewise.
12549         * modules/grantpt (Depends-on): Likewise.
12550         * modules/iconv_open (Depends-on): Likewise.
12551         * modules/iconv_open-utf (Depends-on): Likewise.
12552         * modules/inet_ntop (Depends-on): Likewise.
12553         * modules/inet_pton (Depends-on): Likewise.
12554         * modules/ioctl (Depends-on): Likewise.
12555         * modules/isapipe (Depends-on): Likewise.
12556         * modules/isfinite (Depends-on): Likewise.
12557         * modules/isinf (Depends-on): Likewise.
12558         * modules/lchown (Depends-on): Likewise.
12559         * modules/ldexpl (Depends-on): Likewise.
12560         * modules/link (Depends-on): Likewise.
12561         * modules/linkat (Depends-on): Likewise.
12562         * modules/listen (Depends-on): Likewise.
12563         * modules/logl (Depends-on): Likewise.
12564         * modules/lstat (Depends-on): Likewise.
12565         * modules/mbrlen (Depends-on): Likewise.
12566         * modules/mbrtowc (Depends-on): Likewise.
12567         * modules/mbsinit (Depends-on): Likewise.
12568         * modules/mbsnrtowcs (Depends-on): Likewise.
12569         * modules/mbsrtowcs (Depends-on): Likewise.
12570         * modules/mbtowc (Depends-on): Likewise.
12571         * modules/memcmp (Depends-on): Likewise.
12572         * modules/mkdir (Depends-on): Likewise.
12573         * modules/mkdtemp (Depends-on): Likewise.
12574         * modules/mkfifo (Depends-on): Likewise.
12575         * modules/mkfifoat (Depends-on): Likewise.
12576         * modules/mknod (Depends-on): Likewise.
12577         * modules/mkostemp (Depends-on): Likewise.
12578         * modules/mkostemps (Depends-on): Likewise.
12579         * modules/mkstemp (Depends-on): Likewise.
12580         * modules/mkstemps (Depends-on): Likewise.
12581         * modules/mktime (Depends-on): Likewise.
12582         * modules/nanosleep (Depends-on): Likewise.
12583         * modules/open (Depends-on): Likewise.
12584         * modules/openat (Depends-on): Likewise.
12585         * modules/perror (Depends-on): Likewise.
12586         * modules/poll (Depends-on): Likewise.
12587         * modules/popen (Depends-on): Likewise.
12588         * modules/posix_spawn (Depends-on): Likewise.
12589         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12590         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12591         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12592         * modules/posix_spawnp (Depends-on): Likewise.
12593         * modules/pread (Depends-on): Likewise.
12594         * modules/printf-posix (Depends-on): Likewise.
12595         * modules/ptsname (Depends-on): Likewise.
12596         * modules/putenv (Depends-on): Likewise.
12597         * modules/pwrite (Depends-on): Likewise.
12598         * modules/readline (Depends-on): Likewise.
12599         * modules/readlink (Depends-on): Likewise.
12600         * modules/readlinkat (Depends-on): Likewise.
12601         * modules/recv (Depends-on): Likewise.
12602         * modules/recvfrom (Depends-on): Likewise.
12603         * modules/regex (Depends-on): Likewise.
12604         * modules/remove (Depends-on): Likewise.
12605         * modules/rename (Depends-on): Likewise.
12606         * modules/renameat (Depends-on): Likewise.
12607         * modules/rmdir (Depends-on): Likewise.
12608         * modules/round (Depends-on): Likewise.
12609         * modules/roundf (Depends-on): Likewise.
12610         * modules/roundl (Depends-on): Likewise.
12611         * modules/rpmatch (Depends-on): Likewise.
12612         * modules/select (Depends-on): Likewise.
12613         * modules/send (Depends-on): Likewise.
12614         * modules/sendto (Depends-on): Likewise.
12615         * modules/setenv (Depends-on): Likewise.
12616         * modules/setlocale (Depends-on): Likewise.
12617         * modules/setsockopt (Depends-on): Likewise.
12618         * modules/shutdown (Depends-on): Likewise.
12619         * modules/sigaction (Depends-on): Likewise.
12620         * modules/signbit (Depends-on): Likewise.
12621         * modules/sigprocmask (Depends-on): Likewise.
12622         * modules/sinl (Depends-on): Likewise.
12623         * modules/sleep (Depends-on): Likewise.
12624         * modules/snprintf (Depends-on): Likewise.
12625         * modules/snprintf-posix (Depends-on): Likewise.
12626         * modules/socket (Depends-on): Likewise.
12627         * modules/sprintf-posix (Depends-on): Likewise.
12628         * modules/sqrtl (Depends-on): Likewise.
12629         * modules/stat (Depends-on): Likewise.
12630         * modules/strchrnul (Depends-on): Likewise.
12631         * modules/strdup-posix (Depends-on): Likewise.
12632         * modules/strerror (Depends-on): Likewise.
12633         * modules/strerror_r-posix (Depends-on): Likewise.
12634         * modules/strndup (Depends-on): Likewise.
12635         * modules/strnlen (Depends-on): Likewise.
12636         * modules/strptime (Depends-on): Likewise.
12637         * modules/strsep (Depends-on): Likewise.
12638         * modules/strsignal (Depends-on): Likewise.
12639         * modules/strstr-simple (Depends-on): Likewise.
12640         * modules/strtod (Depends-on): Likewise.
12641         * modules/strtoimax (Depends-on): Likewise.
12642         * modules/strtok_r (Depends-on): Likewise.
12643         * modules/strtoumax (Depends-on): Likewise.
12644         * modules/symlink (Depends-on): Likewise.
12645         * modules/symlinkat (Depends-on): Likewise.
12646         * modules/tanl (Depends-on): Likewise.
12647         * modules/tcgetsid (Depends-on): Likewise.
12648         * modules/tmpfile (Depends-on): Likewise.
12649         * modules/trunc (Depends-on): Likewise.
12650         * modules/truncf (Depends-on): Likewise.
12651         * modules/truncl (Depends-on): Likewise.
12652         * modules/uname (Depends-on): Likewise.
12653         * modules/unlink (Depends-on): Likewise.
12654         * modules/unlockpt (Depends-on): Likewise.
12655         * modules/unsetenv (Depends-on): Likewise.
12656         * modules/usleep (Depends-on): Likewise.
12657         * modules/utimensat (Depends-on): Likewise.
12658         * modules/vasprintf (Depends-on): Likewise.
12659         * modules/vdprintf (Depends-on): Likewise.
12660         * modules/vdprintf-posix (Depends-on): Likewise.
12661         * modules/vfprintf-posix (Depends-on): Likewise.
12662         * modules/vprintf-posix (Depends-on): Likewise.
12663         * modules/vsnprintf (Depends-on): Likewise.
12664         * modules/vsnprintf-posix (Depends-on): Likewise.
12665         * modules/vsprintf-posix (Depends-on): Likewise.
12666         * modules/wcrtomb (Depends-on): Likewise.
12667         * modules/wcscasecmp (Depends-on): Likewise.
12668         * modules/wcscspn (Depends-on): Likewise.
12669         * modules/wcsdup (Depends-on): Likewise.
12670         * modules/wcsncasecmp (Depends-on): Likewise.
12671         * modules/wcsnrtombs (Depends-on): Likewise.
12672         * modules/wcspbrk (Depends-on): Likewise.
12673         * modules/wcsrtombs (Depends-on): Likewise.
12674         * modules/wcsspn (Depends-on): Likewise.
12675         * modules/wcsstr (Depends-on): Likewise.
12676         * modules/wcstok (Depends-on): Likewise.
12677         * modules/wcswidth (Depends-on): Likewise.
12678         * modules/wctob (Depends-on): Likewise.
12679         * modules/wctomb (Depends-on): Likewise.
12680         * modules/wctype (Depends-on): Likewise.
12681         * modules/wcwidth (Depends-on): Likewise.
12682         * modules/write (Depends-on): Likewise.
12683
12684 2011-05-03  Bruno Haible  <bruno@clisp.org>
12685
12686         Support for conditional dependencies.
12687         * doc/gnulib.texi (Module description): Document the syntax of
12688         conditional dependencies.
12689         * gnulib-tool: New option --conditional-dependencies.
12690         (func_usage): Document it.
12691         (cond_dependencies): New variable.
12692         (func_get_automake_snippet_conditional,
12693         func_get_automake_snippet_unconditional): New functions, extracted from
12694         func_get_automake_snippet.
12695         (func_get_automake_snippet): Use them.
12696         (sed_first_32_chars): New variable.
12697         (func_module_shellfunc_name): New function.
12698         (func_module_shellvar_name): New function.
12699         (func_module_conditional_name): New function.
12700         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12701         func_cond_module_condition): New functions.
12702         (func_modules_transitive_closure): Add support for conditional
12703         dependencies.
12704         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12705         conditional automake snippet in an automake conditional.
12706         (func_emit_autoconf_snippets): Emit shell functions that contain the
12707         code for conditional modules.
12708         (func_import, func_create_testdir): Update specification.
12709
12710 2011-05-03  Eric Blake  <eblake@redhat.com>
12711
12712         test-getaddrinfo: report error information
12713         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12714
12715 2011-05-03  Jim Meyering  <meyering@redhat.com>
12716
12717         bootstrap: avoid build failure when $GZIP is set
12718         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12719         program name.  If defined at all, it is supposed to list gzip options.
12720         Reported by Alan Curry in http://debbugs.gnu.org/8609
12721
12722 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12723
12724         readme-release: new module with release instructions
12725         * modules/readme-release: New module.
12726         * top/README-release: New file, from coreutils, grep, diffutils.
12727         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12728
12729 2011-05-02  Eric Blake  <eblake@redhat.com>
12730
12731         fflush: also replace fclose when fixing fflush
12732         * modules/fflush (Depends-on): Add fclose.
12733         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12734         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12735         memstreams with no backing fd.
12736         * doc/posix-functions/fclose.texi (fclose): Document the use of
12737         fflush module to fix the bug.
12738         * tests/test-fclose.c (main): Relax test when fclose is used in
12739         isolation.
12740
12741         fclose: add some tests
12742         * modules/fclose-tests: New test module.
12743         * tests/test-fclose.c: New file.
12744         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12745
12746         fclose: reduced dependencies
12747         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12748         simpler lseek.
12749         * lib/fclose.c (rpl_fclose): Likewise.
12750         Reported by Simon Josefsson.
12751
12752         exit: drop remaining clients
12753         * modules/argmatch (Depends-on): Replace exit with stdlib.
12754         * modules/copy-file (Depends-on): Likewise.
12755         * modules/execute (Depends-on): Likewise.
12756         * modules/exitfail (Depends-on): Likewise.
12757         * modules/obstack (Depends-on): Likewise.
12758         * modules/pagealign_alloc (Depends-on): Likewise.
12759         * modules/pipe-filter-gi (Depends-on): Likewise.
12760         * modules/pipe-filter-ii (Depends-on): Likewise.
12761         * modules/savewd (Depends-on): Likewise.
12762         * modules/spawn-pipe (Depends-on): Likewise.
12763         * modules/wait-process (Depends-on): Likewise.
12764         * modules/xsetenv (Depends-on): Likewise.
12765         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12766         * modules/git-merge-changelog (Depends-on): Likewise.
12767         * modules/long-options (Depends-on): Likewise.
12768         * modules/pt_chown (Depends-on): Likewise.
12769         * modules/sysexits (Depends-on): Likewise.
12770
12771         freading: relax license from LGPLv3+ to LGPLv2+
12772         * modules/freading (License): Relax LGPL version.
12773
12774 2011-05-02  Bruno Haible  <bruno@clisp.org>
12775
12776         fchdir: Remove unused dependencies.
12777         * modules/fchdir (Depends-on): Remove include_next.
12778
12779 2011-05-02  Bruno Haible  <bruno@clisp.org>
12780
12781         gnulib-tool: Refactor.
12782         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12783         from func_emit_autoconf_snippets.
12784         (func_emit_autoconf_snippets): Use it.
12785
12786 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12787
12788         * NEWS: Document removal of 'exit'.
12789         * modules/exit: Remove file.
12790
12791 2011-05-01  Bruno Haible  <bruno@clisp.org>
12792
12793         Update DEPENDENCIES.
12794         * DEPENDENCIES (gettext): Recommend the newest release.
12795         Reported by Simon Josefsson.
12796
12797 2011-05-01  Bruno Haible  <bruno@clisp.org>
12798
12799         gnulib-tool: Reduce code duplication.
12800         * gnulib-tool (func_emit_autoconf_snippets): New function.
12801         (func_import, func_create_testdir): Use it.
12802
12803 2011-04-30  Eric Blake  <eblake@redhat.com>
12804
12805         fclose: don't fail on non-seekable input stream
12806         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12807         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12808         since fflush is allowed to fail in that case.
12809
12810 2011-04-30  Bruno Haible  <bruno@clisp.org>
12811
12812         dup3: cleanup
12813         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12814
12815 2011-04-30  Bruno Haible  <bruno@clisp.org>
12816
12817         netdb: Make it work in C++ mode.
12818         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12819         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12820         module.
12821         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12822         gl_MODULE_INDICATOR_FOR_TESTS.
12823         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12824         * modules/netdb-c++-tests: New file.
12825         * tests/test-netdb-c++.cc: New file.
12826
12827 2011-04-30  Bruno Haible  <bruno@clisp.org>
12828
12829         New modules 'vfscanf', 'vscanf'.
12830         * modules/vfscanf: New file.
12831         * modules/vscanf: New file.
12832         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12833         here.
12834         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12835         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12836
12837 2011-04-30  Bruno Haible  <bruno@clisp.org>
12838
12839         passfd: Add comments.
12840         * lib/passfd.c: Add comments about platforms.
12841
12842 2011-04-30  Bruno Haible  <bruno@clisp.org>
12843
12844         sys_uio: Make <sys/uio.h> self-contained.
12845         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12846         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12847
12848 2011-04-30  Bruno Haible  <bruno@clisp.org>
12849
12850         sys_socket: Ensure 'struct iovec' definition.
12851         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12852         <sys/socket.h>.
12853         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12854
12855 2011-04-30  Bruno Haible  <bruno@clisp.org>
12856
12857         sys_uio: Protect definition of 'struct iovec'.
12858         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12859         it as a C struct.
12860
12861 2011-04-30  Bruno Haible  <bruno@clisp.org>
12862
12863         manywarnings: fix indentation
12864         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12865
12866 2011-04-30  Pádraig Brady <P@draigBrady.com>
12867
12868         manywarnings: add -Wno-missing-field-initializers if needed.
12869         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12870         option if it's needed to allow initialization with { 0, }
12871
12872 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12873
12874         announce-gen: cosmetic improvement
12875         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12876
12877 2011-04-29  Jim Meyering  <meyering@redhat.com>
12878
12879         vc-list-files: indent with spaces, not TABs
12880         * build-aux/vc-list-files: Convert leading TABs to spaces,
12881         to match the style of most other files in gnulib.
12882
12883         announce-gen: indent with spaces, not TABs
12884         * build-aux/announce-gen: Convert all TABs to spaces, to match
12885         the style of most other files in gnulib.
12886
12887 2011-04-29  Eric Blake  <eblake@redhat.com>
12888
12889         quotearg: avoid uninitialized variable use
12890         * lib/quotearg.c (quoting_options_from_style): Initialize
12891         remaining fields, and ensure that custom styles are only used via
12892         quoting_options rather than quoting_style.
12893
12894 2011-04-29  Jim Meyering  <meyering@redhat.com>
12895
12896         maint.mk: remove unused VC-tag variable
12897         * top/maint.mk (VC-tag): Remove unused variable.
12898
12899 2011-04-29  Bruno Haible  <bruno@clisp.org>
12900
12901         netdb: fix gai_strerror replacements
12902         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12903         * modules/netdb: Substitute it.
12904
12905 2011-04-29  Jim Meyering  <meyering@redhat.com>
12906
12907         test-getcwd.c: avoid new set-but-not-used warning
12908         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12909         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12910         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12911         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12912
12913         test-hash.c: avoid a new shadowing warning
12914         * tests/test-hash.c (main): Don't shadow "dup".
12915
12916 2011-04-28  Eric Blake  <eblake@redhat.com>
12917
12918         getaddrinfo: fix gai_strerror signature
12919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12920         and work around mingw with UNICODE defined.
12921         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12922         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12923         * modules/netdb (Makefile.am): Substitute it.
12924         * lib/netdb.in.h (gai_strerror): Declare replacement.
12925         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12926         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12927         the fix.
12928
12929         getsockopt: avoid compiler warning
12930         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12931         Reported by Matthias Bolte.
12932
12933         tests: drop unused link dependency
12934         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12935         * modules/dirent-safer-tests (Makefile.am): Likewise.
12936         * modules/fdopendir-tests (Makefile.am): Likewise.
12937         * modules/mkfifoat-tests (Makefile.am): Likewise.
12938         * modules/openat-safer-tests (Makefile.am): Likewise.
12939         * modules/openat-tests (Makefile.am): Likewise.
12940         * modules/readlinkat-tests (Makefile.am): Likewise.
12941         * modules/symlinkat-tests (Makefile.am): Likewise.
12942         * modules/linkat-tests (Makefile.am): Likewise.
12943         (Depends-on): Switch to filenamecat-lgpl.
12944         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12945         LIBINTL.
12946         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12947         * tests/test-linkat.c (main): Don't require xalloc.
12948
12949         hash, mgetgroups: drop xalloc dependency
12950         * lib/hash.c (includes): Adjust includes.
12951         * lib/mgetgroups.c (includes): Likewise.
12952         (xgetgroups): Move...
12953         * lib/xgetgroups.c: ...to new file.
12954         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12955         * modules/xgetgroups: New file, split from...
12956         * modules/mgetgroups: ...here.
12957         (Depends-on): Add xalloc-oversized.
12958         * modules/hash (Depends-on): Likewise.
12959         * modules/hash-tests (Depends-on): Drop xalloc.
12960         (test_hash_LDADD): Drop unused library.
12961         * tests/test-hash.c (main): Break xalloc dependency.
12962         (includes): Drop unused include.
12963
12964         xalloc-oversized: new module
12965         * modules/xalloc-oversized: New module.
12966         * modules/xalloc (Depends-on): Add it.
12967         * lib/xalloc.h (xalloc_oversized): Move...
12968         * lib/xalloc-oversized.h: ...into new file.
12969
12970         utimecmp: drop dependency on xmalloc
12971         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12972         due to memory pressure.
12973         * modules/utimecmp (Depends-on): Drop xalloc.
12974
12975 2011-04-27  Eric Blake  <eblake@redhat.com>
12976
12977         getcwd: fix mingw bugs
12978         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12979         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12980         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12981
12982 2011-04-27  Bruno Haible  <bruno@clisp.org>
12983
12984         mkstemps: Ensure declaration on MacOS X 10.5.
12985         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12986         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12987         MacOS X.
12988
12989 2011-04-27  Bruno Haible  <bruno@clisp.org>
12990
12991         mkstemp: More documentation.
12992         * doc/posix-functions/mkstemp.texi: Document header file problem on
12993         MacOS X.
12994
12995 2011-04-27  Bruno Haible  <bruno@clisp.org>
12996
12997         mkstemp: Tweak configure message when cross-compiling.
12998         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12999         result as a guess.
13000
13001 2011-04-27  Bruno Haible  <bruno@clisp.org>
13002
13003         clean-temp: Clarify what it does.
13004         * lib/clean-temp.h: Add more comments.
13005         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13006         module.
13007         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13008         * doc/glibc-functions/mkstemps.texi: Likewise.
13009         * doc/glibc-functions/mkostemps.texi: Likewise.
13010
13011 2011-04-27  Eric Blake  <eblake@redhat.com>
13012
13013         fchdir: avoid extra chdir and fix test
13014         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13015         getcwd-lgpl.
13016         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13017         have to be canonical.
13018         (canonicalize_file_name): Drop unused macro.
13019         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13020
13021         filenamecat-lgpl: fix licence
13022         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13023         when it was first created.
13024
13025         linkat, renameat: add missing dependency
13026         * modules/linkat (Depends-on): Require getcwd-lgpl.
13027         * modules/renameat (Depends-on): Likewise.
13028
13029         tests: reduce dependencies
13030         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13031         * tests/test-renameat.c (main): Likewise.
13032         * modules/linkat-tests (Depends-on): Relax dependency.
13033         * modules/renameat-tests (Depends-on): Likewise.
13034         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13035         dependency explicit.
13036
13037         save-cwd: reduce default dependency
13038         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13039         * lib/save-cwd.c: Update comments.
13040         * NEWS: Document the semantic change.
13041
13042         getcwd: enhance tests
13043         * tests/test-getcwd-lgpl.c: New file, taken from...
13044         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13045         repeat long path stress tests from m4 probe.
13046         * modules/getcwd-lgpl-tests: New module.
13047         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13048         * m4/getcwd-abort-bug.m4: Update comment.
13049         * m4/getcwd-path-max.m4: Likewise.
13050
13051         getcwd-lgpl: new module
13052         * modules/getcwd-lgpl: New module.
13053         * lib/getcwd-lgpl.c: New file.
13054         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13055         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13056         * modules/getcwd (configure.ac): Set C witness.
13057         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13058
13059         getcwd: tweak comments
13060         * m4/getcwd-abort-bug.m4: Fix comments.
13061         * m4/getcwd-path-max.m4: Likewise.
13062         * m4/getcwd.m4: Likewise.
13063
13064 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13065         and Eric Blake  <eblake@redhat.com>
13066
13067         mkstemp: replace if system version uses wrong permissions
13068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13069         read/write mode bits set in file created by mkstemp.
13070         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13071
13072 2011-04-27  Eric Blake  <eblake@redhat.com>
13073
13074         passfd: avoid compiler warning
13075         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13076         Reported by Laine Stump.
13077
13078 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13079
13080         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13081         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13082
13083 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13084         and Eric Blake  <eblake@redhat.com>
13085
13086         mkstemp: mention clean-temp module
13087         * lib/mkstemp.c: Add comment.
13088         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13089
13090 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13091
13092         inttypes: also provide default values for 32-bit tests
13093         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13094         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13095
13096 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13097
13098         strtoumax: remove dependency on strtoimax
13099         This is like the strtoull change of yesterday.
13100         * modules/strtoumax (Files): Add lib/strtoimax.c.
13101         (Depends-on): Remove strtoimax and add verify.
13102
13103         inttypes-incomplete: new module
13104         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13105         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13106         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13107         of gl_INTTYPES_H.
13108         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13109         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13110         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13111         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13112         * modules/strtoumax, modules/xstrtol (Depends-on):
13113         Depend on inttypes-incomplete, not inttypes.
13114         * modules/inttypes-incomplete: New module, containing the contents
13115         of the old modules/inttypes module, except that the Files: section
13116         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13117         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13118         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13119         (Depends-on): Depend only on inttypes-incomplete.
13120         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13121
13122         inttypes: omit now-redundant strtoimax and strtoumax work
13123         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13124         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13125
13126         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13127         This supports apps that need pointers to strtoimax and strtoumax,
13128         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13129         nonexistent functions.  See
13130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13131         et seq.
13132         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13133         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13134         a macro.
13135         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13136
13137 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13138
13139         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13140
13141 2011-04-25  Bruno Haible  <bruno@clisp.org>
13142
13143         strtol, strtoul: Mark modules as obsolete.
13144         * modules/strtol (Status, Notice): New sections.
13145         * modules/strtoul (Status, Notice): New sections.
13146
13147 2011-04-25  Bruno Haible  <bruno@clisp.org>
13148
13149         strtod: Remove check for strtod, unless supporting old platforms.
13150         * modules/strtod-obsolete: New file.
13151         * m4/strtod-obsolete.m4: New file.
13152         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13153         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13154         * modules/strtod (Depends-on): Add strtod-obsolete.
13155         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13156
13157 2011-04-25  Bruno Haible  <bruno@clisp.org>
13158
13159         strcase: Make module obsolete.
13160         * modules/strcase (Status, Notice): New sections.
13161
13162 2011-04-25  Bruno Haible  <bruno@clisp.org>
13163
13164         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13165         * modules/dup2-obsolete: New file.
13166         * m4/dup2-obsolete.m4: New file.
13167         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13168         gl_FUNC_DUP2_OBSOLETE is not also defined.
13169         * modules/dup2 (Depends-on): Add dup2-obsolete.
13170         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13171
13172 2011-04-25  Bruno Haible  <bruno@clisp.org>
13173
13174         strnlen: Avoid memchr related link error on old obsolete platforms.
13175         * modules/memchr-obsolete: New file.
13176         * m4/memchr-obsolete.m4: New file.
13177         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13178         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13179         * modules/memchr (Depends-on): Add memchr-obsolete.
13180         * modules/strnlen (Depends-on): Likewise.
13181         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13182
13183 2011-04-25  Jim Meyering  <meyering@redhat.com>
13184
13185         maint.mk: makefile_at_at_check extend and clean up
13186         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13187         in addition to */Makefile.am.
13188         Exempt legitimate uses of @VAR@ notation, e.g.,
13189         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13190         Remove obsolete coreutils-specific comment.
13191         Prompted by discussion here:
13192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13193
13194 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         strtoul: remove dependency on strtol
13197         This is so that 'configure' need not check for strtol merely because
13198         the application needs strtoul.
13199         * modules/strtoul (Files): Add lib/strtol.c.
13200         (Depends-on): Remove strtol.
13201
13202         strtoull: remove dependency on strtoul
13203         This is like the strtoll change.
13204         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13205         (Depends-on): Remove strtoul.
13206
13207         strtoll: remove dependency on strtol
13208         This is so that 'configure' need not check for strtol merely because
13209         the application needs strtoll.
13210         * modules/strtoll (Files): Add lib/strtol.c.
13211         (Depends-on): Remove strtol.
13212
13213 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13214
13215         inttypes: Move some configure check to module 'imaxdiv'.
13216         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13217         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13218         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13219
13220 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         inttypes: Move some configure check to module 'imaxabs'.
13223         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13224         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13225         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13226
13227 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13228
13229         inttypes: Remove configure tests that are not needed since 2009-12-31.
13230         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13231         gl_cv_header_working_inttypes_h.
13232
13233 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13234
13235         * modules/strnlen (Depends-on): Remove memchr.
13236         The strnlen implementation doesn't need the memchr module's fixes; see
13237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13238
13239         strtol: remove dependency on wchar
13240         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13241         * modules/strtol (Depends-on): Remove wchar.
13242
13243 2011-04-21  Eric Blake  <eblake@redhat.com>
13244
13245         passfd: fix test regression on Linux
13246         * modules/passfd-tests (configure.ac): Correct socketpair check.
13247
13248         passfd: speed up configure and drop unused code
13249         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13250         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13251         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13252         Instead of probing at configure for unix_scm_rights_bsd44_way,
13253         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13254         check to a struct member probe.
13255         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13256         (sendfd, recvfd): Update preprocessor checks.
13257         * modules/passfd (Files): Reflect rename, and drop unused file.
13258         (Depends-on): Drop unused dependency.
13259
13260         passfd: allow compilation on mingw
13261         * modules/sys_socket (Depends-on): Add sys_uio.
13262         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13263         iovec and a minimal struct msghdr.
13264         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13265         * tests/test-sys_socket.c (main): Enhance test.
13266         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13267         guaranteed to provide what we need.
13268         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13269         * modules/passfd-tests (Depends-on): Add sys_wait.
13270         * tests/test-passfd.c (main): Skip test on mingw, for now.
13271         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13272         partial 'struct msghdr' implementation.
13273
13274         sys_uio: new module
13275         * modules/sys_uio: New module.
13276         * modules/sys_uio-tests: Likewise.
13277         * lib/sys_uio.in.h: New file.
13278         * m4/sys_uio_h.m4: Likewise.
13279         * tests/test-sys_uio.c: Likewise.
13280         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13281         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13282
13283 2011-04-20  Jim Meyering  <meyering@redhat.com>
13284
13285         useless-if-before-free: avoid false-positive
13286         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13287         disjunct so that it too requires a terminating ";".  Without that,
13288         this script would identify as useless one statement from gcc that
13289         was not:
13290           if (aligned_ptr)
13291             free (((void **) aligned_ptr) [-1]);
13292
13293 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13294
13295         doc: update users.txt.
13296         * users.txt: Add barcode.
13297
13298 2011-04-19  Bruno Haible  <bruno@clisp.org>
13299
13300         ioctl: Remove link dependency on native Windows.
13301         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13302         (gl_close_fn, gl_ioctl_fn): New types.
13303         (struct fd_hook): Renamed from struct close_hook. Change type of
13304         private_close_fn field. Add private_ioctl_fn field.
13305         (close_hook_fn): Add parameter for primary close method.
13306         (execute_close_hooks, execute_all_close_hooks): Likewise.
13307         (ioctl_hook_fn): New type.
13308         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13309         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13310         argument.
13311         (unregister_fd_hook): Renamed from unregister_close_hook.
13312         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13313         Don't include <unistd.h>.
13314         (close): Remove undef.
13315         (anchor): Update.
13316         (execute_close_hooks): Add argument for primary close method.
13317         (execute_all_close_hooks): Likewise.
13318         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13319         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13320         argument. Allow each argument to be NULL.
13321         (unregister_fd_hook): Renamed from unregister_close_hook.
13322         * lib/close.c (rpl_close): Pass 'close' function pointer to
13323         execute_all_close_hooks.
13324         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13325         (primary_ioctl): New function.
13326         (ioctl): Don't call ioctlsocket here. Instead, call
13327         execute_all_ioctl_hooks.
13328         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13329         close method.
13330         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13331         (fd_sockets_hook): Renamed from close_sockets_hook.
13332         (gl_sockets_startup, gl_sockets_cleanup): Update.
13333         * modules/fd-hook: Renamed from modules/close-hook. Update.
13334         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13335         * modules/sockets (Depends-on): Likewise.
13336         * modules/ioctl (Depends-on): Add fd-hook.
13337         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13338         GNULIB_SOCKET.
13339
13340 2011-04-19  Bruno Haible  <bruno@clisp.org>
13341
13342         Move the support of O_NONBLOCK in open() to the 'open' module.
13343         * modules/nonblocking (Depends-on): Remove 'open'.
13344         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13345         gl_cv_have_open_O_NONBLOCK.
13346         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13347         O_NONBLOCK support.
13348         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13349
13350 2011-04-17  Bruno Haible  <bruno@clisp.org>
13351
13352         pipe2: Simplify code.
13353         * lib/pipe2.c (pipe2): Reduce code duplication.
13354
13355 2011-04-17  Bruno Haible  <bruno@clisp.org>
13356
13357         nonblocking: Add comment.
13358         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13359
13360 2011-04-17  Bruno Haible  <bruno@clisp.org>
13361
13362         nonblocking: Add tests for sockets.
13363         * tests/test-nonblocking-socket.sh: New file.
13364         * tests/test-nonblocking-socket-main.c: New file.
13365         * tests/test-nonblocking-socket-child.c: New file.
13366         * tests/test-nonblocking-socket.h: New file.
13367         * tests/socket-server.h: New file.
13368         * tests/socket-client.h: New file.
13369         * modules/nonblocking-socket-tests: New file.
13370         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13371
13372 2011-04-17  Bruno Haible  <bruno@clisp.org>
13373
13374         nonblocking: Add tests for pipes.
13375         * tests/test-nonblocking-pipe.sh: New file.
13376         * tests/test-nonblocking-pipe-main.c: New file.
13377         * tests/test-nonblocking-pipe-child.c: New file.
13378         * tests/test-nonblocking-pipe.h: New file.
13379         * tests/test-nonblocking-writer.h: New file.
13380         * tests/test-nonblocking-reader.h: New file.
13381         * tests/test-nonblocking-misc.h: New file.
13382         * modules/nonblocking-pipe-tests: New file.
13383         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13384
13385 2011-04-16  Bruno Haible  <bruno@clisp.org>
13386
13387         gettext: Clarify the needed programmer actions.
13388         * modules/gettext (Notice): New field.
13389         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13390
13391 2011-04-16  Bruno Haible  <bruno@clisp.org>
13392
13393         strchrnul: Tweak last commit.
13394         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13395         bug.
13396         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13397         as in _GL_FUNCDECL_SYS.
13398         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13399         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13400
13401 2011-04-15  Eric Blake  <eblake@redhat.com>
13402
13403         strchrnul: work around cygwin bug
13404         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13405         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13407         * modules/string (Makefile.am): Substitute it.
13408         * lib/string.in.h (strchrnul): Use it.
13409
13410 2011-04-15  Bruno Haible  <bruno@clisp.org>
13411
13412         Don't require lib/stdio-write.c when only module 'stdio' is used.
13413         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13414         invocation.
13415         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13416
13417 2011-04-14  Bruno Haible  <bruno@clisp.org>
13418
13419         Support non-blocking pipe I/O in read() on native Windows.
13420         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13421         (read): New declaration.
13422         * lib/read.c: New file.
13423         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13424         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13425         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13426         vscanf): New declarations.
13427         * lib/stdio-read.c: New file.
13428         * m4/read.m4: New file.
13429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13430         REPLACE_READ.
13431         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13432         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13433         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13434         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13435         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13436         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13437         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13438         * modules/read: New file.
13439         * modules/nonblocking (Files): Add lib/stdio-read.c.
13440         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13441         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13442         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13443         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13444         * modules/pread (Depends-on): Add read.
13445         * modules/safe-read (Depends-on): Likewise.
13446         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13447         gets, scanf, vfscanf, vscanf): Verify signatures.
13448         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13449         problem with non-blocking pipes.
13450         * doc/posix-functions/fgetc.texi: Likewise.
13451         * doc/posix-functions/fgets.texi: Likewise.
13452         * doc/posix-functions/fread.texi: Likewise.
13453         * doc/posix-functions/fscanf.texi: Likewise.
13454         * doc/posix-functions/getc.texi: Likewise.
13455         * doc/posix-functions/getchar.texi: Likewise.
13456         * doc/posix-functions/gets.texi: Likewise.
13457         * doc/posix-functions/scanf.texi: Likewise.
13458         * doc/posix-functions/vfscanf.texi: Likewise.
13459         * doc/posix-functions/vscanf.texi: Likewise.
13460
13461 2011-04-14  Bruno Haible  <bruno@clisp.org>
13462
13463         Support non-blocking pipe I/O in write() on native Windows.
13464         * lib/write.c (rpl_write): Split a write request that failed merely
13465         because the byte count was larger than the pipe buffer's size.
13466         * doc/posix-functions/write.texi: Mention the problem with large byte
13467         counts.
13468
13469 2011-04-14  Bruno Haible  <bruno@clisp.org>
13470
13471         wchar: Ensure that wchar_t gets defined on uClibc.
13472         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13473         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13474
13475 2011-04-13  Bruno Haible  <bruno@clisp.org>
13476
13477         safe-write, full-read: Avoid unnecessary compilation units.
13478         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13479         (Depends-on): Remove safe-read. Add ssize_t.
13480         * modules/full-read (Files): Add lib/full-write.c.
13481         (Depends-on): Add full-write.
13482
13483 2011-04-13  Bruno Haible  <bruno@clisp.org>
13484
13485         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13486         * modules/pwrite (Depends-on): Add 'write'.
13487
13488 2011-04-13  Bruno Haible  <bruno@clisp.org>
13489
13490         Support non-blocking pipe I/O in write() on native Windows.
13491         * lib/unistd.in.h (write): Enable replacement also if
13492         GNULIB_UNISTD_H_NONBLOCKING is 1.
13493         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13494         (rpl_write): When failing to write on a non-blocking pipe, change
13495         errno from ENOSPC to EAGAIN.
13496         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13497         putchar, puts, vfprintf, vprintf): Enable replacement also if
13498         GNULIB_STDIO_H_NONBLOCKING is 1.
13499         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13500         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13501         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13502         CALL_WITH_SIGPIPE_EMULATION.
13503         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13504         * m4/nonblocking.m4: New file.
13505         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13506         for non-blocking I/O support.
13507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13508         GNULIB_UNISTD_H_NONBLOCKING.
13509         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13510         required for non-blocking I/O support.
13511         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13512         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13513         lib/stdio-write.c, m4/asm-underscore.m4.
13514         (Depends-on): Add stdio, unistd.
13515         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13516         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13517         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13518         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13519         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13520         problem with non-blocking pipes.
13521         * doc/posix-functions/fputc.texi: Likewise.
13522         * doc/posix-functions/fputs.texi: Likewise.
13523         * doc/posix-functions/fwrite.texi: Likewise.
13524         * doc/posix-functions/printf.texi: Likewise.
13525         * doc/posix-functions/putc.texi: Likewise.
13526         * doc/posix-functions/putchar.texi: Likewise.
13527         * doc/posix-functions/puts.texi: Likewise.
13528         * doc/posix-functions/vfprintf.texi: Likewise.
13529         * doc/posix-functions/vprintf.texi: Likewise.
13530         * doc/posix-functions/write.texi: Likewise.
13531
13532 2011-04-10  Jim Meyering  <meyering@redhat.com>
13533
13534         maint.mk: prohibit doubled words
13535         Detect them also when they're separated by a newline.
13536         There are 3 ways to customize it:
13537           - disable the test on a per file basis, as usual with rules using
13538             $(VC_LIST_EXCEPT)
13539           - replace the default doubled-word-selecting regexp (affects all files)
13540           - ignore a particular file-vs-doubled-word match
13541         I nearly used that last one to ignore the "is is" match in
13542         coreutils' NEWS file, since the text was "ls -is is ..."
13543         To do that, I would have added this line to cfg.mk:
13544           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13545         but it would have ignored any "is is" match in NEWS.
13546         Low probability, but still...
13547         Instead, I changed the text, slightly:
13548           -  ls -is is now consistent with ls -lis in ignoring values returned
13549           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13550         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13551         (prohibit_doubled_word_): Define.
13552         (sc_prohibit_doubled_word): New rule.
13553         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13554
13555 2011-04-10  Jim Meyering  <meyering@redhat.com>
13556
13557         maint: fix doubled-word typo in comment
13558         * m4/gethostname.m4: s/is is/it is/
13559         * m4/getdomainname.m4: Likewise.
13560
13561 2011-04-10  Jim Meyering  <meyering@redhat.com>
13562
13563         maint: remove doubled word: s/it it/it/
13564         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13565
13566 2011-04-10  Jim Meyering  <meyering@redhat.com>
13567
13568         maint.mk: remove useless semicolon and backslash
13569         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13570         semicolon and backslash.
13571
13572 2011-04-10  Bruno Haible  <bruno@clisp.org>
13573
13574         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13575         * modules/stdint-tests (Depends-on): Add wchar.
13576
13577 2011-04-10  Jim Meyering  <meyering@redhat.com>
13578
13579         maint: remove doubled words in comments, e.g., s/a a/a/
13580         * lib/strptime.c (day_of_the_week): s/the the/the/
13581         * tests/test-chown.h (test_chown): s/a a/a/
13582
13583         test-chown.h: correct a cast
13584         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13585         when the destination is a stat.st_gid.
13586
13587 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13588
13589         getaddrinfo: Fix test for sa_len member.
13590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13591         include <sys/types.h> before <sys/socket.h>.
13592
13593 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         maint: change "can not" to "cannot"
13596         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13597         boundaries.
13598
13599 2011-04-09  Jim Meyering  <meyering@redhat.com>
13600
13601         maint: change "a a" to "a"
13602         * tests/test-lchown.h (test_lchown): s/a a/a/
13603
13604         maint.mk: prohibit \<the the\>
13605         * top/maint.mk (sc_prohibit_the_the): New rule.
13606
13607         maint: fix "the the" in comment
13608         * lib/count-one-bits.h: s/the the/the/
13609
13610         maint: change "can not" to "cannot"
13611         But do not change the occurrences in maintain.texi or in
13612         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13613         * doc/gnulib-tool.texi: s/can not/cannot/
13614         * doc/posix-functions/accept.texi (accept): Likewise.
13615         * doc/posix-functions/socket.texi (socket): Likewise.
13616         * lib/mbrtowc.c: Likewise.
13617
13618         maint.mk: prohibit use of "can not"
13619         * top/maint.mk (sc_prohibit_can_not): New rule.
13620         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13621
13622 2011-04-09  Bruno Haible  <bruno@clisp.org>
13623
13624         careadlinkat: Guard against misuse of careadlinkatcwd.
13625         * lib/careadlinkat.c: Include <stdlib.h>.
13626         (careadlinkatcwd): Check that the fd argument is as expected.
13627
13628 2011-04-09  Bruno Haible  <bruno@clisp.org>
13629
13630         careadlinkat: Use common coding style.
13631         * lib/careadlinkat.c: Move gnulib includes after system includes.
13632
13633 2011-04-09  Bruno Haible  <bruno@clisp.org>
13634
13635         careadlinkat: Clarify specification.
13636         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13637         (careadlinkatcwd): Add comment.
13638         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13639
13640 2011-04-09  Bruno Haible  <bruno@clisp.org>
13641
13642         areadlinkat: Avoid link error on many platforms.
13643         * modules/areadlinkat (Depends-on): Add areadlink.
13644
13645 2011-04-09  Bruno Haible  <bruno@clisp.org>
13646
13647         allocator, careadlinkat: Fix double-inclusion guard.
13648         * lib/allocator.h: Fix double-inclusion guard.
13649         * lib/careadlinkat.h: Likewise.
13650
13651 2011-04-09  Bruno Haible  <bruno@clisp.org>
13652
13653         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13654         * lib/relocwrapper.c: Update dependencies hierarchy.
13655         * build-aux/install-reloc: Update list of files to be compiled.
13656         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13657         lib/allocator.[hc].
13658
13659 2011-04-08  Eric Blake  <eblake@redhat.com>
13660
13661         strftime: silence gnulib-tool warning
13662         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13663
13664 2011-04-08  Bruno Haible  <bruno@clisp.org>
13665
13666         verify: Fix syntax error with GCC 4.6 in C++ mode.
13667         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13668         (HAVE_STATIC_ASSERT): New macro.
13669         (verify_true, verify): Use 'static_assert' if it is supported and
13670         '_Static_assert' is not supported.
13671
13672 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         allocator: New module.
13675         * modules/allocator, lib/allocator.c: New files.
13676         * lib/allocator.h (stdlib_allocator): New decl.
13677         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13678         Remove.  Do not include <stdlib.h>.
13679         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13680         * modules/careadlinkat (Files): Remove lib/allocator.h.
13681         (Depends-on): Add allocator.
13682
13683         stdlib: let modules use system malloc, realloc
13684         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13685         if !_GL_USE_STDLIB_ALLOC.
13686         (malloc, realloc): Limit this change to a smaller scope.
13687
13688         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13689         (malloc, realloc): Don't #undef; no longer needed.
13690         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13691         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13692         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13693         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13694         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13695         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13696         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13697         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13698
13699         careadlinkat: rename members to avoid problem
13700         * lib/allocator.h (struct allocator): Rename members from
13701         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13702         and realloc are #define'd.  Reported by Eric Blake in
13703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13704         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13705
13706 2011-04-08  Eric Blake  <eblake@redhat.com>
13707
13708         nonblocking: reduce dependency
13709         * tests/test-nonblocking.c: Only test sockets when in use.
13710         * modules/nonblocking-tests (Depends-on): Drop socket.
13711         (Makefile.am): Link even if sockets are not present.
13712         * modules/pipe2-tests (Makefile.am): Likewise.
13713         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13714
13715         pipe2: fix O_NONBLOCK support on mingw
13716         * modules/pipe2 (Depends-on): Add nonblocking.
13717         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13718         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13719         * tests/test-nonblocking.c (main): Likewise.
13720         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13721
13722         fcntl-h: fix O_ACCMODE on cygwin
13723         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13724         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13725
13726         pipe-filter: drop O_NONBLOCK workarounds
13727         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13728         * modules/pipe-filter-ii (Depends-on): Likewise.
13729         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13730
13731         nonblocking: provide O_NONBLOCK for mingw
13732         * modules/nonblocking (Depends-on): Add open.
13733         (configure.ac): Set new witness macro.
13734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13735         * modules/fcntl-h (Makefile.am): Substitute it.
13736         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13737         nonblocking module is in use.
13738         * lib/nonblocking.c: Adjust portability test.
13739         * lib/open.c (open): Don't let native open see gnulib flag.
13740         * tests/test-fcntl-h.c (main): Enhance test.
13741         * tests/test-open.h (test_open): Likewise.
13742         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13743
13744         careadlinkat: fix compilation error on mingw
13745         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13746         within struct allocator.
13747
13748 2011-04-06  Eric Blake  <eblake@redhat.com>
13749
13750         binary-io: relicense under LGPLv2+
13751         * modules/binary-io (License): Relax to LGPLv2+.
13752         Requested for libvirt, and required by pipe2.
13753
13754 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13755
13756         verify: use _Static_assert if available
13757         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13758         (verify_true, verify): Use it if available.  This generates better
13759         diagnostics with GCC 4.6.0 and later.
13760
13761 2011-04-05  Bruno Haible  <bruno@clisp.org>
13762
13763         Remove leftover generated .h files after config.status changed.
13764
13765         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13766         GL_GENERATE_ALLOCA_H.
13767         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13768         GL_GENERATE_ALLOCA_H evaluates to false.
13769
13770         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13771         GL_GENERATE_ARGZ_H.
13772         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13773         evaluates to false.
13774
13775         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13776         GL_GENERATE_BYTESWAP_H.
13777         * modules/byteswap (Makefile.am): Remove byteswap.h if
13778         GL_GENERATE_BYTESWAP_H evaluates to false.
13779
13780         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13781         GL_GENERATE_ERRNO_H.
13782         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13783         evaluates to false.
13784
13785         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13786         GL_GENERATE_FLOAT_H.
13787         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13788         evaluates to false.
13789
13790         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13791         GL_GENERATE_FNMATCH_H.
13792         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13793         GL_GENERATE_FNMATCH_H evaluates to false.
13794
13795         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13796         GL_GENERATE_GLOB_H.
13797         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13798         evaluates to false.
13799
13800         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13801         automake conditional GL_GENERATE_ICONV_H.
13802         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13803         evaluates to false.
13804
13805         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13806         GL_GENERATE_NETINET_IN_H.
13807         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13808         GL_GENERATE_NETINET_IN_H evaluates to false.
13809
13810         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13811         conditional GL_GENERATE_PTHREAD_H.
13812         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13813         * modules/pthread (Makefile.am): Remove pthread.h if
13814         GL_GENERATE_PTHREAD_H evaluates to false.
13815
13816         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13817         GL_GENERATE_SCHED_H.
13818         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13819         evaluates to false.
13820
13821         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13822         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13823         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13824         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13825
13826         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13827         GL_GENERATE_STDARG_H.
13828         * modules/stdarg (Makefile.am): Remove stdarg.h if
13829         GL_GENERATE_STDARG_H evaluates to false.
13830
13831         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13832         GL_GENERATE_STDBOOL_H.
13833         * modules/stdbool (Makefile.am): Remove stdbool.h if
13834         GL_GENERATE_STDBOOL_H evaluates to false.
13835
13836         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13837         conditional GL_GENERATE_STDDEF_H.
13838         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13839         * modules/stddef (Makefile.am): Remove stddef.h if
13840         GL_GENERATE_STDDEF_H evaluates to false.
13841
13842         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13843         GL_GENERATE_STDINT_H.
13844         * modules/stdint (Makefile.am): Remove stdint.h if
13845         GL_GENERATE_STDINT_H evaluates to false.
13846
13847         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13848         GL_GENERATE_SYSEXITS_H.
13849         * modules/sysexits (Makefile.am): Remove sysexits.h if
13850         GL_GENERATE_SYSEXITS_H evaluates to false.
13851
13852         Reported by Karl Berry and Ralf Wildenhues.
13853
13854 2011-04-05  Bruno Haible  <bruno@clisp.org>
13855
13856         Ensure to rebuild generated .h files when config.status has changed.
13857         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13858         config.status.
13859         * modules/ctype (Makefile.am): Likewise.
13860         * modules/dirent (Makefile.am): Likewise.
13861         * modules/errno (Makefile.am): Likewise.
13862         * modules/fcntl-h (Makefile.am): Likewise.
13863         * modules/float (Makefile.am): Likewise.
13864         * modules/getopt-posix (Makefile.am): Likewise.
13865         * modules/glob (Makefile.am): Likewise.
13866         * modules/iconv-h (Makefile.am): Likewise.
13867         * modules/inttypes (Makefile.am): Likewise.
13868         * modules/langinfo (Makefile.am): Likewise.
13869         * modules/locale (Makefile.am): Likewise.
13870         * modules/math (Makefile.am): Likewise.
13871         * modules/netdb (Makefile.am): Likewise.
13872         * modules/netinet_in (Makefile.am): Likewise.
13873         * modules/poll-h (Makefile.am): Likewise.
13874         * modules/pthread (Makefile.am): Likewise.
13875         * modules/pty (Makefile.am): Likewise.
13876         * modules/sched (Makefile.am): Likewise.
13877         * modules/search (Makefile.am): Likewise.
13878         * modules/selinux-h (Makefile.am): Likewise.
13879         * modules/signal (Makefile.am): Likewise.
13880         * modules/spawn (Makefile.am): Likewise.
13881         * modules/stdarg (Makefile.am): Likewise.
13882         * modules/stdbool (Makefile.am): Likewise.
13883         * modules/stddef (Makefile.am): Likewise.
13884         * modules/stdint (Makefile.am): Likewise.
13885         * modules/stdio (Makefile.am): Likewise.
13886         * modules/stdlib (Makefile.am): Likewise.
13887         * modules/string (Makefile.am): Likewise.
13888         * modules/strings (Makefile.am): Likewise.
13889         * modules/sys_file (Makefile.am): Likewise.
13890         * modules/sys_ioctl (Makefile.am): Likewise.
13891         * modules/sys_select (Makefile.am): Likewise.
13892         * modules/sys_socket (Makefile.am): Likewise.
13893         * modules/sys_stat (Makefile.am): Likewise.
13894         * modules/sys_time (Makefile.am): Likewise.
13895         * modules/sys_times (Makefile.am): Likewise.
13896         * modules/sys_utsname (Makefile.am): Likewise.
13897         * modules/sys_wait (Makefile.am): Likewise.
13898         * modules/sysexits (Makefile.am): Likewise.
13899         * modules/termios (Makefile.am): Likewise.
13900         * modules/time (Makefile.am): Likewise.
13901         * modules/unistd (Makefile.am): Likewise.
13902         * modules/wchar (Makefile.am): Likewise.
13903         * modules/wctype-h (Makefile.am): Likewise.
13904         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13905
13906 2011-04-05  Bruno Haible  <bruno@clisp.org>
13907
13908         pipe2: Relicense under LGPLv2+.
13909         * modules/pipe2 (License): Change to LGPLv2+.
13910         Requested by Eric Blake, for libvirt.
13911
13912 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13913
13914         bootstrap: compute gnulib_extra_files after updating build_aux
13915         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13916         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13917
13918 2011-04-05  Eric Blake  <eblake@redhat.com>
13919
13920         bootstrap: preserve git whitelist item sorting
13921         * build-aux/bootstrap (sort_patterns): New function.
13922         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13923
13924 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13925
13926         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13927         sc_space_tab check.
13928
13929 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13930
13931         areadlink, areadlinkat: rewrite in terms of careadlinkat
13932         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13933         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13934         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13935         (malloc, realloc): Remove #undefs.
13936         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13937         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13938         readlink, ssize_t, stdint, unistd.
13939         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13940         areadlink, stdint.
13941
13942         careadlinkat: new module
13943         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13944         * modules/careadlinkat: New files, written by me with
13945         a review and feedback from Ben Pfaff in
13946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13947
13948 2011-04-01  Bruno Haible  <bruno@clisp.org>
13949
13950         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13951         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13952         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13953         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13954         Reported by Bruce Korb <bruce.korb@gmail.com>.
13955
13956 2011-04-01  Bruno Haible  <bruno@clisp.org>
13957
13958         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13959         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13960         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13961         * modules/wcpcpy (Depends-on): Add extensions.
13962         * modules/wcpncpy (Depends-on): Likewise.
13963         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13964         systems.
13965         * doc/posix-functions/wcpncpy.texi: Likewise.
13966         * doc/posix-functions/wcwidth.texi: Likewise.
13967
13968 2011-03-31  Eric Blake  <eblake@redhat.com>
13969
13970         nonblocking: fix mingw test failures
13971         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13972         non-blocking flag on regular file.
13973         (get_nonblocking_flag): Set errno on invalid fd.
13974         * tests/test-nonblocking.c (main): Avoid test failure on
13975         directories if fchdir is not active.
13976         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13977
13978 2011-03-31  Bruno Haible  <bruno@clisp.org>
13979
13980         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13981         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13982         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13983         Reported by Simon Josefsson <simon@josefsson.org>.
13984
13985 2011-03-31  Bruno Haible  <bruno@clisp.org>
13986         and Eric Blake  <eblake@redhat.com>
13987
13988         nonblocking: new module
13989         * modules/nonblocking: New module.
13990         * modules/nonblocking-tests: Likewise.
13991         * lib/nonblocking.h: New file.
13992         * lib/nonblocking.c: Likewise.
13993         * tests/test-nonblocking.c: New test.
13994         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13995
13996 2011-03-30  Bruno Haible  <bruno@clisp.org>
13997
13998         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13999         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14000         instead of 'printf' format for GCC >= 4.4.
14001         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14002         (fprintf, printf, vfprintf, vprintf): Declare with
14003         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14004         the system's vfprintf() function.
14005         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14006
14007 2011-03-30  Eric Blake  <eblake@redhat.com>
14008
14009         passfd: fix scoping bug
14010         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14011         before sendmsg/recvmsg.
14012
14013         passfd: standardize coding conventions
14014         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14015         can be learned at compile time.
14016         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14017         ifdefs.
14018         (sendfd, recvfd): Follow gnulib code conventions.
14019
14020         passfd: fix incorrect sendmsg arguments
14021         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14022         incorrect msg_controllen value.
14023         * modules/passfd-tests (Depends-on): Check for alarm.
14024         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14025         Reported by Bastien ROUCARIES.
14026
14027 2011-03-30  Bruno Haible  <bruno@clisp.org>
14028
14029         c-strcasestr: Relicense under LGPLv2+.
14030         * modules/c-strcasestr (License): Change to LGPLv2+.
14031         Requested by Eric Blake, for libvirt.
14032
14033 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14034
14035         * users.txt: Add libidn2.  Fix libtasn1 link.
14036
14037 2011-03-30  Jim Meyering  <meyering@redhat.com>
14038
14039         tests: readlink* ("",... fails with EINVAL on newer kernels
14040         readlink and readlinkat have typically failed with ENOENT for
14041         the invalid, empty file name,  "".  However, with the advent
14042         of linux-2.6.39, they fail with EINVAL.
14043         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14044         when operating on the empty file name.
14045         * tests/test-readlink.h (test_readlink): Likewise.
14046
14047 2011-03-29  Bruno Haible  <bruno@clisp.org>
14048
14049         Relicense some modules under LGPLv2+, for libidn2.
14050         * modules/array-mergesort (License): Change to LGPLv2+.
14051         * modules/c-strcaseeq (License): Likewise.
14052         * modules/striconveh (License): Likewise.
14053         * modules/striconveha (License): Likewise.
14054         * modules/uniconv/base (License): Likewise.
14055         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14056         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14057         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14058         * modules/unictype/base (License): Likewise.
14059         * modules/unictype/bidiclass-of (License): Likewise.
14060         * modules/unictype/category-M (License): Likewise.
14061         * modules/unictype/category-none (License): Likewise.
14062         * modules/unictype/category-of (License): Likewise.
14063         * modules/unictype/category-test (License): Likewise.
14064         * modules/unictype/category-test-withtable (License): Likewise.
14065         * modules/unictype/combining-class (License): Likewise.
14066         * modules/unictype/joiningtype-of (License): Likewise.
14067         * modules/unictype/scripts (License): Likewise.
14068         * modules/uninorm/base (License): Likewise.
14069         * modules/uninorm/canonical-decomposition (License): Likewise.
14070         * modules/uninorm/composition (License): Likewise.
14071         * modules/uninorm/decompose-internal (License): Likewise.
14072         * modules/uninorm/decomposition-table (License): Likewise.
14073         * modules/uninorm/nfc (License): Likewise.
14074         * modules/uninorm/nfd (License): Likewise.
14075         * modules/uninorm/u32-normalize (License): Likewise.
14076         * modules/unistr/base (License): Likewise.
14077         * modules/unistr/u32-cpy (License): Likewise.
14078         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14079         * modules/unistr/u32-to-u8 (License): Likewise.
14080         * modules/unistr/u32-uctomb (License): Likewise.
14081         * modules/unistr/u8-check (License): Likewise.
14082         * modules/unistr/u8-mblen (License): Likewise.
14083         * modules/unistr/u8-mbtouc (License): Likewise.
14084         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14085         * modules/unistr/u8-mbtoucr (License): Likewise.
14086         * modules/unistr/u8-prev (License): Likewise.
14087         * modules/unistr/u8-strlen (License): Likewise.
14088         * modules/unistr/u8-to-u32 (License): Likewise.
14089         * modules/unistr/u8-uctomb (License): Likewise.
14090         * modules/unitypes (License): Likewise.
14091         Requested by Simon Josefsson.
14092
14093 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14094
14095         lib-symbol-visibility: Add a notice.
14096         * modules/lib-symbol-visibility (Notice): New field.
14097
14098 2011-03-29  Bruno Haible  <bruno@clisp.org>
14099
14100         getaddrinfo: Doc fix.
14101         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14102         section "fixed in Gnulib".
14103
14104 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14105
14106         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14107         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14108
14109 2011-03-26  Bruno Haible  <bruno@clisp.org>
14110
14111         unictype/property-byname: Reduce the number of load-time relocations.
14112         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14113         (UC_PROPERTY_INDEX_*): New enumeration values.
14114         (uc_property_byname): Convert an index from the lookup table to an
14115         uc_property_t.
14116         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14117         values.
14118
14119 2011-03-26  Bruno Haible  <bruno@clisp.org>
14120
14121         unictype/property-byname: Allow omitted word separators and aliases.
14122         * lib/unictype/pr_byname.gperf: Add property names without word
14123         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14124         for 'space'.
14125
14126 2011-03-26  Bruno Haible  <bruno@clisp.org>
14127
14128         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14129         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14130         also hyphens to space.
14131         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14132         without spaces.
14133         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14134
14135 2011-03-26  Bruno Haible  <bruno@clisp.org>
14136
14137         unictype/joiningtype-byname: Recognize long names as well.
14138         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14139         a long name.
14140         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14141         unictype/joiningtype_byname.h.
14142         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14143         * lib/unictype/joiningtype_byname.gperf: New file.
14144         * modules/unictype/joiningtype-byname (Files): Add
14145         lib/unictype/joiningtype_byname.gperf.
14146         (Depends-on): Add gperf.
14147         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14148         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14149         long names.
14150
14151         Tests for module 'unictype/joiningtype-longname'.
14152         * modules/unictype/joiningtype-longname-tests: New file.
14153         * tests/unictype/test-joiningtype_longname.c: New file.
14154
14155         New module 'unictype/joiningtype-longname'.
14156         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14157         * lib/unictype/joiningtype_longname.c: New file.
14158         * modules/unictype/joiningtype-longname: New file.
14159         * modules/unictype/joiningtype-all (Depends-on): Add
14160         unictype/joiningtype-longname.
14161
14162 2011-03-26  Bruno Haible  <bruno@clisp.org>
14163
14164         unictype/bidiclass-byname: Recognize long names as well.
14165         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14166         name.
14167         * lib/unictype/bidi_byname.c: Include <string.h>,
14168         unictype/bidi_byname.h.
14169         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14170         * lib/unictype/bidi_byname.gperf: New file.
14171         * modules/unictype/bidiclass-byname (Files): Add
14172         lib/unictype/bidi_byname.gperf.
14173         (Depends-on): Add gperf.
14174         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14175         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14176         long names.
14177
14178         Tests for module 'unictype/bidiclass-longname'.
14179         * modules/unictype/bidiclass-longname-tests: New file.
14180         * tests/unictype/test-bidi_longname.c: New file.
14181
14182         New module 'unictype/bidiclass-longname'.
14183         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14184         * lib/unictype/bidi_longname.c: New file.
14185         * modules/unictype/bidiclass-longname: New file.
14186         * modules/unictype/bidiclass-all (Depends-on): Add
14187         unictype/bidiclass-longname.
14188
14189 2011-03-26  Bruno Haible  <bruno@clisp.org>
14190
14191         unictype/bidi*: Rename modules.
14192         * modules/unictype/bidiclass-all: Renamed from
14193         modules/unictype/bidicategory-all.
14194         * modules/unictype/bidiclass-name: Renamed from
14195         modules/unictype/bidiclass-name.
14196         (Description): Update.
14197         * modules/unictype/bidiclass-name-tests: Renamed from
14198         modules/unictype/bidicategory-name-tests.
14199         * modules/unictype/bidiclass-byname: Renamed from
14200         modules/unictype/bidicategory-byname.
14201         (Description): Update.
14202         * modules/unictype/bidiclass-byname-tests: Renamed from
14203         modules/unictype/bidicategory-byname-tests.
14204         * modules/unictype/bidiclass-of: Renamed from
14205         modules/unictype/bidicategory-of.
14206         (Description): Update.
14207         * modules/unictype/bidiclass-of-tests: Renamed from
14208         modules/unictype/bidicategory-of-tests.
14209         * modules/unictype/bidiclass-test: Renamed from
14210         modules/unictype/bidicategory-test.
14211         (Description): Update.
14212         * modules/unictype/bidiclass-test-tests: Renamed from
14213         modules/unictype/bidicategory-test-tests.
14214         * modules/unictype/bidicategory-all: New file, a simple redirection.
14215         * modules/unictype/bidicategory-name: Likewise.
14216         * modules/unictype/bidicategory-byname: Likewise.
14217         * modules/unictype/bidicategory-of: Likewise.
14218         * modules/unictype/bidicategory-test: Likewise.
14219         * modules/unictype/property-bidi-* (Dependencies): Update.
14220         * lib/unictype/bidi_*.c: Update comment.
14221
14222 2011-03-26  Bruno Haible  <bruno@clisp.org>
14223
14224         unictype/bidi*: Rename functions, part 2.
14225         * modules/unictype/bidicategory-name (configure.ac): Update required
14226         libunistring version.
14227         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14228
14229 2011-03-25  Bruno Haible  <bruno@clisp.org>
14230
14231         New module 'unictype/combining-class-all'.
14232         * modules/unictype/combining-class-all: New file.
14233
14234         Tests for module 'unictype/combining-class-byname'.
14235         * modules/unictype/combining-class-byname-tests: New file.
14236         * tests/unictype/test-combiningclass_byname.c: New file.
14237
14238         New module 'unictype/combining-class-byname'.
14239         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14240         * lib/unictype/combiningclass_byname.c: New file.
14241         * lib/unictype/combiningclass_byname.gperf: New file.
14242         * modules/unictype/combining-class-byname: New file.
14243
14244         Tests for module 'unictype/combining-class-longname'.
14245         * modules/unictype/combining-class-longname-tests: New file.
14246         * tests/unictype/test-combiningclass_longname.c: New file.
14247
14248         New module 'unictype/combining-class-longname'.
14249         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14250         * lib/unictype/combiningclass_longname.c: New file.
14251         * modules/unictype/combining-class-longname: New file.
14252
14253         Tests for module 'unictype/combining-class-name'.
14254         * modules/unictype/combining-class-name-tests: New file.
14255         * tests/unictype/test-combiningclass_name.c: New file.
14256
14257         New module 'unictype/combining-class-name'.
14258         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14259         * lib/unictype/combiningclass_name.c: New file.
14260         * modules/unictype/combining-class-name: New file.
14261
14262 2011-03-25  Bruno Haible  <bruno@clisp.org>
14263
14264         unictype/combining-class: Rename source files.
14265         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14266         of unictype/combining.h.
14267         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14268         Update.
14269         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14270         * modules/unictype/combining-class (Description): Fix.
14271         (Files, Makefile.am): Update.
14272         * tests/unictype/test-combiningclass.c: Renamed from
14273         tests/unictype/test-combining.c.
14274         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14275
14276 2011-03-25  Bruno Haible  <bruno@clisp.org>
14277
14278         unictype: Update list of canonical combining classes.
14279         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14280
14281 2011-03-25  Bruno Haible  <bruno@clisp.org>
14282
14283         unictype/category-byname: Recognize long names as well.
14284         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14285         a long name.
14286         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14287         unictype/categ_byname.h.
14288         (UC_CATEGORY_INDEX_*): New enumeration values.
14289         (uc_general_category_byname): Use uc_general_category_lookup and
14290         convert from index to value.
14291         * lib/unictype/categ_byname.gperf: New file.
14292         * modules/unictype/category-byname (Files): Add
14293         lib/unictype/categ_byname.gperf.
14294         (Depends-on): Add gperf.
14295         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14296         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14297         long names.
14298
14299         Tests for module 'unictype/category-longname'.
14300         * modules/unictype/category-longname-tests: New file.
14301         * tests/unictype/test-categ_longname.c: New file.
14302
14303         New module 'unictype/category-longname'.
14304         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14305         * lib/unictype/categ_longname.c: New file.
14306         * modules/unictype/category-longname: New file.
14307         * modules/unictype/category-all (Depends-on): Add it.
14308
14309 2011-03-25  Bruno Haible  <bruno@clisp.org>
14310
14311         Tests for module 'unictype/category-LC'.
14312         * modules/unictype/category-LC-tests: New file.
14313         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14314
14315         New module 'unictype/category-LC'.
14316         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14317         (UC_CATEGORY_LC): New declaration.
14318         (UC_CASED_LETTER): New macro.
14319         * lib/gen-uni-tables.c (is_category_LC): New function.
14320         (output_categories): Also handle category LC.
14321         (UC_CATEGORY_MASK_LC): New enumeration value.
14322         (general_category_byname): Also handle category LC.
14323         * lib/unictype/categ_LC.c: New file.
14324         * lib/unictype/categ_LC.h: New file, automatically generated.
14325         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14326         category LC.
14327         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14328         * modules/unictype/category-LC: New file.
14329         * modules/unictype/category-byname (Depends-on): Add
14330         unictype/category-LC.
14331         * modules/unictype/category-all (Depends-on): Likewise.
14332
14333 2011-03-25  Eric Blake  <eblake@redhat.com>
14334
14335         xmalloc: revert yesterday's regression
14336         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14337         realloc's underlying behavior (allowing allocation of zero-size
14338         objects, especially if malloc-gnu is also in use).
14339
14340 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14341
14342         maint.mk: add missing version to VC-tag
14343         * top/maint.mk: git tag was missing actual tag name; add it.
14344
14345         valgrind: do leak checking, and exit with code 1 on error (not 0)
14346         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14347         to VALGRIND.
14348
14349 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14350
14351         posix-modules: say what it does.
14352         * posix-modules: Add a line to the --help output saying what it does.
14353
14354 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14355
14356         xmalloc: Do not leak if underlying realloc is C99 compatible.
14357         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14358         This avoids a leak on C99-based systems.  See
14359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14360
14361 2011-03-24  Eric Blake  <eblake@redhat.com>
14362
14363         realloc: document portability problem
14364         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14365         passing 0 size to realloc.
14366
14367 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14368
14369         doc: update users.txt
14370         * users.txt: Add cvsps, tmpwatch
14371
14372 2011-03-23  Matt Rice  <ratmice@gmail.com>
14373
14374         doc: update users.txt
14375         * users.txt: Add gdb.
14376
14377 2011-03-23  Jim Meyering  <meyering@redhat.com>
14378
14379         doc: update users.txt
14380         Looking through matches up to the following URL (there are still
14381         several more pages), I found several projects that use gnulib:
14382         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14383         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14384         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14385
14386 2011-03-22  Bruno Haible  <bruno@clisp.org>
14387
14388         unictype/bidi*: Rename functions.
14389         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14390         uc_bidi_class, uc_is_bidi_class): New declarations.
14391         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14392         uc_bidi_category_byname.
14393         (uc_bidi_category_byname): New function.
14394         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14395         u_bidi_category_name.
14396         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14397         (uc_bidi_category_name): New function.
14398         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14399         uc_bidi_category.
14400         (uc_bidi_category): New function.
14401         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14402         uc_is_bidi_category. Invoke uc_bidi_class.
14403         (uc_is_bidi_category): New function.
14404         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14405         instead of uc_bidi_category_byname.
14406         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14407         instead of uc_bidi_category_name.
14408         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14409         uc_bidi_category.
14410         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14411         instead of uc_is_bidi_category.
14412
14413 2011-03-21  Bruno Haible  <bruno@clisp.org>
14414
14415         New module 'unictype/joininggroup-all'.
14416         * modules/unictype/joininggroup-all: New file.
14417
14418         Tests for module 'unictype/joininggroup-of'.
14419         * modules/unictype/joininggroup-of-tests: New file.
14420         * tests/unictype/test-joininggroup_of.c: New file.
14421         * tests/unictype/test-joininggroup_of.h: New file, automatically
14422         generated by gen-uni-tables.
14423
14424         New module 'unictype/joininggroup-of'.
14425         * modules/unictype/joininggroup-of: New file.
14426         * lib/unictype/joininggroup_of.c: New file.
14427         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14428         gen-uni-tables.
14429
14430         Tests for module 'unictype/joininggroup-byname'.
14431         * modules/unictype/joininggroup-byname-tests: New file.
14432         * tests/unictype/test-joininggroup_byname.c: New file.
14433
14434         New module 'unictype/joininggroup-byname'.
14435         * modules/unictype/joininggroup-byname: New file.
14436         * lib/unictype/joininggroup_byname.c: New file.
14437         * lib/unictype/joininggroup_byname.gperf: New file.
14438
14439         Tests for module 'unictype/joininggroup-name'.
14440         * modules/unictype/joininggroup-name-tests: New file.
14441         * tests/unictype/test-joininggroup_name.c: New file.
14442
14443         New module 'unictype/joininggroup-name'.
14444         * modules/unictype/joininggroup-name: New file.
14445         * lib/unictype/joininggroup_name.c: New file.
14446         * lib/unictype/joininggroup_name.h: New file.
14447
14448         New module 'unictype/joiningtype-all'.
14449         * modules/unictype/joiningtype-all: New file.
14450
14451         Tests for module 'unictype/joiningtype-of'.
14452         * modules/unictype/joiningtype-of-tests: New file.
14453         * tests/unictype/test-joiningtype_of.c: New file.
14454         * tests/unictype/test-joiningtype_of.h: New file, automatically
14455         generated by gen-uni-tables.
14456
14457         New module 'unictype/joiningtype-of'.
14458         * modules/unictype/joiningtype-of: New file.
14459         * lib/unictype/joiningtype_of.c: New file.
14460         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14461         gen-uni-tables.
14462
14463         Tests for module 'unictype/joiningtype-byname'.
14464         * modules/unictype/joiningtype-byname-tests: New file.
14465         * tests/unictype/test-joiningtype_byname.c: New file.
14466
14467         New module 'unictype/joiningtype-byname'.
14468         * modules/unictype/joiningtype-byname: New file.
14469         * lib/unictype/joiningtype_byname.c: New file.
14470
14471         Tests for module 'unictype/joiningtype-name'.
14472         * modules/unictype/joiningtype-name-tests: New file.
14473         * tests/unictype/test-joiningtype_name.c: New file.
14474
14475         New module 'unictype/joiningtype-name'.
14476         * modules/unictype/joiningtype-name: New file.
14477         * lib/unictype/joiningtype_name.c: New file.
14478
14479         unictype: Add support for Arabic shaping properties.
14480         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14481         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14482         declarations.
14483         (UC_JOINING_GROUP_*): New enumeration values.
14484         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14485         declarations.
14486         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14487         (unicode_joining_type): New variable.
14488         (UC_JOINING_GROUP_*): New enumeration values.
14489         (unicode_joining_group): New variable.
14490         (fill_arabicshaping, joining_type_as_c_identifier,
14491         output_joining_type_test, output_joining_type,
14492         joining_group_as_c_identifier, output_joining_group_test,
14493         output_joining_group): New functions.
14494         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14495         fill_arabicshaping and output_joining_type_test, output_joining_type,
14496         output_joining_group_test, output_joining_group.
14497         Reported by Simon Josefsson.
14498
14499 2011-03-21  Jim Meyering  <meyering@redhat.com>
14500
14501         strftime: fix a bug in yesterday's change
14502         * lib/strftime.c (add): Accommodate width's initial value of -1.
14503         Otherwise, nstrftime would copy uninitialized data into
14504         the result buffer.
14505
14506 2011-03-21  Jim Meyering  <meyering@redhat.com>
14507
14508         tests: add strftime-tests module
14509         * tests/test-strftime.c: New file.
14510         * modules/strftime-tests: New module.
14511
14512 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14513
14514         strftime: don't assume a byte count fits in 'int'
14515         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14516         found this problem by static analysis, using gcc -Wstrict-overflow
14517         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14518         on an integer overflow having undefined behavior, but it turns out
14519         that the argument is a size, which might not fit in 'int' anyway,
14520
14521 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14522
14523         stdio: don't require ignore_value around fwrite
14524
14525         This patch works around libc bug 11959
14526         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14527         Without this patch, applications must often write
14528         ignore_value (fwrite (...)) even though the ignore_value is
14529         not helpful here.  It's common to write many objects, using
14530         fwrite/printf/etc., and then use ferror to detect output error.
14531
14532         I considered making this patch optional, but decided against it,
14533         because libc is obviously being inconsistent here: there is no
14534         reason libc should insist that user code must inspect fwrite
14535         return's value without also insisting that it inspect printf's,
14536         putchar's, etc.  If user code wants to have a strict style where
14537         all these functions' values are checked (so that ferror need not
14538         be checked), we could add support for that style in a new gnulib
14539         module, but in the meantime it's better to be consistent and to
14540         support common usage.
14541
14542         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14543         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14544         that we are compiling in checking mode, and if not C++, and
14545         if not already wrapping fwrite for some other reason.
14546         (fwrite): #define to rpl_fwrite if the latter is defined.
14547
14548 2011-03-20  Bruno Haible  <bruno@clisp.org>
14549
14550         verror: Fix compilation error introduced on 2011-02-13.
14551         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14552         instead of __attribute__.
14553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14554
14555 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14556             Bruno Haible  <bruno@clisp.org>
14557
14558         socklen: do not depend on sys_socket
14559         While trying to modify Emacs to use gnulib's socklen module,
14560         I discovered a circular dependency: socklen depends on sys_socket
14561         and vice versa.  Emacs can use socklen, but it does not need
14562         sys_socket because it has its own substitute for sys/socket.h.
14563         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14564         gl_TYPE_SOCKLEN_T.
14565         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14566         gl_PREREQ_SYS_H_SOCKET.
14567         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14568         gl_PREREQ_SYS_H_SOCKET.
14569         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14570         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14571         * modules/socklen (Depends-on): Do not depend on sys_socket.
14572         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14573
14574 2011-03-20  Jim Meyering  <meyering@redhat.com>
14575
14576         maint.mk: sort file names *after* new transformation
14577         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14578         prefix would have led to an unwarranted failure in GNU parted.
14579         Sort after that transformation.
14580
14581 2011-03-19  Jim Meyering  <meyering@redhat.com>
14582
14583         maint.mk: fix po-file syntax-check rule
14584         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14585         Patch by Bruno Haible.
14586
14587 2011-03-19  Bruno Haible  <bruno@clisp.org>
14588
14589         socklen: Update comment.
14590         * m4/socklen.m4: Update comment about platforms.
14591
14592 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14593             Bruno Haible  <bruno@clisp.org>
14594
14595         inet_ntop, inet_pton: Simplify.
14596         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14597         documented to provide socklen_t and we already depend on sys_socket.
14598         * modules/inet_pton (Depends-on): Likewise.
14599         * lib/arpa_inet.in.h: Adjust comment.
14600
14601 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14602             Bruno Haible  <bruno@clisp.org>
14603
14604         netdb: Simplify.
14605         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14606         documented to provide socklen_t and we already depend on sys_socket.
14607         * lib/netdb.in.h: Adjust comment.
14608
14609 2011-03-19  Bruno Haible  <bruno@clisp.org>
14610
14611         sys_socket, netdb: Document problem with socklen_t.
14612         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14613         platforms.
14614         * doc/posix-headers/netdb.texi: Likewise.
14615
14616 2011-03-18  Eric Blake  <eblake@redhat.com>
14617
14618         maint.mk: let po check work in VPATH build
14619         * top/maint.mk (po_file): Allow cfg.mk override.
14620         (sc_po_check): Allow VPATH use.
14621         Reported by Jiri Denemark.
14622
14623 2011-03-16  Jim Meyering  <meyering@redhat.com>
14624
14625         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14626         Before, you would have had to create one .x-sc_ file per rule in order
14627         to exempt offending files.  Now, you may instead use a Make variable --
14628         usually defined in cfg.mk -- whose name identifies the affected rule.
14629         * top/maint.mk (_sc_excl): Define.
14630         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14631         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14632
14633 2011-03-13  Bruno Haible  <bruno@clisp.org>
14634
14635         ignore-value tests: Avoid warnings.
14636         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14637         empty for gcc < 3.4.
14638
14639 2011-03-13  Bruno Haible  <bruno@clisp.org>
14640
14641         passfd: Fix link error on Solaris.
14642         * modules/passfd (Description): Correct.
14643         (Depends-on): Add socketlib.
14644         (Link): New section.
14645         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14646
14647 2011-03-13  Bruno Haible  <bruno@clisp.org>
14648
14649         passfd: Fix link error on AIX 5.2.
14650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14651
14652 2011-03-13  Bruno Haible  <bruno@clisp.org>
14653
14654         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14655         * lib/sys_socket.in.h: Include <stddef.h>.
14656         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14657         CMSG_FIRSTHDR. Remove unused variable.
14658
14659 2011-03-13  Bruno Haible  <bruno@clisp.org>
14660
14661         passfd: Fix compilation error on OpenBSD.
14662         * lib/passfd.c: Include <sys/uio.h>.
14663
14664 2011-03-13  Bruno Haible  <bruno@clisp.org>
14665
14666         passfd test: Fix warnings.
14667         * tests/test-passfd.c: Include <sys/wait.h>.
14668         (main): Fix typo.
14669
14670 2011-03-13  Bruno Haible  <bruno@clisp.org>
14671
14672         passfd module, part 4, tweaks.
14673         * tests/test-passfd.c: Reorder includes.
14674         (main): Fix perror and printf calls.
14675
14676 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14677
14678         passfd module, part 4.
14679         * modules/passfd-tests: New file.
14680         * tests/test-passfd.c: New file.
14681
14682 2011-03-13  Jim Meyering  <meyering@redhat.com>
14683
14684         Makefile: rely on GNU make; derive syntax-check rule names
14685         Rather than requiring that each sc_ rule be listed as a dependent
14686         of "check", use features of GNU make to derive the list.
14687         * Makefile (syntax-check-rules): Define.
14688         (check): Depend on the new variable, not the hard-coded list.
14689
14690 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14691             Bruno Haible  <bruno@clisp.org>
14692
14693         passfd module, part 3.
14694         * lib/passfd.h (recvfd): Add a flags argument.
14695         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14696         (recvfd): Add a flags argument.
14697         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14698         exists.
14699         * modules/passfd (Depends-on): Add cloexec.
14700         Suggested by Eric Blake.
14701
14702 2011-03-13  Bruno Haible  <bruno@clisp.org>
14703
14704         passfd module, part 2, tweaks.
14705         * modules/passfd (Files): Reorder.
14706         (Depends-on): Remove errno.
14707         (Include): Remove <sys/socket.h>, <sys/un.h>.
14708         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14709         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14710         specification header. Include <sys/socket.h> always. Don't include
14711         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14712         (sendfd): Clarify that it sets errno when it fails.
14713         (recvfd): Fix specification.
14714
14715 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14716
14717         passfd module, part 2.
14718         * modules/passfd: New file.
14719         * lib/passfd.h: New file.
14720         * lib/passfd.c: New file.
14721
14722 2011-03-12  Bruno Haible  <bruno@clisp.org>
14723
14724         wcswidth, mbswidth: Avoid integer overflow.
14725         * lib/wcswidth.c: Include <limits.h>.
14726         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14727         * lib/mbswidth.c: Include <limits.h>.
14728         (mbsnwidth): Avoid 'int' overflow.
14729         Reported by Jim Meyering.
14730
14731 2011-03-12  Bruno Haible  <bruno@clisp.org>
14732
14733         futimens, utimensat: Avoid endless recursion on Solaris 10.
14734         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14735         Solaris.
14736         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14737         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14738
14739 2011-03-11  Jim Meyering  <meyering@redhat.com>
14740
14741         maint.mk: relax a regexp to accommodate other formatting styles
14742         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14743         between "ngettext" and the following "(".
14744
14745 2011-03-11  Pádraig Brady <P@draigBrady.com>
14746
14747         maint.mk: suppress a false positive warning
14748         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14749         diagnostics are marked with ngettext.
14750
14751 2011-03-10  Eric Blake  <eblake@redhat.com>
14752
14753         wchar: add explicit dependencies, for Tru64
14754         * modules/mbmemcasecoll (Depends-on): Add wchar.
14755         * modules/mbtowc (Depends-on): Likewise.
14756         * modules/vasnprintf (Depends-on): Likewise.
14757         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14758         * modules/wctomb (Depends-on): Likewise.
14759         Reported by Peter O'Gorman.
14760
14761 2011-03-08  Bruno Haible  <bruno@clisp.org>
14762
14763         passfd module, part 1, tweaks.
14764         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14765         Improve indentation. Improve AC_MSG_CHECKING messages.
14766         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14767         gl_SOCKET_FAMILIES.
14768
14769 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14770
14771         passfd module, part 1.
14772         * m4/afunix.m4: New file.
14773         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14774         sockets.
14775
14776 2011-03-08  Bruno Haible  <bruno@clisp.org>
14777
14778         regex-quote: New API.
14779         * lib/regex-quote.h: Include <stdbool.h>.
14780         (struct regex_quote_spec): New type.
14781         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14782         New declarations.
14783         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14784         'const struct regex_quote_spec *' argument.
14785         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14786         (pcre_special): New constant.
14787         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14788         New functions.
14789         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14790         'const struct regex_quote_spec *' argument.
14791         * modules/regex-quote (Depends-on): Add stdbool.
14792         * tests/test-regex-quote.c (check): Update for new API. Add test for
14793         anchored results.
14794         * NEWS: Mention the API change.
14795         Reported by Reuben Thomas and Eric Blake.
14796
14797 2011-03-06  Bruno Haible  <bruno@clisp.org>
14798
14799         regex-quote: Fix creation of POSIX extended regular expressions.
14800         * lib/regex-quote.c (ere_special): Add grouping and alternation
14801         operators.
14802
14803 2011-03-05  Bruno Haible  <bruno@clisp.org>
14804
14805         doc: Improve doc regarding autopoint vs. gnulib.
14806         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14807         disable autopoint while running autoreconf.
14808         Suggested by Ralf Wildenhues.
14809
14810 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14811
14812         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14813         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14814
14815 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14816
14817         parse-duration: remove xalloc.h dependency
14818         * lib/parse-duration.c (parse_period): handle NULL return from
14819         strdup instead of calling xstrdup().
14820         * modules/parse-duration: remove "xalloc" dependency
14821
14822 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14823
14824         bootstrap: honor m4_base when running aclocal
14825         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14826
14827 2011-03-02  Jim Meyering  <meyering@redhat.com>
14828
14829         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14830         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14831         on request from Matt Booth.
14832
14833 2011-03-01  Eric Blake  <eblake@redhat.com>
14834
14835         test-link: work on Hurd
14836         * tests/test-link.h (test_link): Hurd rejects linking directories
14837         with EISDIR instead of the POSIX-mandated EPERM.
14838
14839 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14840
14841         stdio: simplify by moving files to printf-posix, sigpipe
14842         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14843         since this symbol is needed only if printf is replaced.
14844         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14845         Require gl_ASM_SYMBOL_PREFIX.
14846         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14847         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14848         (Depends-on): Add 'raise'.
14849         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14850         * modules/stdio (Files): Remove lib/stdio-write.c,
14851         m4/asm-underscore.m4.
14852         (Depends-on): Remove 'raise'.
14853
14854         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14855         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14856         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14857         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14858
14859 2011-02-28  Bruno Haible  <bruno@clisp.org>
14860
14861         localcharset: Assume ANSI C behaviour of free().
14862         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14863         calling free().
14864         Suggested by Simon Josefsson <simon@josefsson.org>.
14865
14866 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14867             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14868             Bruno Haible  <bruno@clisp.org>  (tiny change)
14869
14870         On Cygwin, use /proc file system instead of win32 API.
14871         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14872         Win32 file names.
14873         (DllMain): Simplify by removing Cygwin specific code.
14874         (find_shared_library_fullname): Use Linux specific implementation also
14875         for Cygwin.
14876         (get_shared_library_fullname): Update accordingly.
14877         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14878         Win32 file names.
14879         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14880         Cygwin specific code.
14881
14882 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14883             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14884
14885         Fix OpenMP flag detection for various Fortran compilers.
14886         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14887         OpenMP-conditional compilation construct, to force compile
14888         failure with missing OpenMP flag.
14889         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14890
14891 2011-02-25  Eric Blake  <eblake@redhat.com>
14892
14893         strstr: expand test coverage
14894         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14895         compilation.
14896         * tests/test-memmem.c (main): Duplicate tests.
14897         * tests/test-strcasestr.c (main): Likewise.
14898         * tests/test-c-strcasestr.c (main): Likewise.
14899
14900 2011-02-25  Jim Meyering  <meyering@redhat.com>
14901
14902         maint.mk: detect missing-NL-at-EOF, too
14903         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14904         it also detects when a file lacks a newline at EOF.
14905         (require_exactly_one_NL_at_EOF_): Renamed from
14906         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14907         since people may well have .x-sc_... file names tied to the
14908         existing name.  Suggested by Eric Blake.
14909
14910 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         dirname: move m4/dos.m4 functionality into lib/dosname.h
14913
14914         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14915         extracts symbols from it, puts them into config.h; but it's much
14916         easier to use the symbols directly.  filename.h already does this,
14917         but it disagrees with dos.m4 in some respects.  This patch
14918         introduces a different include file dosname.h that packages up
14919         dos.m4, and then later we can work on merging filename.h and
14920         dosname.h.  Applications that need only the easy-to-configure
14921         symbols should consider including dosname.h rather than dirname.h.
14922         * NEWS: Mention incompatible changes.
14923         * m4/dos.m4: Remove.
14924         * lib/dosname.h, modules/dosname: New files.
14925         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14926         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14927         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14928         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14929         Include dosname.h, not dirname.h.
14930         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14931         Include dosname.h, for definitions of symbols like ISSLASH
14932         that used to be in config.h.
14933         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14935         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14936         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14937         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14938         * modules/rmdir (Files): Likewise.
14939         * modules/stat (Files): Likewise.
14940         * modules/unlink (Files): Likewise.
14941         * modules/dirname-lgpl (Depends-on): Add dosname.
14942         * modules/lstat (Depends-on): Likewise.
14943         * modules/openat (Depends-on): Likewise.
14944         * modules/rmdir (Depends-on): Likewise.
14945         * modules/savewd (Depends-on): Likewise.
14946         * modules/stat (Depends-on): Likewise.
14947         * modules/unlink (Depends-on): Likewise.
14948         * modules/openat (Depends-on): Remove dirname-lgpl.
14949         * modules/savewd (Depends-on): Likewise.
14950         * tests/test-dirname.c: Do not use removed symbols like
14951         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14952         the remaining symbols, e.g., ISSLASH ('\\').
14953
14954 2011-02-25  Eric Blake  <eblake@redhat.com>
14955
14956         strstr: revert patches that introduced bug and pessimization
14957         * lib/str-two-way.h: Add another reference.
14958         (two_way_short_needle, two_way_long_needle): Revert changes from
14959         2011-02-24; they pessimize search speed.
14960         (critical_factorization): Partially revert changes from
14961         2010-06-22; they violate the requirement that the left half of the
14962         needle be smaller than the period of the needle.
14963
14964 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14965
14966         filenamecat: remove unnecessary dependency on dirname-lgpl
14967         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14968         is no direct dependency, just an indirect one via filenamecat-lgpl.
14969
14970         remove: remove unnecessary use of m4/dos.m4
14971         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14972         * modules/remove (FILES): Remove m4/dos.m4.
14973
14974         * lib/openat-proc.c: Don't include dirname.h; not needed.
14975
14976         backupfile: remove unnecessary use of m4/dos.m4
14977         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14978         of its symbols are used by the backupfile code.  backupfile.c does
14979         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14980         for the rare case of programs that want all their backup file
14981         names to live within 8+3 limits, and dos.m4 doesn't address that.
14982         * modules/backupfile (Files): Remove m4/dos.m4.
14983
14984 2011-02-24  Jim Meyering  <meyering@redhat.com>
14985
14986         strstr: fix a bug whereby strstr would mistakenly return NULL
14987         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14988         in period calculation.
14989         (two_way_long_needle): Likewise.
14990         The original problem was reported by Mike Stump in
14991         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14992         Ralf Wildenhues provided the short needle and haystack.
14993         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14994         Add a more involved test to trigger the bug in two_way_long_needle.
14995
14996 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14997
14998         gnulib-tool: remove use of bold display in help screen
14999         * gnulib-tool (func_usage): Do not use bold display anymore in the
15000         help screen.  That was just meant to be a temporary emphasis for a
15001         backward-incompatible change.
15002
15003 2011-02-23  Bruno Haible  <bruno@clisp.org>
15004
15005         Fix misindentation of preprocessor directives.
15006         * lib/argp-namefrob.h: Reindent preprocessor directives.
15007         * lib/getopt_int.h (struct _getopt_data): Likewise.
15008         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15009         * lib/vasnprintf.c (decode_long_double): Likewise.
15010         * tests/test-argmatch.c: Insert blank lines, for clarity.
15011         * tests/test-exclude.c: Likewise.
15012
15013 2011-02-22  Bruno Haible  <bruno@clisp.org>
15014
15015         ioctl: Fix for MacOS X in 64-bit mode.
15016         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15017         value.
15018         Suggested by Eric Blake.
15019         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15020
15021 2011-02-22  Jim Meyering  <meyering@redhat.com>
15022
15023         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15024         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15025         in lib/.
15026
15027 2011-02-22  Eric Blake  <eblake@redhat.com>
15028
15029         maint: avoid any CDPATH issue
15030         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15031
15032         maint: adjust cpp indentation for my modules, as well
15033         * Makefile (sc_cpp_indent_check): Add my name.
15034         * lib/fbufmode.c: Filter through cppi.
15035         * lib/fpurge.c: Likewise.
15036         * lib/freadable.c: Likewise.
15037         * lib/freading.c: Likewise.
15038         * lib/fwritable.c: Likewise.
15039         * lib/fwriting.c: Likewise.
15040         * lib/sigaction.c: Likewise.
15041
15042 2011-02-22  Jim Meyering  <meyering@redhat.com>
15043
15044         maint: adjust cpp indentation to reflect nesting depth
15045         I.e., in a block of code that begins with an unnested "#if",
15046         put one space between the "#" in column 1 and following token.
15047         For example,
15048         -#include <sys/vfs.h>
15049         +# include <sys/vfs.h>
15050         Do this only in .c files that are part of a module I maintain.
15051         * lib/linkat.c: Filter through cppi.
15052         * lib/nanosleep.c: Likewise.
15053         * lib/openat.c: Likewise.
15054         * lib/openat-die.c: Likewise.
15055         * lib/dup3.c: Likewise.
15056         * lib/fchownat.c: Likewise.
15057         * lib/flock.c: Likewise.
15058         * lib/fsync.c: Likewise.
15059         * lib/fts.c: Likewise.
15060         * lib/getpass.c: Likewise.
15061         * lib/gettimeofday.c: Likewise.
15062         * lib/userspec.c: Likewise.
15063         * Makefile (sc_cpp_indent_check): New rule, to check this.
15064
15065 2011-02-22  Bruno Haible  <bruno@clisp.org>
15066
15067         New module 'wctomb'.
15068         * lib/stdlib.in.h (wctomb): New declaration.
15069         * lib/wctomb.c: New file.
15070         * lib/wctomb-impl.h: New file.
15071         * m4/wctomb.m4: New file.
15072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15073         REPLACE_WCTOMB.
15074         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15075         REPLACE_WCTOMB.
15076         * modules/wctomb: New file.
15077         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15078         * doc/posix-functions/wctomb.texi: Mention the new module.
15079         * modules/wctob (Depends-on): Add wctomb.
15080
15081 2011-02-22  Bruno Haible  <bruno@clisp.org>
15082
15083         New module 'mbtowc'.
15084         * lib/stdlib.in.h (mbtowc): New declaration.
15085         * lib/mbtowc.c: New file.
15086         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15087         * m4/mbtowc.m4: New file.
15088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15089         REPLACE_MBTOWC.
15090         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15091         REPLACE_MBTOWC.
15092         * modules/mbtowc: New file.
15093         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15094         * doc/posix-functions/mbtowc.texi: Mention the new module.
15095         * modules/btowc (Depends-on): Add mbtowc.
15096
15097 2011-02-22  Bruno Haible  <bruno@clisp.org>
15098
15099         wcrtomb: Add more tests for native Windows platforms.
15100         * tests/test-wcrtomb-w32-1.sh: New file.
15101         * tests/test-wcrtomb-w32-2.sh: New file.
15102         * tests/test-wcrtomb-w32-3.sh: New file.
15103         * tests/test-wcrtomb-w32-4.sh: New file.
15104         * tests/test-wcrtomb-w32-5.sh: New file.
15105         * tests/test-wcrtomb-w32.c: New file.
15106         * modules/wcrtomb-tests (Files): Add them.
15107         (Makefile.am): Arrange to run these tests.
15108         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15109         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15110
15111 2011-02-20  Bruno Haible  <bruno@clisp.org>
15112
15113         wcrtomb: Enhance test.
15114         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15115
15116 2011-02-20  Bruno Haible  <bruno@clisp.org>
15117
15118         mbrtowc: Tiny optimization.
15119         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15120
15121 2011-02-20  Jim Meyering  <meyering@redhat.com>
15122
15123         test-exclude.c: remove unmatched #endif
15124         * tests/test-exclude.c: Remove stray #endif, left over from
15125         the change of a week ago.
15126
15127 2011-02-19  Jim Meyering  <meyering@redhat.com>
15128
15129         git-version-gen: skip "-dirty" check when appropriate
15130         * build-aux/git-version-gen: Don't run any git commands when the
15131         version string comes from .tarball-version.  Prior to this, we
15132         would run git update-index --refresh even from a just-unpacked
15133         tarball directory, and that could affect a .git/ directory in a
15134         parent of the build directory.  Reported by Mike Frysinger.
15135
15136 2011-02-19  Bruno Haible  <bruno@clisp.org>
15137
15138         unictype/property-byname: Reduce the size of the 'data' segment.
15139         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15140
15141 2011-02-19  Bruno Haible  <bruno@clisp.org>
15142
15143         unictype/scripts: Reduce the size of the 'data' segment.
15144         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15145         '%pic'.
15146         * lib/unictype/scripts_byname.gperf: Regenerated.
15147
15148 2011-02-19  Bruno Haible  <bruno@clisp.org>
15149
15150         stdint: Update documentation.
15151         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15152
15153 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15154
15155         stdint: omit redundant check for wchar.h
15156         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15157         always tests whether wchar.h exists, so remove the now-redundant test.
15158
15159 2011-02-18  Bruno Haible  <bruno@clisp.org>
15160
15161         stdint: Cut dependency to module 'wchar'.
15162         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15163         include the necessary prerequisites.
15164         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15165         * modules/stdint (Depends-on): Remove wchar.
15166         (Makefile.am): Substitute HAVE_WCHAR_H.
15167         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15168
15169 2011-02-18  Eric Blake  <eblake@redhat.com>
15170
15171         longlong: skip, rather than fail, on cross-compilation
15172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15173         when cross-compiling; regression from 2011-02-16.
15174
15175 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15176
15177         * NEWS: Mention 2011-02-08 change to stdlib.
15178
15179 2011-02-17  Bruno Haible  <bruno@clisp.org>
15180
15181         getloadavg: Add comments about platforms.
15182         * m4/getloadavg.m4: Add comment.
15183         * lib/getloadavg.c: Likewise.
15184
15185 2011-02-17  Bruno Haible  <bruno@clisp.org>
15186
15187         getloadavg: Fix link error on Solaris 2.6.
15188         * modules/getloadavg (Link): New section.
15189         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15190         linking test-getloadavg.
15191         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15192         getloadavg.
15193
15194 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15195
15196         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15197         It was 'int', but this doesn't match the IRIX 6.5 manual.
15198         Suggested by Bruno Haible in
15199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15200
15201 2011-02-17  Bruno Haible  <bruno@clisp.org>
15202
15203         havelib: Fix comments.
15204         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15205         change.
15206
15207 2011-02-17  Bruno Haible  <bruno@clisp.org>
15208
15209         havelib: Update config.rpath.
15210         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15211
15212 2011-02-17  Bruno Haible  <bruno@clisp.org>
15213
15214         getloadavg test: Add some plausibility checks.
15215         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15216         is improbable.
15217
15218 2011-02-16  Eric Blake  <eblake@redhat.com>
15219
15220         maintainer-makefile: make syntax-check a no-op from tarballs
15221         * top/maint.mk (no-vc-detected): New rule.
15222         (local-checks-available): Use it to avoid hanging if someone tries
15223         'make syntax-check' from a tarball.  Also append to any non-syntax
15224         checks already defined in cfg.mk.
15225
15226 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15227
15228         longlong: tune, particularly for common case of c99
15229
15230         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15231         or running anything if c99, or if unsigned long long int does not
15232         work.  In either case, we know the answer without further tests.
15233         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15234         it at most once, and use its results for both long long int and
15235         unsigned long long int.  This is more likely to be efficient in
15236         the common case where the program wants to check for both long
15237         long int and unsigned long long int.
15238         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15239         since the answer is already known.
15240
15241 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15242
15243         getloadavg: set errno
15244         * lib/getloadavg.c: Set errno when returning -1.  If no other
15245         error number looks appropriate, set it to ENOSYS if the getloadavg
15246         looks like it can't possibly ever work, ENOTSUP otherwise.
15247         Suggested by Bruno Haible in
15248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15249
15250         getloadavg: trim unused parts and speed up 'configure'
15251         * NEWS: Document this.
15252         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15253         always compiled if getloadavg is absent.
15254         Move test code to ...
15255         * tests/test-getloadavg.c: New file, containing previous
15256         contents of test from lib/getloadavg.c.  It also contains
15257         suggestions by Bruno Haible in
15258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15259         * modules/getloadavg-tests: New file.
15260         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15261         Do tests in the same order as they're needed for getloadavg.c.
15262         Omit setgid-related tests that generate symbols KMEM_GROUP,
15263         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15264         Do only the tests that are needed to see whether the system has
15265         getloadavg, moving the other tests into ...
15266         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15267         NLIST_NAME_UNION; nobody should be using it.  Do not define
15268         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15269         relevant, as the user of this module shouldn't care how getloadavg
15270         is implemented.
15271
15272         getloadavg: omit unused var
15273         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15274
15275 2011-02-15  Jim Meyering  <meyering@redhat.com>
15276
15277         doc: update users.txt
15278         * users.txt: Update iwhd's URL.
15279
15280 2011-02-13  Bruno Haible  <bruno@clisp.org>
15281
15282         Consistent macro naming for macros that use GCC __attribute__.
15283         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15284         _ATTRIBUTE_NONNULL_.
15285         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15286         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15287         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15288         ATTRIBUTE_DEPRECATED.
15289         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15290         ATTRIBUTE_NORETURN.
15291         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15292         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15293         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15294         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15295         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15296         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15297         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15298         ATTRIBUTE_SENTINEL.
15299         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15300         ATTRIBUTE_RETURN_CHECK.
15301         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15302         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15303         ATTRIBUTE_NORETURN.
15304         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15305         Reported by Paul Eggert.
15306
15307 2011-02-13  Bruno Haible  <bruno@clisp.org>
15308
15309         Don't interfere with a program's definition of __attribute__.
15310         * lib/argp.h (__attribute__): Remove definition.
15311         (_GL_ATTRIBUTE_FORMAT): New macro.
15312         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15313         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15314         (_GL_ATTRIBUTE_FORMAT): New macro.
15315         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15316         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15317         GCC 3 or newer.
15318         * lib/error.h (__attribute__): Remove definition.
15319         (_GL_ATTRIBUTE_FORMAT): New macro.
15320         (error, error_at_line): Use it.
15321         * lib/hash.h (__attribute__): Remove definition.
15322         (ATTRIBUTE_WUR): Update definition. Define always.
15323         * lib/openat.h (__attribute__): Remove definition.
15324         (ATTRIBUTE_NORETURN): Update definition. Define always.
15325         * lib/sigpipe-die.h (__attribute__): Remove definition.
15326         (ATTRIBUTE_NORETURN): Update definition. Define always.
15327         * lib/vasnprintf.h (__attribute__): Remove definition.
15328         (_GL_ATTRIBUTE_FORMAT): New macro.
15329         (asnprintf, vasnprintf): Use it.
15330         * lib/xalloc.h (__attribute__): Remove definition.
15331         (ATTRIBUTE_NORETURN): Update definition. Define always.
15332         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15333         * lib/xmemdup0.h (__attribute__): Remove definition.
15334         (ATTRIBUTE_NORETURN): Update definition. Define always.
15335         * lib/xprintf.h (__attribute__): Remove definition.
15336         (_GL_ATTRIBUTE_FORMAT): New macro.
15337         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15338         * lib/xstrtol.h (__attribute__): Remove definition.
15339         (ATTRIBUTE_NORETURN): Update definition. Define always.
15340         * lib/xvasprintf.h (__attribute__): Remove definition.
15341         (_GL_ATTRIBUTE_FORMAT): New macro.
15342         (xasprintf, xvasprintf): Use it.
15343         * tests/test-argmatch.c (__attribute__): Remove definition.
15344         (ATTRIBUTE_NORETURN): Update definition. Define always.
15345         * tests/test-exclude.c (__attribute__): Remove definition.
15346         (ATTRIBUTE_NORETURN): Update definition. Define always.
15347         Reported by Paul Eggert.
15348
15349 2011-02-13  Bruno Haible  <bruno@clisp.org>
15350
15351         mbrtowc: Add more tests for native Windows platforms.
15352         * tests/test-mbrtowc-w32-1.sh: New file.
15353         * tests/test-mbrtowc-w32-2.sh: New file.
15354         * tests/test-mbrtowc-w32-3.sh: New file.
15355         * tests/test-mbrtowc-w32-4.sh: New file.
15356         * tests/test-mbrtowc-w32-5.sh: New file.
15357         * tests/test-mbrtowc-w32.c: New file.
15358         * modules/mbrtowc-tests (Files): Add them.
15359         (Makefile.am): Arrange to run these tests.
15360         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15361         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15362
15363 2011-02-13  Bruno Haible  <bruno@clisp.org>
15364
15365         mbrtowc: Work around native Windows bug.
15366         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15367         guess when no suitable locale for testing was found.
15368         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15369
15370 2011-02-13  Bruno Haible  <bruno@clisp.org>
15371
15372         mbsinit: Work around mingw bug.
15373         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15374         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15375         Windows.
15376         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15377
15378 2011-02-13  Bruno Haible  <bruno@clisp.org>
15379
15380         mbsinit: Don't crash for a NULL argument.
15381         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15382         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15383
15384 2011-02-13  Bruno Haible  <bruno@clisp.org>
15385
15386         Don't interfere with a program's definition of __attribute__.
15387         * lib/stdio.in.h (__attribute__): Remove definition.
15388         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15389         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15390         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15391         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15392         * lib/string.in.h (__attribute__): Remove definition.
15393         Reported by Paul Eggert.
15394
15395 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15396
15397         stdlib: don't get in the way of non-GCC __attribute__
15398         See thread starting at
15399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15400         Revert previous stdlib change, installing the following instead:
15401         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15402         to get in the way of a non-GCC compiler that supports __attribute__.
15403         (_GL_ATTRIBUTE_RETURN): New macro.
15404         (_Exit): Use it instead of __attribute__.
15405
15406 2011-02-12  Bruno Haible  <bruno@clisp.org>
15407
15408         quotearg test: Avoid test failure on mingw.
15409         * tests/test-quotearg.sh: Convert the locale identifier from native
15410         Windows syntax to Unix syntax.
15411
15412 2011-02-12  Bruno Haible  <bruno@clisp.org>
15413
15414         setlocale: Prefer gnulib's override over libintl's override.
15415         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15416         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15417         GNULIB_defined_setlocale is set.
15418
15419 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15420
15421         stdlib: support non-GCC __attribute__
15422
15423         Fix a serious and tricky problem encountered when attempting to
15424         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15425         5.5, but it crashed due to memory corruption on Solaris 10 with
15426         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15427         bits that are otherwise zero.  This tagging is optional inside
15428         Emacs but is preferred and is used when __attribute__ ((__aligned
15429         (8))) works, as it does with both recent-enough GCC and with Sun C
15430         5.11.  However, Sun C 5.11 is not GCC and does not #define
15431         __GNUC__ and __GNUC_MINOR__.
15432
15433         When I added the getloadavg module to Emacs, it brought in
15434         stdlib.in.h, which contained this fragment:
15435
15436            #ifndef __attribute__
15437            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15438            #  define __attribute__(Spec)   /* empty */
15439            # endif
15440            #endif
15441
15442         When files that include <stdlib.h> were compiled with Sun C 5.11,
15443         the above code disabled __attribute__ ((__aligned (8))), which
15444         caused variables to not be properly aligned, which eventually led
15445         to the pointer corruption mentioned above.  (This was a bit hard
15446         to diagnose, unfortunately.)
15447
15448         Several "#define __attribute__(X) /* empty */" code snippets need
15449         to be eradicated from Gnulib to work with non-GCC compilers that
15450         support __attribute__.  The Autoconf way to do this is to test for
15451         each kind of attribute that we want support for, and selectively
15452         enable that in source code.
15453
15454         Fix this problem just for stdlib.h, by adding a test for the
15455         __noreturn__ attribute, and change stdlib.in.h to use that test
15456         when needed.  This technique can be easily generalized to the
15457         other *.in.h files and attributes, and a similar technique can be
15458         used for *.h and *.c files.  This patch is enough to solve the
15459         problem for Emacs + getloadavg, and I thought I'd publish it for
15460         feedback before undertaking further, similar fixes in other
15461         modules.
15462
15463         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15464         because it's not needed for stdlib.h.  It merely substitutes the
15465         value directly into stdlib.h.  We may well need to #define it, or
15466         similar symbols, for other modules, but it's nice to also have an
15467         option to not #define it for applications like Emacs that do not
15468         need it.
15469
15470         * lib/stdlib.in.h (__attribute__): Do not #define.
15471         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15472         be defined only if the _Exit module is also used.
15473         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15475         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15476         platforms.
15477         * modules/_Exit (Files): Add m4/attribute.m4.
15478         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15479         * m4/attribute.m4: New file.
15480
15481 2011-02-12  Bruno Haible  <bruno@clisp.org>
15482
15483         wcsrtombs: Work around bug on native Windows.
15484         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15485         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15486         instead of len.
15487         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15488
15489 2011-02-12  Bruno Haible  <bruno@clisp.org>
15490
15491         mbsrtowcs: Work around bug on native Windows.
15492         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15493         against mingw bug.
15494         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15495
15496 2011-02-12  Bruno Haible  <bruno@clisp.org>
15497
15498         Avoid setlocale bugs in tests.
15499         * modules/btowc (Dependencies): Add setlocale.
15500         * modules/c-strcase (Dependencies): Likewise.
15501         * modules/mbmemcasecmp (Dependencies): Likewise.
15502         * modules/mbmemcasecoll (Dependencies): Likewise.
15503         * modules/mbrtowc (Dependencies): Likewise.
15504         * modules/mbscasecmp (Dependencies): Likewise.
15505         * modules/mbscasestr (Dependencies): Likewise.
15506         * modules/mbschr (Dependencies): Likewise.
15507         * modules/mbscspn (Dependencies): Likewise.
15508         * modules/mbsinit (Dependencies): Likewise.
15509         * modules/mbsncasecmp (Dependencies): Likewise.
15510         * modules/mbsnrtowcs (Dependencies): Likewise.
15511         * modules/mbspbrk (Dependencies): Likewise.
15512         * modules/mbspcasecmp (Dependencies): Likewise.
15513         * modules/mbsrchr (Dependencies): Likewise.
15514         * modules/mbsrtowcs (Dependencies): Likewise.
15515         * modules/mbsspn (Dependencies): Likewise.
15516         * modules/mbsstr (Dependencies): Likewise.
15517         * modules/nl_langinfo (Dependencies): Likewise.
15518         * modules/quotearg (Dependencies): Likewise.
15519         * modules/unicase/locale-language (Dependencies): Likewise.
15520         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15521         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15522         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15523         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15524         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15525         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15526         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15527         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15528         * modules/vasnprintf-posix (Dependencies): Likewise.
15529         * modules/wcrtomb (Dependencies): Likewise.
15530         * modules/wcsnrtombs (Dependencies): Likewise.
15531         * modules/wcsrtombs (Dependencies): Likewise.
15532
15533 2011-02-12  Bruno Haible  <bruno@clisp.org>
15534
15535         setlocale: Workaround native Windows bug.
15536         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15537         succeeds but sets LC_CTYPE to "C", report a failure.
15538         * tests/test-setlocale2.sh: New file.
15539         * tests/test-setlocale2.c: New file.
15540         * modules/setlocale-tests (Files): Add the new files.
15541         (Makefile.am): Enable test-setlocale2.sh test.
15542         * doc/posix-functions/setlocale.texi: Mention workaround.
15543
15544 2011-02-11  Bruno Haible  <bruno@clisp.org>
15545
15546         Tests for module 'setlocale'.
15547         * modules/setlocale-tests: New file.
15548         * tests/test-setlocale1.sh: New file.
15549         * tests/test-setlocale1.c: New file.
15550
15551         New module 'setlocale'.
15552         * lib/locale.in.h (setlocale): New declaration.
15553         * lib/setlocale.c: New file, based on
15554         gettext/gettext-runtime/intl/setlocale.c.
15555         * m4/setlocale.m4: New file.
15556         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15557         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15558         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15559         REPLACE_SETLOCALE.
15560         * modules/setlocale: New file.
15561         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15562         * doc/posix-functions/setlocale.texi: Mention the new module.
15563
15564 2011-02-11  Bruno Haible  <bruno@clisp.org>
15565
15566         Prepare for locale dependent tests on mingw.
15567         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15568         because it has the wrong locale encoding.
15569         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15570         French_France.1252 instead of "fr".
15571         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15572         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15573         because it has the wrong locale encoding.
15574         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15575         native Windows, try Turkish_Turkey.65001.
15576         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15577         Chinese_China.54936.
15578
15579         Prepare for locale dependent tests on mingw.
15580         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15581         differently.
15582         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15583         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15584         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15585         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15586
15587 2011-02-11  Eric Blake  <eblake@redhat.com>
15588
15589         strptime: avoid compiler warnings
15590         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15591         compiler warnings about dead code.
15592         Reported by Daniel P. Berrange.
15593
15594 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15595
15596         doc: update users.txt
15597         * users.txt: Add rcs.
15598
15599 2011-02-10  John W. Eaton  <jwe@gnu.org>
15600
15601         doc: update users.txt
15602         * users.txt: Add octave.
15603
15604 2011-02-10  Jim Meyering  <meyering@redhat.com>
15605
15606         doc: update users.txt
15607         * users.txt: Add iwhd.
15608
15609 2011-02-09  Bruno Haible  <bruno@clisp.org>
15610
15611         gnulib-tool: Make copyright notice adjustment more robust.
15612         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15613         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15614         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15615         License".
15616         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15617
15618 2011-02-06  Bruno Haible  <bruno@clisp.org>
15619
15620         New module 'towctrans'.
15621         * modules/towctrans: New file.
15622         * lib/wctype.in.h (towctrans): New declaration.
15623         * lib/towctrans.c: New file.
15624         * lib/towctrans-impl.h: New file.
15625         * m4/towctrans.m4: New file.
15626         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15627         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15628         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15629         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15630         * doc/posix-functions/towctrans.texi: Mention the new module.
15631
15632 2011-02-06  Bruno Haible  <bruno@clisp.org>
15633
15634         New module 'wctrans'.
15635         * modules/wctrans: New file.
15636         * lib/wctype.in.h (wctrans): New declaration.
15637         * lib/wctrans.c: New file.
15638         * lib/wctrans-impl.h: New file.
15639         * m4/wctrans.m4: New file.
15640         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15641         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15642         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15643         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15644         * doc/posix-functions/wctrans.texi: Mention the new module.
15645
15646 2011-02-06  Bruno Haible  <bruno@clisp.org>
15647
15648         New module 'iswctype'.
15649         * modules/iswctype: New file.
15650         * lib/wctype.in.h (iswctype): New declaration.
15651         * lib/iswctype.c: New file.
15652         * lib/iswctype-impl.h: New file.
15653         * m4/iswctype.m4: New file.
15654         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15655         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15656         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15657         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15658         * doc/posix-functions/iswctype.texi: Mention the new module and the
15659         HP-UX 11.00 problem.
15660
15661 2011-02-06  Bruno Haible  <bruno@clisp.org>
15662
15663         New module 'wctype'.
15664         * modules/wctype: Change to represent the wctype() substitute.
15665         * lib/wctype.in.h (wctype): New declaration.
15666         * lib/wctype.c: New file.
15667         * lib/wctype-impl.h: New file.
15668         * m4/wctype.m4: New file.
15669         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15670         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15671         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15672         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15673         * doc/posix-functions/wctype.texi: Mention the new module and the
15674         HP-UX 11.00 problem.
15675
15676 2011-02-06  Bruno Haible  <bruno@clisp.org>
15677
15678         wctype-h: Ensure wctype_t and wctrans_t are defined.
15679         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15680         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15681         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15682         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15683         HAVE_WCTRANS_T.
15684         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15685
15686 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15687
15688         flock: fix license typo
15689
15690         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15691         omitted.
15692
15693 2011-02-08  Bruno Haible  <bruno@clisp.org>
15694
15695         Split large sed scripts, for HP-UX sed.
15696         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15697         to avoid HP-UX limit of 99 commands, in the near future.
15698         * modules/stdlib (Makefile.am): Likewise.
15699         * modules/unistd (Makefile.am): Likewise.
15700         * modules/wchar (Makefile.am): Likewise.
15701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15702         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15703         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15704
15705 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15706             Bruno Haible  <bruno@clisp.org>
15707
15708         stdlib: improve random_r modularization
15709         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15710         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15711         you also need the random_r module to get this material right.
15712         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15713         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15714         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15715
15716 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         stdlib: don't depend on stdint
15719         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15720         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15721         be independent of whether stdint.h is needed.
15722         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15723         here, instead of ...
15724         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15725         struct random_data should be using the random_r module, not just
15726         the stdlib module (which wouldn't make sense: what package needs
15727         just struct random_data without also needing random_r?).
15728         * modules/stdlib (Depends-on): Remove stdint.
15729
15730         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15731         See the thread rooted at
15732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15733         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15734         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15735         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15736         __VMS)); previously it was always included (via fcntl--.h).
15737         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15738         hand; this is good enough for load averages.  Also, do not use
15739         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15740         flags directly if available and don't bother otherwise.  (Packages
15741         that need the extra reliability should use the modules that define
15742         these flags on older platforms that lack them.)
15743         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15744         fcntl-safer.
15745
15746 2011-02-08  Jim Meyering  <meyering@redhat.com>
15747
15748         di-set.h, ino-map.h: add multiple-inclusion guard
15749         Technically, the guard is required only for ino-map.h, due to its
15750         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15751         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15752         * lib/ino-map.h: Likewise.
15753
15754 2011-02-06  Bruno Haible  <bruno@clisp.org>
15755
15756         iswblank: Ensure declaration on glibc systems.
15757         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15758         * modules/iswblank (Dependencies): Add 'extensions'.
15759         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15760
15761 2011-02-06  Bruno Haible  <bruno@clisp.org>
15762
15763         New module 'iswblank'.
15764         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15765         * modules/iswblank: New file.
15766         * modules/wctype-h (Files): Remove lib/iswblank.c.
15767         (Makefile.am): Substitute GNULIB_ISWBLANK.
15768         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15769         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15770         (gl_WCTYPE_H_DEFAULTS): New macro.
15771         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15772         * modules/iswblank-tests: New file.
15773         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15774         * tests/test-wctype-h.c (main): Remove iswblank tests.
15775         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15776         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15777         of 'wctype-h'.
15778         * NEWS: Mention the change.
15779         * modules/mbchar (Depends-on): Add iswblank.
15780
15781 2011-02-08  Bruno Haible  <bruno@clisp.org>
15782
15783         di-set tests: Refactor.
15784         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15785         unnecessary includes.
15786         (ASSERT): Remove macro.
15787         (main): Make C90 compliant by avoiding variable declaration after
15788         statement.
15789         * modules/di-set-tests (Files): Add tests/macros.h.
15790
15791 2011-02-08  Bruno Haible  <bruno@clisp.org>
15792
15793         ino-map tests: Refactor.
15794         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15795         unnecessary includes.
15796         (ASSERT): Remove macro.
15797         (main): Make C90 compliant by avoiding variable declaration after
15798         statement.
15799         * modules/ino-map-tests (Files): Add tests/macros.h.
15800
15801 2011-02-08  Jim Meyering  <meyering@redhat.com>
15802
15803         di-set: add "const" to a cast
15804         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15805         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15806
15807 2011-02-06  Bruno Haible  <bruno@clisp.org>
15808
15809         Rename module 'wctype' to 'wctype-h'.
15810         * modules/wctype-h: Renamed from modules/wctype.
15811         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15812         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15813         (Files, Depends-on, Makefile.am): Update.
15814         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15815         (Files, Makefile.am): Update.
15816         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15817         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15818         * doc/posix-headers/wctype.texi: Update.
15819         * doc/posix-functions/iswalnum.texi: Update.
15820         * doc/posix-functions/iswalpha.texi: Update.
15821         * doc/posix-functions/iswblank.texi: Update.
15822         * doc/posix-functions/iswcntrl.texi: Update.
15823         * doc/posix-functions/iswdigit.texi: Update.
15824         * doc/posix-functions/iswgraph.texi: Update.
15825         * doc/posix-functions/iswlower.texi: Update.
15826         * doc/posix-functions/iswprint.texi: Update.
15827         * doc/posix-functions/iswpunct.texi: Update.
15828         * doc/posix-functions/iswspace.texi: Update.
15829         * doc/posix-functions/iswupper.texi: Update.
15830         * doc/posix-functions/iswxdigit.texi: Update.
15831         * doc/posix-functions/towlower.texi: Update.
15832         * doc/posix-functions/towupper.texi: Update.
15833         * NEWS: Mention the change.
15834         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15835         * modules/mbchar (Dependencies): Likewise.
15836         * modules/mbswidth (Dependencies): Likewise.
15837         * modules/quotearg (Dependencies): Likewise.
15838         * modules/regex (Dependencies): Likewise.
15839         * modules/wcscasecmp (Dependencies): Likewise.
15840         * modules/wcsncasecmp (Dependencies): Likewise.
15841         * modules/wcwidth (Dependencies): Likewise.
15842
15843 2011-02-06  Bruno Haible  <bruno@clisp.org>
15844
15845         New module 'wcswidth'.
15846         * modules/wcswidth: New file.
15847         * lib/wchar.in.h (wcswidth): New declaration.
15848         * lib/wcswidth.c: New file.
15849         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15850         * m4/wcswidth.m4: New file.
15851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15853         REPLACE_WCSWIDTH.
15854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15855         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15856         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15857         * doc/posix-functions/wcswidth.texi: Mention the new module.
15858
15859 2011-02-06  Bruno Haible  <bruno@clisp.org>
15860
15861         New module 'wcstok'.
15862         * modules/wcstok: New file.
15863         * lib/wchar.in.h (wcstok): New declaration.
15864         * lib/wcstok.c: New file.
15865         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15866         * m4/wcstok.m4: New file.
15867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15870         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15871         * doc/posix-functions/wcstok.texi: Mention the new module.
15872
15873 2011-02-06  Bruno Haible  <bruno@clisp.org>
15874
15875         New module 'wcsstr'.
15876         * modules/wcsstr: New file.
15877         * lib/wchar.in.h (wcsstr): New declaration.
15878         * lib/wcsstr.c: New file.
15879         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15880         * m4/wcsstr.m4: New file.
15881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15884         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15885         * doc/posix-functions/wcsstr.texi: Mention the new module.
15886
15887 2011-02-06  Bruno Haible  <bruno@clisp.org>
15888
15889         New module 'wcspbrk'.
15890         * modules/wcspbrk: New file.
15891         * lib/wchar.in.h (wcspbrk): New declaration.
15892         * lib/wcspbrk.c: New file.
15893         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15894         * m4/wcspbrk.m4: New file.
15895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15898         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15899         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15900
15901 2011-02-06  Bruno Haible  <bruno@clisp.org>
15902
15903         New module 'wcsspn'.
15904         * modules/wcsspn: New file.
15905         * lib/wchar.in.h (wcsspn): New declaration.
15906         * lib/wcsspn.c: New file.
15907         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15908         * m4/wcsspn.m4: New file.
15909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15912         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15913         * doc/posix-functions/wcsspn.texi: Mention the new module.
15914
15915 2011-02-06  Bruno Haible  <bruno@clisp.org>
15916
15917         New module 'wcscspn'.
15918         * modules/wcscspn: New file.
15919         * lib/wchar.in.h (wcscspn): New declaration.
15920         * lib/wcscspn.c: New file.
15921         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15922         * m4/wcscspn.m4: New file.
15923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15926         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15927         * doc/posix-functions/wcscspn.texi: Mention the new module.
15928
15929 2011-02-06  Bruno Haible  <bruno@clisp.org>
15930
15931         New module 'wcsrchr'.
15932         * modules/wcsrchr: New file.
15933         * lib/wchar.in.h (wcsrchr): New declaration.
15934         * lib/wcsrchr.c: New file.
15935         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15936         * m4/wcsrchr.m4: New file.
15937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15940         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15941         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15942
15943 2011-02-06  Bruno Haible  <bruno@clisp.org>
15944
15945         New module 'wcschr'.
15946         * modules/wcschr: New file.
15947         * lib/wchar.in.h (wcschr): New declaration.
15948         * lib/wcschr.c: New file.
15949         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15950         * m4/wcschr.m4: New file.
15951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15954         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15955         * doc/posix-functions/wcschr.texi: Mention the new module.
15956
15957 2011-02-06  Bruno Haible  <bruno@clisp.org>
15958
15959         New module 'wcsdup'.
15960         * modules/wcsdup: New file.
15961         * lib/wchar.in.h (wcsdup): New declaration.
15962         * lib/wcsdup.c: New file.
15963         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15964         * m4/wcsdup.m4: New file.
15965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15968         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15969         * doc/posix-functions/wcsdup.texi: Mention the new module.
15970
15971 2011-02-06  Bruno Haible  <bruno@clisp.org>
15972
15973         New module 'wcsxfrm'.
15974         * modules/wcsxfrm: New file.
15975         * lib/wchar.in.h (wcsxfrm): New declaration.
15976         * lib/wcsxfrm.c: New file.
15977         * lib/wcsxfrm-impl.h: New file.
15978         * m4/wcsxfrm.m4: New file.
15979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15982         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15983         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15984
15985 2011-02-06  Bruno Haible  <bruno@clisp.org>
15986
15987         New module 'wcscoll'.
15988         * modules/wcscoll: New file.
15989         * lib/wchar.in.h (wcscoll): New declaration.
15990         * lib/wcscoll.c: New file.
15991         * lib/wcscoll-impl.h: New file.
15992         * m4/wcscoll.m4: New file.
15993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15996         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15997         * doc/posix-functions/wcscoll.texi: Mention the new module.
15998
15999 2011-02-06  Bruno Haible  <bruno@clisp.org>
16000
16001         New module 'wcsncasecmp'.
16002         * modules/wcsncasecmp: New file.
16003         * lib/wchar.in.h (wcsncasecmp): New declaration.
16004         * lib/wcsncasecmp.c: New file.
16005         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16006         * m4/wcsncasecmp.m4: New file.
16007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16010         HAVE_WCSNCASECMP.
16011         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16012         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16013
16014 2011-02-06  Bruno Haible  <bruno@clisp.org>
16015
16016         New module 'wcscasecmp'.
16017         * modules/wcscasecmp: New file.
16018         * lib/wchar.in.h (wcscasecmp): New declaration.
16019         * lib/wcscasecmp.c: New file.
16020         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16021         * m4/wcscasecmp.m4: New file.
16022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16025         HAVE_WCSCASECMP.
16026         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16027         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16028
16029 2011-02-05  Bruno Haible  <bruno@clisp.org>
16030
16031         New module 'wcsncmp'.
16032         * modules/wcsncmp: New file.
16033         * lib/wchar.in.h (wcsncmp): New declaration.
16034         * lib/wcsncmp.c: New file.
16035         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16036         * m4/wcsncmp.m4: New file.
16037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16040         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16041         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16042
16043 2011-02-05  Bruno Haible  <bruno@clisp.org>
16044
16045         New module 'wcscmp'.
16046         * modules/wcscmp: New file.
16047         * lib/wchar.in.h (wcscmp): New declaration.
16048         * lib/wcscmp.c: New file.
16049         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16050         * m4/wcscmp.m4: New file.
16051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16054         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16055         * doc/posix-functions/wcscmp.texi: Mention the new module.
16056
16057 2011-02-05  Bruno Haible  <bruno@clisp.org>
16058
16059         New module 'wcsncat'.
16060         * modules/wcsncat: New file.
16061         * lib/wchar.in.h (wcsncat): New declaration.
16062         * lib/wcsncat.c: New file.
16063         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16064         * m4/wcsncat.m4: New file.
16065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16068         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16069         * doc/posix-functions/wcsncat.texi: Mention the new module.
16070
16071 2011-02-05  Bruno Haible  <bruno@clisp.org>
16072
16073         New module 'wcscat'.
16074         * modules/wcscat: New file.
16075         * lib/wchar.in.h (wcscat): New declaration.
16076         * lib/wcscat.c: New file.
16077         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16078         * m4/wcscat.m4: New file.
16079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16082         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16083         * doc/posix-functions/wcscat.texi: Mention the new module.
16084
16085 2011-02-05  Bruno Haible  <bruno@clisp.org>
16086
16087         New module 'wcpncpy'.
16088         * modules/wcpncpy: New file.
16089         * lib/wchar.in.h (wcpncpy): New declaration.
16090         * lib/wcpncpy.c: New file.
16091         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16092         * m4/wcpncpy.m4: New file.
16093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16095         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16096         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16097         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16098
16099 2011-02-05  Bruno Haible  <bruno@clisp.org>
16100
16101         New module 'wcsncpy'.
16102         * modules/wcsncpy: New file.
16103         * lib/wchar.in.h (wcsncpy): New declaration.
16104         * lib/wcsncpy.c: New file.
16105         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16106         * m4/wcsncpy.m4: New file.
16107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16110         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16111         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16112
16113 2011-02-05  Bruno Haible  <bruno@clisp.org>
16114
16115         New module 'wcpcpy'.
16116         * modules/wcpcpy: New file.
16117         * lib/wchar.in.h (wcpcpy): New declaration.
16118         * lib/wcpcpy.c: New file.
16119         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16120         * m4/wcpcpy.m4: New file.
16121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16123         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16124         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16125         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16126
16127 2011-02-05  Bruno Haible  <bruno@clisp.org>
16128
16129         New module 'wcscpy'.
16130         * modules/wcscpy: New file.
16131         * lib/wchar.in.h (wcscpy): New declaration.
16132         * lib/wcscpy.c: New file.
16133         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16134         * m4/wcscpy.m4: New file.
16135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16138         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16139         * doc/posix-functions/wcscpy.texi: Mention the new module.
16140
16141 2011-02-05  Bruno Haible  <bruno@clisp.org>
16142
16143         New module 'wcsnlen'.
16144         * modules/wcsnlen: New file.
16145         * lib/wchar.in.h (wcsnlen): New declaration.
16146         * lib/wcsnlen.c: New file.
16147         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16148         * m4/wcsnlen.m4: New file.
16149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16152         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16153         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16154
16155 2011-02-05  Bruno Haible  <bruno@clisp.org>
16156
16157         New module 'wcslen'.
16158         * modules/wcslen: New file.
16159         * lib/wchar.in.h (wcslen): New declaration.
16160         * lib/wcslen.c: New file.
16161         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16162         * m4/wcslen.m4: New file.
16163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16166         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16167         * doc/posix-functions/wcslen.texi: Mention the new module.
16168
16169 2011-02-05  Bruno Haible  <bruno@clisp.org>
16170
16171         New module 'wmemset'.
16172         * modules/wmemset: New file.
16173         * lib/wchar.in.h (wmemset): New declaration.
16174         * lib/wmemset.c: New file.
16175         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16176         * m4/wmemset.m4: New file.
16177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16179         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16180         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16181         * doc/posix-functions/wmemset.texi: Mention the new module.
16182
16183 2011-02-05  Bruno Haible  <bruno@clisp.org>
16184
16185         New module 'wmemmove'.
16186         * modules/wmemmove: New file.
16187         * lib/wchar.in.h (wmemmove): New declaration.
16188         * lib/wmemmove.c: New file.
16189         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16190         * m4/wmemmove.m4: New file.
16191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16193         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16194         HAVE_WMEMMOVE.
16195         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16196         * doc/posix-functions/wmemmove.texi: Mention the new module.
16197
16198 2011-02-05  Bruno Haible  <bruno@clisp.org>
16199
16200         New module 'wmemcpy'.
16201         * modules/wmemcpy: New file.
16202         * lib/wchar.in.h (wmemcpy): New declaration.
16203         * lib/wmemcpy.c: New file.
16204         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16205         * m4/wmemcpy.m4: New file.
16206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16208         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16209         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16210         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16211
16212 2011-02-05  Bruno Haible  <bruno@clisp.org>
16213
16214         New module 'wmemcmp'.
16215         * modules/wmemcmp: New file.
16216         * lib/wchar.in.h (wmemcmp): New declaration.
16217         * lib/wmemcmp.c: New file.
16218         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16219         * m4/wmemcmp.m4: New file.
16220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16222         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16223         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16224         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16225
16226 2011-02-07  Jim Meyering  <meyering@redhat.com>
16227
16228         di-set, ino-map: new modules, from coreutils
16229         * lib/di-set.c: New file.
16230         * lib/di-set.h: Likewise.
16231         * lib/ino-map.c: Likewise.
16232         * lib/ino-map.h: Likewise.
16233         * modules/di-set: Likewise.
16234         * modules/di-set-tests: Likewise.
16235         * modules/ino-map: Likewise.
16236         * modules/ino-map-tests: Likewise.
16237         * tests/test-di-set.c: Likewise.
16238         * tests/test-ino-map.c: Likewise.
16239
16240 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16241
16242         getloadavg: merge minor changes from Emacs
16243
16244         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16245         (getloadavg): Use memset, not bzero.
16246
16247         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16248         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16249         clash (bug#86).
16250
16251 2010-11-14  Bruno Haible  <bruno@clisp.org>
16252
16253         Allow multiple gnulib generated replacements to coexist.
16254         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16255         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16256         * lib/langinfo.in.h (nl_item): Likewise.
16257         * lib/math.in.h (_NaN, NAN): Likewise.
16258         * lib/netdb.in.h (struct addrinfo): Likewise.
16259         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16260         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16261         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16262         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16263         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16264         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16265         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16266         pthread_mutexattr_init, pthread_mutexattr_settype,
16267         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16268         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16269         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16270         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16271         * lib/sched.in.h (struct sched_param): Likewise.
16272         * lib/se-selinux.in.h (security_class_t, security_context_t,
16273         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16274         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16275         lsetfilecon, fsetfilecon, security_check_context,
16276         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16277         Likewise.
16278         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16279         Likewise.
16280         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16281         _gl_function_taking_int_returning_void_t, union sigval,
16282         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16283         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16284         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16285         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16286         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16287         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16288         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16289         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16290         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16291         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16292         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16293         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16294         socklen_t, rpl_fd_isset): Likewise.
16295         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16296         * lib/sys_time.in.h (struct timeval): Likewise.
16297         * lib/sys_times.in.h (struct tms): Likewise.
16298         * lib/sys_utsname.in.h (struct utsname):
16299         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16300         * lib/unistd.in.h (getpagesize): Likewise.
16301         * lib/wchar.in.h (mbstate_t): Likewise.
16302         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16303         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16304         towlower, towupper): Likewise.
16305         Reported by Sam Steingold <sds@gnu.org>.
16306
16307 2011-02-05  Eric Blake  <eblake@redhat.com>
16308
16309         unsetenv: work around Haiku issues
16310         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16311         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16312
16313 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16314
16315         libposix: avoid calling error() within libposix
16316         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16317         is defined.
16318
16319 2011-02-05  Eric Blake  <eblake@redhat.com>
16320
16321         strerror_r-posix: port to cygwin
16322         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16323         implementation.
16324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16325         * tests/test-strerror_r.c (main): Fix test.
16326         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16327         issue.
16328
16329 2011-02-05  Bruno Haible  <bruno@clisp.org>
16330
16331         New module 'wmemchr'.
16332         * modules/wmemchr: New file.
16333         * lib/wchar.in.h (wmemchr): New declaration.
16334         * lib/wmemchr.c: New file.
16335         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16336         * m4/wmemchr.m4: New file.
16337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16339         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16340         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16341         * doc/posix-functions/wmemchr.texi: Mention the new module.
16342
16343 2011-02-04  Eric Blake  <eblake@redhat.com>
16344
16345         fdopendir: detect FreeBSD bug
16346         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16347         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16348
16349 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16350
16351         stdbool: do not define HAVE_STDBOOL_H
16352         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16353         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16354         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16355         imported from the latest Autoconf git.  It was motivated by Emacs,
16356         which uses gnulib but does not need HAVE_STDBOOL_H.
16357
16358 2011-02-04  Bruno Haible  <bruno@clisp.org>
16359
16360         wcsnrtombs: Prepare for new module wwcsnrtombs.
16361         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16362         * lib/wcsnrtombs.c: Include it.
16363         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16364
16365         wcsrtombs: Prepare for new module wwcsrtombs.
16366         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16367         * lib/wcsrtombs.c: Include it.
16368         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16369
16370         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16371         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16372         * lib/mbsnrtowcs.c: Include it.
16373         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16374
16375         mbsrtowcs: Prepare for new module mbsrtowwcs.
16376         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16377         * lib/mbsrtowcs.c: Include it.
16378         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16379
16380 2011-02-04  Bruno Haible  <bruno@clisp.org>
16381
16382         vasnprintf: Reduce use of malloc for small format strings.
16383         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16384         (arguments): Add room for the first 7 arguments.
16385         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16386         (char_directives, u8_directives, u16_directives, u32_directives): Add
16387         room for the first 7 directives.
16388         * lib/printf-parse.c: Include <string.h>.
16389         (PRINTF_PARSE): Change memory handling code so that it uses the first
16390         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16391         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16392         Reported by Pádraig Brady <P@draigbrady.com>.
16393
16394 2011-01-31  Eric Blake  <eblake@redhat.com>
16395
16396         dup2: work around Haiku bug
16397         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16398         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16399         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16400         * tests/test-dup2.c (main): Enhance test.
16401
16402 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16403
16404         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16405         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16406         declared by eglibc 2.11.2.
16407         * lib/stdio.in.h: Likewise.
16408
16409 2011-01-31  Eric Blake  <eblake@redhat.com>
16410
16411         ignore-value: add missing test dependency
16412         * tests/test-ignore-value.c: Revert previous change; stdio.h
16413         provides off_t.
16414         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16415
16416 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16417
16418         mktime: clarify long_int width checking
16419         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16420         the top level, to make it clearer that the assumption about
16421         long_int width is being checked.  See
16422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16423
16424 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16425
16426         ignore-value: Fix self-test.
16427         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16428
16429 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16430
16431         TYPE_MAXIMUM: avoid theoretically undefined behavior
16432         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16433         negative number, which the C Standard says has undefined behavior.
16434         In practice this is not a problem, but might as well do it by the book.
16435         Reported by Rich Felker and Eric Blake; see
16436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16437         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16438         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16440         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16441         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16442         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16443
16444         mktime: #undef mktime before #defining it
16445         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16446
16447         mktime: systematically normalize tm_isdst comparisons
16448         * lib/mktime.c (isdst_differ): New function.
16449         (__mktime_internal): Use it systematically for all isdst comparisons.
16450         This completes the fix for libc BZ #6723, and removes the need for
16451         normalizing tm_isdst.  See
16452         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16453         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16454
16455         mktime: fix some integer overflow issues and sidestep the rest
16456
16457         This was prompted by a bug report by Benjamin Lindner for MinGW
16458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16459         His bug is due to signed integer overflow (0 - INT_MIN), and I
16460         I scanned through mktime.c looking for other integer overflow
16461         problems, fixing all the bugs I found.
16462
16463         Although the C Standard says the resulting code is still not safe
16464         in the presence of integer overflow, in practice it should be good
16465         enough for all real-world two's-complement implementations, except
16466         for debugging environments that deliberately trap on integer
16467         overflow (e.g., gcc -ftrapv).
16468
16469         * lib/mktime.c (WRAPV): New macro.
16470         (SHR): Also check that long_int and time_t shift right in the
16471         usual way, before using the fast-but-unportable method.
16472         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16473         used.  The code already assumed two's complement, so there's
16474         no need to test for alternatives.  All uses removed.
16475         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16476         the C standard.  Problem reported by Rich Felker in
16477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16478         (twos_complement_arithmetic): Also check long_int and time_t.
16479         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16480         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16481         (__mktime_internal): Avoid integer overflow with unary subtraction
16482         in two instances where -1 - X is an adequate replacement for -X,
16483         since the calculations are approximate.
16484
16485 2011-01-29  Eric Blake  <eblake@redhat.com>
16486
16487         mktime: avoid infinite loop
16488         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16489         type; behavior is still undefined but portable to all known targets.
16490         Reported by Rich Felker.
16491
16492 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16493
16494         rename, unlink, same-inode: Relicense.
16495         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16496         * modules/unlink (License): Likewise.
16497         * modules/same-inode (License): Likewise.
16498
16499 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16500
16501         mktime: avoid problems on NetBSD 5 / i386
16502         * lib/mktime.c (long_int): New type.  This works around a problem
16503         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16504         but time_t is 64 bits, and where I expect the existing code is
16505         wrong in some cases.
16506         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16507         (ydhms_diff): Bring back the compile-time check for wide-enough
16508         year and yday.
16509
16510         mktime: fix misspelling in comment
16511         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16512         This merges all recent glibc changes of importance.
16513
16514 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16515
16516         move-if-change: cope with concurrent mv of identical file.
16517         * build-aux/move-if-change (CMPPROG): Accept environment
16518         variable as an override for `cmp'.
16519         (usage): Document CMPPROG.
16520         Adjust comparison to drop stdout.  Cope with failure of mv if
16521         the target file exists and is identical to the source, for
16522         parallel builds.
16523         Report from H.J. Lu against binutils in PR binutils/12283.
16524
16525 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16526
16527         * users.txt: Mention sharutils.
16528
16529 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16530
16531         * users.txt: Mention OATH Toolkit.
16532
16533 2011-01-27  Bruno Haible  <bruno@clisp.org>
16534
16535         Prepare for supporting FreeBSD 10.
16536         * build-aux/config.libpath: Remove handling of freebsd1*.
16537
16538 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16539
16540         Prepare for supporting FreeBSD 10.
16541         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16542         match FreeBSD 10.0.
16543
16544 2011-01-27  Bruno Haible  <bruno@clisp.org>
16545
16546         vma-iter, get-rusage-as: Add OpenBSD support.
16547         * modules/vma-iter (configure.ac): Test for mquery.
16548         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16549         * lib/vma-iter.c: Include <sys/mman.h>.
16550         (vma_iterate): Add an implementation based on mquery().
16551         * lib/resource-ext.h (get_rusage_as): Update comments.
16552         * lib/get-rusage-as.c: Likewise.
16553         * lib/get-rusage-data.c: Likewise.
16554
16555 2011-01-26  Karl Berry  <karl@gnu.org>
16556
16557         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16558         variables to make it easier to override the makeinfo program used.
16559
16560 2011-01-26  Eric Blake  <eblake@redhat.com>
16561
16562         fcntl: work around Haiku F_DUPFD bugs
16563         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16564         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16565         cloexec bit on duplication.
16566         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16567
16568 2011-01-26  Bruno Haible  <bruno@clisp.org>
16569
16570         Enable memory leak tests on AIX.
16571         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16572         * tests/test-fprintf-posix3.c (main): Likewise.
16573
16574 2011-01-26  Bruno Haible  <bruno@clisp.org>
16575
16576         Tests for module 'get-rusage-data'.
16577         * modules/get-rusage-data-tests: New file.
16578         * tests/test-get-rusage-data.c: New file.
16579
16580         New module 'get-rusage-data'.
16581         * lib/resource-ext.h (get_rusage_data): New declaration.
16582         * lib/get-rusage-data.c: New file.
16583         * modules/get-rusage-data: New file.
16584
16585 2011-01-25  Bruno Haible  <bruno@clisp.org>
16586
16587         get-rusage-as: Allow for easier testing.
16588         * lib/resource-ext.h (get_rusage_as): Add comment.
16589         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16590         (main): New function for interactive testing.
16591
16592 2011-01-25  Bruno Haible  <bruno@clisp.org>
16593
16594         vma-iter: Treat Haiku like BeOS.
16595         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16596         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16597
16598 2011-01-25  Eric Blake  <eblake@redhat.com>
16599
16600         c-stack: fix regression on cygwin when libsigsegv is present
16601         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16602
16603 2011-01-24  Bruno Haible  <bruno@clisp.org>
16604
16605         vma-iter: Avoid empty intervals.
16606         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16607         on an empty interval.
16608
16609 2011-01-24  Jim Meyering  <meyering@redhat.com>
16610
16611         u64: remove unnecessary #include
16612         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16613
16614 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16615
16616         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16617         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16618
16619 2011-01-23  Bruno Haible  <bruno@clisp.org>
16620
16621         New module 'vma-iter'.
16622         * lib/vma-iter.h: New file.
16623         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16624         * modules/vma-iter: New file.
16625         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16626         for get_rusage_as_via_iterator.
16627         (vma_iterate_callback): New function.
16628         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16629         * modules/get-rusage-as (Depends-on): Add vma-iter.
16630
16631 2011-01-23  Bruno Haible  <bruno@clisp.org>
16632
16633         uninorm: Tweak includes.
16634         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16635         Reported by Jim Meyering.
16636
16637 2011-01-23  Bruno Haible  <bruno@clisp.org>
16638
16639         get-rusage-as: Improve on NetBSD.
16640         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16641         /proc, like on FreeBSD.
16642
16643 2011-01-23  Jim Meyering  <meyering@redhat.com>
16644
16645         xreadlink.h: remove unnecessary #include
16646         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16647
16648         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16649         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16650
16651 2011-01-23  Bruno Haible  <bruno@clisp.org>
16652
16653         get-rusage-as: Fix bug.
16654         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16655         original limit when aborting the first loop.
16656
16657 2011-01-23  Bruno Haible  <bruno@clisp.org>
16658
16659         wctype: Ensure valid C syntax.
16660         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16661         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16662
16663 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16664
16665         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16667         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16668         as they are needed only for configure's test case.
16669         This removes two unnecessary symbols from config.h.
16670
16671         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16672         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16674         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16675         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16676         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16677         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16678         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16679         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16680         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16681         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16682         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16683         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16684         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16685         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16686         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16687         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16688         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16689
16690 2011-01-21  Eric Blake  <eblake@redhat.com>
16691
16692         maintainer-makefile: work with older git for submodule check
16693         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16694         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16695         Reported by Matthias Bolte.
16696
16697         bootstrap: minor portability fixes
16698         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16699         (usage): Omit leading capital and trailing . on help phrases, per
16700         GNU Coding Standards.
16701         (check_versions, top level): Prefix messages with script name.
16702
16703 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16704
16705         bootstrap: support --no-git option
16706         * build-aux/bootstrap: Add --no-git option, to be used when
16707         --gnulib-srcdir points to the exact desired checkout.
16708
16709 2011-01-21  Eric Blake  <eblake@redhat.com>
16710
16711         strerror_r-posix: work with glibc 2.13
16712         * lib/strerror_r.c (strerror_r): Fix return type.
16713
16714 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16715             Bruno Haible  <bruno@clisp.org>
16716
16717         uN_strstr: New unit tests.
16718         * modules/unistr/u8-strstr-tests: New file.
16719         * modules/unistr/u16-strstr-tests: New file.
16720         * modules/unistr/u32-strstr-tests: New file.
16721         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16722         * tests/unistr/test-u8-strstr.c: New file.
16723         * tests/unistr/test-u16-strstr.c: New file.
16724         * tests/unistr/test-u32-strstr.c: New file.
16725
16726 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16727             Bruno Haible  <bruno@clisp.org>
16728
16729         Make uN_strstr functions O(n) worst-case.
16730         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16731         16-bit and 32-bit unit cases, use the unibyte algorithm from
16732         lib/mbsstr.c.
16733         * lib/unistr/u8-strstr.c: Include <string.h>.
16734         (UNIT_IS_UINT8_T): New macro.
16735         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16736         (U_STRLEN, U_STRNLEN): New macros.
16737         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16738         (U_STRLEN, U_STRNLEN): New macros.
16739         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16740         (configure.ac): Update required libunistring version.
16741         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16742         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16743         malloca.
16744         (configure.ac): Update required libunistring version.
16745         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16746         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16747         malloca.
16748         (configure.ac): Update required libunistring version.
16749
16750 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16751             Bruno Haible  <bruno@clisp.org>
16752
16753         Prepare for faster uN_strstr functions.
16754         * lib/str-kmp.h: Support definable UNITs.
16755         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16756         needle_len argument.
16757         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16758         * lib/mbscasestr.c (mbscasestr): Likewise.
16759
16760 2011-01-21  Pádraig Brady <P@draigBrady.com>
16761
16762         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16763         * tests/test-malloca.c (main): Unset the environment variable
16764         to greatly speed up the test.
16765         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16766         * modules/malloca-tests: Depend on unsetenv.
16767
16768 2011-01-21  Pádraig Brady <P@draigBrady.com>
16769
16770         ignore-value: remove stdint dependency
16771         * lib/ignore-value.h: Remove <stdint.h>
16772         * modules/ignore-value: Remove stdint dependency.
16773
16774 2011-01-21  Jim Meyering  <meyering@redhat.com>
16775
16776         maint.mk: adjust variable name to be consistent with other gl_ vars
16777         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16778         to be lower case.
16779
16780 2011-01-20  Jim Meyering  <meyering@redhat.com>
16781
16782         maint.mk: make "check" depend on public-submodule-commit by default
16783         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16784
16785 2011-01-20  Bruno Haible  <bruno@clisp.org>
16786
16787         mbfile, mbiter: Complete change from 2008-12-21.
16788         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16789         * m4/mbiter.m4 (gl_MBITER): Likewise.
16790
16791 2011-01-20  Jim Meyering  <meyering@redhat.com>
16792
16793         init.sh: insert space between each function name and "()"
16794         * tests/init.sh: Make it a little easier to see that a function's
16795         name is "warn_", and not "warn" when looking at the first part of
16796         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16797
16798 2011-01-20  Jim Meyering  <meyering@redhat.com>
16799
16800         mountlist: clean up code formatting
16801         * lib/mountlist.c (read_file_system_list): Split a long line,
16802         correct bracing style, use NULL in place of "(struct statfs *)0",
16803         don't parenthesize return value, add spaces around "=" and after
16804         ";-in-for-stmt".
16805
16806 2011-01-14  Markus Duft <mduft@gentoo.org>
16807
16808         mountlist: add support for Interix
16809         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16810         Apply statvfs to all entries of /dev/fs.
16811         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16812         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16813
16814 2011-01-20  Jim Meyering  <meyering@redhat.com>
16815
16816         maint.mk: improve the public-submodule-commit rule
16817         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16818         to suppress printing of its commands... unless V=1.
16819         Add git submodule's --quiet option to suppress printing of e.g.,
16820         "Entering gnulib" output.
16821         "cd" into $(srcdir) before running git submodule.
16822
16823 2011-01-20  Bruno Haible  <bruno@clisp.org>
16824
16825         include_next: Fix bug introduced on 2011-01-18.
16826         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16827         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16828         ac_cv_header_... variable if the second argument is not 'check'.
16829         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16830         gl_NEXT_HEADERS_INTERNAL.
16831
16832 2011-01-20  Bruno Haible  <bruno@clisp.org>
16833
16834         Allow the user to avoid the GNULIB_TEST_* macros.
16835         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16836         Suggested by Paul Eggert.
16837
16838 2011-01-14  Jim Meyering  <meyering@redhat.com>
16839
16840         bootstrap: avoid failure when there is no .gitmodules file
16841         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16842         has been assigned to, even when its value is the empty string.
16843         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16844         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16845         Reported by John W. Eaton <jwe@gnu.org>.
16846
16847 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         assume <ctype.h>, ..., <time.h> exist
16850         For years gnulib has been assuming the existence of the headers
16851         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16852         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16853         them, since they don't appear to be needed.
16854         * README (Portability guidelines): Document this.
16855         * lib/flock.c: Assume <fcntl.h> exists.
16856         * lib/regex_internal.h: Assume <locale.h> exists.
16857         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16858         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16859         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16860         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16861         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16862         * m4/regex.m4 (gl_REGEX): Likewise.
16863         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16864         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16865         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16866         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16867         * tests/test-argp.c: Likewise.
16868         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16869
16870         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16871         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16872         AA_APPLE_UNIVERSAL_BUILD.  See
16873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16874         * NEWS: Document this.
16875
16876 2011-01-19  Eric Blake  <eblake@redhat.com>
16877
16878         c-stack: assume stack overflow if SA_SIGINFO unsupported
16879         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16880         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16881         sigaction will work.
16882         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16883         behavior match Linux.
16884         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16885
16886         stdbool-tests: accomodate Haiku
16887         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16888
16889         binary-io: fix O_TEXT on Haiku
16890         * modules/binary-io (Depends-on): Add fcntl-h.
16891         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16892         than blindly undefining O_TEXT.
16893         Reported by Scott McCreary.
16894
16895 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16896
16897         include_next: do not check for standard headers like stddef.h
16898
16899         I found this problem when modifying Emacs to use gnulib.
16900         I noticed that it added HAVE_STDDEF_H to config.h, even though
16901         gnulib always assumes <stddef.h> exists as per README and this
16902         symbol is unnecessary.
16903         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16904         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16905         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16906         faster for headers like stddef.h that are known to exist.
16907         (gl_CHECK_NEXT_HEADERS): Use it.
16908         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16909         rather than gl_CHECK_NEXT_HEADERS.
16910         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16911         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16912
16913 2011-01-18  Eric Blake  <eblake@redhat.com>
16914
16915         ansi-c++-opt: skip C++ dependency style if C++ is unused
16916         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16917         tests when we know C++ compilation is not desired.
16918         Reported by Scott McCreary.
16919
16920 2011-01-18  Bruno Haible  <bruno@clisp.org>
16921
16922         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16923         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16924         (main): Perform test also when getrlimit and setrlimit don't exist or
16925         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16926         limiting the address space size using setrlimit, compare the address
16927         space size before and after the the test.
16928         * tests/test-dprintf-posix2.c: Likewise.
16929         * tests/test-fprintf-posix3.sh: Update skip messages.
16930         * tests/test-dprintf-posix2.sh: Likewise.
16931         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16932         * modules/dprintf-posix-tests (Depends-on): Likewise.
16933         Reported by Bruce Korb <bkorb@gnu.org> and
16934         Gary V. Vaughan <gary@gnu.org>.
16935
16936 2011-01-18  Bruno Haible  <bruno@clisp.org>
16937
16938         get-rusage-as: Improvement for Cygwin.
16939         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16940         areas that are merely reserved.
16941
16942 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16943
16944         strftime: remove dependencies on multibyte modules
16945
16946         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16947         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16948         only if __osf__ is defined, and I suspect OSF doesn't need these
16949         other modules.  If my guess is wrong, we'll need to come up with a
16950         variant of strftime that doesn't need the multibyte modules.
16951
16952         I discovered this problem when attempting modify Emacs to use the
16953         strftime module.  With the previous gnulib, this caused Emacs to
16954         need 31 new files, ranging from lib/config.charset to
16955         m4/wint_t.m4.  This was overkill and I expect would be offputting
16956         to the Emacs maintainers.  After this change, only 6 new files are
16957         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16958         stdbool.m4, and tm_gmtoff.m4.
16959
16960         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16961         Suggested by Bruno Haible in
16962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16963         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16964         and do not check for wchar.h.
16965         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16966         (Depends-on): Remove mbrlen, mbsinit, wchar.
16967
16968 2011-01-18  Bruno Haible  <bruno@clisp.org>
16969
16970         Tests for module 'get-rusage-as'.
16971         * modules/get-rusage-as-tests: New file.
16972         * tests/test-get-rusage-as.c: New file.
16973
16974         New module 'get-rusage-as'.
16975         * modules/get-rusage-as: New file.
16976         * lib/resource-ext.h: New file.
16977         * lib/get-rusage-as.c: New file.
16978
16979 2011-01-17  Eric Blake  <eblake@redhat.com>
16980
16981         sigaction: relax license from LGPLv3+ to LGPLv2+
16982         * modules/sigaction (License): Relax to LGPLv2+.
16983
16984 2011-01-14  Bruno Haible  <bruno@clisp.org>
16985
16986         filemode: Make function declarations usable in C++ mode.
16987         * lib/filemode.h: Enclose function declarations in extern "C" block.
16988         Reported by John W. Eaton <jwe@gnu.org>.
16989
16990 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16991
16992         save-cwd: no longer include "xgetcwd.h"
16993         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16994         This avoids a compilation failure in projects that use save-cwd
16995         without also using the xgetcwd module.
16996
16997 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17000         This is so that a program like Emacs, which needs only dtoastr,
17001         does not have to bother with distributing and compiling ftoastr
17002         and ldtoastr.
17003         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17004         * modules/dtoastr, modules/ldtoastr: New files.
17005         * modules/ftoastr: Now works just for 'float'.
17006         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17007         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17008         dtoastr.c, ldtoastr.c.
17009
17010 2011-01-11  Jim Meyering  <meyering@redhat.com>
17011
17012         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17013         There is no need to work around the lack of the fchdir function,
17014         since gnulib can now provide a replacement when required.
17015         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17016         * modules/save-cwd (Depends-on): Add fchdir.
17017
17018 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17019
17020         openat, save-cwd: avoid xmalloc
17021
17022         This removes a direct (but undocumented) dependency of openat on
17023         xalloc, along with an indirect dependency via save-cwd.  It also
17024         removes a dependency of save-cwd on xgetcwd, and thereby
17025         indirectly on xalloc.  This change causes the openat substitute
17026         to fall back on save_cwd when memory is tight, and for save_cwd to
17027         fail instead of dying when memory is tight, but that's good enough.
17028         Problem and initial idea for fix reported by Bastien Roucaries in
17029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17030
17031         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17032         xalloc.h (for xmalloc).
17033         (openat_proc_name): Use malloc, not xmalloc.
17034         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17035         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17036
17037         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17038         This avoids heap allocation for file names whose lengths are in
17039         the range 512..1023, with the upper bound increasing to at most
17040         4031 depending on the platform's PATH_MAX.  (We do not want
17041         pathmax.h here as it might supply a non-constant PATH_MAX.)
17042         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17043         Perhaps they should be moved to malloca.h?
17044         (OPENAT_BUFFER_SIZE): Use them.
17045
17046 2011-01-10  Bruno Haible  <bruno@clisp.org>
17047
17048         doc: Update users.txt.
17049         * users.txt: Add recutils.
17050
17051 2011-01-09  Karl Berry  <karl@gnu.org>
17052
17053         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17054
17055         * doc/configmake.texi: New file.
17056         * doc/gnulib.texi: Include it.
17057         * modules/configmake: Move documentation from here.
17058
17059 2011-01-09  Bruno Haible  <bruno@clisp.org>
17060
17061         Update to Unicode 6.0.0.
17062         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17063         (get_lbp): Update for Unicode 6.0.0.
17064         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17065         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17066         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17067         U+11001, U+11038..U+11046. Remove U+06DE.
17068         (uc_width): Fix bounds of planes.
17069         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17070         lib/uniwidth/width.c.
17071         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17072         trailing whitespace removed.
17073         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17074         without comments, but with the original copyright notice.
17075         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17076         * lib/unicase/ignorable.h: Likewise.
17077         * lib/unicase/tocasefold.h: Likewise.
17078         * lib/unicase/tolower.h: Likewise.
17079         * lib/unicase/totitle.h: Likewise.
17080         * lib/unicase/toupper.h: Likewise.
17081         * lib/unictype/bidi_of.h: Likewise.
17082         * lib/unictype/blocks.h: Likewise.
17083         * lib/unictype/categ_C.h: Likewise.
17084         * lib/unictype/categ_Cn.h: Likewise.
17085         * lib/unictype/categ_L.h: Likewise.
17086         * lib/unictype/categ_Ll.h: Likewise.
17087         * lib/unictype/categ_Lm.h: Likewise.
17088         * lib/unictype/categ_Lo.h: Likewise.
17089         * lib/unictype/categ_Lu.h: Likewise.
17090         * lib/unictype/categ_M.h: Likewise.
17091         * lib/unictype/categ_Mc.h: Likewise.
17092         * lib/unictype/categ_Me.h: Likewise.
17093         * lib/unictype/categ_Mn.h: Likewise.
17094         * lib/unictype/categ_N.h: Likewise.
17095         * lib/unictype/categ_Nd.h: Likewise.
17096         * lib/unictype/categ_No.h: Likewise.
17097         * lib/unictype/categ_P.h: Likewise.
17098         * lib/unictype/categ_Po.h: Likewise.
17099         * lib/unictype/categ_S.h: Likewise.
17100         * lib/unictype/categ_Sc.h: Likewise.
17101         * lib/unictype/categ_Sk.h: Likewise.
17102         * lib/unictype/categ_Sm.h: Likewise.
17103         * lib/unictype/categ_So.h: Likewise.
17104         * lib/unictype/categ_of.h: Likewise.
17105         * lib/unictype/combining.h: Likewise.
17106         * lib/unictype/ctype_alnum.h: Likewise.
17107         * lib/unictype/ctype_alpha.h: Likewise.
17108         * lib/unictype/ctype_graph.h: Likewise.
17109         * lib/unictype/ctype_lower.h: Likewise.
17110         * lib/unictype/ctype_print.h: Likewise.
17111         * lib/unictype/ctype_punct.h: Likewise.
17112         * lib/unictype/ctype_upper.h: Likewise.
17113         * lib/unictype/decdigit.h: Likewise.
17114         * lib/unictype/digit.h: Likewise.
17115         * lib/unictype/numeric.h: Likewise.
17116         * lib/unictype/pr_alphabetic.h: Likewise.
17117         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17118         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17119         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17120         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17121         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17122         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17123         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17124         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17125         * lib/unictype/pr_case_ignorable.h: Likewise.
17126         * lib/unictype/pr_cased.h: Likewise.
17127         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17128         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17129         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17130         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17131         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17132         * lib/unictype/pr_combining.h: Likewise.
17133         * lib/unictype/pr_composite.h: Likewise.
17134         * lib/unictype/pr_currency_symbol.h: Likewise.
17135         * lib/unictype/pr_decimal_digit.h: Likewise.
17136         * lib/unictype/pr_deprecated.h: Likewise.
17137         * lib/unictype/pr_format_control.h: Likewise.
17138         * lib/unictype/pr_grapheme_base.h: Likewise.
17139         * lib/unictype/pr_grapheme_extend.h: Likewise.
17140         * lib/unictype/pr_grapheme_link.h: Likewise.
17141         * lib/unictype/pr_id_continue.h: Likewise.
17142         * lib/unictype/pr_id_start.h: Likewise.
17143         * lib/unictype/pr_ideographic.h: Likewise.
17144         * lib/unictype/pr_lowercase.h: Likewise.
17145         * lib/unictype/pr_math.h: Likewise.
17146         * lib/unictype/pr_numeric.h: Likewise.
17147         * lib/unictype/pr_other_alphabetic.h: Likewise.
17148         * lib/unictype/pr_other_id_continue.h: Likewise.
17149         * lib/unictype/pr_other_math.h: Likewise.
17150         * lib/unictype/pr_punctuation.h: Likewise.
17151         * lib/unictype/pr_sentence_terminal.h: Likewise.
17152         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17153         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17154         * lib/unictype/pr_unified_ideograph.h: Likewise.
17155         * lib/unictype/pr_uppercase.h: Likewise.
17156         * lib/unictype/pr_xid_continue.h: Likewise.
17157         * lib/unictype/pr_xid_start.h: Likewise.
17158         * lib/unictype/scripts.h: Likewise.
17159         * lib/unictype/scripts_byname.gperf: Likewise.
17160         * lib/unictype/sy_java_ident.h: Likewise.
17161         * lib/unigbrk/gbrkprop.h: Likewise.
17162         * lib/unilbrk/lbrkprop1.h: Likewise.
17163         * lib/unilbrk/lbrkprop2.h: Likewise.
17164         * lib/uninorm/decomposition-table2.h: Likewise.
17165         * lib/uniwbrk/wbrkprop.h: Likewise.
17166         * tests/unicase/test-cased.c: Likewise.
17167         * tests/unicase/test-ignorable.c: Likewise.
17168         * tests/unicase/test-uc_tolower.c: Likewise.
17169         * tests/unicase/test-uc_totitle.c: Likewise.
17170         * tests/unicase/test-uc_toupper.c: Likewise.
17171         * tests/unictype/test-categ_C.c: Likewise.
17172         * tests/unictype/test-categ_Cn.c: Likewise.
17173         * tests/unictype/test-categ_L.c: Likewise.
17174         * tests/unictype/test-categ_Ll.c: Likewise.
17175         * tests/unictype/test-categ_Lm.c: Likewise.
17176         * tests/unictype/test-categ_Lo.c: Likewise.
17177         * tests/unictype/test-categ_Lu.c: Likewise.
17178         * tests/unictype/test-categ_M.c: Likewise.
17179         * tests/unictype/test-categ_Mc.c: Likewise.
17180         * tests/unictype/test-categ_Me.c: Likewise.
17181         * tests/unictype/test-categ_Mn.c: Likewise.
17182         * tests/unictype/test-categ_N.c: Likewise.
17183         * tests/unictype/test-categ_Nd.c: Likewise.
17184         * tests/unictype/test-categ_No.c: Likewise.
17185         * tests/unictype/test-categ_P.c: Likewise.
17186         * tests/unictype/test-categ_Po.c: Likewise.
17187         * tests/unictype/test-categ_S.c: Likewise.
17188         * tests/unictype/test-categ_Sc.c: Likewise.
17189         * tests/unictype/test-categ_Sk.c: Likewise.
17190         * tests/unictype/test-categ_Sm.c: Likewise.
17191         * tests/unictype/test-categ_So.c: Likewise.
17192         * tests/unictype/test-ctype_alnum.c: Likewise.
17193         * tests/unictype/test-ctype_alpha.c: Likewise.
17194         * tests/unictype/test-ctype_graph.c: Likewise.
17195         * tests/unictype/test-ctype_lower.c: Likewise.
17196         * tests/unictype/test-ctype_print.c: Likewise.
17197         * tests/unictype/test-ctype_punct.c: Likewise.
17198         * tests/unictype/test-ctype_upper.c: Likewise.
17199         * tests/unictype/test-decdigit.h: Likewise.
17200         * tests/unictype/test-digit.h: Likewise.
17201         * tests/unictype/test-numeric.h: Likewise.
17202         * tests/unictype/test-pr_alphabetic.c: Likewise.
17203         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17204         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17205         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17206         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17207         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17208         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17209         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17210         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17211         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17212         * tests/unictype/test-pr_cased.c: Likewise.
17213         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17214         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17215         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17216         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17217         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17218         * tests/unictype/test-pr_combining.c: Likewise.
17219         * tests/unictype/test-pr_composite.c: Likewise.
17220         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17221         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17222         * tests/unictype/test-pr_deprecated.c: Likewise.
17223         * tests/unictype/test-pr_format_control.c: Likewise.
17224         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17225         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17226         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17227         * tests/unictype/test-pr_id_continue.c: Likewise.
17228         * tests/unictype/test-pr_id_start.c: Likewise.
17229         * tests/unictype/test-pr_ideographic.c: Likewise.
17230         * tests/unictype/test-pr_lowercase.c: Likewise.
17231         * tests/unictype/test-pr_math.c: Likewise.
17232         * tests/unictype/test-pr_numeric.c: Likewise.
17233         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17234         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17235         * tests/unictype/test-pr_other_math.c: Likewise.
17236         * tests/unictype/test-pr_punctuation.c: Likewise.
17237         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17238         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17239         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17240         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17241         * tests/unictype/test-pr_uppercase.c: Likewise.
17242         * tests/unictype/test-pr_xid_continue.c: Likewise.
17243         * tests/unictype/test-pr_xid_start.c: Likewise.
17244         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17245         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17246         changes.
17247         * lib/unictype/categ_Cc.h: Likewise.
17248         * lib/unictype/categ_Cf.h: Likewise.
17249         * lib/unictype/categ_Co.h: Likewise.
17250         * lib/unictype/categ_Cs.h: Likewise.
17251         * lib/unictype/categ_Lt.h: Likewise.
17252         * lib/unictype/categ_Nl.h: Likewise.
17253         * lib/unictype/categ_Pc.h: Likewise.
17254         * lib/unictype/categ_Pd.h: Likewise.
17255         * lib/unictype/categ_Pe.h: Likewise.
17256         * lib/unictype/categ_Pf.h: Likewise.
17257         * lib/unictype/categ_Pi.h: Likewise.
17258         * lib/unictype/categ_Ps.h: Likewise.
17259         * lib/unictype/categ_Z.h: Likewise.
17260         * lib/unictype/categ_Zl.h: Likewise.
17261         * lib/unictype/categ_Zp.h: Likewise.
17262         * lib/unictype/categ_Zs.h: Likewise.
17263         * lib/unictype/ctype_blank.h: Likewise.
17264         * lib/unictype/ctype_cntrl.h: Likewise.
17265         * lib/unictype/ctype_digit.h: Likewise.
17266         * lib/unictype/ctype_space.h: Likewise.
17267         * lib/unictype/ctype_xdigit.h: Likewise.
17268         * lib/unictype/mirror.h: Likewise.
17269         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17270         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17271         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17272         * lib/unictype/pr_bidi_control.h: Likewise.
17273         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17274         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17275         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17276         * lib/unictype/pr_bidi_pdf.h: Likewise.
17277         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17278         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17279         * lib/unictype/pr_dash.h: Likewise.
17280         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17281         * lib/unictype/pr_diacritic.h: Likewise.
17282         * lib/unictype/pr_extender.h: Likewise.
17283         * lib/unictype/pr_hex_digit.h: Likewise.
17284         * lib/unictype/pr_hyphen.h: Likewise.
17285         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17286         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17287         * lib/unictype/pr_ignorable_control.h: Likewise.
17288         * lib/unictype/pr_iso_control.h: Likewise.
17289         * lib/unictype/pr_join_control.h: Likewise.
17290         * lib/unictype/pr_left_of_pair.h: Likewise.
17291         * lib/unictype/pr_line_separator.h: Likewise.
17292         * lib/unictype/pr_logical_order_exception.h: Likewise.
17293         * lib/unictype/pr_non_break.h: Likewise.
17294         * lib/unictype/pr_not_a_character.h: Likewise.
17295         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17296         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17297         * lib/unictype/pr_other_id_start.h: Likewise.
17298         * lib/unictype/pr_other_lowercase.h: Likewise.
17299         * lib/unictype/pr_other_uppercase.h: Likewise.
17300         * lib/unictype/pr_paired_punctuation.h: Likewise.
17301         * lib/unictype/pr_paragraph_separator.h: Likewise.
17302         * lib/unictype/pr_pattern_syntax.h: Likewise.
17303         * lib/unictype/pr_pattern_white_space.h: Likewise.
17304         * lib/unictype/pr_private_use.h: Likewise.
17305         * lib/unictype/pr_quotation_mark.h: Likewise.
17306         * lib/unictype/pr_radical.h: Likewise.
17307         * lib/unictype/pr_soft_dotted.h: Likewise.
17308         * lib/unictype/pr_space.h: Likewise.
17309         * lib/unictype/pr_titlecase.h: Likewise.
17310         * lib/unictype/pr_variation_selector.h: Likewise.
17311         * lib/unictype/pr_white_space.h: Likewise.
17312         * lib/unictype/pr_zero_width.h: Likewise.
17313         * lib/unictype/sy_c_ident.h: Likewise.
17314         * lib/unictype/sy_c_whitespace.h: Likewise.
17315         * lib/unictype/sy_java_whitespace.h: Likewise.
17316         * lib/uninorm/composition-table.gperf: Likewise.
17317         * lib/uninorm/decomposition-table1.h: Likewise.
17318         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17319         LB8.
17320         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17321         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17322         * modules/unictype/*: Bump version number of expected libunistring
17323         version.
17324
17325 2011-01-09  Bruno Haible  <bruno@clisp.org>
17326
17327         Update to Unicode 5.2.0.
17328         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17329         trailing whitespace removed.
17330
17331 2011-01-09  Bruno Haible  <bruno@clisp.org>
17332
17333         New Unicode character properties, from Unicode 5.2.0.
17334         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17335         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17336         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17337         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17338         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17339         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17340         uc_is_property_cased, uc_is_property_case_ignorable,
17341         uc_is_property_changes_when_lowercased,
17342         uc_is_property_changes_when_uppercased,
17343         uc_is_property_changes_when_titlecased,
17344         uc_is_property_changes_when_casefolded,
17345         uc_is_property_changes_when_casemapped): New declarations.
17346         * lib/unictype/pr_byname.gperf: Add the new properties.
17347         * modules/unictype/property-byname (Depends-on): Depend on the new
17348         properties modules.
17349         * modules/unictype/property-all (Depends-on): Likewise.
17350         * MODULES.html.sh (Unicode string functions): Add
17351         unictype/property-case-ignorable, unictype/property-cased,
17352         unictype/property-changes-when-casefolded,
17353         unictype/property-changes-when-casemapped,
17354         unictype/property-changes-when-lowercased,
17355         unictype/property-changes-when-titlecased,
17356         unictype/property-changes-when-uppercased.
17357
17358         New module 'unictype/property-changes-when-casemapped'.
17359         * modules/unictype/property-changes-when-casemapped: New file.
17360         * lib/unictype/pr_changes_when_casemapped.c: New file.
17361         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17362         generated by gen-uni-tables.
17363         * modules/unictype/property-changes-when-casemapped-tests: New file.
17364         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17365         automatically generated by gen-uni-tables.
17366
17367         New module 'unictype/property-changes-when-casefolded'.
17368         * modules/unictype/property-changes-when-casefolded: New file.
17369         * lib/unictype/pr_changes_when_casefolded.c: New file.
17370         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17371         generated by gen-uni-tables.
17372         * modules/unictype/property-changes-when-casefolded-tests: New file.
17373         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17374         automatically generated by gen-uni-tables.
17375
17376         New module 'unictype/property-changes-when-titlecased'.
17377         * modules/unictype/property-changes-when-titlecased: New file.
17378         * lib/unictype/pr_changes_when_titlecased.c: New file.
17379         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17380         generated by gen-uni-tables.
17381         * modules/unictype/property-changes-when-titlecased-tests: New file.
17382         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17383         automatically generated by gen-uni-tables.
17384
17385         New module 'unictype/property-changes-when-uppercased'.
17386         * modules/unictype/property-changes-when-uppercased: New file.
17387         * lib/unictype/pr_changes_when_uppercased.c: New file.
17388         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17389         generated by gen-uni-tables.
17390         * modules/unictype/property-changes-when-uppercased-tests: New file.
17391         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17392         automatically generated by gen-uni-tables.
17393
17394         New module 'unictype/property-changes-when-lowercased'.
17395         * modules/unictype/property-changes-when-lowercased: New file.
17396         * lib/unictype/pr_changes_when_lowercased.c: New file.
17397         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17398         generated by gen-uni-tables.
17399         * modules/unictype/property-changes-when-lowercased-tests: New file.
17400         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17401         automatically generated by gen-uni-tables.
17402
17403         New module 'unictype/property-case-ignorable'.
17404         * modules/unictype/property-case-ignorable: New file.
17405         * lib/unictype/pr_case_ignorable.c: New file.
17406         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17407         by gen-uni-tables.
17408         * modules/unictype/property-case-ignorable-tests: New file.
17409         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17410         generated by gen-uni-tables.
17411
17412         New module 'unictype/property-cased'.
17413         * modules/unictype/property-cased: New file.
17414         * lib/unictype/pr_cased.c: New file.
17415         * lib/unictype/pr_cased.h: New file, automatically generated by
17416         gen-uni-tables.
17417         * modules/unictype/property-cased-tests: New file.
17418         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17419         gen-uni-tables.
17420
17421 2011-01-09  Bruno Haible  <bruno@clisp.org>
17422
17423         Update to Unicode 5.2.0.
17424         * lib/gen-uni-tables.c (output_predicate, output_category,
17425         output_combclass, output_bidi_category, output_decimal_digit_test,
17426         output_decimal_digit, output_digit_test, output_digit,
17427         output_numeric_test, output_numeric, output_mirror, output_scripts,
17428         output_scripts_byname, output_blocks, output_ident_category): Fix
17429         comment header.
17430         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17431         get_wbp.
17432         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17433         items.
17434         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17435         Changes_When_Lowercased, Changes_When_Uppercased,
17436         Changes_When_Titlecased, Changes_When_Casefolded,
17437         Changes_When_Casemapped.
17438         (is_property_alphabetic, is_property_default_ignorable_code_point):
17439         Update for Unicode 5.2.0.
17440         (is_property_cased, is_property_case_ignorable,
17441         is_property_changes_when_lowercased,
17442         is_property_changes_when_uppercased,
17443         is_property_changes_when_titlecased,
17444         is_property_changes_when_casefolded,
17445         is_property_changes_when_casemapped): New functions.
17446         (output_properties): Output also the properties cased, case_ignorable,
17447         changes_when_lowercased, changes_when_uppercased,
17448         changes_when_titlecased, changes_when_casefolded,
17449         changes_when_casemapped.
17450         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17451         Unicode TR#11 revision 17 -> 19.
17452         (LBP_CP): New enumeration value.
17453         (LBP_*): Adjust values accordingly.
17454         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17455         TR#14 revision 22 -> 24.
17456         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17457         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17458         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17459         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17460         is_WBP_MIDLETTER.
17461         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17462         the code1 and code2 of each composition rule.
17463         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17464         * lib/unicase/ignorable.h: Likewise.
17465         * lib/unicase/tocasefold.h: Likewise.
17466         * lib/unicase/tolower.h: Likewise.
17467         * lib/unicase/totitle.h: Likewise.
17468         * lib/unicase/toupper.h: Likewise.
17469         * lib/unictype/bidi_of.h: Likewise.
17470         * lib/unictype/blocks.h: Likewise.
17471         * lib/unictype/categ_C.h: Likewise.
17472         * lib/unictype/categ_Cf.h: Likewise.
17473         * lib/unictype/categ_Cn.h: Likewise.
17474         * lib/unictype/categ_L.h: Likewise.
17475         * lib/unictype/categ_Ll.h: Likewise.
17476         * lib/unictype/categ_Lm.h: Likewise.
17477         * lib/unictype/categ_Lo.h: Likewise.
17478         * lib/unictype/categ_Lu.h: Likewise.
17479         * lib/unictype/categ_M.h: Likewise.
17480         * lib/unictype/categ_Mc.h: Likewise.
17481         * lib/unictype/categ_Mn.h: Likewise.
17482         * lib/unictype/categ_N.h: Likewise.
17483         * lib/unictype/categ_Nd.h: Likewise.
17484         * lib/unictype/categ_Nl.h: Likewise.
17485         * lib/unictype/categ_No.h: Likewise.
17486         * lib/unictype/categ_P.h: Likewise.
17487         * lib/unictype/categ_Pd.h: Likewise.
17488         * lib/unictype/categ_Po.h: Likewise.
17489         * lib/unictype/categ_S.h: Likewise.
17490         * lib/unictype/categ_Sc.h: Likewise.
17491         * lib/unictype/categ_So.h: Likewise.
17492         * lib/unictype/categ_of.h: Likewise.
17493         * lib/unictype/combining.h: Likewise.
17494         * lib/unictype/ctype_alnum.h: Likewise.
17495         * lib/unictype/ctype_alpha.h: Likewise.
17496         * lib/unictype/ctype_graph.h: Likewise.
17497         * lib/unictype/ctype_lower.h: Likewise.
17498         * lib/unictype/ctype_print.h: Likewise.
17499         * lib/unictype/ctype_punct.h: Likewise.
17500         * lib/unictype/ctype_upper.h: Likewise.
17501         * lib/unictype/decdigit.h: Likewise.
17502         * lib/unictype/digit.h: Likewise.
17503         * lib/unictype/numeric.h: Likewise.
17504         * lib/unictype/pr_alphabetic.h: Likewise.
17505         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17506         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17507         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17508         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17509         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17510         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17511         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17512         * lib/unictype/pr_combining.h: Likewise.
17513         * lib/unictype/pr_composite.h: Likewise.
17514         * lib/unictype/pr_currency_symbol.h: Likewise.
17515         * lib/unictype/pr_dash.h: Likewise.
17516         * lib/unictype/pr_decimal_digit.h: Likewise.
17517         * lib/unictype/pr_deprecated.h: Likewise.
17518         * lib/unictype/pr_diacritic.h: Likewise.
17519         * lib/unictype/pr_extender.h: Likewise.
17520         * lib/unictype/pr_grapheme_base.h: Likewise.
17521         * lib/unictype/pr_grapheme_extend.h: Likewise.
17522         * lib/unictype/pr_grapheme_link.h: Likewise.
17523         * lib/unictype/pr_id_continue.h: Likewise.
17524         * lib/unictype/pr_id_start.h: Likewise.
17525         * lib/unictype/pr_ideographic.h: Likewise.
17526         * lib/unictype/pr_ignorable_control.h: Likewise.
17527         * lib/unictype/pr_logical_order_exception.h: Likewise.
17528         * lib/unictype/pr_lowercase.h: Likewise.
17529         * lib/unictype/pr_numeric.h: Likewise.
17530         * lib/unictype/pr_other_alphabetic.h: Likewise.
17531         * lib/unictype/pr_punctuation.h: Likewise.
17532         * lib/unictype/pr_sentence_terminal.h: Likewise.
17533         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17534         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17535         * lib/unictype/pr_unified_ideograph.h: Likewise.
17536         * lib/unictype/pr_uppercase.h: Likewise.
17537         * lib/unictype/pr_xid_continue.h: Likewise.
17538         * lib/unictype/pr_xid_start.h: Likewise.
17539         * lib/unictype/pr_zero_width.h: Likewise.
17540         * lib/unictype/scripts.h: Likewise.
17541         * lib/unictype/scripts_byname.gperf: Likewise.
17542         * lib/unictype/sy_java_ident.h: Likewise.
17543         * lib/unigbrk/gbrkprop.h: Likewise.
17544         * lib/unilbrk/lbrkprop1.h: Likewise.
17545         * lib/unilbrk/lbrkprop2.h: Likewise.
17546         * lib/unilbrk/lbrktables.h: Likewise.
17547         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17548         LBP_CP. Implement rule LB30.
17549         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17550         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17551         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17552         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17553         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17554         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17555         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17556         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17557         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17558         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17559         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17560         bits instead of 16 bits in the code1 and code2 of each composition
17561         rule.
17562         (uc_composition): Update for Unicode 5.2.0.
17563         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17564         * lib/uninorm/decomposition-table2.h: Likewise.
17565         * lib/uniwbrk/wbrkprop.h: Likewise.
17566         * tests/unicase/test-cased.c: Likewise.
17567         * tests/unicase/test-ignorable.c: Likewise.
17568         * tests/unicase/test-uc_tolower.c: Likewise.
17569         * tests/unicase/test-uc_totitle.c: Likewise.
17570         * tests/unicase/test-uc_toupper.c: Likewise.
17571         * tests/unictype/test-categ_C.c: Likewise.
17572         * tests/unictype/test-categ_Cf.c: Likewise.
17573         * tests/unictype/test-categ_Cn.c: Likewise.
17574         * tests/unictype/test-categ_L.c: Likewise.
17575         * tests/unictype/test-categ_Ll.c: Likewise.
17576         * tests/unictype/test-categ_Lm.c: Likewise.
17577         * tests/unictype/test-categ_Lo.c: Likewise.
17578         * tests/unictype/test-categ_Lu.c: Likewise.
17579         * tests/unictype/test-categ_M.c: Likewise.
17580         * tests/unictype/test-categ_Mc.c: Likewise.
17581         * tests/unictype/test-categ_Mn.c: Likewise.
17582         * tests/unictype/test-categ_N.c: Likewise.
17583         * tests/unictype/test-categ_Nd.c: Likewise.
17584         * tests/unictype/test-categ_Nl.c: Likewise.
17585         * tests/unictype/test-categ_No.c: Likewise.
17586         * tests/unictype/test-categ_P.c: Likewise.
17587         * tests/unictype/test-categ_Pd.c: Likewise.
17588         * tests/unictype/test-categ_Po.c: Likewise.
17589         * tests/unictype/test-categ_S.c: Likewise.
17590         * tests/unictype/test-categ_Sc.c: Likewise.
17591         * tests/unictype/test-categ_So.c: Likewise.
17592         * tests/unictype/test-ctype_alnum.c: Likewise.
17593         * tests/unictype/test-ctype_alpha.c: Likewise.
17594         * tests/unictype/test-ctype_graph.c: Likewise.
17595         * tests/unictype/test-ctype_lower.c: Likewise.
17596         * tests/unictype/test-ctype_print.c: Likewise.
17597         * tests/unictype/test-ctype_punct.c: Likewise.
17598         * tests/unictype/test-ctype_upper.c: Likewise.
17599         * tests/unictype/test-decdigit.h: Likewise.
17600         * tests/unictype/test-digit.h: Likewise.
17601         * tests/unictype/test-numeric.h: Likewise.
17602         * tests/unictype/test-pr_alphabetic.c: Likewise.
17603         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17604         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17605         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17606         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17607         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17608         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17609         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17610         * tests/unictype/test-pr_combining.c: Likewise.
17611         * tests/unictype/test-pr_composite.c: Likewise.
17612         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17613         * tests/unictype/test-pr_dash.c: Likewise.
17614         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17615         * tests/unictype/test-pr_deprecated.c: Likewise.
17616         * tests/unictype/test-pr_diacritic.c: Likewise.
17617         * tests/unictype/test-pr_extender.c: Likewise.
17618         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17619         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17620         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17621         * tests/unictype/test-pr_id_continue.c: Likewise.
17622         * tests/unictype/test-pr_id_start.c: Likewise.
17623         * tests/unictype/test-pr_ideographic.c: Likewise.
17624         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17625         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17626         * tests/unictype/test-pr_lowercase.c: Likewise.
17627         * tests/unictype/test-pr_numeric.c: Likewise.
17628         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17629         * tests/unictype/test-pr_punctuation.c: Likewise.
17630         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17631         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17632         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17633         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17634         * tests/unictype/test-pr_uppercase.c: Likewise.
17635         * tests/unictype/test-pr_xid_continue.c: Likewise.
17636         * tests/unictype/test-pr_xid_start.c: Likewise.
17637         * tests/unictype/test-pr_zero_width.c: Likewise.
17638         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17640         changed behaviour: line breaking is now disallowed between a letter
17641         or '=' and '('.
17642         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17643         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17644         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17645         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17646         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17647         lib/uniwidth/width.c.
17648         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17649         without comments, but with the original copyright notice.
17650         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17651         changes.
17652         * lib/unictype/categ_Cc.h: Likewise.
17653         * lib/unictype/categ_Co.h: Likewise.
17654         * lib/unictype/categ_Cs.h: Likewise.
17655         * lib/unictype/categ_Lt.h: Likewise.
17656         * lib/unictype/categ_Me.h: Likewise.
17657         * lib/unictype/categ_Pc.h: Likewise.
17658         * lib/unictype/categ_Pe.h: Likewise.
17659         * lib/unictype/categ_Pf.h: Likewise.
17660         * lib/unictype/categ_Pi.h: Likewise.
17661         * lib/unictype/categ_Ps.h: Likewise.
17662         * lib/unictype/categ_Sk.h: Likewise.
17663         * lib/unictype/categ_Sm.h: Likewise.
17664         * lib/unictype/categ_Z.h: Likewise.
17665         * lib/unictype/categ_Zl.h: Likewise.
17666         * lib/unictype/categ_Zp.h: Likewise.
17667         * lib/unictype/categ_Zs.h: Likewise.
17668         * lib/unictype/ctype_blank.h: Likewise.
17669         * lib/unictype/ctype_cntrl.h: Likewise.
17670         * lib/unictype/ctype_digit.h: Likewise.
17671         * lib/unictype/ctype_space.h: Likewise.
17672         * lib/unictype/ctype_xdigit.h: Likewise.
17673         * lib/unictype/mirror.h: Likewise.
17674         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17675         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17676         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17677         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17678         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17679         * lib/unictype/pr_bidi_control.h: Likewise.
17680         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17681         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17682         * lib/unictype/pr_bidi_pdf.h: Likewise.
17683         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17684         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17685         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17686         * lib/unictype/pr_format_control.h: Likewise.
17687         * lib/unictype/pr_hex_digit.h: Likewise.
17688         * lib/unictype/pr_hyphen.h: Likewise.
17689         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17690         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17691         * lib/unictype/pr_iso_control.h: Likewise.
17692         * lib/unictype/pr_join_control.h: Likewise.
17693         * lib/unictype/pr_left_of_pair.h: Likewise.
17694         * lib/unictype/pr_line_separator.h: Likewise.
17695         * lib/unictype/pr_math.h: Likewise.
17696         * lib/unictype/pr_non_break.h: Likewise.
17697         * lib/unictype/pr_not_a_character.h: Likewise.
17698         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17699         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17700         * lib/unictype/pr_other_id_continue.h: Likewise.
17701         * lib/unictype/pr_other_id_start.h: Likewise.
17702         * lib/unictype/pr_other_lowercase.h: Likewise.
17703         * lib/unictype/pr_other_math.h: Likewise.
17704         * lib/unictype/pr_other_uppercase.h: Likewise.
17705         * lib/unictype/pr_paired_punctuation.h: Likewise.
17706         * lib/unictype/pr_paragraph_separator.h: Likewise.
17707         * lib/unictype/pr_pattern_syntax.h: Likewise.
17708         * lib/unictype/pr_pattern_white_space.h: Likewise.
17709         * lib/unictype/pr_private_use.h: Likewise.
17710         * lib/unictype/pr_quotation_mark.h: Likewise.
17711         * lib/unictype/pr_radical.h: Likewise.
17712         * lib/unictype/pr_soft_dotted.h: Likewise.
17713         * lib/unictype/pr_space.h: Likewise.
17714         * lib/unictype/pr_titlecase.h: Likewise.
17715         * lib/unictype/pr_variation_selector.h: Likewise.
17716         * lib/unictype/pr_white_space.h: Likewise.
17717         * lib/unictype/sy_c_ident.h: Likewise.
17718         * lib/unictype/sy_c_whitespace.h: Likewise.
17719         * lib/unictype/sy_java_whitespace.h: Likewise.
17720         * modules/uni*/*: Bump version number of expected libunistring version.
17721         Reported by Simon Josefsson.
17722
17723 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17724
17725         useless-if-before-free: fix typo in --help and make the internal,
17726         automatic version date update process work once again.
17727         --help output contained a NUL character instead of the
17728         backslash-zero that was intended.  Also, the "must lie within
17729         the first 8 lines" line is on line 9, and hence not getting
17730         automatically updated.
17731         * build-aux/useless-if-before-free: Fix the former by adding a
17732         backslash, and the latter by condensing the three lines of what-it-does
17733         to a single line, leaving one line of slack for the future.
17734
17735 2011-01-09  Bruno Haible  <bruno@clisp.org>
17736
17737         uniwidth/width: Fix width of U+1D173..U+1D17A.
17738         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17739         symbolic_width, output_width_property_test): New functions.
17740         (main): Invoke output_nonspacing_property, output_width_property_test.
17741         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17742         U+1D173..U+1D17A.
17743         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17744         1.
17745         * modules/uniwidth/*: Bump version number of expected libunistring
17746         version.
17747         * modules/unilbrk/*: Likewise.
17748
17749 2011-01-08  Bruno Haible  <bruno@clisp.org>
17750
17751         uninorm tests: Preserve copyright of Unicode data file.
17752         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17753         Mention modifications.
17754
17755 2011-01-08  Bruno Haible  <bruno@clisp.org>
17756
17757         gen-uni-tables: Prepare for Unicode 5.2.0.
17758         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17759         (debug_output_lbp, output_lbp): Update.
17760
17761 2011-01-08  Bruno Haible  <bruno@clisp.org>
17762
17763         unilbrk: Clarify gen-uni-tables.c code.
17764         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17765         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17766         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17767
17768 2011-01-07  Bruno Haible  <bruno@clisp.org>
17769
17770         strtod: Restore errno when successfully parsing Infinity or NaN.
17771         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17772         restore the original errno.
17773
17774 2011-01-07  Bruno Haible  <bruno@clisp.org>
17775
17776         remove test: Avoid failure on HP-UX 11.
17777         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17778
17779 2011-01-07  Bruno Haible  <bruno@clisp.org>
17780
17781         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17782         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17783         error code.
17784
17785 2011-01-07  Pádraig Brady <P@draigBrady.com>
17786
17787         ignore-value: fixup comments, and add Eric Blake
17788         as an author since he rewrote the macros.
17789         * lib/ignore-value.h (ignore_value):  State that
17790         we now support aggregates.  Also specify exactly
17791         when the GCC warn_unused_result feature was added.
17792
17793 2011-01-06  Eric Blake  <eblake@redhat.com>
17794
17795         ignore-value: support aggregate types
17796         * lib/ignore-value.h (ignore_value): Provide separate gcc
17797         definition.
17798         * modules/ignore-value-tests: New test module.
17799         * tests/test-ignore-value.c: New test.
17800
17801         maint.mk: improve sc_prohibit_strcmp regex
17802         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17803         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17804         definition of STRNEQ.
17805
17806         signal: work around Haiku issue with SIGBUS
17807         * lib/siglist.h: Add comment.
17808         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17809         strsignal's favoring of SIGSEGV.
17810         * tests/test-signal.c (main): Avoid test failure.
17811         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17812         Reported by Scott McCreary.
17813
17814         maint.mk: add pre-release check to ensure submodule commits are public
17815         * top/maint.mk (public-submodule-commit): New rule.
17816         (submodule-checks): New variable.
17817         (alpha beta stable): Depend on the variable.
17818
17819 2011-01-05  Pádraig Brady <P@draigBrady.com>
17820         and Jim Meyering  <meyering@redhat.com>
17821
17822         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17823         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17824         (ATTRIBUTE_DEPRECATED): Define.
17825         (_ignore_case): New function.
17826         (ignore_value): New macro, to replace the old function.
17827         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17828         * modules/ignore-value (Depends-on): Add stdint.
17829
17830 2011-01-04  Eric Blake  <eblake@redhat.com>
17831
17832         doc: regenerate INSTALL
17833         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17834         @firstparagraphindent support, now that autoconf dropped it.
17835         (INSTALL_PRELUDE): Reinstate old macro.
17836         * doc/install.texi: Resync from autoconf.
17837         * doc/INSTALL: Reflect recent autoconf update.
17838         * doc/INSTALL.ISO: Likewise.
17839         * doc/INSTALL.UTF-8: Likewise.
17840         Reported by Karl Berry.
17841
17842 2011-01-04  Bruce Korb  <address@hidden>
17843
17844         git-version-gen: avoid a sub-shell
17845         * build-aux/git-version-gen: Redirect stderr in `...` via
17846         "exec 2>...", rather than via an added sub-shell.
17847
17848 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17849
17850         git-version-gen: use (...) rather than sh -c '...'
17851         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17852         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17853
17854 2011-01-03  Jim Meyering  <meyering@redhat.com>
17855
17856         git-version-gen: convert leading TABs to spaces
17857         * build-aux/git-version-gen: Expand leading TABs.
17858
17859         git-version-gen: handle failed "git rev-list"
17860         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17861         from git and proceeding as if it had succeeded but printed no SHA1
17862         checksums, suppress the diagnostic and handle the failure.
17863         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17864
17865         git-version-gen: include command name in one more diagnostic
17866         * build-aux/git-version-gen: When the required .tarball-version file
17867         was missing or unreadable, you might see the diagnostic from "cat",
17868         but no trace of the name of the invoking script.  Now, you still see
17869         the diagnostic from cat, but also get one from "git-version-gen: ".
17870         Inspired by a patch from Bruce Korb.
17871
17872         update-copyright: adjust test to match changed code
17873         * tests/test-update-copyright.sh: Change test's expected output
17874         to match new actual output.
17875
17876 2011-01-02  Bruno Haible  <bruno@clisp.org>
17877
17878         getlogin_r: Avoid test failure on HP-UX 11.
17879         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17880         ERANGE when the second argument is zero.
17881         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17882         portability problem.
17883
17884 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17885
17886         * build-aux/update-copyright: doc Simon's changes
17887
17888 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17889
17890         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17891         environment variable.
17892
17893 2011-01-02  Bruno Haible  <bruno@clisp.org>
17894
17895         unigbrk: Avoid gcc warnings.
17896         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17897         unused variable.
17898         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17899         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17900         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17901         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17902         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17903         Change type of first argument to 'const char *'.
17904         (main): Remove unused variable.
17905         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17906         type of first argument to 'const char *'.
17907         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17908         Likewise.
17909         (main): Change type of variable 's'.
17910         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17911         to 'int'.
17912
17913 2011-01-02  Bruno Haible  <bruno@clisp.org>
17914
17915         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17916         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17917         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17918         bug.
17919         * lib/pwrite.c: Undo 2010-12-31 patch.
17920         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17921
17922 2011-01-02  Bruno Haible  <bruno@clisp.org>
17923
17924         pread: Fix test whether it works.
17925         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17926
17927 2011-01-02  Bruno Haible  <bruno@clisp.org>
17928
17929         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17930         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17931         ends in "6". Don't require a specific month name. Try also the locale
17932         names found on HP-UX 11 and Solaris 7.
17933
17934 2011-01-02  Bruno Haible  <bruno@clisp.org>
17935
17936         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17937         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17938         C linkage.
17939         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17940
17941 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17942
17943         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17944         for consistency, since the "cluster" term is not used elsewhere.
17945         * lib/unigbrk.in.h: Update name.
17946         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17947         * lib/unigbrk/u16-grapheme-next.c: Update name.
17948         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17949         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17950         * lib/unigbrk/u32-grapheme-next.c: Update name.
17951         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17952         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17953         * lib/unigbrk/u8-grapheme-next.c: Update name.
17954         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17955         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17956         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17957         Suggested by Bruno Haible.
17958
17959 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17960
17961         Remove module 'u8-grapheme-len' as too redundant with
17962         'u8-grapheme-next'.
17963         * modules/unigbrk/u8-grapheme-len: Delete file.
17964         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17965         * lib/unigbrk.in.h: Remove prototype for deleted function.
17966         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17967         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17968
17969         Remove module 'u16-grapheme-len' as too redundant with
17970         'u16-grapheme-next'.
17971         * modules/unigbrk/u16-grapheme-len: Delete file.
17972         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17973         * lib/unigbrk.in.h: Remove prototype for deleted function.
17974         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17975         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17976
17977         Remove module 'u32-grapheme-len' as too redundant with
17978         'u32-grapheme-next'.
17979         * modules/unigbrk/u32-grapheme-len: Delete file.
17980         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17981         * lib/unigbrk.in.h: Remove prototype for deleted function.
17982         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17983         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17984
17985         Suggested by Bruno Haible.
17986
17987 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17988
17989         * unigbrk.in.h: Fix typo: "ben" => "been".
17990         Reported by Bruno Haible.
17991
17992 2011-01-01  Jim Meyering  <meyering@redhat.com>
17993
17994         maint: update almost all copyright ranges to include 2011
17995         Run the new "make update-copyright" rule.
17996
17997 2011-01-01  Jim Meyering  <meyering@redhat.com>
17998
17999         maint: update-copyright: exempt doc/INSTALL*
18000         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18001         since they are generated.  Suggested by Bruno Haible.
18002
18003 2011-01-01  Jim Meyering  <meyering@redhat.com>
18004
18005         maint: refine the update-copyright rule
18006         * Makefile (update-copyright): Also exclude any file that includes
18007         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18008         code that merely generates the comment.
18009
18010 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18011
18012         New module 'u8-grapheme-len'.
18013         * modules/unigbrk/u8-grapheme-len: New file.
18014         * modules/unigbrk/u8-grapheme-len-tests: New file.
18015         * lib/unigbrk.in.h: Add prototype for new function.
18016         * lib/unigbrk/u8-grapheme-len.c: New file.
18017         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18018
18019         New module 'u16-grapheme-len'.
18020         * modules/unigbrk/u16-grapheme-len: New file.
18021         * modules/unigbrk/u16-grapheme-len-tests: New file.
18022         * lib/unigbrk.in.h: Add prototype for new function.
18023         * lib/unigbrk/u16-grapheme-len.c: New file.
18024         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18025
18026         New module 'u32-grapheme-len'.
18027         * modules/unigbrk/u32-grapheme-len: New file.
18028         * modules/unigbrk/u32-grapheme-len-tests: New file.
18029         * lib/unigbrk.in.h: Add prototype for new function.
18030         * lib/unigbrk/u32-grapheme-len.c: New file.
18031         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18032
18033         New module 'u8-grapheme-next'.
18034         * modules/unigbrk/u8-grapheme-next: New file.
18035         * modules/unigbrk/u8-grapheme-next-tests: New file.
18036         * lib/unigbrk.in.h: Add prototype for new function.
18037         * lib/unigbrk/u8-grapheme-next.c: New file.
18038         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18039
18040         New module 'u16-grapheme-next'.
18041         * modules/unigbrk/u16-grapheme-next: New file.
18042         * modules/unigbrk/u16-grapheme-next-tests: New file.
18043         * lib/unigbrk.in.h: Add prototype for new function.
18044         * lib/unigbrk/u16-grapheme-next.c: New file.
18045         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18046
18047         New module 'u32-grapheme-next'.
18048         * modules/unigbrk/u32-grapheme-next: New file.
18049         * modules/unigbrk/u32-grapheme-next-tests: New file.
18050         * lib/unigbrk.in.h: Add prototype for new function.
18051         * lib/unigbrk/u32-grapheme-next.c: New file.
18052         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18053
18054         New module 'u8-grapheme-prev'.
18055         * modules/unigbrk/u8-grapheme-prev: New file.
18056         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18057         * lib/unigbrk.in.h: Add prototype for new function.
18058         * lib/unigbrk/u8-grapheme-prev.c: New file.
18059         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18060
18061         New module 'u16-grapheme-prev'.
18062         * modules/unigbrk/u16-grapheme-prev: New file.
18063         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18064         * lib/unigbrk.in.h: Add prototype for new function.
18065         * lib/unigbrk/u16-grapheme-prev.c: New file.
18066         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18067
18068         New module 'u32-grapheme-prev'.
18069         * modules/unigbrk/u32-grapheme-prev: New file.
18070         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18071         * lib/unigbrk.in.h: Add prototype for new function.
18072         * lib/unigbrk/u32-grapheme-prev.c: New file.
18073         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18074
18075         New module 'u8-grapheme-breaks'.
18076         * modules/unigbrk/u8-grapheme-breaks: New file.
18077         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18078         * lib/unigbrk.in.h: Add prototype for new function.
18079         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18080         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18081
18082         New module 'u16-grapheme-breaks'.
18083         * modules/unigbrk/u16-grapheme-breaks: New file.
18084         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18085         * lib/unigbrk.in.h: Add prototype for new function.
18086         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18087         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18088
18089         New module 'u32-grapheme-breaks'.
18090         * modules/unigbrk/u32-grapheme-breaks: New file.
18091         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18092         * lib/unigbrk.in.h: Add prototype for new function.
18093         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18094         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18095
18096         New module 'ulc-grapheme-breaks'.
18097         * modules/unigbrk/ulc-grapheme-breaks: New file.
18098         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18099         * m4/locale-ar.m4: New file.
18100         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18101         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18102         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18103
18104 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18105
18106         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18107         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18108         modified how this file was generated before I initially submitted
18109         the module, but failed to regenerate it.  This meant that several
18110         of the level2 entries were wrong.
18111         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18112         Remove the division-by-2 that is folded into the table now that
18113         gbrkprop.h has been regenerated properly.  Now -1 entries are
18114         handled correctly.
18115
18116         New module 'unigbrk/uc-gbrk-prop-tests'.
18117         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18118         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18119         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18120         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18121
18122 2011-01-01  Bruno Haible  <bruno@clisp.org>
18123
18124         Avoid use of hexadecimal escapes.
18125         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18126         instead of hexadecimal escapes.
18127
18128 2011-01-01  Jim Meyering  <meyering@redhat.com>
18129
18130         maint: new rule to update copyright year ranges
18131         * Makefile (update-copyright): New rule.
18132
18133         maint: indent with TABs in Makefile
18134         * Makefile: Expand leading sequences of spaces to TABs
18135
18136         version-etc: update the copyright year it reports
18137         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18138
18139 2010-12-31  Bruno Haible  <bruno@clisp.org>
18140
18141         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18142         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18143         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18144         zero.
18145
18146 2010-12-31  Bruno Haible  <bruno@clisp.org>
18147
18148         pwrite: Work around HP-UX 11.11 bug.
18149         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18150         works and set REPLACE_PWRITE if not.
18151         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18152         function.
18153         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18154
18155 2010-12-31  Bruno Haible  <bruno@clisp.org>
18156
18157         pread: Work around HP-UX 11 bugs.
18158         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18159         and set REPLACE_PREAD if not.
18160         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18161
18162 2010-12-31  Eric Blake  <eblake@redhat.com>
18163
18164         nl_langinfo: fix YESEXPR on Irix 6.5
18165         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18166         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18167         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18168         it.
18169
18170 2010-12-31  Bruno Haible  <bruno@clisp.org>
18171
18172         iconv: Document HP-UX 11 bug.
18173         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18174
18175 2010-12-31  Bruno Haible  <bruno@clisp.org>
18176
18177         ldexpl: Fix link error on HP-UX 11.
18178         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18179         LDEXPL_LIBM, using $ISNANL_LIBM.
18180
18181 2010-12-31  Eric Blake  <eblake@redhat.com>
18182
18183         ftello: avoid compilation failure with SunStudio c89
18184         * lib/ftello.c (ftello): Use lseek, not llseek.
18185
18186         tests: avoid failing coreutils tests on cygwin
18187         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18188         (create_exe_shims_): Return 0 when skipping.
18189
18190 2010-12-31  Bruno Haible  <bruno@clisp.org>
18191
18192         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18193         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18194
18195 2010-12-31  Bruno Haible  <bruno@clisp.org>
18196
18197         waitpid: Fix link error in C++ mode.
18198         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18199
18200 2010-12-31  Bruno Haible  <bruno@clisp.org>
18201
18202         isnan: Use GCC built-ins when possible.
18203         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18204         __builtin_isnan.
18205         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18206         (isnan): Define using GCC built-ins for GCC >= 4.0.
18207
18208 2010-12-31  Bruno Haible  <bruno@clisp.org>
18209
18210         isnand: Fix mistake.
18211         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18212         __builtin_isnand.
18213
18214 2010-12-31  Bruno Haible  <bruno@clisp.org>
18215
18216         open: Avoid C++ error on HP-UX 11.
18217         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18218
18219 2010-12-31  Bruno Haible  <bruno@clisp.org>
18220
18221         time_r: Add missing declarations on HP-UX 11.
18222         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18223         instead of HAVE_LOCALTIME_R.
18224         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18225         HAVE_LOCALTIME_R always.
18226         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18227         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18228         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18229         HAVE_LOCALTIME_R.
18230         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18231         * doc/posix-functions/localtime_r.texi: Likewise.
18232
18233 2010-12-29  Eric Blake  <eblake@redhat.com>
18234
18235         mountlist: tweak previous commit
18236         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18237         Reported by Paul Eggert.
18238
18239         mountlist: fix local drive detection on cygwin
18240         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18241         that works for cygwin.
18242
18243 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18244
18245         ftoastr, snprintf: ftoastr + snprintf module
18246         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18247         since the snprintf module now should be good enough here.
18248         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18249         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18250         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18251         GNULIB_SNPRINTF only for the test directory, and the latter
18252         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18253         seems to suffice by itself.
18254
18255 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18256
18257         alloca: one step towards thread-safety
18258         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18259         need for a static variable.  All callers changed.  This does not
18260         make the alloca replacement thread-safe, but it's one step.
18261
18262         tests: minor indenting change
18263         * tests/init.sh: Sync from coreutils housekeeping patch
18264         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18265         to keep lines within 80 columns.
18266
18267 2010-12-28  Jim Meyering  <meyering@redhat.com>
18268
18269         regex: don't infloop on persistent failing calloc
18270         * lib/regexec.c (build_trtable): Return failure indication upon
18271         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18272         In glibc, this was fixed for version 2.13:
18273         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18274
18275 2010-12-28  Bruno Haible  <bruno@clisp.org>
18276             Paul Eggert <eggert@cs.ucla.edu>
18277
18278         linkat: Make implementation robust against system behaviour variations.
18279         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18280         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18281         way, and to -2 if it needs a generic runtime test.
18282         * lib/linkat.c (solaris_optimized_link_immediate,
18283         solaris_optimized_link_follow): New functions.
18284         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18285         (check_same_link): Use it.
18286
18287 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18288
18289         New module 'unigbrk/base'.
18290         * modules/unigbrk/base: New file.
18291         * lib/unigbrk.in.h: New file.
18292
18293         New module 'unigbrk/uc-gbrk-prop'.
18294         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18295         * modules/unigbrk/uc-gbrk-prop: New file.
18296         * lib/unigbrk/gbrkprop.h: New file.
18297         * lib/unigbrk/uc-gbrk-prop.c: New file.
18298
18299         New module 'unigbrk/uc-is-grapheme-break'.
18300         * modules/unigbrk/uc-is-grapheme-break: New file.
18301         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18302         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18303         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18304         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18305         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18306
18307         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18308
18309 2010-12-27  Bruno Haible  <bruno@clisp.org>
18310
18311         linkat test: Avoid failure on Solaris 11 2010-11.
18312         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18313
18314 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18315
18316         utimens: work around glibc rounding bug on more platforms
18317         * lib/utimens.c (fdutimens): Work around rounding bug even if
18318         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18319         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18320
18321 2010-12-27  Bruno Haible  <bruno@clisp.org>
18322
18323         select tests: Improve comments.
18324         * tests/test-select.c (do_select): Add comments.
18325
18326 2010-12-27  Bruno Haible  <bruno@clisp.org>
18327
18328         select tests: Safer way of handling timeout.
18329         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18330         at every invocation.
18331
18332 2010-12-27  Bruno Haible  <bruno@clisp.org>
18333
18334         select tests: Use 'bool' where appropriate.
18335         * tests/test-select.c (connect_to_socket): Change argument type to
18336         'bool'.
18337
18338 2010-12-27  Bruno Haible  <bruno@clisp.org>
18339
18340         select tests: Use existing modules.
18341         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18342         (configure.ac): Don't test for unistd.h.
18343         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18344         declared in <unistd.h>.
18345
18346 2010-12-27  Bruno Haible  <bruno@clisp.org>
18347
18348         mbrtowc: Work around a Solaris 7 bug.
18349         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18350         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18351         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18352         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18353         MBRTOWC_NULL_ARG1_BUG.
18354         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18355         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18356         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18357         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18358
18359 2010-12-27  Jim Meyering  <meyering@redhat.com>
18360
18361         read-file.c: tweak syntax
18362         * lib/read-file.c (fread_file): Remove space after "*" in function
18363         definitions.
18364
18365 2010-12-27  Bruno Haible  <bruno@clisp.org>
18366
18367         times test: Avoid gcc warnings on OSF/1.
18368         * tests/test-times.c (main): Cast printf arguments from clock_t to
18369         'long int'.
18370
18371 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18372
18373         utimens: work around glibc rounding bug on older Linux kernels
18374         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18375         on Linux with a glibc whose utimes might not work, then work
18376         around a longstanding glibc bug involving rounding rather than
18377         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18379
18380 2010-12-26  Bruno Haible  <bruno@clisp.org>
18381
18382         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18383         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18384         _GL_CXXALIAS_SYS.
18385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18386
18387 2010-12-26  Bruno Haible  <bruno@clisp.org>
18388
18389         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18390         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18391         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18392         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18393         looking for the declaration.
18394         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18395         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18396         problem.
18397         * doc/posix-functions/inet_pton.texi: Likewise.
18398
18399 2010-12-26  Bruno Haible  <bruno@clisp.org>
18400
18401         arpa_inet: Use the common idioms with C++ support.
18402         * lib/arpa_inet.in.h: Include c++defs.h.
18403         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18404         support.
18405         * modules/arpa_inet (Depends-on): Add c++defs.
18406         (Makefile.am): Substitute the contents of c++defs.h.
18407         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18408         * modules/arpa_inet-c++-tests: New file.
18409         * tests/test-arpa_inet-c++.cc: New file.
18410
18411 2010-12-25  Bruno Haible  <bruno@clisp.org>
18412
18413         Fix more C++ link errors on Solaris 8.
18414         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18415         $(LIB_EACCESS).
18416         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18417         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18418         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18419         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18420         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18421
18422 2010-12-25  Bruno Haible  <bruno@clisp.org>
18423
18424         printf-posix: Fix link error when a non-GCC compiler is used.
18425         * lib/stdio.in.h (printf): When not using GCC, override printf
18426         correctly.
18427         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18428
18429 2010-12-25  Bruno Haible  <bruno@clisp.org>
18430
18431         strerror_r-posix: Update doc.
18432         * doc/posix-functions/strerror_r.texi: Update doc about the return
18433         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18434
18435 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18436
18437         utimens: simplify the logic of the previous change
18438         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18439         This should not affect whether the test succeeds or fails.
18440
18441         utimens: configure better on hosts with NFS clock skew
18442         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18443         uses the clock of the local host.  It might use the clock of the
18444         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18446
18447 2010-12-25  Bruno Haible  <bruno@clisp.org>
18448
18449         ptsname test: Avoid failure on Solaris.
18450         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18451         open a pseudo-terminal; don't use BSD-style ptys.
18452         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18453
18454 2010-12-25  Bruno Haible  <bruno@clisp.org>
18455
18456         ptsname: Avoid ERANGE failure on some systems.
18457         * lib/ptsname.c (buffer): Increase size.
18458
18459 2010-12-25  Bruno Haible  <bruno@clisp.org>
18460
18461         rename, renameat: Avoid test failures at NFS mounted locations.
18462         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18463         so that subsequent mkdir calls succeed.
18464
18465 2010-12-25  Bruno Haible  <bruno@clisp.org>
18466
18467         iswblank: Fix C++ link error on Solaris 8.
18468         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18469         _GL_FUNCDECL_SYS.
18470
18471 2010-12-25  Bruno Haible  <bruno@clisp.org>
18472
18473         unistd: Fix C++ link error on Solaris 8.
18474         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18475
18476 2010-12-25  Bruno Haible  <bruno@clisp.org>
18477
18478         readlink doc: Mention an old glibc bug.
18479         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18480
18481 2010-12-25  Bruno Haible  <bruno@clisp.org>
18482
18483         fcntl-h: Fix for use of C++ on glibc systems.
18484         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18485         also on glibc systems in C++ mode.
18486         Reported by Gary V. Vaughan <gary@gnu.org>.
18487
18488 2010-12-25  Bruno Haible  <bruno@clisp.org>
18489
18490         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18491         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18492
18493 2010-12-25  Bruno Haible  <bruno@clisp.org>
18494
18495         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18496         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18497         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18498         test whether truncl works according to ISO C 99 with IEC 60559.
18499         * m4/truncl-ieee.m4: New file.
18500         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18501         m4/signbit.m4.
18502         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18503
18504 2010-12-25  Bruno Haible  <bruno@clisp.org>
18505
18506         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18507         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18508         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18509         test whether ceill works according to ISO C 99 with IEC 60559.
18510         * m4/ceill-ieee.m4: New file.
18511         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18512         m4/signbit.m4.
18513         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18514
18515 2010-12-25  Bruno Haible  <bruno@clisp.org>
18516
18517         Ensure all prerequisites of <wchar.h> are included.
18518         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18519         before <wchar.h>.
18520         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18521         gl_MBRLEN_NUL_RETVAL): Likewise.
18522         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18523         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18524         AC_FUNC_MBRTOWC): Likewise.
18525         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18526         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18527         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18528         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18529         Likewise.
18530         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18531         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18532         (gl_WCHAR_H): Improve comments.
18533         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18534
18535 2010-12-25  Bruno Haible  <bruno@clisp.org>
18536
18537         strtok_r: Fix C syntax error in autoconf macro.
18538         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18539         characters in test program.
18540
18541 2010-12-24  Bruno Haible  <bruno@clisp.org>
18542
18543         ceil, trunc, round: Fix gcc warnings.
18544         * lib/ceil.c (MIN): Undefine before redefining.
18545         * lib/trunc.c (MIN): Likewise.
18546         * lib/round.c (MIN): Likewise.
18547         Include <math.h> first.
18548
18549 2010-12-24  Bruno Haible  <bruno@clisp.org>
18550
18551         select tests: Avoid failures on OSF/1 5.1.
18552         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18553         failure of closing the last socket; it may fail with ECONNRESET.
18554
18555 2010-12-24  Eric Blake  <eblake@redhat.com>
18556
18557         stdint: avoid HP-UX 10.20 preprocessor bug
18558         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18559         than #if.
18560         * tests/test-floor2.c (main): Likewise.
18561         Reported by Peter O'Gorman.
18562
18563         pipe: make obsoletion transition easier
18564         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18565         * modules/pipe (Files): Include revived file.
18566         (Include): Drop reference, to mirror getdate's behavior.
18567
18568 2010-12-24  Bruno Haible  <bruno@clisp.org>
18569
18570         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18571         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18572         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18574
18575 2010-12-24  Bruno Haible  <bruno@clisp.org>
18576
18577         gethostname: Ensure declaration on NonStop Kernel.
18578         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18579         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18580
18581 2010-12-24  Bruno Haible  <bruno@clisp.org>
18582
18583         sys_select: Ensure all necessary types on NonStop Kernel.
18584         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18585         include <sys/time.h>.
18586         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18587         NonStop Kernel.
18588         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18589
18590 2010-12-24  Bruno Haible  <bruno@clisp.org>
18591
18592         sys_select: Remove unneeded include.
18593         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18594         have <sys/select.h>.
18595
18596 2010-12-24  Bruno Haible  <bruno@clisp.org>
18597
18598         gethostname: Provide a fallback for HOST_NAME_MAX.
18599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18600         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18601         instead.
18602         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18603
18604 2010-12-24  Bruno Haible  <bruno@clisp.org>
18605
18606         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18607         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18608         (SA_RESTART): Likewise.
18609         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18610
18611 2010-12-24  Bruno Haible  <bruno@clisp.org>
18612
18613         signal: Define NSIG.
18614         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18615         * tests/test-signal.c (nsig): New variable.
18616         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18617
18618 2010-12-24  Bruno Haible  <bruno@clisp.org>
18619
18620         rename, renameat: Avoid test failures on OSF/1 5.1.
18621         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18622         alternative error codes.
18623         * tests/test-renameat.c (main): Likewise.
18624
18625 2010-12-24  Bruno Haible  <bruno@clisp.org>
18626
18627         *printf: Detect large precisions bug on Solaris 10/SPARC.
18628         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18629         by Paul Eggert.
18630         * tests/test-snprintf-posix.h (test_function): Add this test code here
18631         too.
18632         * tests/test-sprintf-posix.h (test_function): Likewise.
18633         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18634         * tests/test-vasprintf-posix.c (test_function): Likewise.
18635         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18636         around by gnulib.
18637         * doc/posix-functions/printf.texi: Likewise.
18638         * doc/posix-functions/snprintf.texi: Likewise.
18639         * doc/posix-functions/sprintf.texi: Likewise.
18640         * doc/posix-functions/vfprintf.texi: Likewise.
18641         * doc/posix-functions/vprintf.texi: Likewise.
18642         * doc/posix-functions/vsnprintf.texi: Likewise.
18643         * doc/posix-functions/vsprintf.texi: Likewise.
18644         * doc/posix-functions/dprintf.texi: Undo last commit.
18645         * doc/posix-functions/vdprintf.texi: Likewise.
18646
18647 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18648
18649         tests: port test-fdutimensat.c to Solaris 8
18650         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18651         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18652         On Solaris 8, it fails with errno == ENOSYS, because there is no
18653         futimens (so it can't use the fd), and there is no lutimens (so it
18654         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18655
18656         vsnprintf: make more consistent with snprintf; doc fixes
18657
18658         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18659         the byte count return problem was promoted from the snprintf-posix
18660         to the snprintf module.
18661         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18662         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18663         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18664         * tests/test-snprintf.c (main): Check the byte count returned.
18665         * tests/test-vsnprintf.c (main): Likewise.
18666
18667 2010-12-23  Eric Blake  <eblake@redhat.com>
18668
18669         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18670         * modules/sigpipe (License): Relax license.
18671
18672 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18673
18674         doc: document Solaris printf bug with large float precisions
18675         * doc/posix-functions/dprintf.texi (dprintf):
18676         * doc/posix-functions/fprintf.texi (fprintf):
18677         * doc/posix-functions/printf.texi (printf):
18678         * doc/posix-functions/snprintf.texi (snprintf):
18679         * doc/posix-functions/sprintf.texi (sprintf):
18680         * doc/posix-functions/vdprintf.texi (vdprintf):
18681         * doc/posix-functions/vfprintf.texi (vfprintf):
18682         * doc/posix-functions/vprintf.texi (vprintf):
18683         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18684         * doc/posix-functions/vsprintf.texi (vsprintf):
18685         Mention that these functions mishandle large floating point
18686         precisions on Solaris 10.  The same bug is also present in Solaris
18687         8, and I assume earlier.  This causes "cd gnulib-tests; make
18688         check" to fail on Solaris 8 (and I assume, later) when building
18689         the latest coreutils, in test-vasprintf-posix's call to
18690         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18691         the wide flavors (e.g., wprintf) so this patch just updates the
18692         documentation for the narrow ones.
18693
18694         test-posixtm.c: add two tests
18695         * tests/test-posixtm.c: Add two tests, to highlight the
18696         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18697         around this bug; this is merely to document it.
18698
18699 2010-12-22  Bruno Haible  <bruno@clisp.org>
18700
18701         getlogin_r: Work around portability problem on OSF/1.
18702         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18703         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18704         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18705         test for a truncated result.
18706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18707         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18708         * modules/getlogin_r (Depends-on): Add memchr.
18709         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18710
18711 2010-12-22  Bruno Haible  <bruno@clisp.org>
18712
18713         ptsname: Avoid test failure on OSF/1 5.1.
18714         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18715         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18716         (same_slave): New function.
18717         (main): Use it to compare ptsname's result with the expected file name.
18718
18719 2010-12-22  Bruno Haible  <bruno@clisp.org>
18720
18721         Port extended stdio modules to HP NonStop Kernel.
18722         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18723         macros.
18724         * lib/fbufmode.c: Update comments.
18725         * lib/fflush.c: Likewise.
18726         * lib/fpurge.c: Likewise.
18727         * lib/freadable.c: Likewise.
18728         * lib/freadahead.c: Likewise.
18729         * lib/freading.c: Likewise.
18730         * lib/freadptr.c: Likewise.
18731         * lib/freadseek.c: Likewise.
18732         * lib/fseeko.c: Likewise.
18733         * lib/fseterr.c: Likewise.
18734         * lib/fwritable.c: Likewise.
18735         * lib/fwriting.c: Likewise.
18736         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18737
18738 2010-12-22  Bruno Haible  <bruno@clisp.org>
18739
18740         ttyname_r: Work around bug on OSF/1 5.1.
18741         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18742         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18743         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18744         present.
18745         * lib/ttyname_r.c (ttyname_r): Update comments.
18746
18747 2010-12-22  Bruno Haible  <bruno@clisp.org>
18748
18749         round: Implement result sign according to IEEE 754.
18750         * lib/round.c (MIN, MINUS_ZERO): New macros.
18751         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18752         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18753         * tests/test-round-ieee.c (main): Likewise.
18754         * tests/test-roundl-ieee.c (main): Likewise.
18755
18756         trunc: Implement result sign according to IEEE 754.
18757         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18758         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18759         * tests/test-trunc2.c: Include minus-zero.h.
18760         (MINUS_ZERO): New macro.
18761         (trunc_reference): Keep in sync with lib/trunc.c.
18762         * tests/test-truncf2.c: Include minus-zero.h.
18763         (MINUS_ZERO): New macro.
18764         (truncf_reference): Keep in sync with lib/trunc.c.
18765         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18766         * tests/test-trunc-ieee.c (main): Likewise.
18767         * tests/test-truncl-ieee.c (main): Likewise.
18768
18769         ceil: Implement result sign according to IEEE 754.
18770         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18771         (FUNC): Return -0.0 for -1 < x < 0.
18772         * tests/test-ceil2.c: Include minus-zero.h.
18773         (MINUS_ZERO): New macro.
18774         (ceil_reference): Keep in sync with lib/ceil.c.
18775         * tests/test-ceilf2.c: Include minus-zero.h.
18776         (MINUS_ZERO): New macro.
18777         (ceilf_reference): Keep in sync with lib/ceil.c.
18778         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18779         * tests/test-ceil-ieee.c (main): Likewise.
18780         * tests/test-ceill-ieee.c (main): Likewise.
18781
18782         floor: Implement result sign according to IEEE 754.
18783         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18784         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18785         * tests/test-floorf2.c (floorf_reference): Likewise.
18786         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18787         * tests/test-floor-ieee.c (main): Likewise.
18788         * tests/test-floorl-ieee.c (main): Likewise.
18789
18790 2010-12-22  Bruno Haible  <bruno@clisp.org>
18791
18792         getaddrinfo: Update doc.
18793         * doc/posix-functions/gai_strerror.texi: Return type is also different
18794         on AIX and HP-UX.
18795
18796 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18797
18798         getaddrinfo, inet_ntop: Update doc for Solaris.
18799         * doc/posix-functions/gai_strerror.texi: Return type is also an
18800         issue on Solaris 9 and earlier.
18801         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18802         on Solaris 10 and earlier.
18803
18804 2010-12-21  Bruno Haible  <bruno@clisp.org>
18805
18806         New module 'roundl-ieee'.
18807         * modules/roundl-ieee: New file.
18808         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18809         test whether roundl works according to ISO C 99 with IEC 60559.
18810         * m4/roundl-ieee.m4: New file.
18811         * modules/roundl-ieee-tests: New file.
18812         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18813         * tests/test-roundl.c (main): Remove signbit tests.
18814         * modules/roundl-tests (Depends-on): Remove signbit.
18815         * doc/posix-functions/roundl.texi: Mention the new module.
18816
18817 2010-12-21  Bruno Haible  <bruno@clisp.org>
18818
18819         New module 'truncl-ieee'.
18820         * modules/truncl-ieee: New file.
18821         * modules/truncl-ieee-tests: New file.
18822         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18823         * tests/test-truncl.c (main): Remove signbit tests.
18824         * modules/truncl-tests (Depends-on): Remove signbit.
18825         * doc/posix-functions/truncl.texi: Mention the new module.
18826
18827 2010-12-21  Bruno Haible  <bruno@clisp.org>
18828
18829         New module 'ceill-ieee'.
18830         * modules/ceill-ieee: New file.
18831         * modules/ceill-ieee-tests: New file.
18832         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18833         * tests/test-ceill.c (main): Remove signbit tests.
18834         * modules/ceill-tests (Depends-on): Remove signbit.
18835         * doc/posix-functions/ceill.texi: Mention the new module.
18836
18837 2010-12-21  Bruno Haible  <bruno@clisp.org>
18838
18839         New module 'floorl-ieee'.
18840         * modules/floorl-ieee: New file.
18841         * modules/floorl-ieee-tests: New file.
18842         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18843         * tests/test-floorl.c (main): Remove signbit tests.
18844         * modules/floorl-tests (Depends-on): Remove signbit.
18845         * doc/posix-functions/floorl.texi: Mention the new module.
18846
18847 2010-12-21  Bruno Haible  <bruno@clisp.org>
18848
18849         New module 'round-ieee'.
18850         * modules/round-ieee: New file.
18851         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18852         whether round works according to ISO C 99 with IEC 60559.
18853         * m4/round-ieee.m4: New file.
18854         * modules/round-ieee-tests: New file.
18855         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18856         * tests/test-round1.c (main): Remove signbit tests.
18857         * modules/round-tests (Depends-on): Remove 'signbit'.
18858         * doc/posix-functions/round.texi: Mention the new module.
18859
18860 2010-12-21  Bruno Haible  <bruno@clisp.org>
18861
18862         New module 'trunc-ieee'.
18863         * modules/trunc-ieee: New file.
18864         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18865         whether trunc works according to ISO C 99 with IEC 60559.
18866         * m4/trunc-ieee.m4: New file.
18867         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18869         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18870         * modules/trunc-ieee-tests: New file.
18871         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18872         * tests/test-trunc1.c (main): Remove signbit tests.
18873         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18874         * doc/posix-functions/trunc.texi: Mention the new module.
18875
18876 2010-12-21  Bruno Haible  <bruno@clisp.org>
18877
18878         New module 'ceil-ieee'.
18879         * modules/ceil-ieee: New file.
18880         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18881         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18882         ISO C 99 with IEC 60559.
18883         * m4/ceil-ieee.m4: New file.
18884         * modules/ceil (Files): Add lib/ceil.c.
18885         (Depends-on): Add 'float'.
18886         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18887         * lib/math.in.h (ceil): New declaration.
18888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18889         REPLACE_CEIL.
18890         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18891         * modules/ceil-ieee-tests: New file.
18892         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18893         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18894         * doc/posix-functions/ceil.texi: Mention the new module.
18895
18896 2010-12-21  Bruno Haible  <bruno@clisp.org>
18897
18898         New module 'floor-ieee'.
18899         * modules/floor-ieee: New file.
18900         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18901         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18902         ISO C 99 with IEC 60559.
18903         * m4/floor-ieee.m4: New file.
18904         * modules/floor (Files): Add lib/floor.c.
18905         (Depends-on): Add 'float'.
18906         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18907         * lib/math.in.h (floor): New declaration.
18908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18909         REPLACE_FLOOR.
18910         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18911         * modules/floor-ieee-tests: New file.
18912         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18913         * tests/test-math-c++.cc: Check the signature of 'floor'.
18914         * doc/posix-functions/floor.texi: Mention the new module.
18915
18916 2010-12-21  Bruno Haible  <bruno@clisp.org>
18917
18918         New module 'roundf-ieee'.
18919         * modules/roundf-ieee: New file.
18920         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18921         test whether roundf works according to ISO C 99 with IEC 60559.
18922         * m4/roundf-ieee.m4: New file.
18923         * modules/roundf-ieee-tests: New file.
18924         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18925         * tests/test-roundf1.c (main): Remove signbit tests.
18926         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18927         * doc/posix-functions/roundf.texi: Mention the new module.
18928
18929 2010-12-21  Bruno Haible  <bruno@clisp.org>
18930
18931         New module 'truncf-ieee'.
18932         * modules/truncf-ieee: New file.
18933         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18934         test whether truncf works according to ISO C 99 with IEC 60559.
18935         * m4/truncf-ieee.m4: New file.
18936         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18938         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18939         * modules/truncf-ieee-tests: New file.
18940         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18941         * tests/test-truncf1.c (main): Remove signbit tests.
18942         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18943         * doc/posix-functions/truncf.texi: Mention the new module.
18944
18945 2010-12-21  Bruno Haible  <bruno@clisp.org>
18946
18947         New module 'ceilf-ieee'.
18948         * modules/ceilf-ieee: New file.
18949         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18950         test whether ceilf works according to ISO C 99 with IEC 60559.
18951         * m4/ceilf-ieee.m4: New file.
18952         * modules/ceilf-ieee-tests: New file.
18953         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18954         * tests/test-ceilf1.c (main): Remove signbit tests.
18955         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18956         * doc/posix-functions/ceilf.texi: Mention the new module.
18957
18958 2010-12-21  Bruno Haible  <bruno@clisp.org>
18959
18960         New module 'floorf-ieee'.
18961         * modules/floorf-ieee: New file.
18962         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18963         test whether floorf works according to ISO C 99 with IEC 60559.
18964         * m4/floorf-ieee.m4: New file.
18965         * modules/floorf-ieee-tests: New file.
18966         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18967         * tests/test-floorf1.c (main): Remove signbit tests.
18968         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18969         * doc/posix-functions/floorf.texi: Mention the new module.
18970
18971 2010-12-21  Bruno Haible  <bruno@clisp.org>
18972
18973         Support for minus zero in autoconf macros.
18974         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18975         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18976         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18977         * tests/minus-zero.h: Update comments.
18978
18979 2010-12-21  Bruno Haible  <bruno@clisp.org>
18980
18981         Tests for module 'ceil'.
18982         * modules/ceil-tests: New file.
18983         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18984         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18985
18986 2010-12-21  Bruno Haible  <bruno@clisp.org>
18987
18988         Tests for module 'floor'.
18989         * modules/floor-tests: New file.
18990         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18991         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18992
18993 2010-12-21  Bruno Haible  <bruno@clisp.org>
18994
18995         math: Fix indentation.
18996         * lib/math.in.h (floorf): Fix indentation.
18997
18998 2010-12-21  Bruno Haible  <bruno@clisp.org>
18999
19000         Fix cross-compilation guesses on Solaris.
19001         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19002         not match "solaris2.10".
19003         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19004         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19005         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19006
19007 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19008
19009         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19010         This fixes a problem observed with the latest coreutils snapshot
19011         that caused a test to fail on Solaris 8.  src/csplit.c's call
19012         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19013         earlier, instead of returning the number of bytes that would have
19014         been generated; this causes csplit to incorrectly report memory
19015         exhaustion.
19016         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19017         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19018         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19019         comments to match.
19020         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19021         Fix typo in matching older versions of Solaris: "solaris2.10"
19022         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19023         only for guessing while cross-compiling.
19024         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19025
19026 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19027
19028         ftoastr: fix comment again
19029         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19031         Also, simplify example a bit by using flags = 0.
19032
19033 2010-12-20  Bruno Haible  <bruno@clisp.org>
19034
19035         round*, trunc*: Update documentation regarding glibc.
19036         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19037         * doc/posix-functions/round.texi: Likewise.
19038         * doc/posix-functions/roundl.texi: Likewise.
19039         * doc/posix-functions/truncf.texi: Likewise.
19040         * doc/posix-functions/trunc.texi: Likewise.
19041         * doc/posix-functions/truncl.texi: Likewise.
19042
19043 2010-12-20  Bruno Haible  <bruno@clisp.org>
19044
19045         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19046         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19047         * doc/posix-functions/round.texi: Likewise.
19048         * doc/posix-functions/roundl.texi: Likewise.
19049
19050 2010-12-20  Bruno Haible  <bruno@clisp.org>
19051
19052         ttyname_r: Add missing declaration on HP-UX 11.
19053         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19054         HAVE_TTYNAME_R.
19055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19056         declared. Set HAVE_TTYNAME_R always.
19057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19058         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19059         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19060         HAVE_TTYNAME_R.
19061         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19062
19063 2010-12-20  Bruno Haible  <bruno@clisp.org>
19064
19065         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19066         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19067         * doc/posix-functions/getlogin_r.texi: Likewise.
19068         * tests/test-getlogin.c: Include <errno.h>.
19069         (main): Avoid test failure on HP-UX 11.11.
19070         * tests/test-getlogin_r.c (main): Likewise.
19071
19072 2010-12-20  Bruno Haible  <bruno@clisp.org>
19073
19074         getlogin_r: Add missing declaration on HP-UX 11.
19075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19076         declared also when it exists as a function.
19077         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19078
19079 2010-12-20  Bruno Haible  <bruno@clisp.org>
19080
19081         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19082         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19083         through wcrtomb.
19084
19085 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19086
19087         ftoastr: fix comment
19088         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19090
19091 2010-12-19  Bruno Haible  <bruno@clisp.org>
19092
19093         isnan: Ensure it is a macro.
19094         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19095         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19096         Solaris.
19097
19098 2010-12-19  Bruno Haible  <bruno@clisp.org>
19099
19100         ldexpl test: Fix link error on OSF/1 5.1.
19101         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19102
19103 2010-12-19  Bruno Haible  <bruno@clisp.org>
19104
19105         wctype: Make it work in C++ mode on OSF/1 5.1.
19106         * lib/wctype.in.h (iswblank): Declare but not define here.
19107         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19108         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19109         * modules/wctype (Files): Add lib/iswblank.c.
19110
19111 2010-12-19  Bruno Haible  <bruno@clisp.org>
19112
19113         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19114         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19115         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19116
19117 2010-12-19  Bruno Haible  <bruno@clisp.org>
19118
19119         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19121         _POSIX_PII_SOCKET.
19122         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19123         * doc/posix-functions/recvfrom.texi: Likewise.
19124         * doc/posix-functions/send.texi: Likewise.
19125         * doc/posix-functions/sendto.texi: Likewise.
19126
19127 2010-12-19  Bruno Haible  <bruno@clisp.org>
19128
19129         tcgetsid: Add missing declaration on OSF/1 5.1.
19130         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19131         HAVE_TCGETSID.
19132         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19133         Don't set HAVE_TCGETSID.
19134         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19135         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19136         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19137         HAVE_TCGETSID.
19138         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19139
19140 2010-12-19  Bruno Haible  <bruno@clisp.org>
19141
19142         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19143         * lib/stdio.in.h: During the include_next statement, let recursive
19144         includes of this file include only the system header file.
19145
19146 2010-12-19  Bruno Haible  <bruno@clisp.org>
19147
19148         iconv_open: Fix regression from 2010-12-04.
19149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19150         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19151
19152 2010-12-19  Bruno Haible  <bruno@clisp.org>
19153
19154         stdbool test: Avoid a gcc warning.
19155         * tests/test-stdbool.c (main): Fail if e1 is false.
19156         Reported by Jim Meyering.
19157
19158 2010-12-19  Jim Meyering  <meyering@redhat.com>
19159
19160         setenv: restore to working order
19161         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19162         mistakenly removed.
19163         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19164         HAVE_SETENV.
19165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19166         HAVE_SETENV.
19167
19168 2010-12-19  Bruno Haible  <bruno@clisp.org>
19169
19170         Document some different function declarations on OSF/1 5.1.
19171         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19172         * doc/posix-functions/inet_ntop.texi: Likewise.
19173         * doc/posix-functions/gethostname.texi: Likewise.
19174         * lib/unistd.in.h (gethostname): Update comment.
19175
19176 2010-12-19  Bruno Haible  <bruno@clisp.org>
19177
19178         doc: Mention vasprintf-posix module.
19179         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19180         the 'vasprintf-posix' module.
19181         * doc/glibc-functions/vasprintf.texi: Likewise.
19182
19183 2010-12-19  Bruno Haible  <bruno@clisp.org>
19184
19185         unsetenv: Add missing declaration on OSF/1 5.1.
19186         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19188         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19190         not HAVE_UNSETENV.
19191         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19192         HAVE_UNSETENV.
19193         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19194
19195 2010-12-19  Bruno Haible  <bruno@clisp.org>
19196
19197         setenv: Add missing declaration on OSF/1 5.1.
19198         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19200         declared. Don't set HAVE_SETENV.
19201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19202         not HAVE_SETENV.
19203         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19204         HAVE_SETENV.
19205         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19206
19207 2010-12-19  Bruno Haible  <bruno@clisp.org>
19208
19209         nl_langinfo tests: Avoid gcc warning.
19210         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19211
19212 2010-12-19  Bruno Haible  <bruno@clisp.org>
19213
19214         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19215         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19216         _GL_CXXALIAS_SYS.
19217
19218 2010-12-19  Bruno Haible  <bruno@clisp.org>
19219
19220         stdbool: Relax test.
19221         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19222         address to 'bool' work in static initializer, for compilers other than
19223         GCC.
19224
19225 2010-12-19  Bruno Haible  <bruno@clisp.org>
19226
19227         ftello: Add missing declaration on OSF/1 5.1.
19228         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19229         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19231         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19232         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19233
19234 2010-12-19  Bruno Haible  <bruno@clisp.org>
19235
19236         fseeko: Add missing declaration on OSF/1 5.1.
19237         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19238         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19240         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19241         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19242
19243 2010-12-19  Bruno Haible  <bruno@clisp.org>
19244
19245         fchdir: Add missing declaration on OSF/1 5.1.
19246         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19249         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19250         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19251
19252 2010-12-19  Bruno Haible  <bruno@clisp.org>
19253
19254         relocatable-prog-wrapper: Separate from relocatable-prog.
19255         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19256         uninstall-relocwrapper rule here.
19257         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19258         Reported by Ian Beckwith <ianb@erislabs.net>.
19259
19260 2010-12-19  Bruno Haible  <bruno@clisp.org>
19261
19262         unistr/u8-mbsnlen: Add missing dependency.
19263         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19264         Reported by Ian Beckwith <ianb@erislabs.net>.
19265
19266 2010-12-19  Bruno Haible  <bruno@clisp.org>
19267
19268         iconv: Make it possible again to use this module without 'iconv-h'.
19269         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19270         if it is not defined.
19271         Reported by Ian Beckwith <ianb@erislabs.net>.
19272
19273 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19274
19275         acl: port to Solaris 8 when copying from tmpfs to ufs
19276         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19277         error number.  Problem observed on Solaris 8 with latest
19278         coreutils, with "mv A B", where A is on a tmpfs file system and B
19279         is on a ufs file system.  This caused coreutils' mv/part-symlink
19280         test to fail.
19281
19282         tests: set fail=0 at start
19283         * tests/init.sh (setup_): Move fail=0 initialization here ...
19284         (mktempd_): ... from here, so that tests can rely on fail being
19285         set to 0 initially.  This fixes a problem in coreutils; see:
19286         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19287
19288 2010-12-18  Bruno Haible  <bruno@clisp.org>
19289
19290         memmem-simple: Stylistic changes.
19291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19292         Fix preprocessor directive indentation.
19293
19294 2010-12-15  Pádraig Brady <P@draigBrady.com>
19295
19296         memmem, memmem-simple: reorganize and expand empty needle check
19297         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19298         functional checks to memmem-simple so that one has a fully functional
19299         memmem by using just this module.
19300         Restrict the performance only check to the memmem module.
19301         Also expand the empty needle check to ensure the correct
19302         pointer is returned, not just a non NULL pointer.
19303         * doc/glibc-functions/memmem.texi: Rearrange the portability
19304         documentation to correlate with the rearranged checks.
19305         Clarify exactly how the memmem and memmem-simple modules
19306         relate to each other.
19307
19308 2010-12-15  Pádraig Brady <P@draigBrady.com>
19309             Bruno Haible  <bruno@clisp.org>
19310
19311         Improve cross-compilation guesses for uClibc.
19312         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19313         that uClibc does not have the glibc bug.
19314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19315         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19316
19317 2010-12-14  Eric Blake  <eblake@redhat.com>
19318
19319         configmake: provide fallbacks for oldest supported autotools
19320         * m4/configmake.m4: New file.
19321         * modules/configmake (Files): Ship it.
19322         (configure.ac): Use it to guarantee fallbacks.
19323
19324 2010-12-13  Pádraig Brady <P@draigBrady.com>
19325
19326         read-file: Improve handling of large files
19327         * lib/read-file.c (fread_file): Minimize realloc()s
19328         for regular files, and better manage sizes around SIZE_MAX.
19329
19330 2010-12-13  Eric Blake  <eblake@redhat.com>
19331
19332         cloexec, fcntl: relax license
19333         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19334         consent from all contributors.
19335         * modules/fcntl (License): Likewise.
19336
19337 2010-12-10  Bruno Haible  <bruno@clisp.org>
19338
19339         Tests for module 'pipe-posix'.
19340         * modules/pipe-posix-tests: New file.
19341         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19342
19343 2010-12-10  Bruno Haible  <bruno@clisp.org>
19344
19345         pipe-posix: Make it work in C++ mode.
19346         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19347         (pipe): Use common idiom, not a macro definition.
19348         * lib/pipe.c: New file.
19349         * m4/pipe.m4: New file.
19350         * modules/pipe-posix (Description): Enhance.
19351         (Files): Add lib/pipe.c, m4/pipe.m4.
19352         (configure.ac): Invoke gl_FUNC_PIPE.
19353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19354         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19355         * tests/test-unistd-c++.cc: Check the signature of pipe.
19356
19357 2010-12-10  Bruno Haible  <bruno@clisp.org>
19358
19359         Rename module 'pipe' to 'spawn-pipe'.
19360         * modules/spawn-pipe: New file, renamed from modules/pipe.
19361         (Files, configure.ac, Makefile.am): Update.
19362         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19363         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19364         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19365         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19366         "spawn-pipe.h" instead of "pipe.h".
19367         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19368         to gl_SPAWN_PIPE.
19369         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19370         (Files, Makefile.am): Update.
19371         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19372         Update.
19373         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19374         Include "spawn-pipe.h" instead of "pipe.h".
19375         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19376         * lib/javacomp.c: Likewise.
19377         * lib/javaversion.c: Likewise.
19378         * lib/pipe-filter-gi.c: Likewise.
19379         * lib/pipe-filter-ii.c: Likewise.
19380         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19381         * modules/javacomp (Depends-on): Likewise.
19382         * modules/javaversion (Depends-on): Likewise.
19383         * modules/pipe-filter-gi (Depends-on): Likewise.
19384         * modules/pipe-filter-ii (Depends-on): Likewise.
19385         * MODULES.html.sh (Executing programs): Update.
19386         * NEWS: Mention the change.
19387
19388 2010-12-10  Eric Blake  <eblake@redhat.com>
19389
19390         pipe-posix: new module
19391         * modules/pipe-posix: New file.
19392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19393         (gl_UNISTD_H): Check for declaration.
19394         * modules/unistd (Makefile.am): Substitute it.
19395         * lib/unistd.in.h (pipe): Provide it for mingw.
19396         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19397         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19398
19399 2010-12-07  Bruno Haible  <bruno@clisp.org>
19400
19401         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19402         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19403         u8_strcmp_gnu.
19404         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19405
19406 2010-12-06  Bruno Haible  <bruno@clisp.org>
19407
19408         Update internal documentation.
19409         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19410
19411 2010-12-04  Bruno Haible  <bruno@clisp.org>
19412
19413         Put more information about failed tests into the test return codes.
19414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19415         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19416         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19418         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19419         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19421         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19422         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19424         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19425         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19426         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19427         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19428         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19429         returns a bit mask.
19430         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19431         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19432         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19433         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19434         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19435         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19436         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19438         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19440         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19441         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19442         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19443         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19444         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19445         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19446         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19447         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19449         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19451         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19453         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19454         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19455         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19456         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19457         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19458         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19459         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19460         gl_PRINTF_PRECISION): Likewise.
19461         * m4/regex.m4 (gl_REGEX): Likewise.
19462         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19464         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19465         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19469         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19470         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19471         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19472         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19473         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19474         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19475         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19476         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19477         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19478         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19479         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19481         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19482         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19483         enumerated value.
19484         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19485
19486 2010-12-04  Bruno Haible  <bruno@clisp.org>
19487
19488         Update for Solaris 11 2010-11.
19489         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19490         Express, released in November 2010.
19491
19492 2010-12-04  Bruno Haible  <bruno@clisp.org>
19493
19494         nproc: Relax license.
19495         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19496         and Paul Eggert.
19497         Requested by Ludovic Courtès <ludo@gnu.org>.
19498
19499 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         utimecmp: fine-grained src to nearby coarse-grained dest
19502
19503         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19504         and the source is on a file system with higher-resolution time
19505         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19506         not work, and the time stamps are close together, the algorithm to
19507         determine the exact resolution from the read-back mtime was buggy:
19508         it had a "!=" where it should have had an "==".  This bug has been
19509         in the code ever since it was introduced to gnulib.
19510         Problem reported by Dan Jacobson in
19511         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19512
19513 2010-11-30  Bruno Haible  <bruno@clisp.org>
19514
19515         strerror_r-posix: Fix autoconf test.
19516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19517
19518 2010-11-28  Bruno Haible  <bruno@clisp.org>
19519             Paul Eggert  <eggert@cs.ucla.edu>
19520
19521         Tests for module 'getdomainname'.
19522         * modules/getdomainname-tests: New file.
19523         * tests/test-getdomainname.c: New file, based on
19524         tests/test-gethostname.c.
19525
19526 2010-11-28  Bruno Haible  <bruno@clisp.org>
19527             Paul Eggert  <eggert@cs.ucla.edu>
19528
19529         getdomainname: Use the system function when possible.
19530         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19531         (getdomainname): Replace if needed. Provide the declaration if it is
19532         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19533         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19534         (getdomainname): When the system has getdomainname, call the system
19535         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19536         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19537         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19538         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19539         the function if its second argument is of type 'int' or if it is found
19540         in libnsl.
19541         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19542         <sys/systeminfo.h> and sysinfo().
19543         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19545         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19546         HAVE_GETDOMAINNAME.
19547         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19548         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19549         * doc/glibc-functions/getdomainname.texi: Document the problems with
19550         the getdomainname declaration.
19551
19552 2010-11-28  Bruno Haible  <bruno@clisp.org>
19553
19554         sys_socket: Ensure ss_family field on AIX.
19555         * lib/sys_socket.in.h (ss_family): New macro definition.
19556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19557         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19558         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19559         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19560         * modules/sys_socket (Makefile.am): Substitute
19561         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19562         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19563
19564 2010-11-27  Bruno Haible  <bruno@clisp.org>
19565
19566         readline: Improve configure output.
19567         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19568         "checking for readline..." result understandable.
19569
19570 2010-11-27  Bruno Haible  <bruno@clisp.org>
19571
19572         *printf-posix: Detect a bug on Solaris 10/x86.
19573         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19574         for floating-point output.
19575         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19576         directive.
19577         * tests/test-snprintf-posix.h (test_function): Likewise.
19578         * tests/test-sprintf-posix.h (test_function): Likewise.
19579         * tests/test-vasprintf-posix.c (test_function): Likewise.
19580         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19581         * doc/posix-functions/printf.texi: Likewise.
19582         * doc/posix-functions/snprintf.texi: Likewise.
19583         * doc/posix-functions/sprintf.texi: Likewise.
19584         * doc/posix-functions/vfprintf.texi: Likewise.
19585         * doc/posix-functions/vprintf.texi: Likewise.
19586         * doc/posix-functions/vsnprintf.texi: Likewise.
19587         * doc/posix-functions/vsprintf.texi: Likewise.
19588         * doc/glibc-functions/obstack_printf.texi: Likewise.
19589         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19590
19591 2010-11-27  Bruno Haible  <bruno@clisp.org>
19592
19593         Fix link error when module libunistring-optional is in use.
19594         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19595         * modules/striconveha-tests (Makefile.am): Likewise.
19596
19597 2010-11-27  Bruno Haible  <bruno@clisp.org>
19598
19599         regex: Mention link dependencies.
19600         * modules/regex (Link): New section.
19601         * modules/rpmatch (Link): Likewise.
19602         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19603
19604 2010-11-27  Bruno Haible  <bruno@clisp.org>
19605
19606         ftoastr: Fix compilation error on Solaris.
19607         * lib/ftoastr.c: Include <config.h>.
19608
19609 2010-11-27  Bruno Haible  <bruno@clisp.org>
19610
19611         getloadavg: Update documentation.
19612         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19613
19614 2010-11-27  Bruno Haible  <bruno@clisp.org>
19615
19616         sys_socket: Fix test whether the functions are declared.
19617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19618         not <sys/select.h>.
19619
19620 2010-11-27  Bruno Haible  <bruno@clisp.org>
19621
19622         getpass: Make sure to get system declaration on some platforms.
19623         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19624         gl_USE_SYSTEM_EXTENSIONS.
19625         * modules/getpass (Depends-on): Add extensions.
19626
19627 2010-11-26  Bruno Haible  <bruno@clisp.org>
19628
19629         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19630         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19631         'iconv' module is present.
19632         (ICONV_CONST): New macro.
19633         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19634         ICONV_CONST.
19635         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19636         set ICONV_CONST.
19637         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19638         here.
19639         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19640         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19641         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19642         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19643         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19644         present.
19645
19646 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19647
19648         ftoastr: comment fix
19649         * lib/ftoastr.c: "little" -> "little or no" in comment
19650
19651 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19652
19653         stdint: port to GCC 4.3 + OSX + Octave
19654         On this platform, stdint.h is buggy and defines int64_t to long
19655         long int.  The replacement defined it to long int, causing
19656         problems with C++ style name mangling.  Instead, trust the system
19657         definition if INT64_MAX is defined, and likewise for the unsigned
19658         variant.   Problem reported by Jarno Rajahalme in
19659         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19660         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19661         and don't mess with int64_t and INT64_MAX in this case.
19662         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19663
19664 2010-11-24  Bruno Haible  <bruno@clisp.org>
19665
19666         doc: Corrections regarding MacOS X 10.4 and 10.5.
19667         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19668         MacOS X.
19669         Reported by Simon Josefsson.
19670
19671 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19672
19673         Uninstall ".bin" files installed by relocwrapper.
19674         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19675         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19676         unless it is already there.
19677
19678 2010-11-21  Bruno Haible  <bruno@clisp.org>
19679
19680         Update for NetBSD 5.0.
19681         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19682         NetBSD; the test fails on NetBSD 5.0.
19683         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19684         about NetBSD.
19685
19686 2010-11-21  Bruno Haible  <bruno@clisp.org>
19687
19688         Update for HP-UX 11.23 and HP-UX 11.31.
19689         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19690         HP-UX.
19691
19692 2010-11-21  Bruno Haible  <bruno@clisp.org>
19693
19694         Update for MacOS X 10.5.
19695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19696         MacOS X; the test fails on MacOS X 10.5.8.
19697         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19698         about MacOS X.
19699
19700 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19701
19702         bootstrap: add bootstrap_sync option.
19703         See discussion at
19704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19705         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19706         * build-aux/bootstrap: Accept --bootstrap-sync to update
19707         bootstrap if it is not identical to the local gnulib's
19708         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19709         enable this by default.  Accept --no-bootstrap-sync to disable
19710         it.
19711
19712 2010-11-20  Bruno Haible  <bruno@clisp.org>
19713
19714         Ensure that <features.h> is included before __GLIBC__ is tested.
19715         * lib/printf-parse.h: Include <features.h>.
19716         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19717         Reported by Mike Frysinger <vapier@gentoo.org>.
19718
19719         Ensure that <features.h> is included before __GLIBC__ is tested.
19720         * lib/wchar.in.h: Include <features.h>.
19721         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19722         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19723         Reported by Mike Frysinger <vapier@gentoo.org>.
19724
19725         Ensure that <features.h> is included before __GLIBC__ is tested.
19726         * lib/arpa_inet.in.h: Include <features.h>.
19727         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19728         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19729         Reported by Mike Frysinger <vapier@gentoo.org>.
19730
19731         Ensure that <features.h> is included before __GLIBC__ is tested.
19732         * build-aux/link-warning.h: Include <features.h>.
19733         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19734         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19735         Reported by Mike Frysinger <vapier@gentoo.org>.
19736
19737         Ensure that <features.h> is included before __GLIBC__ is tested.
19738         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19739         Reported by Mike Frysinger <vapier@gentoo.org>.
19740
19741 2010-11-20  Bruno Haible  <bruno@clisp.org>
19742
19743         memmem: Fix autoconf test.
19744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19745
19746 2010-11-20  Bruno Haible  <bruno@clisp.org>
19747
19748         Port to uClibc.
19749         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19750         * lib/fcntl.in.h: Likewise.
19751         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19752         * lib/mbrtowc.c (mbrtowc): Likewise.
19753         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19754         * lib/strerror_r.c: Likewise.
19755         * lib/unistr/u8-strnlen.c: Likewise.
19756         * lib/vasnprintf.c (decimal_point_char): Likewise.
19757         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19758         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19760         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19761         * tests/test-sigaction.c (handler, main): Likewise.
19762         * lib/freading.h: Treat uClibc like a non-glibc platform.
19763         * lib/freading.c: Likewise.
19764         * lib/gettext.h: Likewise.
19765         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19766         Likewise.
19767         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19768         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19769         * lib/propername.c (proper_name_utf8): Likewise.
19770         * lib/spawn.in.h: Likewise.
19771         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19772         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19773         mem_cd_iconveh_internal): Likewise.
19774         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19775         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19776         strstr, strcasestr): Likewise.
19777         * lib/unicodeio.c (unicode_to_mb): Likewise.
19778         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19779         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19780         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19781         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19782         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19783         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19784         * lib/unistr/u8-stpncpy.c: Likewise.
19785         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19786         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19788         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19789         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19790         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19794         Likewise.
19795         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19796         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19797         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19800         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19801         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19802         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19803         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19804         * tests/test-striconveha.c (main): Likewise.
19805         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19806         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19807         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19808         * doc/posix-functions/getline.texi: Likewise.
19809         Reported by Mike Frysinger <vapier@gentoo.org>.
19810
19811 2010-11-20  Bruno Haible  <bruno@clisp.org>
19812
19813         nproc: Fix condition.
19814         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19815         HAVE_PTHREAD_AFFINITY_NP.
19816
19817 2010-11-20  Bruno Haible  <bruno@clisp.org>
19818
19819         Fix a comment.
19820         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19821
19822 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19823
19824         ftoastr: don't assume snprintf
19825         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19826         Implement a subset of snprintf here, by using sprintf safely.
19827         * modules/ftoastr (Depends-on): Remove snprintf.
19828
19829 2010-11-19  Jim Meyering  <meyering@redhat.com>
19830
19831         test-rename.h: fix compilation failure
19832         * tests/test-rename.h (test_rename): Add omitted "}".
19833
19834 2010-11-17  Jim Meyering  <meyering@redhat.com>
19835
19836         maint.mk: add a URL discussing the no-@acronym policy
19837         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19838
19839 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19840
19841         ftoastr: depend on snprintf, improve comments
19842         * lib/ftoastr.c: Also mention Loitsch's draft.
19843         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19844         needed in the current implementation, but it might simplify
19845         speeding up the code later.
19846         * modules/ftoastr: Depend on snprintf; this improves portability.
19847         Suggested by Bruno Haible in the same email.
19848
19849         ftoastr: port to hosts lacking strtof and strtold
19850         Problem reported by Bruno Haible in
19851         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19852         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19853         environment and strtold (and presumably strtof) are not available.
19854         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19855         (configure.ac): Require gl_C99_STRTOLD.
19856
19857 2010-11-18  Bruno Haible  <bruno@clisp.org>
19858
19859         c-strtold: Avoid link error on AIX 7.
19860         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19861         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19862         (gl_C_STRTOLD): Test whether strtold_l exists.
19863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19864
19865 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19866
19867         intprops: new macro INT_BITS_STRLEN_BOUND
19868         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19869         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19870         not exposed.  Also, it uses a slightly tighter bound than before;
19871         though this makes no practical difference, we might as well be as
19872         tight as we easily can.
19873
19874         ftoastr: new module, for lossless conversion of floats to short strings
19875         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19876         * modules/ftoastr: New files.
19877
19878 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19879
19880         bootstrap: port to Solaris sed
19881         * build-aux/bootstrap (get_version): Port to Solaris sed.
19882         See Ralf Wildenhues's note in
19883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19884
19885 2010-11-14  Jim Meyering  <meyering@redhat.com>
19886
19887         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19888         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19889         and move definition closer to sole use.
19890
19891 2010-11-13  Jim Meyering  <meyering@redhat.com>
19892
19893         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19894         Now we require at least autoconf-2.59, which means the work-around
19895         is no longer needed.
19896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19897         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19898         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19899         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19900         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19901
19902 2010-11-13  Bruno Haible  <bruno@clisp.org>
19903
19904         rename, renameat: Avoid test failures at NFS mounted locations.
19905         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19906         functions.
19907         (test_rename): Use assert_nonexistent.
19908         * tests/test-rename.c: Include <dirent.h>.
19909         * tests/test-renameat.c: Likewise.
19910         Reported by Gary V. Vaughan <gary@gnu.org>.
19911
19912         rename, renameat: Document Linux bug with NFS
19913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19914         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19915         * doc/posix-functions/renameat.texi: Likewise.
19916         Suggested by Eric Blake.
19917
19918 2010-11-13  Bruno Haible  <bruno@clisp.org>
19919
19920         rename test: Add comments.
19921         * tests/test-rename.h (test_rename): Add structure and comments.
19922
19923 2010-11-13  Eric Blake  <eblake@redhat.com>
19924
19925         maintainer-makefile: cover a few more files
19926         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19927         scripts generated within C files, for libvirt.
19928
19929 2010-11-13  Bruno Haible  <bruno@clisp.org>
19930
19931         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19932         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19933         character, return the number of bytes that belong together, not always
19934         1.
19935         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19936         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19937         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19938         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19939         number of bytes of an invalid character.
19940         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19941         (main): Invoke it.
19942         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19943         results.
19944         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19945         malformed byte sequences.
19946         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19947         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19948         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19949         Reported by Ben Pfaff and Paolo Bonzini.
19950
19951 2010-11-13  Bruno Haible  <bruno@clisp.org>
19952
19953         openat: Work around glibc bug with fchownat() and empty file names.
19954         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19955         (gl_FUNC_FCHOWNAT): Invoke it.
19956         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19957         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19958         Reported by Gary V. Vaughan <gary@gnu.org>.
19959
19960 2010-11-13  Bruno Haible  <bruno@clisp.org>
19961
19962         openat: Ensure autoconf macro ordering.
19963         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19964         gl_USE_SYSTEM_EXTENSIONS.
19965         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19966
19967 2010-11-13  Bruno Haible  <bruno@clisp.org>
19968
19969         Update comments.
19970         * lib/unistr/u8-check.c: Update file name in comments.
19971         * lib/unistr/u8-mblen.c: Likewise.
19972         * lib/unistr/u8-prev.c: Likewise.
19973         * lib/unistr/u8-strmblen.c: Likewise.
19974         * lib/unistr/u8-strmbtouc.c: Likewise.
19975
19976 2010-11-13  Jim Meyering  <meyering@redhat.com>
19977
19978         tests: avoid test failure on Solaris 10 due to lack of PATH export
19979         * tests/test-update-copyright.sh: Don't forget to export PATH.
19980
19981         init.sh: ensure that IFS is defined, just in case...
19982         * tests/init.sh (setup_): Ensure that IFS is defined,
19983         so that saving and restoring it works as expected.  This
19984         appears to be useful at least for an old version of dash
19985         from a long time ago (RH 6).  See here for details:
19986         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19987
19988         maint.mk: tighten "test a == b" check
19989         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19990         test to files that contain something like #!/bin/sh.
19991         Without this, coreutils would get two false positives in
19992         the comments of C source files.
19993
19994 2010-11-12  Eric Blake  <eblake@redhat.com>
19995
19996         bootstrap: fix typo in previous attempt
19997         * build-aux/bootstrap (buildreq): Correct the grouping.
19998         Reported by Paul Eggert.
19999
20000         maintainer-makefile: prohibit test x == x
20001         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20002         Based on a report by Matthias Bolte.
20003
20004         bootstrap: allow FreeBSD gzip
20005         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20006         which has no '.' and goes to stderr.
20007         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20008         Reported by Matthias Bolte.
20009
20010         maintainer-makefile: check for i18n setup
20011         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20012         will likely work.
20013
20014 2010-11-12  Bruno Haible  <bruno@clisp.org>
20015
20016         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20017         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20018         * lib/nanosleep.c (nanosleep): Likewise.
20019
20020 2010-11-11  Bruno Haible  <bruno@clisp.org>
20021
20022         fcntl-h: Fix for use of C++ on glibc systems.
20023         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20024         also on glibc systems in C++ mode.
20025         Reported by Gary V. Vaughan <gary@gnu.org>.
20026
20027 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20028
20029         mknod: avoid false failure with dash
20030         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20031
20032 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20033
20034         unlink: Fix "is it should" typo in diagnostic.
20035         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20037
20038 2010-11-11  Bruno Haible  <bruno@clisp.org>
20039
20040         Tests for module 'strerror_r-posix'.
20041         * modules/strerror_r-posix-tests: New file.
20042         * tests/test-strerror_r.c: New file.
20043         * tests/test-string-c++.cc: Check the signature of strerror_r.
20044
20045         New module 'strerror_r-posix'.
20046         * lib/string.in.h (strerror_r): New declaration.
20047         * lib/strerror_r.c: New file.
20048         * m4/strerror_r.m4: New file.
20049         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20050         of strerror_r.
20051         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20052         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20053         * modules/strerror_r-posix: New file.
20054         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20055         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20056         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20057         portability problems.
20058
20059 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20060
20061         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20062         line is also considered for output. Quoted function name in shell
20063         command, so temporary files for functions like MyClass::operator()
20064         are removed correctly without errors.
20065
20066 2010-11-09  Bruno Haible  <bruno@clisp.org>
20067
20068         * doc/posix-functions/strerror.texi: List more failing platforms.
20069
20070         * doc/posix-functions/strerror.texi: Add a comment.
20071
20072 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20073
20074         fdopendir: fix bug on MacOS X when low on file descriptors
20075
20076         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20077         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20078         All callers changed.
20079         (fdopendir): Invoke save_cwd at the top level, not after using
20080         multiple dup() calls to use up file descriptors.  Then retry
20081         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20082         less than the maximum number of open file descriptors, because
20083         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20084         on Mac OS X 10.6.4 for tar 1.24
20085         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20086         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20087         and for tar 1.25
20088         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20089
20090 2010-11-07  Bruno Haible  <bruno@clisp.org>
20091
20092         vasnprintf: Support I flag on glibc systems.
20093         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20094         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20095         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20096         snprintf function.
20097         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20098         glibc systems.
20099         * tests/test-vasnprintf-posix3.c: New file.
20100         * modules/vasnprintf-posix-tests (Files): Add it.
20101         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20102
20103 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20104
20105         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20106         * MODULES.html.sh: For compiler warnings, use name
20107         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20108
20109 2010-11-05  Eric Blake  <eblake@redhat.com>
20110
20111         ceil, floor: avoid spurious failure with icc
20112         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20113         [denormals-as-zero] when optimizing without -mieee-fp option.
20114         * tests/test-floorf2.c (floorf_reference): Likewise.
20115         * tests/test-ceilf1.c (dummy): New function.
20116         (main): Use it to outsmart icc's optimization.
20117         * tests/test-floorf1.c (dummy, main): Likewise.
20118
20119         tests: require working signbit
20120         * modules/ceilf-tests (Depends-on): Add signbit.
20121         * modules/ceill-tests (Depends-on): Likewise.
20122         * modules/floorf-tests (Depends-on): Likewise.
20123         * modules/floorl-tests (Depends-on): Likewise.
20124         * modules/round-tests (Depends-on): Likewise.
20125         * modules/roundf-tests (Depends-on): Likewise.
20126         * modules/roundl-tests (Depends-on): Likewise.
20127         * modules/trunc-tests (Depends-on): Likewise.
20128         * modules/truncf-tests (Depends-on): Likewise.
20129         * modules/truncl-tests (Depends-on): Likewise.
20130
20131         strtod: work around icc bug
20132         * lib/strtod.c (minus_zero): Define to working value.
20133         (strtod): Use it to avoid icc bug.
20134
20135         copysign: enhance tests
20136         * modules/copysign-tests (Files): Add minus-zero.h.
20137         * tests/test-copysign.c (main): Also test zeros.
20138
20139 2010-11-04  Eric Blake  <eblake@redhat.com>
20140
20141         ceil, floor, round, trunc: enhance tests of -0
20142         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20143         * tests/test-ceill.c (main): Likewise.
20144         * tests/test-floorf1.c (main): Likewise.
20145         * tests/test-floorl.c (main): Likewise.
20146         * tests/test-round1.c (main): Likewise.
20147         * tests/test-roundf1.c (main): Likewise.
20148         * tests/test-roundl.c (main): Likewise.
20149         * tests/test-trunc1.c (main): Likewise.
20150         * tests/test-truncf1.c (main): Likewise.
20151         * tests/test-truncl.c (main): Likewise.
20152
20153 2010-11-04  Eric Blake  <eblake@redhat.com>
20154
20155         frexp, tests: work around ICC bug with -zero
20156         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20157         works with more compilers.
20158         * tests/minus-zero.h: New file.
20159         * modules/ceilf-tests (Files): Include it.
20160         * modules/ceill-tests (Files): Likewise.
20161         * modules/floorf-tests (Files): Likewise.
20162         * modules/floorl-tests (Files): Likewise.
20163         * modules/frexp-nolibm-tests (Files): Likewise.
20164         * modules/frexp-tests (Files): Likewise.
20165         * modules/frexpl-nolibm-tests (Files): Likewise.
20166         * modules/frexpl-tests (Files): Likewise.
20167         * modules/isnan-tests (Files): Likewise.
20168         * modules/isnand-nolibm-tests (Files): Likewise.
20169         * modules/isnand-tests (Files): Likewise.
20170         * modules/isnanf-nolibm-tests (Files): Likewise.
20171         * modules/isnanf-tests (Files): Likewise.
20172         * modules/isnanl-nolibm-tests (Files): Likewise.
20173         * modules/isnanl-tests (Files): Likewise.
20174         * modules/round-tests (Files): Likewise.
20175         * modules/roundf-tests (Files): Likewise.
20176         * modules/roundl-tests (Files): Likewise.
20177         * modules/ldexpl-tests (Files): Likewise.
20178         * modules/signbit-tests (Files): Likewise.
20179         * modules/snprintf-posix-tests (Files): Likewise.
20180         * modules/sprintf-posix-tests (Files): Likewise.
20181         * modules/strtod-tests (Files): Likewise.
20182         * modules/trunc-tests (Files): Likewise.
20183         * modules/truncf-tests (Files): Likewise.
20184         * modules/truncl-tests (Files): Likewise.
20185         * modules/vsnprintf-posix-tests (Files): Likewise.
20186         * modules/vsprintf-posix-tests (Files): Likewise.
20187         * modules/vasnprintf-posix-tests (Files): Likewise.
20188         * modules/vasprintf-posix-tests (Files): Likewise.
20189         * tests/test-ceilf1.c (main): Use it.
20190         * tests/test-ceill.c (main): Likewise.
20191         * tests/test-floorf1.c (main): Likewise.
20192         * tests/test-floorl.c (main): Likewise.
20193         * tests/test-frexp.c (main): Likewise.
20194         * tests/test-frexpl.c (main): Likewise.
20195         * tests/test-isnan.c (main): Likewise.
20196         * tests/test-isnand.h (main): Likewise.
20197         * tests/test-isnanf.h (main): Likewise.
20198         * tests/test-isnanl.h (main): Likewise.
20199         * tests/test-ldexpl.c (main): Likewise.
20200         * tests/test-round.c (main): Likewise.
20201         * tests/test-roundf.c (main): Likewise.
20202         * tests/test-roundl.c (main): Likewise.
20203         * tests/test-signbit.c (test_signbitf, test_signbitd)
20204         (test_signbitl): Likewise.
20205         * tests/test-snprintf-posix.h (test_function): Likewise.
20206         * tests/test-sprintf-posix.h (test_function): Likewise.
20207         * tests/test-strtod.c (main): Likewise.
20208         * tests/test-trunc1.c (main): Likewise.
20209         * tests/test-truncf1.c (main): Likewise.
20210         * tests/test-truncl.c (main): Likewise.
20211
20212         isnanl: work around icc bug
20213         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20214
20215 2010-11-03  Eric Blake  <eblake@redhat.com>
20216
20217         tests: fix compiler warnings
20218         * tests/test-getopt.h (test_getopt): Fix condition.
20219         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20220         * tests/test-pipe2.c (main): Likewise.
20221         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20222
20223         utimens: fix broken m4 test
20224         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20225
20226 2010-10-28  Bruno Haible  <bruno@clisp.org>
20227
20228         posix_spawn*, getdtablesize: Relax license.
20229         * modules/posix_spawn (License): Change to LGPLv2+.
20230         * modules/posix_spawnp (License): Likewise.
20231         * modules/posix_spawn-internal (License): Likewise.
20232         * modules/posix_spawnattr_init (License): Likewise.
20233         * modules/posix_spawnattr_getflags (License): Likewise.
20234         * modules/posix_spawnattr_setflags (License): Likewise.
20235         * modules/posix_spawnattr_getpgroup (License): Likewise.
20236         * modules/posix_spawnattr_setpgroup (License): Likewise.
20237         * modules/posix_spawnattr_getschedparam (License): Likewise.
20238         * modules/posix_spawnattr_setschedparam (License): Likewise.
20239         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20240         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20241         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20242         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20243         * modules/posix_spawnattr_getsigmask (License): Likewise.
20244         * modules/posix_spawnattr_setsigmask (License): Likewise.
20245         * modules/posix_spawnattr_destroy (License): Likewise.
20246         * modules/posix_spawn_file_actions_init (License): Likewise.
20247         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20248         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20249         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20250         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20251         * modules/getdtablesize (License): Likewise.
20252         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20253
20254 2010-10-26  Bruno Haible  <bruno@clisp.org>
20255
20256         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20257         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20258         Cygwin and mingw.
20259         Suggested by Eric Blake.
20260
20261 2010-10-26  Bruno Haible  <bruno@clisp.org>
20262
20263         stdio: Work around compilation error due to renameat() on Solaris 10.
20264         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20265         * lib/renameat.c: Don't include <unistd.h> here.
20266         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20267         Reported by Paul Eggert and Eric Blake.
20268
20269 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20270
20271         renameat: port to Solaris 10, which declares renameat in unistd.h
20272
20273         * lib/renameat.c: Include unistd.h before stdio.h, because
20274         Solaris 10 declares renameat in unistd.h.  Problem encountered
20275         when building GNU tar 1.24 on Solaris 10.
20276
20277 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20278
20279         fdopendir: fix C89 compilation
20280         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20281         compilers.
20282
20283 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         inttostr: simplify by removing unnecessary redundancy
20286         * lib/anytostr.c: Don't include verify.h.
20287         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20288         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20289         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20290         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20291         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20292         Likewise.
20293         * modules/inttostr (Depends-on): Remove 'verify'.
20294
20295 2010-10-23  Bruno Haible  <bruno@clisp.org>
20296
20297         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20298         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20299         Reported by Eric Blake.
20300
20301 2010-10-23  Bruno Haible  <bruno@clisp.org>
20302
20303         Tests: Fix LOCALE_JA on MirBSD 10.
20304         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20305         to an UTF-8 locale.
20306         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20307         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20308         Reported by Eric Blake.
20309
20310 2010-10-21  Bruno Haible  <bruno@clisp.org>
20311
20312         nl_langinfo test: Avoid test failure on NetBSD 5.
20313         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20314         Reported by Eric Blake.
20315
20316 2010-10-21  Eric Blake  <eblake@redhat.com>
20317
20318         c-stack: work around libsigsegv 2.8 bug
20319         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20320         overflow on at least PowerPC64.
20321
20322 2010-10-17  Bruno Haible  <bruno@clisp.org>
20323
20324         userspec: Drop redundant file.
20325         * modules/userspec (Files): Remove lib/inttostr.h.
20326
20327 2010-10-17  Bruno Haible  <bruno@clisp.org>
20328
20329         nl_langinfo tests: Silence some warnings.
20330         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20331         Reported by Jim Meyering.
20332
20333 2010-10-17  Bruno Haible  <bruno@clisp.org>
20334
20335         Make use of GCC's attribute __alloc_size__.
20336         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20337         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20338         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20339         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20340         __alloc_size__.
20341         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20342         Suggested by Jim Meyering.
20343
20344 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20345
20346         bootstrap: anchor .gitignore entries.
20347         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20348         with...
20349         (insert_vc_ignore): ... this new function, which prepends `/' to
20350         all .gitignore entries before passing them to
20351         insert_sorted_if_absent.
20352
20353 2010-10-16  Bruno Haible  <bruno@clisp.org>
20354
20355         nextafter: Fix configure check.
20356         * modules/nextafter (configure.ac): Correct expected prototype.
20357
20358 2010-10-16  Bruno Haible  <bruno@clisp.org>
20359
20360         termios: Update documentation.
20361         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20362
20363 2010-10-16  Bruno Haible  <bruno@clisp.org>
20364
20365         tests: Make them compile with TinyCC.
20366         * tests/test-strstr.c (main): Remove parentheses around array
20367         initializer.
20368
20369 2010-10-15  Eric Blake  <eblake@redhat.com>
20370
20371         ignore-value: make header idempotent
20372         * lib/ignore-value.h: Add double-inclusion guards.
20373         Reported by Stefan Berger.
20374
20375 2010-10-15  Jim Meyering  <meyering@redhat.com>
20376
20377         GNUmakefile: handle "stable" target, not "major"
20378         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20379         lists in maint.mk and announce-gen.  Without this, "make stable"
20380         would fail to ensure that $(VERSION) is up to date.
20381
20382 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20383
20384         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20385         & co.
20386
20387 2010-10-14  Bruno Haible  <bruno@clisp.org>
20388
20389         vasnprintf: Don't set errno to 0.
20390         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20391         block that sets it to 0.
20392         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20393
20394 2010-10-14  Bruno Haible  <bruno@clisp.org>
20395
20396         socketlib: Fix.
20397         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20398         gl_PREREQ_SYS_H_WINSOCK2.
20399         Reported by Ian Beckwith <ianb@erislabs.net>.
20400
20401 2010-10-13  Jim Meyering  <meyering@redhat.com>
20402
20403         test-select-stdin.c: avoid warn_unused_result warnings
20404         * tests/test-select-stdin.c: Include "macros.h".
20405         ASSERT that read and fflush succeed.
20406
20407 2010-10-13  Jim Meyering  <meyering@redhat.com>
20408
20409         git-version-gen: do require git-VC'd files in cwd
20410         * build-aux/git-version-gen: Reject a git version string
20411         if there are no commits associated with the current directory.
20412         This avoids an unlikely false-positive (unrelated dir whose parent
20413         repository also contains a tag matching v*), as pointed out
20414         by Giuseppe Scrivano in
20415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20416
20417 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20418
20419         argv-iter: omit nonconforming declaration
20420         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20421         enum arg_iter_err declaration, which doesn't conform to C99.
20422         Solaris 10 cc warns about this.
20423
20424 2010-10-13  Eric Blake  <eblake@redhat.com>
20425
20426         termios: fix compilation on mingw
20427         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20428         (gl_TERMIOS_H): Adjust it on mingw.
20429         * modules/termios (Makefile.am): Substitute new key.
20430         * lib/termios.in.h (includes): Make include_next conditional.
20431         * doc/posix-headers/termios.texi (termios.h): Update
20432         documentation.
20433         Reported by Daniel P. Berrange.
20434
20435 2010-10-13  Jim Meyering  <meyering@redhat.com>
20436
20437         git-version-gen: don't require that .git/ be in the current dir
20438         * build-aux/git-version-gen: Adjust this script so that it works
20439         when run from any working directory beneath the top-level .git/-
20440         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20442
20443         test-select: avoid warn_unused_result warnings
20444         * tests/test-select.c: Include "macros.h".
20445         ASSERT that each call to read, write, and pipe succeeds.
20446         While not technically required, also check each "close".
20447         * modules/select-tests (Files): Add tests/macros.h.
20448
20449         test-symlinkat: remove declaration of unused local
20450         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20451
20452         test-inttostr: avoid shadowing warnings
20453         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20454         and use malloc rather than the stack for the same reason as
20455         mentioned in the comment justifying the other allocation.
20456
20457 2010-10-11  Bruno Haible  <bruno@clisp.org>
20458
20459         stdlib: Allow multiple gnulib generated replacements to coexist.
20460         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20461         Reported by Sam Steingold <sds@gnu.org>.
20462
20463 2010-10-11  Jim Meyering  <meyering@redhat.com>
20464
20465         fix a documentation typo
20466         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20467
20468 2010-10-11  Eric Blake  <eblake@redhat.com>
20469
20470         futimens: work around Solaris 11 bug
20471         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20472         * tests/test-futimens.h (test_futimens): Enhance, rather than
20473         weaken test.
20474         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20475
20476 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         Indentation.
20479         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20480         higher-level operators more to the left.
20481
20482 2010-10-11  Jim Meyering  <meyering@redhat.com>
20483
20484         test-futimens: avoid unwarranted test failure on Solaris 5.11
20485         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20486         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20487         because it tries to dereference the NULL name argument.
20488
20489 2010-10-11  Bruno Haible  <bruno@clisp.org>
20490
20491         Indentation.
20492         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20493         indentation.
20494
20495 2010-10-11  Jim Meyering  <meyering@redhat.com>
20496
20497         spawn.in.h: make indentation consistent with parentheses
20498         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20499         Make indentation consistent with parentheses.
20500
20501 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20502
20503         Fix mismatched parens in previous commit
20504         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20505         parens.
20506
20507 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20508
20509         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20510
20511         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20512         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20513         * lib/malloca.c: Include "verify.h".
20514         (verify1): Remove, replacing with a verify call.
20515         * lib/relocwrapper.c (verify1): Likewise.
20516         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20517         Likewise.
20518         * modules/malloca (Depends-on): Add 'verify'.
20519         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20520         * modules/vasnprintf (Depends-on): Add 'verify'.
20521         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20522         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20523         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20525         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20526         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20527         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20528
20529         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20530
20531         Formerly the style was sometimes 2*X - 1, because the C standard
20532         was wrongly thought to disallow ?: in integral constant expressions.
20533         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20534         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20535         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20536         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20537         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20538         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20539         verify that time_t cannot be floating.
20540
20541 2010-10-08  Eric Blake  <eblake@redhat.com>
20542
20543         time: enforce recent POSIX ruling that time_t is integral
20544         * lib/time.in.h (__time_t_must_be_integral): Detect any
20545         problematic systems, allowing the rest of gnulib to assume POSIX.
20546
20547 2010-10-08  Jim Meyering  <meyering@redhat.com>
20548
20549         fdopendir: fix a bug on systems lacking openat and /proc support
20550         OpenBSD 4.7 is one such system.  The most noticeable effect was
20551         failure of any application making nontrivial use of fts: rm, du,
20552         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20553           ./rm: traversal failed: `a': Bad file descriptor
20554         Debugging that, you see that even though FD 6 was closed just
20555         prior to the opendir call in fd_clone_opendir, its resulting
20556         dir->dd_fd was 8, rather than the expected value of 6:
20557
20558         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20559         93                close (fd);
20560         (gdb) n
20561         94                dir = fd_clone_opendir (dupfd);
20562         (gdb) n
20563         95                saved_errno = errno;
20564         (gdb) p dir->dd_fd
20565         $11 = 8
20566
20567         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20568         The problem is that on OpenBSD, fd_clone_opendir has to resort
20569         to using the old-style save/restore CWD mechanism, due to its
20570         lack of openat/proc support, and *that* would steal the FD (6)
20571         that opendir was supposed to use.
20572
20573         The fix is to squirrel away the desired FD so that save_cwd uses a
20574         different one, and then free the dest FD right before calling opendir.
20575         That guarantees opendir will use the required file descriptor.
20576
20577         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20578
20579 2010-10-08  Bruno Haible  <bruno@clisp.org>
20580
20581         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20582         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20583
20584 2010-10-08  Bruno Haible  <bruno@clisp.org>
20585
20586         nanosleep: Make replacement POSIX compliant.
20587         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20588         is out of range.
20589         Reported by Jim Meyering.
20590
20591 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20592
20593         bootstrap: add hook for altering gnulib.mk, for Bison
20594         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20595         the Bison bootstrapping process can rewrite file names and variables
20596         in this file before later parts of 'bootstrap' use the file.
20597         Bison wants to include lib/gnulib.mk from the top-level makefile,
20598         so it needs the file names in this file to be relative to the top
20599         level, not relative to lib; plus it needs variable names to be
20600         rewritten.
20601         (slurp): Use the new function.
20602
20603         bootstrap: reformat for readability
20604         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20605
20606 2010-10-08  Eric Blake  <eblake@redhat.com>
20607
20608         docs: update cygwin progress
20609         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20610         1.7.7.
20611         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20612         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20613         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20614         * doc/posix-functions/carg.texi (carg): Likewise.
20615         * doc/posix-functions/cargf.texi (cargf): Likewise.
20616         * doc/posix-functions/casin.texi (casin): Likewise.
20617         * doc/posix-functions/casinf.texi (casinf): Likewise.
20618         * doc/posix-functions/casinh.texi (casinh): Likewise.
20619         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20620         * doc/posix-functions/catan.texi (catan): Likewise.
20621         * doc/posix-functions/catanf.texi (catanf): Likewise.
20622         * doc/posix-functions/catanh.texi (catanh): Likewise.
20623         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20624         * doc/posix-functions/ccos.texi (ccos): Likewise.
20625         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20626         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20627         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20628         * doc/posix-functions/cexp.texi (cexp): Likewise.
20629         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20630         * doc/posix-functions/cimag.texi (cimag): Likewise.
20631         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20632         * doc/posix-functions/clog.texi (clog): Likewise.
20633         * doc/posix-functions/clogf.texi (clogf): Likewise.
20634         * doc/posix-functions/conj.texi (conj): Likewise.
20635         * doc/posix-functions/conjf.texi (conjf): Likewise.
20636         * doc/posix-functions/cpow.texi (cpow): Likewise.
20637         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20638         * doc/posix-functions/cproj.texi (cproj): Likewise.
20639         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20640         * doc/posix-functions/creal.texi (creal): Likewise.
20641         * doc/posix-functions/crealf.texi (crealf): Likewise.
20642         * doc/posix-functions/csin.texi (csin): Likewise.
20643         * doc/posix-functions/csinf.texi (csinf): Likewise.
20644         * doc/posix-functions/csinh.texi (csinh): Likewise.
20645         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20646         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20647         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20648         * doc/posix-functions/ctan.texi (ctan): Likewise.
20649         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20650         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20651         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20652         * doc/posix-headers/complex.texi (complex.h): Likewise.
20653
20654 2010-10-07  Jim Meyering  <meyering@redhat.com>
20655
20656         parse-datetime: avoid compilation failure on OpenBSD 4.7
20657         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20658         This works around a compilation failure on OpenBSD 4.7:
20659         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20660
20661 2010-10-07  Eric Blake  <eblake@redhat.com>
20662
20663         docs: update cygwin progress
20664         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20665         1.7.6.
20666         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20667         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20668         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20669         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20670         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20671         Likewise.
20672         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20673         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20674         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20675         Likewise.
20676         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20677         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20678         Likewise.
20679         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20680         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20681         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20682         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20683         Likewise.
20684         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20685         Likewise.
20686         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20687
20688         docs: update parse-datetime history
20689         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20690         documentation of this function's history and alternatives.
20691
20692         cygwin: use more robust version check
20693         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20694         exclude an eventual cygwin 1.9.1.
20695         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20697         (gl_FUNC_STRCASESTR): Likewise.
20698         Reported by Bruno Haible.
20699
20700 2010-10-06  Bruno Haible  <bruno@clisp.org>
20701
20702         string, sys_select: Avoid #including large headers unless necessary.
20703         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20704         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20705         OSF/1, BeOS, Haiku.
20706         Reported by Jim Meyering.
20707
20708 2010-10-05  Eric Blake  <eblake@redhat.com>
20709
20710         memmem, strstr, strcasestr: fix bug with long periodic needle
20711         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20712         periodic needle having false positive.
20713         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20714         and cygwin 1.7.7.
20715         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20717         (gl_FUNC_STRCASESTR): Likewise.
20718         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20719         * tests/test-memmem.c (main): Expose the bug.
20720         * tests/test-strcasestr.c (main): Likewise.
20721         * tests/test-strstr.c (main): Likewise.
20722         * tests/test-c-strcasestr.c (main): Likewise.
20723         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20724         * doc/posix-functions/strstr.texi (strstr): Likewise.
20725         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20726         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20727
20728 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20729
20730         parse-datetime: do some more renaming
20731         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20732         parse_datetime, not get_date.  Mention the renaming.
20733         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20734         in comments.
20735         * m4/bison.m4: Likewise.
20736
20737 2010-10-05  Eric Blake  <eblake@redhat.com>
20738
20739         parse-datetime: better name than get_date
20740         * NEWS: Reword the deprecation notice.
20741         * modules/get_date: Rename to modules/parse-datetime.
20742         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20743         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20744         * lib/get_date.y: Rename to lib/parse-datetime.y.
20745         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20746         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20747         * doc/getdate.texi: Provide fallback wrapper.
20748         * lib/getdate.h: Move guts, and wrap...
20749         * lib/parse-datetime.h: ...new file.
20750         * lib/parse-datetime.y (get_date): Rename...
20751         (parse_datetime): ...to this.
20752         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20753         (gl_PARSE_DATETIME): ...to this.
20754         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20755         documentation.
20756         * modules/getdate (Files): Provide fallback docs and header.
20757         (Notice, Depends-on): Update references.
20758         * tests/test-parse-datetime.c: Likewise.
20759         * DEPENDENCIES: Likewise.
20760         * MODULES.html.sh (Date and time <time.h>): Likewise.
20761         * doc/parse-datetime.texi (Date input formats)
20762         (Authors of parse_datetime): Likewise.
20763         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20764         (Include): Likewise.
20765         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20766         * gnulib-tool: Likewise.
20767         * m4/bison.m4 (gl_BISON): Likewise.
20768         Suggested by Bruno Haible.
20769
20770 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20771
20772         more ports to Solaris tr, which needs [] around ranges
20773         * gnulib-tool: Solaris tr needs [] around ranges.
20774         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20775         * tests/test-pipe-filter-gi1.c (main): Likewise.
20776         * tests/test-pipe-filter-ii1.c (main): Likewise.
20777
20778 2010-10-05  Eric Blake  <eblake@redhat.com>
20779
20780         bootstrap: fix Solaris regression
20781         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20782         around ranges.
20783         Reported by Pádraig Brady.
20784
20785         bootstrap: work with pkg-config
20786         * build-aux/bootstrap (check_versions): Also transliterate - in
20787         prerequisite name.
20788         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20789         prerequisites that were already found, to avoid confusion.
20790         Reported by Justin Clift.
20791
20792         faccessat: remove unused wrappers
20793         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20794         presence of these wrappers dragged in -lgen on Solaris.
20795         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20796
20797 2010-10-05  Jim Meyering  <meyering@redhat.com>
20798
20799         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20800         * Makefile (sc_pragma_columns): New syntax-check rule.
20801
20802 2010-10-04  Bruno Haible  <bruno@clisp.org>
20803
20804         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20805         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20806         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20807         Reported by Bruce Korb and Eric Blake.
20808
20809 2010-10-04  Bruno Haible  <bruno@clisp.org>
20810
20811         threadlib: Make option --with-libpth-prefix work.
20812         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20813         use $LIBPTH, not just -lpth.
20814
20815 2010-10-04  Bruno Haible  <bruno@clisp.org>
20816
20817         Avoid line length limitation from HP NonStop system header files.
20818         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20819         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20820         * lib/ctype.in.h: Likewise.
20821         * lib/dirent.in.h: Likewise.
20822         * lib/errno.in.h: Likewise.
20823         * lib/fcntl.in.h: Likewise.
20824         * lib/float.in.h: Likewise.
20825         * lib/getopt.in.h: Likewise.
20826         * lib/iconv.in.h: Likewise.
20827         * lib/inttypes.in.h: Likewise.
20828         * lib/langinfo.in.h: Likewise.
20829         * lib/locale.in.h: Likewise.
20830         * lib/math.in.h: Likewise.
20831         * lib/netdb.in.h: Likewise.
20832         * lib/netinet_in.in.h: Likewise.
20833         * lib/poll.in.h: Likewise.
20834         * lib/pthread.in.h: Likewise.
20835         * lib/pty.in.h: Likewise.
20836         * lib/sched.in.h: Likewise.
20837         * lib/se-selinux.in.h: Likewise.
20838         * lib/search.in.h: Likewise.
20839         * lib/signal.in.h: Likewise.
20840         * lib/spawn.in.h: Likewise.
20841         * lib/stdarg.in.h: Likewise.
20842         * lib/stddef.in.h: Likewise.
20843         * lib/stdint.in.h: Likewise.
20844         * lib/stdio.in.h: Likewise.
20845         * lib/stdlib.in.h: Likewise.
20846         * lib/string.in.h: Likewise.
20847         * lib/strings.in.h: Likewise.
20848         * lib/sys_file.in.h: Likewise.
20849         * lib/sys_ioctl.in.h: Likewise.
20850         * lib/sys_select.in.h: Likewise.
20851         * lib/sys_socket.in.h: Likewise.
20852         * lib/sys_stat.in.h: Likewise.
20853         * lib/sys_time.in.h: Likewise.
20854         * lib/sys_times.in.h: Likewise.
20855         * lib/sys_utsname.in.h: Likewise.
20856         * lib/sys_wait.in.h: Likewise.
20857         * lib/sysexits.in.h: Likewise.
20858         * lib/termios.in.h: Likewise.
20859         * lib/time.in.h: Likewise.
20860         * lib/unistd.in.h: Likewise.
20861         * lib/wchar.in.h: Likewise.
20862         * lib/wctype.in.h: Likewise.
20863         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20864         * modules/ctype (Makefile.am): Likewise.
20865         * modules/dirent (Makefile.am): Likewise.
20866         * modules/errno (Makefile.am): Likewise.
20867         * modules/fcntl-h (Makefile.am): Likewise.
20868         * modules/float (Makefile.am): Likewise.
20869         * modules/getopt-posix (Makefile.am): Likewise.
20870         * modules/iconv-h (Makefile.am): Likewise.
20871         * modules/inttypes (Makefile.am): Likewise.
20872         * modules/langinfo (Makefile.am): Likewise.
20873         * modules/locale (Makefile.am): Likewise.
20874         * modules/math (Makefile.am): Likewise.
20875         * modules/netdb (Makefile.am): Likewise.
20876         * modules/netinet_in (Makefile.am): Likewise.
20877         * modules/poll-h (Makefile.am): Likewise.
20878         * modules/pthread (Makefile.am): Likewise.
20879         * modules/pty (Makefile.am): Likewise.
20880         * modules/sched (Makefile.am): Likewise.
20881         * modules/search (Makefile.am): Likewise.
20882         * modules/selinux-h (Makefile.am): Likewise.
20883         * modules/signal (Makefile.am): Likewise.
20884         * modules/spawn (Makefile.am): Likewise.
20885         * modules/stdarg (Makefile.am): Likewise.
20886         * modules/stddef (Makefile.am): Likewise.
20887         * modules/stdint (Makefile.am): Likewise.
20888         * modules/stdio (Makefile.am): Likewise.
20889         * modules/stdlib (Makefile.am): Likewise.
20890         * modules/string (Makefile.am): Likewise.
20891         * modules/strings (Makefile.am): Likewise.
20892         * modules/sys_file (Makefile.am): Likewise.
20893         * modules/sys_ioctl (Makefile.am): Likewise.
20894         * modules/sys_select (Makefile.am): Likewise.
20895         * modules/sys_socket (Makefile.am): Likewise.
20896         * modules/sys_stat (Makefile.am): Likewise.
20897         * modules/sys_time (Makefile.am): Likewise.
20898         * modules/sys_times (Makefile.am): Likewise.
20899         * modules/sys_utsname (Makefile.am): Likewise.
20900         * modules/sys_wait (Makefile.am): Likewise.
20901         * modules/sysexits (Makefile.am): Likewise.
20902         * modules/termios (Makefile.am): Likewise.
20903         * modules/time (Makefile.am): Likewise.
20904         * modules/unistd (Makefile.am): Likewise.
20905         * modules/wchar (Makefile.am): Likewise.
20906         * modules/wctype (Makefile.am): Likewise.
20907
20908 2010-10-04  Bruno Haible  <bruno@clisp.org>
20909
20910         read-file tests: Avoid a test failure on NonStop Kernel.
20911         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20912         a regular file.
20913         Reported by Joachim Schmitz <schmitz@hp.com>.
20914
20915 2010-10-03  Bruno Haible  <bruno@clisp.org>
20916
20917         gnulib-tool: Fixes for --create-testdir with --libtool.
20918         * gnulib-tool (func_get_automake_snippet): Don't augment
20919         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20920         an executable.
20921         (func_create_testdir): Handle module 'alloca' like func_import.
20922         Reported by Bruce Korb <bruce.korb@gmail.com>.
20923
20924 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20925
20926         Avoid some lines longer than 80 characters.
20927         * lib/stdint.in.h: Break long comment lines.
20928         * lib/math.in.h: Likewise.
20929         (_GL_NUM_UINT_WORDS): New macro, for readability.
20930         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20931         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20932         * lib/stdlib.in.h: Likewise.
20933         * lib/spawn.in.h: Likewise.
20934         * lib/sys_socket.in.h: Update an URL.
20935         * lib/sys_stat.in.h: Break long line.
20936
20937 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20938
20939         Improve pmccabe2html.
20940         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20941         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20942         when the sources change. Remove the line in the HTML about "Used
20943         ranges" (which implied that there might be other unused ranges),
20944         rename "Resume" to "Summary" (easier to understand for more users).
20945         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20946         styles, and some unnecessary blank lines.
20947
20948 2010-10-03  Bruno Haible  <bruno@clisp.org>
20949             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20950
20951         acl: Add support for ACLs on NonStop Kernel.
20952         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20953         Check whether the function aclsort() exists.
20954         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20955         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20956         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20957         (acl_nontrivial [HAVE_ACLSORT]: New function.
20958         (file_has_acl): Implement for NonStop Kernel.
20959         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20960         (qset_acl): Implement for NonStop Kernel.
20961         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20962         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20963         (main): Implement for NonStop Kernel.
20964         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20965         Kernel. Handle this flavor.
20966         * tests/test-set-mode-acl.sh: Likewise.
20967         * tests/test-copy-acl.sh: Likewise.
20968         * tests/test-copy-file.sh: Likewise.
20969
20970 2010-10-03  Bruno Haible  <bruno@clisp.org>
20971
20972         Info about ACLs on NonStop Kernel.
20973         * doc/acl-resources.txt: Add info about NonStop Kernel.
20974         References by Joachim Schmitz <schmitz@hp.com>.
20975
20976 2010-10-02  Bruno Haible  <bruno@clisp.org>
20977
20978         Define missing EDQUOT on NonStop Kernel.
20979         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20980         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20981         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20982         missing.
20983         * doc/posix-headers/errno.texi: Mention the NSK bug.
20984         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20985         Reported by Joachim Schmitz <schmitz@hp.com>.
20986
20987 2010-10-02  Bruno Haible  <bruno@clisp.org>
20988
20989         Update doc for POSIX:2008.
20990         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20991         Update URL of POSIX specification.
20992
20993 2010-10-02  Bruno Haible  <bruno@clisp.org>
20994
20995         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20996         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20997         from gnulib, not from Automake.
20998
20999 2010-10-02  Bruno Haible  <bruno@clisp.org>
21000
21001         New module 'system-posix'.
21002         * modules/system-posix: New file.
21003         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21004         module is present.
21005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21006         GNULIB_SYSTEM_POSIX.
21007         * modules/stdlib (Depends-on): Remove sys_wait.
21008         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21009         * doc/posix-functions/system.texi: Mention the new module.
21010         * doc/posix-headers/stdlib.texi: Likewise.
21011         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21012         define test_sys_wait_macros to a no-op.
21013         Reported by Sam Steingold <sds@gnu.org>.
21014
21015 2010-09-30  Bruno Haible  <bruno@clisp.org>
21016
21017         More renaming from 'getdate' to 'get_date'.
21018         * doc/get_date.texi: Renamed from doc/getdate.texi.
21019         * modules/get_date (Files): Update.
21020         * MODULES.html.sh (Date and time <time.h>): Update.
21021         * DEPENDENCIES: Update.
21022         * gnulib-tool: Update comment.
21023         * m4/bison.m4 (gl_BISON): Likewise.
21024         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21025
21026 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21027
21028         bootstrap: support ACLOCAL_FLAGS during aclocal
21029         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21030         can add additional -I dir for third-party .m4 files.
21031
21032 2010-09-30  Eric Blake  <eblake@redhat.com>
21033
21034         bootstrap: use glibtoolize on MacOS
21035         * build-aux/bootstrap (check_versions): Convert libtool into
21036         libtoolize.
21037         (tool search): Move libtool check earlier, and look for
21038         glibtoolize for MacOS.
21039         (gnulib_tool_options): Auto-add --libtool when appropriate.
21040         Reported by Justin Clift.
21041
21042         poll: fix typo that broke test on MacOS
21043         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21044         Reported by Justin Clift.
21045
21046         getdate: rename to get_date
21047         Note: getdate.h is not renamed, to minimize client impact.
21048         * modules/getdate: Mark obsolete.  Move old contents...
21049         * modules/get_date: ...to new module name.
21050         * modules/getdate-tests: Move...
21051         * modules/get_date-tests: ...here.
21052         * m4/getdate.m4: Move...
21053         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21054         * lib/getdate.y: Move...
21055         * lib/get_date.y: ...here.
21056         * tests/test-getdate.c: Move...
21057         * tests/test-get_date.c: ...here.
21058         * doc/posix-functions/getdate.texi (getdate): Update name.
21059         * NEWS: Mention the change.
21060
21061 2010-09-29  Bruno Haible  <bruno@clisp.org>
21062
21063         Separate the module 'waitpid' from the module 'sys_wait'.
21064         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21065         present.
21066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21067         gl_MODULE_INDICATOR_FOR_TESTS.
21068         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21069         * modules/sys_wait (Depends-on): Remove waitpid.
21070         (Makefile.am): Substitute GNULIB_WAITPID.
21071         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21072         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21073         signature only if the 'waitpid' module is present.
21074         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21075         * NEWS: Mention the change.
21076         * modules/grantpt (Depends-on): Add waitpid.
21077         * modules/wait-process (Depends-on): Likewise.
21078
21079 2010-09-29  Bruno Haible  <bruno@clisp.org>
21080
21081         More tests for module 'sys_wait'.
21082         * modules/sys_wait-c++-tests: New file.
21083         * tests/test-sys_wait-c++.cc: New file.
21084         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21085         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21086
21087 2010-09-29  Bruno Haible  <bruno@clisp.org>
21088
21089         New module 'waitpid'.
21090         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21091         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21092         Don't include <process.h>.
21093         (waitpid): Declare only, using modern idiom.
21094         * m4/waitpid.m4: New file.
21095         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21096         * modules/waitpid: New file.
21097         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21098         (Makefile.am): Update.
21099         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21100
21101 2010-09-28  Bruno Haible  <bruno@clisp.org>
21102
21103         poll: Assume ANSI C.
21104         * lib/poll.c (poll): Use an ANSI C declaration.
21105
21106 2010-09-28  Bruno Haible  <bruno@clisp.org>
21107
21108         poll-h: Create poll.h on all platforms.
21109         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21110         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21111         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21112         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21113         (gl_REPLACE_POLL_H): Don't set POLL_H.
21114         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21115         * modules/poll-h (Depends-on): Add include_next.
21116         (Makefile.am): Create poll.h unconditionally. Substitute also
21117         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21118
21119 2010-09-28  Bruno Haible  <bruno@clisp.org>
21120
21121         Tests for module 'poll-h'.
21122         * modules/poll-h-c++-tests: New file.
21123         * tests/test-poll-h-c++.cc: New file.
21124
21125         Tests for module 'poll-h'.
21126         * modules/poll-h-tests: New file.
21127         * tests/test-poll-h.c: New file.
21128
21129 2010-09-28  Bruno Haible  <bruno@clisp.org>
21130
21131         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21132         * modules/poll-h (Depends-on): Add 'extensions'.
21133
21134 2010-09-28  Bruno Haible  <bruno@clisp.org>
21135
21136         New module 'poll-h'.
21137         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21138         (poll): Use modern idiom.
21139         * modules/poll-h: New file.
21140         * modules/poll (Files): Remove lib/poll.in.h.
21141         (Depends-on): Add poll-h.
21142         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21143         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21144         * m4/poll_h.m4: New file.
21145         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21146         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21147         and invoke gl_REPLACE_POLL_H.
21148         * lib/poll.c: Use common idiom.
21149         * tests/test-poll.c: Likewise.
21150         * doc/posix-headers/poll.texi: Mention the poll-h module.
21151         Suggested by Eric Blake.
21152
21153 2010-09-26  Bruno Haible  <bruno@clisp.org>
21154
21155         sys_wait: Implement WSTOPSIG.
21156         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21157         Reported by Simon Josefsson.
21158
21159 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21160
21161         stdlib, sys_wait: Avoid compilation error on mingw.
21162         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21163
21164 2010-09-26  Bruno Haible  <bruno@clisp.org>
21165
21166         stdlib tests: Avoid code duplication.
21167         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21168         * modules/sys_wait-tests (Files): Likewise.
21169         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21170         * tests/test-stdlib.c: Include test-sys_wait.h.
21171         (main): Invoke test_sys_wait_macros.
21172         * tests/test-sys_wait.c: Include test-sys_wait.h.
21173         (main): Invoke test_sys_wait_macros.
21174
21175 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21176
21177         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21178         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21179         sure Windows sockets are working before calling getaddrinfo.
21180         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21181         * doc/gnulib.texi (Windows sockets): Fix typo.
21182
21183 2010-09-25  Bruno Haible  <bruno@clisp.org>
21184
21185         Tests for module 'regex-quote'.
21186         * modules/regex-quote-tests: New file.
21187         * tests/test-regex-quote.c: New file.
21188
21189         New module 'regex-quote'.
21190         * lib/regex-quote.h: New file.
21191         * lib/regex-quote.c: New file.
21192         * modules/regex-quote: New file.
21193         Suggested by Reuben Thomas <rrt@sc3d.org>.
21194
21195 2010-09-24  Bruno Haible  <bruno@clisp.org>
21196
21197         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21198         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21199
21200 2010-09-23  Bruno Haible  <bruno@clisp.org>
21201
21202         setenv: Relax license.
21203         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21204         Blake.
21205         Requested by Eric Blake.
21206
21207 2010-09-22  Bruno Haible  <bruno@clisp.org>
21208
21209         termios: Relax license.
21210         * modules/termios (License): Change to LGPLv2+.
21211         Requested by Eric Blake.
21212
21213 2010-09-22  Bruno Haible  <bruno@clisp.org>
21214
21215         threadlib: Allow the package to change the default to 'no'.
21216         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21217         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21218         Reported by Paul Eggert.
21219
21220 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21221             Bruno Haible  <bruno@clisp.org>
21222
21223         Fix endless loop in mbmemcasecoll.
21224         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21225         byte.
21226         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21227
21228 2010-09-22  Bruno Haible  <bruno@clisp.org>
21229
21230         Tests for module 'memcoll'.
21231         * modules/memcoll-tests: New file.
21232         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21233
21234         memcoll, xmemcoll: Clarify size vs. length.
21235         * modules/memcoll.c (memcoll0): Clarify specification.
21236         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21237         passed to collate_error.
21238
21239 2010-09-22  Bruno Haible  <bruno@clisp.org>
21240
21241         Tests for module 'memcasecmp'.
21242         * modules/memcasecmp-tests: New file.
21243         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21244
21245 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21246
21247         * lib/pthread.in.h: Add split double-inclusion guard, and include
21248         system <pthread.h> if there is one.  Use @@-style as in other
21249         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21250         pthread.h doesn't.
21251         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21252         (pthread_mutexattr_settype, pthread_mutex_trylock):
21253         New static inline functions, if there's no system <pthread.h>.
21254         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21255         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21256         Approximate with mutexes if the system lacks spinlocks, as in
21257         MacOS.
21258         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21259         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21260         @@-style.  Check for spinlocks separately.
21261         (gl_PTHREAD_DEFAULTS): New macro.
21262         * modules/pthread: Redo to use a more typical style for in.h files.
21263
21264 2010-09-21  Eric Blake  <eblake@redhat.com>
21265
21266         net_if: enhance tests
21267         * tests/test-net_if.c (main): Move signature checks earlier.
21268         Print failures to stderr.
21269         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21270         Document the bug that we do not yet fix.
21271
21272 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21273
21274         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21275         about gnulib, not GSS.
21276
21277 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21278
21279         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21280         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21281         for Emacs.
21282         * build-aux/pmccabe2html: Make Makefile.am example code more
21283         cut-and-paste friendly.
21284
21285 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21286
21287         * tests/test-net_if.c: New file.
21288         * modules/net_if-tests: New file.
21289
21290 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21291
21292         pthread: add pthread_spin_destroy
21293         * lib/pthread.in.h (pthread_spin_destroy): New function.
21294
21295 2010-09-19  Bruno Haible  <bruno@clisp.org>
21296
21297         gnulib-tool: Fix --help output.
21298         * gnulib-tool (func_usage): Fix help message.
21299         Reported by Reuben Thomas <rrt@sc3d.org>.
21300
21301 2010-09-18  Jim Meyering  <meyering@redhat.com>
21302
21303         maint.mk: avoid unexpanded \n in two diagnostics
21304         * top/maint.mk (sc_prohibit_always_true_header_tests):
21305         Don't use a literal \n in a halt=... assignment.  It would not be
21306         expanded, and the two \n bytes would appear in the diagnostic output
21307         rather than the desired newline.  Use halt=$$(printf ... instead.
21308         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21309
21310 2010-09-18  Bruno Haible  <bruno@clisp.org>
21311
21312         netinet_in: Doc tweak.
21313         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21314         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21315
21316 2010-09-18  Jim Meyering  <meyering@redhat.com>
21317
21318         init.sh: correct an outdated comment
21319         * tests/init.sh (create_exe_shims_):  s/function/alias/
21320
21321         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21322         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21323         a file named "*.exe" is removed between the glob expansion and the
21324         processing of that oddly named file.
21325
21326 2010-09-17  Eric Blake  <eblake@redhat.com>
21327
21328         mirbsd: add some more support
21329         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21330         in BSD family.
21331         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21332         devices as OpenBSD.
21333         * m4/host-os.m4 (mirbsd): Add MirBSD.
21334
21335         tests: fix unportable assumption on sys/wait.h
21336         * tests/test-sys_wait.c (main): Relax test.
21337         * tests/test-stdlib.c (main): Likewise.
21338
21339         init.sh: accomodate directory with no .exes
21340         * tests/init.sh: Accomodate directory containing only scripts.
21341
21342         tests: avoid compiler warning
21343         * tests/test-stdlib.c (main): Use the variable.
21344
21345         fdutimens, fdutimensat: update signature, again
21346         * lib/utimens.h (gl_futimens): Delete, and move signature...
21347         (fdutimens): ...here.
21348         (fdutimensat): Rearrange signature.
21349         (lutimensat): Rename variable for clarity.
21350         * lib/fdutimensat.c (fdutimensat): Update signature.
21351         * lib/utimens.c (fdutimens): Likewise.
21352         (gl_futimens): Delete.
21353         (utimens, lutimens): Update callers.
21354         * lib/futimens.c (futimens): Likewise.
21355         * tests/test-fdutimensat.c: Likewise.
21356         * tests/test-utimens.c: Likewise.
21357         * tests/test-futimens.h: Update comment.
21358         * NEWS: Mention this.
21359         Suggested by Paul Eggert.
21360
21361 2010-09-17  Bruno Haible  <bruno@clisp.org>
21362
21363         Take over the maintenance of some older macros from Autoconf.
21364         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21365         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21366         GNU Autoconf.
21367         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21368         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21369
21370 2010-09-17  Eric Blake  <eblake@redhat.com>
21371
21372         fdutimensat: drop atflag validation
21373         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21374         with valid fd, to close a race scenario where futimens is
21375         unsupported and FILE was replaced by a symlink.
21376         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21377         accordingly.
21378         Suggested by Paul Eggert.
21379
21380 2010-09-16  Bruno Haible  <bruno@clisp.org>
21381
21382         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21383         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21384
21385 2010-09-16  Bruno Haible  <bruno@clisp.org>
21386
21387         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21388         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21389         login_tty exists.
21390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21391
21392 2010-09-16  Bruno Haible  <bruno@clisp.org>
21393
21394         login_tty: Make the replacement code work on BSD systems.
21395         * lib/login_tty.c: Include <sys/ioctl.h>.
21396         (login_tty): Use ioctl TIOCSCTTY when available.
21397         * modules/login_tty (Depends-on): Add sys_ioctl.
21398         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21399
21400 2010-09-16  Bruno Haible  <bruno@clisp.org>
21401
21402         login_tty: Stricter unit test.
21403         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21404         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21405         and tcgetsid() after login_tty.
21406         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21407
21408 2010-09-16  Bruno Haible  <bruno@clisp.org>
21409
21410         New module 'tcgetsid'.
21411         * lib/tcgetsid.c: New file.
21412         * m4/tcgetsid.m4: New file.
21413         * modules/tcgetsid: New file.
21414         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21415         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21416         GNULIB_TCGETSID, HAVE_TCGETSID.
21417         * lib/termios.in.h: Include <sys/types.h>.
21418         (tcgetsid): New declaration.
21419         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21420         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21421         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21422         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21423
21424 2010-09-16  Bruno Haible  <bruno@clisp.org>
21425
21426         Tests for module 'termios'.
21427         * modules/termios-c++-tests: New file.
21428         * modules/termios-tests: New file.
21429         * tests/test-termios-c++.cc: New file.
21430         * tests/test-termios.c: New file.
21431
21432         New module 'termios'.
21433         * modules/termios: New file.
21434         * lib/termios.in.h: New file.
21435         * m4/termios_h.m4: New file.
21436         * doc/posix-headers/termios.texi: Mention the new module.
21437
21438 2010-09-16  Eric Blake  <eblake@redhat.com>
21439
21440         fdutimensat: add an atflag parameter
21441         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21442         * lib/utimens.h (fdutimensat): Update prototype.
21443         * tests/test-fdutimensat.c: Adjust test to match.
21444         * NEWS: Document the change.
21445         Suggested by Paul Eggert.
21446
21447 2010-09-16  Bruno Haible  <bruno@clisp.org>
21448
21449         Fix typos in comments.
21450         * lib/striconveh.h: Fix typo in comment.
21451         * lib/login_tty.c (login_tty): Likewise.
21452
21453 2010-09-15  Bruno Haible  <bruno@clisp.org>
21454
21455         stdlib: clarify MirBSD WEXITSTATUS bug
21456         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21457         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21458
21459 2010-09-15  Eric Blake  <eblake@redhat.com>
21460
21461         stdlib: work around MirBSD WEXITSTATUS bug
21462         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21463         * modules/stdlib (Depends-on): Add sys_wait.
21464         * tests/test-sys_wait.c (main): Enhance test.
21465         * tests/test-stdlib.c (main): Likewise.
21466         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21467
21468         docs: mention MacOS issue with WEXITSTATUS(constant)
21469         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21470         issue.
21471         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21472
21473         strnlen: add tests
21474         * modules/strnlen-tests: New file.
21475         * tests/test-strnlen.c: Likewise.
21476
21477 2010-09-14  Bruno Haible  <bruno@clisp.org>
21478
21479         unistr/base: Avoid link errors when module 'libunistring' is also used.
21480         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21481         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21482         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21483         Declare also when HAVE_LIBUNISTRING is set.
21484         Reported by Pádraig Brady <P@draigbrady.com>.
21485
21486 2010-09-14  Eric Blake  <eblake@redhat.com>
21487
21488         test-rawmemchr: make more robust
21489         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21490         (Depends-on, configure.ac): Add needed prerequisites to use it.
21491         * modules/memchr-tests (Files, Depends-on, configure.ac):
21492         Likewise, to avoid implicit reliance on memchr module prereqs.
21493         * tests/test-memchr.c (main): Ensure proper masking.
21494         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21495         reads.
21496
21497         memchr: detect glibc Alpha bug
21498         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21499         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21500         Alpha.
21501         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21502         * tests/test-memchr.c (main): Enhance test.
21503         Reported by Nelson H. F. Beebe.
21504
21505 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21506
21507         fts, getcwd, glob: audit for dirfd returning -1
21508         * lib/fts.c (opendir): Remove #define; no longer used.
21509         (opendirat): New arg PDIR_FD.  All callers changed.
21510         (fts_build, _opendir2): Use new opendirat to avoid the need for
21511         dirfd, or for checking whether dirfd returns a negative value.
21512         Don't use opendir; always use openat followed by fdopendir.
21513         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21514         it.
21515         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21516         returns -1 here.
21517         * modules/fts (Depends-on): Remove dirfd.
21518         * modules/getcwd (Depends-on): Likewise.
21519
21520 2010-09-13  Eric Blake  <eblake@redhat.com>
21521
21522         float: fix broken MirBSD header
21523         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21524         * doc/posix-headers/float.texi (float.h): Document it.
21525
21526 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21527
21528         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21529         * lib/fts.c (opendirat): New arg extra_flags.
21530         (__opendir2): Use it to avoid following symlinks when opening
21531         a directory, if symlinks are not supposed to be followed.  See
21532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21533
21534         fdopendir: preserve argument fd before returning
21535         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21536         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21537         (fdopendir): Use them, arranging for FD to be open to the same
21538         directory that it was when it started.  (It might be temporarily
21539         closed while fdopendir is running, so this not thread- or
21540         signal-safe.)  Be careful to do the right thing even when file
21541         descriptors are scarce and dup fails with errno == EMFILE.  See
21542         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21543
21544 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21545
21546         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21547         * NEWS: Document change.
21548         * m4/regex.m4: Disable test for regoff_t size.
21549
21550 2010-09-13  Jim Meyering  <meyering@redhat.com>
21551
21552         fts: don't operate on an invalid file descriptor after failed dup
21553         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21554         negative file descriptor.
21555
21556 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         savedir: add streamsavedir, deprecate fdsavedir
21559         * NEWS: Mention deprecation of fdsavedir.
21560         * lib/savedir.c (streamsavedir): New extern function, whose name
21561         ends in "savedir" to be consistent with the others.  This differs
21562         from savedirstream in that it doesn't close its argument.  The
21563         next version of GNU tar will use this instead of fdsavedir, to
21564         avoid some race conditions and conserve file descriptors.
21565         (savedirstream): Reimplement as a wrapper around streamsavedir.
21566         (fdsavedir): Add a comment deprecating this function.  As far as
21567         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21568         * lib/savedir.h (streamsavedir): New decl.
21569         (fdsavedir): Add a comment deprecating this.
21570
21571 2010-09-10  Bruno Haible  <bruno@clisp.org>
21572
21573         langinfo: Fix last commit.
21574         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21575         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21577
21578 2010-09-10  Bruno Haible  <bruno@clisp.org>
21579
21580         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21581         * lib/progreloc.c (O_EXEC): Define fallback.
21582
21583 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21584
21585         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21586         * NEWS: Document recent changes to fcntl-h.
21587         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21588         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21589         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21590         Similarly for O_SEARCH; this last was already true, but not documented.
21591         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21592         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21593         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21594         Likewise.
21595         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21596         is zero, not whether it is defined.
21597         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21598         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21599         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21600
21601 2010-09-10  Bruno Haible  <bruno@clisp.org>
21602
21603         langinfo, nl_langinfo: Fix for IRIX 5.3.
21604         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21605         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21606         HAVE_LANGINFO_YESEXPR.
21607         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21608         HAVE_LANGINFO_YESEXPR.
21609         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21610         HAVE_LANGINFO_T_FMT_AMPM is 0.
21611         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21612         HAVE_LANGINFO_YESEXPR is 0.
21613         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21614         NOEXPR.
21615         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21616         * doc/posix-functions/nl_langinfo.texi: Likewise.
21617         Reported by Eric Blake.
21618
21619 2010-09-10  Bruno Haible  <bruno@clisp.org>
21620
21621         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21622         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21623         on FreeBSD 8.0 and OpenBSD 4.6.
21624         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21625         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21626         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21627         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21628         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21629         ac_includes_default.
21630         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21631
21632 2010-09-09  Eric Blake  <eblake@redhat.com>
21633
21634         strsignal: work around NetBSD bug
21635         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21636         * lib/string.in.h (includes): Likewise.
21637         * doc/posix-functions/strsignal.texi (strsignal): Document the
21638         bug.
21639         Reported by Nelson H. F. Beebe.
21640
21641         gnulib-tool: work with NetBSD /bin/sh
21642         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21643         (func_get_description, func_get_comment, func_get_status)
21644         (func_get_notice, func_get_applicability, func_get_filelist)
21645         (func_get_dependencies, func_get_autoconf_early_snippet)
21646         (func_get_autoconf_snippet, func_get_automake_snippet)
21647         (func_get_include_directive, func_get_link_directive)
21648         (func_get_license, func_get_maintainer, func_import): Avoid
21649         shell syntax errors from parsing syntax extensions.
21650
21651 2010-09-09  Bruno Haible  <bruno@clisp.org>
21652
21653         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21654         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21655         a reliable way to determine whether the 'alias' command works.
21656
21657 2010-09-08  Jim Meyering  <meyering@redhat.com>
21658
21659         init.sh: penalize a set-x-impaired shell; don't disqualify it
21660         * tests/init.sh: Too many shells corrupt application stderr when
21661         you set -x, so we can't afford to disqualify them, since at least
21662         on Irix-6.5, that would disqualify all bourne shells.
21663         Instead, use a two-pass approach.
21664         On the first pass, try to find a shell that meets the stricter
21665         condition that set -x does not corrupt stderr.
21666         If no shell meets the stricter condition, retest each candidate
21667         shell, but without that extra condition.  Finally, when
21668         VERBOSE=yes is requested and set -x might cause trouble, simply
21669         issue a warning and refrain from enabling debug output.
21670
21671 2010-09-08  Eric Blake  <eblake@redhat.com>
21672
21673         unsetenv: fix OpenBSD bug
21674         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21675         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21676         documentation.
21677         Reported by Jim Meyering.
21678
21679         strtod: work around IRIX 6.5 bug
21680         * lib/strtod.c (strtod): Reparse number on shorter string if
21681         exponent parse was invalid.
21682         * tests/test-strtod.c (main): Add check for "0x1p 2".
21683         Reported by Tom G. Christensen.
21684
21685         getopt: optimize previous patch
21686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21687         empty variable.  Speed up awk script.
21688         Reported by Paolo Bonzini.
21689
21690 2010-09-08  Jim Meyering  <meyering@redhat.com>
21691
21692         test.sh: disqualify shells for which set -x corrupts stderr
21693         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21694         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21695         appear in stderr output.  For example, this command:
21696             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21697         prints "P=1" on those two systems:
21698
21699 2010-09-08  Bruno Haible  <bruno@clisp.org>
21700
21701         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21702         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21703         commands, because some shells ignore redirections when there is an
21704         error in the command lookup.
21705         Reported by Eric Blake.
21706
21707 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21708
21709         * lib/regex.h: Fix a mention of `regex_compile' (should be
21710         `re_compile_pattern').
21711         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21712         (re_set_registers): Correct name of parameter in comment.
21713
21714         * doc/regex.texi: Add documentation for missing syntax flags.
21715         Remove commented-out documentation of defunct syntax option
21716         RE_NO_EMPTY_ALTS.
21717         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21718         Add documentation of re_set_registers.
21719         Document trick to re-use a pattern buffer by setting fastmap manually.
21720         Update documentation of struct re_pattern_buffer per public members.
21721         Uncomment documentation of equivalence class operators and
21722         collating symbol operators, since they are now implemented,
21723         Explain leftmost-longest matching in relation to alternatives.
21724         Tidy documentation of substring matching.
21725         Remove POSIX documentation, which is done better in
21726         glibc, and refer the reader there. Keep BSD API documentation, as
21727         that is not readily available elsewhere.
21728
21729 2010-09-07  Eric Blake  <eblake@redhat.com>
21730
21731         getopt: handle POSIXLY_CORRECT set but not exported
21732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21733         export state of POSIXLY_CORRECT, due to bash set -o posix.
21734         Reported by Dustin J. Mitchell.
21735
21736 2010-09-05  Bruno Haible  <bruno@clisp.org>
21737
21738         gnulib-tool: Highlight the changed options.
21739         * gnulib-tool (func_usage): Display the --import, --add-import,
21740         --remove-import explanations in bold font.
21741
21742 2010-09-06  Karl Berry  <karl@gnu.org>
21743
21744         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21745
21746 2010-09-05  Bruno Haible  <bruno@clisp.org>
21747
21748         uniwidth/width: Update comment.
21749         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21750         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21751
21752 2010-09-05  Bruno Haible  <bruno@clisp.org>
21753
21754         isinf, isnan: Relax license.
21755         * modules/isinf (License): Change from GPL to LGPL, with consent from
21756         Ben Pfaff.
21757         * modules/isnan (License): Likewise.
21758         Requested by Ludovic Courtès.
21759
21760 2010-09-04  Bruno Haible  <bruno@clisp.org>
21761
21762         gnulib-tool: Help migration from --import to --add-import or --update.
21763         * gnulib-tool: Emit a verbose error message when --import is used
21764         without any module name.
21765
21766 2010-09-04  Bruno Haible  <bruno@clisp.org>
21767
21768         Update doc about gnulib-tool.
21769         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21770         'gnulib-tool --update' in more detail.
21771         Reported by Eric Blake.
21772
21773 2010-09-04  Bruno Haible  <bruno@clisp.org>
21774
21775         gnulib-tool: Change --import. New options --add/remove-import.
21776         * gnulib-tool: New options --add-import, --remove-import.
21777         (func_usage): Document them.
21778         (have_associative): Define always.
21779         (func_import): In import mode, don't merge the specified settings with
21780         the cached settings. Implement remove-import mode.
21781         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21782         Explain when to use them versus --import.
21783         (Simple update): Use --add-import instead of --import.
21784         * NEWS: Mention the change.
21785
21786 2010-09-04  Bruno Haible  <bruno@clisp.org>
21787
21788         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21789         separate gnulib.mk.
21790
21791 2010-09-04  Bruno Haible  <bruno@clisp.org>
21792
21793         gnulib-tool: Don't talk about CVS any more.
21794         * gnulib-tool (func_usage, func_import): Write "version control"
21795         instead of CVS.
21796
21797 2010-09-04  Jim Meyering  <meyering@redhat.com>
21798
21799         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21800         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21801         false positives (whose names may be ill-chosen) when searching
21802         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21803         would cause a false-positive.
21804
21805         avoid coreutils "make distcheck" failure
21806         Coreutils tests with an absolute build directory name that contains
21807         a space.  Not quoting this directory name caused a failure.
21808         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21809         * tests/test-vc-list-files-cvs.sh: Likewise.
21810
21811 2010-09-04  Bruno Haible  <bruno@clisp.org>
21812
21813         gnulib-tool: Avoid error when run in a package without Makefile.am.
21814         * gnulib-tool: When collecting the m4dirs in a package that does not
21815         have a Makefile.am, eliminate those directories that contain no
21816         gnulib-cache.m4. Fix expression that counts these directories.
21817
21818 2010-09-04  Bruno Haible  <bruno@clisp.org>
21819
21820         update-copyright test: Improve output when perl is missing or too old.
21821         * tests/test-update-copyright.sh: Move test of Perl version down after
21822         the test whether Perl exists. Provide an explanation relating Perl's
21823         error message to Automake's SKIP: message.
21824
21825 2010-09-04  Bruno Haible  <bruno@clisp.org>
21826
21827         Don't augment PATH in TESTS_ENVIRONMENT.
21828         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21829         set abs_aux_dir instead of augmenting PATH.
21830         * modules/vc-list-files-tests (Makefile.am): Likewise.
21831         * tests/test-update-copyright.sh: Augment PATH here.
21832         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21833         path_prepend_.
21834         * tests/test-vc-list-files-git.sh: Likewise.
21835
21836 2010-09-04  Jim Meyering  <meyering@redhat.com>
21837
21838         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21839         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21840
21841 2010-09-04  Bruno Haible  <bruno@clisp.org>
21842
21843         strdup: Fix compilation error in C++ mode.
21844         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21845         the macro.
21846
21847 2010-09-04  Bruno Haible  <bruno@clisp.org>
21848
21849         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21850         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21851         macro into a function.
21852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21853
21854 2010-09-04  Bruno Haible  <bruno@clisp.org>
21855
21856         Set PATH_SEPARATOR the same way autoconf does.
21857         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21858         the value of PATH_SEPARATOR the same way autoconf-generated configure
21859         scripts do.
21860         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21861         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21862
21863 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21864
21865         Set PATH_SEPARATOR the same way autoconf does.
21866         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21867         the same way autoconf-generated configure scripts do.
21868         * posix-modules: Likewise.
21869
21870 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21871
21872         hash: fix safe_hasher const typo
21873         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21874         const; otherwise, there is a type error later.
21875
21876 2010-09-02  Jim Meyering  <meyering@redhat.com>
21877
21878         test-update-copyright.sh: require perl 5.8.0
21879         * tests/test-update-copyright.sh: Require 5.8.0,
21880         which Tom G. Christensen has confirmed is adequate,
21881         while 5.6.1 is not.
21882
21883 2010-09-02  Eric Blake  <eblake@redhat.com>
21884
21885         tests: init.sh improvements for re-exec'ing with zsh
21886         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21887         -vx through shell re-exec.
21888         Reported by Tom G. Christensen.
21889
21890         wctype: fix typo in previous commit
21891         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21892         Reported by Ludovic Courtès.
21893
21894 2010-09-02  Jim Meyering  <meyering@redhat.com>
21895
21896         test-update-copyright.sh: skip test if Perl is too old
21897         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21898         Reported by Tom G. Christensen.
21899
21900 2010-09-02  Bruno Haible  <bruno@clisp.org>
21901
21902         wctype: Avoid compilation error on IRIX 6.5.30.
21903         * lib/wctype.in.h (iswblank): Declare with a replacement if
21904         REPLACE_ISWBLANK is set.
21905         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21906         declared. Set REPLACE_ISWBLANK.
21907         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21908         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21909         * doc/posix-headers/wctype.texi: Likewise.
21910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21911
21912 2010-09-01  Bruno Haible  <bruno@clisp.org>
21913
21914         New module 'socketlib'.
21915         * modules/socketlib: New file.
21916         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21917         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21918         * modules/sockets (Depends-on): Add socketlib.
21919         Suggested by Sam Steingold <sds@gnu.org>.
21920
21921 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21922
21923         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21924
21925         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21926         when one needs search access to a directory but not read access.
21927         On systems where it is available, it works in some cases where
21928         O_RDONLY does not, namely on directories that are searchable but
21929         not readable, and which need only to be searchable.  If O_SEARCH
21930         is not available, fall back to the traditional method of using
21931         O_RDONLY.
21932
21933         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21934         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21935         when opening a directory that needs only to be searchable.
21936         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21937         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21938         * lib/openat-proc.c (openat_proc_name): Likewise.
21939         * lib/openat.c (openat_needs_fchdir): Likewise.
21940         * lib/save-cwd.c (save_cwd): Likewise.
21941         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21942
21943 2010-08-28  Bruno Haible  <bruno@clisp.org>
21944
21945         New module 'host-cpu-c-abi'.
21946         * modules/host-cpu-c-abi: New file.
21947         * m4/host-cpu-c-abi.m4: New file, based on part of
21948         clisp/src/m4/general.m4.
21949         Requested by Sam Steingold <sds@gnu.org>.
21950
21951 2010-08-31  Eric Blake  <eblake@redhat.com>
21952         and Jim Meyering  <meyering@redhat.com>
21953
21954         hash: factor, and guard against misbehaving hasher function
21955         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21956         of table->hasher's return value.  Also protect against a hash value
21957         so large that adding it to table->bucket results in a NULL pointer.
21958         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21959         Use it in place of open-coded check-and-abort.
21960
21961 2010-08-30  Bruno Haible  <bruno@clisp.org>
21962
21963         hash: silence spurious clang warning
21964         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21965         Reported by Eric Blake.
21966
21967 2010-08-30  Eric Blake  <eblake@redhat.com>
21968
21969         strstr, memmem, strcasestr: avoid leaked shell message
21970         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21971         FreeBSD.
21972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21973         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21974
21975         tests: silence clang warning
21976         * tests/test-malloca.c (do_allocation): Avoid dead store.
21977
21978 2010-08-29  Bruno Haible  <bruno@clisp.org>
21979
21980         gettext: Fix recent mistake.
21981         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21982
21983 2010-08-29  Bruno Haible  <bruno@clisp.org>
21984
21985         selinux-h: Offer a --without-selinux option.
21986         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21987         --without-selinux was specified, skip all tests and define
21988         HAVE_SELINUX_SELINUX_H to 0.
21989         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21990         set LIB_SELINUX to empty.
21991         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21992         gl_LIBSELINUX. If --without-selinux was specified, replace
21993         selinux/context.h.
21994         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21995
21996 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21997             Bruno Haible  <bruno@clisp.org>
21998
21999         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22000         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22001         of HAVE_REALLOC.
22002         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22003         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22004         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22005         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22006
22007 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22008             Bruno Haible  <bruno@clisp.org>
22009
22010         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22011         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22012         HAVE_CALLOC.
22013         * lib/xmalloc.c: Update accordingly.
22014         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22015         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22016         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22017
22018 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22019             Bruno Haible  <bruno@clisp.org>
22020
22021         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22022         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22023         HAVE_MALLOC.
22024         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22025         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22026         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22027
22028 2010-08-29  Bruno Haible  <bruno@clisp.org>
22029
22030         Update modules list.
22031         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22032         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22033         (String handling <string.h>): Add astrxfrm.
22034         (File system functions): Add readlinkat.
22035
22036 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22037
22038         Tests for module 'realloc-gnu'.
22039         * modules/realloc-gnu-tests: New file.
22040         * tests/test-realloc-gnu.c: New file.
22041
22042         Tests for module 'calloc-gnu'.
22043         * modules/calloc-gnu-tests: New file.
22044         * tests/test-calloc-gnu.c: New file.
22045
22046         Tests for module 'malloc-gnu'.
22047         * modules/malloc-gnu-tests: New file.
22048         * tests/test-malloc-gnu.c: New file.
22049
22050 2010-08-28  Bruno Haible  <bruno@clisp.org>
22051
22052         Rename module 'realloc' -> 'realloc-gnu'.
22053         * modules/realloc-gnu: New file, copied from modules/realloc.
22054         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22055         obsolete.
22056         * modules/mgetgroups (Depends-on): Update.
22057         * doc/posix-functions/realloc.texi: Update.
22058         * NEWS: Mention the change.
22059
22060         Rename module 'calloc' -> 'calloc-gnu'.
22061         * modules/calloc-gnu: New file, copied from modules/calloc.
22062         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22063         obsolete.
22064         * doc/posix-functions/calloc.texi: Update.
22065         * NEWS: Mention the change.
22066
22067         Rename module 'malloc' -> 'malloc-gnu'.
22068         * modules/malloc-gnu: New file, copied from modules/malloc.
22069         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22070         obsolete.
22071         * modules/argp (Depends-on): Update.
22072         * modules/regex (Depends-on): Update.
22073         * doc/posix-functions/malloc.texi: Update.
22074         * NEWS: Mention the change.
22075
22076 2010-08-28  Eric Blake  <eblake@redhat.com>
22077
22078         pread, pwrite: add missing dependency
22079         * modules/pread (Depends-on): Add extensions.
22080         * modules/pwrite (Depends-on): Likewise.
22081
22082 2010-08-28  Bruno Haible  <bruno@clisp.org>
22083
22084         unistr/u*-strchr: Fix tests dependencies.
22085         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22086         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22087         Reported by Ian Beckwith <ianb@erislabs.net>.
22088
22089 2010-08-28  Bruno Haible  <bruno@clisp.org>
22090
22091         read-file: Don't occupy too much unused memory.
22092         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22093
22094 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22095             Eric Blake  <eblake@redhat.com>
22096             Bruno Haible  <bruno@clisp.org>
22097
22098         read-file: Avoid memory reallocations with regular files.
22099         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22100         (fread_file): With regular files, use the remaining length as the
22101         initial buffer size.  Check against overflow.
22102         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22103         sys_stat.
22104
22105 2010-08-28  Bruno Haible  <bruno@clisp.org>
22106
22107         ftello: Relax license.
22108         * modules/ftello (License): Relax to LGPLv2+.
22109         Reported by Eric Blake.
22110
22111 2010-08-28  Bruno Haible  <bruno@clisp.org>
22112
22113         Avoid relocwrapper link errors due to gnulib replacement functions.
22114         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22115         function.
22116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22117
22118 2010-08-28  Bruno Haible  <bruno@clisp.org>
22119
22120         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22121         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22122         defined.
22123         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22124         Suggested by Eric Blake.
22125
22126 2010-08-28  Bruno Haible  <bruno@clisp.org>
22127
22128         sys_socket, netdb: Ensure socklen_t gets defined.
22129         * modules/sys_socket (Depends-on): Add socklen.
22130         * modules/netdb (Depends-on): Likewise.
22131         * modules/getaddrinfo (Depends-on): Remove socklen.
22132         * modules/getsockopt (Depends-on): Likewise.
22133         * modules/setsockopt (Depends-on): Likewise.
22134         * tests/test-sys_socket.c: Check that socklen_t is defined.
22135         * tests/test-netdb.c: Likewise.
22136         * m4/socklen.m4: Update comments.
22137         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22138
22139 2010-08-27  Eric Blake  <eblake@redhat.com>
22140
22141         login_tty: add missing dependency
22142         * modules/login_tty (Depends-on): Add pty.
22143
22144 2010-08-26  Eric Blake  <eblake@redhat.com>
22145
22146         lib-symbol-versions: fix m4 quoting
22147         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22148         format for AC_LINK_IFELSE.
22149
22150         glob: fix compile test
22151         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22152
22153         btowc: fix missing file
22154         * modules/btowc (Files): Also ship locale-fr.m4.
22155
22156         lseek: fix link test
22157         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22158         AC_LINK_IFELSE.
22159
22160         include_next: silence autoconf 2.68 warning
22161         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22162         AC_COMPILE_IFELSE as special.
22163         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22164         autoconf < 2.68.
22165
22166         acl: fix compilation test
22167         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22168         AC_COMPILE_IFELSE.
22169
22170 2010-08-26  Bruno Haible  <bruno@clisp.org>
22171
22172         Modernize AC_TRY_RUN invocations.
22173         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22174         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22175         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22176         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22177         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22178         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22181         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22182         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22184         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22185         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22186         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22188         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22189         gl_MBRLEN_NUL_RETVAL): Likewise.
22190         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22191         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22192         Likewise.
22193         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22194         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22195         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22196         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22197         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22198         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22199         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22200         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22201         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22202         Likewise.
22203         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22204         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22205         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22206         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22207         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22209         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22211         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22213
22214 2010-08-26  Bruno Haible  <bruno@clisp.org>
22215
22216         Modernize AC_TRY_LINK invocations.
22217         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22218         AC_TRY_LINK.
22219         * m4/argp.m4 (gl_ARGP): Likewise.
22220         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22221         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22222         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22223         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22224         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22225         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22226         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22227         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22228         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22229         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22230         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22231         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22232         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22233         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22234         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22235         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22236         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22237         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22238         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22239         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22240         Likewise.
22241         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22242         Likewise.
22243         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22244         Likewise.
22245         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22247         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22248         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22249         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22250         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22251         * m4/servent.m4 (gl_SERVENT): Likewise.
22252         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22253         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22254         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22255         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22256         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22257         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22258         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22260         * modules/tsearch-tests (configure.ac): Likewise.
22261
22262 2010-08-26  Bruno Haible  <bruno@clisp.org>
22263
22264         Modernize AC_TRY_COMPILE invocations.
22265         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22266         AC_TRY_COMPILE.
22267         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22268         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22269         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22270         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22271         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22272         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22273         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22274         * m4/lock.m4 (gl_LOCK): Likewise.
22275         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22276         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22277         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22278         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22279         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22280         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22281         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22283         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22284         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22285         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22286         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22287         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22288         extraneous semicolon.
22289
22290 2010-08-26  Jim Meyering  <meyering@redhat.com>
22291
22292         stat-time: relax license LGPL
22293         * modules/stat-time (License): Change from GPL to LGPL,
22294         with consent from all contributors, for use in libguile.
22295         Requested by Ludovic Courtès.
22296
22297 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22298
22299         poll: return immediately on POLLHUP.
22300         * lib/poll.c (poll): Always set timeout before wait_timeout is
22301         computed.
22302
22303 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22304
22305         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22306         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22307         rmdir ("dir/.//"), unlinkat.
22308
22309 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22310
22311         stdbool: avoid spurious failure with modern xlc
22312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22313
22314 2010-08-24  Bruno Haible  <bruno@clisp.org>
22315
22316         getloadavg: simplify code
22317         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22318         gl_have_func. Update comments.
22319
22320 2010-08-24  Eric Blake  <eblake@redhat.com>
22321
22322         getloadavg: don't define SVR4 on cygwin
22323         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22324         only define SVR4 when -lkvm is required.
22325         Reported by Yaakov Selkowitz.
22326
22327 2010-08-24  Bruno Haible  <bruno@clisp.org>
22328
22329         priv-set: fix comment
22330         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22331
22332 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22333
22334         priv-set: fix comments
22335         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22336         to match code, as suggested by David Bartley in:
22337         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22338
22339 2010-08-23  Eric Blake  <eblake@redhat.com>
22340
22341         stdbool: avoid rejecting clang
22342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22343         * tests/test-stdbool.c: Enable more tests if using the system
22344         <stdbool.h> instead of the gnulib replacement.
22345         (main): Move xlc bug test to a runtime test for all compilers.
22346         Reported by Anders Kaseorg.
22347
22348         argz: fix shell quoting issue
22349         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22350         Reported by Charles Wilson.
22351
22352 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22353             Erik Faye-Lund <kusmabite@gmail.com>
22354
22355         poll, select: handle ERROR_BROKEN_PIPE.
22356         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22357         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22358         * lib/select.c (win32_compute_revents): Do not mark a pipe
22359         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22360
22361 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22362
22363         fts: allow compilation with C++
22364         * lib/fts_.h: Specify extern "C" linkage with C++.
22365
22366 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22367
22368         Fix gnulib-tool sed script de-commentation for AIX sed.
22369         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22370         sed.
22371
22372 2010-08-17  Eric Blake  <eblake@redhat.com>
22373
22374         test-stddef: test for (some) offsetof bugs
22375         * tests/test-stddef.c: Enhance test to ensure correct type of
22376         offsetof.
22377         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22378         that we are not fixing at this time.
22379
22380 2010-08-15  Bruno Haible  <bruno@clisp.org>
22381
22382         stpncpy: Allow stpncpy to be defined as a macro.
22383         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22384         if it's already correctly declared.
22385         * lib/string.in.h (stpncpy): Undefine before redefining.
22386         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22387
22388 2010-08-14  Bruno Haible  <bruno@clisp.org>
22389
22390         Rename module 'memxfrm' to 'amemxfrm'.
22391         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22392         (amemxfrm): Renamed from memxfrm.
22393         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22394         (amemxfrm): Renamed from memxfrm.
22395         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22396         * NEWS: Mention the change.
22397         * MODULES.html.sh (String handling <string.h>): Update.
22398         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22399         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22400         * lib/unicase/u16-casexfrm.c: Likewise.
22401         * lib/unicase/u32-casexfrm.c: Likewise.
22402         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22403         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22404         * lib/uninorm/u16-normxfrm.c: Likewise.
22405         * lib/uninorm/u32-normxfrm.c: Likewise.
22406         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22407         memxfrm.
22408         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22409         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22410         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22411         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22412         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22413         Suggested by Paul Eggert.
22414
22415 2010-08-14  Bruno Haible  <bruno@clisp.org>
22416
22417         Tests for module 'astrxfrm'.
22418         * modules/astrxfrm-tests: New file.
22419         * tests/test-astrxfrm.c: New file.
22420
22421         New module 'astrxfrm'.
22422         * lib/astrxfrm.h: New file.
22423         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22424         * modules/astrxfrm: New file.
22425
22426 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22427
22428         regex: Tweak doc.
22429         * doc/regex.texi (Overview): Don't mention regex.c.
22430         (GNU Regular Expression Compiling): Likewise.
22431         (Match-end-of-line Operator): Mention 'not_eol'.
22432
22433 2010-08-14  Brian Gough  <bjg@gnu.org>
22434             Bruno Haible  <bruno@clisp.org>
22435
22436         git-merge-changelog: add doc relating to use with bzr and hg.
22437         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22438
22439 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22440
22441         pthread: fix pthread.h creation for srcdir != builddir
22442         * modules/pthread (Makefile.am): Fix the rule to work also in a
22443         non-srcdir build.
22444
22445 2010-08-13  Karl Berry  <karl@gnu.org>
22446
22447         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22448         * doc/posix-*/*: force line break before @url of POSIX
22449         specifications.
22450         Suggested by Werner Lemberg.
22451
22452 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22453
22454         strtod: fix const diagnostic
22455         * lib/strtod.c (strtod): Don't assign const char * to char *,
22456         as this elicits a warning from GCC when warnings are enabled.
22457
22458 2010-08-10  Pádraig Brady <P@draigbrady.com>
22459         and Eric Blake  <eblake@redhat.com>
22460
22461         copy-acl: ignore ENOTSUP on HP-UX
22462         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22463         so that it is available for HP-UX.
22464         * lib/copy-acl.c (qcopy_acl): Use it.
22465         Reported by Patrick M. Callahan.
22466
22467 2010-08-10  Eric Blake  <eblake@redhat.com>
22468
22469         open, chown: relax license
22470         * modules/open (License): Change to LGPLv2+, with consent by all
22471         authors, for use in augeas.
22472         * modules/chown (License): Likewise.
22473         * modules/lchown (Likewise): Likewise.
22474         Requested by Adam Stokes.
22475
22476 2010-08-09  Karl Berry  <karl@gnu.org>
22477
22478         * build-aux/ar-lib: new file, import from Automake.
22479         * config/srclist.txt: autocheck for updates.
22480
22481 2010-08-09  Eric Blake  <eblake@redhat.com>
22482
22483         readlinkat: adjust client modules
22484         * modules/areadlinkat (Depends-on): Use readlinkat, not
22485         symlinkat.
22486         * modules/areadlinkat-with-size (Depends-on): Likewise.
22487
22488         mknod: be more vocal about danger of running tests as root
22489         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22490         root, since that is just asking for problems.
22491         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22492
22493         readlinkat: split into its own module
22494         * modules/symlinkat: Split readlinkat...
22495         * modules/readlinkat: ...into separate module.
22496         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22497         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22498         * lib/symlinkat.c (readlinkat): Move...
22499         * lib/readlinkat.c: ...into new file.
22500         * modules/symlinkat-tests: Split readlinkat test...
22501         * modules/readlinkat-tests: ...into separate module.
22502         * tests/test-symlinkat.c: Split...
22503         * tests/test-readlinkat.c: ...into new file.
22504         * NEWS: Document the split.
22505         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22506         * lib/unistd.in.h (readlinkat): Likewise.
22507         Suggested by Bruno Haible.
22508
22509 2010-08-08  Bruno Haible  <bruno@clisp.org>
22510
22511         memxfrm: Speed up.
22512         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22513         that usually only one call to strxfrm is necessary for each string
22514         part.
22515         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22516
22517 2010-08-07  Karl Berry  <karl@gnu.org>
22518
22519         * doc/posix-headers/limits.texi,
22520         * doc/posix-functions/malloc.texi,
22521         * doc/posix-functions/strsignal.texi: missing @item.
22522         * doc/ld-version-script.texi: spurious leading i.
22523         * doc/regex.texi (Interval Operators): no commas inside @var.
22524
22525 2010-08-01  Bruno Haible  <bruno@clisp.org>
22526
22527         Integrate the regex documentation.
22528         * doc/gnulib.texi: Define 'cn' index.
22529         (Regular expressions): New a chapter that includes regex.texi and
22530         regexprops-generic.texi.
22531         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22532         syntax.
22533
22534         Whitespace cleanup.
22535         * doc/regex.texi: Remove trailing spaces.
22536
22537         Add regex documentation.
22538         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22539         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22540         Written by Kathy A. Hargreaves and Karl Berry.
22541
22542 2010-08-01  Bruno Haible  <bruno@clisp.org>
22543
22544         link: Update documentation.
22545         * doc/posix-functions/link.texi: Update regarding Solaris.
22546
22547 2010-07-31  Bruno Haible  <bruno@clisp.org>
22548
22549         Update modules list.
22550         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22551         (String handling <string.h>): Add memcmp2, memxfrm.
22552         (Container data structures): Add xlist, xsublist, xoset.
22553         (Core language properties): Add alignof, unused-parameter.
22554         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22555         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22556         (Unibyte characters <ctype.h>): New section.
22557         (String handling <string.h>): New section.
22558         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22559         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22560         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22561         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22562         tan, tanh, tanl, y0, y1, yn.
22563         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22564         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22565         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22566         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22567         unlockpt, vdprintf, vdprintf-posix.
22568         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22569         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22570         xconcat-filename.
22571         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22572         getdtablesize, pipe2, pipe2-safer.
22573         (Security): New section.
22574         (Networking functions): Add accept4.
22575         (Signal handling): Add sigpipe.
22576         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22577         mbmemcasecoll.
22578         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22579         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22580         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22581         pipe-filter-ii.
22582         (Misc): Add argp-version-etc, login_tty, parse-duration.
22583
22584 2010-07-31  Bruno Haible  <bruno@clisp.org>
22585
22586         Improve doc in MODULES.html.
22587         * modules/linkat (Description): Add the word "function".
22588         * modules/mkfifo (Description): Likewise.
22589         * modules/mknod (Description): Likewise.
22590         * modules/remove (Description): Likewise.
22591         * modules/renameat (Description): Likewise.
22592         * modules/stat (Description): Likewise.
22593         * modules/symlink (Description): Likewise.
22594         * modules/unlink (Description): Likewise.
22595
22596 2010-07-31  Bruno Haible  <bruno@clisp.org>
22597
22598         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22599         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22600         option --enable/disable-c++ instead of --enable/disable-cxx.
22601         * NEWS: Mention the change.
22602
22603 2010-07-31  Bruno Haible  <bruno@clisp.org>
22604
22605         readlink, areadlink: Relax test a bit.
22606         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22607         alternative to ENOTDIR.
22608         * tests/test-areadlink.h (test_areadlink): Likewise.
22609         Reported by Rainer Tammer.
22610
22611 2010-07-31  Bruno Haible  <bruno@clisp.org>
22612
22613         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22614         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22615         character, perform the search using U_STRCHR.
22616         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22617         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22618         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22619         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22620         Suggested by Paolo Bonzini.
22621
22622 2010-07-31  Bruno Haible  <bruno@clisp.org>
22623
22624         unistr/u*-strstr: Fix dependencies.
22625         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22626         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22627         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22628
22629 2010-07-31  Bruno Haible  <bruno@clisp.org>
22630
22631         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22632         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22633         the beginning of the loop.
22634         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22635         cases in 'switch' statement.
22636
22637         unistr/u8-strchr: Fix several bugs.
22638         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22639         the string. When not found, return NULL, not a pointer near the end.
22640
22641         More tests for unistr/u8-strchr.
22642         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22643         that the function does not read past the first occurrence of the byte
22644         being searched.
22645         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22646         * tests/unistr/test-u16-strchr.c (main): New function.
22647         * tests/unistr/test-u32-strchr.c (main): New function.
22648
22649 2010-07-31  Bruno Haible  <bruno@clisp.org>
22650
22651         posix-modules: Ignore backup files of documentation files.
22652         * posix-modules: grep only through files named *.texi.
22653
22654 2010-07-31  Bruno Haible  <bruno@clisp.org>
22655
22656         symlinkat: Fix documentation.
22657         * doc/posix-functions/readlinkat.texi: Fix module name.
22658
22659 2010-07-31  Bruno Haible  <bruno@clisp.org>
22660
22661         fchownat: Replace also when chown has the trailing slash bug.
22662         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22663         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22664         introduced on 2010-04-10.
22665         Reported by Rainer Tammer.
22666
22667 2010-07-31  Bruno Haible  <bruno@clisp.org>
22668
22669         linkat: Work around AIX 7.1 bug.
22670         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22671         whether linkat handles trailing slash correctly. If not, replace linkat
22672         and define LINKAT_TRAILING_SLASH_BUG.
22673         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22674         check whether (fd1,file1) points to a directory if file1 or file2 ends
22675         in a slash. Code taken from lib/link.c.
22676         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22677         Reported by Rainer Tammer.
22678
22679 2010-07-31  Bruno Haible  <bruno@clisp.org>
22680
22681         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22682         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22683         This disables an xlc optimization that was causing wrong test results.
22684         Reported by Rainer Tammer.
22685
22686 2010-07-31  Bruno Haible  <bruno@clisp.org>
22687
22688         iconv: Work around AIX 6.1..7.1 bug.
22689         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22690         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22691         cross-compiling, guess no on all versions of AIX.
22692         Reported by Rainer Tammer.
22693
22694 2010-07-31  Bruno Haible  <bruno@clisp.org>
22695
22696         readlink: Relax test a bit.
22697         * tests/test-readlink.h (test_readlink): Allow different errno value
22698         when readlink is called with a file name that ends in / and refers to
22699         a file.
22700         Suggested by Eric Blake.
22701         Reported by Rainer Tammer.
22702
22703 2010-07-31  Bruno Haible  <bruno@clisp.org>
22704
22705         copysign: Does not require -lm on glibc systems.
22706         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22707         gl_COMMON_DOUBLE_MATHFUNC.
22708         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22709
22710 2010-07-31  Bruno Haible  <bruno@clisp.org>
22711
22712         duplocale: Work around AIX 7.1 bug.
22713         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22714         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22715         * lib/duplocale.c (rpl_duplocale): Update comment.
22716         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22717         Reported by Rainer Tammer.
22718
22719 2010-07-30  Bruno Haible  <bruno@clisp.org>
22720
22721         dirfd: Avoid link error on AIX 7.1.
22722         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22723         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22724         exist, set REPLACE_DIRFD.
22725         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22726         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22727         * doc/posix-functions/dirfd.texi: Update.
22728         Reported by Rainer Tammer.
22729
22730 2010-07-30  Eric Blake  <eblake@redhat.com>
22731
22732         strtod: next round of AIX fixes
22733         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22734         exponent.
22735         * tests/test-strtod.c (main): Enhance tests.
22736         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22737         Reported by Rainer Tammer.
22738
22739         futimens: fix configure check
22740         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22741         Reported by Bruno Haible.
22742
22743 2010-07-30  Bruno Haible  <bruno@clisp.org>
22744
22745         getline: Update regarding AIX.
22746         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22747         Reported by Rainer Tammer.
22748
22749 2010-07-30  Bruno Haible  <bruno@clisp.org>
22750
22751         wcwidth: Drop replacement on AIX 7.
22752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22753         AIX 7.
22754         Reported by Rainer Tammer.
22755
22756 2010-07-30  Bruno Haible  <bruno@clisp.org>
22757
22758         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22759         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22760         a 'char *'.
22761         Reported by Rainer Tammer.
22762
22763 2010-07-30  Bruno Haible  <bruno@clisp.org>
22764
22765         unlink: Update regarding AIX.
22766         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22767         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22768         Reported by Rainer Tammer.
22769
22770 2010-07-30  Bruno Haible  <bruno@clisp.org>
22771
22772         symlink: Update regarding AIX.
22773         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22774         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22775         Reported by Rainer Tammer.
22776
22777 2010-07-30  Bruno Haible  <bruno@clisp.org>
22778
22779         strndup: Update regarding AIX.
22780         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22781         AIX 7.
22782         Reported by Rainer Tammer.
22783
22784 2010-07-30  Bruno Haible  <bruno@clisp.org>
22785
22786         stat: Update regarding AIX.
22787         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22788         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22789         Reported by Rainer Tammer.
22790
22791 2010-07-30  Bruno Haible  <bruno@clisp.org>
22792
22793         truncl: Fix autoconf test.
22794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22795         whether truncl works.
22796         Reported by Rainer Tammer.
22797
22798 2010-07-30  Bruno Haible  <bruno@clisp.org>
22799
22800         round: Update regarding AIX.
22801         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22802         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22803         Reported by Rainer Tammer.
22804
22805 2010-07-30  Bruno Haible  <bruno@clisp.org>
22806
22807         rename: Update regarding AIX.
22808         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22809         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22810         Reported by Rainer Tammer.
22811
22812 2010-07-30  Bruno Haible  <bruno@clisp.org>
22813
22814         printf.m4: Update regarding AIX.
22815         * m4/printf.m4: Update comments regarding AIX.
22816         Reported by Rainer Tammer.
22817
22818 2010-07-30  Bruno Haible  <bruno@clisp.org>
22819
22820         iconv: Update regarding AIX.
22821         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22822         AIX 7.
22823         Reported by Rainer Tammer.
22824
22825 2010-07-30  Bruno Haible  <bruno@clisp.org>
22826
22827         getopt: Update regarding AIX.
22828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22829         no on AIX.
22830         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22831         Reported by Rainer Tammer.
22832
22833 2010-07-30  Bruno Haible  <bruno@clisp.org>
22834
22835         ldexpl; Update regarding AIX.
22836         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22837         on AIX 7.
22838         Reported by Rainer Tammer.
22839
22840 2010-07-30  Bruno Haible  <bruno@clisp.org>
22841
22842         frexpl: Update regarding AIX.
22843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22844         on AIX 7.
22845         Reported by Rainer Tammer.
22846
22847 2010-07-30  Bruno Haible  <bruno@clisp.org>
22848
22849         open, fopen: Update regarding AIX.
22850         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22851         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22852         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22853         * doc/posix-functions/fopen.texi: Likewise.
22854         Reported by Rainer Tammer.
22855
22856 2010-07-30  Bruno Haible  <bruno@clisp.org>
22857
22858         chown: Update doc regarding AIX.
22859         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22860         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22861         Reported by Rainer Tammer.
22862
22863 2010-07-30  Eric Blake  <eblake@redhat.com>
22864
22865         strtod: fix bug in replacement function on AIX
22866         * lib/strtod.c (strtod): Special case broken "0x" parse in
22867         underlying strtod.
22868         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22869         * doc/posix-functions/strtod.texi (strtod): Likewise.
22870         Reported by Rainer Tammer.
22871
22872 2010-07-30  Bruno Haible  <bruno@clisp.org>
22873
22874         mbrlen: Fix cross-compilation guess for AIX.
22875         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22876         guess. Leftover from 2008-12-22.
22877
22878 2010-07-30  Bruno Haible  <bruno@clisp.org>
22879
22880         mbrtowc: Fix cross-compilation guess for AIX.
22881         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22882         guess. Leftover from 2008-12-21.
22883
22884 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22885
22886         init.sh: work around trap limitation of some shells
22887         * tests/init.sh (setup_): Move exit trap outside of shell function.
22888
22889 2010-07-29  Eric Blake  <eblake@redhat.com>
22890
22891         strtod: aid debugging
22892         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22893         understanding why strtod is rejected.
22894
22895 2010-07-28  Bruno Haible  <bruno@clisp.org>
22896
22897         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22898         * lib/unistr/u8-chr.c: Include <string.h>.
22899         * tests/unistr/test-u8-chr.c: Likewise.
22900         * tests/unistr/test-u16-chr.c: Likewise.
22901         * tests/unistr/test-u32-chr.c: Likewise.
22902         * tests/unistr/test-u8-strchr.c: Likewise.
22903         * tests/unistr/test-u16-strchr.c: Likewise.
22904         * tests/unistr/test-u32-strchr.c: Likewise.
22905         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22906         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22907         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22908         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22909
22910 2010-07-28  Bruno Haible  <bruno@clisp.org>
22911
22912         Use spaces for indentation, not tabs.
22913         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22914
22915 2010-07-27  Bruno Haible  <bruno@clisp.org>
22916
22917         mbspcasecmp: Fix function specification.
22918         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22919         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22920         Reported by Eric Blake <eblake@redhat.com>.
22921
22922 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22923
22924         timespec: use cast and not conditional, as truncation isn't possible
22925         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22926         instead of a conditional.  Comment about the situation in more detail.
22927         This undoes most of the 2009-10-29 patch.
22928
22929 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22930
22931         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22932         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22933         * lib/unistr/u8-strchr.c: Likewise.
22934         * modules/unistr/u8-chr: Depend on memchr.
22935
22936         unistr/u*-strchr: add tests
22937         * modules/unistr/u8-strchr-tests: New file.
22938         * modules/unistr/u16-strchr-tests: New file.
22939         * modules/unistr/u32-strchr-tests: New file.
22940         * tests/unistr/test-strchr.h: New file.
22941         * tests/unistr/test-u8-strchr.c: New file.
22942         * tests/unistr/test-u16-strchr.c: New file.
22943         * tests/unistr/test-u32-strchr.c: New file.
22944
22945         unistr/u*-chr: test multibyte sequences more
22946         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22947         test vector.
22948         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22949         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22950         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22951
22952         unistr/u*-chr: test multibyte sequences
22953         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22954
22955         unistr/u*-chr: prepare for multibyte tests
22956         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22957         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22958         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22959         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22960         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22961         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22962
22963 2010-07-18  Bruno Haible  <bruno@clisp.org>
22964
22965         unistr/u8-strchr: Optimize non-ASCII argument case.
22966         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22967         because the first byte often matches anyway.
22968         Reported by Pádraig Brady <P@draigbrady.com>.
22969
22970 2010-07-15  Karl Berry  <karl@gnu.org>
22971
22972         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22973
22974 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22975
22976         getcwd: on Solaris, work better if ancestors are inaccessible
22977         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22978         buffer and size, try again with a large buffer.  This works better
22979         on Solaris, since its getcwd succeeds even if the path to the root
22980         is inaccessible, and this is helpful in common cases such as .zfs
22981         hidden directories.  Problem reported by J Chapman Flack in
22982         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22983         Use system getcwd if it's declared, not merely if it's partly
22984         working; use the partly-working test only to avoid needless effort
22985         if the system getcwd fails.
22986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22987         comment that was already obsolete and is now even more obsolete.
22988         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22989         now might call strdup.
22990
22991 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22992
22993         pthread: Add enough so that coreutils/src/sort.c compiles.
22994         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22995         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22996         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22997         Include <sys/types.h>, in case it defines pthread_t.
22998         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22999         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23000         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23001         (pthread_rwlockattr_t, pthread_spinlock_t):
23002         New typedefs, if HAVE_PTHREAD_T is not defined.
23003         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23004         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23005         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23006         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23007         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23008         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23009         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23010         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23011         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23012         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23013         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23014         New macros.
23015         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23016         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23017         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23018         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23019         (pthread_spin_unlock): New dummy functions.
23020         (pthread_create): Return EAGAIN; don't set errno.
23021         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23022         require AC_C_INLINE.
23023         * modules/pthread (Depends-on): Add sched, time.
23024         (pthread.h): Use AM_V_GEN.
23025
23026 2010-07-13  Bruno Haible  <bruno@clisp.org>
23027
23028         striconveh: Don't malloc memory if the result buffer is sufficient.
23029         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23030         buffer if its size is sufficient.
23031         Reported by Ludovic Courtès <ludo@gnu.org>.
23032
23033 2010-07-13  Bruno Haible  <bruno@clisp.org>
23034
23035         strtod: Add safety check.
23036         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23037
23038 2010-07-12  Bruno Haible  <bruno@clisp.org>
23039
23040         Unify tests that set gl_cv_func_ldexpl_no_libm.
23041         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23042         gl_FUNC_LDEXPL.
23043         (gl_FUNC_LDEXPL): Invoke it.
23044         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23045
23046 2010-07-12  Bruno Haible  <bruno@clisp.org>
23047
23048         Unify tests that set gl_cv_func_ldexp_no_libm.
23049         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23050         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23051         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23052         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23053         * modules/strtod (Files): Add m4/ldexp.m4.
23054
23055 2010-07-12  Bruno Haible  <bruno@clisp.org>
23056
23057         Unify tests that set gl_cv_func_frexpl_no_libm.
23058         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23059         gl_FUNC_FREXPL_NO_LIBM.
23060         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23061         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23062
23063 2010-07-12  Bruno Haible  <bruno@clisp.org>
23064
23065         Unify tests that set gl_cv_func_frexp_no_libm.
23066         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23067         gl_FUNC_FREXP_NO_LIBM.
23068         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23069         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23070
23071 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23072
23073         memcoll: clarify sizes versus lengths, document better, and tweak perf
23074         * lib/memcoll.c (strcoll_loop, memcoll0):
23075         Improve quality of descriptive comments.  Name variables
23076         consistently as to whether they are lengths (which do not include
23077         terminating null) versus sizes (which do).
23078         * lib/xmemcoll.c (xmemcoll0): Likewise.
23079         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23080         returned when s1size == 0; this is easier to compile and saves
23081         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23082
23083 2010-07-12  Bruno Haible  <bruno@clisp.org>
23084
23085         Tests for module '_Exit'.
23086         * modules/_Exit-tests: New file.
23087         * tests/test-_Exit.sh: New file.
23088         * tests/test-_Exit.c: New file.
23089
23090         New module '_Exit'.
23091         * lib/stdlib.in.h (__attribute__): New macro.
23092         (_Exit): New declaration.
23093         * lib/_Exit.c: New file.
23094         * m4/_Exit.m4: New file.
23095         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23096         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23097         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23098         * modules/_Exit: New file.
23099         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23100         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23101
23102 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23103
23104         strtod: make it more-accurate typically, and don't require libm
23105         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23106         Include limits.h.  Don't include string.h.
23107         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23108         (locale_isspace): New function, so that no casts are needed to
23109         check whether *s is a space.
23110         (ldexp): Provide an unused dummy if not available.
23111         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23112         (strtod): Use them.  This implementation prefers to use the
23113         underlying strtod if available, falling back on our own code
23114         only to fix known bugs.  This is more likely to produce an
23115         accurate result.  Also, it avoids the use of libm functions.
23116         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23117         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23118         was absent, but it caused a test failure with coreutils.
23119         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23120         with libm.
23121         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23122         * modules/strtod-tests (Makefile.am): Likewise.
23123
23124 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23125             Bruno Haible  <bruno@clisp.org>
23126
23127         unistr/u8-strchr: Optimize ASCII argument case.
23128         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23129
23130 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         (x)memcoll: minor tweaks
23133         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23134         is after the type that it qualifies.
23135         (memcoll0): Likewise.
23136         * lib/memcoll.h (memcoll0): Likewise.
23137         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23138         * lib/xmemcoll.h (xmemcoll0): Likewise.
23139         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23140         differs from memcoll in that the NUL byte is part of the argument.
23141         Omit the abort-checks, as performance is a real issue here.  Plus,
23142         the checks were wrong anyway (an off-by-one error).  Omit local
23143         variable 'diff', as it's a bit clearer that way.
23144         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23145         no longer needed.
23146
23147 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23148
23149         (x)memcoll: speedup when input is known to be NUL delimited
23150         * lib/memcoll.c: Include stdlib.
23151         (memcoll0): New function.
23152         (strcoll_loop): New function, refactored for use in both memcoll
23153         and memcoll0.
23154         * lib/memcoll.h (memcoll0): Add prototype.
23155         * lib/xmemcoll.c (xmemcoll0): New function.
23156         (collate_error): New function, refactored for use in both xmemcoll
23157         and xmemcoll0.
23158         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23159         * m4/memcoll.m4: add inline invocation.
23160
23161 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23162
23163         * build-aux/bootstrap: Remove any local translations
23164         from the translation project synchronization directory,
23165         so that local only translations are not distributed.
23166
23167 2010-07-04  Bruno Haible  <bruno@clisp.org>
23168
23169         fsusage: Clarify which code applies to which platforms.
23170         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23171         platform.
23172         * lib/fsusage.c (get_fs_usage): Likewise.
23173
23174 2010-07-04  Bruno Haible  <bruno@clisp.org>
23175
23176         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23177         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23178         Reported by Martin Lambers <marlam@marlam.de>.
23179
23180 2010-07-04  Jim Meyering  <meyering@redhat.com>
23181
23182         hash: once again explicitly disallow insertion of NULL
23183         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23184         inserting a NULL pointer cannot work with these functions.
23185         Add a comment with details.
23186         This reverts part of the 2010-07-01 commit, 5bef1a35
23187         "hash: extend module to deal with non-pointer keys".
23188
23189 2010-07-01  Bruno Haible  <bruno@clisp.org>
23190
23191         stdbool: Update doc.
23192         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23193         Info from Christian Weisgerber <naddy@mips.inka.de>.
23194
23195 2010-07-01  Jim Meyering  <meyering@redhat.com>
23196
23197         hash: extend module to deal with non-pointer keys
23198         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23199         but that allows insertion of non-pointer entries.
23200         Do not disallow an ENTRY value of NULL.
23201         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23202         * lib/hash.h (hash_insert0): Declare.
23203
23204 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23205
23206         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23207         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23208         not present (i.e. with autoconf 2.59 and when using gettextize, not
23209         gnulib), require AC_GNU_SOURCE instead.
23210
23211 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23212
23213         idpriv-drop: Fix tests.
23214         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23215         not to the test-idpriv-droptemp program.
23216
23217 2010-06-29  Bruno Haible  <bruno@clisp.org>
23218
23219         string: Fix syntax error with g++ 2.96.
23220         * lib/string.in.h (__pure__): Remove definition.
23221         (_GL_ATTRIBUTE_PURE): New macro.
23222         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23223         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23224         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23225
23226 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23227
23228         unitypes: Fix bug introduced on 2010-05-18.
23229         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23230
23231 2010-06-22  Eric Blake  <eblake@redhat.com>
23232
23233         memmem: slight optimization
23234         * lib/str-two-way.h (critical_factorization): Update comments.
23235         Reduce work during factorization phase.
23236         Reported by Carlos Bueno <carlos@bueno.org>.
23237
23238 2010-06-21  Bruno Haible  <bruno@clisp.org>
23239
23240         Fix HAVE_CALLOC_POSIX misnomer.
23241         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23242         !HAVE_CALLOC_POSIX.
23243         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23244         HAVE_CALLOC_POSIX.
23245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23246         instead of HAVE_CALLOC_POSIX.
23247         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23248         HAVE_CALLOC_POSIX.
23249
23250         Use modern idiom for calloc() replacement.
23251         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23252         AC_FUNC_CALLOC.
23253         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23254         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23255         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23256         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23257         (gl_REPLACE_CALLOC): New macro.
23258
23259 2010-06-21  Bruno Haible  <bruno@clisp.org>
23260
23261         Fix HAVE_REALLOC_POSIX misnomer.
23262         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23263         !HAVE_REALLOC_POSIX.
23264         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23265         HAVE_REALLOC_POSIX.
23266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23267         instead of HAVE_REALLOC_POSIX.
23268         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23269         HAVE_REALLOC_POSIX.
23270
23271         Use modern idiom for realloc() replacement.
23272         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23273         AC_FUNC_REALLOC.
23274         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23275         Autoconf's AC_FUNC_REALLOC.
23276         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23277         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23278         (gl_REPLACE_REALLOC): New macro.
23279         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23280
23281 2010-06-21  Bruno Haible  <bruno@clisp.org>
23282
23283         Fix HAVE_MALLOC_POSIX misnomer.
23284         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23285         !HAVE_MALLOC_POSIX.
23286         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23287         HAVE_MALLOC_POSIX.
23288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23289         instead of HAVE_MALLOC_POSIX.
23290         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23291         HAVE_MALLOC_POSIX.
23292
23293         Use modern idiom for malloc() replacement.
23294         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23295         AC_FUNC_MALLOC.
23296         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23297         Autoconf's AC_FUNC_MALLOC.
23298         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23299         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23300         (gl_REPLACE_MALLOC): New macro.
23301         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23302
23303 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23304
23305         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23306         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23307         This macro takes 3 arguments, not 4.
23308
23309 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23310
23311         ipv6: fix detection under mingw
23312         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23313         in6_addr.
23314
23315 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23316
23317         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23318         that strtod() works when cross-compiling to a glibc version known
23319         to work.
23320
23321 2010-06-15  Bruno Haible  <bruno@clisp.org>
23322
23323         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23324
23325 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23326
23327         select: Correct timeout.
23328         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23329
23330 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23331
23332         git-version-gen: init shell var to avoid env var influence
23333         * build-aux/git-version-gen (v): Init shell var to empty.
23334
23335 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23336
23337         priv-set: Don't assume that priv.h exists merely because getppriv does.
23338         See Jan Andersen's bug report about AIX 5L in
23339         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23340         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23341         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23342         * lib/priv-set.h: Likewise.
23343         * tests/test-priv-set.c: Likewise.
23344
23345 2010-06-13  Bruno Haible  <bruno@clisp.org>
23346
23347         relocatable: Make it easier to test whether to install wrappers.
23348         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23349         RELOCATABLE_VIA_WRAPPER.
23350
23351 2010-06-13  Bruno Haible  <bruno@clisp.org>
23352
23353         gnulib-tool: Display specified modules and dependencies differently.
23354         * gnulib-tool (func_show_module_list): New function.
23355         (func_import, func_create_testdir): Invoke it.
23356         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23357
23358 2010-06-13  Bruno Haible  <bruno@clisp.org>
23359
23360         gnulib-tool: Align code of func_import and func_create_testdir.
23361         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23362         specified_modules.
23363
23364 2010-06-12  Jim Meyering  <meyering@redhat.com>
23365
23366         test-inttostr: avoid spurious failure on Solaris 9
23367         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23368         to accept "%ju".  Reported by Bruno Haible.
23369
23370 2010-06-11  Jim Meyering  <meyering@redhat.com>
23371
23372         test-sys_socket: mark variables as used more readably
23373         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23374         as "used" explicitly via (void) statement casts.  This is more
23375         readable than using them in an artificial return expression.
23376         Suggestion from Bruno Haible.
23377
23378 2010-06-11  Bruno Haible  <bruno@clisp.org>
23379
23380         Avoid some more warnings from "gcc -Wwrite-strings".
23381         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23382         to 'const char *'.
23383         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23384         * tests/test-c-strcasestr.c (main): Likewise.
23385         * tests/test-mbscasestr1.c (main): Likewise.
23386         * tests/test-mbscasestr2.c (main): Likewise.
23387         * tests/test-memmem.c (main): Likewise.
23388         * tests/test-strstr.c (main): Likewise.
23389         * tests/test-strcasestr.c (main): Likewise.
23390
23391 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23392
23393         init.sh: change framework_failure_ to fail with status 99, not 1
23394         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23395         automake's parallel-tests rule that this is an unexpected failure,
23396         even if the test is listed in XFAIL_TESTS.
23397
23398 2010-06-11  Jim Meyering  <meyering@redhat.com>
23399
23400         test-inttostr: avoid warnings about 4-6KB literal strings
23401         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23402         Include "macros.h", for its definition of ASSERT.
23403         (CK): s/assert/ASSERT/
23404         * modules/inttostr-tests (Files): Add macros.h.
23405
23406         init.sh: don't use $ME_ or skip_ before they are defined
23407         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23408         their first uses.  Also hoist their companions: warn_, fail_,
23409         framework_failure_, $stderr_fileno.  Prompted by a patch from
23410         Stefano Lattarini.
23411
23412         test-sys_socket: avoid set-but-not-used warnings from gcc
23413         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23414         avoid warning about set-but-not-used variables.
23415
23416         test-xvasprintf: avoid 'const' discard warnings
23417         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23418         "const" when assigning from literal strings.
23419         (test_xasprintf): Add "void" in function argument list to placate
23420         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23421
23422         tests: avoid compilation warnings in argmatch and exclude tests...
23423         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23424         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23425         Since it always exits, declare with the "noreturn" attribute.
23426         * tests/test-argmatch.c: Likewise.
23427
23428         tests: avoid 'const' discard warnings in mbsstr tests
23429         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23430         * tests/test-mbsstr2.c (main): Likewise.
23431
23432         test-verify: avoid warning from gcc's -Wmissing-declarations
23433         * tests/test-verify.c (function): Declare to be static.
23434
23435         test-inttostr.c: include <string.h> for use of strcmp
23436         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23437
23438         test-linkat: avoid failed assertion on "other" architectures
23439         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23440         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23441         sparc: https://bugs.launchpad.net/bugs/591968
23442
23443 2010-06-11  Jim Meyering  <meyering@redhat.com>
23444
23445         printf.m4: avoid autoconf's "Expanded Before Required" warning
23446         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23447         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23448         autoconf warning.
23449
23450 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23451
23452         Replacement header templates are now named with ".in", not "_".
23453         * doc/gnulib-intro.texi: Correct.
23454
23455 2010-06-10  Jim Meyering  <meyering@redhat.com>
23456
23457         inttostr-tests: depend on snprintf, not snprintf-posix
23458         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23459         snprintf-posix, to avoid this aclocal failure:
23460           missing file gnulib-tests/vasnprintf.c
23461           configure.ac:45: error: expected source file, required through \
23462           AC_LIBSOURCES, not found
23463
23464 2010-06-10  Jim Meyering  <meyering@redhat.com>
23465
23466         inttostr: add a new function, inttostr, and tests
23467         The namesake function was not available.  The existence of the
23468         template file, inttostr.c makes its addition nontrivial.
23469         * lib/anytostr.c: Rename from inttostr.c.
23470         (anytostr): Rename from inttostr.
23471         * lib/inttostr.c: New file.
23472         * modules/inttostr (Files): Add anytostr.c.
23473         (Makefile.am): Set lib_SOURCES instead of ...
23474         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23475         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23476         * lib/offtostr.c: Likewise.
23477         * lib/uinttostr.c: Likewise.
23478         * lib/umaxtostr.c: Likewise.
23479         * modules/inttostr-tests: New file.
23480         * tests/test-inttostr.c: New file.  Test these functions.
23481
23482 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23483             Bruno Haible  <bruno@clisp.org>
23484
23485         Add "Extending Gnulib" chapter to manual.
23486         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23487         chapter.
23488         (Extending Gnulib): New chapter.
23489         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23490         chapter.
23491
23492 2010-06-09  Bruno Haible  <bruno@clisp.org>
23493
23494         Avoid relocwrapper link errors due to gnulib replacement functions.
23495         * lib/areadlink.c: Use the system's malloc, realloc functions.
23496         (areadlink): Set errno to ENOMEM explicitly.
23497         * modules/areadlink (Depends-on): Remove malloc-posix.
23498         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23499
23500 2010-06-09  Bruno Haible  <bruno@clisp.org>
23501
23502         Avoid relocwrapper link errors due to gnulib replacement functions.
23503         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23504         * lib/malloca.c: Likewise.
23505         * lib/relocatable.c: Likewise.
23506         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23507         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23508         * lib/setenv.c: Use the system's malloc, realloc functions.
23509         * lib/strerror.c: Use the system's sprintf function.
23510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23511
23512 2010-06-04  Bruno Haible  <bruno@clisp.org>
23513
23514         Prefer documented low-level autoconf macro names.
23515         * m4/lib-link.m4: Use m4_translit instead of translit.
23516         * m4/environ.m4: Likewise.
23517         * m4/mathfunc.m4: Likewise.
23518         * m4/onceonly.m4: Likewise.
23519         * m4/stdint.m4: Likewise.
23520         Suggested by Eric Blake.
23521
23522 2010-06-04  Martin Lambers  <marlam@marlam.de>
23523             Bruno Haible  <bruno@clisp.org>
23524
23525         havelib: Allow library names with '+' characters.
23526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23527         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23528
23529 2010-06-09  Bruno Haible  <bruno@clisp.org>
23530
23531         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23532         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23533         realloc failed.
23534
23535 2010-06-08  Peter Simons  <simons@cryp.to>
23536
23537         maint.mk: make the news-check rule more configurable
23538         * top/maint.mk (news-check-lines-spec): New variable.
23539         (news-check): Use "sed -n 1,10p" in place of "head".
23540
23541 2010-06-07  Jim Meyering  <meyering@redhat.com>
23542
23543         do-release-commit-and-tag: fix typo in --help
23544         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23545
23546         regex: avoid new dead-code warning with gcc-4.6.0
23547         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23548         if-block containing a while-loop.  It's been unused for at least
23549         5 years.
23550
23551 2010-06-05  Bruno Haible  <bruno@clisp.org>
23552
23553         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23554         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23555
23556 2010-06-04  Bruno Haible  <bruno@clisp.org>
23557
23558         Update to GNU gettext 0.18.1.
23559         * modules/gettext (configure.ac): Require gettext infrastructure from
23560         version 0.18.1.
23561
23562 2010-06-03  Bruno Haible  <bruno@clisp.org>
23563
23564         Don't use AC_LIBOBJ with file names in subdirectories.
23565         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23566         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23567         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23568         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23569         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23570         gl_LIBUNISTRING_LIBSOURCE.
23571         (Makefile.am): Augment lib_SOURCES here, conditionally.
23572         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23573
23574 2010-06-03  Bruno Haible  <bruno@clisp.org>
23575
23576         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23577         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23578         expansion does not end with a newline.
23579         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23580         unnecessary newline.
23581
23582 2010-06-03  Bruno Haible  <bruno@clisp.org>
23583
23584         Reduce dependencies.
23585         * tests/test-quotearg.h: New file, extracted from
23586         tests/test-quotearg.c.
23587         * tests/test-quotearg-simple.c: New file, extracted from
23588         tests/test-quotearg.c.
23589         * tests/test-quotearg.c: Don't include <ctype.h>.
23590         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23591         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23592         use_quote_double_quotes, use_quotearg_colon): Moved to
23593         tests/test-quotearg.h.
23594         (results_g, flag_results, custom_quotes, custom_results): Moved
23595         to tests/test-quotearg-simple.c.
23596         (main): Moved the part that does not depend on gettext to
23597         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23598         performed.
23599         * modules/quotearg-simple: New file.
23600         * modules/quotearg-simple-tests: New file.
23601         * modules/quotearg (Depends-on): Add quotearg-simple.
23602         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23603         (Files): Add tests/test-quotearg.h.
23604         Reported by Paolo Bonzini.
23605
23606 2010-06-03  Bruno Haible  <bruno@clisp.org>
23607
23608         Reduce dependencies.
23609         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23610
23611 2010-06-03  Bruno Haible  <bruno@clisp.org>
23612
23613         time: Undefine more broken macros.
23614         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23615         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23616         Reported by Eric Blake.
23617
23618 2010-06-03  Bruno Haible  <bruno@clisp.org>
23619
23620         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23621         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23622         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23623         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23624         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23625         Reported by Ludovic Courtès <ludo@gnu.org>.
23626
23627 2010-06-02  Eric Blake  <eblake@redhat.com>
23628
23629         time: work with mingw + pthreads-win32 library
23630         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23631         if timespec is defined only in pthread.h.
23632         * modules/time (Makefile.am): Substitute it.
23633         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23634         <pthread.h>, when needed.
23635         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23636         from the library.
23637
23638 2010-05-31  Bruno Haible  <bruno@clisp.org>
23639
23640         Avoid expanding two macros in the wrong order.
23641         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23642         gl_LIBUNISTRING if it is defined.
23643         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23644         autoconf >= 2.64.
23645         Reported by Ludovic Courtès <ludo@gnu.org>.
23646
23647 2010-05-27  Jim Meyering  <meyering@redhat.com>
23648
23649         maint.mk: also prohibit "#undef" of always-defined symbols
23650         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23651         Allow more than one space before the symbol name.
23652         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23653         the regexp uses alternation.
23654
23655 2010-05-26  Eric Blake  <eblake@redhat.com>
23656
23657         maint.mk: avoid echo -e
23658         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23659         Convert all uses of echo -* to printf.
23660         Reported by Matthias Bolte.
23661
23662 2010-05-25  Bruno Haible  <bruno@clisp.org>
23663
23664         Update to GNU gettext 0.18, part 2.
23665         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23666         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23667
23668 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23669
23670         Add missing include in test-pwrite.c.
23671         * tests/test-pwrite.c: Include string.h, for strcmp.
23672
23673 2010-05-24  Bruno Haible  <bruno@clisp.org>
23674
23675         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23676
23677 2010-05-24  Bruno Haible  <bruno@clisp.org>
23678
23679         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23680         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23681         iconveh_error argument.
23682         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23683         U_STRCONV_TO_LOCALE.
23684         * lib/unistr/u16-strcoll.c: Likewise.
23685         * lib/unistr/u32-strcoll.c: Likewise.
23686         * modules/unistr/u8-strcoll (Depends-on): Add
23687         uniconv/u8-strconv-to-enc, localcharset. Remove
23688         uniconv/u8-strconv-to-locale.
23689         (configure.ac): Bump version number.
23690         * modules/unistr/u16-strcoll (Depends-on): Add
23691         uniconv/u16-strconv-to-enc, localcharset. Remove
23692         uniconv/u16-strconv-to-locale.
23693         (configure.ac): Bump version number.
23694         * modules/unistr/u32-strcoll (Depends-on): Add
23695         uniconv/u32-strconv-to-enc, localcharset. Remove
23696         uniconv/u32-strconv-to-locale.
23697         (configure.ac): Bump version number.
23698
23699 2010-05-24  Bruno Haible  <bruno@clisp.org>
23700
23701         Avoid a test failure on NetBSD 5.0.
23702         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23703         an iconv() bug.
23704
23705 2010-05-24  Bruno Haible  <bruno@clisp.org>
23706
23707         Adjust #include directive style.
23708         * modules/regex (Includes): Recommend to write <regex.h>.
23709
23710 2010-05-24  Bruno Haible  <bruno@clisp.org>
23711
23712         regex: Don't require alloca.
23713         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23714         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23715         only inside if (0).
23716
23717 2010-05-23  Jim Meyering  <meyering@redhat.com>
23718
23719         test-renameat.c: include <sys/stat.h>
23720         * tests/test-renameat.c: Include <sys/stat.h>; required for
23721         definition of S_IS* macros.
23722
23723 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23724
23725         Update maintainer documentation for 'relocatable-prog' module.
23726         * doc/relocatable-maint.texi: Update.
23727         Comments by Bruno Haible.
23728
23729 2010-05-23  Bruno Haible  <bruno@clisp.org>
23730
23731         git-merge-changelog: Enable --split-merged-entry by default.
23732         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23733         (usage): Don't mention this option any more.
23734         Reported by Ralf Wildenhues.
23735
23736 2010-05-23  Jim Meyering  <meyering@redhat.com>
23737
23738         test-pwrite: do not leave behind a test file named "out"
23739         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23740         The trivial-looking use of init.sh is really necessary.
23741         It ensures that the temporary file, "out", is created in
23742         a temporary directory, and removed upon termination.
23743         * tests/test-pwrite.sh: Re-add file.
23744         * modules/pwrite-tests: Reference it.
23745
23746 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23747
23748         Fix output redirection buglet in init.sh.
23749         * tests/init.sh: Fix redirection of stderr.
23750
23751 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23752
23753         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23754
23755 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23756
23757         * modules/valgrind-tests: New file.
23758         * m4/valgrind-tests.m4: New file.
23759         * doc/valgrind-tests.texi: New file.
23760         * doc/gnulib.texi (Running self-tests under valgrind): New
23761         section.
23762
23763 2010-05-19  Bruno Haible  <bruno@clisp.org>
23764
23765         Clean up dead code in recent commit.
23766         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23767         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23768         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23769         Suggested by Paolo Bonzini.
23770
23771 2010-05-19  Bruno Haible  <bruno@clisp.org>
23772
23773         Avoid valgrind error reports from libunistring.
23774         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23775         * modules/libunistring (Files): Add it.
23776         * modules/libunistring-optional (Files): Likewise.
23777
23778 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23779             Bruno Haible  <bruno@clisp.org>
23780
23781         New module 'libunistring-optional'.
23782         * modules/libunistring-optional: New file.
23783         * m4/libunistring-base.m4: New file.
23784         * m4/libunistring-optional.m4: New file.
23785         * lib/unicase.in.h: Renamed from lib/unicase.h.
23786         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23787         * lib/unictype.in.h: Renamed from lib/unictype.h.
23788         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23789         * lib/uniname.in.h: Renamed from lib/uniname.h.
23790         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23791         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23792         * lib/unistr.in.h: Renamed from lib/unistr.h.
23793         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23794         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23795         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23796         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23797         gl_LIBUNISTRING. If the library was found, determine the installed
23798         version and set LIBUNISTRING_VERSION.
23799         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23800         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23801         handle a configuration option --with-included-libunistring.
23802         * modules/libunistring (Files): Add m4/absolute-header.m4.
23803         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23804         Add m4/libunistring-base.m4.
23805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23806         (Makefile.am): Build unicase.h from unicase.in.h.
23807         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23808         Add m4/libunistring-base.m4.
23809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23810         (Makefile.am): Build uniconv.h from uniconv.in.h.
23811         * modules/unictype/base (Files): Use unictype.in.h instead of
23812         unictype.h. Add m4/libunistring-base.m4.
23813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23814         (Makefile.am): Build unictype.h from unictype.in.h.
23815         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23816         Add m4/libunistring-base.m4.
23817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23818         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23819         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23820         Add m4/libunistring-base.m4.
23821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23822         (Makefile.am): Build uniname.h from uniname.in.h.
23823         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23824         Add m4/libunistring-base.m4.
23825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23826         (Makefile.am): Build uninorm.h from uninorm.in.h.
23827         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23828         unistdio.h. Add m4/libunistring-base.m4.
23829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23830         (Makefile.am): Build unistdio.h from unistdio.in.h.
23831         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23832         Add m4/libunistring-base.m4.
23833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23834         (Makefile.am): Build unistr.h from unistr.in.h.
23835         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23836         Add m4/libunistring-base.m4.
23837         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23838         (Makefile.am): Build unitypes.h from unitypes.in.h.
23839         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23840         Add m4/libunistring-base.m4.
23841         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23842         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23843         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23844         uniwidth.h. Add m4/libunistring-base.m4.
23845         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23846         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23847         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23848         instead of augmenting lib_SOURCES.
23849         * modules/unicase/empty-suffix-context: Likewise.
23850         * modules/unicase/locale-language: Likewise.
23851         * modules/unicase/tolower: Likewise.
23852         * modules/unicase/totitle: Likewise.
23853         * modules/unicase/toupper: Likewise.
23854         * modules/unicase/u8-casecmp: Likewise.
23855         * modules/unicase/u8-casecoll: Likewise.
23856         * modules/unicase/u8-casefold: Likewise.
23857         * modules/unicase/u8-casexfrm: Likewise.
23858         * modules/unicase/u8-ct-casefold: Likewise.
23859         * modules/unicase/u8-ct-tolower: Likewise.
23860         * modules/unicase/u8-ct-totitle: Likewise.
23861         * modules/unicase/u8-ct-toupper: Likewise.
23862         * modules/unicase/u8-is-cased: Likewise.
23863         * modules/unicase/u8-is-casefolded: Likewise.
23864         * modules/unicase/u8-is-lowercase: Likewise.
23865         * modules/unicase/u8-is-titlecase: Likewise.
23866         * modules/unicase/u8-is-uppercase: Likewise.
23867         * modules/unicase/u8-prefix-context: Likewise.
23868         * modules/unicase/u8-suffix-context: Likewise.
23869         * modules/unicase/u8-tolower: Likewise.
23870         * modules/unicase/u8-totitle: Likewise.
23871         * modules/unicase/u8-toupper: Likewise.
23872         * modules/unicase/u16-casecmp: Likewise.
23873         * modules/unicase/u16-casecoll: Likewise.
23874         * modules/unicase/u16-casefold: Likewise.
23875         * modules/unicase/u16-casexfrm: Likewise.
23876         * modules/unicase/u16-ct-casefold: Likewise.
23877         * modules/unicase/u16-ct-tolower: Likewise.
23878         * modules/unicase/u16-ct-totitle: Likewise.
23879         * modules/unicase/u16-ct-toupper: Likewise.
23880         * modules/unicase/u16-is-cased: Likewise.
23881         * modules/unicase/u16-is-casefolded: Likewise.
23882         * modules/unicase/u16-is-lowercase: Likewise.
23883         * modules/unicase/u16-is-titlecase: Likewise.
23884         * modules/unicase/u16-is-uppercase: Likewise.
23885         * modules/unicase/u16-prefix-context: Likewise.
23886         * modules/unicase/u16-suffix-context: Likewise.
23887         * modules/unicase/u16-tolower: Likewise.
23888         * modules/unicase/u16-totitle: Likewise.
23889         * modules/unicase/u16-toupper: Likewise.
23890         * modules/unicase/u32-casecmp: Likewise.
23891         * modules/unicase/u32-casecoll: Likewise.
23892         * modules/unicase/u32-casefold: Likewise.
23893         * modules/unicase/u32-casexfrm: Likewise.
23894         * modules/unicase/u32-ct-casefold: Likewise.
23895         * modules/unicase/u32-ct-tolower: Likewise.
23896         * modules/unicase/u32-ct-totitle: Likewise.
23897         * modules/unicase/u32-ct-toupper: Likewise.
23898         * modules/unicase/u32-is-cased: Likewise.
23899         * modules/unicase/u32-is-casefolded: Likewise.
23900         * modules/unicase/u32-is-lowercase: Likewise.
23901         * modules/unicase/u32-is-titlecase: Likewise.
23902         * modules/unicase/u32-is-uppercase: Likewise.
23903         * modules/unicase/u32-prefix-context: Likewise.
23904         * modules/unicase/u32-suffix-context: Likewise.
23905         * modules/unicase/u32-tolower: Likewise.
23906         * modules/unicase/u32-totitle: Likewise.
23907         * modules/unicase/u32-toupper: Likewise.
23908         * modules/unicase/ulc-casecmp: Likewise.
23909         * modules/unicase/ulc-casecoll: Likewise.
23910         * modules/unicase/ulc-casexfrm: Likewise.
23911         * modules/uniconv/u8-conv-from-enc: Likewise.
23912         * modules/uniconv/u8-conv-to-enc: Likewise.
23913         * modules/uniconv/u8-strconv-from-enc: Likewise.
23914         * modules/uniconv/u8-strconv-from-locale: Likewise.
23915         * modules/uniconv/u8-strconv-to-enc: Likewise.
23916         * modules/uniconv/u8-strconv-to-locale: Likewise.
23917         * modules/uniconv/u16-conv-from-enc: Likewise.
23918         * modules/uniconv/u16-conv-to-enc: Likewise.
23919         * modules/uniconv/u16-strconv-from-enc: Likewise.
23920         * modules/uniconv/u16-strconv-from-locale: Likewise.
23921         * modules/uniconv/u16-strconv-to-enc: Likewise.
23922         * modules/uniconv/u16-strconv-to-locale: Likewise.
23923         * modules/uniconv/u32-conv-from-enc: Likewise.
23924         * modules/uniconv/u32-conv-to-enc: Likewise.
23925         * modules/uniconv/u32-strconv-from-enc: Likewise.
23926         * modules/uniconv/u32-strconv-from-locale: Likewise.
23927         * modules/uniconv/u32-strconv-to-enc: Likewise.
23928         * modules/uniconv/u32-strconv-to-locale: Likewise.
23929         * modules/unictype/bidicategory-byname: Likewise.
23930         * modules/unictype/bidicategory-name: Likewise.
23931         * modules/unictype/bidicategory-of: Likewise.
23932         * modules/unictype/bidicategory-test: Likewise.
23933         * modules/unictype/block-list: Likewise.
23934         * modules/unictype/block-test: Likewise.
23935         * modules/unictype/category-C: Likewise.
23936         * modules/unictype/category-Cc: Likewise.
23937         * modules/unictype/category-Cf: Likewise.
23938         * modules/unictype/category-Cn: Likewise.
23939         * modules/unictype/category-Co: Likewise.
23940         * modules/unictype/category-Cs: Likewise.
23941         * modules/unictype/category-L: Likewise.
23942         * modules/unictype/category-Ll: Likewise.
23943         * modules/unictype/category-Lm: Likewise.
23944         * modules/unictype/category-Lo: Likewise.
23945         * modules/unictype/category-Lt: Likewise.
23946         * modules/unictype/category-Lu: Likewise.
23947         * modules/unictype/category-M: Likewise.
23948         * modules/unictype/category-Mc: Likewise.
23949         * modules/unictype/category-Me: Likewise.
23950         * modules/unictype/category-Mn: Likewise.
23951         * modules/unictype/category-N: Likewise.
23952         * modules/unictype/category-Nd: Likewise.
23953         * modules/unictype/category-Nl: Likewise.
23954         * modules/unictype/category-No: Likewise.
23955         * modules/unictype/category-P: Likewise.
23956         * modules/unictype/category-Pc: Likewise.
23957         * modules/unictype/category-Pd: Likewise.
23958         * modules/unictype/category-Pe: Likewise.
23959         * modules/unictype/category-Pf: Likewise.
23960         * modules/unictype/category-Pi: Likewise.
23961         * modules/unictype/category-Po: Likewise.
23962         * modules/unictype/category-Ps: Likewise.
23963         * modules/unictype/category-S: Likewise.
23964         * modules/unictype/category-Sc: Likewise.
23965         * modules/unictype/category-Sk: Likewise.
23966         * modules/unictype/category-Sm: Likewise.
23967         * modules/unictype/category-So: Likewise.
23968         * modules/unictype/category-Z: Likewise.
23969         * modules/unictype/category-Zl: Likewise.
23970         * modules/unictype/category-Zp: Likewise.
23971         * modules/unictype/category-Zs: Likewise.
23972         * modules/unictype/category-and: Likewise.
23973         * modules/unictype/category-and-not: Likewise.
23974         * modules/unictype/category-byname: Likewise.
23975         * modules/unictype/category-name: Likewise.
23976         * modules/unictype/category-none: Likewise.
23977         * modules/unictype/category-of: Likewise.
23978         * modules/unictype/category-or: Likewise.
23979         * modules/unictype/category-test: Likewise.
23980         * modules/unictype/combining-class: Likewise.
23981         * modules/unictype/ctype-alnum: Likewise.
23982         * modules/unictype/ctype-alpha: Likewise.
23983         * modules/unictype/ctype-blank: Likewise.
23984         * modules/unictype/ctype-cntrl: Likewise.
23985         * modules/unictype/ctype-digit: Likewise.
23986         * modules/unictype/ctype-graph: Likewise.
23987         * modules/unictype/ctype-lower: Likewise.
23988         * modules/unictype/ctype-print: Likewise.
23989         * modules/unictype/ctype-punct: Likewise.
23990         * modules/unictype/ctype-space: Likewise.
23991         * modules/unictype/ctype-upper: Likewise.
23992         * modules/unictype/ctype-xdigit: Likewise.
23993         * modules/unictype/decimal-digit: Likewise.
23994         * modules/unictype/digit: Likewise.
23995         * modules/unictype/mirror: Likewise.
23996         * modules/unictype/numeric: Likewise.
23997         * modules/unictype/property-alphabetic: Likewise.
23998         * modules/unictype/property-ascii-hex-digit: Likewise.
23999         * modules/unictype/property-bidi-arabic-digit: Likewise.
24000         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24001         * modules/unictype/property-bidi-block-separator: Likewise.
24002         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24003         * modules/unictype/property-bidi-common-separator: Likewise.
24004         * modules/unictype/property-bidi-control: Likewise.
24005         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24006         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24007         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24008         * modules/unictype/property-bidi-european-digit: Likewise.
24009         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24010         * modules/unictype/property-bidi-left-to-right: Likewise.
24011         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24012         * modules/unictype/property-bidi-other-neutral: Likewise.
24013         * modules/unictype/property-bidi-pdf: Likewise.
24014         * modules/unictype/property-bidi-segment-separator: Likewise.
24015         * modules/unictype/property-bidi-whitespace: Likewise.
24016         * modules/unictype/property-byname: Likewise.
24017         * modules/unictype/property-combining: Likewise.
24018         * modules/unictype/property-composite: Likewise.
24019         * modules/unictype/property-currency-symbol: Likewise.
24020         * modules/unictype/property-dash: Likewise.
24021         * modules/unictype/property-decimal-digit: Likewise.
24022         * modules/unictype/property-default-ignorable-code-point: Likewise.
24023         * modules/unictype/property-deprecated: Likewise.
24024         * modules/unictype/property-diacritic: Likewise.
24025         * modules/unictype/property-extender: Likewise.
24026         * modules/unictype/property-format-control: Likewise.
24027         * modules/unictype/property-grapheme-base: Likewise.
24028         * modules/unictype/property-grapheme-extend: Likewise.
24029         * modules/unictype/property-grapheme-link: Likewise.
24030         * modules/unictype/property-hex-digit: Likewise.
24031         * modules/unictype/property-hyphen: Likewise.
24032         * modules/unictype/property-id-continue: Likewise.
24033         * modules/unictype/property-id-start: Likewise.
24034         * modules/unictype/property-ideographic: Likewise.
24035         * modules/unictype/property-ids-binary-operator: Likewise.
24036         * modules/unictype/property-ids-trinary-operator: Likewise.
24037         * modules/unictype/property-ignorable-control: Likewise.
24038         * modules/unictype/property-iso-control: Likewise.
24039         * modules/unictype/property-join-control: Likewise.
24040         * modules/unictype/property-left-of-pair: Likewise.
24041         * modules/unictype/property-line-separator: Likewise.
24042         * modules/unictype/property-logical-order-exception: Likewise.
24043         * modules/unictype/property-lowercase: Likewise.
24044         * modules/unictype/property-math: Likewise.
24045         * modules/unictype/property-non-break: Likewise.
24046         * modules/unictype/property-not-a-character: Likewise.
24047         * modules/unictype/property-numeric: Likewise.
24048         * modules/unictype/property-other-alphabetic: Likewise.
24049         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24050         * modules/unictype/property-other-grapheme-extend: Likewise.
24051         * modules/unictype/property-other-id-continue: Likewise.
24052         * modules/unictype/property-other-id-start: Likewise.
24053         * modules/unictype/property-other-lowercase: Likewise.
24054         * modules/unictype/property-other-math: Likewise.
24055         * modules/unictype/property-other-uppercase: Likewise.
24056         * modules/unictype/property-paired-punctuation: Likewise.
24057         * modules/unictype/property-paragraph-separator: Likewise.
24058         * modules/unictype/property-pattern-syntax: Likewise.
24059         * modules/unictype/property-pattern-white-space: Likewise.
24060         * modules/unictype/property-private-use: Likewise.
24061         * modules/unictype/property-punctuation: Likewise.
24062         * modules/unictype/property-quotation-mark: Likewise.
24063         * modules/unictype/property-radical: Likewise.
24064         * modules/unictype/property-sentence-terminal: Likewise.
24065         * modules/unictype/property-soft-dotted: Likewise.
24066         * modules/unictype/property-space: Likewise.
24067         * modules/unictype/property-terminal-punctuation: Likewise.
24068         * modules/unictype/property-test: Likewise.
24069         * modules/unictype/property-titlecase: Likewise.
24070         * modules/unictype/property-unassigned-code-value: Likewise.
24071         * modules/unictype/property-unified-ideograph: Likewise.
24072         * modules/unictype/property-uppercase: Likewise.
24073         * modules/unictype/property-variation-selector: Likewise.
24074         * modules/unictype/property-white-space: Likewise.
24075         * modules/unictype/property-xid-continue: Likewise.
24076         * modules/unictype/property-xid-start: Likewise.
24077         * modules/unictype/property-zero-width: Likewise.
24078         * modules/unictype/scripts: Likewise.
24079         * modules/unictype/syntax-c-ident: Likewise.
24080         * modules/unictype/syntax-c-whitespace: Likewise.
24081         * modules/unictype/syntax-java-ident: Likewise.
24082         * modules/unictype/syntax-java-whitespace: Likewise.
24083         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24084         * modules/unilbrk/u8-width-linebreaks: Likewise.
24085         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24086         * modules/unilbrk/u16-width-linebreaks: Likewise.
24087         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24088         * modules/unilbrk/u32-width-linebreaks: Likewise.
24089         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24090         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24091         * modules/uniname/uniname: Likewise.
24092         * modules/uninorm/canonical-decomposition: Likewise.
24093         * modules/uninorm/composition: Likewise.
24094         * modules/uninorm/decomposing-form: Likewise.
24095         * modules/uninorm/decomposition: Likewise.
24096         * modules/uninorm/filter: Likewise.
24097         * modules/uninorm/nfc: Likewise.
24098         * modules/uninorm/nfd: Likewise.
24099         * modules/uninorm/nfkc: Likewise.
24100         * modules/uninorm/nfkd: Likewise.
24101         * modules/uninorm/u8-normalize: Likewise.
24102         * modules/uninorm/u8-normcmp: Likewise.
24103         * modules/uninorm/u8-normcoll: Likewise.
24104         * modules/uninorm/u8-normxfrm: Likewise.
24105         * modules/uninorm/u16-normalize: Likewise.
24106         * modules/uninorm/u16-normcmp: Likewise.
24107         * modules/uninorm/u16-normcoll: Likewise.
24108         * modules/uninorm/u16-normxfrm: Likewise.
24109         * modules/uninorm/u32-normalize: Likewise.
24110         * modules/uninorm/u32-normcmp: Likewise.
24111         * modules/uninorm/u32-normcoll: Likewise.
24112         * modules/uninorm/u32-normxfrm: Likewise.
24113         * modules/unistdio/u8-asnprintf: Likewise.
24114         * modules/unistdio/u8-asprintf: Likewise.
24115         * modules/unistdio/u8-snprintf: Likewise.
24116         * modules/unistdio/u8-sprintf: Likewise.
24117         * modules/unistdio/u8-u8-asnprintf: Likewise.
24118         * modules/unistdio/u8-u8-asprintf: Likewise.
24119         * modules/unistdio/u8-u8-snprintf: Likewise.
24120         * modules/unistdio/u8-u8-sprintf: Likewise.
24121         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24122         * modules/unistdio/u8-u8-vasprintf: Likewise.
24123         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24124         * modules/unistdio/u8-u8-vsprintf: Likewise.
24125         * modules/unistdio/u8-vasnprintf: Likewise.
24126         * modules/unistdio/u8-vasprintf: Likewise.
24127         * modules/unistdio/u8-vsnprintf: Likewise.
24128         * modules/unistdio/u8-vsprintf: Likewise.
24129         * modules/unistdio/u16-asnprintf: Likewise.
24130         * modules/unistdio/u16-asprintf: Likewise.
24131         * modules/unistdio/u16-snprintf: Likewise.
24132         * modules/unistdio/u16-sprintf: Likewise.
24133         * modules/unistdio/u16-u16-asnprintf: Likewise.
24134         * modules/unistdio/u16-u16-asprintf: Likewise.
24135         * modules/unistdio/u16-u16-snprintf: Likewise.
24136         * modules/unistdio/u16-u16-sprintf: Likewise.
24137         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24138         * modules/unistdio/u16-u16-vasprintf: Likewise.
24139         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24140         * modules/unistdio/u16-u16-vsprintf: Likewise.
24141         * modules/unistdio/u16-vasnprintf: Likewise.
24142         * modules/unistdio/u16-vasprintf: Likewise.
24143         * modules/unistdio/u16-vsnprintf: Likewise.
24144         * modules/unistdio/u16-vsprintf: Likewise.
24145         * modules/unistdio/u32-asnprintf: Likewise.
24146         * modules/unistdio/u32-asprintf: Likewise.
24147         * modules/unistdio/u32-snprintf: Likewise.
24148         * modules/unistdio/u32-sprintf: Likewise.
24149         * modules/unistdio/u32-u32-asnprintf: Likewise.
24150         * modules/unistdio/u32-u32-asprintf: Likewise.
24151         * modules/unistdio/u32-u32-snprintf: Likewise.
24152         * modules/unistdio/u32-u32-sprintf: Likewise.
24153         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24154         * modules/unistdio/u32-u32-vasprintf: Likewise.
24155         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24156         * modules/unistdio/u32-u32-vsprintf: Likewise.
24157         * modules/unistdio/u32-vasnprintf: Likewise.
24158         * modules/unistdio/u32-vasprintf: Likewise.
24159         * modules/unistdio/u32-vsnprintf: Likewise.
24160         * modules/unistdio/u32-vsprintf: Likewise.
24161         * modules/unistdio/ulc-asnprintf: Likewise.
24162         * modules/unistdio/ulc-asprintf: Likewise.
24163         * modules/unistdio/ulc-fprintf: Likewise.
24164         * modules/unistdio/ulc-snprintf: Likewise.
24165         * modules/unistdio/ulc-sprintf: Likewise.
24166         * modules/unistdio/ulc-vasnprintf: Likewise.
24167         * modules/unistdio/ulc-vasprintf: Likewise.
24168         * modules/unistdio/ulc-vfprintf: Likewise.
24169         * modules/unistdio/ulc-vsnprintf: Likewise.
24170         * modules/unistdio/ulc-vsprintf: Likewise.
24171         * modules/unistr/u8-check: Likewise.
24172         * modules/unistr/u8-chr: Likewise.
24173         * modules/unistr/u8-cmp: Likewise.
24174         * modules/unistr/u8-cmp2: Likewise.
24175         * modules/unistr/u8-cpy: Likewise.
24176         * modules/unistr/u8-cpy-alloc: Likewise.
24177         * modules/unistr/u8-endswith: Likewise.
24178         * modules/unistr/u8-mblen: Likewise.
24179         * modules/unistr/u8-mbsnlen: Likewise.
24180         * modules/unistr/u8-mbtouc: Likewise.
24181         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24182         * modules/unistr/u8-mbtoucr: Likewise.
24183         * modules/unistr/u8-move: Likewise.
24184         * modules/unistr/u8-next: Likewise.
24185         * modules/unistr/u8-prev: Likewise.
24186         * modules/unistr/u8-set: Likewise.
24187         * modules/unistr/u8-startswith: Likewise.
24188         * modules/unistr/u8-stpcpy: Likewise.
24189         * modules/unistr/u8-stpncpy: Likewise.
24190         * modules/unistr/u8-strcat: Likewise.
24191         * modules/unistr/u8-strchr: Likewise.
24192         * modules/unistr/u8-strcmp: Likewise.
24193         * modules/unistr/u8-strcoll: Likewise.
24194         * modules/unistr/u8-strcpy: Likewise.
24195         * modules/unistr/u8-strcspn: Likewise.
24196         * modules/unistr/u8-strdup: Likewise.
24197         * modules/unistr/u8-strlen: Likewise.
24198         * modules/unistr/u8-strmblen: Likewise.
24199         * modules/unistr/u8-strmbtouc: Likewise.
24200         * modules/unistr/u8-strncat: Likewise.
24201         * modules/unistr/u8-strncmp: Likewise.
24202         * modules/unistr/u8-strncpy: Likewise.
24203         * modules/unistr/u8-strnlen: Likewise.
24204         * modules/unistr/u8-strpbrk: Likewise.
24205         * modules/unistr/u8-strrchr: Likewise.
24206         * modules/unistr/u8-strspn: Likewise.
24207         * modules/unistr/u8-strstr: Likewise.
24208         * modules/unistr/u8-strtok: Likewise.
24209         * modules/unistr/u8-to-u16: Likewise.
24210         * modules/unistr/u8-to-u32: Likewise.
24211         * modules/unistr/u8-uctomb: Likewise.
24212         * modules/unistr/u16-check: Likewise.
24213         * modules/unistr/u16-chr: Likewise.
24214         * modules/unistr/u16-cmp: Likewise.
24215         * modules/unistr/u16-cmp2: Likewise.
24216         * modules/unistr/u16-cpy: Likewise.
24217         * modules/unistr/u16-cpy-alloc: Likewise.
24218         * modules/unistr/u16-endswith: Likewise.
24219         * modules/unistr/u16-mblen: Likewise.
24220         * modules/unistr/u16-mbsnlen: Likewise.
24221         * modules/unistr/u16-mbtouc: Likewise.
24222         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24223         * modules/unistr/u16-mbtoucr: Likewise.
24224         * modules/unistr/u16-move: Likewise.
24225         * modules/unistr/u16-next: Likewise.
24226         * modules/unistr/u16-prev: Likewise.
24227         * modules/unistr/u16-set: Likewise.
24228         * modules/unistr/u16-startswith: Likewise.
24229         * modules/unistr/u16-stpcpy: Likewise.
24230         * modules/unistr/u16-stpncpy: Likewise.
24231         * modules/unistr/u16-strcat: Likewise.
24232         * modules/unistr/u16-strchr: Likewise.
24233         * modules/unistr/u16-strcmp: Likewise.
24234         * modules/unistr/u16-strcoll: Likewise.
24235         * modules/unistr/u16-strcpy: Likewise.
24236         * modules/unistr/u16-strcspn: Likewise.
24237         * modules/unistr/u16-strdup: Likewise.
24238         * modules/unistr/u16-strlen: Likewise.
24239         * modules/unistr/u16-strmblen: Likewise.
24240         * modules/unistr/u16-strmbtouc: Likewise.
24241         * modules/unistr/u16-strncat: Likewise.
24242         * modules/unistr/u16-strncmp: Likewise.
24243         * modules/unistr/u16-strncpy: Likewise.
24244         * modules/unistr/u16-strnlen: Likewise.
24245         * modules/unistr/u16-strpbrk: Likewise.
24246         * modules/unistr/u16-strrchr: Likewise.
24247         * modules/unistr/u16-strspn: Likewise.
24248         * modules/unistr/u16-strstr: Likewise.
24249         * modules/unistr/u16-strtok: Likewise.
24250         * modules/unistr/u16-to-u32: Likewise.
24251         * modules/unistr/u16-to-u8: Likewise.
24252         * modules/unistr/u16-uctomb: Likewise.
24253         * modules/unistr/u32-check: Likewise.
24254         * modules/unistr/u32-chr: Likewise.
24255         * modules/unistr/u32-cmp: Likewise.
24256         * modules/unistr/u32-cmp2: Likewise.
24257         * modules/unistr/u32-cpy: Likewise.
24258         * modules/unistr/u32-cpy-alloc: Likewise.
24259         * modules/unistr/u32-endswith: Likewise.
24260         * modules/unistr/u32-mblen: Likewise.
24261         * modules/unistr/u32-mbsnlen: Likewise.
24262         * modules/unistr/u32-mbtouc: Likewise.
24263         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24264         * modules/unistr/u32-mbtoucr: Likewise.
24265         * modules/unistr/u32-move: Likewise.
24266         * modules/unistr/u32-next: Likewise.
24267         * modules/unistr/u32-prev: Likewise.
24268         * modules/unistr/u32-set: Likewise.
24269         * modules/unistr/u32-startswith: Likewise.
24270         * modules/unistr/u32-stpcpy: Likewise.
24271         * modules/unistr/u32-stpncpy: Likewise.
24272         * modules/unistr/u32-strcat: Likewise.
24273         * modules/unistr/u32-strchr: Likewise.
24274         * modules/unistr/u32-strcmp: Likewise.
24275         * modules/unistr/u32-strcoll: Likewise.
24276         * modules/unistr/u32-strcpy: Likewise.
24277         * modules/unistr/u32-strcspn: Likewise.
24278         * modules/unistr/u32-strdup: Likewise.
24279         * modules/unistr/u32-strlen: Likewise.
24280         * modules/unistr/u32-strmblen: Likewise.
24281         * modules/unistr/u32-strmbtouc: Likewise.
24282         * modules/unistr/u32-strncat: Likewise.
24283         * modules/unistr/u32-strncmp: Likewise.
24284         * modules/unistr/u32-strncpy: Likewise.
24285         * modules/unistr/u32-strnlen: Likewise.
24286         * modules/unistr/u32-strpbrk: Likewise.
24287         * modules/unistr/u32-strrchr: Likewise.
24288         * modules/unistr/u32-strspn: Likewise.
24289         * modules/unistr/u32-strstr: Likewise.
24290         * modules/unistr/u32-strtok: Likewise.
24291         * modules/unistr/u32-to-u16: Likewise.
24292         * modules/unistr/u32-to-u8: Likewise.
24293         * modules/unistr/u32-uctomb: Likewise.
24294         * modules/uniwbrk/u8-wordbreaks: Likewise.
24295         * modules/uniwbrk/u16-wordbreaks: Likewise.
24296         * modules/uniwbrk/u32-wordbreaks: Likewise.
24297         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24298         * modules/uniwbrk/wordbreak-property: Likewise.
24299         * modules/uniwidth/u8-strwidth: Likewise.
24300         * modules/uniwidth/u8-width: Likewise.
24301         * modules/uniwidth/u16-strwidth: Likewise.
24302         * modules/uniwidth/u16-width: Likewise.
24303         * modules/uniwidth/u32-strwidth: Likewise.
24304         * modules/uniwidth/u32-width: Likewise.
24305         * modules/uniwidth/width: Likewise.
24306         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24307         with $(LIBUNISTRING).
24308         * modules/unicase/ignorable-tests: Likewise.
24309         * modules/unicase/locale-language-tests: Likewise.
24310         * modules/unicase/tolower-tests: Likewise.
24311         * modules/unicase/totitle-tests: Likewise.
24312         * modules/unicase/toupper-tests: Likewise.
24313         * modules/unicase/u8-casecmp-tests: Likewise.
24314         * modules/unicase/u8-casecoll-tests: Likewise.
24315         * modules/unicase/u8-casefold-tests: Likewise.
24316         * modules/unicase/u8-is-cased-tests: Likewise.
24317         * modules/unicase/u8-is-casefolded-tests: Likewise.
24318         * modules/unicase/u8-is-lowercase-tests: Likewise.
24319         * modules/unicase/u8-is-titlecase-tests: Likewise.
24320         * modules/unicase/u8-is-uppercase-tests: Likewise.
24321         * modules/unicase/u8-tolower-tests: Likewise.
24322         * modules/unicase/u8-totitle-tests: Likewise.
24323         * modules/unicase/u8-toupper-tests: Likewise.
24324         * modules/unicase/u16-casecmp-tests: Likewise.
24325         * modules/unicase/u16-casecoll-tests: Likewise.
24326         * modules/unicase/u16-casefold-tests: Likewise.
24327         * modules/unicase/u16-is-cased-tests: Likewise.
24328         * modules/unicase/u16-is-casefolded-tests: Likewise.
24329         * modules/unicase/u16-is-lowercase-tests: Likewise.
24330         * modules/unicase/u16-is-titlecase-tests: Likewise.
24331         * modules/unicase/u16-is-uppercase-tests: Likewise.
24332         * modules/unicase/u16-tolower-tests: Likewise.
24333         * modules/unicase/u16-totitle-tests: Likewise.
24334         * modules/unicase/u16-toupper-tests: Likewise.
24335         * modules/unicase/u32-casecmp-tests: Likewise.
24336         * modules/unicase/u32-casecoll-tests: Likewise.
24337         * modules/unicase/u32-casefold-tests: Likewise.
24338         * modules/unicase/u32-is-cased-tests: Likewise.
24339         * modules/unicase/u32-is-casefolded-tests: Likewise.
24340         * modules/unicase/u32-is-lowercase-tests: Likewise.
24341         * modules/unicase/u32-is-titlecase-tests: Likewise.
24342         * modules/unicase/u32-is-uppercase-tests: Likewise.
24343         * modules/unicase/u32-tolower-tests: Likewise.
24344         * modules/unicase/u32-totitle-tests: Likewise.
24345         * modules/unicase/u32-toupper-tests: Likewise.
24346         * modules/unicase/ulc-casecmp-tests: Likewise.
24347         * modules/unicase/ulc-casecoll-tests: Likewise.
24348         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24349         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24350         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24351         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24352         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24353         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24354         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24355         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24356         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24357         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24358         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24359         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24360         * modules/unictype/bidicategory-byname-tests: Likewise.
24361         * modules/unictype/bidicategory-name-tests: Likewise.
24362         * modules/unictype/bidicategory-of-tests: Likewise.
24363         * modules/unictype/bidicategory-test-tests: Likewise.
24364         * modules/unictype/block-list-tests: Likewise.
24365         * modules/unictype/block-of-tests: Likewise.
24366         * modules/unictype/block-test-tests: Likewise.
24367         * modules/unictype/category-C-tests: Likewise.
24368         * modules/unictype/category-Cc-tests: Likewise.
24369         * modules/unictype/category-Cf-tests: Likewise.
24370         * modules/unictype/category-Cn-tests: Likewise.
24371         * modules/unictype/category-Co-tests: Likewise.
24372         * modules/unictype/category-Cs-tests: Likewise.
24373         * modules/unictype/category-L-tests: Likewise.
24374         * modules/unictype/category-Ll-tests: Likewise.
24375         * modules/unictype/category-Lm-tests: Likewise.
24376         * modules/unictype/category-Lo-tests: Likewise.
24377         * modules/unictype/category-Lt-tests: Likewise.
24378         * modules/unictype/category-Lu-tests: Likewise.
24379         * modules/unictype/category-M-tests: Likewise.
24380         * modules/unictype/category-Mc-tests: Likewise.
24381         * modules/unictype/category-Me-tests: Likewise.
24382         * modules/unictype/category-Mn-tests: Likewise.
24383         * modules/unictype/category-N-tests: Likewise.
24384         * modules/unictype/category-Nd-tests: Likewise.
24385         * modules/unictype/category-Nl-tests: Likewise.
24386         * modules/unictype/category-No-tests: Likewise.
24387         * modules/unictype/category-P-tests: Likewise.
24388         * modules/unictype/category-Pc-tests: Likewise.
24389         * modules/unictype/category-Pd-tests: Likewise.
24390         * modules/unictype/category-Pe-tests: Likewise.
24391         * modules/unictype/category-Pf-tests: Likewise.
24392         * modules/unictype/category-Pi-tests: Likewise.
24393         * modules/unictype/category-Po-tests: Likewise.
24394         * modules/unictype/category-Ps-tests: Likewise.
24395         * modules/unictype/category-S-tests: Likewise.
24396         * modules/unictype/category-Sc-tests: Likewise.
24397         * modules/unictype/category-Sk-tests: Likewise.
24398         * modules/unictype/category-Sm-tests: Likewise.
24399         * modules/unictype/category-So-tests: Likewise.
24400         * modules/unictype/category-Z-tests: Likewise.
24401         * modules/unictype/category-Zl-tests: Likewise.
24402         * modules/unictype/category-Zp-tests: Likewise.
24403         * modules/unictype/category-Zs-tests: Likewise.
24404         * modules/unictype/category-and-not-tests: Likewise.
24405         * modules/unictype/category-and-tests: Likewise.
24406         * modules/unictype/category-byname-tests: Likewise.
24407         * modules/unictype/category-name-tests: Likewise.
24408         * modules/unictype/category-none-tests: Likewise.
24409         * modules/unictype/category-of-tests: Likewise.
24410         * modules/unictype/category-or-tests: Likewise.
24411         * modules/unictype/category-test-withtable-tests: Likewise.
24412         * modules/unictype/combining-class-tests: Likewise.
24413         * modules/unictype/ctype-alnum-tests: Likewise.
24414         * modules/unictype/ctype-alpha-tests: Likewise.
24415         * modules/unictype/ctype-blank-tests: Likewise.
24416         * modules/unictype/ctype-cntrl-tests: Likewise.
24417         * modules/unictype/ctype-digit-tests: Likewise.
24418         * modules/unictype/ctype-graph-tests: Likewise.
24419         * modules/unictype/ctype-lower-tests: Likewise.
24420         * modules/unictype/ctype-print-tests: Likewise.
24421         * modules/unictype/ctype-punct-tests: Likewise.
24422         * modules/unictype/ctype-space-tests: Likewise.
24423         * modules/unictype/ctype-upper-tests: Likewise.
24424         * modules/unictype/ctype-xdigit-tests: Likewise.
24425         * modules/unictype/decimal-digit-tests: Likewise.
24426         * modules/unictype/digit-tests: Likewise.
24427         * modules/unictype/mirror-tests: Likewise.
24428         * modules/unictype/numeric-tests: Likewise.
24429         * modules/unictype/property-alphabetic-tests: Likewise.
24430         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24431         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24432         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24433         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24434         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24435         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24436         * modules/unictype/property-bidi-control-tests: Likewise.
24437         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24438         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24439         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24440         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24441         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24442         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24443         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24444         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24445         * modules/unictype/property-bidi-pdf-tests: Likewise.
24446         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24447         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24448         * modules/unictype/property-byname-tests: Likewise.
24449         * modules/unictype/property-combining-tests: Likewise.
24450         * modules/unictype/property-composite-tests: Likewise.
24451         * modules/unictype/property-currency-symbol-tests: Likewise.
24452         * modules/unictype/property-dash-tests: Likewise.
24453         * modules/unictype/property-decimal-digit-tests: Likewise.
24454         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24455         * modules/unictype/property-deprecated-tests: Likewise.
24456         * modules/unictype/property-diacritic-tests: Likewise.
24457         * modules/unictype/property-extender-tests: Likewise.
24458         * modules/unictype/property-format-control-tests: Likewise.
24459         * modules/unictype/property-grapheme-base-tests: Likewise.
24460         * modules/unictype/property-grapheme-extend-tests: Likewise.
24461         * modules/unictype/property-grapheme-link-tests: Likewise.
24462         * modules/unictype/property-hex-digit-tests: Likewise.
24463         * modules/unictype/property-hyphen-tests: Likewise.
24464         * modules/unictype/property-id-continue-tests: Likewise.
24465         * modules/unictype/property-id-start-tests: Likewise.
24466         * modules/unictype/property-ideographic-tests: Likewise.
24467         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24468         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24469         * modules/unictype/property-ignorable-control-tests: Likewise.
24470         * modules/unictype/property-iso-control-tests: Likewise.
24471         * modules/unictype/property-join-control-tests: Likewise.
24472         * modules/unictype/property-left-of-pair-tests: Likewise.
24473         * modules/unictype/property-line-separator-tests: Likewise.
24474         * modules/unictype/property-logical-order-exception-tests: Likewise.
24475         * modules/unictype/property-lowercase-tests: Likewise.
24476         * modules/unictype/property-math-tests: Likewise.
24477         * modules/unictype/property-non-break-tests: Likewise.
24478         * modules/unictype/property-not-a-character-tests: Likewise.
24479         * modules/unictype/property-numeric-tests: Likewise.
24480         * modules/unictype/property-other-alphabetic-tests: Likewise.
24481         * modules/unictype/property-other-default-ignorable-code-point-tests:
24482         Likewise.
24483         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24484         * modules/unictype/property-other-id-continue-tests: Likewise.
24485         * modules/unictype/property-other-id-start-tests: Likewise.
24486         * modules/unictype/property-other-lowercase-tests: Likewise.
24487         * modules/unictype/property-other-math-tests: Likewise.
24488         * modules/unictype/property-other-uppercase-tests: Likewise.
24489         * modules/unictype/property-paired-punctuation-tests: Likewise.
24490         * modules/unictype/property-paragraph-separator-tests: Likewise.
24491         * modules/unictype/property-pattern-syntax-tests: Likewise.
24492         * modules/unictype/property-pattern-white-space-tests: Likewise.
24493         * modules/unictype/property-private-use-tests: Likewise.
24494         * modules/unictype/property-punctuation-tests: Likewise.
24495         * modules/unictype/property-quotation-mark-tests: Likewise.
24496         * modules/unictype/property-radical-tests: Likewise.
24497         * modules/unictype/property-sentence-terminal-tests: Likewise.
24498         * modules/unictype/property-soft-dotted-tests: Likewise.
24499         * modules/unictype/property-space-tests: Likewise.
24500         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24501         * modules/unictype/property-test-tests: Likewise.
24502         * modules/unictype/property-titlecase-tests: Likewise.
24503         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24504         * modules/unictype/property-unified-ideograph-tests: Likewise.
24505         * modules/unictype/property-uppercase-tests: Likewise.
24506         * modules/unictype/property-variation-selector-tests: Likewise.
24507         * modules/unictype/property-white-space-tests: Likewise.
24508         * modules/unictype/property-xid-continue-tests: Likewise.
24509         * modules/unictype/property-xid-start-tests: Likewise.
24510         * modules/unictype/property-zero-width-tests: Likewise.
24511         * modules/unictype/scripts-tests: Likewise.
24512         * modules/unictype/syntax-c-ident-tests: Likewise.
24513         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24514         * modules/unictype/syntax-java-ident-tests: Likewise.
24515         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24516         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24517         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24518         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24519         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24520         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24521         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24522         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24523         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24524         * modules/uniname/uniname-tests: Likewise.
24525         * modules/uninorm/canonical-decomposition-tests: Likewise.
24526         * modules/uninorm/compat-decomposition-tests: Likewise.
24527         * modules/uninorm/composition-tests: Likewise.
24528         * modules/uninorm/decomposing-form-tests: Likewise.
24529         * modules/uninorm/decomposition-tests: Likewise.
24530         * modules/uninorm/filter-tests: Likewise.
24531         * modules/uninorm/nfc-tests: Likewise.
24532         * modules/uninorm/nfd-tests: Likewise.
24533         * modules/uninorm/nfkc-tests: Likewise.
24534         * modules/uninorm/nfkd-tests: Likewise.
24535         * modules/uninorm/u8-normcmp-tests: Likewise.
24536         * modules/uninorm/u8-normcoll-tests: Likewise.
24537         * modules/uninorm/u16-normcmp-tests: Likewise.
24538         * modules/uninorm/u16-normcoll-tests: Likewise.
24539         * modules/uninorm/u32-normcmp-tests: Likewise.
24540         * modules/uninorm/u32-normcoll-tests: Likewise.
24541         * modules/unistdio/u8-asnprintf-tests: Likewise.
24542         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24543         * modules/unistdio/u8-vasprintf-tests: Likewise.
24544         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24545         * modules/unistdio/u8-vsprintf-tests: Likewise.
24546         * modules/unistdio/u16-asnprintf-tests: Likewise.
24547         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24548         * modules/unistdio/u16-vasprintf-tests: Likewise.
24549         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24550         * modules/unistdio/u16-vsprintf-tests: Likewise.
24551         * modules/unistdio/u32-asnprintf-tests: Likewise.
24552         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24553         * modules/unistdio/u32-vasprintf-tests: Likewise.
24554         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24555         * modules/unistdio/u32-vsprintf-tests: Likewise.
24556         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24557         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24558         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24559         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24560         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24561         * modules/unistr/u8-check-tests: Likewise.
24562         * modules/unistr/u8-chr-tests: Likewise.
24563         * modules/unistr/u8-cmp-tests: Likewise.
24564         * modules/unistr/u8-cmp2-tests: Likewise.
24565         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24566         * modules/unistr/u8-cpy-tests: Likewise.
24567         * modules/unistr/u8-mblen-tests: Likewise.
24568         * modules/unistr/u8-mbsnlen-tests: Likewise.
24569         * modules/unistr/u8-mbtouc-tests: Likewise.
24570         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24571         * modules/unistr/u8-mbtoucr-tests: Likewise.
24572         * modules/unistr/u8-move-tests: Likewise.
24573         * modules/unistr/u8-next-tests: Likewise.
24574         * modules/unistr/u8-prev-tests: Likewise.
24575         * modules/unistr/u8-set-tests: Likewise.
24576         * modules/unistr/u8-stpcpy-tests: Likewise.
24577         * modules/unistr/u8-stpncpy-tests: Likewise.
24578         * modules/unistr/u8-strcat-tests: Likewise.
24579         * modules/unistr/u8-strcmp-tests: Likewise.
24580         * modules/unistr/u8-strcoll-tests: Likewise.
24581         * modules/unistr/u8-strcpy-tests: Likewise.
24582         * modules/unistr/u8-strdup-tests: Likewise.
24583         * modules/unistr/u8-strlen-tests: Likewise.
24584         * modules/unistr/u8-strmblen-tests: Likewise.
24585         * modules/unistr/u8-strmbtouc-tests: Likewise.
24586         * modules/unistr/u8-strncat-tests: Likewise.
24587         * modules/unistr/u8-strncmp-tests: Likewise.
24588         * modules/unistr/u8-strncpy-tests: Likewise.
24589         * modules/unistr/u8-strnlen-tests: Likewise.
24590         * modules/unistr/u8-to-u16-tests: Likewise.
24591         * modules/unistr/u8-to-u32-tests: Likewise.
24592         * modules/unistr/u8-uctomb-tests: Likewise.
24593         * modules/unistr/u16-check-tests: Likewise.
24594         * modules/unistr/u16-chr-tests: Likewise.
24595         * modules/unistr/u16-cmp-tests: Likewise.
24596         * modules/unistr/u16-cmp2-tests: Likewise.
24597         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24598         * modules/unistr/u16-cpy-tests: Likewise.
24599         * modules/unistr/u16-mblen-tests: Likewise.
24600         * modules/unistr/u16-mbsnlen-tests: Likewise.
24601         * modules/unistr/u16-mbtouc-tests: Likewise.
24602         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24603         * modules/unistr/u16-mbtoucr-tests: Likewise.
24604         * modules/unistr/u16-move-tests: Likewise.
24605         * modules/unistr/u16-next-tests: Likewise.
24606         * modules/unistr/u16-prev-tests: Likewise.
24607         * modules/unistr/u16-set-tests: Likewise.
24608         * modules/unistr/u16-stpcpy-tests: Likewise.
24609         * modules/unistr/u16-stpncpy-tests: Likewise.
24610         * modules/unistr/u16-strcat-tests: Likewise.
24611         * modules/unistr/u16-strcmp-tests: Likewise.
24612         * modules/unistr/u16-strcoll-tests: Likewise.
24613         * modules/unistr/u16-strcpy-tests: Likewise.
24614         * modules/unistr/u16-strdup-tests: Likewise.
24615         * modules/unistr/u16-strlen-tests: Likewise.
24616         * modules/unistr/u16-strmblen-tests: Likewise.
24617         * modules/unistr/u16-strmbtouc-tests: Likewise.
24618         * modules/unistr/u16-strncat-tests: Likewise.
24619         * modules/unistr/u16-strncmp-tests: Likewise.
24620         * modules/unistr/u16-strncpy-tests: Likewise.
24621         * modules/unistr/u16-strnlen-tests: Likewise.
24622         * modules/unistr/u16-to-u32-tests: Likewise.
24623         * modules/unistr/u16-to-u8-tests: Likewise.
24624         * modules/unistr/u16-uctomb-tests: Likewise.
24625         * modules/unistr/u32-check-tests: Likewise.
24626         * modules/unistr/u32-chr-tests: Likewise.
24627         * modules/unistr/u32-cmp-tests: Likewise.
24628         * modules/unistr/u32-cmp2-tests: Likewise.
24629         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24630         * modules/unistr/u32-cpy-tests: Likewise.
24631         * modules/unistr/u32-mblen-tests: Likewise.
24632         * modules/unistr/u32-mbsnlen-tests: Likewise.
24633         * modules/unistr/u32-mbtouc-tests: Likewise.
24634         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24635         * modules/unistr/u32-mbtoucr-tests: Likewise.
24636         * modules/unistr/u32-move-tests: Likewise.
24637         * modules/unistr/u32-next-tests: Likewise.
24638         * modules/unistr/u32-prev-tests: Likewise.
24639         * modules/unistr/u32-set-tests: Likewise.
24640         * modules/unistr/u32-stpcpy-tests: Likewise.
24641         * modules/unistr/u32-stpncpy-tests: Likewise.
24642         * modules/unistr/u32-strcat-tests: Likewise.
24643         * modules/unistr/u32-strcmp-tests: Likewise.
24644         * modules/unistr/u32-strcoll-tests: Likewise.
24645         * modules/unistr/u32-strcpy-tests: Likewise.
24646         * modules/unistr/u32-strdup-tests: Likewise.
24647         * modules/unistr/u32-strlen-tests: Likewise.
24648         * modules/unistr/u32-strmblen-tests: Likewise.
24649         * modules/unistr/u32-strmbtouc-tests: Likewise.
24650         * modules/unistr/u32-strncat-tests: Likewise.
24651         * modules/unistr/u32-strncmp-tests: Likewise.
24652         * modules/unistr/u32-strncpy-tests: Likewise.
24653         * modules/unistr/u32-strnlen-tests: Likewise.
24654         * modules/unistr/u32-to-u16-tests: Likewise.
24655         * modules/unistr/u32-to-u8-tests: Likewise.
24656         * modules/unistr/u32-uctomb-tests: Likewise.
24657         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24658         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24659         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24660         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24661         * modules/uniwidth/u8-strwidth-tests: Likewise.
24662         * modules/uniwidth/u8-width-tests: Likewise.
24663         * modules/uniwidth/u16-strwidth-tests: Likewise.
24664         * modules/uniwidth/u16-width-tests: Likewise.
24665         * modules/uniwidth/u32-strwidth-tests: Likewise.
24666         * modules/uniwidth/u32-width-tests: Likewise.
24667         * modules/uniwidth/width-tests: Likewise.
24668
24669 2010-05-18  Richard Jones  <rjones@redhat.com>
24670
24671         doc: users.txt: list hivex
24672         * users.txt: Add hivex.
24673
24674 2010-05-18  Richard Jones  <rjones@redhat.com>
24675
24676         doc: users.txt: list febootstrap
24677         * users.txt: Add febootstrap.
24678
24679 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24680
24681         bootstrap: fix an error when gnulib is not used as a git submodule
24682         * build-aux/bootstrap (gnulib_path): If its length is zero then
24683         assign "gnulib" to it.
24684         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24685
24686 2010-05-16  Bruno Haible  <bruno@clisp.org>
24687
24688         Avoid autoconf warnings about AM_ICONV.
24689         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24690         2.64.
24691
24692 2010-05-16  Bruno Haible  <bruno@clisp.org>
24693
24694         absolute-header: Make the macro usable in more situations.
24695         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24696         from gl_ABSOLUTE_HEADER.
24697         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24698
24699 2010-05-16  James Youngman  <jay@gnu.org>
24700
24701         doc: update users.txt
24702         * users.txt: Add CSSC.
24703
24704 2010-05-16  Jim Meyering  <meyering@redhat.com>
24705
24706         init.sh: fix an error in the previous change; add more comments
24707         * tests/init.sh: Compare exit code in loop against 9, not 2.
24708         Patch by Bruno Haible.
24709         Make the two tests more similar by adding an empty "then" clause.
24710         Add comments.
24711
24712         init.sh: avoid unnecessary shell re-exec
24713         * tests/init.sh: Improve the re-exec-required check to first test the
24714         current shell.  If it passes the test, do not search for a shell that
24715         does pass, and do not re-exec.  This test is particularly contorted to
24716         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24717         of $(...) evokes a syntax error and causes immediate shell exit with
24718         status 2.  Bruno Haible reported that the re-exec made it impossible
24719         to single-step through any init.sh-using script.
24720
24721 2010-05-16  Bruno Haible  <bruno@clisp.org>
24722
24723         Fix collision between gnulib's and libintl's printf replacements.
24724         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24725         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24726         (printf): When using GNU C, map the __printf__ function to rpl_printf
24727         via __asm__. When not using GNU C, define rpl_printf instead of
24728         __printf__.
24729         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24730         commit.
24731         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24732         commit.
24733         * m4/asm-underscore.m4: New file.
24734         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24735         * modules/stdio (Files): Add m4/asm-underscore.m4.
24736         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24737         Reported by Ben Pfaff.
24738
24739 2010-05-16  Bruno Haible  <bruno@clisp.org>
24740
24741         verify: Avoid skipping the test on openSUSE 11.0.
24742         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24743
24744 2010-05-13  Bruno Haible  <bruno@clisp.org>
24745
24746         Avoid useless warnings from G++.
24747         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24748         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24749         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24750
24751 2010-05-11  Jim Meyering  <meyering@redhat.com>
24752
24753         maint.mk: tweak preceding change
24754         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24755         regexps tighter by anchoring at EOL, and make the new group "shy"
24756         for slightly decreased overhead.
24757
24758 2010-05-11  Eric Blake  <eblake@redhat.com>
24759
24760         maint.mk: gnulib doesn't guarantee NSIG
24761         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24762
24763 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24764
24765         test-pwrite.c: Remove unused variable declaration.
24766         * tests/test-pwrite.c (main): Remove read_buf declaration.
24767
24768         Remove useless test-pwrite.sh file.
24769         * tests/test-pwrite.sh: Delete file.
24770         * modules/pwrite-tests: Remove references.
24771         Reported by Bruno Haible.
24772
24773 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24774
24775         init.sh: fix a typo
24776         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24777
24778 2010-05-10  Jim Meyering  <meyering@redhat.com>
24779
24780         maint.mk: avoid using a temporary file in the always-defined-macros check
24781         * top/maint.mk (.re-defmac): Remove rule.
24782         (gl_trap_): Remove definition.
24783         (sc_prohibit_always-defined_macros): Rewrite not to create and
24784         depend on a temporary file.  Instead, depend on GNU grep's ability
24785         to read a list of regular expressions from stdin when given "-f -".
24786
24787 2010-05-09  Bruno Haible  <bruno@clisp.org>
24788
24789         Update to GNU gettext 0.18, part 1.
24790         * m4/gettext.m4: Update to GNU gettext 0.18.
24791         * m4/intl.m4: Likewise.
24792         * m4/po.m4: Likewise.
24793         * modules/gettext (Files): Add m4/fcntl-o.m4.
24794         (configure.ac): Require gettext infrastructure from version 0.18.
24795
24796 2010-05-09  Jim Meyering  <meyering@redhat.com>
24797
24798         init.sh: enable MALLOC_PERTURB_
24799         * tests/init.sh: Enable glibc's malloc-perturbing option.
24800
24801         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24802         With my recent change in init.sh from the two-line form:
24803             -#   : ${srcdir=.}
24804             -#   . "$srcdir/init.sh"; path_prepend_ .
24805             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24806         I noticed that using the one-line form would cause this test
24807         to fail with a false-positive, or to stop working altogether,
24808         depending on whether help-version changed or all the tests did.
24809         * top/maint.mk (_hv_regex): Remove this definition.
24810         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24811         (_hv_regex_strong): Use a stronger regex to check for conformance.
24812         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24813         Give a separate diagnostic for lack of conforming use.
24814
24815         maint.mk: prohibit definition of symbols defined by gnulib
24816         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24817         definition of symbols defined by gnulib.
24818
24819 2010-05-09  Bruno Haible  <bruno@clisp.org>
24820
24821         acl: Avoid test failure on Cygwin-hosted mingw.
24822         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24823
24824 2010-05-09  Bruno Haible  <bruno@clisp.org>
24825
24826         error: Use system's fcntl function.
24827         * lib/error.c (fcntl): Undefine.
24828
24829 2010-05-09  Jim Meyering  <meyering@redhat.com>
24830
24831         verify: adjust formatting to be more consistent
24832         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24833         argument-list '('s, and after one comma.
24834
24835 2010-05-09  Bruno Haible  <bruno@clisp.org>
24836
24837         error: More reliable output on mingw.
24838         * lib/error.c: Include <windows.h>.
24839         (is_open): New function.
24840         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24841         defined.
24842
24843 2010-05-09  Bruno Haible  <bruno@clisp.org>
24844
24845         vasnprintf: Fix syntax errors in libintl build on mingw.
24846         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24847         pad_ourselves and prec_ourselves after use.
24848
24849 2010-05-08  Bruno Haible  <bruno@clisp.org>
24850
24851         * lib/config.charset: Update comments for Cygwin 1.7.
24852         * lib/localcharset.c: Likewise.
24853
24854 2010-05-07  Jim Meyering  <meyering@redhat.com>
24855
24856         init.sh: improve comments
24857         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24858         . "${srcdir=.}/init.sh"; path_prepend_ .
24859         Add a note about path_prepend_ and the alternative of using
24860         TESTS_ENVIRONMENT.
24861
24862 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24863
24864         exclude: Unescape hashed patterns in wildcard mode.
24865         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24866         to the hash list.
24867         * tests/test-exclude8.sh: New test case.
24868         * modules/exclude-tests: Add new test.
24869
24870 2010-05-05  Eric Blake  <eblake@redhat.com>
24871
24872         verify: automate tests
24873         * modules/verify-tests: New module.
24874         * tests/test-verify.sh: New file.
24875         * tests/test-verify.c: Guard each negative test with a unique id.
24876         Also avoid warning about unused left hand of comma expressions.
24877
24878 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24879
24880         Further improvements to verify.h, suggested by Eric Blake.
24881         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24882         the GL_* versions, to avoid collision with OpenGL.
24883         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24884         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24885         than testing merely whether it's defined.
24886
24887         Modify verify.h to pacify gcc -Wredundant_decls.
24888         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24889         These use the prefix "GL_" since they're likely to be useful elsewhere.
24890         We may need to break them out into a different .h file.
24891         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24892         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24893         of verify_function__.
24894
24895 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24896
24897         Tests for module pwrite.
24898         * modules/pwrite-tests: New file.
24899         * tests/test-pwrite.sh: New file.
24900         * tests/test-pwrite.c: New file.
24901
24902         New module pwrite.
24903         * lib/unistd.in.h (pwrite): New declaration.
24904         * lib/pwrite.c: New file, from glibc with modifications.
24905         * m4/pwrite.m4: New file.
24906         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24907         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24908         REPLACE_PWRITE.
24909         * modules/pwrite: New file.
24910         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24911         REPLACE_PWRITE.
24912         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24913         * doc/posix-functions/pwrite.texi: Mention the new module.
24914
24915 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24916
24917         pread: Update documentation.
24918         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24919
24920 2010-05-04  Eric Blake  <eblake@redhat.com>
24921
24922         docs: update cygwin progress
24923         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24924         this bug.
24925         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24926         Added in cygwin 1.7.2.
24927         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24928         Likewise.
24929         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24930         Likewise.
24931         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24932         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24933         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24934         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24935         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24936         Mention nproc module.
24937         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24938         bug in cygwin 1.7.5 addition.
24939         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24940         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24941         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24942         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24943         1.7.5.
24944         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24945         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24946         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24947         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24948         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24949         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24950         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24951         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24952         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24953         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24954         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24955         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24956         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24957         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24958         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24959         Likewise.
24960         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24961         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24962         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24963         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24964         Likewise.
24965         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24966         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24967         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24968         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24969         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24970         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24971         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24972         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24973         Likewise.
24974         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24975         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24976         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24977         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24978         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24979         Likewise.
24980         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24981         Likewise.
24982         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24983         Likewise.
24984         * doc/glibc-functions/xdrrec_endofrecord.texi
24985         (xdrrec_endofrecord): Likewise.
24986         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24987         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24988         Likewise.
24989         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24990         Likewise.
24991
24992 2010-05-04  Jim Meyering  <meyering@redhat.com>
24993
24994         gendocs.sh: make its "-s FILE" option more useful
24995         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24996         $PACKAGE to reflect the probably-different basename of "FILE".
24997
24998 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24999
25000         bootstrap: don't ignore download_po_files failure
25001         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25002         failure.
25003
25004 2010-05-03  Jim Meyering  <meyering@redhat.com>
25005
25006         maint.mk: allow to pass options to gendocs.sh
25007         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25008         (gendocs_options_): New overridable variable.
25009
25010         gnu-web-doc-update: don't ignore configure or build failure
25011         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25012
25013         announce-gen: backslash-escape '@'s in --help output
25014         * build-aux/announce-gen: Fix syntax errors.
25015
25016         maint.mk, announce-gen: allow project-specific announcement mail headers
25017         * top/maint.mk (translation_project_): Define default.
25018         (announcement_Cc_, announcement_mail_headers_): Likewise.
25019         (announcement): Invoke announce-gen with new --mail-headers option.
25020         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25021
25022         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25023         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25024         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25025         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25026         line in the "err2" output file when running "make check" in verbose
25027         mode (i.e., with set -x enabled).
25028
25029 2010-05-03  Bruno Haible  <bruno@clisp.org>
25030
25031         wctob: Fix for weird platforms.
25032         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25033         argument value.
25034
25035 2010-05-03  Jim Meyering  <meyering@redhat.com>
25036
25037         maint.mk: prohibit unwarranted use of <strings.h>
25038         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25039         strings.h in a file that does not also use strcasecmp, strncasecmp,
25040         ffs or ffsll.
25041
25042         maint.mk: remove obsolete comments
25043         * top/maint.mk: Remove stale, commented-out rules.
25044
25045 2010-05-02  Bruno Haible  <bruno@clisp.org>
25046
25047         wcwidth: Declare also when it's aliased.
25048         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25049         macro.
25050
25051 2010-05-02  Bruno Haible  <bruno@clisp.org>
25052
25053         Fix regression from 2010-04-25.
25054         * gnulib-tool (func_modules_transitive_closure): Check the status of
25055         all modules, not only of the tests that are of the form foo-tests where
25056         foo is a module.
25057
25058 2010-05-02  Bruno Haible  <bruno@clisp.org>
25059
25060         wctob: Work around nasty Cygwin 1.7.2 bug.
25061         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25062         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25063
25064 2010-05-01  Bruno Haible  <bruno@clisp.org>
25065
25066         fpurge: Sharper test.
25067         * tests/test-fpurge.c (main): Add one more ftell check.
25068         * modules/fpurge-tests (Depends-on): Add ftell.
25069         Suggested by Eric Blake.
25070
25071 2010-05-01  Bruno Haible  <bruno@clisp.org>
25072
25073         ftello: Another test.
25074         * tests/test-ftello3.c: New file.
25075         * modules/ftello-tests (Files): Add it.
25076         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25077         MOSTLYCLEANFILES.
25078
25079         ftell: Another test.
25080         * tests/test-ftell3.c: New file.
25081         * modules/ftell-tests (Files): Add it.
25082         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25083         MOSTLYCLEANFILES.
25084
25085 2010-05-01  Bruno Haible  <bruno@clisp.org>
25086
25087         ftell, ftello: Work around Solaris bug.
25088         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25089         * lib/ftello.c: Include stdio-impl.h.
25090         (ftello): On Solaris, when _IOWRT is set, compute the result without
25091         looking at _IOREAD.
25092         * modules/ftello (Files): Add lib/stdio-impl.h.
25093         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25094         * doc/posix-functions/ftello.texi: Likewise.
25095         Reported by Eric Blake.
25096
25097 2010-05-01  Bruno Haible  <bruno@clisp.org>
25098
25099         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25100         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25101         the _IOWRT flag is also set.
25102
25103 2010-05-01  Bruno Haible  <bruno@clisp.org>
25104
25105         Fix doc about a HP-UX stdio bug.
25106         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25107         * doc/posix-functions/ftello.texi: Likewise.
25108
25109 2010-05-01  Bruno Haible  <bruno@clisp.org>
25110
25111         lseek test: Fix failure on Solaris.
25112         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25113         output.
25114
25115 2010-04-30  Jim Meyering  <meyering@redhat.com>
25116
25117         bootstrap: don't ignore failure to generate po*/Makevars
25118         * build-aux/bootstrap (with_gettext): Don't ignore failure
25119         to create po/Makevars or runtime-po/Makevars.
25120
25121 2010-04-29  Eric Blake  <eblake@redhat.com>
25122
25123         headers: relax license to LGPLv2+
25124         * modules/fcntl-h (License): Relax license.
25125         * modules/getopt-posix (License): Likewise.
25126         * modules/locale (License): Likewise.
25127         * modules/math (License): Likewise.
25128         * modules/pty (License): Likewise.
25129         * modules/sched (License): Likewise.
25130         * modules/search (License): Likewise.
25131         * modules/spawn (License): Likewise.
25132         * modules/stdarg (License): Likewise.
25133         * modules/sysexits (License): Likewise.
25134
25135 2010-04-29  Jim Meyering  <meyering@redhat.com>
25136
25137         inttypes: relax license to LGPLv2+
25138         * modules/inttypes (License): Relax license.
25139
25140 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25141
25142         * top/maint.mk (indent): Run twice to produce idempotent results.
25143
25144 2010-04-28  Bruno Haible  <bruno@clisp.org>
25145
25146         getdate: Generate getdate.c in the source directory.
25147         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25148         MOSTLYCLEANFILES.
25149         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25150
25151 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25152
25153         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25154         is not declared as a const *; avoid warnings in that case.
25155
25156 2010-04-28  Eric Blake  <eblake@redhat.com>
25157
25158         canonicalize-lgpl: avoid compiler warning
25159         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25160         declaration' / 'extraneous semicolon' warning with some compilers.
25161         Reported by Andreas Gruenbacher.
25162
25163 2010-04-28  Jim Meyering  <meyering@redhat.com>
25164
25165         init.sh: ensure a more reliable exit status when exiting via trap
25166         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25167         Inspired by patches from Dmitry V. Levin.
25168         Also trap on signal 3 (SIGQUIT).
25169
25170 2010-04-27  Bruno Haible  <bruno@clisp.org>
25171
25172         Update doc about utimes().
25173         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25174         'utimens' module.
25175         Reported by Andreas Gruenbacher <agruen@suse.de>.
25176
25177 2010-04-27  Eric Blake  <eblake@redhat.com>
25178
25179         full-read, full-write: relax license
25180         * modules/full-read (License): Drop to LGPLv2+.
25181         * modules/full-write (License): Likewise.
25182         * modules/safe-read (License): Likewise.
25183         * modules/safe-write (License): Likewise.
25184
25185         pthread: mention library for linking
25186         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25187
25188 2010-04-27  Jim Meyering  <meyering@redhat.com>
25189
25190         maint.mk: fix a bug introduced in last change
25191         * top/maint.mk (gl_assured_headers_): Now that all names are on
25192         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25193         is not anchored to end of word, it should be adequate.
25194
25195         maint.mk: avoid side-effect in latest syntax-check
25196         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25197         to run commands via $(shell...), and hence to incur cost only when
25198         the new rule is actually run.
25199
25200         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25201         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25202         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25203         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25204         (gl_assured_headers_, az_, AZ_): Define.
25205         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25206
25207 2010-04-26  Jim Meyering  <jim@meyering.net>
25208             Bruno Haible  <bruno@clisp.org>
25209
25210         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25212         Prompted by an exchange with Gilles Espinasse.
25213
25214 2010-04-26  Jim Meyering  <meyering@redhat.com>
25215
25216         git-version-gen: aesthetic tweak
25217         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25218         so that the command remains on a single line.
25219
25220 2010-04-26  Eric Blake  <eblake@redhat.com>
25221
25222         git-version-gen: allow use on EBCDIC hosts
25223         * build-aux/git-version-gen (dirty): Use literal rather than tying
25224         ourselves to ascii.
25225         Reported by Steve Goetze.
25226
25227 2010-04-25  Bruno Haible  <bruno@clisp.org>
25228
25229         netdb: Add support for GNULIB_POSIXCHECK.
25230         * lib/netdb.in.h: Include warn-on-use.h.
25231         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25232         functions are used when GNULIB_POSIXCHECK is defined and the
25233         getaddrinfo module is not in use.
25234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25235         freeaddrinfo, gai_strerror, getnameinfo are declared.
25236         * modules/netdb (Depends-on): Add warn-on-use.
25237         (Makefile.am): Include warn-on-use.h in netdb.h.
25238
25239 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25240
25241         build: avoid "make check" failure without .git/ directory
25242         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25243         there is no .git/ directory.
25244
25245 2010-04-25  Bruno Haible  <bruno@clisp.org>
25246
25247         ptsname: Fix misuse of ttyname_r.
25248         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25249         of errno.
25250
25251 2010-04-25  Bruno Haible  <bruno@clisp.org>
25252
25253         ttyname_r: Make it work on Solaris 10.
25254         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25255         if the system function has the POSIX declaration. Test whether the
25256         function fails if the buffer is less than 128 bytes large.
25257         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25258         system's ttyname_r function. Provide a reasonably large buffer.
25259         * modules/ttyname_r (Depends-on): Add extensions.
25260         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25261
25262 2010-04-25  Bruno Haible  <bruno@clisp.org>
25263
25264         Use the 'extensions' module for some more functions on Solaris.
25265         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25266         module.
25267         * doc/posix-functions/ctime_r.texi: Likewise.
25268         * doc/posix-functions/getgrgid_r.texi: Likewise.
25269         * doc/posix-functions/getgrnam_r.texi: Likewise.
25270         * doc/posix-functions/getpwnam_r.texi: Likewise.
25271         * doc/posix-functions/getpwuid_r.texi: Likewise.
25272         * doc/posix-functions/readdir_r.texi: Likewise.
25273         * doc/posix-functions/sigwait.texi: Likewise.
25274         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25275         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25276
25277 2010-04-25  Bruno Haible  <bruno@clisp.org>
25278
25279         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25280         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25281         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25282         * lib/ttyname_r.c: Include <limits.h>.
25283         (ttyname_r): Define using the system's ttyname_r function, if it exists
25284         and not on Solaris.
25285         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25286         set.
25287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25288         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25289         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25290         Reported by Simon Josefsson.
25291
25292 2010-04-25  Bruno Haible  <bruno@clisp.org>
25293
25294         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25295         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25296         * doc/posix-functions/ctime_r.texi: Likewise.
25297         * doc/posix-functions/getgrgid_r.texi: Likewise.
25298         * doc/posix-functions/getgrnam_r.texi: Likewise.
25299         * doc/posix-functions/getlogin_r.texi: Likewise.
25300         * doc/posix-functions/getpwnam_r.texi: Likewise.
25301         * doc/posix-functions/getpwuid_r.texi: Likewise.
25302         * doc/posix-functions/readdir_r.texi: Likewise.
25303         * doc/posix-functions/sigwait.texi: Likewise.
25304         * doc/posix-functions/ttyname_r.texi: Likewise.
25305         Reported by Simon Josefsson.
25306
25307 2010-04-25  Bruno Haible  <bruno@clisp.org>
25308
25309         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25310         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25311         also to --create-testdir.
25312         (func_acceptable): Don't consider the status of *-tests modules here.
25313         (func_modules_transitive_closure): Consider it here, before including a
25314         test module.
25315         (func_import, func_create_testdir): Set inc_all_direct_tests,
25316         inc_all_indirect_tests.
25317         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25318         --create-testdir and --create-megatestdir.
25319
25320 2010-04-25  Bruno Haible  <bruno@clisp.org>
25321
25322         gnulib-tool: Add --without-*-tests options.
25323         * gnulib-tool (func_usage): Document the --without-*-tests options.
25324         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25325         excl_unportable_tests): New variables.
25326         Fail if they are specified with --import or --update.
25327         (func_acceptable): Respect the excl_*_tests variables.
25328         (func_import): Set the excl_*_tests variables to empty.
25329
25330 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25331             Bruno Haible  <bruno@clisp.org>
25332
25333         Work around a MacOS X 10.4 bug with openpty.
25334         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25335         * tests/test-openpty.c (main): Close the master side explicitly.
25336
25337 2010-04-25  Bruno Haible  <bruno@clisp.org>
25338
25339         strnlen: Fix a C++ test error on MacOS X and Solaris.
25340         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25341         the function is not declared.
25342         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25343         Simon Josefsson.
25344
25345 2010-04-24  Bruno Haible  <bruno@clisp.org>
25346
25347         Avoid a gcc warning.
25348         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25349         of correct type for %08lx directive.
25350         Reported by Eric Blake.
25351
25352 2010-04-24  Bruno Haible  <bruno@clisp.org>
25353
25354         vasnprintf: Correct errno value in case of out-of-memory.
25355         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25356         or sprintf. Use the errno value from SNPRINTF or sprintf.
25357         Reported by Ian Beckwith <ianb@erislabs.net>.
25358
25359 2010-04-24  Bruno Haible  <bruno@clisp.org>
25360
25361         ansi-c++-opt: Find correct compiler when cross-compiling.
25362         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25363         AC_CHECK_PROGS.
25364         Reported by Simon Josefsson.
25365
25366 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25367
25368         vc-list-files: Add support for subversion
25369         * build-aux/vc-list-files: Use "svn list" to generate the list of
25370         files controlled by subversion.
25371
25372 2010-04-23  Jim Meyering  <meyering@redhat.com>
25373
25374         vc-list-files tests: convert to use init.sh
25375         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25376         path_prepend_.
25377         Use Exit, not exit.
25378         Use skip_ rather than open coding it.
25379         Remove trap set-up and compare definitions.
25380         * tests/test-vc-list-files-git.sh: Likewise.
25381         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25382
25383 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25384
25385         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25386         backup files.
25387
25388 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25389
25390         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25391
25392 2010-04-20  Eric Blake  <eblake@redhat.com>
25393
25394         tests: be robust to ignored SIGPIPE
25395         * tests/test-select-in.sh: Consume all output.
25396         * tests/test-lseek.sh: Check correct exit status, while avoiding
25397         EPIPE.
25398
25399 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25400             Bruno Haible  <bruno@clisp.org>
25401
25402         visibility: Don't use -fvisibility if it leads to a warning.
25403         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25404         yes, don't pretend that visibility works if it leads to a warning.
25405         Reported by Mike Gran <spk121@yahoo.com>.
25406
25407 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25408
25409         * build-aux/bootstrap: Use "git -h" for testing for supported options
25410         instead of "git --help".  The short-form option only shows a summary,
25411         and doesn't layout the full man page.  Grep for the full option name
25412         in the summary, too.
25413
25414 2010-04-19  Bruno Haible  <bruno@clisp.org>
25415
25416         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25417         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25418         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25419         mention of RELOCATABLE_STRIP.
25420         Reported by Sylvain Beucler <beuc@beuc.net>.
25421
25422 2010-04-19  Bruno Haible  <bruno@clisp.org>
25423
25424         * lib/diffseq.h: Fix typo in comment.
25425         Reported by Eric Blake.
25426
25427 2010-04-19  Bruno Haible  <bruno@clisp.org>
25428
25429         ioctl: Move autoconf macro to a .m4 file.
25430         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25431         * modules/ioctl (Files): Add it.
25432         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25433         Reported by Ian Beckwith <ianb@erislabs.net>.
25434
25435 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25436             Bruno Haible  <bruno@clisp.org>
25437
25438         diffseq: Accommodate use-case with abstract arrays.
25439         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25440         is not defined.
25441         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25442         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25443
25444 2010-04-18  Bruno Haible  <bruno@clisp.org>
25445
25446         * doc/posix-headers/stdbool.texi: More precise wording.
25447
25448 2010-04-17  Jim Meyering  <meyering@redhat.com>
25449
25450         maint.mk: use gnu-style indentation in an embedded perl script
25451         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25452         Rename variable: s/two/last_two_bytes/
25453
25454 2010-04-16  Eric Blake  <eblake@redhat.com>
25455
25456         test-stdbool: skip test that fails with Solaris CC
25457         * tests/test-stdbool.c (f): Skip test that causes compilation
25458         error under buggy C++ compiler.
25459         * lib/stdbool.in.h: Document the limitation.
25460         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25461
25462         setenv: allow compilation with C++
25463         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25464         register keyword.
25465
25466         stdint: allow test to pass with C++
25467         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25468
25469         getopt: allow compilation with C++
25470         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25471         struct.
25472         * lib/getopt.c (_getopt_internal_r): Use correct type.
25473         Reported by Dagobert Michelson, via Joel E. Denny.
25474
25475 2010-04-16  Bruno Haible  <bruno@clisp.org>
25476
25477         Override netdb.h always.
25478         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25479         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25480         Reported by Ludovic Courtès <ludo@gnu.org>.
25481
25482 2010-04-15  Bruno Haible  <bruno@clisp.org>
25483
25484         openpty: Fix mistake from 2010-03-21.
25485         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25486         Reported by Simon Josefsson.
25487
25488 2010-04-15  Eric Blake  <eblake@redhat.com>
25489
25490         test-forkpty: fix expected signature
25491         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25492         Reported by Simon Josefsson.
25493
25494 2010-04-15  Jim Meyering  <meyering@redhat.com>
25495
25496         maint.mk: texinfo_suffix_re_: correct the default regexp
25497         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25498
25499         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25500         make it configurable via texinfo_suffix_re_.
25501
25502 2010-04-14  Eric Blake  <eblake@redhat.com>
25503
25504         strtok_r: relax license to LGPLv2+
25505         * modules/strtok_r (License): Relax license.
25506         Reported by Matthias Bolte.
25507
25508 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25509
25510         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25511         version 1.4.4 by default instead of requiring the libgcrypt
25512         version used during build.  This makes it possible to use the
25513         application with older but still binary compatible libgcrypt
25514         versions.
25515
25516 2010-04-13  Eric Blake  <eblake@redhat.com>
25517
25518         getopt-gnu: match recent glibc fixes and posix ruling
25519         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25520         '+' handling, when requesting extensions.
25521         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25522         'W;' handling.
25523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25524         * doc/posix-functions/getopt.texi (getopt): Document this.
25525         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25527         Likewise.
25528
25529         getopt: merge bug fixes from glibc
25530         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25531         diagnostics.  Honor '+:' correctly.  Reject ';'.
25532
25533         getopt-posix: detect MacOS bug
25534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25535         optind when missing a required argument.
25536         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25537         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25538         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25539         Likewise.
25540
25541         getopt-posix: avoid spurious failure on Solaris
25542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25543         an indicator that setting optind=1 is sufficient for reset.
25544
25545         getopt-posix: avoid spurious failure on FreeBSD
25546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25547         in POSIX mode, since the m4 test uses it.
25548
25549         gnulib-tool: silence warning on BSD sh
25550         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25551
25552 2010-04-13  Jim Meyering  <meyering@redhat.com>
25553
25554         doc: users.txt: GNU patch now uses gnulib
25555         * users.txt: Add patch.
25556
25557 2010-04-12  Jim Meyering  <meyering@redhat.com>
25558
25559         maint.mk: generate more concise timing data for syntax-check rules
25560         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25561         " done" from each line that reports a syntax-check test duration.
25562
25563 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25564
25565         git-version-gen: use "git update-index..." rather than "git status"
25566         * build-aux/git-version-gen: Use git update-index --refresh, not
25567         "git status".  With some versions of git, "git status" would fail
25568         to update the index and result in an unwarranted "-dirty" suffix.
25569
25570 2010-04-11  Jim Meyering  <meyering@redhat.com>
25571
25572         openat: correct formatting (no semantic change)
25573         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25574         Suggested by Bruno Haible.
25575
25576 2010-04-11  Bruno Haible  <bruno@clisp.org>
25577
25578         Stricter declaration checking in testdirs.
25579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25580         If for_tests is true, augment AM_CPPFLAGS to define
25581         GNULIB_STRICT_CHECKING.
25582         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25583         GNULIB_STRICT_CHECKING is defined, verify that the function is
25584         declared.
25585
25586 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25587             Bruno Haible  <bruno@clisp.org>
25588
25589         libunistring: Improve configure output.
25590         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25591         Don't say "consider installing GNU libunistring" when checking again
25592         with libiconv.
25593
25594 2010-04-11  Bruno Haible  <bruno@clisp.org>
25595
25596         libunistring: Correct value of $LTLIBUNISTRING.
25597         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25598         correct the value of $LTLIBUNISTRING.
25599
25600 2010-04-11  Bruno Haible  <bruno@clisp.org>
25601
25602         havelib: Add static libraries to LIBS in the right order.
25603         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25604         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25605
25606 2010-04-11  Bruno Haible  <bruno@clisp.org>
25607
25608         libunistring: Detect libunistring also when it depends on libiconv.
25609         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25610         the second AC_LIB_HAVE_LINKFLAGS invocation.
25611
25612 2010-04-11  James Youngman  <jay@gnu.org>
25613
25614         close-stream: declare local scalars to be "const"
25615         * lib/close-stream.c (close_stream): Make boolean variables const
25616         to document the fact that we set but do not change them.
25617
25618 2010-04-11  Bruno Haible  <bruno@clisp.org>
25619
25620         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25621
25622 2010-04-11  Jim Meyering  <meyering@redhat.com>
25623
25624         maint.mk: don't include dist-check.mk
25625         * top/maint.mk: Remove bogus include directive.
25626
25627         maint.mk: improve empty-line-at-EOF check
25628         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25629         solution, rather than tail+Perl-based one.  The latter would read
25630         a few kilobytes from the end of each file, and did not handle empty
25631         files properly.
25632
25633         maint.mk: print the elapsed time for each syntax-check rule
25634         * top/maint.mk (sc_m_rules_): Save start time in a file.
25635         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25636         (local-check): Interpose the .z rules
25637
25638 2010-04-11  Jim Meyering  <meyering@redhat.com>
25639
25640         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25641         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25642         empty file with one that ends in an empty line.
25643
25644 2010-04-10  Bruno Haible  <bruno@clisp.org>
25645
25646         mkdir: Make it work on mingw64.
25647         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25648         * lib/mkdir.c: Update comment.
25649         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25650
25651 2010-04-10  Bruno Haible  <bruno@clisp.org>
25652
25653         Don't override improved macro from newer autoconf.
25654         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25655         autoconf >= 2.62.
25656         Reported by Joel E. Denny <jdenny@clemson.edu>.
25657
25658 2010-04-10  Jim Meyering  <meyering@redhat.com>
25659
25660         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25661         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25662
25663         maint.mk: correct a diagnostic
25664         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25665         in diagnostic; now use $prohibit.
25666
25667 2010-04-10  Bruno Haible  <address@hidden>
25668
25669         fchownat: Fix a C++ test error on Solaris 8.
25670         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25671         the function does not exist.
25672
25673 2010-04-10  Bruno Haible  <bruno@clisp.org>
25674
25675         vasnprintf: Add more tests.
25676         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25677         (test_function): Test converting an invalid wide string.
25678
25679         vasnprintf: Correct handling of unconvertible wide string arguments.
25680         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25681         VASNPRINTF.
25682         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25683         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25684         smaller than the expected maximum need for the directive. Set errno to
25685         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25686         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25688         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25689         * modules/vasnprintf (Files): Add m4/printf.m4.
25690         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25691
25692 2010-04-10  Bruno Haible  <bruno@clisp.org>
25693
25694         vasnprintf: Fix crash in %ls directive.
25695         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25696         string is passed as argument to %ls, with no precision and no width.
25697         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25698
25699 2010-04-10  Bruno Haible  <bruno@clisp.org>
25700
25701         vasnprintf: Fix multiple test failures on mingw.
25702         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25703         _snprintf, or snwprintf, not _snwprintf.
25704
25705 2010-04-10  Bruno Haible  <bruno@clisp.org>
25706
25707         write: Fix a C++ test error on mingw.
25708         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25709
25710 2010-04-10  Bruno Haible  <bruno@clisp.org>
25711
25712         vasnprintf test: Reduce code duplication.
25713         * tests/test-vasnprintf.c (test_function): New function, extracted from
25714         test_vasnprintf.
25715         (test_vasnprintf, test_asnprintf): Invoke it.
25716
25717 2010-04-10  Bruno Haible  <bruno@clisp.org>
25718
25719         strnlen: Fix warning in C++ mode on MacOS X.
25720         * lib/string.in.h (strnlen): Use the modern idiom.
25721         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25722         defining strnlen as a macro already in <config.h>.
25723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25724         REPLACE_STRNLEN.
25725         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25726         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25727
25728 2010-04-08  James Youngman  <jay@gnu.org>
25729
25730         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25731         the example.
25732
25733 2010-04-09  Jim Meyering  <meyering@redhat.com>
25734
25735         maint.mk: print better diagnostic when there is no $(_hv_file)
25736         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25737         announce that when $(_hv_file) (aka help-version) does not exist.
25738
25739         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25740         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25741         not try to interpret its random input bytes.  Jarno Rajahalme reported
25742         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25743         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25744         (mktempd_): Likewise, just in case.
25745
25746         ftruncate: add two years to projected module removal date: 2012
25747         * m4/ftruncate.m4: Adjust comments.
25748
25749         ftruncate: mark module as obsolete; even MinGW provides it, now
25750         * modules/ftruncate (Status): Obsolete.
25751         (Notice): Say that.
25752         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25753         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25754
25755 2010-04-08  Bruno Haible  <bruno@clisp.org>
25756
25757         Fix side effects from tests-related modules.
25758         * modules/dprintf-posix (Comment): New section.
25759         * modules/fprintf-posix (Comment): Likewise.
25760         * modules/obstack-printf-posix (Comment): Likewise.
25761         * modules/printf-posix (Comment): Likewise.
25762         * modules/snprintf-posix (Comment): Likewise.
25763         * modules/sprintf-posix (Comment): Likewise.
25764         * modules/vasnprintf-posix (Comment): Likewise.
25765         * modules/vasprintf-posix (Comment): Likewise.
25766         * modules/vdprintf-posix (Comment): Likewise.
25767         * modules/vfprintf-posix (Comment): Likewise.
25768         * modules/vprintf-posix (Comment): Likewise.
25769         * modules/vsnprintf-posix (Comment): Likewise.
25770         * modules/vsprintf-posix (Comment): Likewise.
25771         * modules/xprintf-posix (Comment): Likewise.
25772         * modules/xvasprintf-posix (Comment): Likewise.
25773         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25774         * modules/floorf-tests (Depends-on): Likewise.
25775         * modules/round-tests (Depends-on): Likewise.
25776         * modules/roundf-tests (Depends-on): Likewise.
25777         * modules/trunc-tests (Depends-on): Likewise.
25778         * modules/truncf-tests (Depends-on): Likewise.
25779         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25780         'fprintf-posix' module is not present.
25781         * tests/test-floorf2.c (check): Likewise.
25782         * tests/test-trunc2.c (check): Likewise.
25783         * tests/test-truncf2.c (check): Likewise.
25784         * tests/test-round2.c (equal): Likewise.
25785         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25786
25787 2010-04-07  Karl Berry  <karl@gnu.org>
25788
25789         * config/srclist.txt,
25790         * config/srclistvars.sh,
25791         * config/srclist-update: doc fixes.
25792
25793 2010-04-07  Jim Meyering  <meyering@redhat.com>
25794
25795         maint.mk: add a PATH crosschecking syntax-check rule
25796         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25797         Useful if you use a test like the one in help-version (coreutils,
25798         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25799         printed by prog --version.
25800
25801 2010-04-06  Bruno Haible  <bruno@clisp.org>
25802
25803         Fix link error on mingw.
25804         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25805         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25806
25807 2010-04-06  Bruno Haible  <bruno@clisp.org>
25808
25809         Assume rmdir exists.
25810         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25811
25812 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25813
25814         doc: update users.txt
25815         * users.txt: Add gcal.
25816
25817 2010-04-06  Jim Meyering  <meyering@redhat.com>
25818
25819         init.sh: simply unset TMPDIR rather than risking env -i
25820         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25821         although it probably works fine on all Unix-based systems, some
25822         systems (Cygwin?) cannot tolerate a totally cleared environment.
25823         Suggestion from Eric Blake.
25824
25825 2010-04-06  Jim Meyering  <meyering@redhat.com>
25826
25827         init.sh: portability fix: use env's POSIX-specified -i option not -u
25828         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25829         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25830
25831 2010-04-05  Bruno Haible  <bruno@clisp.org>
25832
25833         btowc: Work around Cygwin 1.7.2 bug.
25834         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25835         does not map NUL to 0.
25836         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25837
25838 2010-04-05  Bruno Haible  <bruno@clisp.org>
25839
25840         Make the multithread modules work on Cygwin 1.7.2.
25841         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25842         imported symbols can be declared weak, so that it returns "no" on
25843         Cygwin 1.7.2.
25844
25845 2010-04-05  Bruno Haible  <bruno@clisp.org>
25846
25847         Use the module 'strncat'.
25848         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25849
25850         Tests for module 'strncat'.
25851         * modules/strncat-tests: New file.
25852         * tests/test-strncat.c: New file.
25853
25854         New module 'strncat'.
25855         * lib/string.in.h (strncat): New declaration.
25856         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25857         * m4/strncat.m4: New file, based on m4/memchr.m4.
25858         * modules/strncat: New file.
25859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25860         is declared.
25861         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25862         REPLACE_STRNCAT.
25863         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25864         REPLACE_STRNCAT.
25865         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25866         module.
25867         * tests/test-string-c++.cc: Check signature of strncat.
25868
25869 2010-04-05  Jim Meyering  <meyering@redhat.com>
25870
25871         xstrtoumax-tests: convert to use init.sh
25872         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25873         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25874         Use Exit, not exit.
25875         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25876
25877         xstrtoimax-tests: convert to use init.sh
25878         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25879         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25880         Use Exit, not exit.
25881         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25882
25883 2010-04-05  Bruno Haible  <bruno@clisp.org>
25884
25885         sys_socket: Avoid #define replacements in C++ mode.
25886         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25887         warning to the function if possible, rather than #defining the symbol
25888         to a dysfunctional alias.
25889
25890 2010-04-05  Bruno Haible  <bruno@clisp.org>
25891
25892         fseeko: Fix C++ test error on mingw.
25893         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25894         gl_FUNC_FSEEKO.
25895         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25896         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25898         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25899
25900 2010-04-05  Bruno Haible  <bruno@clisp.org>
25901
25902         duplocale: Improve test output.
25903         * tests/test-duplocale.c (main): Print reason for skipped test.
25904
25905 2010-04-05  Bruno Haible  <bruno@clisp.org>
25906
25907         Assume rmdir exists.
25908         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25909         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25910
25911 2010-04-05  Bruno Haible  <bruno@clisp.org>
25912
25913         Fix link error on Solaris 8 with cc.
25914         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25915
25916 2010-04-05  Bruno Haible  <bruno@clisp.org>
25917
25918         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25919         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25920
25921 2010-04-05  Bruno Haible  <bruno@clisp.org>
25922
25923         vasprintf: Update documentation.
25924         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25925
25926 2010-04-05  Bruno Haible  <bruno@clisp.org>
25927
25928         ptsname: Improve test.
25929         * tests/test-ptsname.c (main): Also try the various master names of BSD
25930         systems.
25931
25932 2010-04-05  Bruno Haible  <bruno@clisp.org>
25933
25934         memchr: Avoid a possible C++ test error.
25935         * lib/string.in.h (memchr): Provide declaration if function is missing.
25936         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25937         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25939         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25940
25941 2010-04-05  Bruno Haible  <bruno@clisp.org>
25942
25943         strtok_r: Improve idiom.
25944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25945         AC_LIBOBJ is used.
25946
25947 2010-04-05  Bruno Haible  <bruno@clisp.org>
25948
25949         strdup: Improve idiom.
25950         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25951         AC_LIBOBJ is used.
25952         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25953         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25954         when AC_LIBOBJ is used.
25955
25956 2010-04-05  Bruno Haible  <bruno@clisp.org>
25957
25958         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25959         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25960         don't set REPLACE_MBSINIT to 1.
25961         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25962         don't set REPLACE_MBRTOWC to 1.
25963         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25964         exist, don't set REPLACE_MBSRTOWCS to 1.
25965         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25966         exist, don't set REPLACE_MBSNRTOWCS to 1.
25967         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25968         don't set REPLACE_WCRTOMB to 1.
25969         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25970         exist, don't set REPLACE_WCSRTOMBS to 1.
25971         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25972         exist, don't set REPLACE_WCSNRTOMBS to 1.
25973
25974 2010-04-05  Bruno Haible  <bruno@clisp.org>
25975
25976         ldexpl: Improve idiom.
25977         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25978         make sure to set HAVE_DECL_LDEXPL to 0.
25979
25980 2010-04-05  Jim Meyering  <meyering@redhat.com>
25981
25982         xstrtol-tests: convert to use init.sh
25983         * modules/xstrtol-tests (Files): Add tests/init.sh.
25984         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25985         Use Exit, not exit.
25986         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25987
25988         atexit-tests: convert to use init.sh
25989         * modules/atexit-tests (Files): Add tests/init.sh.
25990         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25991         Use Exit, not exit.
25992         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25993
25994         init.sh: fix typo
25995         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25996
25997         init.sh: make it easier for a test script to write to the tty, ...
25998         when using automake's parallel-tests mode.
25999         * tests/init.sh (stderr_fileno_): Define overridable variable.
26000         (warn_): New function, to use it.
26001         (fail_, skip_, framework_failure_): Use warn_.
26002
26003 2010-04-04  Bruno Haible  <bruno@clisp.org>
26004
26005         btowc: Avoid warning.
26006         * lib/btowc.c: Include <stdlib.h>.
26007         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26008
26009 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26010             Bruno Haible  <bruno@clisp.org>
26011
26012         wchar: Port to NetBSD 1.5.
26013         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26014         * lib/wctype.in.h (WEOF): Likewise.
26015
26016 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26017             Bruno Haible  <bruno@clisp.org>
26018
26019         Port extended stdio to NetBSD 1.5.
26020         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26021         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26022         older.
26023
26024 2010-04-04  Bruno Haible  <bruno@clisp.org>
26025
26026         string: Remove unused substitution.
26027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26028         HAVE_DECL_STRERROR.
26029         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26030
26031 2010-04-04  Bruno Haible  <bruno@clisp.org>
26032
26033         strtod: Avoid a possible C++ test error.
26034         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26035         set REPLACE_STRTOD.
26036
26037 2010-04-04  Bruno Haible  <bruno@clisp.org>
26038
26039         strerror: Update documentation.
26040         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26041
26042 2010-04-04  Bruno Haible  <bruno@clisp.org>
26043
26044         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26045         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26046         _GL_CXXALIAS_SYS_CAST.
26047
26048 2010-04-04  Bruno Haible  <bruno@clisp.org>
26049
26050         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26051         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26052         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26053         REPLACE_FREXPL to 1.
26054         * doc/posix-functions/frexpl.texi: Update documentation.
26055
26056 2010-04-04  Bruno Haible  <bruno@clisp.org>
26057
26058         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26059         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26060
26061 2010-04-04  Bruno Haible  <bruno@clisp.org>
26062
26063         Implement nanosleep for native Windows.
26064         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26065
26066 2010-04-04  Bruno Haible  <bruno@clisp.org>
26067
26068         math: Fix some C++ test errors on Solaris 8.
26069         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26070
26071 2010-04-04  Bruno Haible  <bruno@clisp.org>
26072
26073         math: Fix some C++ test errors on Cygwin.
26074         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26075         truncl): Provide declaration if the system does not have it.
26076         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26077         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26078         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26079         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26080         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26081         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26082         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26083         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26084         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26085         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26086         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26087         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26088         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26089         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26090         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26091         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26093         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26094         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26095         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26096         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26097         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26098
26099 2010-04-04  Bruno Haible  <bruno@clisp.org>
26100
26101         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26102         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26103         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26104         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26105         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26106         * m4/isinf.m4 (gl_ISINF): Likewise.
26107         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26108
26109 2010-04-04  Bruno Haible  <bruno@clisp.org>
26110
26111         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26112         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26113
26114 2010-04-04  Bruno Haible  <bruno@clisp.org>
26115
26116         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26117         * modules/tmpfile (configure.ac): Update.
26118
26119         tmpfile: Fix C++ test error on mingw.
26120         * lib/stdio.in.h (tmpfile): New declaration.
26121         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26122         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26123         * modules/tmpfile (Depends-on): Add stdio.
26124         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26125         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26126         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26127         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26128         REPLACE_TMPFILE.
26129         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26130
26131 2010-04-04  Bruno Haible  <bruno@clisp.org>
26132
26133         ioctl: Fix C++ test error on mingw.
26134         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26135         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26136         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26137
26138 2010-04-03  Bruno Haible  <bruno@clisp.org>
26139
26140         wcwidth: Fix C++ test error on mingw.
26141         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26143         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26144
26145 2010-04-03  Bruno Haible  <bruno@clisp.org>
26146
26147         nanosleep: Fix C++ test error on mingw.
26148         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26149         * lib/time.in.h (nanosleep): Use modern idiom.
26150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26151         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26152         REPLACE_NANOSLEEP to 1.
26153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26154         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26155
26156 2010-04-03  Bruno Haible  <bruno@clisp.org>
26157
26158         strptime: Fix C++ test error on mingw.
26159         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26160         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26161         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26162         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26164         not REPLACE_STRPTIME.
26165         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26166         REPLACE_STRPTIME.
26167
26168 2010-04-03  Bruno Haible  <bruno@clisp.org>
26169
26170         timegm: Fix C++ test error on mingw.
26171         * lib/time.in.h (timegm): Use modern idiom.
26172         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26173         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26174         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26175         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26176
26177 2010-04-03  Bruno Haible  <bruno@clisp.org>
26178
26179         timegm: Assume declaration if function exists.
26180         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26181         if it exists. Don't clobber ac_cv_func_timegm.
26182
26183 2010-04-03  Bruno Haible  <bruno@clisp.org>
26184
26185         time_r: Fix C++ test error on mingw.
26186         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26187         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26188         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26189         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26190         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26191
26192 2010-04-03  Bruno Haible  <bruno@clisp.org>
26193
26194         time_r: Minor updates.
26195         * modules/time_r (Description): Mention the provided functions.
26196         * lib/time_r.c: Don't include <string.h>.
26197         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26198         * doc/posix-functions/localtime_r.texi: Likewise.
26199
26200 2010-04-03  Bruno Haible  <bruno@clisp.org>
26201
26202         time: Fix regression introduced on 2010-03-08.
26203         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26204         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26205
26206 2010-04-03  Jim Meyering  <meyering@redhat.com>
26207
26208         maint.mk: don't silently disable project-specific syntax-check rules
26209         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26210         that they need to convert their project-specific syntax-check rules
26211         to use the new _sc_search_regexp.
26212
26213 2010-04-03  Bruno Haible  <bruno@clisp.org>
26214
26215         fchdir: Fix regression introduced on 2010-03-08.
26216         * lib/unistd.in.h (fchdir): Fix declaration.
26217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26219         REPLACE_FCHDIR.
26220         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26221         REPLACE_FCHDIR.
26222
26223 2010-04-03  Bruno Haible  <bruno@clisp.org>
26224
26225         getpagesize: Fix C++ test error on mingw.
26226         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26227         system does not declare the function.
26228         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26229         declared.
26230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26231         HAVE_DECL_GETPAGESIZE.
26232         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26233
26234 2010-04-03  Bruno Haible  <bruno@clisp.org>
26235
26236         stdio: Make C++ tests work on mingw.
26237         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26238         does not declare the function.
26239
26240 2010-04-03  Bruno Haible  <bruno@clisp.org>
26241
26242         ftello: Fix C++ test error on mingw.
26243         * lib/stdio.in.h (ftello): Use modern idiom.
26244         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26245         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26246         is missing and that it needs to be replaced.
26247         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26249         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26250
26251 2010-04-03  Bruno Haible  <bruno@clisp.org>
26252
26253         fseeko: Fix C++ test error on mingw.
26254         * lib/stdio.in.h (fseeko): Use modern idiom.
26255         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26257         is missing and that it needs to be replaced.
26258         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26260         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26261
26262 2010-04-03  Bruno Haible  <bruno@clisp.org>
26263
26264         mkstemp: Fix C++ test error on mingw.
26265         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26267         function is missing and that it needs to be replaced.
26268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26269         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26270
26271 2010-04-03  Bruno Haible  <bruno@clisp.org>
26272
26273         stpncpy: Fix C++ test error on mingw.
26274         * lib/string.in.h (stpncpy): Use modern idiom.
26275         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26276         function is missing and that it needs to be replaced.
26277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26278         REPLACE_STPNCPY.
26279         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26280
26281 2010-04-03  Bruno Haible  <bruno@clisp.org>
26282
26283         sys_stat: Fix C++ test error on mingw.
26284         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26285         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26286
26287 2010-04-03  Bruno Haible  <bruno@clisp.org>
26288
26289         pty: Update doc.
26290         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26291
26292 2010-04-03  Bruno Haible  <bruno@clisp.org>
26293
26294         unistd: Fix C++ test error on mingw.
26295         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26296
26297 2010-04-03  Bruno Haible  <bruno@clisp.org>
26298
26299         Update doc regarding mingw.
26300         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26301         * doc/glibc-functions/login_tty.texi: Likewise.
26302         * doc/glibc-functions/forkpty.texi: Likewise.
26303
26304 2010-04-03  Bruno Haible  <bruno@clisp.org>
26305
26306         stdlib: Avoid compilation failure of c-strtold on mingw.
26307         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26308
26309 2010-04-03  Bruno Haible  <bruno@clisp.org>
26310
26311         locale: Make C++ tests work on Cygwin and mingw.
26312         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26313         cannot provide the function.
26314         Reported by Simon Josefsson.
26315
26316 2010-04-03  Bruno Haible  <bruno@clisp.org>
26317
26318         localename: Port to MacOS X 10.6.
26319         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26320         memory layout of the locales in MacOS X 10.6 as well.
26321         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26322
26323 2010-04-02  Bruno Haible  <bruno@clisp.org>
26324
26325         gnulib-tool: Ensure that long-running tests are executed last.
26326         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26327         running tests after the one for the other tests.
26328
26329 2010-04-02  Bruno Haible  <bruno@clisp.org>
26330
26331         gnulib-tool: Ensure the tests in the main directory are executed first.
26332         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26333         start with the current directory.
26334
26335 2010-04-02  Bruno Haible  <bruno@clisp.org>
26336
26337         Tests for module 'havelib', moved here from GNU gettext.
26338         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26339         modifications.
26340         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26341         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26342         with modifications.
26343         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26344         modifications.
26345         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26346         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26347         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26348         with modifications.
26349         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26350         with modifications.
26351         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26352         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26353         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26354         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26355         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26356         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26357         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26358         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26359         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26360         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26361         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26362         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26363         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26364         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26365         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26366         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26367         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26368         with modifications.
26369         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26370         with modifications.
26371         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26372         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26373         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26374         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26375         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26376         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26377         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26378         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26379         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26380         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26381         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26382         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26383         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26384         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26385         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26386         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26387         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26388         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26389         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26390         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26391         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26392         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26393         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26394         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26395         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26396         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26397         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26398         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26399         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26400         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26401         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26402         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26403         * tests/havelib/rpathx/rpathx.c: New file, from
26404         gettext/autoconf-lib-link.
26405         * tests/havelib/rpathx/Makefile.am: New file, from
26406         gettext/autoconf-lib-link.
26407         * tests/havelib/rpathx/configure.ac: New file, from
26408         gettext/autoconf-lib-link with modifications.
26409         * tests/havelib/rpathy/rpathy.c: New file, from
26410         gettext/autoconf-lib-link.
26411         * tests/havelib/rpathy/Makefile.am: New file, from
26412         gettext/autoconf-lib-link.
26413         * tests/havelib/rpathy/configure.ac: New file, from
26414         gettext/autoconf-lib-link with modifications.
26415         * tests/havelib/rpathz/rpathz.c: New file, from
26416         gettext/autoconf-lib-link.
26417         * tests/havelib/rpathz/Makefile.am: New file, from
26418         gettext/autoconf-lib-link.
26419         * tests/havelib/rpathz/configure.ac: New file, from
26420         gettext/autoconf-lib-link with modifications.
26421         * tests/havelib/rpathlx/usex.c: New file, from
26422         gettext/autoconf-lib-link.
26423         * tests/havelib/rpathlx/Makefile.am: New file, from
26424         gettext/autoconf-lib-link.
26425         * tests/havelib/rpathlx/configure.ac: New file, from
26426         gettext/autoconf-lib-link with modifications.
26427         * tests/havelib/rpathly/usey.c: New file, from
26428         gettext/autoconf-lib-link.
26429         * tests/havelib/rpathly/Makefile.am: New file, from
26430         gettext/autoconf-lib-link.
26431         * tests/havelib/rpathly/configure.ac: New file, from
26432         gettext/autoconf-lib-link with modifications.
26433         * tests/havelib/rpathlz/usez.c: New file, from
26434         gettext/autoconf-lib-link.
26435         * tests/havelib/rpathlz/Makefile.am: New file, from
26436         gettext/autoconf-lib-link.
26437         * tests/havelib/rpathlz/configure.ac: New file, from
26438         gettext/autoconf-lib-link with modifications.
26439         * tests/havelib/rpathlyx/usey.c: New file, from
26440         gettext/autoconf-lib-link.
26441         * tests/havelib/rpathlyx/Makefile.am: New file, from
26442         gettext/autoconf-lib-link.
26443         * tests/havelib/rpathlyx/configure.ac: New file, from
26444         gettext/autoconf-lib-link with modifications.
26445         * tests/havelib/rpathlzyx/usez.c: New file, from
26446         gettext/autoconf-lib-link.
26447         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26448         gettext/autoconf-lib-link.
26449         * tests/havelib/rpathlzyx/configure.ac: New file, from
26450         gettext/autoconf-lib-link with modifications.
26451         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26452         with modifications.
26453
26454 2010-04-02  Bruno Haible  <bruno@clisp.org>
26455
26456         gnulib-tool: Create distributed built sources also for the tests.
26457         * gnulib-tool (func_create_testdir): Also generate distributed built
26458         sources in the tests directory.
26459
26460 2010-04-02  Bruno Haible  <bruno@clisp.org>
26461
26462         gnulib-tool: Obey user's environment variables.
26463         * gnulib-tool (func_create_testdir): When creating built sources,
26464         respect the environment variables for autoconf, automake, etc. given by
26465         the user.
26466
26467 2010-04-02  Bruno Haible  <bruno@clisp.org>
26468
26469         gnulib-tool: Provide the value of --m4-base to modules.
26470         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26471         of gl_m4_base.
26472
26473 2010-04-02  Eric Blake  <eblake@redhat.com>
26474
26475         maint.mk: fix some fallout
26476         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26477         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26478
26479 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26480
26481         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26482         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26483         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26484         (sc_cast_of_x_alloc_return_value): Likewise.
26485         (sc_cast_of_alloca_return_value): Likewise.
26486         (sc_space_tab): Likewise.
26487         (sc_prohibit_atoi_atof): Likewise.
26488         (sc_prohibit_magic_number_exit): Likewise.
26489         (sc_error_exit_success): Likewise.
26490         (sc_file_system): Likewise.
26491         (sc_prohibit_have_config_h): Likewise.
26492         (sc_require_config_h): Likewise.
26493         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26494         (sc_obsolete_symbols): Likewise.
26495         (sc_changelog): Likewise.
26496         (sc_program_name): Likewise.
26497         (sc_the_the): Likewise.
26498         (sc_trailing_blank): Likewise.
26499         (sc_two_space_separator_in_usage): Likewise.
26500         (sc_useless_cpp_parens): Likewise.
26501         (sc_GPL_version): Likewise.
26502         (sc_GFDL_version): Likewise.
26503         (sc_texinfo_acronym): Likewise.
26504         (sc_prohibit_cvs_keyword): Likewise.
26505         (sc_prohibit_stat_st_blocks): Likewise.
26506         (sc_prohibit_S_IS_definition): Likewise.
26507         (sc_redundant_const): Likewise.
26508         (sc_makefile_TAB_only_indentation): Likewise.
26509         (sc_m4_quote_check): Likewise.
26510         (sc_makefile_path_separator_check): Likewise.
26511         (sc_copyright_check): Likewise.
26512         (sc_Wundef_boolean): Likewise.
26513         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26514
26515         maint.mk: match 0 or more whitespace-before-function-call '('
26516         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26517         that have zero or two-and-more spaces between the function name
26518         and the open parenthesis.
26519         (sc_error_message_warn_fatal): Likewise.
26520         (sc_error_message_uppercase): Likewise.
26521         (sc_error_message_period): Likewise.
26522
26523 2010-03-31  Eric Blake  <eblake@redhat.com>
26524
26525         maint.mk: check for [ as well as test
26526         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26527         Based on a libvirt report by Matthias Bolte.
26528
26529         gnumakefile: don't squelch _version output
26530         * top/GNUmakefile (_version): Create one-shot dependency rather
26531         than using $(shell) when version must be regenerated.
26532         (_autoreconf): Run verbosely, by default.
26533
26534         sys_time: avoid compiler warnings
26535         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26536         unconditional, fixing regression from 2010-03-29.
26537         Reported by Simon Josefsson.
26538
26539 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26540
26541         maint.mk: s/_header_without_use/_sc_header_without_use/
26542         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26543         (sc_prohibit_assert_without_use): Use the new name.
26544         (sc_prohibit_close_stream_without_use): Likewise.
26545         (sc_prohibit_getopt_without_use): Likewise.
26546         (sc_prohibit_quotearg_without_use): Likewise.
26547         (sc_prohibit_quote_without_use): Likewise.
26548         (sc_prohibit_long_options_without_use): Likewise.
26549         (sc_prohibit_inttostr_without_use): Likewise.
26550         (sc_prohibit_ignore_value_without_use): Likewise.
26551         (sc_prohibit_error_without_use): Likewise.
26552         (sc_prohibit_xalloc_without_use): Likewise.
26553         (sc_prohibit_hash_without_use): Likewise.
26554         (sc_prohibit_hash_pjw_without_use): Likewise.
26555         (sc_prohibit_safe_read_without_use): Likewise.
26556         (sc_prohibit_argmatch_without_use): Likewise.
26557         (sc_prohibit_canonicalize_without_use): Likewise.
26558         (sc_prohibit_root_dev_ino_without_use): Likewise.
26559         (sc_prohibit_openat_without_use): Likewise.
26560         (sc_prohibit_c_ctype_without_use): Likewise.
26561         (sc_prohibit_signal_without_use): Likewise.
26562         (sc_prohibit_intprops_without_use): Likewise.
26563
26564 2010-03-30  Eric Blake  <eblake@redhat.com>
26565
26566         maint: improve module indicators
26567         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26568         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26569         columns, and avoid extra macro expansion.
26570
26571         fdopendir: work around FreeBSD bug
26572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26574         * modules/dirent (Makefile.am): Substitute it.
26575         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26576         declaration.
26577         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26578         fix.
26579         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26580
26581 2010-03-29  Bruno Haible  <bruno@clisp.org>
26582
26583         Emit #pragma system_header after the inclusion guard, not before.
26584         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26585         guard that spans the entire file, not before. This enables an
26586         optimization in GCC's preprocessor.
26587         * lib/ctype.in.h: Likewise.
26588         * lib/dirent.in.h: Likewise.
26589         * lib/errno.in.h: Likewise.
26590         * lib/float.in.h: Likewise.
26591         * lib/getopt.in.h: Likewise.
26592         * lib/iconv.in.h: Likewise.
26593         * lib/langinfo.in.h: Likewise.
26594         * lib/locale.in.h: Likewise.
26595         * lib/math.in.h: Likewise.
26596         * lib/netdb.in.h: Likewise.
26597         * lib/netinet_in.in.h: Likewise.
26598         * lib/pty.in.h: Likewise.
26599         * lib/sched.in.h: Likewise.
26600         * lib/se-selinux.in.h: Likewise.
26601         * lib/search.in.h: Likewise.
26602         * lib/spawn.in.h: Likewise.
26603         * lib/stdarg.in.h: Likewise.
26604         * lib/stdint.in.h: Likewise.
26605         * lib/string.in.h: Likewise.
26606         * lib/strings.in.h: Likewise.
26607         * lib/sys_file.in.h: Likewise.
26608         * lib/sys_ioctl.in.h: Likewise.
26609         * lib/sys_time.in.h: Likewise.
26610         * lib/sys_times.in.h: Likewise.
26611         * lib/sys_utsname.in.h: Likewise.
26612         * lib/sys_wait.in.h: Likewise.
26613         * lib/sysexits.in.h: Likewise.
26614         * lib/wctype.in.h: Likewise.
26615
26616 2010-03-28  James Youngman  <jay@gnu.org>
26617
26618         save-cwd: don't leak a file descriptor when the caller execs.
26619         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26620         saved file descriptor.
26621         * modules/save-cwd (Depends-on): Depend on cloexec.
26622
26623 2010-03-29  Bruno Haible  <bruno@clisp.org>
26624
26625         Remove vestiges of fts-lgpl module.
26626         * lib/fts_.h: Assume GNULIB_FTS is 1.
26627         * lib/fts.c: Likewise.
26628         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26629
26630 2010-03-28  Bruno Haible  <bruno@clisp.org>
26631
26632         Fix definition of tests witness macro.
26633         * gnulib-tool (func_import): Fix definition of witness macro.
26634
26635 2010-03-28  Bruno Haible  <bruno@clisp.org>
26636
26637         Fix ioctl's protoype on glibc systems.
26638         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26639         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26640         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26641         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26642         signature. If not, arrange to replace the ioctl function.
26643         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26644         REPLACE_IOCTL.
26645         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26646         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26647         Reported by Ludovic Courtès <ludo@gnu.org>.
26648
26649 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26650
26651         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26652         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26653         made it so grep -r --include=GLOB* ... did not work.
26654
26655 2010-03-26  Jim Meyering  <meyering@redhat.com>
26656             Eric Blake  <eblake@redhat.com>
26657
26658         maint.mk: prohibit use of test's -o and -a operators
26659         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26660
26661 2010-03-28  Bruno Haible  <bruno@clisp.org>
26662
26663         Remove unused GNULIB_XYZ macro definitions.
26664         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26665         invocation.
26666
26667 2010-03-28  Bruno Haible  <bruno@clisp.org>
26668
26669         Mark privileged tests modules.
26670         * modules/idpriv-drop-tests (Status): New section.
26671         * modules/idpriv-droptemp-tests (Status): New section.
26672
26673 2010-03-28  Bruno Haible  <bruno@clisp.org>
26674
26675         Split C++ tests into separate tests modules.
26676         * modules/dirent-c++-tests: New file, extracted from
26677         modules/dirent-tests.
26678         * modules/dirent-tests: Depend on it.
26679         * modules/fcntl-h-c++-tests: New file, extracted from
26680         modules/fcntl-h-tests.
26681         * modules/fcntl-h-tests: Depend on it.
26682         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26683         * modules/glob-tests: Depend on it.
26684         * modules/iconv-h-c++-tests: New file, extracted from
26685         modules/iconv-h-tests.
26686         * modules/iconv-h-tests: Depend on it.
26687         * modules/langinfo-c++-tests: New file, extracted from
26688         modules/langinfo-tests.
26689         * modules/langinfo-tests: Depend on it.
26690         * modules/locale-c++-tests: New file, extracted from
26691         modules/locale-tests.
26692         * modules/locale-tests: Depend on it.
26693         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26694         * modules/math-tests: Depend on it.
26695         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26696         * modules/pty-tests: Depend on it.
26697         * modules/search-c++-tests: New file, extracted from
26698         modules/search-tests.
26699         * modules/search-tests: Depend on it.
26700         * modules/signal-c++-tests: New file, extracted from
26701         modules/signal-tests.
26702         * modules/signal-tests: Depend on it.
26703         * modules/spawn-c++-tests: New file, extracted from
26704         modules/spawn-tests.
26705         * modules/spawn-tests: Depend on it.
26706         * modules/stdio-c++-tests: New file, extracted from
26707         modules/stdio-tests.
26708         * modules/stdio-tests: Depend on it.
26709         * modules/stdlib-c++-tests: New file, extracted from
26710         modules/stdlib-tests.
26711         * modules/stdlib-tests: Depend on it.
26712         * modules/string-c++-tests: New file, extracted from
26713         modules/string-tests.
26714         * modules/string-tests: Depend on it.
26715         * modules/sys_ioctl-c++-tests: New file, extracted from
26716         modules/sys_ioctl-tests.
26717         * modules/sys_ioctl-tests: Depend on it.
26718         * modules/sys_select-c++-tests: New file, extracted from
26719         modules/sys_select-tests.
26720         * modules/sys_select-tests: Depend on it.
26721         * modules/sys_socket-c++-tests: New file, extracted from
26722         modules/sys_socket-tests.
26723         * modules/sys_socket-tests: Depend on it.
26724         * modules/sys_stat-c++-tests: New file, extracted from
26725         modules/sys_stat-tests.
26726         * modules/sys_stat-tests: Depend on it.
26727         * modules/sys_time-c++-tests: New file, extracted from
26728         modules/sys_time-tests.
26729         * modules/sys_time-tests: Depend on it.
26730         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26731         * modules/time-tests: Depend on it.
26732         * modules/unistd-c++-tests: New file, extracted from
26733         modules/unistd-tests.
26734         * modules/unistd-tests: Depend on it.
26735         * modules/wchar-c++-tests: New file, extracted from
26736         modules/wchar-tests.
26737         * modules/wchar-tests: Depend on it.
26738         * modules/wctype-c++-tests: New file, extracted from
26739         modules/wctype-tests.
26740         * modules/wctype-tests: Depend on it.
26741         Reported by Simon Josefsson.
26742
26743 2010-03-28  Bruno Haible  <bruno@clisp.org>
26744
26745         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26746         * gnulib-tool (func_exists_module): New function, extracted from
26747         func_verify_module.
26748         (func_verify_module): Use it.
26749         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26750         'foo' only if 'foo' exists.
26751         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26752         module.
26753
26754 2010-03-28  Bruno Haible  <bruno@clisp.org>
26755
26756         gnulib-tool: Add support for special categories of tests.
26757         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26758         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26759         (func_usage): Document them.
26760         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26761         inc_unportable_tests, inc_all_tests): New variables.
26762         (func_acceptable): Consider these variables.
26763         (func_modules_transitive_closure): Make it work when the 'Status' field
26764         consists of multiple words.
26765         (func_import): Store and restore the values of inc_cxx_tests,
26766         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26767         inc_all_tests in gnulib-comp.m4.
26768         (func_create_testdir): Set inc_all_tests to true.
26769         * doc/gnulib.texi (Extra tests modules): New section.
26770         Suggested by Jim Meyering.
26771
26772 2010-03-28  Bruno Haible  <bruno@clisp.org>
26773
26774         ansi-c++-opt: Allow turning off the C++ build by default.
26775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26776         gl_CXX_CHOICE_DEFAULT_NO is defined.
26777         Requested by Eric Blake.
26778
26779 2010-03-28  Bruno Haible  <bruno@clisp.org>
26780
26781         unistd: Avoid #define replacements in C++ mode.
26782         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26783         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26784         setsockopt, shutdown, select): In C++, attach a warning to the function
26785         if possible, rather than #defining the symbol to a dysfunctional alias.
26786         Reported by John W. Eaton <jwe@gnu.org>.
26787
26788 2010-03-28  Bruno Haible  <bruno@clisp.org>
26789
26790         Fix link errors on mingw.
26791         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26792         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26793         $(LIBSOCKET).
26794         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26795         $(LIBSOCKET).
26796
26797 2010-03-28  Bruno Haible  <bruno@clisp.org>
26798             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26799
26800         lib-ignore: Determine different options for different compilers.
26801         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26802         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26803         Add comments.
26804         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26805         * NEWS: Mention the change.
26806
26807 2010-03-27  Bruno Haible  <bruno@clisp.org>
26808
26809         Remove unused GNULIB_XYZ macro definitions.
26810         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26811         * modules/fseek (configure.ac): Likewise.
26812         * modules/ioctl (configure.ac): Likewise.
26813         * modules/open (configure.ac): Likewise.
26814         * modules/stdlib-safer (configure.ac): Likewise.
26815
26816 2010-03-27  Bruno Haible  <bruno@clisp.org>
26817
26818         Add a remark about certain modules.
26819         * modules/malloc (Comment): New section.
26820         * modules/realloc (Comment): Likewise.
26821         * modules/sigpipe (Comment): Likewise.
26822
26823 2010-03-27  Bruno Haible  <bruno@clisp.org>
26824
26825         Resolve conflict between the two kinds of module indicators.
26826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26827         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26828         * modules/canonicalize (configure.ac): Invoke
26829         gl_MODULE_INDICATOR_FOR_TESTS.
26830         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26831         GNULIB_XYZ.
26832         * tests/test-dirent-c++.cc: Likewise.
26833         * tests/test-dirent-safer.c: Likewise.
26834         * tests/test-dup2.c: Likewise.
26835         * tests/test-fchdir.c: Likewise.
26836         * tests/test-fcntl-h-c++.cc: Likewise.
26837         * tests/test-getopt.c: Likewise.
26838         * tests/test-getopt.h: Likewise.
26839         * tests/test-langinfo-c++.cc: Likewise.
26840         * tests/test-locale-c++.cc: Likewise.
26841         * tests/test-math-c++.cc: Likewise.
26842         * tests/test-pty-c++.cc: Likewise.
26843         * tests/test-search-c++.cc: Likewise.
26844         * tests/test-signal-c++.cc: Likewise.
26845         * tests/test-spawn-c++.cc: Likewise.
26846         * tests/test-stdio-c++.cc: Likewise.
26847         * tests/test-stdlib-c++.cc: Likewise.
26848         * tests/test-string-c++.cc: Likewise.
26849         * tests/test-sys_ioctl-c++.cc: Likewise.
26850         * tests/test-sys_select-c++.cc: Likewise.
26851         * tests/test-sys_socket-c++.cc: Likewise.
26852         * tests/test-sys_stat-c++.cc: Likewise.
26853         * tests/test-sys_time-c++.cc: Likewise.
26854         * tests/test-time-c++.cc: Likewise.
26855         * tests/test-unistd-c++.cc: Likewise.
26856         * tests/test-wchar-c++.cc: Likewise.
26857         * tests/uninorm/test-u8-nfc.c: Likewise.
26858         * tests/uninorm/test-u8-nfd.c: Likewise.
26859         * tests/uninorm/test-u8-nfkc.c: Likewise.
26860         * tests/uninorm/test-u8-nfkd.c: Likewise.
26861         * tests/uninorm/test-u16-nfc.c: Likewise.
26862         * tests/uninorm/test-u16-nfd.c: Likewise.
26863         * tests/uninorm/test-u16-nfkc.c: Likewise.
26864         * tests/uninorm/test-u16-nfkd.c: Likewise.
26865         * tests/uninorm/test-u32-nfc.c: Likewise.
26866         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26867         * tests/uninorm/test-u32-nfd.c: Likewise.
26868         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26869         * tests/uninorm/test-u32-nfkc.c: Likewise.
26870         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26871         * tests/uninorm/test-u32-nfkd.c: Likewise.
26872         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26873         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26874
26875 2010-03-27  Bruno Haible  <bruno@clisp.org>
26876
26877         Distinguish two kinds of module indicators.
26878         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26879         gl_MODULE_INDICATOR.
26880         (gl_MODULE_INDICATOR): New macro.
26881         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26882         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26883         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26884         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26885         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26886         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26887         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26888         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26889         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26890         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26891         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26892         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26894         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26895         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26897         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26898         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26899         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26900         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26901         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26902         * modules/cloexec (configure.ac): Likewise.
26903         * modules/getopt-gnu (configure.ac): Likewise.
26904         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26905         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26906         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26907         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26908
26909 2010-03-27  Bruno Haible  <bruno@clisp.org>
26910
26911         New module description field 'Comment'.
26912         * gnulib-tool: New option --extract-comment.
26913         (func_usage): Document it.
26914         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26915         (func_get_comment): New function.
26916         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26917
26918 2010-03-27  Bruno Haible  <bruno@clisp.org>
26919
26920         Addendum to 2010-02-07 commit.
26921         * gnulib-tool (func_usage): Document --extract-applicability option.
26922
26923 2010-03-27  Bruno Haible  <bruno@clisp.org>
26924
26925         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26926         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26927         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26928         rather than link errors.
26929
26930 2010-03-27  Bruno Haible  <bruno@clisp.org>
26931
26932         Avoid side effects from tests-related modules on the compilation of lib.
26933         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26934         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26935         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26936         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26937         macro.
26938         (func_import): Define a witness macro. Assign it a value that depends
26939         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26940         tests-related modules.
26941         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26942         Reported by Jim Meyering.
26943
26944 2010-03-27  Bruno Haible  <bruno@clisp.org>
26945
26946         Factorize common .m4 code.
26947         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26948         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26949         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26950         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26951         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26952         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26953         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26954         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26955         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26956         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26957         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26958         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26959         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26960         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26961         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26962         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26963         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26964         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26966         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26967         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26968         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26969         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26970         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26971         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26972         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26973         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26974         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26975         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26976         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26977         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26978         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26979
26980 2010-03-27  Bruno Haible  <bruno@clisp.org>
26981
26982         Fix a compilation error on Cygwin with g++ >= 4.3.
26983         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26984         if it is undefined or if we alias it to chmod.
26985         (lstat): Don't warn about the use of this function if it is undefined
26986         or if we alias it to stat.
26987         Reported by Simon Josefsson.
26988
26989 2010-03-27  Bruno Haible  <bruno@clisp.org>
26990
26991         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26992         * modules/getlogin (configure.ac): Update.
26993
26994         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26995         * modules/getlogin_r (configure.ac): Update.
26996
26997         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26999         * modules/inet_ntop (configure.ac): Update.
27000
27001         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27002         * modules/inet_pton (configure.ac): Update.
27003
27004         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27005         * modules/mbslen (configure.ac): Update.
27006
27007         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27008         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27009         * modules/forkpty (configure.ac): Update.
27010         * modules/openpty (configure.ac): Update.
27011
27012 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27013
27014         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27015         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27016
27017 2010-03-25  Eric Blake  <eblake@redhat.com>
27018
27019         maint: use pragma consistently across replacement headers
27020         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27021         * lib/dirent.in.h (system_header): Likewise.
27022         * lib/errno.in.h (system_header): Likewise.
27023         * lib/float.in.h (system_header): Likewise.
27024         * lib/getopt.in.h (system_header): Likewise.
27025         * lib/iconv.in.h (system_header): Likewise.
27026         * lib/inttypes.in.h (system_header): Likewise.
27027         * lib/langinfo.in.h (system_header): Likewise.
27028         * lib/locale.in.h (system_header): Likewise.
27029         * lib/math.in.h (system_header): Likewise.
27030         * lib/netdb.in.h (system_header): Likewise.
27031         * lib/netinet_in.in.h (system_header): Likewise.
27032         * lib/pty.in.h (system_header): Likewise.
27033         * lib/sched.in.h (system_header): Likewise.
27034         * lib/se-selinux.in.h (system_header): Likewise.
27035         * lib/search.in.h (system_header): Likewise.
27036         * lib/spawn.in.h (system_header): Likewise.
27037         * lib/stdarg.in.h (system_header): Likewise.
27038         * lib/stdint.in.h (system_header): Likewise.
27039         * lib/string.in.h (system_header): Likewise.
27040         * lib/strings.in.h (system_header): Likewise.
27041         * lib/sys_file.in.h (system_header): Likewise.
27042         * lib/sys_ioctl.in.h (system_header): Likewise.
27043         * lib/sys_socket.in.h (system_header): Likewise.
27044         * lib/sys_times.in.h (system_header): Likewise.
27045         * lib/sys_utsname.in.h (system_header): Likewise.
27046         * lib/sys_wait.in.h (system_header): Likewise.
27047         * lib/sysexits.in.h (system_header): Likewise.
27048         * lib/unistd.in.h (system_header): Likewise.
27049         * lib/wctype.in.h (system_header): Likewise.
27050
27051         arpa/inet: fix mingw compilation warning
27052         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27053         Reported by Matthew Bolte.
27054
27055 2010-03-25  Bruno Haible  <bruno@clisp.org>
27056
27057         Avoid collision between gnulib wrapper and libintl wrapper.
27058         * lib/printf.c (printf): Don't define if a printf wrapper is already
27059         defined in intl/printf.c.
27060         Reported by Michel Boaventura <michel@michelboaventura.com>.
27061
27062 2010-03-25  Bruno Haible  <bruno@clisp.org>
27063
27064         Use ANSI C.
27065         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27066
27067 2010-03-25  Bruno Haible  <bruno@clisp.org>
27068
27069         Minor formatting changes.
27070         * lib/acosl.c: Insert space before function argument list.
27071         * lib/argz.c: Likewise.
27072         * lib/asinl.c: Likewise.
27073         * lib/expl.c: Likewise.
27074         * lib/gen-uni-tables.c: Likewise.
27075         * lib/gettext.h: Likewise.
27076         * lib/glthread/lock.h: Likewise.
27077         * lib/tanl.c: Likewise.
27078         * lib/uniname/uniname.c: Likewise.
27079         * tests/test-idpriv-drop.c: Likewise.
27080         * tests/test-idpriv-droptemp.c: Likewise.
27081         * tests/test-lock.c: Likewise.
27082         * tests/test-tls.c: Likewise.
27083         * lib/argp-help.c: Insert space before function-like macro argument
27084         list.
27085         * lib/memcmp.c: Likewise.
27086         * tests/test-base64.c: Likewise.
27087         * lib/localename.c: Insert space before sizeof's argument list.
27088         * lib/safe-alloc.h: Likewise.
27089         * lib/file-set.h: Insert space before macro argument list.
27090         * tests/test-argp.c: Likewise.
27091         * lib/argp-namefrob.h: Insert space before function parameter list.
27092         * lib/getaddrinfo.c: Likewise.
27093         * lib/netdb.in.h: Likewise.
27094         * lib/parse-duration.h: Likewise.
27095         * lib/parse-duration.c: Likewise.
27096         * lib/poll.c: Likewise.
27097         * lib/select.c: Likewise.
27098         * lib/trim.h: Likewise.
27099         * tests/test-usleep.c: Likewise.
27100         * lib/ldexpl.c: Insert space before function parameter list and before
27101         function argument list.
27102         * lib/logl.c: Likewise.
27103         * lib/sqrtl.c: Likewise.
27104         * lib/trim.c: Likewise.
27105         * lib/cosl.c: Use GNU style indentation. Insert space before function
27106         argument list.
27107         * lib/sinl.c: Likewise.
27108         * lib/tsearch.c: Insert space after 'for'.
27109         Reported by Jim Meyering.
27110
27111 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27112
27113         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27114         config header before grepping, as it's not present before
27115         autoreconf/configure are run.  Reported by Simon Josefsson.
27116
27117 2010-03-23  Bruno Haible  <bruno@clisp.org>
27118
27119         pt_chown: Make it work with automake < 1.11.
27120         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27121         Reported by Simon Josefsson.
27122
27123 2010-03-23  Bruno Haible  <bruno@clisp.org>
27124
27125         pt_chown: Don't depend on GPLed modules.
27126         * lib/pt_chown.c: Don't include idpriv.h.
27127         (main): Don't drop privileges.
27128         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27129         Reported by Simon Josefsson.
27130
27131 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27132
27133         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27134         suggestions from karl@freefriends.org (Karl Berry).
27135
27136 2010-03-22  Eric Blake  <eblake@redhat.com>
27137
27138         gethostname: further tweaks
27139         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27140         are overriding gethostname.
27141         Suggested by Bruno Haible.
27142
27143 2010-03-21  Bruno Haible  <bruno@clisp.org>
27144
27145         Fix comments.
27146         * lib/forkpty.c (rpl_forkpty): Fix comment.
27147         * lib/openpty.c (rpl_openpty): Likewise.
27148         Reported by Eric Blake.
27149
27150 2010-03-22  Eric Blake  <eblake@redhat.com>
27151
27152         gethostname: fix build on mingw
27153         * lib/unistd.in.h (includes): Work around fact that mingw
27154         <winsock2.h> re-includes <unistd.h>, by avoiding any
27155         redeclarations if we are being included by <winsock2.h>.
27156         Reported by Matthias Bolte.
27157
27158 2010-03-21  Bruno Haible  <bruno@clisp.org>
27159
27160         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27161         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27162         modifications.
27163         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27164         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27165         provide the replacement.
27166         * modules/forkpty (Depends-on): Add openpty, login_tty.
27167         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27168         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27169         * doc/glibc-functions/forkpty.texi: More supported platforms.
27170         * config/srclist.txt: Add forkpty.c (commented).
27171
27172 2010-03-21  Bruno Haible  <bruno@clisp.org>
27173
27174         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27175         (Makefile.am): Verify that PTY_LIB is defined.
27176
27177         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27178
27179 2010-03-21  Bruno Haible  <bruno@clisp.org>
27180
27181         Tests for module 'login_tty'.
27182         * modules/login_tty-tests: New file.
27183         * tests/test-login_tty.c: New file.
27184
27185         New module 'login_tty'.
27186         * lib/login_tty.c: New file.
27187         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27188         * modules/login_tty: New file.
27189         * doc/glibc-functions/login_tty.texi: Mention the new module.
27190
27191 2010-03-21  Bruno Haible  <bruno@clisp.org>
27192
27193         login_tty: Documentation.
27194         * doc/glibc-functions/login_tty.texi: New file.
27195         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27196
27197 2010-03-21  Bruno Haible  <bruno@clisp.org>
27198
27199         pty: Consistent macro naming.
27200         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27201         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27202         * modules/pty (configure.ac): Update.
27203
27204 2010-03-21  Bruno Haible  <bruno@clisp.org>
27205
27206         Tests for openpty: Make stricter.
27207         * tests/test-openpty.c (main): Add test of canonical processing and
27208         erase.
27209         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27210
27211         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27212         * lib/openpty.c (openpty): New replacement function.
27213         * lib/pty.in.h: Include <termios.h>.
27214         (openpty): Update declaration. Add comments.
27215         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27216         is not declared, arrange to provide the replacement. Check for _getpty
27217         and posix_openpt.
27218         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27220         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27221         * modules/pty-tests (test_pty_c___LDADD): New variable.
27222         * doc/glibc-functions/openpty.texi: More supported platforms.
27223
27224 2010-03-21  Bruno Haible  <bruno@clisp.org>
27225
27226         setenv: Tweaks.
27227         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27228         the test program.
27229         * doc/posix-functions/setenv.texi: Update platforms list.
27230
27231 2010-03-21  Bruno Haible  <bruno@clisp.org>
27232
27233         New module 'unlockpt'.
27234         * lib/unlockpt.c: New file, from glibc with modifications.
27235         * m4/unlockpt.m4: New file.
27236         * modules/unlockpt: New file.
27237         * lib/stdlib.in.h (unlockpt): New declaration.
27238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27240         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27241         HAVE_UNLOCKPT.
27242         * doc/posix-functions/unlockpt.texi: Mention the new module.
27243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27244         * config/srclist.txt: Add unlockpt.c (commented).
27245
27246 2010-03-21  Jim Meyering  <meyering@redhat.com>
27247
27248         maint.mk: prohibit inclusion of "intprops.h" without use
27249         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27250
27251 2010-03-21  Bruno Haible  <bruno@clisp.org>
27252
27253         New module 'grantpt'.
27254         * lib/grantpt.c: New file, from glibc with modifications.
27255         * m4/grantpt.m4: New file.
27256         * modules/grantpt: New file.
27257         * lib/stdlib.in.h (grantpt): New declaration.
27258         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27259         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27260         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27261         HAVE_GRANTPT.
27262         * doc/posix-functions/grantpt.texi: Mention the new module.
27263         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27264         * config/srclist.txt: Add grantpt.c (commented).
27265
27266 2010-03-21  Bruno Haible  <bruno@clisp.org>
27267
27268         New module 'pt_chown'.
27269         * lib/pt_chown.c: New file, from glibc with modifications.
27270         * lib/pty-private.h: New file, from glibc with modifications.
27271         * modules/pt_chown: New file.
27272         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27273
27274 2010-03-21  Bruno Haible  <bruno@clisp.org>
27275
27276         Tests for module 'ptsname'.
27277         * modules/ptsname-tests: New file.
27278         * tests/test-ptsname.c: New file.
27279
27280         New module 'ptsname'.
27281         * lib/ptsname.c: New file, from glibc with modifications.
27282         * m4/ptsname.m4: New file.
27283         * modules/ptsname: New file.
27284         * lib/stdlib.in.h (ptsname): New declaration.
27285         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27286         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27287         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27288         HAVE_PTSNAME.
27289         * doc/posix-functions/ptsname.texi: Mention the new module.
27290         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27291         * config/srclist.txt: Add ptsname.c (commented).
27292
27293 2010-03-21  Bruno Haible  <bruno@clisp.org>
27294
27295         Tests for module 'ttyname_r'.
27296         * modules/ttyname_r-tests: New file.
27297         * tests/test-ttyname_r.c: New file.
27298
27299         New module 'ttyname_r'.
27300         * lib/ttyname_r.c: New file.
27301         * m4/ttyname_r.m4: New file.
27302         * modules/ttyname_r: New file.
27303         * lib/unistd.in.h (ttyname_r): New declaration.
27304         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27305         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27306         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27307         HAVE_TTYNAME_R.
27308         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27309         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27310
27311 2010-03-20  Bruno Haible  <bruno@clisp.org>
27312
27313         signal: Undefine macro definitions in C++ mode.
27314         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27315         sigfillset): Undefine macro definitions from the system header in C++
27316         mode.
27317         Reported by John W. Eaton <jwe@gnu.org>.
27318
27319 2010-03-20  Bruno Haible  <bruno@clisp.org>
27320
27321         Ensure no #include statements inside extern "C" { ... }.
27322         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27323         contain #include statements.
27324         * lib/time.in.h: Likewise.
27325
27326 2010-03-20  Bruno Haible  <bruno@clisp.org>
27327
27328         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27329         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27330         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27331         Reported by John W. Eaton <jwe@gnu.org>.
27332
27333 2010-03-20  Bruno Haible  <bruno@clisp.org>
27334
27335         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27336         Reported by Jim Meyering.
27337
27338 2010-03-20  Bruno Haible  <bruno@clisp.org>
27339
27340         pipe: Set errno upon failure.
27341         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27342         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27343         errno value in error message.
27344
27345 2010-03-20  Bruno Haible  <bruno@clisp.org>
27346             Jim Meyering  <meyering@redhat.com>
27347
27348         lchown: Avoid "unused variable" warning.
27349         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27350
27351 2010-03-20  Bruno Haible  <bruno@clisp.org>
27352
27353         Work around unlink() bug on MacOS X 10.5.6.
27354         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27355         attempting to unlink a parent directory.
27356         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27357         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27358         activate for the replacement function.
27359         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27360
27361 2010-03-20  Bruno Haible  <bruno@clisp.org>
27362
27363         Fix link errors on Solaris 8.
27364         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27365         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27366
27367 2010-03-19  Jim Meyering  <meyering@redhat.com>
27368
27369         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27370         The _LIBC implementation of build_range_exp correctly honors the
27371         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27372         However, the non-_LIBC implementation would ignore that syntax-bit
27373         flag and return REG_ERANGE unconditionally.
27374         This change makes it honor that flag.
27375         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27376         Make two pointer parameters "const".
27377         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27378         (parse_bracket_exp): Update caller.
27379
27380         regex.m4: correct the reversed range endpoint ([b-a]) test
27381         * m4/regex.m4: When requiring that [b-a] evoke failure,
27382         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27383         test pass once again for x86-based systems.
27384
27385 2010-03-19  Bruno Haible  <bruno@clisp.org>
27386
27387         scandir: Fix link error on Solaris 8.
27388         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27389         macros.
27390
27391 2010-03-19  Bruno Haible  <bruno@clisp.org>
27392
27393         getusershell: Fix documentation.
27394         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27395         module.
27396         * doc/glibc-functions/setusershell.texi: Likewise.
27397
27398         getusershell: Provide declaration, missing on Solaris 9.
27399         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27400         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27401         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27402         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27404         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27405         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27406         HAVE_GETUSERSHELL.
27407         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27408
27409 2010-03-19  Bruno Haible  <bruno@clisp.org>
27410
27411         wctype: Provide iswblank function.
27412         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27413         exists and is fine.
27414         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27415         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27416         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27417         * doc/posix-functions/iswblank.texi: Update.
27418
27419 2010-03-19  Bruno Haible  <bruno@clisp.org>
27420
27421         Tests of module 'pty' in C++ mode.
27422         * modules/pty-tests: New file.
27423         * tests/test-pty-c++.cc: New file.
27424         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27425
27426 2010-03-19  Eric Blake  <eblake@redhat.com>
27427
27428         logb: fix documentation
27429         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27430         1.5 declaration bug.
27431
27432         forkpty, openpty: prefer glibc's const-safe prototype
27433         * lib/forkpty.c (rpl_forkpty): New file.
27434         * lib/openpty.c (rpl_openpty): Likewise.
27435         * modules/forkpty (Files): Distribute it.
27436         * modules/openpty (Files): Likewise.
27437         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27438         check...
27439         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27440         replacement for for non-const BSD signature.
27441         * modules/pty (Makefile.am): Substitute witnesses.
27442         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27443         * tests/test-forkpty.c: Update signature check.
27444         * tests/test-openpty.c: Likewise.
27445         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27446         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27447
27448         forkpty, openpty: split functions into new modules
27449         * modules/pty (Makefile.am): Substitute new witnesses.
27450         (Libraries): Move library detection...
27451         * modules/forkpty: ...into new module.
27452         * modules/openpty: Another new module.
27453         * modules/pty-tests: Rename and split...
27454         * modules/forkpty-tests: ...to this...
27455         * modules/openpty-tests: ...and this.
27456         * tests/test-pty.c: Rename and split...
27457         * tests/test-forkpty.c: ...to this...
27458         * tests/test-openpty.c: ...and this.
27459         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27460         (gl_PTY): Split library searching...
27461         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27462         (gl_FORKPTY, gl_OPENPTY): New macros.
27463         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27464         * NEWS: Mention the split.
27465         * MODULES.html.sh (Misc): Document the modules.
27466         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27467         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27468
27469         pty: improve replacement header
27470         * lib/pty.in.h: New file.
27471         * modules/pty (Files): Ship it.
27472         (Makefile.am): Always build replacement.
27473         * m4/pty.m4: Rename...
27474         * m4/pty_h.m4: ...to this.
27475         (gl_PTY): Modernize setting of witness macros; update check of
27476         forkpty to take proper advantage of cache.
27477         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27478
27479         getopt: avoid compiler warning
27480         * lib/getopt.c (attribute_hidden): Remove unused macro.
27481
27482 2010-03-18  Bruno Haible  <bruno@clisp.org>
27483
27484         Fix link errors on Solaris 8.
27485         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27486         * modules/search-tests (test_search_c___LDADD): Likewise.
27487         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27488         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27489         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27490         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27491         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27492         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27493         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27494
27495 2010-03-18  Bruno Haible  <bruno@clisp.org>
27496
27497         Fix bug introduced on 2010-03-14.
27498         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27499         (gl_SPAWN_H): Require it.
27500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27501         Reported by Simon Josefsson.
27502
27503 2010-03-18  Bruno Haible  <bruno@clisp.org>
27504
27505         Fix typo introduced on 2009-12-31.
27506         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27507         posix_spawn_file_actions_adddup2.
27508
27509 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27510         and Eric Blake  <eblake@redhat.com>
27511
27512         test-vc-list-files-git: make more robust
27513         * tests/test-vc-list-files-git.sh: Unset problematic environment
27514         variables.  Chain commands together.
27515
27516 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27517
27518         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27519         `AC_CHECK_DECL' invocation.
27520
27521 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27522
27523         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27524         appears before executable statements. Suggested by Petr Sumbera
27525         <Petr.Sumbera@Sun.COM>.
27526
27527 2010-03-14  Bruno Haible  <bruno@clisp.org>
27528
27529         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27530         portability problems. Instead use a simpler test.
27531         (main): Check that invalid arguments are rejected only on Linux.
27532
27533 2010-03-14  Bruno Haible  <bruno@clisp.org>
27534
27535         Fix bug introduced on 2009-12-31.
27536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27537         gl_PREREQ_SYS_H_WINSOCK2 always.
27538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27539         SYS_SOCKET_H variable.
27540         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27541         Update comments.
27542         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27543         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27544         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27546         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27547
27548 2010-03-14  Bruno Haible  <bruno@clisp.org>
27549
27550         Fix values returned by sinl, cosl.
27551         * lib/trigl.h: Add specification comments.
27552         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27553         that combines the values from the precomputed table with the values of
27554         the Chebyshev polynomials.
27555
27556 2010-03-14  Bruno Haible  <bruno@clisp.org>
27557
27558         Fix compilation error when modules 'posix_spawn[p]' are not used.
27559         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27561
27562 2010-03-14  Bruno Haible  <bruno@clisp.org>
27563
27564         Fix compilation error on mingw when module 'time_r' is not used.
27565         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27566         is 1.
27567         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27568         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27569         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27571
27572 2010-03-14  Bruno Haible  <bruno@clisp.org>
27573
27574         Fix compilation error with Sun C.
27575         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27576         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27577         instead of GCC specific ULONG_LONG_MAX.
27578         * lib/xstrtoll.c: Likewise.
27579         * lib/xstrtoull.c: Likewise.
27580
27581 2010-03-13  Bruno Haible  <bruno@clisp.org>
27582
27583         Allow the user to disable C++ code and tests.
27584         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27585         (gl_PROG_ANSI_CXX): Require it.
27586
27587 2010-03-13  Bruno Haible  <bruno@clisp.org>
27588
27589         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27590         cases.
27591
27592 2010-03-13  Bruno Haible  <bruno@clisp.org>
27593
27594         Test that gnulib does not break the standard C++ headers.
27595         * tests/test-locale-c++2.cc: New file.
27596         * modules/locale-tests (Files): Add it.
27597         (Makefile.am): Compile it for test-locale-c++.
27598         * tests/test-math-c++2.cc: New file.
27599         * modules/math-tests (Files): Add it.
27600         (Makefile.am): Compile it for test-math-c++.
27601         * tests/test-signal-c++2.cc: New file.
27602         * modules/signal-tests (Files): Add it.
27603         (Makefile.am): Compile it for test-signal-c++.
27604         * tests/test-stdio-c++2.cc: New file.
27605         * modules/stdio-tests (Files): Add it.
27606         (Makefile.am): Compile it for test-stdio-c++.
27607         * tests/test-stdlib-c++2.cc: New file.
27608         * modules/stdlib-tests (Files): Add it.
27609         (Makefile.am): Compile it for test-stdlib-c++.
27610         * tests/test-string-c++2.cc: New file.
27611         * modules/string-tests (Files): Add it.
27612         (Makefile.am): Compile it for test-string-c++.
27613         * tests/test-time-c++2.cc: New file.
27614         * modules/time-tests (Files): Add it.
27615         (Makefile.am): Compile it for test-time-c++.
27616         Reported by John W. Eaton <jwe@gnu.org>.
27617
27618 2010-03-13  Bruno Haible  <bruno@clisp.org>
27619
27620         * gnulib-tool (func_usage): Clarify which options are available for
27621         --create-testdir and --create-megatestdir.
27622
27623 2010-03-13  Bruno Haible  <bruno@clisp.org>
27624
27625         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27626         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27627         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27628         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27629         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27630         when appropriate.
27631         Reported by Jim Meyering.
27632
27633 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27634
27635         * gnulib-tool (func_import): Explain origin of code.
27636
27637 2010-03-12  Bruno Haible  <bruno@clisp.org>
27638
27639         Fix problem with automake's definition of CXXLINK.
27640         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27641         Reported by Simon Josefsson and Ludovic Courtès.
27642
27643 2010-03-12  Bruno Haible  <bruno@clisp.org>
27644
27645         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27646         stable releases.
27647
27648 2010-03-11  Bruno Haible  <bruno@clisp.org>
27649
27650         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27651         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27652         whether the system provides one variant or multiple variants of the
27653         function.
27654         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27655         C++ compilers.
27656         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27657         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27658         Reported by Jim Meyering.
27659
27660 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27661
27662         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27663
27664 2010-03-08  Bruno Haible  <bruno@clisp.org>
27665
27666         gnulib-tool: Add support for --libtool in --create-testdir.
27667         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27668         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27669
27670 2010-03-08  Eric Blake  <eblake@redhat.com>
27671
27672         gnulib-tool.texi: mention possibility of git submodule
27673         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27674         submodules.
27675         * doc/.gitignore: Ignore another generated file.
27676
27677 2010-03-08  Karl Berry  <karl@gnu.org>
27678
27679         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27680         of committing gnulib files while skipping others.
27681
27682 2010-03-07  Bruno Haible  <bruno@clisp.org>
27683
27684         Tests of module 'wctype' in C++ mode.
27685         * tests/test-wctype-c++.cc: New file.
27686         * modules/wctype-tests (Files): Add it and tests/signature.h.
27687         (Depends-on): Add ansi-c++-opt.
27688         (Makefile.am): Arrange to compile and run test-wctype-c++.
27689
27690         Tests of module 'wchar' in C++ mode.
27691         * tests/test-wchar-c++.cc: New file.
27692         * modules/wchar-tests (Files): Add it and tests/signature.h.
27693         (Depends-on): Add ansi-c++-opt.
27694         (Makefile.am): Arrange to compile and run test-wchar-c++.
27695         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27696         gl_MODULE_INDICATOR.
27697
27698         Tests of module 'unistd' in C++ mode.
27699         * tests/test-unistd-c++.cc: New file.
27700         * modules/unistd-tests (Files): Add it and tests/signature.h.
27701         (Depends-on): Add ansi-c++-opt.
27702         (Makefile.am): Arrange to compile and run test-unistd-c++.
27703         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27704         gl_MODULE_INDICATOR.
27705
27706         Tests of module 'time' in C++ mode.
27707         * tests/test-time-c++.cc: New file.
27708         * modules/time-tests (Files): Add it and tests/signature.h.
27709         (Depends-on): Add ansi-c++-opt.
27710         (Makefile.am): Arrange to compile and run test-time-c++.
27711         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27712
27713         Tests of module 'sys_time' in C++ mode.
27714         * tests/test-sys_time-c++.cc: New file.
27715         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27716         (Depends-on): Add ansi-c++-opt.
27717         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27718         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27719         gl_MODULE_INDICATOR.
27720
27721         Tests of module 'sys_stat' in C++ mode.
27722         * tests/test-sys_stat-c++.cc: New file.
27723         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27724         (Depends-on): Add ansi-c++-opt.
27725         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27726         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27727         gl_MODULE_INDICATOR.
27728
27729         Tests of module 'sys_socket' in C++ mode.
27730         * tests/test-sys_socket-c++.cc: New file.
27731         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27732         (Depends-on): Add ansi-c++-opt.
27733         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27735         gl_MODULE_INDICATOR.
27736
27737         Tests of module 'sys_select' in C++ mode.
27738         * tests/test-sys_select-c++.cc: New file.
27739         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27740         (Depends-on): Add ansi-c++-opt.
27741         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27742         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27743         gl_MODULE_INDICATOR.
27744
27745         Tests of module 'sys_ioctl' in C++ mode.
27746         * tests/test-sys_ioctl-c++.cc: New file.
27747         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27748         (Depends-on): Add ansi-c++-opt.
27749         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27751         gl_MODULE_INDICATOR.
27752
27753         Tests of module 'string' in C++ mode.
27754         * tests/test-string-c++.cc: New file.
27755         * modules/string-tests (Files): Add it and tests/signature.h.
27756         (Depends-on): Add ansi-c++-opt.
27757         (Makefile.am): Arrange to compile and run test-string-c++.
27758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27759         gl_MODULE_INDICATOR.
27760
27761         Tests of module 'stdlib' in C++ mode.
27762         * tests/test-stdlib-c++.cc: New file.
27763         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27764         (Depends-on): Add ansi-c++-opt.
27765         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27766         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27767         gl_MODULE_INDICATOR.
27768
27769         Tests of module 'stdio' in C++ mode.
27770         * tests/test-stdio-c++.cc: New file.
27771         * modules/stdio-tests (Files): Add it and tests/signature.h.
27772         (Depends-on): Add ansi-c++-opt.
27773         (Makefile.am): Arrange to compile and run test-stdio-c++.
27774         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27775         gl_MODULE_INDICATOR.
27776
27777         Tests of module 'spawn' in C++ mode.
27778         * tests/test-spawn-c++.cc: New file.
27779         * modules/spawn-tests (Files): Add it and tests/signature.h.
27780         (Depends-on): Add ansi-c++-opt.
27781         (Makefile.am): Arrange to compile and run test-spawn-c++.
27782         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27783         gl_MODULE_INDICATOR.
27784
27785         Tests of module 'signal' in C++ mode.
27786         * tests/test-signal-c++.cc: New file.
27787         * modules/signal-tests (Files): Add it and tests/signature.h.
27788         (Depends-on): Add ansi-c++-opt.
27789         (Makefile.am): Arrange to compile and run test-signal-c++.
27790         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27791         gl_MODULE_INDICATOR.
27792
27793         Tests of module 'search' in C++ mode.
27794         * tests/test-search-c++.cc: New file.
27795         * modules/search-tests (Files): Add it and tests/signature.h.
27796         (Depends-on): Add ansi-c++-opt.
27797         (Makefile.am): Arrange to compile and run test-search-c++.
27798         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27799         gl_MODULE_INDICATOR.
27800
27801         Tests of module 'math' in C++ mode.
27802         * tests/test-math-c++.cc: New file.
27803         * modules/math-tests (Files): Add it and tests/signature.h.
27804         (Depends-on): Add ansi-c++-opt.
27805         (Makefile.am): Arrange to compile and run test-math-c++.
27806         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27807
27808         Tests of module 'locale' in C++ mode.
27809         * tests/test-locale-c++.cc: New file.
27810         * modules/locale-tests (Files): Add it and tests/signature.h.
27811         (Depends-on): Add ansi-c++-opt.
27812         (Makefile.am): Arrange to compile and run test-locale-c++.
27813         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27814         gl_MODULE_INDICATOR.
27815
27816         Tests of module 'langinfo' in C++ mode.
27817         * tests/test-langinfo-c++.cc: New file.
27818         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27819         (Depends-on): Add ansi-c++-opt.
27820         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27821         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27822         gl_MODULE_INDICATOR.
27823
27824         Tests of module 'iconv-h' in C++ mode.
27825         * tests/test-iconv-h-c++.cc: New file.
27826         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27827         (Depends-on): Add ansi-c++-opt.
27828         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27829
27830         Tests of module 'glob' in C++ mode.
27831         * tests/test-glob-c++.cc: New file.
27832         * modules/glob-tests (Files): Add it.
27833         (Depends-on): Add ansi-c++-opt.
27834         (Makefile.am): Arrange to compile and run test-glob-c++.
27835
27836         Tests of module 'fcntl-h' in C++ mode.
27837         * tests/test-fcntl-h-c++.cc: New file.
27838         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27839         (Depends-on): Add ansi-c++-opt.
27840         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27841         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27842         gl_MODULE_INDICATOR.
27843
27844         Tests of module 'dirent' in C++ mode.
27845         * tests/test-dirent-c++.cc: New file.
27846         * modules/dirent-tests (Files): Add it and tests/signature.h.
27847         (Depends-on): Add ansi-c++-opt.
27848         (Makefile.am): Arrange to compile and run test-dirent-c++.
27849         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27850         gl_MODULE_INDICATOR.
27851
27852         New module 'ansi-c++-opt'.
27853         * modules/ansi-c++-opt: New file.
27854         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27855
27856         Document C++ namespace mode.
27857         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27858
27859         wctype: Avoid #define replacements in C++ mode.
27860         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27861         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27862         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27863         In C++, define a namespaced alias symbol.
27864         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27865         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27866         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27867         rule.
27868
27869         wchar: Avoid #define replacements in C++ mode.
27870         * lib/wchar.in.h: Include c++defs.h.
27871         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27872         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27873         symbol.
27874         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27875         * modules/wchar (Depends-on): Add c++defs.
27876         (Makefile.am): Update wchar.h rule.
27877
27878         unistd: Avoid #define replacements in C++ mode.
27879         * lib/unistd.in.h: Include c++defs.h.
27880         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27881         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27882         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27883         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27884         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27885         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27886         symbol.
27887         (environ): Update.
27888         * modules/unistd (Depends-on): Add c++defs.
27889         (Makefile.am): Update unistd.h rule.
27890
27891         time: Avoid #define replacements in C++ mode.
27892         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27893         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27894         define a namespaced alias symbol.
27895         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27896         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27897         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27898         * modules/time (Depends-on): Add c++defs, warn-on-use.
27899         (Makefile.am): Update time.h rule.
27900         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27901         * modules/nanosleep (configure.ac): Likewise.
27902         * modules/strptime (configure.ac): Likewise.
27903         * modules/timegm (configure.ac): Likewise.
27904
27905         sys_time: Avoid #define replacements in C++ mode.
27906         * lib/sys_time.in.h: Include c++defs.h.
27907         (gettimeofday): In C++, define a namespaced alias symbol.
27908         * modules/sys_time (Depends-on): Add c++defs.
27909         (Makefile.am): Update sys/time.h rule.
27910
27911         sys_stat: Avoid #define replacements in C++ mode.
27912         * lib/sys_stat.in.h: Include c++defs.h.
27913         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27914         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27915         namespaced alias symbol.
27916         In C++, define a namespaced alias symbol.
27917         * modules/sys_stat (Depends-on): Add c++defs.
27918         (Makefile.am): Update sys/stat.h rule.
27919
27920         sys_socket: Avoid #define replacements in C++ mode.
27921         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27922         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27923         definitions also when the system has a <sys/socket.h>.
27924         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27925         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27926         In C++, define a namespaced alias symbol.
27927         * modules/sys_socket (Depends-on): Add c++defs.
27928         (Makefile.am): Update sys/socket.h rule.
27929
27930         sys_select: Avoid #define replacements in C++ mode.
27931         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27932         definitions also when the system has a <sys/select.h>.
27933         (select): In C++, define a namespaced alias symbol.
27934         * modules/sys_select (Depends-on): Add c++defs.
27935         (Makefile.am): Update sys/select.h rule.
27936
27937         sys_ioctl: Avoid #define replacements in C++ mode.
27938         * lib/sys_ioctl.in.h: Include c++defs.h.
27939         (ioctl): In C++, define a namespaced alias symbol.
27940         * modules/sys_ioctl (Depends-on): Add c++defs.
27941         (Makefile.am): Update sys/ioctl.h rule.
27942
27943         string: Avoid #define replacements in C++ mode.
27944         * lib/string.in.h: Include c++defs.h.
27945         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27946         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27947         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27948         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27949         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27950         * modules/string (Depends-on): Add c++defs.
27951         (Makefile.am): Update string.h rule.
27952
27953         stdlib: Avoid #define replacements in C++ mode.
27954         * lib/stdlib.in.h: Include c++defs.h.
27955         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27956         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27957         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27958         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27959         symbol.
27960         * modules/stdlib (Depends-on): Add c++defs.
27961         (Makefile.am): Update stdlib.h rule.
27962
27963         stdio: Avoid #define replacements in C++ mode.
27964         * lib/stdio.in.h: Include c++defs.h.
27965         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27966         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27967         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27968         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27969         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27970         namespaced alias symbol.
27971         * modules/stdio (Depends-on): Add c++defs.
27972         (Makefile.am): Update stdio.h rule.
27973
27974         spawn: Avoid #define replacements in C++ mode.
27975         * lib/spawn.in.h: Include c++defs.h.
27976         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27977         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27978         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27979         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27980         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27981         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27982         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27983         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27984         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27985         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27986         In C++, define a namespaced alias symbol.
27987         * modules/spawn (Depends-on): Add c++defs.
27988         (Makefile.am): Update spawn.h rule.
27989
27990         signal: Avoid #define replacements in C++ mode.
27991         * lib/signal.in.h: Include c++defs.h.
27992         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27993         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27994         namespaced alias symbol.
27995         * modules/signal (Depends-on): Add c++defs.
27996         (Makefile.am): Update signal.h rule.
27997
27998         search: Avoid #define replacements in C++ mode.
27999         * lib/search.in.h: Include c++defs.h.
28000         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28001         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28002         symbol.
28003         * modules/search (Depends-on): Add c++defs.
28004         (Makefile.am): Update search.h rule.
28005
28006         math: Avoid #define replacements in C++ mode.
28007         * lib/math.in.h: Include c++defs.h.
28008         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28009         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28010         trunc, truncl): In C++, define a namespaced alias symbol.
28011         * modules/math (Depends-on): Add c++defs.
28012         (Makefile.am): Update math.h rule.
28013
28014         locale: Avoid #define replacements in C++ mode.
28015         * lib/locale.in.h: Include c++defs.h.
28016         (duplocale): In C++, define a namespaced alias symbol.
28017         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28018         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28019         * modules/locale (Depends-on): Add c++defs.
28020         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28021
28022         langinfo: Avoid #define replacements in C++ mode.
28023         * lib/langinfo.in.h: Include c++defs.h.
28024         (nl_langinfo): In C++, define a namespaced alias symbol.
28025         * modules/langinfo (Depends-on): Add c++defs.
28026         (Makefile.am): Update langinfo.h rule.
28027
28028         iconv-h: Avoid #define replacements in C++ mode.
28029         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28030         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28031         symbol.
28032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28033         whenever iconv is present.
28034         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28035         (Makefile.am): Update iconv.h rule.
28036
28037         glob: Avoid #define replacements in C++ mode.
28038         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28039         (_gl_glob_errfunc_fn): New type.
28040         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28041         symbol.
28042         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28043         (Makefile.am): Update glob.h rule.
28044
28045         fcntl-h: Avoid #define replacements in C++ mode.
28046         * lib/fcntl.in.h: Include c++defs.h.
28047         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28048         * modules/fcntl-h (Depends-on): Add c++defs.
28049         (Makefile.am): Update fcntl.h rule.
28050
28051         dirent: Avoid #define replacements in C++ mode.
28052         * lib/dirent.in.h: Include c++defs.h.
28053         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28054         namespaced alias symbol.
28055         (dirfd): Update declaration.
28056         * modules/dirent (Depends-on): Add c++defs.
28057         (Makefile.am): Update dirent.h rule.
28058
28059         ctype: Make it usable in C++ code.
28060         * lib/ctype.in.h: Include c++defs.h.
28061         (isblank): Declare as extern "C".
28062         * modules/ctype (Depends-on): Add c++defs.
28063         (Makefile.am): Update ctype.h rule.
28064
28065         New module 'c++defs'.
28066         * modules/c++defs: New file.
28067         * build-aux/c++defs.h: New file.
28068         Reported by John W. Eaton <jwe@gnu.org>.
28069
28070 2010-03-07  Bruno Haible  <bruno@clisp.org>
28071
28072         logb: Provide missing declaration for Cygwin.
28073         * lib/math.in.h (logb): New declaration.
28074         * m4/logb.m4: New file.
28075         * modules/logb (Files): Add m4/logb.m4.
28076         (Depends-on): Add math.
28077         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28078         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28080         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28081         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28082
28083 2010-03-07  Bruno Haible  <bruno@clisp.org>
28084
28085         Fix test-cond link error.
28086         * tests/test-cond.c: Include <stdio.h>.
28087
28088 2010-03-07  Bruno Haible  <bruno@clisp.org>
28089
28090         Fix test-dirent-safer link error.
28091         * modules/dirent-safer-tests (Makefile.am): Define
28092         test_dirent_safer_LDADD.
28093
28094 2010-03-07  Bruno Haible  <bruno@clisp.org>
28095
28096         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28097         among default module list.
28098
28099 2010-03-07  Bruno Haible  <bruno@clisp.org>
28100
28101         Fix link error on platforms with GNU libiconv.
28102         * modules/unistr/u8-strcoll-tests (Makefile): Define
28103         test_u8_strcoll_LDADD.
28104         * modules/unistr/u16-strcoll-tests (Makefile): Define
28105         test_u16_strcoll_LDADD.
28106         * modules/unistr/u32-strcoll-tests (Makefile): Define
28107         test_u32_strcoll_LDADD.
28108
28109 2010-03-07  Bruno Haible  <bruno@clisp.org>
28110
28111         Use POSIX declarations for socket functions.
28112         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28113         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28114         rpl_sendto): Change declaration to match POSIX.
28115         * lib/connect.c (rpl_connect): Likewise.
28116         * lib/accept.c (rpl_accept): Likewise.
28117         * lib/bind.c (rpl_bind): Likewise.
28118         * lib/getpeername.c (rpl_getpeername): Likewise.
28119         * lib/getsockname.c (rpl_getsockname): Likewise.
28120         * lib/recv.c (rpl_recv): Likewise.
28121         * lib/send.c (rpl_send): Likewise.
28122         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28123         * lib/sendto.c (rpl_sendto): Likewise.
28124
28125 2010-03-06  Bruno Haible  <bruno@clisp.org>
28126
28127         Clarify access, euidaccess, faccessat.
28128         * doc/posix-functions/faccessat.texi: Mention security problem under
28129         "Other problems", not "Portability problems".
28130         * doc/posix-functions/access.texi: Likewise. Mention a related security
28131         problem.
28132         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28133         * lib/euidaccess.c: Add comments about platforms.
28134         * lib/unistd.in.h (access, euidaccess): Add warnings.
28135
28136 2010-03-07  Bruno Haible  <bruno@clisp.org>
28137
28138         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28139         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28140         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28141         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28142         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28143         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28144         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28145         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28146         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28148         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28149         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28150         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28151         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28152         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28153         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28154         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28155         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28156         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28157         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28158         Likewise.
28159         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28160         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28161         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28162         Likewise.
28163         * tests/test-spawn.c (main): Make it work when
28164         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28165
28166 2010-03-07  Bruno Haible  <bruno@clisp.org>
28167
28168         Fix incorrect Makefile.am generation in German locale.
28169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28170         Execute sed command with character range in C locale.
28171
28172 2010-03-06  Bruno Haible  <bruno@clisp.org>
28173
28174         Tests for module 'iconv-h'.
28175         * modules/iconv-h-tests: New file.
28176         * tests/test-iconv-h.c: New file.
28177
28178         New module 'iconv-h'.
28179         * modules/iconv-h: New file.
28180         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28181         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28182         (configure.ac): Remove gl_ICONV_H.
28183         (Makefile.am): Remove rule for iconv.h.
28184
28185 2010-03-06  Bruno Haible  <bruno@clisp.org>
28186
28187         More consistent naming of *.m4 files.
28188         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28189         * modules/wctype (Files): Update.
28190
28191         More consistent naming of *.m4 files.
28192         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28193         * modules/wchar (Files): Update.
28194
28195 2010-03-06  Jim Meyering  <meyering@redhat.com>
28196
28197         euidaccess: relax license to LGPLv2+
28198         * modules/euidaccess (License): Relax to LGPLv2+.
28199
28200 2010-03-06  Bruno Haible  <bruno@clisp.org>
28201
28202         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28203         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28204         (Makefile.am): Augment lib_SOURCES instead.
28205
28206 2010-03-04  Jim Meyering  <meyering@redhat.com>
28207
28208         utime: remove obsolete module
28209         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28210         unnecessary for years, and has been marked as obsolete for 10 months.
28211         * modules/utime: Remove file.
28212         * lib/utime.c: Remove file.
28213         * m4/utime.m4: Remove file.
28214         * m4/utimes-null.m4: Remove file.
28215         * doc/posix-functions/utime.texi (utime): Remove reference to
28216         the module.  Move the sole "fixed by gnulib" item into the
28217         "problems not fixed by Gnulib" list.
28218         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28219
28220 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28221
28222         * modules/exit (License): Relax license to LGPLv2+.
28223         (Status): Mark as obsolete.
28224         * NEWS: Mention deprecated 'exit' module.
28225         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28226         of now obsolete 'exit'.
28227
28228 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28229
28230         fts-lgpl: remove unused module
28231         * modules/fts-lgpl: Remove.
28232         * MODULES.html.sh (func_all_modules): Adjust.
28233         * check-module (find_included_lib_files): Adjust.
28234         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28235
28236 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28237
28238         copy-acl: enhance Solaris ACL error handling
28239         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28240         * lib/set-mode-acl.c (qset_acl): Likewise.
28241
28242 2010-03-02  Bruno Haible  <bruno@clisp.org>
28243
28244         spawn: Don't override the system defined values on FreeBSD 8.
28245         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28246         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28247         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28248         if HAVE_POSIX_SPAWN is 1.
28249         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28250
28251 2010-03-01  Bruno Haible  <bruno@clisp.org>
28252
28253         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28254         regarding Automake.
28255
28256 2010-02-25  Bruno Haible  <bruno@clisp.org>
28257
28258         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28259         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28260         setting, not afterwards.
28261         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28262
28263 2010-02-24  Eric Blake  <eblake@redhat.com>
28264
28265         bootstrap, git-version-gen: use timestamp
28266         * build-aux/git-version-gen (scriptversion): Force UTC.
28267         * build-aux/bootstrap (scriptversion): New variable.
28268
28269         bootstrap: allow older git
28270         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28271         older than 1.6.4.  Requested by the libvirt project.
28272
28273 2010-02-23  Eric Blake  <eblake@redhat.com>
28274
28275         warn-on-use: work with old autoconf
28276         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28277         AS_VAR semantics of autoconf 2.60.
28278         Reported by Bruno Haible.
28279
28280         bootstrap: improve some comments
28281         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28282         clarification comments.
28283
28284         gettimeofday: provide correct function
28285         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28286         when replacement is declared, otherwise provide gettimeofday.
28287         Reported by Michael Goffioul.
28288
28289 2010-02-23  Jim Meyering  <meyering@redhat.com>
28290
28291         lib-ignore: relax license to "unlimited", not LGPLv2+
28292         * modules/lib-ignore (License): Relax to "unlimited".
28293
28294 2010-02-23  Jim Meyering  <meyering@redhat.com>
28295
28296         lib-ignore: relax license to LGPLv2+
28297         * modules/lib-ignore (License): Relax to LGPLv2+.
28298
28299 2010-02-22  Eric Blake  <eblake@redhat.com>
28300
28301         lseek: avoid bash 3.2 broken pipe bug
28302         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28303         warning from bash 3.2.
28304         Reported by Ben Pfaff, with analysis from Bruno Haible.
28305
28306         bootstrap: support non-FSF copyright holder
28307         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28308         bootstrap.conf override of COPYRIGHT_HOLDER.
28309         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28310
28311         bootstrap: interoperate with gettext 0.14.1
28312         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28313
28314         bootstrap: allow for alternate submodule location
28315         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28316         hardcoding submodule location.
28317         (gnulib_mk): Allow direct use of Makefile.am.
28318
28319         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28320         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28321         rather than reconfiguring where the submodule points.
28322
28323         gettimeofday: restore support for platforms that lack function
28324         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28325         replacement if function is missing.
28326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28327         * modules/sys_time (Makefile.am): Substitute it.
28328         * lib/sys_time.in.h (gettimeofday): Check it.
28329         Reported by Michael Goffioul.
28330
28331 2010-02-21  Bruno Haible  <bruno@clisp.org>
28332
28333         * lib/stdio.in.h (obstack_printf): Fix typo.
28334
28335 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28336
28337         vc-list-files: use bzr ls's -R option
28338         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28339         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28340
28341 2010-02-21  Jim Meyering  <meyering@redhat.com>
28342
28343         init.sh: fix EXEEXT shims to work also for names like test-prog
28344         * tests/init.sh: Re-exec a better shell, when needed.
28345         If the current shell lacks support for posix $(...), an init.sh-using
28346         test will now try to find a shell that supports that.  If EXEEXT is
28347         nonempty, we also require support for hyphen-in-alias-name and shell
28348         substitutions like ${var#glob}.  Failure to find such a shell results
28349         in a skipped test.
28350
28351 2010-02-21  Bruno Haible  <bruno@clisp.org>
28352
28353         Really work around around "broken pipe" error message from bash 3.2.
28354         * gnulib-tool (func_reset_sigpipe): Remove function.
28355         (echo): In bash 3.2, define to a function that uses printf.
28356         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28357
28358 2010-02-20  Bruno Haible  <bruno@clisp.org>
28359
28360         Restore support for automake 1.9.6 with autoconf 2.61.
28361         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28362         Reported by James Youngman <jay@gnu.org>.
28363
28364 2010-02-20  Bruno Haible  <bruno@clisp.org>
28365
28366         Improve *printf warning condition.
28367         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28368         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28369         and the function is overridden due to SIGPIPE emulation.
28370
28371 2010-02-20  Bruno Haible  <bruno@clisp.org>
28372
28373         * lib/stdio.in.h: Tweak comments.
28374
28375 2010-02-19  Bruno Haible  <bruno@clisp.org>
28376
28377         Make it easier to find modules. New gnulib-tool option '--find'.
28378         * gnulib-tool: New option --find.
28379         (func_usage): Document it.
28380         (func_sanitize_modulelist): New function, extracted from
28381         func_all_modules.
28382         (func_all_modules): Invoke it.
28383         * doc/gnulib-tool.texi (Which modules?): New node.
28384
28385 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28386
28387         * lib/sys_select.in.h: Provide select replacement even if
28388         sys/select.h exists on a system, for Interix.
28389
28390 2010-02-18  Jim Meyering  <meyering@redhat.com>
28391
28392         init.sh: don't use $(...) just yet
28393         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28394         to accommodate e.g., Solaris' /bin/sh.
28395
28396 2010-02-17  Bruno Haible  <bruno@clisp.org>
28397
28398         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28399         Reported by Ludovic Courtès <ludo@gnu.org>.
28400
28401 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28402
28403         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28404         linking with -lintl.
28405
28406 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28407
28408         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28409         if not provided by the system's netdb.h.  Reported by
28410         ludo@gnu.org (Ludovic Courtès).
28411
28412 2010-02-15  Jim Meyering  <meyering@redhat.com>
28413
28414         init.sh: improve portability and efficiency
28415         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28416         "dummy" in a for loop.
28417         Use '!', not '^' to select the complement of a character set used
28418         in a "case" statement.
28419         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28420         Suggestions from Eric Blake.
28421
28422         init.sh: automatically accommodate programs with the .exe suffix
28423         Automatically arrange for an invocation of "prog" to execute the
28424         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28425         may use the simpler "prog", yet still work when built on a system
28426         that requires specifying the added suffix.
28427         Do this by constructing a function named "prog" that invokes
28428         "prog.exe" for each .exe file in selected directories.
28429         * tests/init.sh (find_exe_basenames_): New function.
28430         (create_exe_shim_functions_): New function.
28431         (path_prepend_): Use it.
28432
28433         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28434         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28435         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28436
28437 2010-02-14  Jim Meyering  <meyering@redhat.com>
28438
28439         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28440         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28441         (sc_prohibit_hash_pjw_without_use): New rule.
28442
28443         maint.mk: allow the default upload destination dir to be overridden
28444         * top/maint.mk (upload_dest_dir_): Define with a default that
28445         preserves the status quo.
28446         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28447         Reported by Peter Simons.
28448
28449         maint.mk: prohibit inclusion of "hash.h" without_use
28450         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28451
28452 2010-02-10  Jim Meyering  <meyering@redhat.com>
28453
28454         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28455         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28456
28457 2010-02-09  Eric Blake  <ebb9@byu.net>
28458         and Bruno Haible  <bruno@clisp.org>
28459
28460         obstack-printf-posix: ensure declaration
28461         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28462         extracted from gl_FUNC_OBSTACK_PRINTF.
28463         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28464         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28465         Likewise.
28466         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28467         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28468         0.
28469
28470 2010-02-08  Bruno Haible  <bruno@clisp.org>
28471
28472         gnulib-tool: Fix typo in 2010-02-07 commit.
28473         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28474         Reported by Eric Blake.
28475
28476 2010-02-07  Bruno Haible  <bruno@clisp.org>
28477
28478         gnulib-tool: Fix up caching patches.
28479         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28480         option --no-cache. Use associative arrays when supported by the shell.
28481         (sed_comments): New variable.
28482         (modcache): Renamed from do_cache.
28483         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28484         abbreviate unnecessarily.
28485         (have_associative): New variable.
28486         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28487         way also for ksh and zsh.
28488         (func_init_sed_convert_to_cache_statements): New function, extracted
28489         from func_cache_lookup_module. Add support for associative arrays.
28490         Don't set the c_MODULE_cached variable here. Ignore all lines before
28491         the first field header. Remove only the final newline, not all trailing
28492         newlines. Support empty fields correctly. Limit the use of 'eval' to
28493         assignments.
28494         (func_get_description, func_get_status, func_get_notice,
28495         func_get_applicability, func_get_filelist, func_get_dependencies,
28496         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28497         func_get_automake_snippet, func_get_include_directive,
28498         func_get_link_directive, func_get_license, func_get_maintainer):
28499         Update documentation. List the unoptimized code first. Add support for
28500         associative arrays. Limit the use of 'eval' to assignments.
28501         (func_get_applicability): Undo stylistic pessimisations.
28502         (func_get_automake_snippet, func_get_include_directive): Reduce code
28503         duplication.
28504         (func_modules_transitive_closure, func_modules_add_dummy,
28505         func_modules_notice, func_modules_to_filelist, func_add_file,
28506         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28507         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28508         func_create_testdir, func_create_megatestdir): Update documentation.
28509
28510 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28511
28512         * gnulib-tool (func_cache_lookup_module): Store the module name
28513         belonging to the cache variable; error out if two different
28514         module names map to the same cache variable name.
28515
28516 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28517
28518         gnulib-tool: Make caching optional.
28519         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28520         Update matching short versions of --no-changelog.
28521         (func_usage): Update.
28522         (sed_extract_cache_prog): Renamed from ...
28523         (sed_extract_prog): ... this; revert to old extraction script.
28524         (func_get_description, func_get_status)
28525         (func_get_notice, func_get_applicability, func_get_filelist)
28526         (func_get_dependencies, func_get_autoconf_early_snippet)
28527         (func_get_autoconf_snippet, func_get_automake_snippet)
28528         (func_get_include_directive, func_get_link_directive)
28529         (func_get_license, func_get_maintainer): If $do_cache is false,
28530         use old, non-caching extraction scripts.
28531         Suggestion by Bruno Haible.
28532
28533 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28534
28535         gnulib-tool: cache module metainformation.
28536         * gnulib-tool (sed_extract_prog): Match newline before each
28537         header, and rewrite header to a shell variable suffix.
28538         (func_cache_var, func_cache_lookup_module): New functions,
28539         to turn a module name into a cache variable prefix, and to
28540         look up and cache module metainformation.
28541         (func_get_description, func_get_status)
28542         (func_get_notice, func_get_applicability, func_get_filelist)
28543         (func_get_dependencies, func_get_autoconf_early_snippet)
28544         (func_get_autoconf_snippet, func_get_automake_snippet)
28545         (func_get_include_directive, func_get_link_directive)
28546         (func_get_license, func_get_maintainer): Use
28547         func_cache_lookup_module.
28548
28549 2010-02-07  Bruno Haible  <bruno@clisp.org>
28550
28551         fnctl: Fix missing dependency.
28552         * modules/fcntl (Depends-on): Add getdtablesize.
28553         Reported by John W. Eaton <jwe@gnu.org>.
28554
28555 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28556
28557         Argp: fix recognition of short alias options.
28558
28559         * lib/argp-parse.c (convert_options): Fix improper use of
28560         `|' between character values.
28561         * tests/test-argp.c (group1_option): New alias option
28562         --read (-r).
28563         (group1_parser): Special handling for 'r'.
28564         (test15): New test case.
28565         (test_fun): Add test15.
28566         * tests/test-argp-2.sh: Update expected --help and --usage
28567         outputs.
28568
28569 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28570
28571         * tests/test-argp.c: Fix indentation.
28572
28573 2010-02-04  Eric Blake  <ebb9@byu.net>
28574
28575         gettimeofday: expose type of second argument
28576         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28577         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28578         * tests/test-gettimeofday.c: Use it to silence warning.
28579         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28580         the issue.
28581
28582 2010-02-03  Jim Meyering  <meyering@redhat.com>
28583
28584         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28585         * lib/regcomp.c (TYPE_SIGNED): Define.
28586         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28587
28588         regcomp.c: avoid a new -Wshadow warning
28589         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28590
28591 2010-02-01  Jim Meyering  <meyering@redhat.com>
28592
28593         removing useless parentheses in cpp #define directives
28594         For motivation, see commit c0221df4, "define STREQ(a,b)
28595         consistently, removing useless parentheses"
28596         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28597         * lib/mountlist.c (MNT_IGNORE): Likewise.
28598         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28599
28600 2010-02-01  Eric Blake  <ebb9@byu.net>
28601
28602         sys_time: use link-warning
28603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28604         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28605         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28606         * modules/sys_time (Depends-on): Add warn-on-use.
28607         (Makefile.am): Always build replacement.
28608         (configure.ac): Update substitutions.
28609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28611         bother with SYS_TIME_H.
28612         * modules/gettimeofday (configure.ac): Declare indicator.
28613         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28614         in use.
28615
28616         closein-tests: silence compiler warning
28617         * tests/test-closein.c (main): Ignore fread result.
28618         * modules/closein-tests (Depends-on): Add ignore-value.
28619
28620         tests: silence warning about system return
28621         * tests/test-areadlink-with-size.c (main): Ignore system result.
28622         * tests/test-areadlink.c (main): Likewise.
28623         * tests/test-areadlinkat-with-size.c (main): Likewise.
28624         * tests/test-areadlinkat.c (main): Likewise.
28625         * tests/test-canonicalize-lgpl.c (main): Likewise.
28626         * tests/test-canonicalize.c (main): Likewise.
28627         * tests/test-chown.c (main): Likewise.
28628         * tests/test-fchownat.c (main): Likewise.
28629         * tests/test-fdutimensat.c (main): Likewise.
28630         * tests/test-fstatat.c (main): Likewise.
28631         * tests/test-futimens.c (main): Likewise.
28632         * tests/test-lchown.c (main): Likewise.
28633         * tests/test-link.c (main): Likewise.
28634         * tests/test-linkat.c (main): Likewise.
28635         * tests/test-lstat.c (main): Likewise.
28636         * tests/test-mkdir.c (main): Likewise.
28637         * tests/test-mkdirat.c (main): Likewise.
28638         * tests/test-mkfifo.c (main): Likewise.
28639         * tests/test-mkfifoat.c (main): Likewise.
28640         * tests/test-mknod.c (main): Likewise.
28641         * tests/test-readlink.c (main): Likewise.
28642         * tests/test-remove.c (main): Likewise.
28643         * tests/test-rename.c (main): Likewise.
28644         * tests/test-renameat.c (main): Likewise.
28645         * tests/test-rmdir.c (main): Likewise.
28646         * tests/test-symlink.c (main): Likewise.
28647         * tests/test-symlinkat.c (main): Likewise.
28648         * tests/test-unlink.c (main): Likewise.
28649         * tests/test-unlinkat.c (main): Likewise.
28650         * tests/test-utimens.c (main): Likewise.
28651         * tests/test-utimensat.c (main): Likewise.
28652         * modules/areadlink-tests (Depends-on): Add ignore-value.
28653         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28654         * modules/areadlinkat-tests (Depends-on): Likewise.
28655         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28656         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28657         * modules/canonicalize-tests (Depends-on): Likewise.
28658         * modules/chown-tests (Depends-on): Likewise.
28659         * modules/fdutimensat-tests (Depends-on): Likewise.
28660         * modules/futimens-tests (Depends-on): Likewise.
28661         * modules/lchown-tests (Depends-on): Likewise.
28662         * modules/link-tests (Depends-on): Likewise.
28663         * modules/linkat-tests (Depends-on): Likewise.
28664         * modules/lstat-tests (Depends-on): Likewise.
28665         * modules/mkdir-tests (Depends-on): Likewise.
28666         * modules/mkfifo-tests (Depends-on): Likewise.
28667         * modules/mkfifoat-tests (Depends-on): Likewise.
28668         * modules/mknod-tests (Depends-on): Likewise.
28669         * modules/openat-tests (Depends-on): Likewise.
28670         * modules/readlink-tests (Depends-on): Likewise.
28671         * modules/remove-tests (Depends-on): Likewise.
28672         * modules/rename-tests (Depends-on): Likewise.
28673         * modules/renameat-tests (Depends-on): Likewise.
28674         * modules/rmdir-tests (Depends-on): Likewise.
28675         * modules/symlink-tests (Depends-on): Likewise.
28676         * modules/symlinkat-tests (Depends-on): Likewise.
28677         * modules/unlink-tests (Depends-on): Likewise.
28678         * modules/utimens-tests (Depends-on): Likewise.
28679         * modules/utimensat-tests (Depends-on): Likewise.
28680
28681 2010-01-31  Bruno Haible  <bruno@clisp.org>
28682
28683         Perform the same test for many <math.h> functions.
28684         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28685         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28686         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28687         of gl_MATHFUNC.
28688         * modules/acos (configure.ac): Likewise.
28689         * modules/asin (configure.ac): Likewise.
28690         * modules/atan (configure.ac): Likewise.
28691         * modules/atan2 (configure.ac): Likewise.
28692         * modules/cbrt (configure.ac): Likewise.
28693         * modules/copysign (configure.ac): Likewise.
28694         * modules/cos (configure.ac): Likewise.
28695         * modules/cosh (configure.ac): Likewise.
28696         * modules/erf (configure.ac): Likewise.
28697         * modules/erfc (configure.ac): Likewise.
28698         * modules/exp (configure.ac): Likewise.
28699         * modules/fmod (configure.ac): Likewise.
28700         * modules/hypot (configure.ac): Likewise.
28701         * modules/j0 (configure.ac): Likewise.
28702         * modules/j1 (configure.ac): Likewise.
28703         * modules/jn (configure.ac): Likewise.
28704         * modules/lgamma (configure.ac): Likewise.
28705         * modules/log (configure.ac): Likewise.
28706         * modules/log10 (configure.ac): Likewise.
28707         * modules/log1p (configure.ac): Likewise.
28708         * modules/pow (configure.ac): Likewise.
28709         * modules/remainder (configure.ac): Likewise.
28710         * modules/sin (configure.ac): Likewise.
28711         * modules/sinh (configure.ac): Likewise.
28712         * modules/tan (configure.ac): Likewise.
28713         * modules/tanh (configure.ac): Likewise.
28714         * modules/y0 (configure.ac): Likewise.
28715         * modules/y1 (configure.ac): Likewise.
28716         * modules/yn (configure.ac): Likewise.
28717         Suggested by Paolo Bonzini.
28718
28719 2010-01-31  Bruno Haible  <bruno@clisp.org>
28720
28721         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28722
28723 2010-01-31  Bruno Haible  <bruno@clisp.org>
28724
28725         Work around getdelim() bug on FreeBSD 8.0.
28726         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28727         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28728         not work.
28729         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28730         is 1.
28731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28732         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28733         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28734         a non-zero size.
28735         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28736
28737 2010-01-31  Bruno Haible  <bruno@clisp.org>
28738
28739         Work around getline() bug on FreeBSD 8.0.
28740         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28741         and a non-zero size.
28742         * tests/test-getline.c (main): Likewise.
28743         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28744         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28745
28746 2010-01-28  Eric Blake  <ebb9@byu.net>
28747
28748         regex: fix build failure
28749         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28750         platforms.
28751
28752 2010-01-28  Jim Meyering  <meyering@redhat.com>
28753
28754         regex: do not ignore memory allocation failure
28755         * lib/regex_internal.c (create_cd_newstate): Detect
28756         re_node_set_init_copy failure.   Extracted from glibc commit
28757         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28758
28759         regex: sync more white-space changes from libc
28760         * lib/regex_internal.c: White-space only changes.
28761         * lib/regexec.c: Likewise.
28762
28763         regex: add many uses of __attribute_warn_unused_result__
28764         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28765         * lib/regexec.c: Likewise.
28766         Extracted from a messy glibc commit.
28767
28768         regcomp.c: spelling and merge-artifact from glibc
28769         * lib/regcomp.c: Merge remainder of glibc's
28770         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28771
28772         regcomp.c: sync white-space changes from glibc
28773         * lib/regcomp.c: Merge to accommodate white space
28774         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28775
28776         regcomp.c: do not ignore internal return values
28777         * lib/regcomp.c: Do not ignore internal return values.
28778         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28779         but without its white-space changes and spelling fixes.
28780
28781         regex_internal.h: define __attribute_warn_unused_result__
28782         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28783
28784         maint: add a syntax-check rule to check for vulnerable Makefile.in
28785         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28786
28787 2010-01-27  Jim Meyering  <meyering@redhat.com>
28788
28789         ncftpput-ftp: clean up spaces
28790         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28791         Remove trailing blanks.
28792
28793 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28794
28795         * build-aux/git-version-gen: Fix copyright statement.
28796         * build-aux/gnupload: Likewise.
28797         * tests/test-arcfour.c: Likewise.
28798         * tests/test-arctwo.c: Likewise.
28799         * tests/test-count-one-bits.c: Likewise.
28800         * tests/test-crc.c: Likewise.
28801         * tests/test-des.c: Likewise.
28802         * tests/test-gc-arcfour.c: Likewise.
28803         * tests/test-gc-arctwo.c: Likewise.
28804         * tests/test-gc-des.c: Likewise.
28805         * tests/test-gc-hmac-md5.c: Likewise.
28806         * tests/test-gc-hmac-sha1.c: Likewise.
28807         * tests/test-gc-md2.c: Likewise.
28808         * tests/test-gc-md4.c: Likewise.
28809         * tests/test-gc-md5.c: Likewise.
28810         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28811         * tests/test-gc-rijndael.c: Likewise.
28812         * tests/test-gc-sha1.c: Likewise.
28813         * tests/test-gc.c: Likewise.
28814         * tests/test-gethostname.c: Likewise.
28815         * tests/test-gettimeofday.c: Likewise.
28816         * tests/test-hash.c: Likewise.
28817         * tests/test-hmac-md5.c: Likewise.
28818         * tests/test-hmac-sha1.c: Likewise.
28819         * tests/test-md2.c: Likewise.
28820         * tests/test-md4.c: Likewise.
28821         * tests/test-md5.c: Likewise.
28822         * tests/test-memchr.c: Likewise.
28823         * tests/test-memchr2.c: Likewise.
28824         * tests/test-memcmp.c: Likewise.
28825         * tests/test-memmem.c: Likewise.
28826         * tests/test-memrchr.c: Likewise.
28827         * tests/test-rawmemchr.c: Likewise.
28828         * tests/test-read-file.c: Likewise.
28829         * tests/test-rijndael.c: Likewise.
28830         * tests/test-sockets.c: Likewise.
28831         * tests/test-strchrnul.c: Likewise.
28832         * tests/test-strstr.c: Likewise.
28833         * tests/test-strtod.c: Likewise.
28834         * build-aux/ncftpput-ftp: Likewise.
28835
28836 2010-01-26  Eric Blake  <ebb9@byu.net>
28837
28838         ignore-value: update recommended header name
28839         * modules/ignore-value (Include): Only use <> for headers that
28840         exist in glibc.
28841
28842 2010-01-26  Jim Meyering  <meyering@redhat.com>
28843
28844         test-userspec.c: avoid compiler warnings
28845         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28846         and "initialization discards qualifiers..." warnings.
28847         Put the first "uid" in its own scope, and make char* members "const".
28848
28849 2010-01-25  Bruno Haible  <bruno@clisp.org>
28850
28851         gnulib-tool: Make warning diagnostics consistent.
28852         * gnulib-tool (func_warning): New function.
28853         Use it everywhere where gnulib-tool produces output to stderr and it is
28854         not a fatal error.
28855
28856 2010-01-25  Bruno Haible  <bruno@clisp.org>
28857
28858         Fix test dependencies.
28859         * modules/xstrtol-tests (Depends-on): Add inttypes.
28860         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28861
28862 2010-01-25 Pádraig Brady <P@draigBrady.com>
28863
28864         syntax-check: detect incorrect boolean macro values in config.h
28865         * modules/maintainer-makefile (configure.ac): Parameterize the location
28866         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28867         The logic is from Eric Blake and the location indicated by Jim Meyering.
28868         Note the more natural CONFIG_HEADER name is prohibited by automake
28869         for backwards compatibility reasons.
28870         * top/maint.mk (sc_Wundef_boolean): New rule.
28871
28872 2010-01-25  Jim Meyering  <meyering@redhat.com>
28873
28874         bootstrap: detect MacOS 10.6's shasum, too
28875         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28876         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28877
28878 2010-01-23  Jim Meyering  <meyering@redhat.com>
28879
28880         xstrtoll: new module
28881         * modules/xstrtoll: New file.
28882         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28883         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28884         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28885         ./configure fails if you use this module and lack "long long".
28886         * modules/xstrtoll-tests: New module.
28887         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28888         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28889         new init.sh-based test framework.
28890
28891 2010-01-24  Bruno Haible  <bruno@clisp.org>
28892
28893         Tests for module 'yn'.
28894         * modules/yn-tests: New file.
28895         * tests/test-yn.c: New file.
28896
28897         Tests for module 'y1'.
28898         * modules/y1-tests: New file.
28899         * tests/test-y1.c: New file.
28900
28901         Tests for module 'y0'.
28902         * modules/y0-tests: New file.
28903         * tests/test-y0.c: New file.
28904
28905         Tests for module 'tanh'.
28906         * modules/tanh-tests: New file.
28907         * tests/test-tanh.c: New file.
28908
28909         Tests for module 'tan'.
28910         * modules/tan-tests: New file.
28911         * tests/test-tan.c: New file.
28912
28913         Tests for module 'sqrt'.
28914         * modules/sqrt-tests: New file.
28915         * tests/test-sqrt.c: New file.
28916
28917         Tests for module 'sinh'.
28918         * modules/sinh-tests: New file.
28919         * tests/test-sinh.c: New file.
28920
28921         Tests for module 'sin'.
28922         * modules/sin-tests: New file.
28923         * tests/test-sin.c: New file.
28924
28925         Tests for module 'rint'.
28926         * modules/rint-tests: New file.
28927         * tests/test-rint.c: New file.
28928
28929         Tests for module 'remainder'.
28930         * modules/remainder-tests: New file.
28931         * tests/test-remainder.c: New file.
28932
28933         Tests for module 'pow'.
28934         * modules/pow-tests: New file.
28935         * tests/test-pow.c: New file.
28936
28937         Tests for module 'nextafter'.
28938         * modules/nextafter-tests: New file.
28939         * tests/test-nextafter.c: New file.
28940
28941         Tests for module 'modf'.
28942         * modules/modf-tests: New file.
28943         * tests/test-modf.c: New file.
28944
28945         Tests for module 'logb'.
28946         * modules/logb-tests: New file.
28947         * tests/test-logb.c: New file.
28948
28949         Tests for module 'log1p'.
28950         * modules/log1p-tests: New file.
28951         * tests/test-log1p.c: New file.
28952
28953         Tests for module 'log10'.
28954         * modules/log10-tests: New file.
28955         * tests/test-log10.c: New file.
28956
28957         Tests for module 'log'.
28958         * modules/log-tests: New file.
28959         * tests/test-log.c: New file.
28960
28961         Tests for module 'lgamma'.
28962         * modules/lgamma-tests: New file.
28963         * tests/test-lgamma.c: New file.
28964
28965         Tests for module 'ldexp'.
28966         * modules/ldexp-tests: New file.
28967         * tests/test-ldexp.c: New file.
28968
28969         Tests for module 'jn'.
28970         * modules/jn-tests: New file.
28971         * tests/test-jn.c: New file.
28972
28973         Tests for module 'j1'.
28974         * modules/j1-tests: New file.
28975         * tests/test-j1.c: New file.
28976
28977         Tests for module 'j0'.
28978         * modules/j0-tests: New file.
28979         * tests/test-j0.c: New file.
28980
28981         Tests for module 'hypot'.
28982         * modules/hypot-tests: New file.
28983         * tests/test-hypot.c: New file.
28984
28985         Tests for module 'fmod'.
28986         * modules/fmod-tests: New file.
28987         * tests/test-fmod.c: New file.
28988
28989         Tests for module 'fabs'.
28990         * modules/fabs-tests: New file.
28991         * tests/test-fabs.c: New file.
28992
28993         Tests for module 'exp'.
28994         * modules/exp-tests: New file.
28995         * tests/test-exp.c: New file.
28996
28997         Tests for module 'erfc'.
28998         * modules/erfc-tests: New file.
28999         * tests/test-erfc.c: New file.
29000
29001         Tests for module 'erf'.
29002         * modules/erf-tests: New file.
29003         * tests/test-erf.c: New file.
29004
29005         Tests for module 'cosh'.
29006         * modules/cosh-tests: New file.
29007         * tests/test-cosh.c: New file.
29008
29009         Tests for module 'cos'.
29010         * modules/cos-tests: New file.
29011         * tests/test-cos.c: New file.
29012
29013         Tests for module 'copysign'.
29014         * modules/copysign-tests: New file.
29015         * tests/test-copysign.c: New file.
29016
29017         Tests for module 'cbrt'.
29018         * modules/cbrt-tests: New file.
29019         * tests/test-cbrt.c: New file.
29020
29021         Tests for module 'atan2'.
29022         * modules/atan2-tests: New file.
29023         * tests/test-atan2.c: New file.
29024
29025         Tests for module 'atan'.
29026         * modules/atan-tests: New file.
29027         * tests/test-atan.c: New file.
29028
29029         Tests for module 'asin'.
29030         * modules/asin-tests: New file.
29031         * tests/test-asin.c: New file.
29032
29033         Tests for module 'acos'.
29034         * modules/acos-tests: New file.
29035         * tests/test-acos.c: New file.
29036
29037 2010-01-24  Bruno Haible  <bruno@clisp.org>
29038
29039         Fix tests for common <math.h> functions.
29040         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29041         code snippet that references the function pointer, rather than merely
29042         calling the function. Substitute the FUNC_LIBM variable.
29043         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29044         * modules/acos (configure.ac): Likewise.
29045         * modules/asin (configure.ac): Likewise.
29046         * modules/atan (configure.ac): Likewise.
29047         * modules/atan2 (configure.ac): Likewise.
29048         * modules/cbrt (configure.ac): Likewise.
29049         * modules/copysign (configure.ac): Likewise.
29050         * modules/cos (configure.ac): Likewise.
29051         * modules/cosh (configure.ac): Likewise.
29052         * modules/erf (configure.ac): Likewise.
29053         * modules/erfc (configure.ac): Likewise.
29054         * modules/exp (configure.ac): Likewise.
29055         * modules/fabs (configure.ac): Likewise.
29056         * modules/fmod (configure.ac): Likewise.
29057         * modules/hypot (configure.ac): Likewise.
29058         * modules/j0 (configure.ac): Likewise.
29059         * modules/j1 (configure.ac): Likewise.
29060         * modules/jn (configure.ac): Likewise.
29061         * modules/ldexp (configure.ac): Likewise.
29062         * modules/lgamma (configure.ac): Likewise.
29063         * modules/log (configure.ac): Likewise.
29064         * modules/log10 (configure.ac): Likewise.
29065         * modules/log1p (configure.ac): Likewise.
29066         * modules/logb (configure.ac): Likewise.
29067         * modules/modf (configure.ac): Likewise.
29068         * modules/nextafter (configure.ac): Likewise.
29069         * modules/pow (configure.ac): Likewise.
29070         * modules/remainder (configure.ac): Likewise.
29071         * modules/rint (configure.ac): Likewise.
29072         * modules/sin (configure.ac): Likewise.
29073         * modules/sinh (configure.ac): Likewise.
29074         * modules/tan (configure.ac): Likewise.
29075         * modules/tanh (configure.ac): Likewise.
29076         * modules/y0 (configure.ac): Likewise.
29077         * modules/y1 (configure.ac): Likewise.
29078         * modules/yn (configure.ac): Likewise.
29079
29080 2010-01-24  Bruno Haible  <bruno@clisp.org>
29081
29082         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29083         * tests/test-acosl.c (x): New variable.
29084         (main): Store argument in x and fetch it from x.
29085         * tests/test-asinl.c (x): New variable.
29086         (main): Store argument in x and fetch it from x.
29087         * tests/test-atanl.c (x): New variable.
29088         (main): Store argument in x and fetch it from x.
29089         * tests/test-cosl.c (x): New variable.
29090         (main): Store argument in x and fetch it from x.
29091         * tests/test-expl.c (x): New variable.
29092         (main): Store argument in x and fetch it from x.
29093         * tests/test-logl.c (x): New variable.
29094         (main): Store argument in x and fetch it from x.
29095         * tests/test-sinl.c (x): New variable.
29096         (main): Store argument in x and fetch it from x.
29097         * tests/test-sqrtl.c (x): New variable.
29098         (main): Store argument in x and fetch it from x.
29099         * tests/test-tanl.c (x): New variable.
29100         (main): Store argument in x and fetch it from x.
29101
29102 2010-01-24  Bruno Haible  <bruno@clisp.org>
29103
29104         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29105         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29106         assignments to the initial TESTS_ENVIRONMENT.
29107         * doc/gnulib.texi (Unit test modules): Document it.
29108         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29109         TESTS_ENVIRONMENT.
29110         * modules/btowc-tests (Makefile.am): Likewise.
29111         * modules/c-stack-tests (Makefile.am): Likewise.
29112         * modules/c-strcase-tests (Makefile.am): Likewise.
29113         * modules/copy-file-tests (Makefile.am): Likewise.
29114         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29115         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29116         * modules/mbrtowc-tests (Makefile.am): Likewise.
29117         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29118         * modules/mbscasestr-tests (Makefile.am): Likewise.
29119         * modules/mbschr-tests (Makefile.am): Likewise.
29120         * modules/mbscspn-tests (Makefile.am): Likewise.
29121         * modules/mbsinit-tests (Makefile.am): Likewise.
29122         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29123         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29124         * modules/mbspbrk-tests (Makefile.am): Likewise.
29125         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29126         * modules/mbsrchr-tests (Makefile.am): Likewise.
29127         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29128         * modules/mbsspn-tests (Makefile.am): Likewise.
29129         * modules/mbsstr-tests (Makefile.am): Likewise.
29130         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29131         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29132         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29133         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29134         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29135         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29136         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29137         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29138         * modules/wcrtomb-tests (Makefile.am): Likewise.
29139         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29140         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29141         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29142         assignments from TESTS_ENVIRONMENT.
29143         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29144         augmentation.
29145         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29146         * modules/atexit-tests (Makefile.am): Likewise.
29147         * modules/binary-io-tests (Makefile.am): Likewise.
29148         * modules/closein-tests (Makefile.am): Likewise.
29149         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29150         * modules/exclude-tests (Makefile.am): Likewise.
29151         * modules/fflush-tests (Makefile.am): Likewise.
29152         * modules/fpending-tests (Makefile.am): Likewise.
29153         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29154         * modules/freadahead-tests (Makefile.am): Likewise.
29155         * modules/freadptr-tests (Makefile.am): Likewise.
29156         * modules/freadseek-tests (Makefile.am): Likewise.
29157         * modules/fseek-tests (Makefile.am): Likewise.
29158         * modules/fseeko-tests (Makefile.am): Likewise.
29159         * modules/ftell-tests (Makefile.am): Likewise.
29160         * modules/ftello-tests (Makefile.am): Likewise.
29161         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29162         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29163         * modules/lseek-tests (Makefile.am): Likewise.
29164         * modules/parse-duration-tests (Makefile.am): Likewise.
29165         * modules/perror-tests (Makefile.am): Likewise.
29166         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29167         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29168         * modules/pipe-tests (Makefile.am): Likewise.
29169         * modules/pread-tests (Makefile.am): Likewise.
29170         * modules/printf-posix-tests (Makefile.am): Likewise.
29171         * modules/select-tests (Makefile.am): Likewise.
29172         * modules/sigpipe-tests (Makefile.am): Likewise.
29173         * modules/tsearch-tests (Makefile.am): Likewise.
29174         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29175         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29176         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29177         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29178         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29179         * modules/version-etc-tests (Makefile.am): Likewise.
29180         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29181         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29182         * modules/xalloc-die-tests (Makefile.am): Likewise.
29183         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29184         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29185         * modules/xstrtol-tests (Makefile.am): Likewise.
29186         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29187         * modules/yesno-tests (Makefile.am): Likewise.
29188         Suggested by Jim Meyering.
29189
29190 2010-01-24  Bruno Haible  <bruno@clisp.org>
29191
29192         More documentation.
29193         * doc/gnulib.texi (Writing modules): New chapter.
29194         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29195         the new chapter.
29196
29197 2010-01-24  Jim Meyering  <meyering@redhat.com>
29198
29199         maint.mk: do not prepend "./" after filtering
29200         * top/maint.mk (_prepend_srcdir_prefix): New variable
29201         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29202         "./" when $(srcdir) is ".".
29203
29204         define STREQ(a,b) consistently, removing useless parentheses
29205         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29206         since the only risk is that "a" or "b" contains an unparenthesized
29207         comma, but if either did that, STREQ would have 3 or more arguments.
29208         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29209         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29210         * lib/hash-triple.c (STREQ): Likewise.
29211         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29212         * lib/getugroups.c (STREQ): Likewise.
29213
29214 2010-01-23  Jim Meyering  <meyering@redhat.com>
29215
29216         maint.mk: fix syntax-check in a non-srcdir build directory
29217         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29218         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29219
29220 2010-01-22  Jim Meyering  <meyering@redhat.com>
29221
29222         userspec: add unit tests
29223         * tests/test-userspec.c: New file.
29224         * modules/userspec-tests: Likewise.
29225
29226 2010-01-21  Jim Meyering  <meyering@redhat.com>
29227
29228         maint.mk: handle source file names containing "." robustly
29229         * top/maint.mk (_dot_escaped_srcdir): Define.
29230         (VC_LIST): Use it in LHS of sed substitution.
29231
29232 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29233
29234         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29235         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29236         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29237         from a non-srcdir build.
29238
29239 2010-01-20  Eric Blake  <ebb9@byu.net>
29240
29241         warn-on-use: use instead of link-warning
29242         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29243         * modules/unistd (Depends-on, Makefile.am): Likewise.
29244         * modules/arpa_inet (Depends-on): Replace link-warning with
29245         warn-on-use.
29246         (Makefile.am): Update rules accordingly.
29247         * modules/ctype (Depends-on, Makefile.am): Likewise.
29248         * modules/dirent (Depends-on, Makefile.am): Likewise.
29249         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29250         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29251         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29252         * modules/locale (Depends-on, Makefile.am): Likewise.
29253         * modules/math (Depends-on, Makefile.am): Likewise.
29254         * modules/search (Depends-on, Makefile.am): Likewise.
29255         * modules/signal (Depends-on, Makefile.am): Likewise.
29256         * modules/spawn (Depends-on, Makefile.am): Likewise.
29257         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29258         * modules/string (Depends-on, Makefile.am): Likewise.
29259         * modules/strings (Depends-on, Makefile.am): Likewise.
29260         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29261         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29262         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29263         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29264         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29265         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29266         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29267         * modules/wchar (Depends-on, Makefile.am): Likewise.
29268         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29269         should be poisoned.
29270         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29271         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29272         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29274         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29275         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29276         * m4/math_h.m4 (gl_MATH_H): Likewise.
29277         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29278         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29279         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29280         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29281         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29282         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29283         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29284         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29286         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29287         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29289         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29290         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29291         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29292         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29293         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29294         GL_LINK_WARNING.
29295         * lib/ctype.in.h: Likewise.
29296         * lib/dirent.in.h: Likewise.
29297         * lib/fcntl.in.h: Likewise.
29298         * lib/inttypes.in.h: Likewise.
29299         * lib/langinfo.in.h: Likewise.
29300         * lib/locale.in.h: Likewise.
29301         * lib/math.in.h: Likewise.
29302         * lib/search.in.h: Likewise.
29303         * lib/signal.in.h: Likewise.
29304         * lib/spawn.in.h: Likewise.
29305         * lib/stdio.in.h: Likewise.
29306         * lib/stdlib.in.h: Likewise.
29307         * lib/string.in.h: Likewise.
29308         * lib/strings.in.h: Likewise.
29309         * lib/sys_file.in.h: Likewise.
29310         * lib/sys_ioctl.in.h: Likewise.
29311         * lib/sys_select.in.h: Likewise.
29312         * lib/sys_socket.in.h: Likewise.
29313         * lib/sys_stat.in.h: Likewise.
29314         * lib/sys_times.in.h: Likewise.
29315         * lib/sys_utsname.in.h: Likewise.
29316         * lib/unistd.in.h: Likewise.
29317         * lib/wchar.in.h: Likewise.
29318
29319 2010-01-20  Bruno Haible  <bruno@clisp.org>
29320
29321         Avoid duplicate -lm.
29322         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29323         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29324         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29325         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29326         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29327         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29328         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29329         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29330         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29331         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29332         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29333         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29334         Reported by Paolo Bonzini.
29335
29336 2010-01-19  Bruno Haible  <bruno@clisp.org>
29337
29338         langinfo, nl_langinfo: Relicense under LGPLv2+.
29339         * modules/langinfo (License): Change to LGPLv2+.
29340         * modules/nl_langinfo (License): Likewise.
29341         Patch by David Lutterkort <lutter@redhat.com>.
29342
29343 2010-01-19  Bruno Haible  <bruno@clisp.org>
29344
29345         Avoid compilation error with cc on OSF/1 5.1.
29346         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29347         statement, not before.
29348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29349
29350 2010-01-18  Bruno Haible  <bruno@clisp.org>
29351
29352         Avoid a link error due to the __printf__ symbol.
29353         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29354         and 2.6.x.
29355         (__format__, __printf__): Remove definitions.
29356         * lib/argp-fmtstream.h: Likewise.
29357         * lib/argp.h: Likewise.
29358         * lib/error.h: Likewise.
29359         * lib/vasnprintf.h: Likewise.
29360         * lib/xprintf.h: Likewise.
29361         * lib/xvasprintf.h: Likewise.
29362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29363
29364 2010-01-18  Bruno Haible  <bruno@clisp.org>
29365
29366         Tests for module 'tanl'.
29367         * modules/tanl-tests: New file.
29368         * tests/test-tanl.c: New file.
29369
29370         Tests for module 'sqrtl'.
29371         * modules/sqrtl-tests: New file.
29372         * tests/test-sqrtl.c: New file.
29373
29374         Tests for module 'sinl'.
29375         * modules/sinl-tests: New file.
29376         * tests/test-sinl.c: New file.
29377
29378         Tests for module 'logl'.
29379         * modules/logl-tests: New file.
29380         * tests/test-logl.c: New file.
29381
29382         Tests for module 'expl'.
29383         * modules/expl-tests: New file.
29384         * tests/test-expl.c: New file.
29385
29386         Tests for module 'cosl'.
29387         * modules/cosl-tests: New file.
29388         * tests/test-cosl.c: New file.
29389
29390         Tests for module 'atanl'.
29391         * modules/atanl-tests: New file.
29392         * tests/test-atanl.c: New file.
29393
29394         Tests for module 'asinl'.
29395         * modules/asinl-tests: New file.
29396         * tests/test-asinl.c: New file.
29397
29398         Tests for module 'acosl'.
29399         * modules/acosl-tests: New file.
29400         * tests/test-acosl.c: New file.
29401
29402         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29403         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29404         tanl): Use the standard gnulib idiom.
29405         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29406         * lib/sinl.c: Likewise.
29407         * lib/tanl.c: Don't include trigl.c.
29408         (kernel_tanl): Make static.
29409         * lib/sincosl.c: Include trigl.h first.
29410         * lib/trigl.c: Likewise.
29411         * m4/acosl.m4: New file.
29412         * m4/asinl.m4: New file.
29413         * m4/atanl.m4: New file.
29414         * m4/cosl.m4: New file.
29415         * m4/expl.m4: New file.
29416         * m4/logl.m4: New file.
29417         * m4/sinl.m4: New file.
29418         * m4/sqrtl.m4: New file.
29419         * m4/tanl.m4: New file.
29420         * m4/mathl.m4: Remove file.
29421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29422         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29423         Don't initialize GNULIB_MATHL.
29424         * modules/acosl: New file.
29425         * modules/asinl: New file.
29426         * modules/atanl: New file.
29427         * modules/cosl: New file.
29428         * modules/expl: New file.
29429         * modules/logl: New file.
29430         * modules/sinl: New file.
29431         * modules/sqrtl: New file.
29432         * modules/tanl: New file.
29433         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29434         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29435         substitute GNULIB_MATHL.
29436         * modules/mathl: Rewritten.
29437         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29438         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29439         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29440         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29441         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29442         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29443         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29444         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29445         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29446
29447 2010-01-18  Bruno Haible  <bruno@clisp.org>
29448
29449         sqrt: Make gl_FUNC_SQRT requirable.
29450         * m4/sqrt.m4: New file.
29451         * modules/sqrt (Files): Add it.
29452         (configure.ac): Invoke gl_FUNC_SQRT.
29453
29454 2010-01-18  Bruno Haible  <bruno@clisp.org>
29455
29456         New modules for common <math.h> functions.
29457         * m4/mathfunc.m4: New file.
29458         * modules/acos: New file.
29459         * modules/asin: New file.
29460         * modules/atan: New file.
29461         * modules/atan2: New file.
29462         * modules/cbrt: New file.
29463         * modules/copysign: New file.
29464         * modules/cos: New file.
29465         * modules/cosh: New file.
29466         * modules/erf: New file.
29467         * modules/erfc: New file.
29468         * modules/exp: New file.
29469         * modules/fabs: New file.
29470         * modules/fmod: New file.
29471         * modules/hypot: New file.
29472         * modules/j0: New file.
29473         * modules/j1: New file.
29474         * modules/jn: New file.
29475         * modules/ldexp: New file.
29476         * modules/lgamma: New file.
29477         * modules/log: New file.
29478         * modules/log10: New file.
29479         * modules/log1p: New file.
29480         * modules/logb: New file.
29481         * modules/modf: New file.
29482         * modules/nextafter: New file.
29483         * modules/pow: New file.
29484         * modules/remainder: New file.
29485         * modules/rint: New file.
29486         * modules/sin: New file.
29487         * modules/sinh: New file.
29488         * modules/sqrt: New file.
29489         * modules/tan: New file.
29490         * modules/tanh: New file.
29491         * modules/y0: New file.
29492         * modules/y1: New file.
29493         * modules/yn: New file.
29494         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29495         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29496         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29497         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29498         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29499         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29500         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29501         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29502         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29503         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29504         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29505         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29506         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29507         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29508         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29509         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29510         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29511         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29512         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29513         * doc/posix-functions/log.texi: Mention the 'log' module.
29514         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29515         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29516         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29517         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29518         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29519         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29520         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29521         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29522         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29523         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29524         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29525         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29526         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29527         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29528         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29529         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29530
29531 2010-01-18  Jim Meyering  <meyering@redhat.com>
29532
29533         ignore-value: relax license to LGPLv2+
29534         * modules/ignore-value (License): Relax to LGPLv2+.
29535
29536         getdate: don't leak when TZ contains two or more '"'s
29537         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29538         double quote in TZ after the first one.
29539
29540         readtokens: do not leak internal token_lengths buffer
29541         * lib/readtokens.c (readtokens): Free the local, lengths,
29542         when the supplied "token_lengths" parameter is NULL.
29543
29544 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29545
29546         Fix a couple of missing LIBTHREAD link failures on AIX.
29547         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29548         $(LIBTHREAD).
29549         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29550
29551         Link test-poll against INET_PTON_LIB.
29552         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29553         for inet_pton on Solaris 10.
29554
29555 2010-01-17  Bruno Haible  <bruno@clisp.org>
29556
29557         unistdio/*-sprintf: Fix typo in module description.
29558         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29559         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29560         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29561         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29562         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29563         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29564         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29566
29567 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29568
29569         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29570         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29571         variables in shell case patterns, for AIX and HP-UX ksh.
29572
29573         Split large sed scripts, for HP-UX sed.
29574         * modules/stdio: Split sed scripts around 50 sed commands,
29575         to avoid HP-UX limit of 99 commands, in the near future.
29576         * modules/string: Likewise.
29577         * modules/unistd: Likewise.
29578
29579         gnulib-tool: avoid writing in the current directory.
29580         * gnulib-tool (func_emit_lib_Makefile_am)
29581         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29582         not in the current directory, so concurrent gnulib-tool
29583         instances do not interfere.
29584
29585 2010-01-16  Jim Meyering  <meyering@redhat.com>
29586
29587         doc: update users.txt
29588         * users.txt: Add grep.
29589         (diffutils, gzip): Update URLs.
29590
29591 2010-01-12  Bruno Haible  <bruno@clisp.org>
29592
29593         posix_spawn: Avoid test failure on Cygwin.
29594         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29595         characters.
29596         Reported by Simon Josefsson.
29597
29598 2010-01-12  Bruno Haible  <bruno@clisp.org>
29599
29600         * tests/test-cond.c (main): When skipping the test, show the reason.
29601
29602 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29603
29604         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29605
29606 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29607
29608         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29609         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29610
29611 2010-01-12  Eric Blake  <ebb9@byu.net>
29612
29613         build: guarantee AS_VAR_IF
29614         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29615         (gl_AS_VAR_IF): Move...
29616         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29617         Reported by Simon Josefsson.
29618
29619 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29620
29621         * lib/stdio.in.h: Fix typo.
29622
29623 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29624
29625         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29626         libgpg-error.
29627
29628 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29629
29630         * tests/test-xalloc-die.sh: Use $EXEEXT.
29631
29632 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29633             Bruno Haible  <bruno@clisp.org>
29634
29635         getlogin, getlogin_r: Avoid test failure.
29636         * tests/test-getlogin.c: Include <stdio.h>.
29637         (main): Skip the test when the function fails because stdin is not a
29638         tty.
29639         * tests/test-getlogin_r.c: Include <stdio.h>.
29640         (main): Skip the test when the function fails because stdin is not a
29641         tty.
29642
29643 2010-01-11  Eric Blake  <ebb9@byu.net>
29644
29645         tests: avoid more large file warnings
29646         * tests/test-fflush.c: Avoid warning about ftell use.
29647         * tests/test-fseek.c: Avoid warning about fseek use.
29648
29649 2010-01-10  Bruno Haible  <bruno@clisp.org>
29650
29651         nproc: Work better on Linux when /proc and /sys are not mounted.
29652         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29653         as lower bound when, on glibc/Linux systems,
29654         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29655         Suggested by Pádraig Brady <P@draigbrady.com>.
29656         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29657
29658         nproc: Refactor.
29659         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29660         extracted from num_processors.
29661         (num_processors): Call it.
29662
29663 2010-01-11  Jim Meyering  <meyering@redhat.com>
29664
29665         utimecmp: avoid new warning from upcoming gcc-4.5.0
29666         * lib/utimecmp.c (BILLION): Define using #define rather than an
29667         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29668
29669 2010-01-11  Eric Blake  <ebb9@byu.net>
29670
29671         math: add portability warnings for classification macros
29672         * modules/math (Depends-on): Add warn-on-use.
29673         (Makefile.am): Provide new substitutions.
29674         * m4/math_h.m4 (gl_MATH_H): Require inline.
29675         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29676         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29677         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29678         implement warnings.
29679
29680         unistd: warn on use of environ without module
29681         * modules/unistd (Depends-on): Add warn-on-use.
29682         (Makefile.am): Provide new substitutions.
29683         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29684         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29685
29686         stdio: warn on suspicious uses
29687         * modules/stdio (Depends-on): Add warn-on-use.
29688         (Makefile.am): Provide new substitutions.
29689         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29690         fseeko.
29691         * lib/stdio.in.h (gets): Always warn on use.
29692         (fseek, ftell): Adjust when warnings are issued, and honor
29693         _GL_NO_LARGE_FILES as a way to silence the warning.
29694         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29695         any warning about large file offsets.
29696         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29697         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29698         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29699         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29700         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29701         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29702         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29703         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29704
29705         warn-on-use: new module
29706         * modules/warn-on-use: New file.
29707         * build-aux/warn-on-use.h: Likewise.
29708         * m4/warn-on-use.m4: Likewise.
29709         * MODULES.html.sh (Support for building): Mention it.
29710
29711 2010-01-10  Bruno Haible  <bruno@clisp.org>
29712
29713         Tests for module 'unistr/u32-strdup'.
29714         * modules/unistr/u32-strdup-tests: New file.
29715         * tests/unistr/test-u32-strdup.c: New file.
29716
29717         Tests for module 'unistr/u16-strdup'.
29718         * modules/unistr/u16-strdup-tests: New file.
29719         * tests/unistr/test-u16-strdup.c: New file.
29720
29721         Tests for module 'unistr/u8-strdup'.
29722         * modules/unistr/u8-strdup-tests: New file.
29723         * tests/unistr/test-u8-strdup.c: New file.
29724         * tests/unistr/test-strdup.h: New file.
29725
29726         Tests for module 'unistr/u32-strncmp'.
29727         * modules/unistr/u32-strncmp-tests: New file.
29728         * tests/unistr/test-u32-strncmp.c: New file.
29729
29730         Tests for module 'unistr/u16-strncmp'.
29731         * modules/unistr/u16-strncmp-tests: New file.
29732         * tests/unistr/test-u16-strncmp.c: New file.
29733
29734         Tests for module 'unistr/u8-strncmp'.
29735         * modules/unistr/u8-strncmp-tests: New file.
29736         * tests/unistr/test-u8-strncmp.c: New file.
29737         * tests/unistr/test-strncmp.h: New file.
29738
29739         Tests for module 'unistr/u32-strcoll'.
29740         * modules/unistr/u32-strcoll-tests: New file.
29741         * tests/unistr/test-u32-strcoll.c: New file.
29742
29743         Tests for module 'unistr/u16-strcoll'.
29744         * modules/unistr/u16-strcoll-tests: New file.
29745         * tests/unistr/test-u16-strcoll.c: New file.
29746
29747         Tests for module 'unistr/u8-strcoll'.
29748         * modules/unistr/u8-strcoll-tests: New file.
29749         * tests/unistr/test-u8-strcoll.c: New file.
29750
29751         Tests for module 'unistr/u32-strcmp'.
29752         * modules/unistr/u32-strcmp-tests: New file.
29753         * tests/unistr/test-u32-strcmp.c: New file.
29754         * tests/unistr/test-u32-strcmp.h: New file.
29755
29756         Tests for module 'unistr/u16-strcmp'.
29757         * modules/unistr/u16-strcmp-tests: New file.
29758         * tests/unistr/test-u16-strcmp.c: New file.
29759         * tests/unistr/test-u16-strcmp.h: New file.
29760
29761         Tests for module 'unistr/u8-strcmp'.
29762         * modules/unistr/u8-strcmp-tests: New file.
29763         * tests/unistr/test-u8-strcmp.c: New file.
29764         * tests/unistr/test-u8-strcmp.h: New file.
29765         * tests/unistr/test-strcmp.h: New file.
29766
29767         Tests for module 'unistr/u32-strncat'.
29768         * modules/unistr/u32-strncat-tests: New file.
29769         * tests/unistr/test-u32-strncat.c: New file.
29770
29771         Tests for module 'unistr/u16-strncat'.
29772         * modules/unistr/u16-strncat-tests: New file.
29773         * tests/unistr/test-u16-strncat.c: New file.
29774
29775         Tests for module 'unistr/u8-strncat'.
29776         * modules/unistr/u8-strncat-tests: New file.
29777         * tests/unistr/test-u8-strncat.c: New file.
29778         * tests/unistr/test-strncat.h: New file.
29779
29780         Tests for module 'unistr/u32-strcat'.
29781         * modules/unistr/u32-strcat-tests: New file.
29782         * tests/unistr/test-u32-strcat.c: New file.
29783
29784         Tests for module 'unistr/u16-strcat'.
29785         * modules/unistr/u16-strcat-tests: New file.
29786         * tests/unistr/test-u16-strcat.c: New file.
29787
29788         Tests for module 'unistr/u8-strcat'.
29789         * modules/unistr/u8-strcat-tests: New file.
29790         * tests/unistr/test-u8-strcat.c: New file.
29791         * tests/unistr/test-strcat.h: New file.
29792
29793         Tests for module 'unistr/u32-stpncpy'.
29794         * modules/unistr/u32-stpncpy-tests: New file.
29795         * tests/unistr/test-u32-stpncpy.c: New file.
29796
29797         Tests for module 'unistr/u16-stpncpy'.
29798         * modules/unistr/u16-stpncpy-tests: New file.
29799         * tests/unistr/test-u16-stpncpy.c: New file.
29800
29801         Tests for module 'unistr/u8-stpncpy'.
29802         * modules/unistr/u8-stpncpy-tests: New file.
29803         * tests/unistr/test-u8-stpncpy.c: New file.
29804         * tests/unistr/test-stpncpy.h: New file.
29805
29806         Tests for module 'unistr/u32-strncpy'.
29807         * modules/unistr/u32-strncpy-tests: New file.
29808         * tests/unistr/test-u32-strncpy.c: New file.
29809
29810         Tests for module 'unistr/u16-strncpy'.
29811         * modules/unistr/u16-strncpy-tests: New file.
29812         * tests/unistr/test-u16-strncpy.c: New file.
29813
29814         Tests for module 'unistr/u8-strncpy'.
29815         * modules/unistr/u8-strncpy-tests: New file.
29816         * tests/unistr/test-u8-strncpy.c: New file.
29817         * tests/unistr/test-strncpy.h: New file.
29818
29819         Tests for module 'unistr/u32-stpcpy'.
29820         * modules/unistr/u32-stpcpy-tests: New file.
29821         * tests/unistr/test-u32-stpcpy.c: New file.
29822
29823         Tests for module 'unistr/u16-stpcpy'.
29824         * modules/unistr/u16-stpcpy-tests: New file.
29825         * tests/unistr/test-u16-stpcpy.c: New file.
29826
29827         Tests for module 'unistr/u8-stpcpy'.
29828         * modules/unistr/u8-stpcpy-tests: New file.
29829         * tests/unistr/test-u8-stpcpy.c: New file.
29830         * tests/unistr/test-stpcpy.h: New file.
29831
29832         Tests for module 'unistr/u32-strcpy'.
29833         * modules/unistr/u32-strcpy-tests: New file.
29834         * tests/unistr/test-u32-strcpy.c: New file.
29835
29836         Tests for module 'unistr/u16-strcpy'.
29837         * modules/unistr/u16-strcpy-tests: New file.
29838         * tests/unistr/test-u16-strcpy.c: New file.
29839
29840         Tests for module 'unistr/u8-strcpy'.
29841         * modules/unistr/u8-strcpy-tests: New file.
29842         * tests/unistr/test-u8-strcpy.c: New file.
29843         * tests/unistr/test-strcpy.h: New file.
29844
29845         Tests for module 'unistr/u32-strnlen'.
29846         * modules/unistr/u32-strnlen-tests: New file.
29847         * tests/unistr/test-u32-strnlen.c: New file.
29848
29849         Tests for module 'unistr/u16-strnlen'.
29850         * modules/unistr/u16-strnlen-tests: New file.
29851         * tests/unistr/test-u16-strnlen.c: New file.
29852
29853         Tests for module 'unistr/u8-strnlen'.
29854         * modules/unistr/u8-strnlen-tests: New file.
29855         * tests/unistr/test-u8-strnlen.c: New file.
29856         * tests/unistr/test-strnlen.h: New file.
29857
29858         Tests for module 'unistr/u32-strlen'.
29859         * modules/unistr/u32-strlen-tests: New file.
29860         * tests/unistr/test-u32-strlen.c: New file.
29861
29862         Tests for module 'unistr/u16-strlen'.
29863         * modules/unistr/u16-strlen-tests: New file.
29864         * tests/unistr/test-u16-strlen.c: New file.
29865
29866         Tests for module 'unistr/u8-strlen'.
29867         * modules/unistr/u8-strlen-tests: New file.
29868         * tests/unistr/test-u8-strlen.c: New file.
29869
29870         Tests for module 'unistr/u32-prev'.
29871         * modules/unistr/u32-prev-tests: New file.
29872         * tests/unistr/test-u32-prev.c: New file.
29873
29874         Tests for module 'unistr/u16-prev'.
29875         * modules/unistr/u16-prev-tests: New file.
29876         * tests/unistr/test-u16-prev.c: New file.
29877
29878         Tests for module 'unistr/u8-prev'.
29879         * modules/unistr/u8-prev-tests: New file.
29880         * tests/unistr/test-u8-prev.c: New file.
29881
29882         Tests for module 'unistr/u32-next'.
29883         * modules/unistr/u32-next-tests: New file.
29884         * tests/unistr/test-u32-next.c: New file.
29885
29886         Tests for module 'unistr/u16-next'.
29887         * modules/unistr/u16-next-tests: New file.
29888         * tests/unistr/test-u16-next.c: New file.
29889
29890         Tests for module 'unistr/u8-next'.
29891         * modules/unistr/u8-next-tests: New file.
29892         * tests/unistr/test-u8-next.c: New file.
29893
29894         Tests for module 'unistr/u32-strmbtouc'.
29895         * modules/unistr/u32-strmbtouc-tests: New file.
29896         * tests/unistr/test-u32-strmbtouc.c: New file.
29897
29898         Tests for module 'unistr/u16-strmbtouc'.
29899         * modules/unistr/u16-strmbtouc-tests: New file.
29900         * tests/unistr/test-u16-strmbtouc.c: New file.
29901
29902         Tests for module 'unistr/u8-strmbtouc'.
29903         * modules/unistr/u8-strmbtouc-tests: New file.
29904         * tests/unistr/test-u8-strmbtouc.c: New file.
29905
29906         Tests for module 'unistr/u32-strmblen'.
29907         * modules/unistr/u32-strmblen-tests: New file.
29908         * tests/unistr/test-u32-strmblen.c: New file.
29909
29910         Tests for module 'unistr/u16-strmblen'.
29911         * modules/unistr/u16-strmblen-tests: New file.
29912         * tests/unistr/test-u16-strmblen.c: New file.
29913
29914         Tests for module 'unistr/u8-strmblen'.
29915         * modules/unistr/u8-strmblen-tests: New file.
29916         * tests/unistr/test-u8-strmblen.c: New file.
29917
29918         Tests for module 'unistr/u32-cpy-alloc'.
29919         * modules/unistr/u32-cpy-alloc-tests: New file.
29920         * tests/unistr/test-u32-cpy-alloc.c: New file.
29921
29922         Tests for module 'unistr/u16-cpy-alloc'.
29923         * modules/unistr/u16-cpy-alloc-tests: New file.
29924         * tests/unistr/test-u16-cpy-alloc.c: New file.
29925
29926         Tests for module 'unistr/u8-cpy-alloc'.
29927         * modules/unistr/u8-cpy-alloc-tests: New file.
29928         * tests/unistr/test-u8-cpy-alloc.c: New file.
29929         * tests/unistr/test-cpy-alloc.h: New file.
29930
29931         Tests for module 'unistr/u32-mbsnlen'.
29932         * modules/unistr/u32-mbsnlen-tests: New file.
29933         * tests/unistr/test-u32-mbsnlen.c: New file.
29934
29935         Tests for module 'unistr/u16-mbsnlen'.
29936         * modules/unistr/u16-mbsnlen-tests: New file.
29937         * tests/unistr/test-u16-mbsnlen.c: New file.
29938
29939         Tests for module 'unistr/u8-mbsnlen'.
29940         * modules/unistr/u8-mbsnlen-tests: New file.
29941         * tests/unistr/test-u8-mbsnlen.c: New file.
29942
29943         Tests for module 'unistr/u32-chr'.
29944         * modules/unistr/u32-chr-tests: New file.
29945         * tests/unistr/test-u32-chr.c: New file.
29946
29947         Tests for module 'unistr/u16-chr'.
29948         * modules/unistr/u16-chr-tests: New file.
29949         * tests/unistr/test-u16-chr.c: New file.
29950
29951         Tests for module 'unistr/u8-chr'.
29952         * modules/unistr/u8-chr-tests: New file.
29953         * tests/unistr/test-u8-chr.c: New file.
29954         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29955
29956         Tests for module 'unistr/u32-cmp2'.
29957         * modules/unistr/u32-cmp2-tests: New file.
29958         * tests/unistr/test-u32-cmp2.c: New file.
29959
29960         Tests for module 'unistr/u16-cmp2'.
29961         * modules/unistr/u16-cmp2-tests: New file.
29962         * tests/unistr/test-u16-cmp2.c: New file.
29963
29964         Tests for module 'unistr/u8-cmp2'.
29965         * modules/unistr/u8-cmp2-tests: New file.
29966         * tests/unistr/test-u8-cmp2.c: New file.
29967         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29968
29969         Tests for module 'unistr/u32-cmp'.
29970         * modules/unistr/u32-cmp-tests: New file.
29971         * tests/unistr/test-u32-cmp.c: New file.
29972
29973         Tests for module 'unistr/u16-cmp'.
29974         * modules/unistr/u16-cmp-tests: New file.
29975         * tests/unistr/test-u16-cmp.c: New file.
29976
29977         Tests for module 'unistr/u8-cmp'.
29978         * modules/unistr/u8-cmp-tests: New file.
29979         * tests/unistr/test-u8-cmp.c: New file.
29980         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29981
29982         Tests for module 'unistr/u32-set'.
29983         * modules/unistr/u32-set-tests: New file.
29984         * tests/unistr/test-u32-set.c: New file.
29985
29986         Tests for module 'unistr/u16-set'.
29987         * modules/unistr/u16-set-tests: New file.
29988         * tests/unistr/test-u16-set.c: New file.
29989
29990         Tests for module 'unistr/u8-set'.
29991         * modules/unistr/u8-set-tests: New file.
29992         * tests/unistr/test-u8-set.c: New file.
29993         * tests/unistr/test-set.h: New file.
29994
29995         Tests for module 'unistr/u32-move'.
29996         * modules/unistr/u32-move-tests: New file.
29997         * tests/unistr/test-u32-move.c: New file.
29998
29999         Tests for module 'unistr/u16-move'.
30000         * modules/unistr/u16-move-tests: New file.
30001         * tests/unistr/test-u16-move.c: New file.
30002
30003         Tests for module 'unistr/u8-move'.
30004         * modules/unistr/u8-move-tests: New file.
30005         * tests/unistr/test-u8-move.c: New file.
30006         * tests/unistr/test-move.h: New file.
30007
30008         Tests for module 'unistr/u32-cpy'.
30009         * modules/unistr/u32-cpy-tests: New file.
30010         * tests/unistr/test-u32-cpy.c: New file.
30011
30012         Tests for module 'unistr/u16-cpy'.
30013         * modules/unistr/u16-cpy-tests: New file.
30014         * tests/unistr/test-u16-cpy.c: New file.
30015
30016         Tests for module 'unistr/u8-cpy'.
30017         * modules/unistr/u8-cpy-tests: New file.
30018         * tests/unistr/test-u8-cpy.c: New file.
30019         * tests/unistr/test-cpy.h: New file.
30020
30021 2010-01-09  Bruno Haible  <bruno@clisp.org>
30022
30023         Tests for module 'unistr/u32-uctomb'.
30024         * modules/unistr/u32-uctomb-tests: New file.
30025         * tests/unistr/test-u32-uctomb.c: New file.
30026
30027         Tests for module 'unistr/u16-uctomb'.
30028         * modules/unistr/u16-uctomb-tests: New file.
30029         * tests/unistr/test-u16-uctomb.c: New file.
30030
30031         Tests for module 'unistr/u8-uctomb'.
30032         * modules/unistr/u8-uctomb-tests: New file.
30033         * tests/unistr/test-u8-uctomb.c: New file.
30034
30035         Tests for module 'unistr/u32-mbtoucr'.
30036         * modules/unistr/u32-mbtoucr-tests: New file.
30037         * tests/unistr/test-u32-mbtoucr.c: New file.
30038
30039         Tests for module 'unistr/u16-mbtoucr'.
30040         * modules/unistr/u16-mbtoucr-tests: New file.
30041         * tests/unistr/test-u16-mbtoucr.c: New file.
30042
30043         Tests for module 'unistr/u8-mbtoucr'.
30044         * modules/unistr/u8-mbtoucr-tests: New file.
30045         * tests/unistr/test-u8-mbtoucr.c: New file.
30046
30047         Tests for module 'unistr/u32-mbtouc'.
30048         * modules/unistr/u32-mbtouc-tests: New file.
30049         * tests/unistr/test-u32-mbtouc.c: New file.
30050
30051         Tests for module 'unistr/u16-mbtouc'.
30052         * modules/unistr/u16-mbtouc-tests: New file.
30053         * tests/unistr/test-u16-mbtouc.c: New file.
30054
30055         Tests for module 'unistr/u8-mbtouc'.
30056         * modules/unistr/u8-mbtouc-tests: New file.
30057         * tests/unistr/test-u8-mbtouc.c: New file.
30058
30059         Tests for module 'unistr/u32-mbtouc-unsafe'.
30060         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30061         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30062         * tests/unistr/test-u32-mbtouc.h: New file.
30063
30064         Tests for module 'unistr/u16-mbtouc-unsafe'.
30065         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30066         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30067         * tests/unistr/test-u16-mbtouc.h: New file.
30068
30069         Tests for module 'unistr/u8-mbtouc-unsafe'.
30070         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30071         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30072         * tests/unistr/test-u8-mbtouc.h: New file.
30073
30074         Tests for module 'unistr/u32-mblen'.
30075         * modules/unistr/u32-mblen-tests: New file.
30076         * tests/unistr/test-u32-mblen.c: New file.
30077
30078         Tests for module 'unistr/u16-mblen'.
30079         * modules/unistr/u16-mblen-tests: New file.
30080         * tests/unistr/test-u16-mblen.c: New file.
30081
30082         Tests for module 'unistr/u8-mblen'.
30083         * modules/unistr/u8-mblen-tests: New file.
30084         * tests/unistr/test-u8-mblen.c: New file.
30085
30086         Tests for module 'unistr/u32-to-u16'.
30087         * modules/unistr/u32-to-u16-tests: New file.
30088         * tests/unistr/test-u32-to-u16.c: New file.
30089
30090         Tests for module 'unistr/u32-to-u8'.
30091         * modules/unistr/u32-to-u8-tests: New file.
30092         * tests/unistr/test-u32-to-u8.c: New file.
30093
30094         Tests for module 'unistr/u16-to-u32'.
30095         * modules/unistr/u16-to-u32-tests: New file.
30096         * tests/unistr/test-u16-to-u32.c: New file.
30097
30098         Tests for module 'unistr/u16-to-u8'.
30099         * modules/unistr/u16-to-u8-tests: New file.
30100         * tests/unistr/test-u16-to-u8.c: New file.
30101
30102         Tests for module 'unistr/u8-to-u32'.
30103         * modules/unistr/u8-to-u32-tests: New file.
30104         * tests/unistr/test-u8-to-u32.c: New file.
30105
30106         Tests for module 'unistr/u8-to-u16'.
30107         * modules/unistr/u8-to-u16-tests: New file.
30108         * tests/unistr/test-u8-to-u16.c: New file.
30109
30110         Tests for module 'unistr/u32-check'.
30111         * modules/unistr/u32-check-tests: New file.
30112         * tests/unistr/test-u32-check.c: New file.
30113
30114         Tests for module 'unistr/u16-check'.
30115         * modules/unistr/u16-check-tests: New file.
30116         * tests/unistr/test-u16-check.c: New file.
30117
30118         Tests for module 'unistr/u8-check'.
30119         * modules/unistr/u8-check-tests: New file.
30120         * tests/unistr/test-u8-check.c: New file.
30121
30122         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30123         (category_equals): New function.
30124         (main): Add more tests.
30125         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30126
30127         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30128
30129 2010-01-10  Bruno Haible  <bruno@clisp.org>
30130
30131         unistr/u*-strcoll: Try harder to distinguish different strings.
30132         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30133         compare s1 and s2 to see if they are different.
30134
30135 2010-01-10  Bruno Haible  <bruno@clisp.org>
30136
30137         unistr/u*-stpncpy: Fix the return value.
30138         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30139         description of the return value consistent with stpncpy in glibc.
30140         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30141         written non-NUL unit.
30142
30143 2010-01-10  Bruno Haible  <bruno@clisp.org>
30144
30145         unistr/u*-next: Add missing dependencies.
30146         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30147         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30148         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30149
30150 2010-01-10  Bruno Haible  <bruno@clisp.org>
30151
30152         unistr/u8-mbsnlen: Fix return value for incomplete character.
30153         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30154         u8_mblen.
30155         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30156         Remove unistr/u8-mblen.
30157         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30158         u16_mblen.
30159         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30160         Remove unistr/u16-mblen.
30161
30162 2010-01-10  Bruno Haible  <bruno@clisp.org>
30163
30164         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30165         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30166         Reported by Brian Gough <bjg@gnu.org> and
30167         Chris Clayton <chris2553@googlemail.com> via
30168         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30169
30170 2010-01-09  Bruno Haible  <bruno@clisp.org>
30171
30172         unistr/u16-to-u32: Reject invalid input.
30173         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30174         u16_mbtouc.
30175         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30176         Remove unistr/u16-mbtouc.
30177
30178         unistr/u16-to-u8: Reject invalid input.
30179         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30180         u16_mbtouc.
30181         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30182         Remove unistr/u16-mbtouc.
30183
30184         unistr/u8-to-u32: Reject invalid input.
30185         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30186         u8_mbtouc.
30187         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30188         Remove unistr/u8-mbtouc.
30189
30190         unistr/u8-to-u16: Reject invalid input.
30191         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30192         u8_mbtouc.
30193         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30194         Remove unistr/u8-mbtouc.
30195
30196 2010-01-09  Bruno Haible  <bruno@clisp.org>
30197
30198         Tests for module 'getlogin'.
30199         * modules/getlogin-tests: New file.
30200         * tests/test-getlogin.c: New file.
30201
30202         New module 'getlogin'.
30203         * lib/unistd.in.h (getlogin): New declaration.
30204         * lib/getlogin.c: New file.
30205         * m4/getlogin.m4: New file.
30206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30207         HAVE_GETLOGIN.
30208         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30209         HAVE_GETLOGIN.
30210         * modules/getlogin: New file.
30211         * doc/posix-functions/getlogin.texi: Mention the new module.
30212         Reported by John W. Eaton <jwe@gnu.org>.
30213
30214 2010-01-09  Bruno Haible  <bruno@clisp.org>
30215
30216         getlogin_r: Support for native Windows.
30217         * lib/getlogin_r.c: Include <windows.h>
30218         (getlogin_r): Implement for native Windows.
30219         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30220         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30221         via John W. Eaton <jwe@gnu.org>.
30222
30223 2010-01-09  Bruno Haible  <bruno@clisp.org>
30224
30225         getlogin_r: Small fixes.
30226         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30227         succeeds.
30228         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30229         before testing whether getlogin_r is declared. No need to set
30230         HAVE_DECL_GETLOGIN_R to 1.
30231         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30232
30233 2010-01-09  Bruno Haible  <bruno@clisp.org>
30234
30235         * lib/unistd.in.h (getlogin_r): Add comment.
30236
30237 2010-01-09  Bruno Haible  <bruno@clisp.org>
30238
30239         Tests for module 'getlogin_r'.
30240         * modules/getlogin_r-tests: New file.
30241         * tests/test-getlogin_r.c: New file.
30242
30243 2010-01-09  Jim Meyering  <meyering@redhat.com>
30244
30245         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30246         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30247         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30248
30249 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30250
30251         * lib/dup2.c (rpl_dup2): Improve comment.
30252
30253 2010-01-08  Eric Blake  <ebb9@byu.net>
30254
30255         maint.mk: allow packages to add makefile @@ exceptions
30256         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30257         (sc_makefile_check): Rename...
30258         (sc_makefile_at_at_check): ...to this, and use hook.
30259
30260         dup2: work around mingw bug
30261         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30262         Reported by Simon Josefsson.
30263
30264 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30265
30266         glob: Fix C++ compilation.
30267         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30268         C++.
30269
30270 2010-01-07  Bruno Haible  <bruno@clisp.org>
30271
30272         Fix indentation of wctype.in.h, broken since 2007-01-06.
30273         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30274
30275 2010-01-07  Bruno Haible  <bruno@clisp.org>
30276
30277         mbslen: Avoid collision with system function.
30278         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30279         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30280         * m4/mbslen.m4: New file.
30281         * modules/mbslen (Files): Add it.
30282         (configure.ac): Invoke gl_MBSLEN.
30283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30284         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30285         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30286         via Ian Beckwith <ianb@erislabs.net>.
30287
30288 2010-01-07  Bruno Haible  <bruno@clisp.org>
30289
30290         dirent: Document the last fix.
30291         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30292
30293 2010-01-07  Bruno Haible  <bruno@clisp.org>
30294
30295         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30296         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30297         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30298         va_list are defined.
30299         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30300         Reported by Eric Blake.
30301
30302 2010-01-07  Bruno Haible  <bruno@clisp.org>
30303
30304         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30305         * modules/xlist (Depends-on): Add 'list',
30306         * modules/xoset (Depends-on): Add 'oset'.
30307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30308
30309 2010-01-07  Bruno Haible  <bruno@clisp.org>
30310
30311         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30312         * doc/posix-functions/strncasecmp.texi: Likewise.
30313
30314 2010-01-07  Bruno Haible  <bruno@clisp.org>
30315
30316         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30317
30318 2010-01-07  John W. Eaton  <jwe@octave.org>
30319
30320         wctype: allow C++ use
30321         * lib/wctype.in.h: Add extern "C" block for C++.
30322
30323 2010-01-06  Eric Blake  <ebb9@byu.net>
30324
30325         maint.mk: detect incorrect GFDL usage
30326         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30327
30328 2010-01-06  Jim Meyering  <meyering@redhat.com>
30329         and Eric Blake  <ebb9@byu.net>
30330
30331         maint.mk: ignore multi-line copyright in NEWS
30332         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30333
30334 2010-01-06  Eric Blake  <ebb9@byu.net>
30335
30336         select: add missing dependency
30337         * modules/select-tests (Depends-on): Move sockets dependency...
30338         * modules/select (Depends-on): ...here.
30339         Reported by Ian Beckwith.
30340
30341         doc: regenerate INSTALL
30342         * doc/INSTALL: Reflect recent autoconf update.
30343         * doc/INSTALL.ISO: Likewise.
30344         * doc/INSTALL.UTF-8: Likewise.
30345
30346         pread: fix compilation on glibc
30347         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30348         Reported by Ralf Wildenhues.
30349
30350         dirent: fix test failure
30351         * lib/dirent.in.h (includes): Guarantee ino_t.
30352         Reported by Ralf Wildenhues.
30353
30354 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30355
30356         linkat, renameat: avoid bad free
30357         * lib/at-func2.c (at_func2): Fix typo.
30358         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30359
30360 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30361
30362         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30363         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30364         to avoid failure of symlink test later.
30365
30366 2010-01-06  Eric Blake  <ebb9@byu.net>
30367
30368         stdio, unistd: guarantee ssize_t
30369         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30370         2008 are exposed when needed.
30371         * lib/stdio.in.h (includes): Likewise.
30372         Reported by Ralf Wildenhues.
30373
30374 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30375
30376         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30377         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30378         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30379
30380 2010-01-06  Jim Meyering  <meyering@redhat.com>
30381
30382         readtokens: this module *does* require xalloc.h
30383         It uses only functions that were omitted by the old syntax-check rule.
30384         * lib/readtokens.c: Include "xalloc.h" once again.
30385         * modules/readtokens (Depends-on): Add xalloc.
30386         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30387
30388 2010-01-05  Eric Blake  <ebb9@byu.net>
30389
30390         maint: support 'make announcement' from a VPATH build
30391         * top/maint.mk (announcement): Look for correct NEWS file.
30392
30393 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30394
30395         utimens (fdutimens): ignore a negative FD, per contract
30396         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30397         when we have a valid file descriptor.  Otherwise, using a brand
30398         new glibc (with just-patched futimens that now fails with EBADF)
30399         would cause this function to fail with ENOSYS.
30400         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30401         See also http://bugzilla.redhat.com/552320.
30402
30403 2010-01-05  Eric Blake  <ebb9@byu.net>
30404
30405         strcase: document what it provides
30406         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30407         gnulib module.
30408         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30409         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30410
30411 2010-01-05  Jim Meyering  <meyering@redhat.com>
30412
30413         maint: remove useless inclusions of "xalloc.h"
30414         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30415         * lib/readtokens.c: Likewise.
30416         * lib/same.c: Likewise.
30417         * modules/getloadavg (Depends-on): Remove xalloc.
30418         * modules/readtokens: Likewise.
30419         * modules/same: Likewise.
30420
30421         maint.mk: include 4 more function names in alloca.h-checking regexp
30422         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30423         regexp.  Before, we would give a false-positive (saying alloca.h
30424         is included unnecessarily) when the only uses involved omitted symbols.
30425
30426         xalloc.h: use consistent formatting
30427         * lib/xalloc.h: Move declarations to start in the first column.
30428
30429 2010-01-05  Eric Blake  <ebb9@byu.net>
30430
30431         mkdir: avoid xalloc
30432         * lib/mkdir.c (includes): Drop unused header.
30433         Reported by John W. Eaton.
30434
30435 2010-01-04  Jim Meyering  <meyering@redhat.com>
30436
30437         nl_langinfo: avoid configure-time syntax error
30438         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30439         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30440         the empty string.  Don't let that provoke a shell syntax error.
30441
30442         regcomp, regexec, fnmatch: avoid array bounds read error
30443         * lib/regcomp.c (build_equiv_class): From glibc:
30444         Use only the low 24 bits of a findidx return value as an index
30445         into the weights array.  Patch by Ulrich Drepper:
30446         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30447         * lib/regexec.c (check_node_accept_bytes): Likewise.
30448         * lib/fnmatch_loop.c (FCT): Likewise.
30449
30450         regcomp: skip collseq lookup when there are no rules
30451         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30452         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30453
30454         regcomp: recognize ill-formed { } expressions
30455         * lib/regcomp.c (parse_dup_op): From glibc:
30456         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30457
30458         regcomp: fix typo in comment
30459         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30460         s/satisfy/satisfies/.
30461
30462         regcomp: sync from glibc: remove dead store
30463         * lib/regcomp.c (duplicate_node_closure): Remove useless
30464         search_duplicated_node call and dead store.
30465
30466         regcomp: sync from glibc; always use nl_langinfo
30467         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30468         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30469         * modules/regex (Depends-on): Add nl_langinfo.
30470
30471 2010-01-04  Eric Blake  <ebb9@byu.net>
30472
30473         fdopendir: fix configure test
30474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30475
30476 2010-01-01  Bruno Haible  <bruno@clisp.org>
30477
30478         wchar: Remove unused configure check.
30479         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30480
30481 2010-01-01  Eric Blake  <ebb9@byu.net>
30482
30483         headers: make check of system header explicit
30484         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30485         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30486         ourselves.
30487         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30488         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30490         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30491         internals.
30492         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30493         missing.
30494         Suggested by Bruno Haible.
30495
30496 2010-01-01  Jim Meyering  <meyering@redhat.com>
30497
30498         ChangeLog: tweak to eliminate unnecessary copyright line
30499         * ChangeLog: Remove a copyright line that was mistakenly updated
30500         by today's update-copyright run.  Reported by Eric Blake.
30501
30502         test-update-copyright: don't let envvar setting cause test failure
30503         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30504
30505 2010-01-01  Bruno Haible  <bruno@clisp.org>
30506
30507         localename: Avoid gcc warning.
30508         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30509         function if it is not used.
30510
30511 2010-01-01  Jim Meyering  <meyering@redhat.com>
30512
30513         update nearly all FSF copyright year lists to include 2010
30514         Use the same procedure as for 2009, outlined in
30515         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30516
30517         version-etc: set COPYRIGHT_YEAR to 2010
30518         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30519
30520 2009-12-31  Eric Blake  <ebb9@byu.net>
30521
30522         doc: correct availability of cygwin 1.5.x getopt
30523         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30524         variables.
30525         * doc/posix-functions/opterr.texi (opterr): Likewise.
30526         * doc/posix-functions/optind.texi (optind): Likewise.
30527         * doc/posix-functions/optopt.texi (optopt): Likewise.
30528         * doc/posix-functions/tzname.texi (tzname): Likewise.
30529
30530         openat: update maintainer
30531         * modules/openat (Maintainer): Add myself.
30532
30533         utimens: avoid shadowing warning
30534         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30535         buffers into one, to avoid shadowing, as well as avoiding a
30536         redundant stat.
30537         Reported by Jim Meyering.
30538
30539         test-dup2: avoid compiler warning
30540         * tests/test-dup2.c (is_inheritable): Only define if used.
30541
30542 2010-01-01  Bruno Haible  <bruno@clisp.org>
30543
30544         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30545         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30546         defined, use wctomb instead of wcrtomb.
30547
30548 2010-01-01  Bruno Haible  <bruno@clisp.org>
30549
30550         iconv: Reject native Solaris iconv.
30551         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30552         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30553
30554 2009-12-31  Bruno Haible  <bruno@clisp.org>
30555
30556         * tests/test-signal.c (main): Remove test of 'SIG'.
30557
30558 2009-12-31  Bruno Haible  <bruno@clisp.org>
30559
30560         spawn: Fix incomplete fix.
30561         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30562         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30563         warnings for GNULIB_POSIXCHECK again.
30564         Reported by Eric Blake.
30565
30566 2009-12-31  Bruno Haible  <bruno@clisp.org>
30567
30568         Avoid namespace pollution on glibc systems.
30569         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30570         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30571         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30572         glibc systems.
30573
30574 2009-12-31  Bruno Haible  <bruno@clisp.org>
30575
30576         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30577         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30579         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30581         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30582         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30583
30584 2009-12-31  Bruno Haible  <bruno@clisp.org>
30585
30586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30587         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30588         afterwards.
30589
30590 2009-12-31  Bruno Haible  <bruno@clisp.org>
30591
30592         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30593         SYS_UTSNAME_H.
30594
30595 2009-12-31  Bruno Haible  <bruno@clisp.org>
30596
30597         spawn: Fix misapplied patch.
30598         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30599         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30600         warnings for GNULIB_POSIXCHECK.
30601
30602 2009-12-31  Bruno Haible  <bruno@clisp.org>
30603
30604         times: Update after sys_times changed.
30605         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30606         * modules/times (Files): Add it.
30607         (configure.ac): Invoke gl_FUNC_TIMES.
30608
30609 2009-12-31  Bruno Haible  <bruno@clisp.org>
30610
30611         Use AC_C_INLINE where necessary.
30612         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30613         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30614         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30615         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30616         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30617         * m4/mbiter.m4 (gl_MBITER): Likewise.
30618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30619         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30620         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30621         * modules/u64 (configure.ac): Likewise.
30622
30623 2009-12-31  Bruno Haible  <bruno@clisp.org>
30624
30625         Use AC_C_INLINE instead of module 'inline' where possible.
30626         * modules/inline (Description): Clarify purpose.
30627         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30628         * modules/count-one-bits (Depends-on): Remove inline.
30629         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30630         * modules/openat (Depends-on): Remove inline.
30631         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30632         instead of depending on module 'inline'.
30633         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30634         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30635         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30636         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30637         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30638         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30639         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30640         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30641         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30642         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30643         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30644         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30645         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30646         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30647         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30648         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30649         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30650         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30651         Likewise.
30652         * modules/unictype/property-ascii-hex-digit (Depends-on,
30653         configure.ac): Likewise.
30654         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30655         configure.ac): Likewise.
30656         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30657         configure.ac): Likewise.
30658         * modules/unictype/property-bidi-block-separator (Depends-on,
30659         configure.ac): Likewise.
30660         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30661         configure.ac): Likewise.
30662         * modules/unictype/property-bidi-common-separator (Depends-on,
30663         configure.ac): Likewise.
30664         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30665         Likewise.
30666         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30667         configure.ac): Likewise.
30668         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30669         configure.ac): Likewise.
30670         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30671         configure.ac): Likewise.
30672         * modules/unictype/property-bidi-european-digit (Depends-on,
30673         configure.ac): Likewise.
30674         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30675         configure.ac): Likewise.
30676         * modules/unictype/property-bidi-left-to-right (Depends-on,
30677         configure.ac): Likewise.
30678         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30679         configure.ac): Likewise.
30680         * modules/unictype/property-bidi-other-neutral (Depends-on,
30681         configure.ac): Likewise.
30682         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30683         Likewise.
30684         * modules/unictype/property-bidi-segment-separator (Depends-on,
30685         configure.ac): Likewise.
30686         * modules/unictype/property-bidi-whitespace (Depends-on,
30687         configure.ac): Likewise.
30688         * modules/unictype/property-combining (Depends-on, configure.ac):
30689         Likewise.
30690         * modules/unictype/property-composite (Depends-on, configure.ac):
30691         Likewise.
30692         * modules/unictype/property-currency-symbol (Depends-on,
30693         configure.ac): Likewise.
30694         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30695         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30696         Likewise.
30697         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30698         configure.ac): Likewise.
30699         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30700         Likewise.
30701         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30702         Likewise.
30703         * modules/unictype/property-extender (Depends-on, configure.ac):
30704         Likewise.
30705         * modules/unictype/property-format-control (Depends-on, configure.ac):
30706         Likewise.
30707         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30708         Likewise.
30709         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30710         Likewise.
30711         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30712         Likewise.
30713         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30714         Likewise.
30715         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30716         Likewise.
30717         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30718         Likewise.
30719         * modules/unictype/property-id-start (Depends-on, configure.ac):
30720         Likewise.
30721         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30722         Likewise.
30723         * modules/unictype/property-ids-binary-operator (Depends-on,
30724         configure.ac): Likewise.
30725         * modules/unictype/property-ids-trinary-operator (Depends-on,
30726         configure.ac): Likewise.
30727         * modules/unictype/property-ignorable-control (Depends-on,
30728         configure.ac): Likewise.
30729         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30730         Likewise.
30731         * modules/unictype/property-join-control (Depends-on, configure.ac):
30732         Likewise.
30733         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30734         Likewise.
30735         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30736         Likewise.
30737         * modules/unictype/property-logical-order-exception (Depends-on,
30738         configure.ac): Likewise.
30739         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30740         Likewise.
30741         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30742         * modules/unictype/property-non-break (Depends-on, configure.ac):
30743         Likewise.
30744         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30745         Likewise.
30746         * modules/unictype/property-numeric (Depends-on, configure.ac):
30747         Likewise.
30748         * modules/unictype/property-other-alphabetic (Depends-on,
30749         configure.ac): Likewise.
30750         * modules/unictype/property-other-default-ignorable-code-point
30751         (Depends-on, configure.ac): Likewise.
30752         * modules/unictype/property-other-grapheme-extend (Depends-on,
30753         configure.ac): Likewise.
30754         * modules/unictype/property-other-id-continue (Depends-on,
30755         configure.ac): Likewise.
30756         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30757         Likewise.
30758         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30759         Likewise.
30760         * modules/unictype/property-other-math (Depends-on, configure.ac):
30761         Likewise.
30762         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30763         Likewise.
30764         * modules/unictype/property-paired-punctuation (Depends-on,
30765         configure.ac): Likewise.
30766         * modules/unictype/property-paragraph-separator (Depends-on,
30767         configure.ac): Likewise.
30768         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30769         Likewise.
30770         * modules/unictype/property-pattern-white-space (Depends-on,
30771         configure.ac): Likewise.
30772         * modules/unictype/property-private-use (Depends-on, configure.ac):
30773         Likewise.
30774         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30775         Likewise.
30776         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30777         Likewise.
30778         * modules/unictype/property-radical (Depends-on, configure.ac):
30779         Likewise.
30780         * modules/unictype/property-sentence-terminal (Depends-on,
30781         configure.ac): Likewise.
30782         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30783         Likewise.
30784         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30785         * modules/unictype/property-terminal-punctuation (Depends-on,
30786         configure.ac): Likewise.
30787         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30788         Likewise.
30789         * modules/unictype/property-unassigned-code-value (Depends-on,
30790         configure.ac): Likewise.
30791         * modules/unictype/property-unified-ideograph (Depends-on,
30792         configure.ac): Likewise.
30793         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30794         Likewise.
30795         * modules/unictype/property-variation-selector (Depends-on,
30796         configure.ac): Likewise.
30797         * modules/unictype/property-white-space (Depends-on, configure.ac):
30798         Likewise.
30799         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30800         Likewise.
30801         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30802         Likewise.
30803         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30804         Likewise.
30805         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30806         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30807         Likewise.
30808
30809 2009-12-31  Bruno Haible  <bruno@clisp.org>
30810
30811         Remove unnecessary AC_C_INLINE invocation.
30812         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30813         since 2009-08-21.
30814
30815 2009-12-31  Jim Meyering  <meyering@redhat.com>
30816
30817         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30818         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30819         With this change, we can all remove the gpg_key_ID = ... definition
30820         from our respective cfg.mk files.
30821
30822         maint.mk: create announcement template in ~/, not in /tmp
30823         * top/maint.mk (emit_upload_commands): Adjust.
30824         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30825         Remove temporary file, .ci-msg.
30826
30827 2009-12-31  Eric Blake  <ebb9@byu.net>
30828
30829         link-warning: always build headers with link warnings
30830         * modules/arpa_inet (Makefile.am): Always build replacement
30831         header.
30832         * modules/ctype (Makefile.am): Likewise.
30833         * modules/dirent (Makefile.am): Likewise.
30834         * modules/inttypes (Makefile.am): Likewise.
30835         * modules/langinfo (Makefile.am): Likewise.
30836         * modules/locale (Makefile.am): Likewise.
30837         * modules/spawn (Makefile.am): Likewise.
30838         * modules/sys_file (Makefile.am): Likewise.
30839         * modules/sys_ioctl (Makefile.am): Likewise.
30840         * modules/sys_select (Makefile.am): Likewise.
30841         * modules/sys_socket (Makefile.am): Likewise.
30842         * modules/sys_times (Makefile.am): Likewise.
30843         * modules/sys_utsname (Makefile.am): Likewise.
30844         * modules/sys_wait (Makefile.am): Likewise.
30845         * modules/wchar (Makefile.am): Likewise.
30846         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30847         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30848         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30849         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30850         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30851         Likewise.
30852         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30853         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30854         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30855         Likewise.
30856         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30857         Likewise.
30858         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30859         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30860         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30862         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30863         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30864         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30865         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30866         (gl_WCHAR_H_DEFAULTS): Likewise.
30867
30868 2009-12-31  Eric Blake  <ebb9@byu.net>
30869
30870         signal, spawn: use link warnings
30871         * lib/signal.in.h (sigset_t): Make unconditional.
30872         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30873         (sigpending, sigprocmask, sigaction): Add link warnings.
30874         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30875         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30876         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30877         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30878         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30879         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30880         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30881         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30882         (posix_spawn_file_actions_destroy)
30883         (posix_spawn_file_actions_addopen)
30884         (posix_spawn_file_actions_addclose)
30885         (posix_spawn_file_actions_adddup2): Likewise.
30886         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30887         * tests/test-signal.c (main): Enhance test.
30888
30889         spawn: improve wrapper support
30890         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30891         (gl_SPAWN_H_DEFAULTS): New defaults.
30892         * modules/spawn (Makefile.am): Substitute them.
30893         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30894         Only declare if missing or broken.
30895
30896         sys_times, sys_utsname: use include_next
30897         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30898         header.
30899         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30900         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30901         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30902         * modules/sys_times (Depends-on): Add include_next.
30903         (Makefile.am): Substitute additional values.
30904         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30905         * lib/sys_times.in.h (includes): Include native header, if
30906         available.
30907         * lib/sys_utsname.in.h (includes): Likewise.
30908         * tests/test-sys_times.c (main): Enhance test.
30909
30910         fdutimensat: revert prior patch
30911         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30912         utimens.h.
30913         Reported by Bruno Haible.
30914
30915 2009-12-30  Eric Blake  <ebb9@byu.net>
30916
30917         sys_wait: drop link-warning dependency
30918         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30919         link-warning efforts.
30920         * lib/sys_wait.in.h: Likewise.
30921
30922         fdutimensat: remove bogus dependency
30923         * modules/fdutimensat (Depends-on): Drop inline.
30924
30925         unistd: fix typo
30926         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30927
30928 2009-12-30  Bruno Haible  <bruno@clisp.org>
30929
30930         Fix compilation error with Solaris cc.
30931         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30932         * lib/unicase/u16-is-invariant.c: Likewise.
30933         * lib/unicase/u32-is-invariant.c: Likewise.
30934         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30935
30936 2009-12-30  Bruno Haible  <bruno@clisp.org>
30937
30938         Fix test crash.
30939         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30940         locales.
30941         Reported by Simon Josefsson <simon@josefsson.org>.
30942
30943 2009-12-30  Bruno Haible  <bruno@clisp.org>
30944
30945         Fix compilation error on most platforms.
30946         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30947         Reported by Simon Josefsson <simon@josefsson.org>
30948         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30949
30950 2009-12-30  Eric Blake  <ebb9@byu.net>
30951
30952         futimens, utimensat: work around ntfs-3g bug
30953         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30954         a ctime bug is present, and expand workaround to cover ntfs-3g.
30955         * lib/utimens.c (fdutimens, lutimens): Likewise.
30956         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30957         (validate_timespec): Adjust return value.
30958         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30959         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30960         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30961
30962 2009-12-29  Eric Blake  <ebb9@byu.net>
30963
30964         link-warning: make usage consistent
30965         * modules/ctype (Depends-on): Add link-warning.
30966         (Makefile.am): Update rules accordingly.
30967         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30968         * modules/locale (Depends-on, Makefile.am): Likewise.
30969         * modules/sys_file (Makefile.am): Likewise.
30970         * modules/getopt-posix (Makefile.am): Delete unused link warning
30971         efforts.
30972         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30973         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30974         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30975         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30976
30977         stdio: remove unused variables
30978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30980         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30981
30982         tests: test more substitute headers
30983         * modules/ctype-tests: New file.
30984         * modules/dirent-tests: Likewise.
30985         * modules/spawn-tests: Likewise.
30986         * modules/sys_file-tests: Likewise.
30987         * modules/sys_ioctl-tests: Likewise.
30988         * modules/sys_wait-tests: Likewise.
30989         * tests/test-ctype.c: Likewise.
30990         * tests/test-dirent.c: Likewise.
30991         * tests/test-spawn.c: Likewise.
30992         * tests/test-sys_file.c: Likewise.
30993         * tests/test-sys_ioctl.c: Likewise.
30994         * tests/test-sys_wait.c: Likewise.
30995         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30996         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30997         whether or not flock is in use.
30998
30999         tests: remove License section from module
31000         * modules/arpa_inet-tests: Remove unneeded section.
31001         * modules/byteswap-tests: Likewise.
31002         * modules/ceilf-tests: Likewise.
31003         * modules/ceill-tests: Likewise.
31004         * modules/crypto/des-tests: Likewise.
31005         * modules/crypto/gc-arcfour-tests: Likewise.
31006         * modules/crypto/gc-arctwo-tests: Likewise.
31007         * modules/crypto/gc-des-tests: Likewise.
31008         * modules/crypto/gc-hmac-md5-tests: Likewise.
31009         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31010         * modules/crypto/gc-md2-tests: Likewise.
31011         * modules/crypto/gc-md4-tests: Likewise.
31012         * modules/crypto/gc-md5-tests: Likewise.
31013         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31014         * modules/crypto/gc-rijndael-tests: Likewise.
31015         * modules/crypto/gc-sha1-tests: Likewise.
31016         * modules/crypto/gc-tests: Likewise.
31017         * modules/crypto/md2-tests: Likewise.
31018         * modules/crypto/md4-tests: Likewise.
31019         * modules/fcntl-h-tests: Likewise.
31020         * modules/floorf-tests: Likewise.
31021         * modules/floorl-tests: Likewise.
31022         * modules/frexp-nolibm-tests: Likewise.
31023         * modules/frexp-tests: Likewise.
31024         * modules/frexpl-nolibm-tests: Likewise.
31025         * modules/frexpl-tests: Likewise.
31026         * modules/getaddrinfo-tests: Likewise.
31027         * modules/inttypes-tests: Likewise.
31028         * modules/isfinite-tests: Likewise.
31029         * modules/isinf-tests: Likewise.
31030         * modules/ldexpl-tests: Likewise.
31031         * modules/locale-tests: Likewise.
31032         * modules/math-tests: Likewise.
31033         * modules/netdb-tests: Likewise.
31034         * modules/netinet_in-tests: Likewise.
31035         * modules/printf-frexp-tests: Likewise.
31036         * modules/printf-frexpl-tests: Likewise.
31037         * modules/priv-set-tests: Likewise.
31038         * modules/random_r-tests: Likewise.
31039         * modules/round-tests: Likewise.
31040         * modules/roundf-tests: Likewise.
31041         * modules/roundl-tests: Likewise.
31042         * modules/search-tests: Likewise.
31043         * modules/select-tests: Likewise.
31044         * modules/signal-tests: Likewise.
31045         * modules/stdbool-tests: Likewise.
31046         * modules/stddef-tests: Likewise.
31047         * modules/stdint-tests: Likewise.
31048         * modules/stdio-tests: Likewise.
31049         * modules/stdlib-tests: Likewise.
31050         * modules/string-tests: Likewise.
31051         * modules/strings-tests: Likewise.
31052         * modules/sys_select-tests: Likewise.
31053         * modules/sys_socket-tests: Likewise.
31054         * modules/sys_stat-tests: Likewise.
31055         * modules/sys_time-tests: Likewise.
31056         * modules/sys_utsname-tests: Likewise.
31057         * modules/sysexits-tests: Likewise.
31058         * modules/time-tests: Likewise.
31059         * modules/trunc-tests: Likewise.
31060         * modules/truncf-tests: Likewise.
31061         * modules/truncl-tests: Likewise.
31062         * modules/tsearch-tests: Likewise.
31063         * modules/unistd-tests: Likewise.
31064         * modules/wchar-tests: Likewise.
31065         * modules/wctype-tests: Likewise.
31066
31067         tests: fix license on several tests
31068         * tests/test-des.c: Update to GPLv3+.
31069         * tests/test-flock.c: Likewise.
31070         * tests/test-fsync.c: Likewise.
31071         * tests/test-futimens.h: Likewise.
31072         * tests/test-gc-arcfour.c: Likewise.
31073         * tests/test-gc-arctwo.c: Likewise.
31074         * tests/test-gc-des.c: Likewise.
31075         * tests/test-gc-hmac-md5.c: Likewise.
31076         * tests/test-gc-hmac-sha1.c: Likewise.
31077         * tests/test-gc-md2.c: Likewise.
31078         * tests/test-gc-md4.c: Likewise.
31079         * tests/test-gc-md5.c: Likewise.
31080         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31081         * tests/test-gc-rijndael.c: Likewise.
31082         * tests/test-gc-sha1.c: Likewise.
31083         * tests/test-gc.c: Likewise.
31084         * tests/test-getcwd.c: Likewise.
31085         * tests/test-link.c: Likewise.
31086         * tests/test-link.h: Likewise.
31087         * tests/test-lutimens.h: Likewise.
31088         * tests/test-md2.c: Likewise.
31089         * tests/test-md4.c: Likewise.
31090         * tests/test-mkdir.h: Likewise.
31091         * tests/test-rename.c: Likewise.
31092         * tests/test-rename.h: Likewise.
31093         * tests/test-safe-alloc.c: Likewise.
31094         * tests/test-utimens-common.h: Likewise.
31095         * tests/test-utimens.h: Likewise.
31096
31097         maint: sync license texts
31098         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31099         * doc/gpl-3.0.texi: Revert copyright year update.
31100         * doc/lgpl-3.0.texi: Likewise.
31101
31102 2009-12-29  Jim Meyering  <meyering@redhat.com>
31103
31104         update nearly all FSF copyright year lists to include 2009
31105         The files named by the following are exempted:
31106             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31107               test -f "$dst" && { echo "$dst"; continue; }
31108               test -d "$dst" || continue
31109               echo "$dst"/$(basename "$src")
31110             done > exempt
31111             git ls-files tests/unictype >> exempt
31112         In the remaining files, convert to all-interval notation if
31113         - there is already at least one year interval like 2000-2003
31114         - the file is maintained by me
31115         - the file is in lib/uni*/, where that style already prevails
31116         Otherwise, use update-copyright's default.
31117
31118 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31119         and Eric Blake  <ebb9@byu.net>
31120
31121         tests: don't require debug system() to pass
31122         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31123         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31124         * tests/test-unlink.h (test_unlink_func): Likewise.
31125         * tests/test-fstatat.c (main): ...into callers.
31126         * tests/test-lstat.c (main): Likewise.
31127         * tests/test-rmdir.c (main): Likewise.
31128         * tests/test-unlink.c (main): Likewise.
31129         * tests/test-unlinkat.c (main): Likewise.
31130         * tests/test-areadlink-with-size.c (main): Don't require a
31131         debug-only system call to pass, aiding cross-testing to mingw.
31132         * tests/test-areadlink.c (main): Likewise.
31133         * tests/test-areadlinkat-with-size.c (main): Likewise.
31134         * tests/test-areadlinkat.c (main): Likewise.
31135         * tests/test-canonicalize-lgpl.c (main): Likewise.
31136         * tests/test-canonicalize.c (main): Likewise.
31137         * tests/test-chown.c (main): Likewise.
31138         * tests/test-fchownat.c (main): Likewise.
31139         * tests/test-lchown.c (main): Likewise.
31140         * tests/test-fdutimensat.c (main): Likewise.
31141         * tests/test-futimens.c (main): Likewise.
31142         * tests/test-link.c (main): Likewise.
31143         * tests/test-linkat.c (main): Likewise.
31144         * tests/test-mkdir.c (main): Likewise.
31145         * tests/test-mkdirat.c (main): Likewise.
31146         * tests/test-mkfifo.c (main): Likewise.
31147         * tests/test-mkfifoat.c (main): Likewise.
31148         * tests/test-mknod.c (main): Likewise.
31149         * tests/test-readlink.c (main): Likewise.
31150         * tests/test-remove.c (main): Likewise.
31151         * tests/test-rename.c (main): Likewise.
31152         * tests/test-renameat.c (main): Likewise.
31153         * tests/test-symlink.c (main): Likewise.
31154         * tests/test-symlinkat.c (main): Likewise.
31155         * tests/test-utimens.c (main): Likewise.
31156         * tests/test-utimensat.c (main): Likewise.
31157
31158 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31159
31160         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31161         on $(UNUSED_PARAMETER_H) to avoid build failure.
31162
31163 2009-12-28  Jim Meyering  <meyering@redhat.com>
31164
31165         update-copyright: you may specify a max. line length other than 72
31166         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31167
31168         maint: use consistent FSF copyright line syntax
31169         * lib/posixtm.c: Add missing comma in FSF copyright line.
31170         * lib/posixtm.h: Likewise.
31171         * lib/getugroups.c: Add missing ", Inc.".
31172
31173         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31174         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31175         FSF copyright line.  Remove trailing blanks.
31176
31177 2009-12-28  Eric Blake  <ebb9@byu.net>
31178
31179         test-dup2: reduce dependencies
31180         * modules/cloexec (Configure.ac): Set witness.
31181         * modules/dup2-tests (Depends-on): Drop cloexec.
31182         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31183         not present.
31184         Suggested by Bruno Haible.
31185
31186 2009-12-26  Bruno Haible  <bruno@clisp.org>
31187
31188         Remove an unneeded dependency.
31189         * modules/fseterr (Depends-on): Remove dup2.
31190
31191 2009-12-26  Eric Blake  <ebb9@byu.net>
31192
31193         tests: use macros.h in more places
31194         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31195         (ASSERT_STREAM): Provide default of stderr.
31196         * tests/test-dirent-safer.c: Include macros.h, using alternate
31197         stream for assertions.
31198         * tests/test-dup-safer.c: Likewise.
31199         * tests/test-freopen-safer.c: Likewise.
31200         * tests/test-getopt.c: Likewise.
31201         * tests/test-openat-safer.c: Likewise.
31202         * tests/test-pipe.c: Likewise.
31203         * tests/test-popen-safer.c: Likewise.
31204         * modules/dirent-safer-tests (Files): Include macros.h.
31205         * modules/unistd-safer-tests (Files): Likewise.
31206         * modules/freopen-safer-tests (Files): Likewise.
31207         * modules/getopt-posix-tests (Files): Likewise.
31208         * modules/openat-safer-tests (Files): Likewise.
31209         * modules/pipe-tests (Files): Likewise.
31210
31211 2009-12-26  Bruno Haible  <bruno@clisp.org>
31212
31213         javacomp: Portability fix.
31214         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31215         that it also works on Solaris.
31216
31217 2009-12-26  Bruno Haible  <bruno@clisp.org>
31218
31219         localename: Fix storage allocation of gl_locale_name_thread's result.
31220         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31221         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31222         all platforms that have 'uselocale'.
31223         (gl_locale_name_thread_unsafe): New function, extracted from
31224         gl_locale_name_thread.
31225         (gl_locale_name_thread): Call struniq on all platforms that have
31226         'uselocale'.
31227         * tests/test-localename.c (test_locale_name_thread): Check that the
31228         resulting strings are permanently allocated.
31229         * modules/localename-tests (Depends-on): Add strdup.
31230
31231 2009-12-26  Bruno Haible  <bruno@clisp.org>
31232
31233         * tests/test-localename.c (categories): Fill in the strings.
31234
31235 2009-12-26  Jim Meyering  <meyering@redhat.com>
31236
31237         isdir: complete the removal of m4/isdir.m4
31238         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31239
31240         isdir: clean up, since at least grep still uses it
31241         * lib/isdir.c: Include "isdir.h".
31242         (S_ISDIR): Remove now-unneeded definition.
31243         * modules/isdir (Files): Add lib/isdir.h.
31244         * lib/isdir.h: New file, with declaration.
31245         * m4/isdir.m4: Remove file -- unneeded.
31246
31247 2009-12-25  Bruno Haible  <bruno@clisp.org>
31248
31249         selinux-h: Make generated .h files standalone.
31250         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31251         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31252         * lib/se-selinux.in.h: Likewise.
31253         * modules/selinux-h (Depends-on): Add unused-parameter.
31254         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31255         selinux/selinux.h and selinux/context.h.
31256         Suggested by Eric Blake.
31257
31258 2009-12-25  Bruno Haible  <bruno@clisp.org>
31259
31260         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31261         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31262         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31263         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31264         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31265
31266 2009-12-24  Bruno Haible  <bruno@clisp.org>
31267
31268         openat: Fix warning.
31269         * lib/openat-proc.c: Include <unistd.h>.
31270
31271 2009-12-24  Bruno Haible  <bruno@clisp.org>
31272
31273         New module 'unused-parameter'.
31274         * build-aux/unused-parameter.h: New file, extracted from earlier
31275         gnulib-common.m4.
31276         * modules/unused-parameter: New file.
31277         * lib/unistr.h: Include unused-parameter.h.
31278         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31279         _GL_UNUSED.
31280         * modules/unistr/base (Depends-on): Add unused-parameter.
31281
31282 2009-12-24  Bruno Haible  <bruno@clisp.org>
31283
31284         Add missing dependencies to 'extensions' module.
31285         * m4/extensions.m4: Add comment.
31286         * modules/accept4 (Depends-on): Add extensions.
31287         * modules/dup3 (Depends-on): Likewise.
31288         * modules/fcntl (Depends-on): Likewise.
31289         * modules/futimens (Depends-on): Likewise.
31290         * modules/mknod (Depends-on): Likewise.
31291         * modules/pipe2 (Depends-on): Likewise.
31292         * modules/stat-time (Depends-on): Likewise.
31293         * modules/strcasestr-simple (Depends-on): Likewise.
31294         * modules/strsignal (Depends-on): Likewise.
31295         * modules/utimensat (Depends-on): Likewise.
31296         * modules/localcharset (Depends-on): Likewise. Needed because of
31297         gl_FCNTL_O_FLAGS.
31298         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31299         AC_TYPE_MBSTATE_T.
31300         * modules/wcsnrtombs (Depends-on): Likewise.
31301         * modules/wcsrtombs (Depends-on): Likewise.
31302
31303 2009-12-24  Bruno Haible  <bruno@clisp.org>
31304
31305         binary-io: Avoid gcc warning due to SET_BINARY.
31306         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31307         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31308
31309 2009-12-24  Bruno Haible  <bruno@clisp.org>
31310
31311         Avoid future namespace pollution on glibc systems.
31312         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31313         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31314         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31315         glibc systems.
31316
31317 2009-12-24  Bruno Haible  <bruno@clisp.org>
31318
31319         Refactor common macros used in tests.
31320         * tests/macros.h: New file.
31321         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31322         and/or <stdlib.h>, if appropriate.
31323         (ASSERT, SIZEOF): Remove macros.
31324         * tests/test-areadlink-with-size.c: Likewise.
31325         * tests/test-areadlinkat.c: Likewise.
31326         * tests/test-areadlinkat-with-size.c: Likewise.
31327         * tests/test-argmatch.c: Likewise.
31328         * tests/test-argv-iter.c: Likewise.
31329         * tests/test-array-mergesort.c: Likewise.
31330         * tests/test-array_list.c: Likewise.
31331         * tests/test-array_oset.c: Likewise.
31332         * tests/test-avltree_list.c: Likewise.
31333         * tests/test-avltree_oset.c: Likewise.
31334         * tests/test-avltreehash_list.c: Likewise.
31335         * tests/test-base64.c: Likewise.
31336         * tests/test-binary-io.c: Likewise.
31337         * tests/test-bitrotate.c: Likewise.
31338         * tests/test-btowc.c: Likewise.
31339         * tests/test-byteswap.c: Likewise.
31340         * tests/test-c-ctype.c: Likewise.
31341         * tests/test-c-stack.c: Likewise.
31342         * tests/test-c-strcasecmp.c: Likewise.
31343         * tests/test-c-strcasestr.c: Likewise.
31344         * tests/test-c-strncasecmp.c: Likewise.
31345         * tests/test-c-strstr.c: Likewise.
31346         * tests/test-canonicalize-lgpl.c: Likewise.
31347         * tests/test-canonicalize.c: Likewise.
31348         * tests/test-carray_list.c: Likewise.
31349         * tests/test-ceilf1.c: Likewise.
31350         * tests/test-ceilf2.c: Likewise.
31351         * tests/test-ceill.c: Likewise.
31352         * tests/test-chown.c: Likewise.
31353         * tests/test-cloexec.c: Likewise.
31354         * tests/test-copy-acl.c: Likewise.
31355         * tests/test-copy-file.c: Likewise.
31356         * tests/test-count-one-bits.c: Likewise.
31357         * tests/test-dprintf-posix.c: Likewise.
31358         * tests/test-dup2.c: Likewise.
31359         * tests/test-dup3.c: Likewise.
31360         * tests/test-duplocale.c: Likewise.
31361         * tests/test-fbufmode.c: Likewise.
31362         * tests/test-fchdir.c: Likewise.
31363         * tests/test-fchownat.c: Likewise.
31364         * tests/test-fcntl-safer.c: Likewise.
31365         * tests/test-fcntl.c: Likewise.
31366         * tests/test-fdopendir.c: Likewise.
31367         * tests/test-fdutimensat.c: Likewise.
31368         * tests/test-fflush2.c: Likewise.
31369         * tests/test-file-has-acl.c: Likewise.
31370         * tests/test-filevercmp.c: Likewise.
31371         * tests/test-flock.c: Likewise.
31372         * tests/test-floorf1.c: Likewise.
31373         * tests/test-floorf2.c: Likewise.
31374         * tests/test-floorl.c: Likewise.
31375         * tests/test-fnmatch.c: Likewise.
31376         * tests/test-fopen.h: Likewise.
31377         * tests/test-fpending.c: Likewise.
31378         * tests/test-fprintf-posix.c: Likewise.
31379         * tests/test-fpurge.c: Likewise.
31380         * tests/test-freadable.c: Likewise.
31381         * tests/test-freadahead.c: Likewise.
31382         * tests/test-freading.c: Likewise.
31383         * tests/test-freadptr.c: Likewise.
31384         * tests/test-freadptr2.c: Likewise.
31385         * tests/test-freadseek.c: Likewise.
31386         * tests/test-freopen.c: Likewise.
31387         * tests/test-frexp.c: Likewise.
31388         * tests/test-frexpl.c: Likewise.
31389         * tests/test-fseek.c: Likewise.
31390         * tests/test-fseeko.c: Likewise.
31391         * tests/test-fstatat.c: Likewise.
31392         * tests/test-fstrcmp.c: Likewise.
31393         * tests/test-fsync.c: Likewise.
31394         * tests/test-ftell.c: Likewise.
31395         * tests/test-ftello.c: Likewise.
31396         * tests/test-func.c: Likewise.
31397         * tests/test-futimens.c: Likewise.
31398         * tests/test-fwritable.c: Likewise.
31399         * tests/test-fwriting.c: Likewise.
31400         * tests/test-getcwd.c: Likewise.
31401         * tests/test-getdate.c: Likewise.
31402         * tests/test-getdelim.c: Likewise.
31403         * tests/test-getdtablesize.c: Likewise.
31404         * tests/test-getgroups.c: Likewise.
31405         * tests/test-getline.c: Likewise.
31406         * tests/test-getndelim2.c: Likewise.
31407         * tests/test-glob.c: Likewise.
31408         * tests/test-hash.c: Likewise.
31409         * tests/test-i-ring.c: Likewise.
31410         * tests/test-iconv-utf.c: Likewise.
31411         * tests/test-iconv.c: Likewise.
31412         * tests/test-idpriv-drop.c: Likewise.
31413         * tests/test-idpriv-droptemp.c: Likewise.
31414         * tests/test-inet_ntop.c: Likewise.
31415         * tests/test-inet_pton.c: Likewise.
31416         * tests/test-isblank.c: Likewise.
31417         * tests/test-isfinite.c: Likewise.
31418         * tests/test-isinf.c: Likewise.
31419         * tests/test-isnan.c: Likewise.
31420         * tests/test-isnand.h: Likewise.
31421         * tests/test-isnanf.h: Likewise.
31422         * tests/test-isnanl.h: Likewise.
31423         * tests/test-lchown.c: Likewise.
31424         * tests/test-ldexpl.c: Likewise.
31425         * tests/test-link.c: Likewise.
31426         * tests/test-linkat.c: Likewise.
31427         * tests/test-linked_list.c: Likewise.
31428         * tests/test-linkedhash_list.c: Likewise.
31429         * tests/test-localename.c: Likewise.
31430         * tests/test-lseek.c: Likewise.
31431         * tests/test-lstat.c: Likewise.
31432         * tests/test-mbmemcasecmp.c: Likewise.
31433         * tests/test-mbmemcasecoll.c: Likewise.
31434         * tests/test-mbrtowc.c: Likewise.
31435         * tests/test-mbscasecmp.c: Likewise.
31436         * tests/test-mbscasestr1.c: Likewise.
31437         * tests/test-mbscasestr2.c: Likewise.
31438         * tests/test-mbscasestr3.c: Likewise.
31439         * tests/test-mbscasestr4.c: Likewise.
31440         * tests/test-mbschr.c: Likewise.
31441         * tests/test-mbscspn.c: Likewise.
31442         * tests/test-mbsinit.c: Likewise.
31443         * tests/test-mbsncasecmp.c: Likewise.
31444         * tests/test-mbsnrtowcs.c: Likewise.
31445         * tests/test-mbspbrk.c: Likewise.
31446         * tests/test-mbspcasecmp.c: Likewise.
31447         * tests/test-mbsrchr.c: Likewise.
31448         * tests/test-mbsrtowcs.c: Likewise.
31449         * tests/test-mbsspn.c: Likewise.
31450         * tests/test-mbsstr1.c: Likewise.
31451         * tests/test-mbsstr2.c: Likewise.
31452         * tests/test-mbsstr3.c: Likewise.
31453         * tests/test-memchr.c: Likewise.
31454         * tests/test-memchr2.c: Likewise.
31455         * tests/test-memcmp.c: Likewise.
31456         * tests/test-memmem.c: Likewise.
31457         * tests/test-memrchr.c: Likewise.
31458         * tests/test-mkdir.c: Likewise.
31459         * tests/test-mkdirat.c: Likewise.
31460         * tests/test-mkfifo.c: Likewise.
31461         * tests/test-mkfifoat.c: Likewise.
31462         * tests/test-mknod.c: Likewise.
31463         * tests/test-nanosleep.c: Likewise.
31464         * tests/test-nl_langinfo.c: Likewise.
31465         * tests/test-obstack-printf.c: Likewise.
31466         * tests/test-open.c: Likewise.
31467         * tests/test-openat.c: Likewise.
31468         * tests/test-pipe-filter-gi1.c: Likewise.
31469         * tests/test-pipe-filter-gi2-main.c: Likewise.
31470         * tests/test-pipe-filter-ii1.c: Likewise.
31471         * tests/test-pipe-filter-ii2-main.c: Likewise.
31472         * tests/test-pipe2.c: Likewise.
31473         * tests/test-popen.h: Likewise.
31474         * tests/test-posixtm.c: Likewise.
31475         * tests/test-pread.c: Likewise.
31476         * tests/test-printf-frexp.c: Likewise.
31477         * tests/test-printf-frexpl.c: Likewise.
31478         * tests/test-printf-posix.c: Likewise.
31479         * tests/test-priv-set.c: Likewise.
31480         * tests/test-quotearg.c: Likewise.
31481         * tests/test-random_r.c: Likewise.
31482         * tests/test-rawmemchr.c: Likewise.
31483         * tests/test-rbtree_list.c: Likewise.
31484         * tests/test-rbtree_oset.c: Likewise.
31485         * tests/test-rbtreehash_list.c: Likewise.
31486         * tests/test-readlink.c: Likewise.
31487         * tests/test-remove.c: Likewise.
31488         * tests/test-rename.c: Likewise.
31489         * tests/test-renameat.c: Likewise.
31490         * tests/test-rmdir.c: Likewise.
31491         * tests/test-round1.c: Likewise.
31492         * tests/test-roundf1.c: Likewise.
31493         * tests/test-roundl.c: Likewise.
31494         * tests/test-safe-alloc.c: Likewise.
31495         * tests/test-sameacls.c: Likewise.
31496         * tests/test-set-mode-acl.c: Likewise.
31497         * tests/test-setenv.c: Likewise.
31498         * tests/test-sigaction.c: Likewise.
31499         * tests/test-signbit.c: Likewise.
31500         * tests/test-sleep.c: Likewise.
31501         * tests/test-snprintf-posix.c: Likewise.
31502         * tests/test-snprintf.c: Likewise.
31503         * tests/test-sprintf-posix.c: Likewise.
31504         * tests/test-stat-time.c: Likewise.
31505         * tests/test-stat.c: Likewise.
31506         * tests/test-strcasestr.c: Likewise.
31507         * tests/test-strchrnul.c: Likewise.
31508         * tests/test-strerror.c: Likewise.
31509         * tests/test-striconv.c: Likewise.
31510         * tests/test-striconveh.c: Likewise.
31511         * tests/test-striconveha.c: Likewise.
31512         * tests/test-strsignal.c: Likewise.
31513         * tests/test-strstr.c: Likewise.
31514         * tests/test-strtod.c: Likewise.
31515         * tests/test-strverscmp.c: Likewise.
31516         * tests/test-symlink.c: Likewise.
31517         * tests/test-symlinkat.c: Likewise.
31518         * tests/test-trunc1.c: Likewise.
31519         * tests/test-trunc2.c: Likewise.
31520         * tests/test-truncf1.c: Likewise.
31521         * tests/test-truncf2.c: Likewise.
31522         * tests/test-truncl.c: Likewise.
31523         * tests/test-uname.c: Likewise.
31524         * tests/test-unlink.c: Likewise.
31525         * tests/test-unlinkat.c: Likewise.
31526         * tests/test-unsetenv.c: Likewise.
31527         * tests/test-usleep.c: Likewise.
31528         * tests/test-utimens.c: Likewise.
31529         * tests/test-utimensat.c: Likewise.
31530         * tests/test-vasnprintf-posix.c: Likewise.
31531         * tests/test-vasnprintf-posix2.c: Likewise.
31532         * tests/test-vasnprintf.c: Likewise.
31533         * tests/test-vasprintf-posix.c: Likewise.
31534         * tests/test-vasprintf.c: Likewise.
31535         * tests/test-vdprintf-posix.c: Likewise.
31536         * tests/test-vfprintf-posix.c: Likewise.
31537         * tests/test-vprintf-posix.c: Likewise.
31538         * tests/test-vsnprintf-posix.c: Likewise.
31539         * tests/test-vsnprintf.c: Likewise.
31540         * tests/test-vsprintf-posix.c: Likewise.
31541         * tests/test-wcrtomb.c: Likewise.
31542         * tests/test-wcsnrtombs.c: Likewise.
31543         * tests/test-wcsrtombs.c: Likewise.
31544         * tests/test-wctype.c: Likewise.
31545         * tests/test-wcwidth.c: Likewise.
31546         * tests/test-xfprintf-posix.c: Likewise.
31547         * tests/test-xmemdup0.c: Likewise.
31548         * tests/test-xprintf-posix.c: Likewise.
31549         * tests/test-xvasprintf.c: Likewise.
31550         * tests/unicase/test-locale-language.c: Likewise.
31551         * tests/unicase/test-mapping-part1.h: Likewise.
31552         * tests/unicase/test-predicate-part1.h: Likewise.
31553         * tests/unicase/test-u8-casecmp.c: Likewise.
31554         * tests/unicase/test-u8-casecoll.c: Likewise.
31555         * tests/unicase/test-u8-casefold.c: Likewise.
31556         * tests/unicase/test-u8-is-cased.c: Likewise.
31557         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31558         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31559         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31560         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31561         * tests/unicase/test-u8-tolower.c: Likewise.
31562         * tests/unicase/test-u8-totitle.c: Likewise.
31563         * tests/unicase/test-u8-toupper.c: Likewise.
31564         * tests/unicase/test-u16-casecmp.c: Likewise.
31565         * tests/unicase/test-u16-casecoll.c: Likewise.
31566         * tests/unicase/test-u16-casefold.c: Likewise.
31567         * tests/unicase/test-u16-is-cased.c: Likewise.
31568         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31569         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31570         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31571         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31572         * tests/unicase/test-u16-tolower.c: Likewise.
31573         * tests/unicase/test-u16-totitle.c: Likewise.
31574         * tests/unicase/test-u16-toupper.c: Likewise.
31575         * tests/unicase/test-u32-casecmp.c: Likewise.
31576         * tests/unicase/test-u32-casecoll.c: Likewise.
31577         * tests/unicase/test-u32-casefold.c: Likewise.
31578         * tests/unicase/test-u32-is-cased.c: Likewise.
31579         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31580         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31581         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31582         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31583         * tests/unicase/test-u32-tolower.c: Likewise.
31584         * tests/unicase/test-u32-totitle.c: Likewise.
31585         * tests/unicase/test-u32-toupper.c: Likewise.
31586         * tests/unicase/test-ulc-casecmp.c: Likewise.
31587         * tests/unicase/test-ulc-casecoll.c: Likewise.
31588         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31589         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31590         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31591         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31592         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31593         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31594         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31595         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31596         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31597         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31598         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31599         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31600         * tests/unictype/test-bidi_byname.c: Likewise.
31601         * tests/unictype/test-bidi_name.c: Likewise.
31602         * tests/unictype/test-bidi_of.c: Likewise.
31603         * tests/unictype/test-bidi_test.c: Likewise.
31604         * tests/unictype/test-block_list.c: Likewise.
31605         * tests/unictype/test-block_of.c: Likewise.
31606         * tests/unictype/test-block_test.c: Likewise.
31607         * tests/unictype/test-categ_and.c: Likewise.
31608         * tests/unictype/test-categ_and_not.c: Likewise.
31609         * tests/unictype/test-categ_byname.c: Likewise.
31610         * tests/unictype/test-categ_name.c: Likewise.
31611         * tests/unictype/test-categ_none.c: Likewise.
31612         * tests/unictype/test-categ_of.c: Likewise.
31613         * tests/unictype/test-categ_or.c: Likewise.
31614         * tests/unictype/test-categ_test_withtable.c: Likewise.
31615         * tests/unictype/test-combining.c: Likewise.
31616         * tests/unictype/test-decdigit.c: Likewise.
31617         * tests/unictype/test-digit.c: Likewise.
31618         * tests/unictype/test-mirror.c: Likewise.
31619         * tests/unictype/test-numeric.c: Likewise.
31620         * tests/unictype/test-pr_byname.c: Likewise.
31621         * tests/unictype/test-pr_test.c: Likewise.
31622         * tests/unictype/test-predicate-part1.h: Likewise.
31623         * tests/unictype/test-scripts.c: Likewise.
31624         * tests/unictype/test-sy_c_ident.c: Likewise.
31625         * tests/unictype/test-sy_java_ident.c: Likewise.
31626         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31627         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31628         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31629         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31630         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31631         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31632         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31633         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31634         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31635         * tests/uninorm/test-compat-decomposition.c: Likewise.
31636         * tests/uninorm/test-composition.c: Likewise.
31637         * tests/uninorm/test-decomposing-form.c: Likewise.
31638         * tests/uninorm/test-decomposition.c: Likewise.
31639         * tests/uninorm/test-u8-nfc.c: Likewise.
31640         * tests/uninorm/test-u8-nfd.c: Likewise.
31641         * tests/uninorm/test-u8-nfkc.c: Likewise.
31642         * tests/uninorm/test-u8-nfkd.c: Likewise.
31643         * tests/uninorm/test-u8-normcmp.c: Likewise.
31644         * tests/uninorm/test-u8-normcoll.c: Likewise.
31645         * tests/uninorm/test-u16-nfc.c: Likewise.
31646         * tests/uninorm/test-u16-nfd.c: Likewise.
31647         * tests/uninorm/test-u16-nfkc.c: Likewise.
31648         * tests/uninorm/test-u16-nfkd.c: Likewise.
31649         * tests/uninorm/test-u16-normcmp.c: Likewise.
31650         * tests/uninorm/test-u16-normcoll.c: Likewise.
31651         * tests/uninorm/test-u32-nfc.c: Likewise.
31652         * tests/uninorm/test-u32-nfd.c: Likewise.
31653         * tests/uninorm/test-u32-nfkc.c: Likewise.
31654         * tests/uninorm/test-u32-nfkd.c: Likewise.
31655         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31656         * tests/uninorm/test-u32-normcmp.c: Likewise.
31657         * tests/uninorm/test-u32-normcoll.c: Likewise.
31658         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31659         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31660         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31661         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31662         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31663         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31664         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31665         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31666         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31667         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31668         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31669         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31670         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31671         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31672         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31673         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31674         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31675         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31676         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31677         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31678         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31679         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31680         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31681         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31682         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31683         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31684         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31685         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31686         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31687         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31688         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31689         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31690         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31691         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31692         * tests/uniwidth/test-u8-width.c: Likewise.
31693         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31694         * tests/uniwidth/test-u16-width.c: Likewise.
31695         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31696         * tests/uniwidth/test-u32-width.c: Likewise.
31697         * tests/uniwidth/test-uc_width.c: Likewise.
31698         * tests/uniwidth/test-uc_width2.c: Likewise.
31699         * modules/acl-tests (Files): Add tests/macros.h.
31700         * modules/areadlink-tests (Files): Likewise.
31701         * modules/areadlink-with-size-tests (Files): Likewise.
31702         * modules/areadlinkat-tests (Files): Likewise.
31703         * modules/areadlinkat-with-size-tests (Files): Likewise.
31704         * modules/argmatch-tests (Files): Likewise.
31705         * modules/argv-iter-tests (Files): Likewise.
31706         * modules/array-list-tests (Files): Likewise.
31707         * modules/array-mergesort-tests (Files): Likewise.
31708         * modules/array-oset-tests (Files): Likewise.
31709         * modules/avltree-list-tests (Files): Likewise.
31710         * modules/avltree-oset-tests (Files): Likewise.
31711         * modules/avltreehash-list-tests (Files): Likewise.
31712         * modules/base64-tests (Files): Likewise.
31713         * modules/binary-io-tests (Files): Likewise.
31714         * modules/bitrotate-tests (Files): Likewise.
31715         * modules/btowc-tests (Files): Likewise.
31716         * modules/byteswap-tests (Files): Likewise.
31717         * modules/c-ctype-tests (Files): Likewise.
31718         * modules/c-stack-tests (Files): Likewise.
31719         * modules/c-strcase-tests (Files): Likewise.
31720         * modules/c-strcasestr-tests (Files): Likewise.
31721         * modules/c-strstr-tests (Files): Likewise.
31722         * modules/canonicalize-lgpl-tests (Files): Likewise.
31723         * modules/canonicalize-tests (Files): Likewise.
31724         * modules/carray-list-tests (Files): Likewise.
31725         * modules/ceilf-tests (Files): Likewise.
31726         * modules/ceill-tests (Files): Likewise.
31727         * modules/chown-tests (Files): Likewise.
31728         * modules/cloexec-tests (Files): Likewise.
31729         * modules/copy-file-tests (Files): Likewise.
31730         * modules/count-one-bits-tests (Files): Likewise.
31731         * modules/dprintf-posix-tests (Files): Likewise.
31732         * modules/dup2-tests (Files): Likewise.
31733         * modules/dup3-tests (Files): Likewise.
31734         * modules/duplocale-tests (Files): Likewise.
31735         * modules/fbufmode-tests (Files): Likewise.
31736         * modules/fchdir-tests (Files): Likewise.
31737         * modules/fcntl-safer-tests (Files): Likewise.
31738         * modules/fcntl-tests (Files): Likewise.
31739         * modules/fdopendir-tests (Files): Likewise.
31740         * modules/fdutimensat-tests (Files): Likewise.
31741         * modules/fflush-tests (Files): Likewise.
31742         * modules/filevercmp-tests (Files): Likewise.
31743         * modules/flock-tests (Files): Likewise.
31744         * modules/floorf-tests (Files): Likewise.
31745         * modules/floorl-tests (Files): Likewise.
31746         * modules/fnmatch-tests (Files): Likewise.
31747         * modules/fopen-safer-tests (Files): Likewise.
31748         * modules/fopen-tests (Files): Likewise.
31749         * modules/fpending-tests (Files): Likewise.
31750         * modules/fprintf-posix-tests (Files): Likewise.
31751         * modules/fpurge-tests (Files): Likewise.
31752         * modules/freadable-tests (Files): Likewise.
31753         * modules/freadahead-tests (Files): Likewise.
31754         * modules/freading-tests (Files): Likewise.
31755         * modules/freadptr-tests (Files): Likewise.
31756         * modules/freadseek-tests (Files): Likewise.
31757         * modules/freopen-tests (Files): Likewise.
31758         * modules/frexp-nolibm-tests (Files): Likewise.
31759         * modules/frexp-tests (Files): Likewise.
31760         * modules/frexpl-nolibm-tests (Files): Likewise.
31761         * modules/frexpl-tests (Files): Likewise.
31762         * modules/fseek-tests (Files): Likewise.
31763         * modules/fseeko-tests (Files): Likewise.
31764         * modules/fstrcmp-tests (Files): Likewise.
31765         * modules/fsync-tests (Files): Likewise.
31766         * modules/ftell-tests (Files): Likewise.
31767         * modules/ftello-tests (Files): Likewise.
31768         * modules/func-tests (Files): Likewise.
31769         * modules/futimens-tests (Files): Likewise.
31770         * modules/fwritable-tests (Files): Likewise.
31771         * modules/fwriting-tests (Files): Likewise.
31772         * modules/getcwd-tests (Files): Likewise.
31773         * modules/getdate-tests (Files): Likewise.
31774         * modules/getdelim-tests (Files): Likewise.
31775         * modules/getdtablesize-tests (Files): Likewise.
31776         * modules/getgroups-tests (Files): Likewise.
31777         * modules/getline-tests (Files): Likewise.
31778         * modules/getndelim2-tests (Files): Likewise.
31779         * modules/glob-tests (Files): Likewise.
31780         * modules/hash-tests (Files): Likewise.
31781         * modules/i-ring-tests (Files): Likewise.
31782         * modules/iconv-tests (Files): Likewise.
31783         * modules/iconv_open-utf-tests (Files): Likewise.
31784         * modules/idpriv-drop-tests (Files): Likewise.
31785         * modules/idpriv-droptemp-tests (Files): Likewise.
31786         * modules/inet_ntop-tests (Files): Likewise.
31787         * modules/inet_pton-tests (Files): Likewise.
31788         * modules/isblank-tests (Files): Likewise.
31789         * modules/isfinite-tests (Files): Likewise.
31790         * modules/isinf-tests (Files): Likewise.
31791         * modules/isnan-tests (Files): Likewise.
31792         * modules/isnand-nolibm-tests (Files): Likewise.
31793         * modules/isnand-tests (Files): Likewise.
31794         * modules/isnanf-nolibm-tests (Files): Likewise.
31795         * modules/isnanf-tests (Files): Likewise.
31796         * modules/isnanl-nolibm-tests (Files): Likewise.
31797         * modules/isnanl-tests (Files): Likewise.
31798         * modules/lchown-tests (Files): Likewise.
31799         * modules/ldexpl-tests (Files): Likewise.
31800         * modules/link-tests (Files): Likewise.
31801         * modules/linkat-tests (Files): Likewise.
31802         * modules/linked-list-tests (Files): Likewise.
31803         * modules/linkedhash-list-tests (Files): Likewise.
31804         * modules/localename-tests (Files): Likewise.
31805         * modules/lseek-tests (Files): Likewise.
31806         * modules/lstat-tests (Files): Likewise.
31807         * modules/mbmemcasecmp-tests (Files): Likewise.
31808         * modules/mbmemcasecoll-tests (Files): Likewise.
31809         * modules/mbrtowc-tests (Files): Likewise.
31810         * modules/mbscasecmp-tests (Files): Likewise.
31811         * modules/mbscasestr-tests (Files): Likewise.
31812         * modules/mbschr-tests (Files): Likewise.
31813         * modules/mbscspn-tests (Files): Likewise.
31814         * modules/mbsinit-tests (Files): Likewise.
31815         * modules/mbsncasecmp-tests (Files): Likewise.
31816         * modules/mbsnrtowcs-tests (Files): Likewise.
31817         * modules/mbspbrk-tests (Files): Likewise.
31818         * modules/mbspcasecmp-tests (Files): Likewise.
31819         * modules/mbsrchr-tests (Files): Likewise.
31820         * modules/mbsrtowcs-tests (Files): Likewise.
31821         * modules/mbsspn-tests (Files): Likewise.
31822         * modules/mbsstr-tests (Files): Likewise.
31823         * modules/memchr-tests (Files): Likewise.
31824         * modules/memchr2-tests (Files): Likewise.
31825         * modules/memcmp-tests (Files): Likewise.
31826         * modules/memmem-tests (Files): Likewise.
31827         * modules/memrchr-tests (Files): Likewise.
31828         * modules/mkdir-tests (Files): Likewise.
31829         * modules/mkfifo-tests (Files): Likewise.
31830         * modules/mkfifoat-tests (Files): Likewise.
31831         * modules/mknod-tests (Files): Likewise.
31832         * modules/nanosleep-tests (Files): Likewise.
31833         * modules/nl_langinfo-tests (Files): Likewise.
31834         * modules/obstack-printf-tests (Files): Likewise.
31835         * modules/open-tests (Files): Likewise.
31836         * modules/openat-tests (Files): Likewise.
31837         * modules/pipe-filter-gi-tests (Files): Likewise.
31838         * modules/pipe-filter-ii-tests (Files): Likewise.
31839         * modules/pipe2-tests (Files): Likewise.
31840         * modules/popen-safer-tests (Files): Likewise.
31841         * modules/popen-tests (Files): Likewise.
31842         * modules/posixtm-tests (Files): Likewise.
31843         * modules/pread-tests (Files): Likewise.
31844         * modules/printf-frexp-tests (Files): Likewise.
31845         * modules/printf-frexpl-tests (Files): Likewise.
31846         * modules/printf-posix-tests (Files): Likewise.
31847         * modules/priv-set-tests (Files): Likewise.
31848         * modules/quotearg-tests (Files): Likewise.
31849         * modules/random_r-tests (Files): Likewise.
31850         * modules/rawmemchr-tests (Files): Likewise.
31851         * modules/rbtree-list-tests (Files): Likewise.
31852         * modules/rbtree-oset-tests (Files): Likewise.
31853         * modules/rbtreehash-list-tests (Files): Likewise.
31854         * modules/readlink-tests (Files): Likewise.
31855         * modules/remove-tests (Files): Likewise.
31856         * modules/rename-tests (Files): Likewise.
31857         * modules/renameat-tests (Files): Likewise.
31858         * modules/rmdir-tests (Files): Likewise.
31859         * modules/round-tests (Files): Likewise.
31860         * modules/roundf-tests (Files): Likewise.
31861         * modules/roundl-tests (Files): Likewise.
31862         * modules/safe-alloc-tests (Files): Likewise.
31863         * modules/setenv-tests (Files): Likewise.
31864         * modules/sigaction-tests (Files): Likewise.
31865         * modules/signbit-tests (Files): Likewise.
31866         * modules/sleep-tests (Files): Likewise.
31867         * modules/snprintf-posix-tests (Files): Likewise.
31868         * modules/snprintf-tests (Files): Likewise.
31869         * modules/sprintf-posix-tests (Files): Likewise.
31870         * modules/stat-tests (Files): Likewise.
31871         * modules/stat-time-tests (Files): Likewise.
31872         * modules/strcasestr-tests (Files): Likewise.
31873         * modules/strchrnul-tests (Files): Likewise.
31874         * modules/strerror-tests (Files): Likewise.
31875         * modules/striconv-tests (Files): Likewise.
31876         * modules/striconveh-tests (Files): Likewise.
31877         * modules/striconveha-tests (Files): Likewise.
31878         * modules/strsignal-tests (Files): Likewise.
31879         * modules/strstr-tests (Files): Likewise.
31880         * modules/strtod-tests (Files): Likewise.
31881         * modules/strverscmp-tests (Files): Likewise.
31882         * modules/symlink-tests (Files): Likewise.
31883         * modules/symlinkat-tests (Files): Likewise.
31884         * modules/trunc-tests (Files): Likewise.
31885         * modules/truncf-tests (Files): Likewise.
31886         * modules/truncl-tests (Files): Likewise.
31887         * modules/uname-tests (Files): Likewise.
31888         * modules/unicase/cased-tests (Files): Likewise.
31889         * modules/unicase/ignorable-tests (Files): Likewise.
31890         * modules/unicase/locale-language-tests (Files): Likewise.
31891         * modules/unicase/tolower-tests (Files): Likewise.
31892         * modules/unicase/totitle-tests (Files): Likewise.
31893         * modules/unicase/toupper-tests (Files): Likewise.
31894         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31895         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31896         * modules/unicase/u8-casefold-tests (Files): Likewise.
31897         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31898         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31899         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31900         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31901         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31902         * modules/unicase/u8-tolower-tests (Files): Likewise.
31903         * modules/unicase/u8-totitle-tests (Files): Likewise.
31904         * modules/unicase/u8-toupper-tests (Files): Likewise.
31905         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31906         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31907         * modules/unicase/u16-casefold-tests (Files): Likewise.
31908         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31909         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31910         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31911         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31912         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31913         * modules/unicase/u16-tolower-tests (Files): Likewise.
31914         * modules/unicase/u16-totitle-tests (Files): Likewise.
31915         * modules/unicase/u16-toupper-tests (Files): Likewise.
31916         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31917         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31918         * modules/unicase/u32-casefold-tests (Files): Likewise.
31919         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31920         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31921         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31922         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31923         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31924         * modules/unicase/u32-tolower-tests (Files): Likewise.
31925         * modules/unicase/u32-totitle-tests (Files): Likewise.
31926         * modules/unicase/u32-toupper-tests (Files): Likewise.
31927         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31928         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31929         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31930         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31931         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31932         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31933         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31934         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31935         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31936         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31937         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31938         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31939         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31940         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31941         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31942         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31943         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31944         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31945         * modules/unictype/block-list-tests (Files): Likewise.
31946         * modules/unictype/block-of-tests (Files): Likewise.
31947         * modules/unictype/block-test-tests (Files): Likewise.
31948         * modules/unictype/category-C-tests (Files): Likewise.
31949         * modules/unictype/category-Cc-tests (Files): Likewise.
31950         * modules/unictype/category-Cf-tests (Files): Likewise.
31951         * modules/unictype/category-Cn-tests (Files): Likewise.
31952         * modules/unictype/category-Co-tests (Files): Likewise.
31953         * modules/unictype/category-Cs-tests (Files): Likewise.
31954         * modules/unictype/category-L-tests (Files): Likewise.
31955         * modules/unictype/category-Ll-tests (Files): Likewise.
31956         * modules/unictype/category-Lm-tests (Files): Likewise.
31957         * modules/unictype/category-Lo-tests (Files): Likewise.
31958         * modules/unictype/category-Lt-tests (Files): Likewise.
31959         * modules/unictype/category-Lu-tests (Files): Likewise.
31960         * modules/unictype/category-M-tests (Files): Likewise.
31961         * modules/unictype/category-Mc-tests (Files): Likewise.
31962         * modules/unictype/category-Me-tests (Files): Likewise.
31963         * modules/unictype/category-Mn-tests (Files): Likewise.
31964         * modules/unictype/category-N-tests (Files): Likewise.
31965         * modules/unictype/category-Nd-tests (Files): Likewise.
31966         * modules/unictype/category-Nl-tests (Files): Likewise.
31967         * modules/unictype/category-No-tests (Files): Likewise.
31968         * modules/unictype/category-P-tests (Files): Likewise.
31969         * modules/unictype/category-Pc-tests (Files): Likewise.
31970         * modules/unictype/category-Pd-tests (Files): Likewise.
31971         * modules/unictype/category-Pe-tests (Files): Likewise.
31972         * modules/unictype/category-Pf-tests (Files): Likewise.
31973         * modules/unictype/category-Pi-tests (Files): Likewise.
31974         * modules/unictype/category-Po-tests (Files): Likewise.
31975         * modules/unictype/category-Ps-tests (Files): Likewise.
31976         * modules/unictype/category-S-tests (Files): Likewise.
31977         * modules/unictype/category-Sc-tests (Files): Likewise.
31978         * modules/unictype/category-Sk-tests (Files): Likewise.
31979         * modules/unictype/category-Sm-tests (Files): Likewise.
31980         * modules/unictype/category-So-tests (Files): Likewise.
31981         * modules/unictype/category-Z-tests (Files): Likewise.
31982         * modules/unictype/category-Zl-tests (Files): Likewise.
31983         * modules/unictype/category-Zp-tests (Files): Likewise.
31984         * modules/unictype/category-Zs-tests (Files): Likewise.
31985         * modules/unictype/category-and-not-tests (Files): Likewise.
31986         * modules/unictype/category-and-tests (Files): Likewise.
31987         * modules/unictype/category-byname-tests (Files): Likewise.
31988         * modules/unictype/category-name-tests (Files): Likewise.
31989         * modules/unictype/category-none-tests (Files): Likewise.
31990         * modules/unictype/category-of-tests (Files): Likewise.
31991         * modules/unictype/category-or-tests (Files): Likewise.
31992         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31993         * modules/unictype/combining-class-tests (Files): Likewise.
31994         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31995         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31996         * modules/unictype/ctype-blank-tests (Files): Likewise.
31997         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31998         * modules/unictype/ctype-digit-tests (Files): Likewise.
31999         * modules/unictype/ctype-graph-tests (Files): Likewise.
32000         * modules/unictype/ctype-lower-tests (Files): Likewise.
32001         * modules/unictype/ctype-print-tests (Files): Likewise.
32002         * modules/unictype/ctype-punct-tests (Files): Likewise.
32003         * modules/unictype/ctype-space-tests (Files): Likewise.
32004         * modules/unictype/ctype-upper-tests (Files): Likewise.
32005         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32006         * modules/unictype/decimal-digit-tests (Files): Likewise.
32007         * modules/unictype/digit-tests (Files): Likewise.
32008         * modules/unictype/mirror-tests (Files): Likewise.
32009         * modules/unictype/numeric-tests (Files): Likewise.
32010         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32011         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32012         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32013         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32014         Likewise.
32015         * modules/unictype/property-bidi-block-separator-tests (Files):
32016         Likewise.
32017         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32018         Likewise.
32019         * modules/unictype/property-bidi-common-separator-tests (Files):
32020         Likewise.
32021         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32022         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32023         Likewise.
32024         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32025         Likewise.
32026         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32027         Likewise.
32028         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32029         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32030         Likewise.
32031         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32032         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32033         Likewise.
32034         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32035         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32036         * modules/unictype/property-bidi-segment-separator-tests (Files):
32037         Likewise.
32038         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32039         * modules/unictype/property-byname-tests (Files): Likewise.
32040         * modules/unictype/property-combining-tests (Files): Likewise.
32041         * modules/unictype/property-composite-tests (Files): Likewise.
32042         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32043         * modules/unictype/property-dash-tests (Files): Likewise.
32044         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32045         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32046         Likewise.
32047         * modules/unictype/property-deprecated-tests (Files): Likewise.
32048         * modules/unictype/property-diacritic-tests (Files): Likewise.
32049         * modules/unictype/property-extender-tests (Files): Likewise.
32050         * modules/unictype/property-format-control-tests (Files): Likewise.
32051         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32052         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32053         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32054         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32055         * modules/unictype/property-hyphen-tests (Files): Likewise.
32056         * modules/unictype/property-id-continue-tests (Files): Likewise.
32057         * modules/unictype/property-id-start-tests (Files): Likewise.
32058         * modules/unictype/property-ideographic-tests (Files): Likewise.
32059         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32060         * modules/unictype/property-ids-trinary-operator-tests (Files):
32061         Likewise.
32062         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32063         * modules/unictype/property-iso-control-tests (Files): Likewise.
32064         * modules/unictype/property-join-control-tests (Files): Likewise.
32065         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32066         * modules/unictype/property-line-separator-tests (Files): Likewise.
32067         * modules/unictype/property-logical-order-exception-tests (Files):
32068         Likewise.
32069         * modules/unictype/property-lowercase-tests (Files): Likewise.
32070         * modules/unictype/property-math-tests (Files): Likewise.
32071         * modules/unictype/property-non-break-tests (Files): Likewise.
32072         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32073         * modules/unictype/property-numeric-tests (Files): Likewise.
32074         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32075         * modules/unictype/property-other-default-ignorable-code-point-tests
32076         (Files): Likewise.
32077         * modules/unictype/property-other-grapheme-extend-tests (Files):
32078         Likewise.
32079         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32080         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32081         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32082         * modules/unictype/property-other-math-tests (Files): Likewise.
32083         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32084         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32085         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32086         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32087         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32088         * modules/unictype/property-private-use-tests (Files): Likewise.
32089         * modules/unictype/property-punctuation-tests (Files): Likewise.
32090         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32091         * modules/unictype/property-radical-tests (Files): Likewise.
32092         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32093         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32094         * modules/unictype/property-space-tests (Files): Likewise.
32095         * modules/unictype/property-terminal-punctuation-tests (Files):
32096         Likewise.
32097         * modules/unictype/property-test-tests (Files): Likewise.
32098         * modules/unictype/property-titlecase-tests (Files): Likewise.
32099         * modules/unictype/property-unassigned-code-value-tests (Files):
32100         Likewise.
32101         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32102         * modules/unictype/property-uppercase-tests (Files): Likewise.
32103         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32104         * modules/unictype/property-white-space-tests (Files): Likewise.
32105         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32106         * modules/unictype/property-xid-start-tests (Files): Likewise.
32107         * modules/unictype/property-zero-width-tests (Files): Likewise.
32108         * modules/unictype/scripts-tests (Files): Likewise.
32109         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32110         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32111         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32112         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32113         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32114         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32115         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32116         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32117         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32118         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32119         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32120         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32121         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32122         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32123         * modules/uninorm/composition-tests (Files): Likewise.
32124         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32125         * modules/uninorm/decomposition-tests (Files): Likewise.
32126         * modules/uninorm/filter-tests (Files): Likewise.
32127         * modules/uninorm/nfc-tests (Files): Likewise.
32128         * modules/uninorm/nfd-tests (Files): Likewise.
32129         * modules/uninorm/nfkc-tests (Files): Likewise.
32130         * modules/uninorm/nfkd-tests (Files): Likewise.
32131         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32132         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32133         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32134         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32135         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32136         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32137         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32138         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32139         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32140         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32141         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32142         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32143         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32144         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32145         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32146         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32147         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32148         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32149         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32150         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32151         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32152         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32153         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32154         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32155         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32156         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32157         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32158         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32159         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32160         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32161         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32162         * modules/uniwidth/u8-width-tests (Files): Likewise.
32163         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32164         * modules/uniwidth/u16-width-tests (Files): Likewise.
32165         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32166         * modules/uniwidth/u32-width-tests (Files): Likewise.
32167         * modules/uniwidth/width-tests (Files): Likewise.
32168         * modules/unlink-tests (Files): Likewise.
32169         * modules/unsetenv-tests (Files): Likewise.
32170         * modules/usleep-tests (Files): Likewise.
32171         * modules/utimens-tests (Files): Likewise.
32172         * modules/utimensat-tests (Files): Likewise.
32173         * modules/vasnprintf-posix-tests (Files): Likewise.
32174         * modules/vasnprintf-tests (Files): Likewise.
32175         * modules/vasprintf-posix-tests (Files): Likewise.
32176         * modules/vasprintf-tests (Files): Likewise.
32177         * modules/vdprintf-posix-tests (Files): Likewise.
32178         * modules/vfprintf-posix-tests (Files): Likewise.
32179         * modules/vprintf-posix-tests (Files): Likewise.
32180         * modules/vsnprintf-posix-tests (Files): Likewise.
32181         * modules/vsnprintf-tests (Files): Likewise.
32182         * modules/vsprintf-posix-tests (Files): Likewise.
32183         * modules/wcrtomb-tests (Files): Likewise.
32184         * modules/wcsnrtombs-tests (Files): Likewise.
32185         * modules/wcsrtombs-tests (Files): Likewise.
32186         * modules/wctype-tests (Files): Likewise.
32187         * modules/wcwidth-tests (Files): Likewise.
32188         * modules/xmemdup0-tests (Files): Likewise.
32189         * modules/xprintf-posix-tests (Files): Likewise.
32190         * modules/xvasprintf-tests (Files): Likewise.
32191
32192 2009-12-24  Eric Blake  <ebb9@byu.net>
32193
32194         test-nanosleep: fix typo
32195         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32196         patch.
32197         Reported by Bruno Haible.
32198
32199 2009-12-24  Bruno Haible  <bruno@clisp.org>
32200
32201         Reduce namespace pollution on glibc systems.
32202         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32203         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32204         systems.
32205         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32206         <getopt.h> on glibc systems.
32207         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32208         systems.
32209         * lib/fcntl.c: Include <unistd.h> here instead.
32210
32211 2009-12-24  Bruno Haible  <bruno@clisp.org>
32212
32213         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32214
32215 2009-12-24  Eric Blake  <ebb9@byu.net>
32216
32217         tests: add signature checks
32218         * tests/signature.h (SIGNATURE_CHECK): New file.
32219         * modules/atexit-tests (Files): Use it.
32220         * modules/btowc-tests (Files): Likewise.
32221         * modules/canonicalize-lgpl-tests (Files): Likewise.
32222         * modules/ceilf-tests (Files): Likewise.
32223         * modules/ceill-tests (Files): Likewise.
32224         * modules/chown-tests (Files): Likewise.
32225         * modules/dprintf-posix-tests (Files): Likewise.
32226         * modules/dup2-tests (Files): Likewise.
32227         * modules/dup3-tests (Files): Likewise.
32228         * modules/duplocale-tests (Files): Likewise.
32229         * modules/fchdir-tests (Files): Likewise.
32230         * modules/fcntl-tests (Files): Likewise.
32231         * modules/fdopendir-tests (Files): Likewise.
32232         * modules/fflush-tests (Files): Likewise.
32233         * modules/flock-tests (Files): Likewise.
32234         * modules/floorf-tests (Files): Likewise.
32235         * modules/floorl-tests (Files): Likewise.
32236         * modules/fnmatch-tests (Files): Likewise.
32237         * modules/fopen-tests (Files): Likewise.
32238         * modules/fprintf-posix-tests (Files): Likewise.
32239         * modules/freopen-tests (Files): Likewise.
32240         * modules/frexp-nolibm-tests (Files): Likewise.
32241         * modules/frexp-tests (Files): Likewise.
32242         * modules/frexpl-nolibm-tests (Files): Likewise.
32243         * modules/frexpl-tests (Files): Likewise.
32244         * modules/fseek-tests (Files): Likewise.
32245         * modules/fseeko-tests (Files): Likewise.
32246         * modules/fsync-tests (Files): Likewise.
32247         * modules/ftell-tests (Files): Likewise.
32248         * modules/ftello-tests (Files): Likewise.
32249         * modules/futimens-tests (Files): Likewise.
32250         * modules/getaddrinfo-tests (Files): Likewise.
32251         * modules/getcwd-tests (Files): Likewise.
32252         * modules/getdelim-tests (Files): Likewise.
32253         * modules/getdtablesize-tests (Files): Likewise.
32254         * modules/getgroups-tests (Files): Likewise.
32255         * modules/gethostname-tests (Files): Likewise.
32256         * modules/getline-tests (Files): Likewise.
32257         * modules/getopt-posix-tests (Files): Likewise.
32258         * modules/gettimeofday-tests (Files): Likewise.
32259         * modules/glob-tests (Files): Likewise.
32260         * modules/iconv-tests (Files): Likewise.
32261         * modules/inet_ntop-tests (Files): Likewise.
32262         * modules/inet_pton-tests (Files): Likewise.
32263         * modules/isblank-tests (Files): Likewise.
32264         * modules/lchown-tests (Files): Likewise.
32265         * modules/ldexpl-tests (Files): Likewise.
32266         * modules/link-tests (Files): Likewise.
32267         * modules/linkat-tests (Files): Likewise.
32268         * modules/lseek-tests (Files): Likewise.
32269         * modules/lstat-tests (Files): Likewise.
32270         * modules/mbrtowc-tests (Files): Likewise.
32271         * modules/mbsinit-tests (Files): Likewise.
32272         * modules/mbsnrtowcs-tests (Files): Likewise.
32273         * modules/mbsrtowcs-tests (Files): Likewise.
32274         * modules/memchr-tests (Files): Likewise.
32275         * modules/memcmp-tests (Files): Likewise.
32276         * modules/memmem-tests (Files): Likewise.
32277         * modules/memrchr-tests (Files): Likewise.
32278         * modules/mkdir-tests (Files): Likewise.
32279         * modules/mkfifo-tests (Files): Likewise.
32280         * modules/mkfifoat-tests (Files): Likewise.
32281         * modules/mknod-tests (Files): Likewise.
32282         * modules/nanosleep-tests (Files): Likewise.
32283         * modules/nl_langinfo-tests (Files): Likewise.
32284         * modules/obstack-printf-tests (Files): Likewise.
32285         * modules/open-tests (Files): Likewise.
32286         * modules/openat-tests (Files): Likewise.
32287         * modules/perror-tests (Files): Likewise.
32288         * modules/pipe2-tests (Files): Likewise.
32289         * modules/poll-tests (Files): Likewise.
32290         * modules/popen-tests (Files): Likewise.
32291         * modules/posix_spawn-tests (Files): Likewise.
32292         * modules/posix_spawnp-tests (Files): Likewise.
32293         * modules/pread-tests (Files): Likewise.
32294         * modules/printf-posix-tests (Files): Likewise.
32295         * modules/pty-tests (Files): Likewise.
32296         * modules/random_r-tests (Files): Likewise.
32297         * modules/rawmemchr-tests (Files): Likewise.
32298         * modules/readlink-tests (Files): Likewise.
32299         * modules/remove-tests (Files): Likewise.
32300         * modules/rename-tests (Files): Likewise.
32301         * modules/renameat-tests (Files): Likewise.
32302         * modules/rmdir-tests (Files): Likewise.
32303         * modules/round-tests (Files): Likewise.
32304         * modules/roundf-tests (Files): Likewise.
32305         * modules/roundl-tests (Files): Likewise.
32306         * modules/select-tests (Files): Likewise.
32307         * modules/setenv-tests (Files): Likewise.
32308         * modules/sigaction-tests (Files): Likewise.
32309         * modules/sleep-tests (Files): Likewise.
32310         * modules/snprintf-posix-tests (Files): Likewise.
32311         * modules/snprintf-tests (Files): Likewise.
32312         * modules/sprintf-posix-tests (Files): Likewise.
32313         * modules/stat-tests (Files): Likewise.
32314         * modules/strcasestr-tests (Files): Likewise.
32315         * modules/strchrnul-tests (Files): Likewise.
32316         * modules/strerror-tests (Files): Likewise.
32317         * modules/strsignal-tests (Files): Likewise.
32318         * modules/strstr-tests (Files): Likewise.
32319         * modules/strtod-tests (Files): Likewise.
32320         * modules/strverscmp-tests (Files): Likewise.
32321         * modules/symlink-tests (Files): Likewise.
32322         * modules/symlinkat-tests (Files): Likewise.
32323         * modules/times-tests (Files): Likewise.
32324         * modules/trunc-tests (Files): Likewise.
32325         * modules/truncf-tests (Files): Likewise.
32326         * modules/truncl-tests (Files): Likewise.
32327         * modules/tsearch-tests (Files): Likewise.
32328         * modules/uname-tests (Files): Likewise.
32329         * modules/unlink-tests (Files): Likewise.
32330         * modules/unsetenv-tests (Files): Likewise.
32331         * modules/usleep-tests (Files): Likewise.
32332         * modules/utimensat-tests (Files): Likewise.
32333         * modules/vasprintf-tests (Files): Likewise.
32334         * modules/vdprintf-posix-tests (Files): Likewise.
32335         * modules/vfprintf-posix-tests (Files): Likewise.
32336         * modules/vprintf-posix-tests (Files): Likewise.
32337         * modules/vsnprintf-posix-tests (Files): Likewise.
32338         * modules/vsnprintf-tests (Files): Likewise.
32339         * modules/vsprintf-posix-tests (Files): Likewise.
32340         * modules/wcrtomb-tests (Files): Likewise.
32341         * modules/wcsnrtombs-tests (Files): Likewise.
32342         * modules/wcsrtombs-tests (Files): Likewise.
32343         * modules/wcwidth-tests (Files): Likewise.
32344         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32345         * tests/test-isinf.c (isinf): Likewise.
32346         * tests/test-isnan.c (isnan): Likewise.
32347         * tests/test-signbit.c (signbit): Likewise.
32348         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32349         declaration, either as macro or with correct signature.
32350         (select): Ensure function under test is declared with correct
32351         signature in correct header.
32352         * tests/test-atexit.c (atexit): Likewise.
32353         * tests/test-btowc.c (btowc): Likewise.
32354         * tests/test-canonicalize-lgpl.c (realpath)
32355         (canonicalize_file_name): Likewise.
32356         * tests/test-ceilf1.c (ceilf): Likewise.
32357         * tests/test-ceill.c (ceill): Likewise.
32358         * tests/test-chown.c (chown): Likewise.
32359         * tests/test-dprintf-posix.c (dprintf): Likewise.
32360         * tests/test-dup2.c (dup2): Likewise.
32361         * tests/test-dup3.c (dup3): Likewise.
32362         * tests/test-duplocale.c (duplocale): Likewise.
32363         * tests/test-fchdir.c (fchdir): Likewise.
32364         * tests/test-fchownat.c (fchownat): Likewise.
32365         * tests/test-fcntl.c (fcntl): Likewise.
32366         * tests/test-fdopendir.c (fdopendir): Likewise.
32367         * tests/test-fflush.c (fflush): Likewise.
32368         * tests/test-flock.c (flock): Likewise.
32369         * tests/test-floorf1.c (floorf): Likewise.
32370         * tests/test-floorl.c (floorl): Likewise.
32371         * tests/test-fnmatch.c (fnmatch): Likewise.
32372         * tests/test-fopen.c (fopen): Likewise.
32373         * tests/test-fprintf-posix.c (fprintf): Likewise.
32374         * tests/test-freopen.c (freopen): Likewise.
32375         * tests/test-frexp.c (frexp): Likewise.
32376         * tests/test-frexpl.c (frexpl): Likewise.
32377         * tests/test-fseek.c (fseek): Likewise.
32378         * tests/test-fseeko.c (fseeko): Likewise.
32379         * tests/test-fstatat.c (fstatat): Likewise.
32380         * tests/test-fsync.c (fsync): Likewise.
32381         * tests/test-ftell.c (ftell): Likewise.
32382         * tests/test-ftello.c (ftello): Likewise.
32383         * tests/test-futimens.c (futimens): Likewise.
32384         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32385         (gai_strerror): Likewise.
32386         * tests/test-getcwd.c (getcwd): Likewise.
32387         * tests/test-getdelim.c (getdelim): Likewise.
32388         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32389         * tests/test-getgroups.c (getgroups): Likewise.
32390         * tests/test-gethostname.c (gethostname): Likewise.
32391         * tests/test-getline.c (getline): Likewise.
32392         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32393         Likewise.
32394         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32395         * tests/test-glob.c (glob, globfree): Likewise.
32396         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32397         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32398         * tests/test-inet_pton.c (inet_pton): Likewise.
32399         * tests/test-isblank.c (isblank): Likewise.
32400         * tests/test-lchown.c (lchown): Likewise.
32401         * tests/test-ldexpl.c (ldexpl): Likewise.
32402         * tests/test-link.c (link): Likewise.
32403         * tests/test-linkat.c (linkat): Likewise.
32404         * tests/test-lseek.c (lseek): Likewise.
32405         * tests/test-lstat.c (lstat): Likewise.
32406         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32407         * tests/test-mbsinit.c (mbsinit): Likewise.
32408         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32409         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32410         * tests/test-memchr.c (memchr): Likewise.
32411         * tests/test-memcmp.c (memcmp): Likewise.
32412         * tests/test-memmem.c (memmem): Likewise.
32413         * tests/test-memrchr.c (memrchr): Likewise.
32414         * tests/test-mkdir.c (mkdir): Likewise.
32415         * tests/test-mkdirat.c (mkdirat): Likewise.
32416         * tests/test-mkfifo.c (mkfifo): Likewise.
32417         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32418         * tests/test-mknod.c (mknod): Likewise.
32419         * tests/test-nanosleep.c (nanosleep): Likewise.
32420         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32421         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32422         Likewise.
32423         * tests/test-open.c (open): Likewise.
32424         * tests/test-openat.c (openat): Likewise.
32425         * tests/test-perror.c (perror): Likewise.
32426         * tests/test-pipe2.c (pipe2): Likewise.
32427         * tests/test-poll.c (poll): Likewise.
32428         * tests/test-popen.c (popen, pclose): Likewise.
32429         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32430         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32431         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32432         (posix_spawn_file_actions_destroy)
32433         (posix_spawn_file_actions_addclose)
32434         (posix_spawn_file_actions_addopen)
32435         (posix_spawn_file_actions_adddup2): Likewise.
32436         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32437         * tests/test-pread.c (pread): Likewise.
32438         * tests/test-printf-posix.c (printf): Likewise.
32439         * tests/test-pty.c (openpty, forkpty): Likewise.
32440         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32441         (random_r): Likewise.
32442         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32443         * tests/test-readlink.c (readlink): Likewise.
32444         * tests/test-remove.c (remove): Likewise.
32445         * tests/test-rename.c (rename): Likewise.
32446         * tests/test-renameat.c (renameat): Likewise.
32447         * tests/test-rmdir.c (rmdir): Likewise.
32448         * tests/test-round1.c (round): Likewise.
32449         * tests/test-roundf1.c (roundf): Likewise.
32450         * tests/test-roundl.c (roundl): Likewise.
32451         * tests/test-setenv.c (setenv): Likewise.
32452         * tests/test-sigaction.c (sigaction): Likewise.
32453         * tests/test-sleep.c (sleep): Likewise.
32454         * tests/test-snprintf.c (snprintf): Likewise.
32455         * tests/test-sprintf-posix.c (sprintf): Likewise.
32456         * tests/test-stat.c (stat): Likewise.
32457         * tests/test-stpncpy.c (stpncpy): Likewise.
32458         * tests/test-strcasestr.c (strcasestr): Likewise.
32459         * tests/test-strchrnul.c (strchrnul): Likewise.
32460         * tests/test-strerror.c (strerror): Likewise.
32461         * tests/test-strsignal.c (strsignal): Likewise.
32462         * tests/test-strstr.c (strstr): Likewise.
32463         * tests/test-strtod.c (strtod): Likewise.
32464         * tests/test-strverscmp.c (strverscmp): Likewise.
32465         * tests/test-symlink.c (symlink): Likewise.
32466         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32467         * tests/test-times.c (times): Likewise.
32468         * tests/test-trunc1.c (trunc): Likewise.
32469         * tests/test-truncf1.c (truncf): Likewise.
32470         * tests/test-truncl.c (truncl): Likewise.
32471         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32472         Likewise.
32473         * tests/test-uname.c (uname): Likewise.
32474         * tests/test-unlink.c (unlink): Likewise.
32475         * tests/test-unlinkat.c (unlinkat): Likewise.
32476         * tests/test-unsetenv.c (unsetenv): Likewise.
32477         * tests/test-usleep.c (usleep): Likewise.
32478         * tests/test-utimensat.c (utimensat): Likewise.
32479         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32480         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32481         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32482         * tests/test-vprintf-posix.c (vprintf): Likewise.
32483         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32484         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32485         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32486         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32487         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32488         * tests/test-wcwidth.c (wcwidth): Likewise.
32489
32490         build: pull in conditional headers during GNULIB_POSIXCHECK
32491         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32492         definitions from any conditionally-included headers.
32493         * lib/stdlib.in.h (includes): Likewise.
32494         * lib/unistd.in.h (includes): Likewise.
32495
32496 2009-12-24  Bruno Haible  <bruno@clisp.org>
32497
32498         * tests/test-argv-iter.c: Include header file being tested immediately
32499         after config.h.
32500         * tests/test-base64.c: Likewise.
32501         * tests/test-flock.c: Likewise.
32502         * tests/test-fsync.c: Likewise.
32503         * tests/test-getdate.c: Likewise.
32504         * tests/test-getndelim2.c: Likewise.
32505         * tests/test-isfinite.c: Likewise.
32506         * tests/test-isinf.c: Likewise.
32507         * tests/test-strerror.c: Likewise.
32508         * tests/test-strsignal.c: Likewise.
32509
32510 2009-12-23  Eric Blake  <ebb9@byu.net>
32511
32512         unistd: work around cygwin bug
32513         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32514         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32515         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32516
32517 2009-12-23  Bruno Haible  <bruno@clisp.org>
32518
32519         localename: More tests.
32520         * tests/test-localename.c (SIZEOF): New macro.
32521         (categories): New variable.
32522         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32523         test_locale_name_default): Add test w.r.t. thread locale.
32524         (test_locale_name_thread): New function.
32525         (main): Invoke it.
32526
32527         localename: Make aware of thread locale.
32528         * lib/localename.h (gl_locale_name_thread): New declaration.
32529         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32530         behaviour with respect to thread locale.
32531         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32532         <langinfo.h>, glthread/lock.h.
32533         (SIZE_BITS): New macro.
32534         (string_hash): New function.
32535         (struct hash_node): New type.
32536         (HASH_TABLE_SIZE): New macro.
32537         (struniq_hash_table, struniq_lock): New variables.
32538         (struniq): New function.
32539         (gl_locale_name_thread): New function.
32540         (gl_locale_name): Invoke it.
32541         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32542         * modules/localename (Depends-on): Add lock.
32543         Reported by Mike Gran <spk121@yahoo.com>.
32544
32545 2009-12-23  Eric Blake  <ebb9@byu.net>
32546
32547         va-args: new module
32548         * modules/va-args: New file.
32549         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32550         * MODULES.html.sh (Core language properties): Mention it.
32551
32552         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32553         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32554         named alias for __attribute__((__unused__)).
32555         * lib/chown.c: Update client.
32556         * lib/fchmodat.c: Likewise.
32557         * lib/fts.c: Likewise.
32558         * lib/getdate.y: Likewise.
32559         * lib/getgroups.c: Likewise.
32560         * lib/getopt.c: Likewise.
32561         * lib/getugroups.c: Likewise.
32562         * lib/mkdir.c: Likewise.
32563         * lib/mkfifo.c: Likewise.
32564         * lib/mkfifoat.c: Likewise.
32565         * lib/mknod.c: Likewise.
32566         * lib/mknodat.c: Likewise.
32567         * lib/readlink.c: Likewise.
32568         * lib/se-context.in.h: Likewise.
32569         * lib/se-selinux.in.h: Likewise.
32570         * lib/sockets.c: Likewise.
32571         * lib/symlink.c: Likewise.
32572         * lib/symlinkat.c: Likewise.
32573         * lib/unicodeio.c: Likewise.
32574         * lib/unistr.h: Likewise.
32575         * tests/test-areadlink.c: Likewise.
32576         * tests/test-areadlinkat.c: Likewise.
32577         * tests/test-filenamecat.c: Likewise.
32578         * tests/test-fseeko.c: Likewise.
32579         * tests/test-ftello.c: Likewise.
32580         * tests/test-getdate.c: Likewise.
32581         * tests/test-getgroups.c: Likewise.
32582         * tests/test-gethostname.c: Likewise.
32583         * tests/test-quotearg.c: Likewise.
32584         * tests/test-version-etc.c: Likewise.
32585         * tests/test-xalloc-die.c: Likewise.
32586         * tests/test-xfprintf-posix.c: Likewise.
32587         * tests/test-xprintf-posix.c: Likewise.
32588         * tests/test-xvasprintf.c: Likewise.
32589
32590         tests: avoid compiler warnings
32591         * tests/test-fcntl.c (main): Delete unused parameters.
32592         * tests/test-freopen-safer.c (main): Likewise.
32593         * tests/test-xalloc-die.c (main): Mark unused parameters.
32594         * tests/test-fseeko.c (main): Likewise.
32595         * tests/test-ftello.c (main): Likewise.
32596         * tests/test-nanosleep.c (main): Avoid declaration warning.
32597         * tests/test-sleep.c (main): Likewise.
32598         * tests/test-unsetenv.c (main): Silence warning about string
32599         literal.
32600         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32601
32602 2009-12-23  Bruno Haible  <bruno@clisp.org>
32603
32604         * tests/test-localename.c (test_locale_name): New function, extracted
32605         from main. Also test mixed situations.
32606         (test_locale_name_posix, test_locale_name_environ,
32607         test_locale_name_default): New functions.
32608         (main): Invoke them all.
32609         * modules/localename-tests (configure.ac): Test for newlocale.
32610
32611 2009-12-23  Bruno Haible  <bruno@clisp.org>
32612
32613         unistd: Ensure getcwd gets declared before being overridden.
32614         * lib/unistd.in.h: Conditionally include <io.h>.
32615
32616 2009-12-22  Bruno Haible  <bruno@clisp.org>
32617
32618         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32619         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32620         (gl_WCHAR_H): Invoke it.
32621         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32622         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32623         Reported by Karl Berry <karl@freefriends.org>.
32624
32625 2009-12-22  Eric Blake  <ebb9@byu.net>
32626
32627         math, unistd: avoid redundant includes
32628         * lib/math.in.h (isnan): No need to re-include <math.h>.
32629         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32630
32631         getsubopt: work around cygwin bug
32632         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32633         avoid conflicting with system getsubopt.
32634         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32635         bug.
32636
32637         getopt: synchronize from glibc
32638         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32639         parameter order.  Adjust all callers.
32640         (_getopt_internal_r, main): Adjust quoting in error messages.
32641         Drop considerations for outdated POSIX 1003.2 error message.
32642         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32643         callers.
32644         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32645
32646         test-getopt: test stderr behavior
32647         * modules/getopt-posix-tests (Depends-on): Add dup2.
32648         * tests/test-getopt.c (ASSERT): Avoid stderr.
32649         (main): Move stderr to a temporary file.
32650         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32651         Instead, add parameter to inform caller if output occurred.
32652         (test_getopt): Adjust all existing tests to expect silence, and
32653         add new tests of leading ":".
32654         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32655         glibc shortcomings with leading "-:" or "+:" in optstring.
32656         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32657         Likewise.
32658         * doc/posix-functions/getopt.texi (getopt): Likewise.
32659
32660         test-getopt: enhance test
32661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32662         supports optind=0.
32663         * tests/test-getopt.c (OPTIND_MIN): Move...
32664         * tests/test-getopt.h (OPTIND_MIN): ...here.
32665         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32666         Require that optind=0 works, since modern BSD supports it in
32667         addition to optreset, and since coreutils expects it.
32668         (test_getopt_long_only): New test.
32669         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32670         glibc shortcomings with 'W;', and enforcement of optind=0.
32671         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32672         Likewise.
32673
32674 2009-12-21  Bruno Haible  <bruno@clisp.org>
32675
32676         localename: Improvements for MacOS X and Cygwin.
32677         * lib/localename.h (gl_locale_name_environ): New declaration.
32678         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32679         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32680         (gl_locale_name_posix): Invoke it.
32681         (gl_locale_name_default): Add comments. Use Windows native API also on
32682         Cygwin.
32683
32684 2009-12-21  Bruno Haible  <bruno@clisp.org>
32685
32686         Update list of Win32 locale ids.
32687         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32688         (LANG_SAMI): Renamed from LANG_SAAMI.
32689         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32690         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32691         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32692         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32693         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32694         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32695         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32696         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32697         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32698         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32699         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32700         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32701         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32702         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32703         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32704         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32705         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32706         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32707         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32708         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32709         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32710         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32711         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32712         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32713         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32714         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32715         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32716         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32717         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32718         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32719         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32720         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32721         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32722         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32723         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32724         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32725         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32726         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32727         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32728         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32729         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32730         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32731         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32732         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32733         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32734         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32735         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32736         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32737         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32738         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32739         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32740         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32741         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32742         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32743         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32744         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32745         Add more languages and countries for Sami, Sorbian. Add more countries
32746         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32747         for Pashto. Change country for Syriac, Tswana.
32748
32749 2009-12-21  Eric Blake  <ebb9@byu.net>
32750
32751         test-utimens: avoid spurious failure
32752         * tests/test-chown.h (nap): Factor...
32753         * tests/nap.h: ...into new file.
32754         * tests/test-lchown.h (nap): Avoid duplication.
32755         * tests/test-utimens-common.h (nap): Use shared implementation,
32756         necessary on file systems with 1-second resolution.
32757         * modules/chown-tests (Files): Include new file.
32758         * modules/fdutimensat-tests (Files): Likewise.
32759         * modules/futimens-tests (Files): Likewise.
32760         * modules/lchown-tests (Files): Likewise.
32761         * modules/openat-tests (Files): Likewise.
32762         * modules/utimens-tests (Files): Likewise.
32763         * modules/utimensat-tests (Files): Likewise.
32764
32765 2009-12-19  Eric Blake  <ebb9@byu.net>
32766
32767         futimens, utimensat: work around Linux bug
32768         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32769         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32770         * lib/utimensat.c (rpl_utimensat): Work around it.
32771         * lib/futimens.c (rpl_futimens): Adjust comment.
32772
32773         utimens: work around Linux ctime bug
32774         * lib/utimens.c (detect_ctime_bug): New helper function.
32775         (update_timespec): Differentiate between workaround needed for
32776         this bug vs. what is needed for systems that lack utimensat.
32777         (fdutimens, lutimens): Work around bug.
32778
32779         utimens: check for ctime update
32780         * tests/test-utimens-common.h (check_ctime): Define.
32781         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32782         * tests/test-futimens.h (test_futimens): Likewise.
32783         * tests/test-lutimens.h (test_lutimens): Likewise.
32784         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32785         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32786
32787 2009-12-19  Bruno Haible  <bruno@clisp.org>
32788
32789         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32790         * tests/test-dprintf-posix2.sh: New file.
32791         * tests/test-dprintf-posix2.c: New file.
32792         * modules/dprintf-posix-tests (Files): Add them.
32793         (configure.ac): Check for getrlimit and setrlimit.
32794         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32795
32796 2009-12-19  Bruno Haible  <bruno@clisp.org>
32797
32798         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32799         * tests/test-fprintf-posix3.sh: New file.
32800         * tests/test-fprintf-posix3.c: New file.
32801         * modules/fprintf-posix-tests (Files): Add them.
32802         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32803
32804 2009-12-19  Eric Blake  <ebb9@byu.net>
32805
32806         dirfd: fix prototype
32807         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32808         * lib/dirfd.c (dirfd): Likewise.
32809
32810         canonicalize: reduce memory usage
32811         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32812         allocation to size.
32813         Reported by Solar Designer <solar@openwall.com>.
32814
32815 2009-12-19  Bruno Haible  <bruno@clisp.org>
32816
32817         New module attribute 'Applicability'.
32818         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32819         * gnulib-tool: New option --extract-applicability.
32820         (func_usage): Document it.
32821         (sed_extract_prog): Recognize it.
32822         (func_get_applicability): New function.
32823         (func_import): Generalize handling of 'link-warning' module.
32824         * modules/link-warning (Applicability): New section.
32825         * modules/arg-nonnull (Applicability): New section.
32826         Repoted by Simon Josefsson <simon@josefsson.org>.
32827
32828 2009-12-19  Bruno Haible  <bruno@clisp.org>
32829
32830         fflush: tweak
32831         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32832         * lib/fseeko.c (rpl_fseeko): Likewise.
32833
32834 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32835
32836         * lib/gl_list.h: Fix typo in comment.
32837
32838 2009-12-16  Eric Blake  <ebb9@byu.net>
32839
32840         fcntl: use to simplify other modules
32841         * modules/cloexec (Depends-on): Add fcntl.
32842         * modules/fchdir (Depends-on): Likewise.
32843         * modules/fd-safer-flag (Depends-on): Likewise.
32844         * modules/unistd-safer (Depends-on): Likewise.
32845         * modules/dup3 (configure.ac): Set module indicator.
32846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32847         missing.
32848         * lib/fchdir.c (_gl_register_dup): Fix comment.
32849         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32850         * lib/dup-safer.c (dup_safer): Likewise.
32851         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32852         * lib/dup3.c (dup3): Likewise.
32853         * tests/test-fchdir.c (main): Enhance test.
32854         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32855
32856         fcntl: port portions of fcntl to mingw
32857         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32858         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32859         replacement for mingw.
32860         * modules/fcntl (Description): Update.
32861         (Depends-on): Add dup2.
32862         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32863         * modules/fcntl-h (Makefile.am): Substitute it.
32864         * lib/fcntl.in.h (fcntl): Update declaration.
32865         (F_DUPFD, F_GETFD): New macros, when needed.
32866         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32867         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32868         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32869         we now guarantee.
32870
32871         fcntl: work around cygwin bug in F_DUPFD
32872         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32873         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32874         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32875         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32876         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32877
32878         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32879         * modules/fcntl (Files): List new files.
32880         (configure.ac): Run a test.
32881         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32882         * lib/fcntl.c (rpl_fcntl): Likewise.
32883         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32884         (gl_FCNTL_H): Always replace fcntl.h.
32885         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32886         * lib/fcntl.in.h (fcntl): Declare replacement.
32887         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32888         needed, plus a witness.
32889         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32890         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32891         * tests/test-fcntl.c: New file.
32892         * modules/fcntl-tests: Likewise.
32893
32894         binary-io: avoid potential compilation warning
32895         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32896         directives.
32897
32898         fflush: avoid compilation error on NetBSD
32899         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32900         between off_t and fpos_t, since the latter is sometimes a struct.
32901         * lib/fseeko.c (rpl_fseeko): Likewise.
32902         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32903
32904 2009-12-15  Eric Blake  <ebb9@byu.net>
32905
32906         fcntl-h, stdio, sys_ioctl: fix declarations
32907         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32908         function must not take arguments.
32909         * lib/sys_ioctl.in.h (ioctl): Likewise.
32910         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32911         (open): Add a link warning.
32912
32913 2009-12-15  Jim Meyering  <meyering@redhat.com>
32914
32915         areadlink, areadlink-with-size: relax license to LGPLv2+
32916         * modules/areadlink (License): Relax to LGPLv2+.
32917         * modules/areadlink-with-size (License): Likewise.
32918
32919 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32920             Bruno Haible  <bruno@clisp.org>
32921
32922         *printf: Fix memory leak.
32923         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32924         * lib/vfprintf.c (vfprintf): Likewise.
32925         * lib/dprintf.c (dprintf): Likewise.
32926         * lib/vdprintf.c (vdprintf): Likewise.
32927
32928 2009-12-14  Eric Blake  <ebb9@byu.net>
32929
32930         accept4: adjust module dependencies
32931         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32932
32933         utimens: one more try at avoiding compiler warning
32934         * lib/utimens.c (lutimens): Lower scope of result.
32935
32936 2009-12-13  Bruno Haible  <bruno@clisp.org>
32937
32938         Move the malloc checking from module 'list' to new module 'xlist'.
32939         * modules/xlist: New file.
32940         * lib/gl_xlist.h: New file.
32941         * lib/gl_xlist.c: New file.
32942         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32943         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32944         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32945         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32946         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32947         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32948         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32949         gl_sortedlist_nx_add): New declarations.
32950         (struct gl_list_implementation): Rename and change methods accordingly.
32951         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32952         (gl_list_nx_create): Renamed from gl_list_create.
32953         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32954         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32955         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32956         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32957         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32958         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32959         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32960         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32961         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32962         gl_list_create_empty.
32963         (gl_list_nx_create): Renamed from gl_list_create.
32964         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32965         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32966         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32967         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32968         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32969         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32970         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32971         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32972         * lib/gl_array_list.c: Don't include xalloc.h.
32973         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32974         NULL upon out-of-memory.
32975         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32976         out-of-memory.
32977         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32978         Change return type to 'int'.
32979         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32980         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32981         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32982         upon out-of-memory.
32983         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32984         upon out-of-memory.
32985         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32986         upon out-of-memory.
32987         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32988         upon out-of-memory.
32989         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32990         out-of-memory.
32991         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32992         Update.
32993         (gl_array_list_implementation): Update.
32994         * lib/gl_carray_list.c: Don't include xalloc.h.
32995         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32996         Return NULL upon out-of-memory.
32997         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32998         out-of-memory.
32999         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33000         Change return type to 'int'.
33001         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33002         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33003         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33004         upon out-of-memory.
33005         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33006         upon out-of-memory.
33007         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33008         out-of-memory.
33009         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33010         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33011         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33012         Update.
33013         (gl_carray_list_implementation): Update.
33014         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33015         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33016         gl_linked_create_empty. Return NULL upon out-of-memory.
33017         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33018         out-of-memory.
33019         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33020         Change return type to 'int'. Return -1 upon out-of-memory.
33021         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33022         out-of-memory.
33023         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33024         upon out-of-memory.
33025         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33026         upon out-of-memory.
33027         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33028         NULL upon out-of-memory.
33029         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33030         upon out-of-memory.
33031         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33032         out-of-memory.
33033         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33034         Update.
33035         * lib/gl_linked_list.c: Don't include xalloc.h.
33036         (gl_linked_list_implementation): Update.
33037         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33038         (add_to_bucket): Change return type to 'int'.
33039         (gl_linkedhash_list_implementation): Update.
33040         * lib/gl_anytree_list1.h (free_subtree): New function.
33041         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33042         gl_tree_create_empty. Return NULL upon out-of-memory.
33043         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33044         Change return type to 'int'. Return -1 upon out-of-memory.
33045         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33046         out-of-memory.
33047         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33048         (gl_tree_remove_node): New function, moved here from
33049         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33050         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33051         Update.
33052         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33053         malloc, not xmalloc. Return NULL upon out-of-memory.
33054         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33055         out-of-memory.
33056         (gl_tree_remove_node_from_tree): New function, extracted from
33057         gl_tree_remove_node.
33058         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33059         upon out-of-memory.
33060         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33061         out-of-memory.
33062         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33063         upon out-of-memory.
33064         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33065         upon out-of-memory.
33066         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33067         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33068         not xmalloc. Return NULL upon out-of-memory.
33069         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33070         out-of-memory.
33071         (gl_tree_remove_node_from_tree): New function, extracted from
33072         gl_tree_remove_node.
33073         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33074         upon out-of-memory.
33075         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33076         out-of-memory.
33077         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33078         upon out-of-memory.
33079         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33080         upon out-of-memory.
33081         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33082         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33083         gl_anytree_list1.h before gl_anyavltree_list2.h.
33084         (gl_avltree_list_implementation): Update.
33085         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33086         gl_anytree_list1.h before gl_anyavltree_list2.h.
33087         (gl_rbtree_list_implementation): Update.
33088         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33089         Change return type to 'int'. Return -1 upon out-of-memory. Use
33090         __builtin_expect.
33091         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33092         (gl_avltreehash_list_implementation): Update.
33093         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33094         (gl_rbtreehash_list_implementation): Update.
33095         * modules/array-list (Depends-on): Remove xalloc.
33096         * modules/carray-list (Depends-on): Likewise.
33097         * modules/linked-list (Depends-on): Likewise.
33098         * modules/linkedhash-list (Depends-on): Likewise.
33099         * modules/avltree-list (Depends-on): Likewise.
33100         * modules/rbtree-list (Depends-on): Likewise.
33101         * modules/avltreehash-list (Depends-on): Likewise.
33102         * modules/rbtreehash-list (Depends-on): Likewise.
33103
33104         * modules/xsublist: New file.
33105         * lib/gl_xsublist.h: New file.
33106         * lib/gl_xsublist.c: New file.
33107         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33108         (gl_sublist_nx_create): New declaration.
33109         * lib/gl_sublist.c: Don't include xalloc.h.
33110         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33111         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33112         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33113         Change return type to 'int'. Return -1 upon out-of-memory.
33114         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33115         upon out-of-memory.
33116         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33117         NULL upon out-of-memory.
33118         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33119         upon out-of-memory.
33120         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33121         NULL upon out-of-memory.
33122         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33123         NULL upon out-of-memory.
33124         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33125         upon out-of-memory.
33126         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33127         (gl_sublist_list_implementation): Update.
33128         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33129         upon out-of-memory.
33130         * modules/sublist (Depends-on): Remove xalloc.
33131
33132         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33133         * tests/test-carray_list.c: Likewise.
33134         * tests/test-linked_list.c: Likewise.
33135         * tests/test-linkedhash_list.c: Likewise.
33136         * tests/test-avltree_list.c: Likewise.
33137         * tests/test-rbtree_list.c: Likewise.
33138         * tests/test-avltreehash_list.c: Likewise.
33139         * tests/test-rbtreehash_list.c: Likewise.
33140         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33141         * modules/carray-list-tests (Makefile.am): Likewise.
33142         * modules/linked-list-tests (Makefile.am): Likewise.
33143         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33144         * modules/avltree-list-tests (Makefile.am): Likewise.
33145         * modules/rbtree-list-tests (Makefile.am): Likewise.
33146         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33147         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33148
33149         * NEWS: Mention the changes.
33150
33151         * lib/clean-temp.c: Include gl_xlist.h.
33152         * modules/clean-temp (Depends-on): Add xlist.
33153
33154         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33155         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33156
33157         * tests/test-array_oset.c: Include gl_xlist.h.
33158         * modules/array-oset-tests (Depends-on): Add xlist.
33159
33160         Reported by José E. Marchesi <jemarch@gnu.org>.
33161
33162 2009-12-13  Bruno Haible  <bruno@clisp.org>
33163
33164         Move the malloc checking from module 'oset' to new module 'xoset'.
33165         * modules/xoset: New file.
33166         * lib/gl_xoset.h: New file.
33167         * lib/gl_xoset.c: New file.
33168         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33169         declarations.
33170         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33171         (struct gl_oset_implementation): Rename and change methods accordingly.
33172         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33173         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33174         'int'. Mark as __warn_unused_result__.
33175         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33176         gl_oset_create_empty.
33177         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33178         'int'.
33179         * lib/gl_array_oset.c: Don't include xalloc.h.
33180         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33181         malloc, not xmalloc.
33182         (grow): Change return type to 'int'. Don't call xalloc_die.
33183         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33184         to 'int'.
33185         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33186         'int'.
33187         (gl_array_oset_implementation): Update.
33188         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33189         gl_tree_create_empty.
33190         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33191         'int'.
33192         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33193         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33194         xmalloc.
33195         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33196         not xmalloc.
33197         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33198         xmalloc.
33199         (gl_avltree_oset_implementation): Update.
33200         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33201         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33202         xmalloc.
33203         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33204         not xmalloc.
33205         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33206         xmalloc.
33207         (gl_rbtree_oset_implementation): Update.
33208         * modules/array-oset (Depends-on): Remove xalloc.
33209         * modules/avltree-oset (Depends-on): Likewise.
33210         * modules/rbtree-oset (Depends-on): Likewise.
33211         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33212         * tests/test-avltree_oset.c: Likewise.
33213         * tests/test-rbtree_oset.c: Likewise.
33214         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33215         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33216         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33217         * NEWS: Mention the change.
33218
33219 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33220
33221         maint.mk: allow a project to override release-prep commands
33222         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33223         commands into a new rule.
33224         (release-prep): New rule.
33225         (release-prep-hook): New overridable variable.
33226
33227 2009-12-13  Bruno Haible  <bruno@clisp.org>
33228
33229         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33230
33231 2009-12-13  Jim Meyering  <meyering@redhat.com>
33232
33233         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33234         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33235
33236 2009-12-12  Bruno Haible  <bruno@clisp.org>
33237
33238         duplocale: Tweak.
33239         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33240
33241 2009-12-12  Karl Berry  <karl@gnu.org>
33242
33243         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33244
33245 2009-12-12  Bruno Haible  <bruno@clisp.org>
33246
33247         * m4/po.m4: Undo incorrect untabification.
33248
33249 2009-12-12  Bruno Haible  <bruno@clisp.org>
33250
33251         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33252         * modules/c-strtod (Depends-on): Add locale.
33253         * modules/c-strtold (Depends-on): Likewise.
33254
33255 2009-12-12  Bruno Haible  <bruno@clisp.org>
33256
33257         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33258
33259 2009-12-11  Eric Blake  <ebb9@byu.net>
33260
33261         setenv: relax requirement in light of POSIX ruling
33262         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33263         not NULL.
33264         * tests/test-setenv.c (main): Relax test.
33265         * tests/test-unsetenv.c (main): Likewise.
33266         * doc/posix-functions/setenv.texi (setenv): Document this.
33267         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33268
33269 2009-12-11  Bruno Haible  <bruno@clisp.org>
33270
33271         New module 'fd-safer-flag'.
33272         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33273         * lib/dup-safer.c (dup_safer_flag): Remove function.
33274         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33275         * lib/fd-safer.c (fd_safer_flag): Remove function.
33276         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33277         * modules/cloexec (configure.ac): Drop indicator macro.
33278         * modules/fd-safer-flag: New file.
33279         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33280         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33281         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33282
33283 2009-12-11  Bruno Haible  <bruno@clisp.org>
33284
33285         Tests for module 'nl_langinfo'.
33286         * modules/nl_langinfo-tests: New file.
33287         * tests/test-nl_langinfo.sh: New file.
33288         * tests/test-nl_langinfo.c: New file.
33289
33290         New module 'nl_langinfo'.
33291         * lib/nl_langinfo.c: New file.
33292         * m4/nl_langinfo.m4: New file.
33293         * modules/nl_langinfo: New file.
33294         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33295
33296 2009-12-11  Bruno Haible  <bruno@clisp.org>
33297
33298         Tests for module 'langinfo'.
33299         * modules/langinfo-tests: New file.
33300         * tests/test-langinfo.c: New file.
33301
33302         New module 'langinfo'.
33303         * lib/langinfo.in.h: New file.
33304         * m4/langinfo_h.m4: New file.
33305         * modules/langinfo: New file.
33306         * doc/posix-headers/langinfo.texi: Mention the new module.
33307
33308 2009-12-11  Bruno Haible  <bruno@clisp.org>
33309
33310         * lib/config.charset: Untabify.
33311
33312 2009-12-11  Bruno Haible  <bruno@clisp.org>
33313
33314         * modules/unistd-safer (configure.ac): Drop indicator macro.
33315
33316 2009-12-11  Bruno Haible  <bruno@clisp.org>
33317
33318         Move pipe2-safer code to its own file.
33319         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33320         * lib/pipe-safer.c (pipe2_safer): Remove function.
33321         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33322         (Makefile.am): Add it to lib_SOURCES.
33323
33324 2009-12-10  Bruno Haible  <bruno@clisp.org>
33325
33326         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33327
33328 2009-12-10  Bruno Haible  <bruno@clisp.org>
33329
33330         Declare which arguments expect non-NULL values, for GCC and clang.
33331         * build-aux/arg-nonnull.h: New file.
33332         * modules/arg-nonnull: New file.
33333         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33334         (inet_ntop, inet_pton): Use it.
33335         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33336         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33337         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33338         (open, openat): Use it.
33339         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33340         (fnmatch): Use it.
33341         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33342         (getopt, getopt_long, getopt_long_only): Use it.
33343         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33344         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33345         Use it.
33346         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33347         (iconv_open): Use it.
33348         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33349         (strtoimax, strtoumax): Use it.
33350         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33351         (duplocale): Use it.
33352         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33353         (frexp, frexpl): Use it.
33354         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33355         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33356         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33357         (tsearch, tfind, tdelete, twalk): Use it.
33358         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33359         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33360         sigpending): Use it.
33361         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33362         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33363         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33364         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33365         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33366         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33367         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33368         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33369         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33370         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33371         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33372         Use it.
33373         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33374         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33375         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33376         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33377         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33378         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33379         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33380         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33381         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33382         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33383         strtoull, unsetenv): Use it.
33384         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33385         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33386         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33387         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33388         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33389         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33390         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33391         (strcasecmp, strncasecmp): Use it.
33392         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33393         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33394         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33395         rpl_setsockopt): Use it.
33396         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33397         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33398         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33399         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33400         (gettimeofday): Use it.
33401         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33402         (times): Use it.
33403         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33404         (uname): Use it.
33405         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33406         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33407         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33408         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33409         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33410         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33411         unlinkat, write): Use it.
33412         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33413         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33414         * lib/argv-iter.h: Include arg-nonnull.h.
33415         (_ATTRIBUTE_NONNULL_): Remove macro.
33416         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33417         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33418         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33419         optimization.
33420         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33421         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33422         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33423         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33424         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33425         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33426         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33427         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33428         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33429         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33430         * modules/dirent (Depends-on): Add arg-nonnull.
33431         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33432         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33433         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33434         * modules/fnmatch (Depends-on): Add arg-nonnull.
33435         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33436         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33437         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33438         * modules/glob (Depends-on): Add arg-nonnull.
33439         (Makefile.am): Insert arg-nonnull.h into glob.h.
33440         * modules/iconv_open (Depends-on): Add arg-nonnull.
33441         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33442         * modules/inttypes (Depends-on): Add arg-nonnull.
33443         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33444         * modules/locale (Depends-on): Add arg-nonnull.
33445         (Makefile.am): Insert arg-nonnull.h into locale.h.
33446         * modules/math (Depends-on): Add arg-nonnull.
33447         (Makefile.am): Insert arg-nonnull.h into math.h.
33448         * modules/netdb (Depends-on): Add arg-nonnull.
33449         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33450         * modules/search (Depends-on): Add arg-nonnull.
33451         (Makefile.am): Insert arg-nonnull.h into search.h.
33452         * modules/signal (Depends-on): Add arg-nonnull.
33453         (Makefile.am): Insert arg-nonnull.h into signal.h.
33454         * modules/spawn (Depends-on): Add arg-nonnull.
33455         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33456         * modules/stdio (Depends-on): Add arg-nonnull.
33457         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33458         * modules/stdlib (Depends-on): Add arg-nonnull.
33459         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33460         * modules/string (Depends-on): Add arg-nonnull.
33461         (Makefile.am): Insert arg-nonnull.h into string.h.
33462         * modules/strings (Depends-on): Add arg-nonnull.
33463         (Makefile.am): Insert arg-nonnull.h into strings.h.
33464         * modules/sys_socket (Depends-on): Add arg-nonnull.
33465         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33466         * modules/sys_stat (Depends-on): Add arg-nonnull.
33467         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33468         * modules/sys_time (Depends-on): Add arg-nonnull.
33469         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33470         * modules/sys_times (Depends-on): Add arg-nonnull.
33471         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33472         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33473         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33474         * modules/time (Depends-on): Add arg-nonnull.
33475         (Makefile.am): Insert arg-nonnull.h into time.h.
33476         * modules/unistd (Depends-on): Add arg-nonnull.
33477         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33478         * modules/wchar (Depends-on): Add arg-nonnull.
33479         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33480         * modules/argv-iter (Depends-on): Add arg-nonnull.
33481         * tests/test-canonicalize.c (null_ptr): New function.
33482         (main): Use it.
33483         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33484         (main): Use it.
33485         * tests/test-memmem.c (null_ptr): New function.
33486         (main): Use it.
33487         Reported by Jim Meyering.
33488
33489 2009-12-10  Bruno Haible  <bruno@clisp.org>
33490
33491         Use spaces for indentation, not tabs.
33492         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33493         * m4/*.m4: Untabify.
33494         * build-aux/*.h: Untabify.
33495         * tests/**/*.[hc]: Untabify.
33496         * README: New section "Indent with spaces, not TABs", based on
33497         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33498         * NEWS: Mention the change.
33499
33500 2009-12-10  Bruno Haible  <bruno@clisp.org>
33501
33502         pty test: Fix link error.
33503         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33504         test_pty_LDADD.
33505
33506 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33507
33508         * modules/pty: New file.
33509         * modules/pty-tests: New file.
33510         * m4/pty.m4: New file.
33511         * tests/test-pty.c: New file.
33512         * doc/glibc-headers/pty.texi: Modified.
33513         * doc/glibc-functions/forkpty.texi: Modified.
33514         * doc/glibc-functions/openpty.texi: Modified.
33515
33516 2009-12-10  Bruno Haible  <bruno@clisp.org>
33517
33518         Avoid syntax error in C++ mode.
33519         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33520
33521 2009-12-10  Bruno Haible  <bruno@clisp.org>
33522
33523         Use sed with option -e.
33524         * gnulib-tool (func_version, func_emit_copyright_notice,
33525         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33526         option -e to sed.
33527         * modules/link-warning (Makefile.am): Likewise.
33528
33529 2009-12-10  Jim Meyering  <meyering@redhat.com>
33530
33531         mgetgroups: do not write bytes beyond end of malloc'd buffer
33532         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33533         username, we call getgroups with a one-element-shorter buffer,
33534         but still told it the length was original, max_n_groups.
33535
33536 2009-12-09  Eric Blake  <ebb9@byu.net>
33537
33538         cloexec: relax license
33539         * modules/cloexec (Maintainer): Add myself.
33540         (License): Use LGPL, not GPL.
33541
33542         link-warning: optimize generation
33543         * modules/link-warning (Makefile.am): Reduce process usage.
33544
33545 2009-12-09  Bruno Haible  <bruno@clisp.org>
33546
33547         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33548         workaround was added on 2009-11-17.
33549
33550 2009-12-09  Jim Meyering  <meyering@redhat.com>
33551             Bruno Haible  <bruno@clisp.org>
33552
33553         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33554         * modules/link-warning (Makefile.am): Make the comment-removing sed
33555         command more robust in the face of bootstrap-prepended comment lines.
33556
33557 2009-12-09  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33560         most one group.
33561
33562 2009-12-09  Simon Josefsson <simon@josefsson.org>
33563             Bruno Haible  <bruno@clisp.org>
33564
33565         * build-aux/link-warning.h: Add copyright notice.
33566         * modules/link-warning (Makefile.am): Generate link-warning.h from
33567         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33568         * NEWS: Mention change in link-warning module.
33569         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33570         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33571         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33572         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33573         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33574         * modules/math (Makefile.am): Add dependency to math.h.
33575         * modules/search (Makefile.am): Add dependency to search.h.
33576         * modules/signal (Makefile.am): Add dependency to signal.h.
33577         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33578         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33579         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33580         * modules/string (Makefile.am): Add dependency to string.h.
33581         * modules/strings (Makefile.am): Add dependency to strings.h.
33582         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33583         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33584         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33585         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33586         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33587         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33588         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33589         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33590         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33591
33592 2009-12-09  Bruno Haible  <bruno@clisp.org>
33593
33594         fchdir: Optimize away rpl_fstat when possible.
33595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33596         REPLACE_OPEN_DIRECTORY.
33597         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33598
33599 2009-12-09  Bruno Haible  <bruno@clisp.org>
33600
33601         * lib/fchdir.c: Update comment.
33602
33603 2009-12-09  Bruno Haible  <bruno@clisp.org>
33604
33605         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33606
33607 2009-12-08  Eric Blake  <ebb9@byu.net>
33608
33609         fchdir: avoid memory leak on re-registration.
33610         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33611
33612 2009-12-08  Jim Meyering  <meyering@redhat.com>
33613
33614         init.sh: avoid Solaris 10 /bin/sh portability problem
33615         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33616         sourced script:
33617           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33618           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33619           bar
33620         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33621         and two tests used that idiom.
33622         * tests/init.sh: Update suggested usage comments.
33623         (path_prepend_): New function, to be used in place
33624         of the --src-path=DIR option.
33625         (setup_): Move PATH-prepending code into path_prepend_.
33626         * tests/test-pread.sh: Adapt to new usage.
33627         * tests/test-xalloc-die.sh: Likewise.
33628
33629 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33630
33631         * doc/gnulib.texi (Glibc pty.h): Add.
33632         * doc/glibc-functions/forkpty.texi: Add.
33633         * doc/glibc-functions/openpty.texi: Add.
33634         Suggested by Bruno Haible.
33635
33636 2009-12-08  Eric Blake  <ebb9@byu.net>
33637
33638         fchdir: fix logic bugs
33639         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33640         * tests/test-fchdir.c (main): Enhance test.
33641         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33642         is in use.
33643
33644         dup2: fix logic bugs
33645         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33646         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33647         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33648         exists.
33649         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33650
33651 2009-12-07  Eric Blake  <ebb9@byu.net>
33652
33653         unlink: fix m4 detection
33654         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33655
33656         unistd-safer: add unit test
33657         * modules/unistd-safer-tests: New file.
33658         * tests/test-dup-safer.c: Likewise.
33659         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33660         * tests/test-dup2.c (setmode): Likewise.
33661         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33662
33663         cloexec: preserve text vs. binary across dup_cloexec
33664         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33665         mode.
33666         * modules/dup2-tests (Depends-on): Add binary-io.
33667         * modules/cloexec-tests (Depends-on): Likewise.
33668         * tests/test-dup2.c (setmode, is_mode): New helpers.
33669         (main): Add tests that translation mode is preserved.
33670         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33671         Reported by Bruno Haible.
33672
33673         mgetgroups: reduce duplicate listings
33674         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33675         resulting array.
33676         * tests/test-chown.h (test_chown): Simplify client.
33677         * tests/test-lchown.h (test_lchown): Likewise.
33678
33679 2009-12-06  Bruno Haible  <bruno@clisp.org>
33680
33681         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33682         value.
33683
33684 2009-12-06  Bruno Haible  <bruno@clisp.org>
33685
33686         * lib/progname.c: Include stdio.h, stdlib.h.
33687         (set_program_name): Reject a NULL argument.
33688
33689 2009-12-05  Eric Blake  <ebb9@byu.net>
33690
33691         pipe2-safer: new module
33692         * modules/pipe2-safer: New file.
33693         * lib/unistd-safer.h (pipe2_safer): New prototype.
33694         * lib/unistd--.h (pipe2): New wrapper.
33695         * lib/pipe-safer.c (pipe2_safer): New function.
33696         * modules/pipe (Depends-on): Add pipe2-safer.
33697         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33698
33699         stdlib-safer: preserve cloexec flag for mkostemp[s]
33700         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33701         fd_safer_flag.
33702
33703         unistd-safer: allow preservation of cloexec status via flag
33704         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33705         prototypes.
33706         * lib/dup-safer.c (dup_safer_flag): New function.
33707         * lib/fd-safer.c (fd_safer_flag): Likewise.
33708         * modules/cloexec (configure.ac): Set witness.
33709
33710         test-dup2: enhance test
33711         * modules/dup2-tests (Depends-on): Add cloexec.
33712         * tests/test-dup2.c (main): Enhance test.
33713
33714         cloexec: add dup_cloexec
33715         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33716         header and comments.
33717         * lib/cloexec.c (set_cloexec_flag): Add comments.
33718         (dup_cloexec): New function, with mingw implementation borrowed
33719         from...
33720         * lib/w32spawn.h (dup_noinherit): ...here.
33721         * modules/execute (Depends-on): Add cloexec.
33722         * modules/pipe (Depends-on): Likewise.
33723         * modules/cloexec (Depends-on): Add dup2.
33724         * modules/cloexec-tests (Files): New file.
33725         * tests/test-cloexec.c: Likewise.
33726
33727         test-xalloc-die: fix test for mingw
33728         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33729         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33730         directory and .exe suffix off argv[0] output.
33731
33732         test-fseeko: fix test for mingw
33733         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33734         than undefining fseek, so test will pass on mingw.
33735
33736 2009-12-05  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/progname.h (set_program_name): Clarify specification.
33739         * lib/progname.c (set_program_name): Likewise.
33740         Reported by Jim Meyering.
33741
33742 2009-12-05  Jim Meyering  <meyering@redhat.com>
33743
33744         maint.mk: backslash-escape parens in default regexp
33745         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33746         backslash-escape the literal parentheses.
33747
33748         maint.mk: news-date-check: use grep -E
33749         * top/maint.mk (today): Define a Make variable, not a...
33750         (news-date-check): ...shell variable.
33751         (news-date-regexp): Use the Make variable.
33752         Use grep's -E option.  Change the failing diagnostic to mention
33753         the variable, $(news-date-regexp).
33754
33755 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33756
33757         maintainer-makefile: allow customization of NEWS entry format
33758         * top/maint.mk (news-date-regexp): New overridable variable.
33759         (news-date-check): Use it.
33760
33761 2009-12-04  Eric Blake  <ebb9@byu.net>
33762
33763         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33764         * lib/mgetgroups.h (xgetgroups): New prototype.
33765         * lib/mgetgroups.c (xgetgroups): New wrapper.
33766         (mgetgroups): Handle ENOSYS.
33767         * modules/mgetgroups (Depends-on): Add realloc.
33768         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33769
33770         mgetgroups: avoid argument promotion issues with -1
33771         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33772         for invalid gid_t.
33773         * tests/test-chown.h (getegid, test_chown): Likewise.
33774         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33775
33776 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33777
33778         exclude: Fix header file problems.
33779         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33780
33781 2009-12-01  Jim Meyering  <meyering@redhat.com>
33782
33783         fts: fts_open: do not let an empty string cause immediate failure
33784         This is required in support of GNU rm, for which the command
33785         "rm A '' B" must process and remove both A and B, in spite of
33786         the empty string argument.
33787         * lib/fts.c (fts_open): Do not let the presence of an empty string
33788         cause fts_open to fail immediately.  Most fts-using tools must be
33789         able to process all arguments, in order, and can be expected to
33790         diagnose such arguments themselves.
33791
33792 2009-11-30  Eric Blake  <ebb9@byu.net>
33793
33794         utimens: fix compilation error
33795         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33796         Declare variable at right scope.
33797
33798 2009-11-29  Jim Meyering  <meyering@redhat.com>
33799
33800         bootstrap: handle perl-5.11's changed --version output
33801         * build-aux/bootstrap (get_version): Handle perl separately,
33802         since perl-5.11's --version output is different.
33803
33804 2009-11-28  Jim Meyering  <meyering@redhat.com>
33805
33806         userspec: depend on the inttostr module, too
33807         * modules/userspec (Depends-on): Add inttostr.
33808
33809         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33810         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33811         number of MAXUID when it evaluates to (uid_t) -1.
33812         Likewise for group ID.  Reported by Matt McCutchen in
33813         <http://savannah.gnu.org/bugs/?28113>
33814
33815         userspec: reformat to use spaces, not TABs
33816         * lib/userspec.c: Expand TABs to spaces.
33817         Add Emacs' "indent-tabs-mode: nil" hint.
33818
33819 2009-11-27  Eric Blake  <ebb9@byu.net>
33820
33821         getopt-gnu: flush out another BSD bug
33822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33823         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33824         flush out BSD bug.
33825         * tests/test-getopt.h (test_getopt): End lists with NULL.
33826         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33827         (test_getopt_long_posix): Enhance test.
33828         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33829         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33830         getopt-gnu.
33831         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33832         Likewise.
33833
33834 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33835
33836         * modules/idpriv-droptemp-tests (Notice): Fix text.
33837
33838 2009-11-27  Jim Meyering  <meyering@redhat.com>
33839
33840         test-xalloc-die: avoid spurious failure due to libtool argv difference
33841         In a libtool-enabled project, this test would fail due to a difference
33842         in the emitted program name, e.g.,
33843         -test-xalloc-die: memory exhausted
33844         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33845         Use program to avoid that.
33846         * modules/xalloc-die-tests (Depends-on): Add progname.
33847         * tests/test-xalloc-die.c: Include progname.h".
33848         (program_name): Remove decl.
33849         (main): Call set_program_name.
33850         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33851
33852 2009-11-26  Richard Jones  <rjones@redhat.com>
33853
33854         w32sock: leave win32 error in place.
33855         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33856
33857 2009-11-26  Eric Blake  <ebb9@byu.net>
33858
33859         init.sh: suggest to use skip_ and fail_ functions in comments
33860         * tests/init.sh: Add a sentence.
33861
33862 2009-11-25  Bruno Haible  <bruno@clisp.org>
33863
33864         init.sh: add documentation in comments
33865         * tests/init.sh: Add some developer and user documentation.
33866
33867 2009-11-26  Jim Meyering  <meyering@redhat.com>
33868
33869         init.sh: accommodate even those who specify bogus srcdir manually
33870         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33871         configure-time tests to be sanitized, so that there is no need to
33872         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33873         (with no double quotes) suffices.  However, since tests may be
33874         invoked manually, and since you may explicitly set srcdir to the
33875         name of a directory containing spaces, do quote its uses here.
33876         * tests/test-pread.sh: Likewise.
33877         Suggested by Bruno Haible.
33878
33879         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33880         * tests/test-pread.sh: Write no data into the pipe, because
33881         test-pread actually reads none.  This avoids a diagnostic,
33882         "bash: echo: write error: Broken pipe", that arises in the unusual
33883         event something is ignoring SIGPIPE, and might be interpreted
33884         as some sort of failure.  Reported by Bruno Haible.
33885
33886 2009-11-25  Jim Meyering  <meyering@redhat.com>
33887
33888         test-pread: cover failure with ESPIPE and EINVAL
33889         * tests/test-pread.c (main): Test for failure, too.
33890         * tests/test-pread.sh: Invoke with stdin on a pipe.
33891         Suggested by Eric Blake.
33892
33893         pread: improvement and fix
33894         * modules/pread (Depends-on): Depend on lseek, for portability to
33895         e.g., mingw.  Suggested by Eric Blake.
33896         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33897
33898         unistd.in.h: correct declaration of pread
33899         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33900         Reported by Richard W.M. Jones.
33901
33902         test-pread.sh: distribute the test script
33903         * modules/pread-tests (Files): Include test-pread.sh.
33904
33905         test-pread.sh: clean up
33906         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33907         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33908         That is unnecessary, since it's always ".".
33909         Suggestion from Eric Blake.
33910
33911         test-pread.sh: make executable
33912         * tests/test-pread.sh: Set executable bit.
33913         Reported by Eric Blake.
33914
33915         correct typo in test-pread.sh
33916         * tests/test-pread.sh: Add #! line.
33917
33918         test pread
33919         * tests/test-pread.c: New file.
33920         * tests/test-pread.sh: Likewise.
33921         * modules/pread-tests: Likewise.
33922
33923         pread: new module
33924         * modules/pread: New file.
33925         * lib/unistd.in.h (pread): Define/declare.
33926         * lib/pread.c (pread): New file.
33927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33928         * modules/unistd (Makefile.am): Substitute witnesses.
33929         * doc/posix-functions/pread.texi (pread): Update.
33930         * MODULES.html.sh: Add pread.
33931
33932 2009-11-25  Jim Meyering  <meyering@redhat.com>
33933
33934         tests/init.sh: new file to be used via most *.sh tests
33935         * tests/init.sh: New file.
33936
33937 2009-11-25  Eric Blake  <ebb9@byu.net>
33938
33939         utimens: work around older Linux failure with symlinks
33940         * lib/utimens.c (lutimensat_works_really): New variable.
33941         (fdutimens, lutimens): Use it to manage kernels that support
33942         nanosecond times on files, but not on symlinks.
33943         Reported by OndÅ™ej Vašík.
33944
33945         utimes: fix configure grammar
33946         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33947
33948 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33949
33950         regex: Fix fastmap for multibyte character ranges.
33951         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33952         characters when a multibyte character range is included.
33953
33954 2009-11-22  Andy Wingo  <wingo@pobox.com>
33955
33956         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33957         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33958
33959 2009-11-24  Bruno Haible  <bruno@clisp.org>
33960
33961         doc: Most *_l functions exist in MacOS X 10.5.
33962         * doc/posix-functions/duplocale.texi: Update platforms list.
33963         * doc/posix-functions/freelocale.texi: Likewise.
33964         * doc/posix-functions/newlocale.texi: Likewise.
33965         * doc/posix-functions/uselocale.texi: Likewise.
33966         * doc/posix-functions/isalnum_l.texi: Likewise.
33967         * doc/posix-functions/isalpha_l.texi: Likewise.
33968         * doc/posix-functions/isblank_l.texi: Likewise.
33969         * doc/posix-functions/iscntrl_l.texi: Likewise.
33970         * doc/posix-functions/isdigit_l.texi: Likewise.
33971         * doc/posix-functions/isgraph_l.texi: Likewise.
33972         * doc/posix-functions/islower_l.texi: Likewise.
33973         * doc/posix-functions/isprint_l.texi: Likewise.
33974         * doc/posix-functions/ispunct_l.texi: Likewise.
33975         * doc/posix-functions/isspace_l.texi: Likewise.
33976         * doc/posix-functions/isupper_l.texi: Likewise.
33977         * doc/posix-functions/iswalnum_l.texi: Likewise.
33978         * doc/posix-functions/iswalpha_l.texi: Likewise.
33979         * doc/posix-functions/iswblank_l.texi: Likewise.
33980         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33981         * doc/posix-functions/iswctype_l.texi: Likewise.
33982         * doc/posix-functions/iswdigit_l.texi: Likewise.
33983         * doc/posix-functions/iswgraph_l.texi: Likewise.
33984         * doc/posix-functions/iswlower_l.texi: Likewise.
33985         * doc/posix-functions/iswprint_l.texi: Likewise.
33986         * doc/posix-functions/iswpunct_l.texi: Likewise.
33987         * doc/posix-functions/iswspace_l.texi: Likewise.
33988         * doc/posix-functions/iswupper_l.texi: Likewise.
33989         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33990         * doc/posix-functions/isxdigit_l.texi: Likewise.
33991         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33992         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33993         * doc/posix-functions/strcoll_l.texi: Likewise.
33994         * doc/posix-functions/strfmon_l.texi: Likewise.
33995         * doc/posix-functions/strftime_l.texi: Likewise.
33996         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33997         * doc/posix-functions/strxfrm_l.texi: Likewise.
33998         * doc/posix-functions/tolower_l.texi: Likewise.
33999         * doc/posix-functions/toupper_l.texi: Likewise.
34000         * doc/posix-functions/towctrans_l.texi: Likewise.
34001         * doc/posix-functions/towlower_l.texi: Likewise.
34002         * doc/posix-functions/towupper_l.texi: Likewise.
34003         * doc/posix-functions/wcscoll_l.texi: Likewise.
34004         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34005         * doc/posix-functions/wctrans_l.texi: Likewise.
34006         * doc/posix-functions/wctype_l.texi: Likewise.
34007         * doc/glibc-functions/strptime_l.texi: Likewise.
34008         * doc/glibc-functions/strtod_l.texi: Likewise.
34009         * doc/glibc-functions/strtof_l.texi: Likewise.
34010         * doc/glibc-functions/strtol_l.texi: Likewise.
34011         * doc/glibc-functions/strtold_l.texi: Likewise.
34012         * doc/glibc-functions/strtoll_l.texi: Likewise.
34013         * doc/glibc-functions/strtoul_l.texi: Likewise.
34014         * doc/glibc-functions/strtoull_l.texi: Likewise.
34015         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34016         * doc/glibc-functions/wcstod_l.texi: Likewise.
34017         * doc/glibc-functions/wcstof_l.texi: Likewise.
34018         * doc/glibc-functions/wcstol_l.texi: Likewise.
34019         * doc/glibc-functions/wcstold_l.texi: Likewise.
34020         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34021         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34022         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34023
34024 2009-11-24  Bruno Haible  <bruno@clisp.org>
34025
34026         duplocale: Fix logic bug.
34027         * lib/duplocale.c: Don't include <langinfo.h>.
34028         (_NL_LOCALE_NAME): Remove macro.
34029         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34030         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34031
34032 2009-11-23  Jim Meyering  <meyering@redhat.com>
34033
34034         test-update-copyright: don't hard-code /usr/bin/perl
34035         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34036         perl to print the current year.  Gilles Espinasse reported that
34037         the replaced use of perl was hard-coded as /usr/bin/perl.
34038
34039 2009-11-23  Bruno Haible  <bruno@clisp.org>
34040
34041         duplocale: Add support for glibc 2.3.x.
34042         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34043
34044 2009-11-22  Bruno Haible  <bruno@clisp.org>
34045
34046         vasnprintf: Tiny optimization.
34047         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34048         MacOS X.
34049
34050 2009-11-22  Bruno Haible  <bruno@clisp.org>
34051
34052         Tests for module 'duplocale'.
34053         * modules/duplocale-tests: New file.
34054         * tests/test-duplocale.c: New file.
34055
34056         New module 'duplocale'.
34057         * m4/duplocale.m4: New file.
34058         * lib/locale.in.h (duplocale): New declaration.
34059         * lib/duplocale.c: New file.
34060         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34061         gl_LOCALE_H_DEFAULTS): New macros.
34062         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34063         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34064         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34065         REPLACE_DUPLOCALE.
34066         * modules/duplocale: New file.
34067         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34068
34069 2009-11-22  Bruno Haible  <bruno@clisp.org>
34070
34071         * modules/locale-tests (configure.ac): Test for newlocale function.
34072         * tests/test-locale.c: When the system has extended locale functions,
34073         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34074
34075         locale: Make locale_t available when possible.
34076         * lib/locale.in.h: Include <xlocale.h> when it exists.
34077         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34078         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34079         * modules/locale (Depends-on): Add extensions.
34080         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34081         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34082
34083 2009-11-22  Bruno Haible  <bruno@clisp.org>
34084
34085         Add comments.
34086         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34087         invocation.
34088         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34089         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34090         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34091
34092 2009-11-22  Bruno Haible  <bruno@clisp.org>
34093
34094         error: account for the possibility of freopen (stdout).
34095         * lib/error.c: Include <unistd.h>.
34096         (flush_stdout): New function, extracted from error and error_at_line.
34097         Determine stdout's fd dynamically.
34098         (error, error_at_line): Invoke flush_stdout.
34099         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34100         * modules/error (Depends-on): Add unistd.
34101
34102 2009-11-22  Bruno Haible  <bruno@clisp.org>
34103
34104         diffseq: Add comment.
34105         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34106
34107 2009-11-22  Jim Meyering  <meyering@redhat.com>
34108
34109         c-stack: avoid defining an unused static function
34110         * lib/c-stack.c (find_stack_direction): Do not define this function
34111         when it will not be used.
34112
34113         diffseq: avoid spurious gcc warnings
34114         * lib/diffseq.h (IF_LINT2): Define.
34115         (compareseq): Use it to initialize two members of "part".
34116         This avoids two used-uninitialized warnings.
34117
34118 2009-11-21  Jim Meyering  <meyering@redhat.com>
34119
34120         c-stack: avoid "ignoring return value of `write'" warning
34121         * lib/c-stack.c: Include "ignore-value.h".
34122         (die): Explicitly ignore each write return value.
34123         * modules/c-stack (Depends-on): Add ignore-value.
34124
34125 2009-11-21  Bruno Haible  <bruno@clisp.org>
34126
34127         diffseq: reduce scope of variable 'best'.
34128         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34129         variable, earlier used for two different purposes.
34130
34131 2009-11-21  Jim Meyering  <meyering@redhat.com>
34132
34133         diffseq: remove useless assignment to "best"
34134         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34135         assignment.  At that point "best" is already guaranteed to be zero.
34136
34137 2009-11-20  Eric Blake  <ebb9@byu.net>
34138
34139         build: mention ftp redirector in release announcements
34140         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34141         values that used to come from cfg.mk; mention FTP redirect URL.
34142         * build-aux/announce-gen: Mention the mirror list.
34143         Suggested by Karl Berry.
34144
34145         nanosleep: improve port to mingw
34146         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34148         LIB_NANOSLEEP, but only when needed.
34149         * modules/select (Link): Document LIBSOCKET.
34150         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34151         enough.
34152
34153         nanosleep: work around cygwin bug
34154         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34155         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34156         bug.
34157         (getnow): Delete, not needed.
34158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34159         LIB_CLOCK_GETTIME.
34160         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34161         clock-time, gettime.
34162         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34163         bug.
34164         * modules/nanosleep-tests: New test.
34165         * tests/test-nanosleep.c: New file.
34166
34167         sleep: work around cygwin bug
34168         * lib/sleep.c (rpl_sleep): Work around the bug.
34169         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34170         (gl_PREREQ_SLEEP): Delete unused macro.
34171         * modules/sleep (Depends-on): Add verify.
34172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34173         * modules/unistd (Makefile.am): Substitute witness.
34174         * lib/unistd.in.h (sleep): Update prototype.
34175         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34176         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34177         * modules/sleep-tests (Depends-on): Check for alarm.
34178
34179 2009-11-20  Jim Meyering  <meyering@redhat.com>
34180
34181         maint.mk: improve sc_prohibit_magic_number_exit
34182         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34183         so it does not match uses like System.exit(1).
34184         Add comments showing how to correct all offenders.
34185
34186 2009-11-19  Eric Blake  <ebb9@byu.net>
34187
34188         xalloc-die-tests: add missing library
34189         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34190
34191         test-xvasprintf: silence compiler warnings
34192         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34193         empty string from gcc.
34194
34195 2009-11-19  Jim Meyering  <meyering@redhat.com>
34196
34197         xfreopen: new module, from coreutils
34198         * modules/xfreopen: New module.
34199         * lib/xfreopen.c: New file.
34200         * lib/xfreopen.h: New file.
34201         * MODULES.html.sh (File stream based Input/Output"): Add it.
34202
34203 2009-11-19  Eric Blake  <ebb9@byu.net>
34204
34205         manywarnings: depend on warnings
34206         * modules/manywarnings (Depends-on): Add warnings.
34207
34208         build: avoid compiler warnings
34209         * lib/select.c (rpl_select): Delete unused variable.
34210         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34211
34212 2009-11-18  Eric Blake  <ebb9@byu.net>
34213
34214         tests: avoid false negative with --with-packager
34215         * tests/test-version-etc.sh: Discard packager information.
34216         * tests/test-argp-version-etc-1.sh: Likewise.
34217         Reported by Mike Frysinger.
34218
34219         utimens: fix regression on Solaris
34220         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34221         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34222         can only change fd timestamps via futimesat.  Instead, use an
34223         additional witness macro to avoid BSD bug.
34224         Reported by Jim Meyering.
34225
34226 2009-11-17  Eric Blake  <ebb9@byu.net>
34227
34228         usleep: use it to simplify tests
34229         * modules/stat-time-tests (Depends-on): Add usleep.
34230         (configure.ac): Drop usleep check.
34231         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34232         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34233         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34234         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34235         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34236         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34237         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34238         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34239         Likewise.
34240         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34241         * tests/test-lchown.h (nap): Likewise.
34242         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34243         * tests/test-stat-time.c (nap): Likewise.
34244         * tests/test-utimens-common.h (nap): Update comments.
34245
34246         usleep: new module
34247         * modules/usleep: New file.
34248         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34249         * lib/usleep.c (usleep): Likewise.
34250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34251         * modules/unistd (Makefile.am): Substitute witnesses.
34252         * lib/unistd.in.h (usleep): Add declaration.
34253         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34254         * MODULES.html.sh (Date and time): Likewise.
34255         * modules/usleep-tests (Depends-on): New test.
34256         * tests/test-usleep.c: New file.
34257
34258         chown: work around OpenBSD bug
34259         * lib/chown.c (rpl_chown): Work around the bug.
34260         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34261         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34262         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34263         * modules/chown (Depends-on): Add stdbool.
34264         * modules/lchown (Depends-on): Likewise.
34265         * doc/posix-functions/chown.texi (chown): Document the bug.
34266         * doc/posix-functions/lchown.texi (lchown): Likewise.
34267         * tests/test-lchown.h (test_chown): Relax test.
34268
34269         mkstemp: avoid conflict with C++ keyword template
34270         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34271         * lib/mkostemp.c (mkostemp): Likewise.
34272         * lib/mkostemps.c (mkostemps): Likewise.
34273         * lib/mkstemp.c (mkstemp): Likewise.
34274         * lib/mkstemps.c (mkstemps): Likewise.
34275
34276         xalloc-die-tests: optimize
34277         * tests/test-xalloc-die.sh: Reduce number of processes.
34278
34279 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34280
34281         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34282         patch from ludo@gnu.org (Ludovic Courtès).
34283
34284 2009-11-17  Jim Meyering  <meyering@redhat.com>
34285
34286         version-etc: use proper license string
34287         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34288         * modules/version-etc-fsf: Likewise.
34289
34290 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34291
34292         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34293         printed to stdout.  Deal with EOL differences.
34294
34295 2009-11-17  Eric Blake  <ebb9@byu.net>
34296
34297         unsetenv: work around Solaris bug
34298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34299         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34300         Reported by Jim Meyering.
34301
34302         vasnprintf: avoid compiler warnings
34303         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34304         variables.
34305         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34306
34307 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34308
34309         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34310         settings since xalloc-die is no longer the self test,
34311         xalloc-die.sh is.
34312
34313 2009-11-17  Jim Meyering  <meyering@redhat.com>
34314
34315         test-xalloc-die.sh: make the code agree with the commit log
34316         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34317         at the end, just in case you happen to have a test-xalloc-die
34318         program in some other PATH directory.
34319
34320         test-xalloc-die.sh: fix a portability bug
34321         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34322         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34323         Otherwise, argv[0] (as often seen in diagnostics) would be too
34324         system-dependent, sometimes with, and sometimes without the leading "./".
34325
34326         version-etc-fsf: relax license to LGPLv3+
34327         * modules/version-etc-fsf (License): Relax license.
34328
34329 2009-11-16  Eric Blake  <ebb9@byu.net>
34330
34331         xalloc-die-tests: avoid printing null pointer
34332         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34333         shell script.
34334         * tests/test-xalloc-die.c (program_name): Declare.
34335         * tests/test-xalloc-die.sh (tmpfiles): New file.
34336
34337         setenv, unsetenv: work around various bugs
34338         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34339         (setenv) [HAVE_SETENV]: Work around bugs.
34340         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34342         for bugs.
34343         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34344         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34346         * modules/stdlib (Makefile.am): Update substitutions.
34347         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34348         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34349         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34350         * modules/setenv-tests: New test.
34351         * modules/unsetenv-tests: Likewise.
34352         * tests/test-setenv.c: New file.
34353         * tests/test-unsetenv.c: Likewise.
34354
34355 2009-11-16  Jim Meyering  <meyering@redhat.com>
34356
34357         version-etc: relax license to LGPLv3+
34358         * modules/version-etc (License): Relax license.
34359
34360         better AC_REQUIRE expanded-before-required-warning avoidance
34361         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34362         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34363         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34364         which is no longer needed.
34365
34366 2009-11-16  Eric Blake  <ebb9@byu.net>
34367
34368         test-freading: clean up temporary file
34369         * tests/test-freading.c (main): Remove file on success, and use
34370         ASSERT more liberally.
34371         Reported by Jim Meyering.
34372
34373 2009-11-16  Jim Meyering  <meyering@redhat.com>
34374
34375         avoid new AC_REQUIRE expanded-before-required warnings
34376         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34377         merely using it.
34378         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34379         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34380
34381 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34382
34383         * tests/test-xalloc-die.c: New file.
34384         * modules/xalloc-die-tests: New file.
34385         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34386         XFAIL_TESTS so it can be appended by modules.
34387
34388 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34389
34390         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34391         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34392
34393 2009-11-14  Eric Blake  <ebb9@byu.net>
34394
34395         fnmatch: avoid compiler warning
34396         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34397         to silence compiler warning about mismatch signedness in ?:.
34398         Reported by Robert Millan.
34399
34400         intprops: add double-inclusion guard
34401         * lib/intprops.h: Allow idempotent includes.
34402         Suggested by Bruce Korb.
34403
34404         openat: detect Solaris fchownat bug
34405         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34406         penalizing glibc chownat when only lchownat is broken.
34407         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34408         trailing slash bugs.
34409         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34410         * modules/openat-tests (Files): Include more files.
34411         (Depends-on): Add mgetgroups, sleep, stat-time.
34412         (configure.ac): Add additional checks.
34413         (Makefile.am): Build new test.
34414         * tests/test-fchownat.c: New file.
34415
34416         lchown: detect Solaris and FreeBSD bug
34417         * lib/lchown.c (rpl_lchown): Work around bug.
34418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34420         * modules/unistd (Makefile.am): Populate it.
34421         * lib/unistd.in.h (lchown): Update declaration.
34422         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34423         * modules/lchown-tests: New file.
34424         * tests/test-lchown.h (test_lchown): Likewise.
34425         * tests/test-lchown.c (main): Likewise.
34426
34427         chown: detect Solaris and FreeBSD bug
34428         * lib/chown.c (rpl_chown): Work around bug.
34429         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34430         (gl_PREREQ_CHOWN): Delete.
34431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34432         * modules/unistd (Makefile.am): Populate it.
34433         * lib/unistd.in.h (chown): Update declaration.
34434         * lib/lchown.c (chown): Update client.
34435         * modules/lchown (Depends-on): Add lstat.
34436         * doc/posix-functions/chown.texi (chown): Document the bug.
34437         * doc/posix-functions/getgroups.texi (getgroups): Document
34438         getgroups pitfall.
34439         * modules/chown-tests: New file.
34440         * tests/test-chown.h (test_chown): Likewise.
34441         * tests/test-chown.c (main): Likewise.
34442
34443 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34444
34445         gnulib-tool: correctly detect absence of m4 directories
34446         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34447
34448 2009-11-14  Jim Meyering  <meyering@redhat.com>
34449
34450         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34451         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34452
34453 2009-11-14  John W. Eaton  <jwe@gnu.org>
34454
34455         strftime.h: wrap funtion declaration in extern "C" block
34456         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34457
34458 2009-11-13  Eric Blake  <ebb9@byu.net>
34459
34460         getgroups: avoid compiler warning
34461         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34462
34463         getgroups: work around FreeBSD bug
34464         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34465         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34466         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34467         * tests/test-getgroups.c (main): Fix buffer overrun.
34468
34469         getgroups: avoid compilation failure
34470         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34471         * modules/getgroups (Depends-on): Add stdint.
34472
34473 2009-11-13  Jim Meyering  <meyering@redhat.com>
34474
34475         test-getgroups: avoid compilation failure
34476         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34477
34478 2009-11-13  Eric Blake  <ebb9@byu.net>
34479
34480         mgetgroups: new module, taken from coreutils
34481         * modules/mgetgroups: New file.
34482         * lib/mgetgroups.h: Likewise.
34483         * lib/mgetgroups.c (mgetgroups): Likewise.
34484         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34485         * MODULES.html.sh (Users and groups): Mention it.
34486
34487         getgroups: don't expose GETGROUPS_T to user
34488         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34489         an element at a time if GETGROUPS_T is wrong size.
34490         * lib/getugroups.h (getugroups): Change signature.
34491         * lib/unistd.in.h (getgroups): Likewise.
34492         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34493         signature needs fixing.
34494         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34495         AC_TYPE_GETGROUPS.
34496         * modules/group-member (Depends-on): Add getgroups.
34497         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34498         (group_member): Rely on getgroups replacement.
34499         * lib/getugroups.c (getugroups): Use gid_t.
34500         * tests/test-getgroups.c (main): Likewise.
34501         * NEWS: Mention the signature change.
34502         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34503         problem with signature.
34504         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34505         GETGROUPS_T is still useful for setgroups.
34506
34507         getgroups, getugroups: provide stubs for mingw
34508         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34509         * lib/getugroups.c (getugroups): Likewise.
34510         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34511         function.  Modernize replacement scheme.
34512         (gl_PREREQ_GETGROUPS): Delete.
34513         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34514         * modules/getgroups (configure.ac): Declare witness.
34515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34516         * modules/unistd (Depends-on): Substitute witness.
34517         * lib/unistd.in.h (getgroups): Declare replacement.
34518
34519         getgroups: avoid calling exit
34520         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34521         drop xalloc.
34522         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34523         dependencies.
34524         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34525         exiting, in the rare case of malloc failure.
34526
34527         getgroups: fix logic error
34528         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34529         has more than 20 groups.
34530         * modules/getgroups-tests: New test.
34531         * tests/test-getgroups.c: New file.
34532
34533 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34534
34535         * tests/test-base64.c: Improve.
34536
34537 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34538
34539         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34540         Blake <ebb9@byu.net>.
34541
34542 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34543
34544         * tests/test-xvasprintf.c: Add %s%s related checks.
34545
34546 2009-11-12  Eric Blake  <ebb9@byu.net>
34547
34548         version-etc: match standards.texi style
34549         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34550         and use <> only for URLs.
34551
34552 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34553
34554         fts: do not fail on a submount during traversal
34555         * lib/fts.c (fts_build): Read the stat info again after opening
34556         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34557         Original report at http://bugzilla.redhat.com/501848.
34558
34559 2009-11-12  Jim Meyering  <meyering@redhat.com>
34560
34561         bootstrap: sync from coreutils
34562         * build-aux/bootstrap (bootstrap_epilogue): New function.
34563         Use git_modules_config in one more place.  This make bootstrap's
34564         --gnulib-srcdir option more useful for testing.
34565
34566         bootstrap: generalize autoheader check
34567         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34568         AC_CONFIG_HEADERS.
34569
34570 2009-11-11  Eric Blake  <ebb9@byu.net>
34571
34572         mkfifoat: use new modules for Solaris and BSD bugs
34573         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34574         * lib/mkfifoat.c (mknodat): Split...
34575         * lib/mknodat.c (mknodat): ...into new file.
34576         * modules/mkfifoat (Files): Ship new file.
34577         (Depends-on): Add mkfifo, mknod.
34578         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34579         (Depends-on): Add symlink.
34580         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34581         redundant with test_mkfifo.h.
34582         (do_mkfifoat, do_mknodat): New helpers.
34583
34584         mknod: new module
34585         * modules/mknod: New file.
34586         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34587         * lib/mknod.c (mknod): Likewise.
34588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34589         defaults.
34590         * modules/sys_stat (Makefile.am): Substitute them.
34591         * lib/sys_stat.in.h (mknod): Declare replacement.
34592         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34593         Document it.
34594         * doc/posix-functions/mknod.texi (mknod): Likewise.
34595         * modules/mknod-tests: New test.
34596         * tests/test-mknod.c: Likewise.
34597
34598         mkfifo: new module
34599         * modules/mkfifo: New file.
34600         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34601         * lib/mkfifo.c (mkfifo): Likewise.
34602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34603         defaults.
34604         * modules/sys_stat (Makefile.am): Substitute them.
34605         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34606         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34607         Document it.
34608         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34609         * modules/mkfifo-tests: New test.
34610         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34611         from test-mkfifoat.c.
34612         * tests/test-mkfifo.c: New file.
34613
34614         readlink: detect FreeBSD bug
34615         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34616         slash on symlink.
34617         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34618         * tests/test-readlink.h (test_readlink): Enhance test.
34619
34620         symlink: detect FreeBSD bug
34621         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34622         slash on symlink.
34623         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34624         * tests/test-symlink.h (test_symlink): Enhance test.
34625
34626 2009-11-10  Eric Blake  <ebb9@byu.net>
34627
34628         link: detect FreeBSD bug
34629         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34630         symlink.
34631         * doc/posix-functions/link.texi (link): Document the bug.
34632         * tests/test-link.h (test_link): Enhance test.
34633         * tests/test-linkat.c (main): Update caller.
34634
34635         unlink, remove: detect FreeBSD bug
34636         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34637         slash on symlink.
34638         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34639         * doc/posix-functions/remove.texi (remove): Likewise.
34640         * tests/test-unlink.h (test_unlink): Enhance test.
34641         * tests/test-remove.c (main): Likewise.
34642
34643 2009-11-09  Eric Blake  <ebb9@byu.net>
34644
34645         rename: detect FreeBSD bug
34646         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34647         slash on symlink.
34648         * modules/renameat-tests (Depends-on): Add filenamecat.
34649         * tests/test-rename.h (test_rename): Allow one more errno.
34650         * tests/test-renameat.c (main): Likewise.
34651         * doc/posix-functions/rename.texi (rename): Document the bug.
34652
34653         open: detect FreeBSD bug
34654         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34655         symlink.
34656         * doc/posix-functions/open.texi (open): Document the bug.
34657         * doc/posix-functions/utimes.texi (utimes): Likewise.
34658         * tests/test-open.h (test_open): Add parameters, and test symlink
34659         handling.
34660         * tests/test-open.c (main): Adjust caller.
34661         * tests/test-fcntl-safer.c (main): Likewise.
34662         * modules/open-tests (Depends-on): Add stdbool, symlink.
34663         * modules/fcntl-safer-tests (Depends-on): Likewise.
34664         * tests/test-openat.c (main): Add test-open tests.
34665
34666         stat: detect FreeBSD bug
34667         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34668         symlink.
34669         * doc/posix-functions/stat.texi (stat): Document the bug.
34670         * tests/test-stat.h (test_stat_func): Add argument.
34671         * tests/test-stat.c (main): Adjust caller.
34672         * tests/test-fstatat.c (main): Likewise.
34673         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34674         Reported by Jim Meyering.
34675
34676 2009-11-09  James Youngman  <jay@gnu.org>
34677
34678         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34679         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34680
34681 2009-11-08  Jim Meyering  <meyering@redhat.com>
34682
34683         utimens: remove invalid futimesat call
34684         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34685         It used the file descriptor of the target file as the DIR_FD
34686         parameter and NULL as the file name.  That caused failure with
34687         errno == EFAULT on FreeBSD-8.0-rc2
34688
34689 2009-11-07  Eric Blake  <ebb9@byu.net>
34690
34691         fflush, freadseek: use fseeko, not fseek
34692         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34693         (clear_ungetc_buffer): Avoid potential problems on large files.
34694         * lib/freadseek.c (freadseek): Likewise.
34695         * modules/freadseek (Depends-on): Add fseeko.
34696         * modules/fseek (configure.ac): Set a witness.
34697         * tests/test-fflush.c (main): Use fseeko.
34698         * tests/test-fpurge.c (fseek): Disable link warning.
34699         * tests/test-freadable.c (fseek): Likewise.
34700         * tests/test-freading.c (fseek): Likewise.
34701         * tests/test-fseeko.c (fseek): Likewise.
34702         * tests/test-ftell.c (fseek): Likewise.
34703         * tests/test-ftello.c (fseek): Likewise.
34704         * tests/test-fwritable.c (fseek): Likewise.
34705         * tests/test-fwriting.c (fseek): Likewise.
34706
34707 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34708
34709         * modules/memchr (Depends-on): Drop getpagesize dependency.
34710
34711 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34712
34713         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34714         Reported by Ludovic Courtès.
34715         * build-aux/pmccabe2html: Improve example usage.
34716         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34717
34718 2009-11-06  Jim Meyering  <meyering@redhat.com>
34719
34720         do-release-commit-and-tag: New module.
34721         Automate the release-commit and tag process.
34722         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34723         * modules/do-release-commit-and-tag: New file.
34724         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34725
34726 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34727
34728         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34729         because test-select.c uses inet_pton.
34730
34731 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34732
34733         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34734         GETADDRINFO_LIB.  Bump serial number.
34735         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34736         Suggested by Eric Blake <ebb9@byu.net>.
34737
34738 2009-11-05  Eric Blake  <ebb9@byu.net>
34739
34740         strtod: detect darwin bug
34741         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34742         Reported by Leo Davis.
34743
34744         freopen-safer: new module
34745         * modules/freopen-safer: New module.
34746         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34747         * lib/freopen-safer.c (freopen_safer): New file.
34748         * lib/stdio-safer.h (freopen_safer): New declaration.
34749         * lib/stdio--.h (freopen): New override.
34750         * MODULES.html.sh (File stream based Input/Output): Mention it.
34751         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34752         freopen-safer module.
34753         * doc/posix-functions/stderr.texi (stderr): Likewise.
34754         * doc/posix-functions/stdin.texi (stdin): Likewise.
34755         * doc/posix-functions/stdout.texi (stdout): Likewise.
34756         * modules/freopen-safer-tests: New test.
34757         * tests/test-reopen-safer.c: New file.
34758
34759 2009-11-05  Jim Meyering  <meyering@redhat.com>
34760
34761         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34762         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34763
34764 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34765
34766         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34767
34768 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34769
34770         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34771
34772 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34773
34774         Fix link error.
34775         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34776         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34777
34778 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34779
34780         * tests/test-func.c: Also test value of __func__.
34781
34782 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34783
34784         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34785         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34786
34787 2009-11-05  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix link error.
34790         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34791         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34792         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34793
34794 2009-11-05  Bruno Haible  <bruno@clisp.org>
34795
34796         Tests for module 'inet_pton'.
34797         * modules/inet_pton-tests: New file.
34798         * tests/test-inet_pton.c: New file.
34799
34800 2009-11-05  Bruno Haible  <bruno@clisp.org>
34801
34802         Tests for module 'inet_ntop'.
34803         * modules/inet_ntop-tests: New file.
34804         * tests/test-inet_ntop.c: New file.
34805
34806 2009-11-04  Eric Blake  <ebb9@byu.net>
34807
34808         stdlib-safer: wrap all mkstemp variants
34809         * modules/mkostemp (configure.ac): Set witness.
34810         * modules/mkostemps (configure.ac): Likewise.
34811         * modules/mkstemps (configure.ac): Likewise.
34812         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34813         (mkstemps_safer): Wrap more functions.
34814         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34815         wrapping.
34816         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34817         (mkstemps_safer): Implement the wrappers.
34818
34819         mkstemps, mkostemps: new modules
34820         * modules/mkostemps: New module.
34821         * modules/mkstemps: Likewise.
34822         * lib/mkostemps.c (mkostemps): New file.
34823         * lib/mkstemps.c (mkstemps): Likewise.
34824         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34825         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34827         * modules/stdlib (Makefile.am): Substitute them.
34828         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34829         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34830         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34831         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34832         * MODULES.html.sh (File system functions): Mention them.
34833
34834         tempname: resync from glibc
34835         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34836         same values for __GT_FILE as glibc.  Abort even when assertions
34837         are disabled.
34838         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34839         match its value otherwise.  Allow idempotent inclusion.
34840         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34841         * lib/mkostemp.c (mkostemp): Likewise.
34842         * lib/mkstemp.c (mkstemp): Likewise.
34843         * lib/tmpfile.c (tmpfile): Likewise.
34844         * NEWS: Document this.
34845
34846         utimens: fix use of futimens on older Linux
34847         * lib/utimens.c (fdutimens): Use updated, rather than original,
34848         timespec to avoid bug in older Linux kernel.
34849         Reported by Simon Josefsson.
34850
34851 2009-11-04  Bruno Haible  <bruno@clisp.org>
34852
34853         Make num_processors more flexible and consistent.
34854         * lib/nproc.h (enum nproc_query): New type.
34855         (num_processors): Add a 'query' argument.
34856         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34857         (num_processors): Add a 'query' argument. Test the value of the
34858         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34859         mingw, count the number of CPUs available for the current process.
34860         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34861         Check for sched_getaffinity and sched_getaffinity_np.
34862         * modules/nproc (Depends-on): Add c-ctype, extensions.
34863         * NEWS: Mention the change.
34864
34865 2009-11-03  Bruno Haible  <bruno@clisp.org>
34866
34867         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34868
34869 2009-11-03  Jim Meyering  <meyering@redhat.com>
34870
34871         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34872         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34873         if it is defined.
34874
34875 2009-11-02  Eric Blake  <ebb9@byu.net>
34876
34877         mktime, timegm: share common declaration
34878         * lib/mktime-internal.h: New file.
34879         * lib/mktime.c: Use it rather than open-coding a declaration.
34880         * lib/timegm.c: Likewise.
34881         * modules/mktime (Files): Ship it.
34882         * modules/timegm (Files): Likewise.
34883         Suggested by Bruno Haible.
34884
34885         test-update-copyright: update test to match script changes
34886         * tests/test-update-copyright.sh: Avoid hard-coding perl
34887         location.  Don't update *.bak created by earlier runs.
34888
34889 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34890             Simon Josefsson  <simon@josefsson.org>
34891             Bruno Haible  <bruno@clisp.org>
34892
34893         Fix link error on Solaris 8.
34894         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34895         also in libnsl. Define also INET_PTON_LIB.
34896         * modules/inet_pton (Link): New section.
34897
34898 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34899             Bruno Haible  <bruno@clisp.org>
34900
34901         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34902         * modules/inet_ntop (Link): New section.
34903         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34904
34905 2009-11-02  Eric Blake  <ebb9@byu.net>
34906
34907         maint: avoid compiler warnings in m4 macros
34908         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34910
34911 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34912
34913         * m4/pmccabe2html.m4: Remove file.
34914         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34915         function.  Change maintainer.
34916         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34917         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34918         Courtès).
34919
34920 2009-10-31  Eric Blake  <ebb9@byu.net>
34921
34922         fseeko: fix m4 regression
34923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34924         regression from 2009-10-27.
34925         Reported by Ralf Wildenhues.
34926
34927 2009-10-31  Jim Meyering  <meyering@redhat.com>
34928
34929         inttostr: aesthetics and improved (compile-time) safety
34930         Define inttype_is_signed rather than inttype_is_unsigned,
34931         since the sole use is via "#if inttype_is_signed".
34932         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34933         inttype_is_unsigned.
34934         * lib/offtostr.c (inttype_is_signed): Likewise.
34935         * lib/uinttostr.c (inttype_is_signed): Likewise.
34936         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34937         * lib/inttostr.c (inttostr): Use verify to cross-check the
34938         inttype_is_signed value and the signedness of the actual type.
34939         * modules/inttostr (Depends-on): Add verify.
34940
34941 2009-10-30  Eric Blake  <ebb9@byu.net>
34942
34943         build: avoid compiler warnings
34944         * lib/fchmodat.c (lchmod): Mark unused variables.
34945         * lib/getopt.c (_getopt_initialize): Likewise.
34946         * lib/mktime.c (__mktime_internal): Provide prototype.
34947         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34948         older gcc that do not understand #pragma GCC diagnostic.
34949         * lib/uinttostr.c (inttype_is_unsigned): Define.
34950         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34951
34952 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34953
34954         stat: fix compilation on AIX
34955         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34956         only see struct stat64.
34957
34958 2009-10-30  Eric Blake  <ebb9@byu.net>
34959
34960         exclude: make more robust
34961         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34962         rather than masking a coding bug.
34963         Suggested by Bruno Haible.
34964
34965 2009-10-30  Jim Meyering  <meyering@redhat.com>
34966
34967         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34968         Rather than putting #!/usr/bin/perl on the first line,
34969         start with a variant of what's recommended by "man perlrun" that
34970         invokes the first "perl" program from your shell's search path.
34971         * build-aux/gitlog-to-changelog: Replace #!... as above.
34972         Add a "Local Variables" perl mode setting.
34973         Prompted by a patch from Ludovic Courtès.
34974         Improved by Eric Blake.
34975         * build-aux/useless-if-before-free: Likewise.
34976         * build-aux/announce-gen: Likewise.
34977         * build-aux/update-copyright: Likewise.
34978
34979 2009-10-29  Eric Blake  <ebb9@byu.net>
34980
34981         filenamecat-lgpl: adjust clients
34982         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34983         filenamecat.
34984         * modules/renameat (Depends-on): Likewise.
34985
34986         filenamecat: split into filenamecat-lgpl
34987         * modules/filenamecat-lgpl: New module.
34988         * modules/filenamecat (Files): Move library-safe files into
34989         filenamecat-lgpl.
34990         (Depends-on): Add filenamecat-lgpl.
34991         (configure.ac): Declare witness.
34992         * lib/filenamecat.h (file_name_concat): Only declare when using
34993         GPL module.
34994         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34995         Move...
34996         * lib/filenamecat-lgpl.c: ...into new file.
34997         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34998         (gl_FILE_NAME_CONCAT): Use it.
34999         * MODULES.html.sh (File system functions): Mention new module.
35000
35001         argp: avoid memory leak
35002         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35003         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35004         base_name, since the latter malloc()s and can call exit().
35005         Leak introduced 2006-07-03.
35006
35007         dirname-lgpl: adjust clients that don't need full dirname
35008         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35009         * modules/filenamecat (Depends-on): Likewise.
35010         * modules/linkat (Depends-on): Likewise.
35011         * modules/mkancesdirs (Depends-on): Likewise.
35012         * modules/mkdir (Depends-on): Likewise.
35013         * modules/openat (Depends-on): Likewise.
35014         * modules/savewd (Depends-on): Likewise.
35015         * modules/rename (Depends-on): Likewise.
35016         (License): Relax license.
35017         * modules/mkdir-tests (Depends-on): Drop progname.
35018         (Makefile.am): Delete unneeded LDADD.
35019         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35020
35021         dirname: split into dirname-lgpl
35022         * modules/dirname-lgpl: New module.
35023         * modules/dirname (Files): Move library-safe files into
35024         dirname-lgpl.
35025         (Depends-on): Add dirname-lgpl.
35026         (configure.ac): Declare witness.
35027         * modules/double-slash-root (License): Relax license.
35028         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35029         module.
35030         * lib/dirname.c (dir_len, mdir_name): Move...
35031         * lib/dirname-lgpl.c: ...into new file.
35032         * lib/basename.c (last_component, base_len): Move...
35033         * lib/basename-lgpl.c: ...into new file.
35034         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35035         (gl_DIRNAME): Use it.
35036         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35037         Mention new module.
35038         * modules/dirname-tests (Depends-on): Add progname.
35039         * tests/test-dirname.c (program_name): Delete.
35040
35041         mkdir: make safe for libraries
35042         * modules/mkdir (Depends-on): Drop xalloc.
35043         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35044         exit.
35045
35046         tests: avoid some compiler warnings
35047         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35048         literals.
35049         * tests/test-memchr.c (main): Avoid type mismatch.
35050         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35051         * tests/test-base64.c (main): Likewise.
35052         * tests/test-getdelim.c (main): Likewise.
35053         * tests/test-gethostname.c (main): Likewise.
35054         * tests/test-getline.c (main): Likewise.
35055         * tests/test-netinet_in.c (main): Likewise.
35056         * tests/test-select.c (open_server_socket, main): Likewise.
35057         * tests/test-select-stdin.c (main): Likewise.
35058         * tests/test-sockets.c (main): Likewise.
35059         * tests/test-strsignal.c (main): Likewise.
35060         * tests/test-sys_select.c (main): Likewise.
35061         * tests/test-sys_socket.c (main): Likewise.
35062         * tests/test-u64.c (main): Likewise.
35063         * tests/test-xfprintf-posix.c (main): Likewise.
35064         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35065
35066         sockets: avoid compiler warning
35067         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35068
35069         maint: detect usage(1) and other suspicious exits
35070         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35071
35072 2009-10-29  Jim Meyering  <meyering@redhat.com>
35073
35074         timespec: long-to-int truncation could make timespec_cmp malfunction
35075         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35076         a multiple of 2^32 nanoseconds as no difference.
35077
35078 2009-10-28  Jim Meyering  <meyering@redhat.com>
35079
35080         fprintftime: wrap macro code argument in "do {...} while(0)"
35081         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35082         cpy macro must be a statement that can be followed by a semicolon.
35083         Now that the else clause contains a comment and is hence longer
35084         than one line, I require curly braces.  That in turn requires
35085         that we wrap this code block in the standard do...while(0).
35086
35087         fprintftime: remove stray semicolon from previous change
35088         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35089
35090         fprintftime: avoid a warning about ignored fwrite return value
35091         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35092         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35093         that is unsafe.
35094         * modules/fprintftime (Depends-on): Add ignore-value.
35095
35096         exclude: avoid an unwarranted warning
35097         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35098
35099 2009-10-27  Eric Blake  <ebb9@byu.net>
35100
35101         fseek: avoid compilation failure when fflush is replaced
35102         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35103         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35104         module is in use.
35105         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35106         module is not in use; since REPLACE_FSEEK worked otherwise.
35107         (GNULIB_FTELLO): Likewise for ftell.
35108         Reported by Ian Beckwith and others.
35109
35110 2009-10-27  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35113         Reported by Jim Meyering.
35114
35115 2009-10-27  Jim Meyering  <jim@meyering.net>
35116             Bruno Haible  <bruno@clisp.org>
35117
35118         Avoid warning despite dropping the return value of fwrite.
35119         * lib/unicodeio.c: Include ignore-value.h.
35120         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35121         * modules/unicodeio (Depends-on): Add ignore-value.
35122
35123 2009-10-26  Eric Blake  <ebb9@byu.net>
35124
35125         areadlinkat: fix fallback path
35126         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35127         pointer and zero.
35128
35129 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35130
35131         Use a better IO block size for modern systems
35132         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35133         * lib/md2.c: Likewise.
35134         * lib/md4.c: Likewise.
35135         * lib/md5.c: Likewise.
35136         * lib/sha1.c: Likewise.
35137         * lib/sha256.c: Likewise.
35138         * lib/sha512.c: Likewise.
35139
35140 2009-10-22  Eric Blake  <ebb9@byu.net>
35141
35142         tests: avoid several compiler warnings
35143         * tests/test-getcwd.c (main): Avoid buffer underflow.
35144         * tests/test-getdate.c (main): String literals are not safe with
35145         putenv, so use setenv.  Declare unused argument.
35146         * modules/getdate-tests (Depends-on): Add setenv.
35147         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35148         problems with string literals in char *.
35149         * tests/test-hash.c (main): Avoid shadowing declaration.
35150         (insert_new): Treat string literals as char const *.
35151         * tests/test-getopt.h (test_getopt): Likewise.
35152         (getopt_loop): Alter types to minimize casting elsewhere.
35153         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35154         (test_getopt_long_posix): Likewise.
35155         (do_getopt_long): Add wrapper to minimize casting.
35156         * tests/test-atexit.c (clear_temp_file): Use void.
35157         * tests/test-areadlink-with-size.c (main): Declare unused
35158         arguments.
35159         * tests/test-areadlink.c (main): Likewise.
35160         * tests/test-areadlinkat-with-size.c (main): Likewise.
35161         * tests/test-areadlinkat.c (main): Likewise.
35162         * tests/test-canonicalize-lgpl.c (main): Likewise.
35163         * tests/test-canonicalize.c (main): Likewise.
35164         * tests/test-dirent-safer.c (main): Likewise.
35165         * tests/test-dirname.c (main): Likewise.
35166         * tests/test-dup2.c (main): Likewise.
35167         * tests/test-fchdir.c (main): Likewise.
35168         * tests/test-fcntl-h.c (main): Likewise.
35169         * tests/test-fcntl-safer.c (main): Likewise.
35170         * tests/test-fdopendir.c (main): Likewise.
35171         * tests/test-fdutimensat.c (main): Likewise.
35172         * tests/test-fflush.c (main): Likewise.
35173         * tests/test-filenamecat.c (main): Likewise.
35174         * tests/test-filevercmp.c (main): Likewise.
35175         * tests/test-fopen-safer.c (main): Likewise.
35176         * tests/test-fopen.c (main): Likewise.
35177         * tests/test-fpending.c (main): Likewise.
35178         * tests/test-fpurge.c (main): Likewise.
35179         * tests/test-freading.c (main): Likewise.
35180         * tests/test-fstatat.c (main): Likewise.
35181         * tests/test-fsync.c (main): Likewise.
35182         * tests/test-futimens.c (main): Likewise.
35183         * tests/test-getndelim2.c (main): Likewise.
35184         * tests/test-gettimeofday.c (main): Likewise.
35185         * tests/test-getopt.c (main): Likewise.
35186         * tests/test-i-ring.c (main): Likewise.
35187         * tests/test-inttypes.c (main): Likewise.
35188         * tests/test-link.c (main): Likewise.
35189         * tests/test-lstat.c (main): Likewise.
35190         * tests/test-math.c (main): Likewise.
35191         * tests/test-md5.c (main): Likewise.
35192         * tests/test-memchr2.c (main): Likewise.
35193         * tests/test-memrchr.c (main): Likewise.
35194         * tests/test-mkdir.c (main): Likewise.
35195         * tests/test-mkdirat.c (main): Likewise.
35196         * tests/test-mkfifoat.c (main): Likewise.
35197         * tests/test-open.c (main): Likewise.
35198         * tests/test-openat-safer.c (main): Likewise.
35199         * tests/test-openat.c (main): Likewise.
35200         * tests/test-quotearg.c (main): Likewise.
35201         * tests/test-rawmemchr.c (main): Likewise.
35202         * tests/test-readlink.c (main): Likewise.
35203         * tests/test-remove.c (main): Likewise.
35204         * tests/test-rename.c (main): Likewise.
35205         * tests/test-renameat.c (main): Likewise.
35206         * tests/test-rmdir.c (main): Likewise.
35207         * tests/test-sha1.c (main): Likewise.
35208         * tests/test-signal.c (main): Likewise.
35209         * tests/test-sigaction.c (main): Likewise.
35210         * tests/test-stat.c (main): Likewise.
35211         * tests/test-stat-time.c (main): Likewise.
35212         * tests/test-stddef.c (main): Likewise.
35213         * tests/test-stdint.c (main): Likewise.
35214         * tests/test-stdio.c (main): Likewise.
35215         * tests/test-stdlib.c (main): Likewise.
35216         * tests/test-strchrnul.c (main): Likewise.
35217         * tests/test-strerror.c (main): Likewise.
35218         * tests/test-string.c (main): Likewise.
35219         * tests/test-strtod.c (main): Likewise.
35220         * tests/test-strverscmp.c (main): Likewise.
35221         * tests/test-symlink.c (main): Likewise.
35222         * tests/test-symlinkat.c (main): Likewise.
35223         * tests/test-sys_stat.c (main): Likewise.
35224         * tests/test-sys_time.c (main): Likewise.
35225         * tests/test-time.c (main): Likewise.
35226         * tests/test-unistd.c (main): Likewise.
35227         * tests/test-unlink.c (main): Likewise.
35228         * tests/test-unlinkat.c (main): Likewise.
35229         * tests/test-utimens.c (main): Likewise.
35230         * tests/test-utimensat.c (main): Likewise.
35231         * tests/test-version-etc.c (main): Likewise.
35232         * tests/test-wchar.c (main): Likewise.
35233         * tests/test-wctype.c (main): Likewise.
35234         * tests/test-xprintf-posix.c (main): Likewise.
35235         * tests/test-posixtm.c (main): Likewise.
35236         (STREQ): Delete unused macro.
35237         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35238         shadowed variables.
35239         * tests/test-memchr.c (main): Likewise.
35240
35241 2009-10-21  Eric Blake  <ebb9@byu.net>
35242
35243         areadlinkat: avoid failure on older glibc
35244         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35245         rather than mis-comparing 0 against FUNC_RESULT of char*.
35246
35247 2009-10-21  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/stpncpy (License): Relicense under LGPLv2+.
35250         Reported by David Lutterkort <lutter@redhat.com>.
35251
35252 2009-10-20  Eric Blake  <ebb9@byu.net>
35253
35254         utimensat: work around Solaris 9 bug
35255         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35256         has trailing slash bugs.
35257         * tests/test-lutimens.h (test_lutimens): Enhance test.
35258         * tests/test-utimens.h (test_utimens): Likewise.
35259         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35260         * doc/posix-functions/utimes.texi (utimes): Likewise.
35261         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35262         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35263         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35264         * doc/posix-functions/futimens.texi (futimens): Likewise.
35265
35266         fdutimensat: new module
35267         * modules/fdutimensat: New file.
35268         * lib/fdutimensat.c (fdutimensat): Likewise.
35269         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35270         * MODULES.html.sh (File system functions): Mention module.
35271         * modules/fdutimensat-tests: New test.
35272         * tests/test-fdutimensat.c: Likewise.
35273
35274         doc: regenerate INSTALL
35275         * doc/INSTALL: Reflect recent autoconf update.
35276         * doc/INSTALL.ISO: Likewise.
35277         * doc/INSTALL.UTF-8: Likewise.
35278
35279 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35280
35281         acl: warn if ACL support is not detected
35282         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35283
35284 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35285
35286         * lib/nproc.h: Add extern "C" block for C++.
35287
35288 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35289             Bruno Haible  <bruno@clisp.org>
35290
35291         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35292         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35293         * doc/posix-functions/isalpha.texi: Likewise.
35294         * doc/posix-functions/isblank.texi: Likewise.
35295         * doc/posix-functions/iscntrl.texi: Likewise.
35296         * doc/posix-functions/isdigit.texi: Likewise.
35297         * doc/posix-functions/isgraph.texi: Likewise.
35298         * doc/posix-functions/islower.texi: Likewise.
35299         * doc/posix-functions/isprint.texi: Likewise.
35300         * doc/posix-functions/ispunct.texi: Likewise.
35301         * doc/posix-functions/isspace.texi: Likewise.
35302         * doc/posix-functions/isupper.texi: Likewise.
35303         * doc/posix-functions/isxdigit.texi: Likewise.
35304
35305 2009-10-18  Bruno Haible  <bruno@clisp.org>
35306
35307         Tests for module 'isblank'.
35308         * modules/isblank-tests: New file.
35309         * tests/test-isblank.c: New file.
35310
35311         New module 'isblank'.
35312         * lib/isblank.c: New file.
35313         * m4/isblank.m4: New file.
35314         * modules/isblank: New file.
35315         * doc/posix-functions/isblank.texi: Mention the new module.
35316
35317 2009-10-18  Bruno Haible  <bruno@clisp.org>
35318
35319         New module 'ctype'.
35320         * lib/ctype.in.h: New file.
35321         * m4/ctype.m4: New file.
35322         * modules/ctype: New file.
35323         * doc/posix-headers/ctype.texi: Mention the new module.
35324
35325 2009-10-18  Jim Meyering  <meyering@redhat.com>
35326
35327         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35328         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35329         right after its initialization, rather than farther down.
35330         Keeping these in close proximity makes it easier to ensure
35331         that each such variable is initialized.  E.g.,
35332
35333             LIB_CLOCK_GETTIME=
35334             AC_SUBST([LIB_CLOCK_GETTIME])
35335
35336         This change also increments these serial numbers.
35337         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35338         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35340
35341 2009-10-18  Bruno Haible  <bruno@clisp.org>
35342
35343         Don't let environment variables perturb build.
35344         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35345         (gl_PREREQ_GETHRXTIME): ... not here.
35346
35347 2009-10-18  Bruno Haible  <bruno@clisp.org>
35348
35349         Avoid symlink attack in localcharset module.
35350         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35351         (O_NOFOLLOW): Define fallback.
35352         (get_charset_aliases): Don't open the file if it is a symbolic link.
35353         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35354         gl_FCNTL_H.
35355         (gl_FCNTL_H): Require it.
35356         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35357         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35358         Reported by Fergal Glynn <fglynn@veracode.com>.
35359
35360 2009-10-18  Bruno Haible  <bruno@clisp.org>
35361
35362         Implement nproc for mingw.
35363         * lib/nproc.c: Include <windows.h>
35364         (num_processors): On native Windows platforms, try GetSystemInfo.
35365
35366 2009-10-18  Bruno Haible  <bruno@clisp.org>
35367
35368         Implement nproc for IRIX.
35369         * lib/nproc.c: Include <sys/sysmp.h>.
35370         (num_processors): On IRIX systems, try sysmp.
35371         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35372
35373 2009-10-18  Bruno Haible  <bruno@clisp.org>
35374
35375         Implement nproc for HP-UX.
35376         * lib/nproc.c: Include <sys/pstat.h>
35377         (num_processors): On HP-UX systems, try pstat_getdynamic.
35378         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35379         pstat_getdynamic.
35380
35381 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35382             Bruno Haible  <bruno@clisp.org>
35383
35384         Implement nproc for NetBSD, OpenBSD.
35385         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35386         (ARRAY_SIZE): New macro.
35387         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35388         * m4/nproc.m4: New file.
35389         * modules/nproc (Files): Add m4/nproc.m4.
35390         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35391         (Makefile.am): Instead, augment lib_SOURCES.
35392
35393 2009-10-18  Bruno Haible  <bruno@clisp.org>
35394
35395         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35396         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35397         sys/param.h.
35398
35399 2009-10-16  Eric Blake  <ebb9@byu.net>
35400
35401         utimensat: new module
35402         * modules/utimensat: New file.
35403         * lib/utimensat.c (utimensat): Likewise.
35404         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35405         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35406         so we can work around Linux bugs.
35407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35408         * modules/sys_stat (Makefile.am): Substitute them.
35409         * lib/sys_stat.in.h (utimensat): Declare it.
35410         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35411         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35412         * modules/utimensat-tests: New test.
35413         * tests/test-utimensat.c: Likewise.
35414
35415         utimens: let lutimens work on non-symlinks
35416         * lib/utimens.c (lutimens): Fall back to utimens rather than
35417         failing with ENOSYS, when file is not a symlink.
35418         (utimens): Reduce redirection.
35419         * tests/test-lutimens.h (test_lutimens): Update test to cover
35420         non-symlinks.
35421         * tests/test-utimens.h (test_utimens): Update test to cover
35422         symlinks.
35423         * tests/test-utimens.c (main): Update caller.
35424
35425         utimens: cache whether utimensat syscall works
35426         * lib/utimens.c (utimensat_works_really): New cache variable.
35427         (fdutimens, lutimens): Use it to avoid failing syscall.
35428
35429         test-stat-time, test-utimens: improve portability
35430         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35431         ext4 on alpha, and for cygwin.
35432         * tests/test-utimens-common.h: New file.
35433         (nap): Factor delays into single function.
35434         * tests/test-lutimens.h (test_lutimens): Use new header.
35435         * tests/test-futimens.h (test_futimens): Likewise.
35436         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35437         timestamps to occur from same machine, as was done previously for
35438         test_utimens.
35439         * modules/utimens-tests (Files): Ship new file.
35440         * modules/futimens-tests (Files): Likewise.
35441         Reported in part by Jim Meyering.
35442
35443         sys_stat: sort replacement declarations
35444         * lib/sys_stat.in.h: Sort declarations.
35445         * lib/futimens.c (futimens): Fix typo.
35446
35447 2009-10-15  Jim Meyering  <meyering@redhat.com>
35448
35449         don't let environment settings perturb build
35450         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35451         could cause a configure-time and/or build-time malfunction.
35452         Typically, a configure-time function-in-library test is performed
35453         via code like this:
35454
35455           LIB_VAR=
35456           AC_SUBST([LIB_VAR])
35457           prefix_saved_LIBS=$LIBS
35458             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35459                        [test "$ac_cv_search_FUNC" = "none required" ||
35460                         LIB_VAR=$ac_cv_search_FUNC])
35461           LIBS=$prefix_saved_LIBS
35462
35463         However, in each of the files affected by this change, the LIB_VAR=
35464         initialization was omitted.  Thus, when set in the environment, its
35465         value would propagate into generated Makefiles when FUNC is not found
35466         in LIB_NAME.
35467         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35468         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35470
35471 2009-10-14  Eric Blake  <ebb9@byu.net>
35472
35473         fchdir: avoid infinite recursion in mingw
35474         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35475         recursing.
35476
35477         test-stat-time: port to mingw
35478         * tests/test-stat-time.c (force_unlink): Return a value.
35479         (test_ctime) [W32]: Fix compilation error.
35480         (nap): Don't call usleep with too large an argument.  Use
35481         force_unlink.
35482         * doc/pastposix-functions/usleep.texi (usleep): Document the
35483         portability issue.
35484
35485 2009-10-13  Jim Meyering  <meyering@redhat.com>
35486
35487         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35488         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35489         * modules/pipe-filter-ii: Likewise.
35490         * modules/sys_socket-tests: Likewise.
35491         * modules/tsearch-tests: Likewise.
35492         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35493         (check): Depend on it.
35494
35495 2009-10-12  Eric Blake  <ebb9@byu.net>
35496
35497         utimens-tests: port to NFS file systems
35498         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35499         comparisons to avoid spurious failures from timestamp drift
35500         between NFS machines.
35501
35502 2009-10-12  Eric Blake  <ebb9@byu.net>
35503
35504         stat-time-tests: minor cleanups
35505         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35506         * tests/test-stat-time.c (nap): Separate assignment from call.
35507         Suggested by Paolo Bonzini and Bruno Haible.
35508
35509         sys_stat: guarantee struct timespec
35510         * lib/sys_stat.in.h (includes): Always include <time.h>
35511         * modules/sys_stat (Depends-on): Add time.
35512         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35513         mode_t permission values.
35514         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35515         get at subsecond timestamps.
35516
35517 2009-10-10  Eric Blake  <ebb9@byu.net>
35518
35519         futimens: new module
35520         * modules/futimens: New file.
35521         * lib/futimens.c (futimens): Likewise.
35522         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35523         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35524         we can work around Linux bugs.
35525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35526         * modules/sys_stat (Makefile.am): Substitute them.
35527         * lib/sys_stat.in.h (futimens): Declare it.
35528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35529         * doc/posix-functions/futimens.texi (futimens): Likewise.
35530         * modules/futimens-tests: New test.
35531         * tests/test-futimens.c: Likewise.
35532
35533         utimens: introduce fdutimens
35534         * lib/utimens.h (fdutimens): New prototype.
35535         * lib/utimens.c (gl_futimens): Move guts...
35536         (fdutimens): ...to new interface.
35537         * tests/test-utimens.c (do_fdutimens): Use it.
35538
35539         utimens: add UTIME_NOW and UTIME_OMIT support
35540         * lib/utimens.c (validate_timespec, update_timespec): New helper
35541         functions.
35542         (gl_futimens, lutimens): Use them.
35543         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35544         stdbool, sys_stat.
35545         (Link): Mention resulting library dependency.
35546         * modules/utimecmp (Link): Likewise.
35547         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35548         (Makefile.am): Pick up library dependency.
35549         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35550         definition.
35551         * tests/test-sys_stat.c: Test the definitions.
35552         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35553         * NEWS: Document library dependency.
35554
35555         utimecmp: support symlink timestamps
35556         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35557         hashing when possible.  Use pathconf when available.
35558         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35559         * modules/utimecmp (Depends-on): Add lstat.
35560
35561         utimens: add lutimens interface
35562         * lib/utimens.c (lutimens): New function.
35563         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35564         * lib/utimens.h (lutimens): Declare new interface.
35565         * tests/test-utimens.c (main): Enhance test.
35566         * tests/test-lutimens.h (test_lutimens): New file.
35567         * modules/utimens-tests (Files): Distribute it.
35568         (Depends-on): Add symlink.
35569         (configure.ac): Check for usleep.
35570
35571         utimens: validate futimens usage
35572         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35573         fewer syscalls on failure later on.  Avoid compiler warning on
35574         mingw.
35575         * modules/utimens (Depends-on): Add dup2.
35576
35577         utimens: add test
35578         * modules/utimens-tests: New test.
35579         * tests/test-utimens.h: New file.
35580         * tests/test-futimens.h: Likewise.
35581         * tests/test-utimens.c: Likewise.
35582
35583         doc: mention timestamp portability issues
35584         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35585         instead.
35586         * doc/posix-functions/utime.texi (utime): Likewise.
35587         * doc/posix-functions/utimes.texi (utimes): Likewise.
35588         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35589         instead.
35590         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35591         module.
35592         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35593         Mention weakness with symlink timestamps.
35594         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35595         to utimensat/futimens instead.
35596         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35597
35598         test-dup2: enhance test
35599         * tests/test-dup2.c (main): Also check AT_FDCWD.
35600
35601         test-stat-time: avoid more spurious failures
35602         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35603         xfs; and avoid race if the two timestamps cross quantization edge.
35604
35605         relocatable: prefer 'file system' over 'filesystem'
35606         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35607         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35608         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35609         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35610         * lib/relocatable.c (compute_curr_prefix): Likewise.
35611
35612 2009-10-10  Jim Meyering  <meyering@redhat.com>
35613
35614         stat-time-tests: check for the usleep function
35615         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35616
35617 2009-10-10  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/xnanosleep: Put the Link section after the Include section.
35620
35621 2009-10-09  Eric Blake  <ebb9@byu.net>
35622
35623         dup2: work around FreeBSD 6.1 bug
35624         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35625         * doc/posix-functions/dup2.texi (dup2): Document it.
35626         Reported by Nelson H. F. Beebe and Jim Meyering.
35627
35628         test-stat-time: port to buggy NFS clients
35629         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35630         (test_ctime): Also skip test if mtime and ctime are skewed.
35631
35632         maint: prefer 'file system' over 'filesystem'
35633         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35634         * doc/posix-functions/lstat.texi (lstat): Likewise.
35635         * lib/file-has-acl.c (file_has_acl): Likewise.
35636         * lib/fwriteerror.c [TEST]: Likewise.
35637         * tests/test-areadlink.h (test_areadlink): Likewise.
35638         * tests/test-areadlinkat-with-size.c (main): Likewise.
35639         * tests/test-areadlinkat.c (main): Likewise.
35640         * tests/test-canonicalize-lgpl.c (main): Likewise.
35641         * tests/test-canonicalize.c (main): Likewise.
35642         * tests/test-fstatat.c (main): Likewise.
35643         * tests/test-linkat.c (main): Likewise.
35644         * tests/test-lstat.h (test_lstat_func): Likewise.
35645         * tests/test-mkdir.h (test_mkdir): Likewise.
35646         * tests/test-readlink.h (test_readlink): Likewise.
35647         * tests/test-remove.c (main): Likewise.
35648         * tests/test-rename.h (test_rename): Likewise.
35649         * tests/test-renameat.c (main): Likewise.
35650         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35651         * tests/test-symlink.h (test_symlink): Likewise.
35652         * tests/test-symlinkat.c (main): Likewise.
35653         * tests/test-unlink.h (test_unlink_func): Likewise.
35654         * tests/test-unlinkat.c (main): Likewise.
35655
35656         maint: make realtime library usage explicit
35657         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35658         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35659         * modules/settime (Link): Likewise.
35660         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35661
35662         test-stat-time: speed up execution
35663         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35664         warning on mingw.
35665         (nap): New helper function.
35666         (prepare_test): Use it to reduce sleep time.
35667         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35668         execution.
35669         * modules/stat-time-tests (configure.ac): Check for usleep.
35670
35671 2009-10-09  Jim Meyering  <meyering@redhat.com>
35672
35673         selinux-h: always use getfilecon wrappers
35674         * lib/getfilecon.c: New file.
35675         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35676         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35677         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35678         (fgetfilecon): Provide a stub.
35679         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35680         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35681         file unconditionally.
35682         When <selinux/selinux.h> is found, arrange to use wrappers.
35683         * modules/selinux-h (Files): Add getfilecon.c.
35684         (Makefile.am): Substitute include-next-related bits
35685         into the now-always-generated selinux/selinux.h file.
35686         * doc/glibc-functions/lgetfilecon.texi: New file.
35687         * doc/glibc-functions/fgetfilecon.texi: New file.
35688         * doc/glibc-functions/getfilecon.texi: New file.
35689         * doc/glibc-functions/getfilecon-desc.texi: New file.
35690         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35691         which to pull in the new files.
35692         * MODULES.html.sh (Misc): Add selinux-h.
35693
35694 2009-10-08  Jim Meyering  <meyering@redhat.com>
35695
35696         unistd: fix comment typo
35697         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35698
35699 2009-10-08  Eric Blake  <ebb9@byu.net>
35700
35701         areadlink: use SIZE_MAX consistently
35702         * modules/areadlink (Depends-on): Add stdint.
35703         * modules/areadlink-with-size (Depends-on): Likewise.
35704         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35705         gives NULL; drop sys/types, since unistd gives size_t; and add
35706         stdint for SIZE_MAX.
35707         (SIZE_MAX): Rely on headers.
35708         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35709         and add stdint.
35710         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35711         (SIZE_MAX): Likewise.
35712         (INITIAL_BUF_SIZE): Turn into enum.
35713         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35714
35715 2009-10-08  Jim Meyering  <meyering@redhat.com>
35716
35717         areadlinkat: avoid compilation failure
35718         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35719         Fix typo in comment.
35720
35721 2009-10-07  Eric Blake  <ebb9@byu.net>
35722
35723         areadlinkat-with-size: new module
35724         * modules/areadlinkat-with-size: New module.
35725         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35726         * lib/areadlink.h (areadlinkat): Declare it.
35727         * MODULES.html.sh (File system functions): Mention it.
35728         * modules/areadlinkat-with-size-tests: New test.
35729         * tests/test-areadlinkat-with-size.c: New file.
35730
35731         xreadlinkat: new module
35732         * modules/xreadlinkat: New module.
35733         * lib/xreadlinkat.c (xreadlinkat): New file.
35734         * lib/xreadlink.h (xreadlinkat): Declare it.
35735         * MODULES.html.sh (File system functions): Mention it.
35736
35737         areadlinkat: new module
35738         * lib/at-func.c (FUNC_FAIL): New define.
35739         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35740         * modules/areadlinkat: New module.
35741         * lib/linkat.c (areadlinkat): Move...
35742         * lib/areadlinkat.c (areadlinkat): ...to new file.
35743         * lib/areadlink.h (areadlinkat): Declare it.
35744         * modules/linkat (Depends-on): Add areadlinkat.
35745         * MODULES.html.sh (File system functions): Mention it.
35746         * modules/areadlinkat-tests: New test.
35747         * tests/test-areadlinkat.c: New file.
35748
35749         areadlink, areadlink-with-size: add tests
35750         * modules/areadlink-tests: New test.
35751         * modules/areadlink-with-size-tests: Likewise.
35752         * tests/test-areadlink.h: New file.
35753         * tests/test-areadlink.c: Likewise.
35754         * tests/test-areadlink-with-size.c: Likewise.
35755
35756         maint: minor cleanups
35757         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35758         _UNUSED_PARAMETER_ instead.
35759         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35760         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35761         * modules/linkat-tests (Files): Distribute test-link.h.
35762
35763         openat, utimens: whitespace cleanup
35764         * lib/openat.c: Prefer space throughout, rather than mix of 8
35765         spaces vs. tabs.
35766         * lib/at-func.c: Likewise.
35767         * lib/utimens.c: Likewise.
35768
35769         openat: avoid using wrong fd
35770         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35771         working directory chooses same fd.
35772         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35773
35774         mkdir, mkdirat: fix cygwin 1.5.x bug
35775         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35776         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35777         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35778         bug.
35779         (gl_PREREQ_MKDIR): Delete unused macro.
35780         * modules/mkdir (Files): Track file rename.
35781         (configure.ac): Update macro name.
35782         * modules/openat (Depends-on): Add mkdir.
35783         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35784
35785         mkdir, mkdirat: add tests
35786         * modules/mkdir-tests: New test.
35787         * tests/test-mkdir.h: New file.
35788         * tests/test-mkdir.c: Likewise.
35789         * tests/test-mkdirat.c: Likewise.
35790         * modules/openat-tests (Files): Add new files.
35791         (Makefile.am): Run new test.
35792
35793 2009-10-06  Eric Blake  <ebb9@byu.net>
35794
35795         doc: tweak *at function documentation
35796         * doc/posix-functions/faccessat.texi (faccessat): Mention
35797         known issue with replacement.
35798         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35799         * doc/posix-functions/linkat.texi (linkat): Likewise.
35800         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35801         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35802         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35803         * doc/posix-functions/renameat.texi (renameat): Likewise.
35804         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35805
35806         openat: fix GNU/Hurd bug in unlinkat
35807         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35808         broken.
35809         * doc/posix-functions/unlink.texi (unlink): Document this.
35810         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35811
35812         fdopendir: fix GNU/Hurd bug
35813         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35814         allowing non-directory fds.
35815         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35816         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35817         * modules/dirent (Makefile.am): Substitute it.
35818         * lib/dirent.in.h (fdopendir): Declare replacement.
35819         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35820         * tests/test-fdopendir.c (main): Test something other than
35821         /dev/null, since on Hurd that behaves like a directory.
35822
35823         test-symlink: port to GNU/Hurd
35824         * tests/test-symlink.h (test_symlink): Relax expected errno.
35825
35826         doc: tweak more cygwin information
35827         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35828         now compatible with glibc.
35829         * doc/posix-functions/getopt.texi (getopt): Likewise.
35830
35831         getopt-gnu: add another test
35832         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35833         guarantee behavior relied on by m4.
35834         * tests/test-getopt.c (main): Use it.
35835         * modules/getopt-posix-tests (Depends-on): Add setenv.
35836         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35837
35838         getopt: fix compilation on darwin
35839         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35840         include.
35841         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35842         Reported by Ludovic Courtès.
35843
35844 2009-10-06  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/size_max (Description): Discourage its use.
35847         Reported by Simon Josefsson.
35848
35849 2009-10-06  Jim Meyering  <meyering@redhat.com>
35850
35851         linkat: avoid compilation failure
35852         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35853
35854 2009-10-05  Eric Blake  <ebb9@byu.net>
35855
35856         linkat: support Linux 2.6.17
35857         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35858         linkat on Linux, but allow cache variable override.
35859         * lib/linkat.c (rpl_linkat): Define override.
35860         * modules/linkat (Depends-on): Add symlinkat.
35861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35862         * modules/unistd (Makefile.am): Substitute it.
35863         * lib/unistd.in.h (linkat): Declare replacement.
35864         Reported by Pádraig Brady.
35865
35866         quotearg: port test to systems with C.UTF-8 locale
35867         * tests/test-quotearg.c (struct result_strings): Add another
35868         member, differentiating between C.ASCII and C.UTF-8 handling.
35869         (compare_strings): Add parameter.
35870         (main): Adjust all callers.
35871
35872         getopt: avoid clash with FreeBSD _getopt_internal
35873         * lib/getopt.in.h (_getopt_internal): Override the name.
35874         * lib/getopt_int.h (includes): Pick up any overrides.
35875         Reported by Reuben Thomas.
35876
35877         hash: allow C89 compilation
35878         * lib/hash.c (check_tuning): Move declaration before statement.
35879         Reported by Reuben Thomas.
35880
35881 2009-10-05  Karl Berry  <karl@gnu.org>
35882
35883         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35884
35885 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35886             Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/uname.c (uname): Use a table-driven algorithm to compute
35889         Windows NT versions.
35890
35891 2009-10-04  Bruno Haible  <bruno@clisp.org>
35892
35893         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35894         program_invocation_short_name.
35895         * modules/progname (configure.ac): Test for presence of
35896         program_invocation_short_name.
35897         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35898
35899 2009-10-04  Bruno Haible  <bruno@clisp.org>
35900
35901         * lib/progname.c (set_program_name): Fix comment.
35902         Reported by Jim Meyering.
35903
35904 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35905             Bruno Haible  <bruno@clisp.org>
35906
35907         * lib/uname.c: Include <string.h>.
35908         (uname): Do only one call to GetVersionEx in the common case.
35909
35910 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35911             Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35914         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35915         (uname): Add support for Windows CE and various non-x86 CPU types.
35916
35917 2009-10-03  Bruno Haible  <bruno@clisp.org>
35918
35919         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35920         invocation to tests/configure.ac.
35921         Reported by Ian Beckwith <ianb@erislabs.net>.
35922
35923 2009-10-02  Eric Blake  <ebb9@byu.net>
35924
35925         fchdir: avoid compiler warning
35926         * lib/fchdir.c (canonicalize_file_name)
35927         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35928
35929         test-open: support mingw errno values
35930         * tests/test-open.h (test_open): Relax test.
35931         * tests/test-fopen.h (test_fopen): Likewise.
35932         * tests/test-openat-safer.c (main): Likewise.
35933
35934         open: fix opening directory on mingw
35935         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35936
35937         test-open: on GNU/Hurd, /dev/null is a directory
35938         * tests/test-fopen.h (main): Rename...
35939         (test_fopen): ...to this.  Use a guaranteed non-directory when
35940         confirming open behavior on trailing slash.
35941         * tests/test-openat-safer.c (main): Likewise.
35942         * tests/test-open.h (main): Likewise....
35943         (test_open): ...to this.
35944         * tests/test-fopen.c (main): Adjust caller.
35945         * tests/test-fopen-safer.c (main): Likewise.
35946         * tests/test-open.c (main): Likewise.
35947         * tests/test-fcntl-safer.c (main): Likewise.
35948         Reported by Samuel Thibault.
35949
35950         rename, fchdir: don't ignore chdir failure
35951         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35952         * lib/rename.c (rpl_rename) [W32]: Likewise.
35953         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35954         an empty destination directory if source cannot be renamed,
35955         although there is still possibility for failure.
35956         * doc/posix-functions/rename.texi (rename): Document the race.
35957         Reported by Jim Meyering.
35958
35959         maint: cleanup whitespace in recent commits
35960         * lib/rename.c (rpl_rename): Remove tabs.
35961         * tests/test-link.h (test_link): Likewise.
35962         * lib/fchdir.c (get_name): Likewise.
35963         Reported by Jim Meyering.
35964
35965 2009-10-02  Ben Pfaff  <blp@gnu.org>
35966
35967         relocatable-prog-wrapper: Add missing dependency on
35968         double-slash-root.
35969         * modules/relocatable-prog-wrapper: Add dependency.
35970         Reported by Ian Beckwith <ianb@erislabs.net>.
35971
35972 2009-10-02  Eric Blake  <ebb9@byu.net>
35973
35974         renameat: fix Solaris bugs
35975         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35976         needed fixing.
35977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35978         * modules/stdio (Makefile.am): Substitute it.
35979         * lib/stdio.in.h (renameat): Declare replacement.
35980         * lib/renameat.c (rpl_renameat): Implement fix.
35981
35982         renameat: new module
35983         * modules/renameat: New file.
35984         * lib/renameat.c (renameat): Likewise.
35985         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35987         * modules/stdio (Makefile.am): Substitute them.
35988         * lib/stdio.in.h (renameat): Declare it.
35989         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35990         * doc/posix-functions/renameat.texi (renameat): Likewise.
35991         * modules/renameat-tests: New test.
35992         * tests/test-renameat.c: Likewise.
35993
35994         rename: fix mingw bugs
35995         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35996         directory overwrite bugs.
35997
35998         rename: fix another cygwin 1.5 bug
35999         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36000         checks.
36001         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36002         unnecessary cygwin workarounds.  Also work around bug with moving
36003         full directory onto an empty one.
36004         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36005
36006         rename-dest-slash: merge into rename module
36007         * modules/rename-dest-slash (Status): Mark obsolete.
36008         (Depends-on): Add rename.
36009         (Files): Let rename do it all.
36010         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36011         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36012         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36013         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36014         * lib/rename.c (rpl_rename): Update comments.
36015
36016         rename: fix cygwin 1.5.x bugs
36017         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36018         * lib/rename.c (rpl_rename): Work around them.
36019         * modules/rename (Depends-on): Add same-inode.
36020
36021         rename: fix Solaris 10 bug
36022         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36023         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36024         was the only bug.
36025
36026         rename: fix Solaris 9 bug
36027         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36028         on non-directory.  Avoid calling exit.
36029         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36030         strdup.
36031         * modules/rename-tests (Depends-on): Drop lstat.
36032         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36033         (gl_PREREQ_RENAME): Delete unused macro.
36034
36035         rename-dest-slash: fix NetBSD bug
36036         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36037         links.
36038         * modules/rename-dest-slash (Depends-on): Add same-inode.
36039
36040         rename-tests: new test, exposes several platform bugs
36041         * modules/rename-tests: New file.
36042         * tests/test-rename.h: Likewise.
36043         * tests/test-rename.c: Likewise.
36044         * doc/posix-functions/rename.texi (rename): Improve documentation,
36045         including bugs that will eventually be fixed in gnulib.
36046
36047 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36048
36049         * lib/uname.c: Include <stdlib.h>
36050         (uname): Assume version info is available.
36051
36052 2009-10-02  Jim Meyering  <meyering@redhat.com>
36053
36054         gnu-web-doc-update: correct --help output
36055         * build-aux/gnu-web-doc-update: Make --help output relevant.
36056
36057         gnu-web-doc-update: add standard options
36058         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36059
36060         gnu-web-doc-update: New module.
36061         Use this script to automatically update the on-line web documentation
36062         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36063         * modules/gnu-web-doc-update: New file, from coreutils.
36064         * build-aux/gnu-web-doc-update: New script.
36065
36066 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36067
36068         link: LoadLibrary is not needed.
36069         * lib/link.c: Use GetModuleHandle.
36070
36071 2009-10-01  Eric Blake  <ebb9@byu.net>
36072
36073         getopt: bump serial number
36074         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36075         change.
36076
36077         tests: tighten link, rmdir, and remove tests
36078         * tests/test-link.h (includes): No need to use <config.h> here.
36079         Clean up if directory hard link was created, otherwise test for
36080         trailing '.'.
36081         * tests/test-linkat.c (main): Simplify.
36082         * tests/test-remove.c (main): Enhance test for trailing '.'.
36083         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36084
36085 2009-10-01  Jim Meyering  <meyering@redhat.com>
36086
36087         maint.mk: requiring "make major" was annoying, for a "minor" release.
36088         What is intended is "stable", to contrast with alpha and beta,
36089         so require "make stable", not "make major".
36090         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36091         (get_tool_versions): Likewise.
36092         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36093
36094 2009-09-30  Ben Pfaff  <blp@gnu.org>
36095
36096         Fix broken build of replacement for Windows tmpfile().
36097         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36098         flags argument added along with the 'mkostemp' module.
36099
36100 2009-09-28  Bruno Haible  <bruno@clisp.org>
36101
36102         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36103         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36104         to 'remove_elt'.
36105         (gl_list_remove): Update.
36106         * lib/gl_list.c (gl_list_remove): Update.
36107         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36108         to 'remove_elt'.
36109         (gl_oset_remove): Update.
36110         * lib/gl_list.c (gl_oset_remove): Update.
36111         Reported by Eric Blake.
36112
36113 2009-09-28  Eric Blake  <ebb9@byu.net>
36114
36115         doc: mention yet more cygwin 1.7 status
36116         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36117         cygwin.
36118         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36119         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36120
36121         argp: fix test failure
36122         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36123         that are not upper-case.  Pass correct range to tolower.
36124
36125 2009-09-27  Jim Meyering  <meyering@redhat.com>
36126
36127         test-yesno: work around sparc-dash here-document infelicity
36128         Without this change, the literal \177 byte in a here document
36129         would make dash 0.5.5.1-3 access uninitialized memory.
36130         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36131         Instead, use a marker, "@", and filter through tr to create the desired
36132         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36133
36134 2009-09-27  Bruno Haible  <bruno@clisp.org>
36135
36136         Disable untested support for new flavours of ACLs on AIX.
36137         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36138         progress.
36139         * lib/set-mode-acl.c (qset_acl): Likewise.
36140
36141 2008-12-07  Bruno Haible  <bruno@clisp.org>
36142
36143         Add support for new flavours of ACLs on AIX. (Untested.)
36144         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36145         (file_has_acl): Add support for newer AIX.
36146         * lib/set-mode-acl.c (qset_acl): Likewise.
36147         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36148         Rainer Tammer <tammer@tammer.net>.
36149
36150 2009-09-26  Eric Blake  <ebb9@byu.net>
36151
36152         argp: fix compilation of getopt
36153         * lib/getopt.in.h (includes): Use different guard than glibc.
36154         Reported by Sergey Poznyakoff.
36155
36156         doc: mention more cygwin 1.7 status
36157         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36158         bug.
36159         * doc/posix-functions/execl.texi (execl): Likewise.
36160         * doc/posix-functions/execle.texi (execle): Likewise.
36161         * doc/posix-functions/execlp.texi (execlp): Likewise.
36162         * doc/posix-functions/execv.texi (execv): Likewise.
36163         * doc/posix-functions/execve.texi (execve): Likewise.
36164         * doc/posix-functions/execvp.texi (execvp): Likewise.
36165         * doc/glibc-functions/canonicalize_file_name.texi
36166         (canonicalize_file_name): Cygwin 1.7 now provides this.
36167         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36168         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36169         on AT_SYMLINK_NOFOLLOW.
36170
36171 2009-09-24  Eric Blake  <ebb9@byu.net>
36172
36173         test-linkat: make test more robust
36174         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36175
36176         getopt: fix inclusion guards for cygwin
36177         * modules/getopt-posix (Depends-on): Add include-next.
36178         (Makefile.am): Substitute more items in replacement header.
36179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36180         <getopt.h>.
36181         * lib/getopt.in.h (includes): Use split inclusion guard, and
36182         prefer <getopt.h> over include <unistd.h> when one is present.
36183         (option): Also override name of 'struct option'.
36184
36185         same-inode: revert prior change; it is not yet ready
36186         * NEWS: Undo mention of this change.
36187         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36188         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36189         * lib/cycle-check.c (cycle_check): Likewise.
36190         * lib/same.c (same_name): Likewise.
36191         * lib/at-func2.c (at_func2): Likewise.
36192
36193 2009-09-23  Eric Blake  <ebb9@byu.net>
36194
36195         linkat: new module
36196         * modules/linkat: New file.
36197         * lib/at-func2.c (at_func2): Likewise.
36198         * lib/linkat.c (linkat): Likewise.
36199         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36200         * lib/openat-priv.h (at_func2): Add declaration.
36201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36202         * modules/unistd (Makefile.am): Substitute them.
36203         * lib/unistd.in.h (linkat): Declare it.
36204         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36205         * doc/posix-functions/linkat.texi (linkat): Likewise.
36206         * doc/posix-functions/link.texi (link): Tweak wording.
36207         * tests/test-link.c (main): Move guts...
36208         * tests/test-link.h (test_link): ...into new file.
36209         * modules/linkat-tests: New test.
36210         * tests/test-linkat.c: Likewise.
36211         * modules/link-tests (Files): Ship new file.
36212         (Depends-on): Add stdbool.
36213
36214         dirname: add library-safe mdir_name
36215         * lib/dirname.h (mdir_name): New prototype.
36216         * lib/dirname.c (dir_name): Move guts...
36217         (mdir_name): ...to new function that avoids xalloc_die.
36218
36219         fchdir: another mingw fix
36220         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36221         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36222         on mingw (where it has not yet been ported), and make it optional
36223         elsewhere.
36224         (_gl_register_fd): Use it.
36225
36226         same-inode: make SAME_INODE tri-state, to port to mingw
36227         * NEWS: Mention this change.
36228         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36229         st_ino always being 0.
36230         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36231         * lib/cycle-check.c (cycle_check): Likewise.
36232         * lib/same.c (same_name): Likewise.
36233
36234         lstat: avoid mingw compilation error
36235         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36236         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36237         lstat ourselves.
36238         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36239         was adequate.
36240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36241         the checks for lstat.
36242         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36243
36244         link: fix test failure on Solaris 9
36245         * lib/link.c (rpl_link): Don't assume link will catch bogus
36246         trailing slash on source.
36247
36248         test-symlinkat: enhance test
36249         * tests/test-readlink.c (main): Move guts...
36250         * tests/test-readlink.h (test_readlink): ...into new file.
36251         * tests/test-symlink.c (main): Move guts...
36252         * tests/test-symlink.h (test_symlink): ...into new file.
36253         * tests/test-symlinkat.c (main): Use new files for further
36254         coverage.
36255         (do_symlink, do_readlink): New helper functions.
36256         * modules/symlink-tests (Files): Ship new file.
36257         (Depends-on): Add stdbool.
36258         * modules/readlink-tests (Files): Ship new file.
36259         (Depends-on): Add stdbool.
36260         * modules/symlinkat-tests (Files): Use new files.
36261
36262 2009-09-23  Eric Blake  <ebb9@byu.net>
36263
36264         readlink: document portability issue with symlink length
36265         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36266         systems have bogus st_size on symlinks, and mention the
36267         areadlink-with-size module.
36268         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36269         * doc/posix-functions/readlink.texi (readlink): Mention the
36270         areadlink module, and ERANGE failure.
36271         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36272         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36273
36274         readlink: fix Solaris 9 bug with trailing slash
36275         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36276         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36277         * doc/posix-functions/readlink.texi (readlink): Document this.
36278         * modules/readlink-tests: New test.
36279         * tests/test-readlink.c: Likewise.
36280
36281         readlink: fix cygwin 1.5.x bug with return type
36282         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36283         * lib/unistd.in.h (readlink): Use ssize_t.
36284         * lib/readlink.c (readlink): Likewise.
36285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36286         * modules/unistd (Makefile.am): Substitute it.
36287         * lib/unistd.in.h (readlink): Declare replacement.
36288         * doc/posix-functions/readlink.texi (readlink): Document this.
36289
36290         symlink: use throughout gnulib
36291         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36292         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36293         symlink is not used.
36294         * modules/symlinkat (Depends-on): Add symlink.
36295         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36296         * modules/canonicalize-tests (Depends-on): Likewise.
36297         * modules/lstat-tests (Depends-on): Likewise.
36298         * modules/openat-tests (Depends-on): Likewise.
36299         * modules/remove-tests (Depends-on): Likewise.
36300         * modules/rmdir-tests (Depends-on): Likewise.
36301         * modules/unlink-tests (Depends-on): Likewise.
36302         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36303         * tests/test-canonicalize.c (symlink): Likewise.
36304         * tests/test-fstatat.c (symlink): Likewise.
36305         * tests/test-lstat.c (symlink): Likewise.
36306         * tests/test-remove.c (symlink): Likewise.
36307         * tests/test-rmdir.c (symlink): Likewise.
36308         * tests/test-unlink.c (symlink): Likewise.
36309         * tests/test-unlinkat.c (symlink): Likewise.
36310
36311         symlink: new module, for Solaris 9 bug
36312         * modules/symlink: New file.
36313         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36314         * lib/symlink.c: Likewise.
36315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36316         * modules/unistd (Makefile.am): Substitute them.
36317         * lib/unistd.in.h (symlink): Declare replacement.
36318         * MODULES.html.sh (File system functions): Mention it.
36319         * doc/posix-functions/symlink.texi (symlink): Likewise.
36320         * modules/symlink-tests: New test.
36321         * tests/test-symlink.c: Likewise.
36322
36323 2009-09-23  Bruno Haible  <bruno@clisp.org>
36324
36325         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36326         when needed.
36327         Test case: gnulib-tool --import --with-tests atexit inttypes.
36328         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36329
36330 2009-09-23  Bruno Haible  <bruno@clisp.org>
36331
36332         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36333         subcommand, not in a subshell.
36334
36335 2009-09-22  Eric Blake  <ebb9@byu.net>
36336
36337         unistd: sort replacement declarations
36338         * lib/unistd.in.h: Sort declarations.
36339
36340         open, openat: minor optimization
36341         * lib/open.c (open): If open succeeded, len is non-zero.
36342         * lib/openat.c (rpl_openat): Likewise.
36343
36344         link-follow: ensure correct result
36345         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36346         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36347         distinguish between possible failures.
36348
36349 2009-09-21  Eric Blake  <ebb9@byu.net>
36350
36351         fts: avoid compiler warning
36352         * lib/fts.c (dirent_inode_sort_may_be_useful)
36353         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36354
36355 2009-09-19  Bruno Haible  <bruno@clisp.org>
36356
36357         * lib/progreloc.c (canonicalize_file_name): New declaration.
36358
36359 2009-09-19  Eric Blake  <ebb9@byu.net>
36360
36361         link: fix quoting
36362         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36363
36364         openat: fix openat bugs on Solaris 9
36365         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36366         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36367         * modules/openat (Depends-on): Add open.
36368         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36369         * modules/fcntl-h (Makefile.am): Substitute it.
36370         * lib/fcntl.in.h (openat): Declare replacement.
36371         * doc/posix-functions/openat.texi (openat): Document this.
36372
36373         openat: move fstatat and unlinkat into correct files
36374         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36375         compiled.
36376         * lib/openat.c (fstatat, unlinkat): Move...
36377         * lib/fstatat.c (fstatat): ...into correct files.
36378         * lib/unlinkat.c (unlinkat): Likewise.
36379
36380         openat: fix unlinkat bugs on Solaris 9
36381         * lib/unlinkat.c (unlinkat): New file.
36382         * modules/openat (Depends-on): Add unlink.
36383         (Files): Distribute it.
36384         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36385         trailing slash behavior is broken.
36386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36387         * modules/unistd (Makefile.am): Substitute it.
36388         * lib/unistd.in.h (unlinkat): Declare replacement.
36389         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36390
36391         openat: fix fstatat bugs on Solaris 9
36392         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36393         stat.
36394         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36395
36396         test-unlinkat: enhance test, to expose Solaris 9 bug
36397         * tests/test-unlink.c (main): Factor guts...
36398         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36399         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36400         * tests/test-rmdir.c (main): Adjust caller.
36401         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36402         (unlinker): New helper function.
36403         (rmdirat): Enhance check.
36404         * modules/rmdir-tests (Depends-on): Add stdbool.
36405         * modules/unlink-tests (Depends-on): Likewise.
36406         (Files): Add test-unlink.h.
36407         * modules/openat-tests (Files): Likewise.
36408         (Depends-on): Add unlinkdir.
36409
36410         test-fstatat: new test, to expose Solaris 9 bugs
36411         * tests/test-stat.c (main): Factor guts...
36412         * tests/test-stat.h (test_stat_func): ...into new file.
36413         * tests/test-lstat.c (main): Factor guts...
36414         * tests/test-lstat.h (test_lstat_func): ...into new file.
36415         * tests/test-fstatat.c: New file.
36416         * modules/stat-tests (Files): Add test-stat.h.
36417         * modules/lstat-tests (Files): Add test-lstat.h.
36418         (Depends-on): Add stdbool.
36419         * modules/openat-tests (Depends-on): Add pathmax.
36420         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36421         (Makefile.am): Run new test.
36422
36423         remove: new module, for mingw and Solaris 9 bugs
36424         * modules/remove: New file.
36425         * lib/remove.c: Likewise.
36426         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36428         * modules/stdio (Makefile.am): Use them.
36429         * lib/stdio.in.h (remove): Declare replacement.
36430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36431         * doc/posix-functions/remove.texi (remove): Likewise.
36432         * modules/remove-tests: New test.
36433         * tests/test-remove.c: Likewise.
36434
36435         unlink: new module, for Solaris 9 bug
36436         * modules/unlink: New file.
36437         * lib/unlink.c: Likewise.
36438         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36440         * modules/unistd (Makefile.am): Use them.
36441         * lib/unistd.in.h (stat): Declare replacement.
36442         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36443         * doc/posix-functions/unlink.texi (unlink): Likewise.
36444         * modules/unlink-tests: New test.
36445         * tests/test-unlink.c: Likewise.
36446
36447         lstat: fix Solaris 9 bug
36448         * lib/lstat.c (lstat): Also check for trailing slash on
36449         non-symlink, non-directories.  Use stat module to simplify logic.
36450         * doc/posix-functions/lstat.texi (lstat): Document it.
36451         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36452         (configure.ac): Check for symlink.
36453         * tests/test-lstat.c (main): Add more tests.
36454
36455         stat: add as dependency to other modules
36456         * modules/chown (Depends-on): Add stat.
36457         * modules/euidaccess (Depends-on): Likewise.
36458         * modules/fchdir (Depends-on): Likewise.
36459         * modules/isdir (Depends-on): Likewise.
36460         * modules/link (Depends-on): Likewise.
36461         * modules/lstat (Depends-on): Likewise.
36462         * modules/mkdir-p (Depends-on): Likewise.
36463         * modules/modechange (Depends-on): Likewise.
36464         * modules/open (Depends-on): Likewise.
36465         * modules/readlink (Depends-on): Likewise.
36466         * modules/same (Depends-on): Likewise.
36467
36468         stat: fix Solaris 9 bug
36469         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36470         slash.
36471         * lib/stat.c (rpl_stat): Work around it.
36472         * doc/posix-functions/stat.texi (stat): Update documentation.
36473
36474         stat: new module, for mingw bug
36475         * modules/stat: New file.
36476         * lib/stat.c: Likewise.
36477         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36479         * modules/sys_stat (Makefile.am): Use them.
36480         * lib/sys_stat.in.h (stat): Declare replacement.
36481         * lib/openat.c (fstatat): Deal with lstat and stat being function
36482         macros.
36483         * modules/openat (Depends-on): Add inline.
36484         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36485         * doc/posix-functions/stat.texi (stat): Likewise.
36486         * modules/stat-tests: New test.
36487         * tests/test-stat.c: Likewise.
36488
36489 2009-09-19  Jim Meyering  <meyering@redhat.com>
36490
36491         syntax-check: detect unnecessary inclusion of canonicalize.h
36492         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36493
36494 2009-09-19  Eric Blake  <ebb9@byu.net>
36495
36496         canonicalize-lgpl: adjust clients to use correct header
36497         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36498         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36499         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36500         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36501         * lib/progreloc.c (includes): Likewise.
36502
36503 2009-09-19  Jim Meyering  <meyering@redhat.com>
36504
36505         test-posixtm.c: correct a comment
36506         * tests/test-posixtm.c: Correct first-line comment.
36507         Spotted by Eric Blake.
36508
36509 2009-09-16  Jim Meyering  <meyering@redhat.com>
36510
36511         posixtm-tests: make T const-correct; add a test case
36512         * tests/test-posixtm.c (T): Declare const.
36513         Add a test for -(2^31+1).
36514         Remove useless can-succeed-only-in-2002 test.
36515
36516         posixtm-tests: adjust the sole failing test
36517         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36518         expected output matches what mktime now produces.  Cross-checked via
36519         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36520
36521         posixtm: move #ifdef'd tests into a new module
36522         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36523         * tests/test-posixtm.c: ... this new file.
36524         * modules/posixtm-tests: New module.
36525
36526 2009-09-19  Eric Blake  <ebb9@byu.net>
36527
36528         openat: simplify use of at-func.c
36529         * lib/at-func.c (includes): Include prerequisites here, to
36530         simplify requirements on client files.
36531         * lib/openat-priv.h: Add double-inclusion guard.
36532         * lib/faccessat.c (includes): Simplify.
36533         * lib/fchmodat.c (includes): Likewise.
36534         * lib/fchownat.c (includes): Likewise.
36535         * lib/mkdirat.c (includes): Likewise.
36536         * lib/mkfifoat.c (includes): Likewise.
36537         * lib/symlinkat.c (includes): Likewise.
36538
36539         openat: allow return of fd 0
36540         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36541         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36542         unistd-safer.
36543         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36544         <fcntl.h>; this module does not leak fds.
36545         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36546         must be allowed to return 0, leaving openat_safer to add the
36547         safety.
36548         (openat_permissive): Avoid writing to just-opened fd 2 if
36549         restoring the current directory fails.
36550         * lib/openat-die.c (openat_restore_fail): Add comment.
36551         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36552         (save_cwd): Guarantee safe fd, but without use of open_safer.
36553         * tests/test-openat.c: New test.
36554         * modules/openat-tests (Files, Makefile.am): Distribute and build
36555         new file.
36556
36557         relocatable-prog-wrapper: fix build
36558         * modules/relocatable-prog-wrapper (Files): Update name of
36559         canonicalize m4 file, broken on 2009-09-17.
36560         Reported by emad hajjar <aleppos@hotmail.com>.
36561
36562 2009-09-19  Bruno Haible  <bruno@clisp.org>
36563
36564         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36565         * lib/safe-alloc.c: Likewise.
36566         Reported by Ian Beckwith <ianb@erislabs.net>.
36567
36568 2009-09-18  Bruno Haible  <bruno@clisp.org>
36569
36570         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36571         Reported by <erobles@sensacd.com.mx>.
36572
36573 2009-09-17  Eric Blake  <ebb9@byu.net>
36574
36575         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36576         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36577         slashes when checking if last component is missing.
36578         * tests/test-canonicalize.c (main): Test this.
36579
36580         canonicalize, canonicalize-lgpl: honor // if distinct from /
36581         * modules/canonicalize (Files): Add double-slash-root.m4.
36582         * modules/canonicalize-lgpl (Files): Likewise.
36583         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36584         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36585         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36586         fallback definition.
36587         (canonicalize_filename_mode): Use it to protect //.
36588         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36589         (__realpath): Likewise.
36590         * tests/test-canonicalize.c (main): Test this.
36591         * tests/test-canonicalize-lgpl.c (main): Likewise.
36592         * modules/canonicalize-tests (Depends-on): Add same-inode.
36593         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36594
36595         canonicalize-lgpl: fix glibc bug with trailing slash
36596         * m4/canonicalize-lgpl.m4: Move contents...
36597         * m4/canonicalize.m4: ...here.
36598         (gl_CANONICALIZE_LGPL): Factor realpath check...
36599         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36600         glibc 2.3.5 bug, fixed 2005-04-27.
36601         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36602         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36603         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36604         * modules/canonicalize-lgpl (Files): Manage file rename.
36605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36606         * modules/stdlib (Makefile.am): Substitute witness.
36607         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36608         is needed.
36609         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36610         replacement is required.
36611         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36612         * doc/glibc-functions/canonicalize_file_name.texi
36613         (canonicalize_file_name): Document this.
36614         * doc/posix-functions/realpath.texi (realpath): Likewise.
36615
36616         canonicalize-lgpl: reject non-directory with trailing slash
36617         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36618         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36619         catches failures in glibc 2.3.5.
36620         * tests/test-canonicalize.c (main): Likewise.
36621
36622         canonicalize-lgpl: use native realpath if it works
36623         * lib/canonicalize-lgpl.c (realpath): Guard with
36624         FUNC_REALPATH_WORKS.
36625         * lib/stdlib.in.h (realpath): Make declaration optional based on
36626         HAVE_REALPATH.
36627         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36628         native realpath works.
36629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36630         * modules/stdlib (Makefile.am): Substitute witness.
36631
36632         canonicalize, canonicalize-lgpl: use <stdlib.h>
36633         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36634         (Include): Mention <stdlib.h>.
36635         (configure.ac): Mention functions we provide.
36636         * modules/canonicalize (configure.ac): Likewise.
36637         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36638         realpath if canonicalize_file_name is missing.
36639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36640         * modules/stdlib (Makefile.am): Substitute witnesses.
36641         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36642         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36643         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36644         * NEWS: Document this.
36645         * doc/glibc-functions/canonicalize_file_name.texi
36646         (canonicalize_file_name): Likewise.
36647         * doc/posix-functions/realpath.texi (realpath): Likewise.
36648         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36649
36650         test-canonicalize: consolidate into single C program
36651         * tests/test-canonicalize.sh: Delete; move setup into...
36652         * tests/test-canonicalize.c (main): ...the program, making it
36653         easier to run in debugger.  Add some tests.
36654         * modules/canonicalize-tests (Files): Remove unused file.
36655         (Depends-on): Add progname.
36656         (configure.ac, Makefile.am): Simplify.
36657
36658         test-canonicalize-lgpl: consolidate into single C program
36659         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36660         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36661         easier to run in debugger.  Add some tests.
36662         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36663         (configure.ac, Makefile.am): Simplify.
36664
36665         canonicalize: avoid resolvepath
36666         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36667         unnecessary checks.
36668         * lib/canonicalize.c (includes): Simplify.
36669         (canonicalize_file_name): Drop resolvepath implementation.
36670         * modules/canonicalize (Depends-on): Drop filenamecat.
36671
36672         canonicalize: don't lose errno
36673         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36674         over calls to free.
36675
36676         canonicalize: simplify errno handling
36677         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36678         assignment.
36679
36680         canonicalize, canonicalize-lgpl: update module dependencies
36681         * modules/canonicalize (Depends-on): Add extensions, lstat,
36682         pathmax, stdlib.
36683         (Files): Drop pathmax.h.
36684         (configure.ac): Adjust macro name.
36685         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36686         lstat, stdlib, sys_stat.
36687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36688         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36689         extensions.
36690         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36691         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36692         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36693         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36694         declaration, if available.
36695         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36696         we can rely on the readlink module.
36697         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36698         (includes): Use <unistd.h> unconditionally.
36699
36700 2009-09-17  Eric Blake  <ebb9@byu.net>
36701
36702         maint: make Include sections of modules consistent
36703         * modules/alloca: Use only header name; no need to list #include.
36704         * modules/alloca-opt: Likewise.
36705         * modules/arpa_inet: Likewise.
36706         * modules/canon-host: Likewise.
36707         * modules/configmake: Likewise.
36708         * modules/dirent: Likewise.
36709         * modules/eealloc: Likewise.
36710         * modules/environ: Likewise.
36711         * modules/fchdir: Likewise.
36712         * modules/fcntl: Likewise.
36713         * modules/fcntl-h: Likewise.
36714         * modules/gethrxtime: Likewise.
36715         * modules/gettime: Likewise.
36716         * modules/ignore-value: Likewise.
36717         * modules/inet_ntop: Likewise.
36718         * modules/inet_pton: Likewise.
36719         * modules/inttypes: Likewise.
36720         * modules/isnand-nolibm: Likewise.
36721         * modules/isnanf-nolibm: Likewise.
36722         * modules/mbchar: Likewise.
36723         * modules/mbfile: Likewise.
36724         * modules/mbiter: Likewise.
36725         * modules/mbuiter: Likewise.
36726         * modules/netdb: Likewise.
36727         * modules/netinet_in: Likewise.
36728         * modules/nproc: Likewise.
36729         * modules/pagealign_alloc: Likewise.
36730         * modules/poll: Likewise.
36731         * modules/printf-frexp: Likewise.
36732         * modules/pthread: Likewise.
36733         * modules/putenv: Likewise.
36734         * modules/random_r: Likewise.
36735         * modules/relocatable-prog: Likewise.
36736         * modules/search: Likewise.
36737         * modules/select: Likewise.
36738         * modules/selinux-h: Likewise.
36739         * modules/settime: Likewise.
36740         * modules/signal: Likewise.
36741         * modules/size_max: Likewise.
36742         * modules/socklen: Likewise.
36743         * modules/ssize_t: Likewise.
36744         * modules/stdarg: Likewise.
36745         * modules/stdbool: Likewise.
36746         * modules/stddef: Likewise.
36747         * modules/stdint: Likewise.
36748         * modules/stdio: Likewise.
36749         * modules/stdlib: Likewise.
36750         * modules/string: Likewise.
36751         * modules/strings: Likewise.
36752         * modules/sys_file: Likewise.
36753         * modules/sys_ioctl: Likewise.
36754         * modules/sys_select: Likewise.
36755         * modules/sys_socket: Likewise.
36756         * modules/sys_stat: Likewise.
36757         * modules/sys_time: Likewise.
36758         * modules/sys_times: Likewise.
36759         * modules/sys_utsname: Likewise.
36760         * modules/sys_wait: Likewise.
36761         * modules/sysexits: Likewise.
36762         * modules/time: Likewise.
36763         * modules/times: Likewise.
36764         * modules/tmpfile: Likewise.
36765         * modules/trim: Likewise.
36766         * modules/unistd: Likewise.
36767         * modules/wchar: Likewise.
36768         * modules/wctype: Likewise.
36769
36770 2009-09-17  Bruno Haible  <bruno@clisp.org>
36771
36772         Make getdate.y compile on QNX and NetBSD 5 / i386.
36773         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36774         TIME_T_FITS_IN_LONG_INT.
36775         * lib/getdate.y (long_time_t): New type.
36776         (relative_time): Change type of 'seconds' field to long_time_t.
36777         (get_date): Update types of local variables. Check against overflow
36778         during conversion from long_time_t to time_t.
36779         Reported by Matt Kraai <kraai@ftbfs.org>
36780         and Hasso Tepper <hasso@netbsd.org>.
36781
36782 2009-09-17  Bruno Haible  <bruno@clisp.org>
36783
36784         * modules/COPYING: Update copyright years.
36785         * modules/README: Likeiwse.
36786         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36787         Reported by Ian Beckwith <ianb@erislabs.net>.
36788
36789 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36790
36791         * users.txt: Update references for gnuit package.
36792
36793 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36794
36795         * m4/getdelim.m4: Fix typo in copyright line.
36796
36797 2009-09-17  Bruno Haible  <bruno@clisp.org>
36798
36799         * lib/atoll.c: Use the standard header with GPL copyright.
36800         * lib/argz.in.h: Likewise.
36801         * lib/glob.c: Likewise.
36802         * lib/glob-libc.h: Likewise.
36803         * lib/random_r.c: Likewise.
36804         * lib/siglist.h: Likewise.
36805         * lib/strsignal.c: Likewise.
36806         Reported by Ian Beckwith <ianb@erislabs.net>.
36807
36808 2009-09-17  Eric Blake  <ebb9@byu.net>
36809
36810         rmdir: ensure correct dependency order
36811         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36812
36813 2009-09-17  Bruno Haible  <bruno@clisp.org>
36814
36815         Disable assertion that fails on NetBSD 5 / i386.
36816         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36817         Reported by Sam Steingold <sds@gnu.org>
36818         and Hasso Tepper <hasso@netbsd.org>.
36819
36820 2009-09-16  Eric Blake  <ebb9@byu.net>
36821
36822         unlinkdir: port to mingw
36823         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36824         on which no one can unlink a directory.
36825
36826         stdlib: sort witness names
36827         * modules/stdlib (Makefile.am): Sort replacements.
36828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36829         * lib/stdlib.in.h: Likewise.
36830
36831         parse-duration-tests: avoid link failure
36832         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36833         LIBINTL.
36834         Reported by Tom G. Christensen.
36835
36836         openat-tests: ensure unlinkat behaves like rmdir
36837         * tests/test-rmdir.c (main): Factor guts...
36838         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36839         * modules/rmdir-tests (Files): Ship new file.
36840         * modules/openat-tests: New test.
36841         * tests/test-unlinkat.c: Likewise.
36842
36843         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36844         * modules/rmdir-errno (Status, Notice): Now obsolete.
36845
36846         rmdir: work around cygwin 1.5.x and mingw bugs
36847         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36848         * lib/rmdir.c (rmdir): Work around it.
36849         * modules/rmdir (Status, Notice): No longer obsolete.
36850         (Files): Add dos.m4.
36851         (Depends-on): Add unistd.
36852         (configure.ac): Set witnesses.
36853         (License): Relax to LGPLv2+.
36854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36855         * modules/unistd (Makefile.am): Substitute witnesses.
36856         * lib/unistd.in.h (rmdir): Declare replacement.
36857         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36858         * modules/rmdir-tests: New tests.
36859         * tests/test-rmdir.c: Likewise.
36860
36861 2009-09-15  Eric Blake  <ebb9@byu.net>
36862
36863         fchdir: improve use of replacement functions
36864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36866         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36867         REPLACE_CLOSEDIR.
36868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36869         * modules/sys_stat (Makefile.am): Substitute correct witness.
36870         * modules/dirent (Makefile.am): Likewise.
36871         * modules/unistd (Makefile.am): Likewise.
36872         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36873         * lib/unistd.in.h (dup): Likewise.
36874         * lib/sys_stat.in.h (fstat): Likewise.
36875
36876         maint: ignore gnulib-tool temp files
36877         * .gitignore: Ignore files created during gnulib-tool --test.
36878
36879 2009-09-13  Jim Meyering  <meyering@redhat.com>
36880
36881         posixtm: don't reject a time that specify "60" as the number of seconds
36882         * lib/posixtm.c (posixtime): The code to reject invalid dates
36883         would also reject a time specified with the .60 suffix.
36884         But POSIX allows that, in order to accommodate leap seconds.
36885         So don't reject it.
36886         (main): Adjust tests accordingly.
36887         * modules/posixtm (Depends-on): Add stpcpy.
36888
36889 2009-09-11  Jim Meyering  <meyering@redhat.com>
36890
36891         announce-gen: include [$release_type] in emitted Subject:
36892         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36893         e.g., [stable] in the emitted Subject: line.
36894
36895 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36896
36897         Remove obsolete macros from several modules.
36898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36899         obsolete Autoconf macros with their modern counterparts.
36900         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36901         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36903         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36904         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36905         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36908         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36909         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36910         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36911         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36912         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36913         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36914         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36915         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36916         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36917         * m4/time_r.m4 (gl_TIME_R): Likewise.
36918         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36919         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36920         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36921
36922         Fix copyright header in build-aux scripts.
36923         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36924         recommendation.
36925         * build-aux/ncftpput-ftp: Likewise.
36926         * build-aux/update-copyright: Likewise.
36927
36928 2009-09-09  Eric Blake  <ebb9@byu.net>
36929
36930         test-link: allow Linux choice of errno
36931         * tests/test-link.c (main): Relax test for alternate error.
36932
36933         strndup: fix improper m4 caching
36934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36935         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36936         (gl_PREREQ_STRNDUP): Delete.
36937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36938         * modules/string (Makefile.am): Substitute it.
36939         * lib/string.in.h (strndup): Modernize prototype.
36940
36941         getcwd: port to mingw
36942         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36943         different from the POSIX assumptions made throughout the getcwd
36944         module; fortunately, the mingw getcwd does not need replacement.
36945         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36946         * modules/getcwd-tests: New test.
36947         * tests/test-getcwd.c: Likewise.
36948
36949         link: fix platform bugs
36950         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36951         * lib/link.c (link): Work around them.  Fix related mingw bug.
36952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36953         * modules/unistd (Makefile.am): Substitute it.
36954         * lib/unistd.in.h (link): Declare replacement.
36955         * doc/posix-functions/link.texi (link): Document this.
36956         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36957
36958         test-link: consolidate into single C program, test more cases
36959         * tests/test-link.sh: Delete.
36960         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36961         at least Cygwin and Solaris.
36962         * modules/link-tests (Files): Remove unused file.
36963         (Depends-on): Add errno, sys_stat.
36964         (Makefile.am): Simplify.
36965
36966 2009-09-08  Bruno Haible  <bruno@clisp.org>
36967
36968         Work around towlower, towupper bug on mingw.
36969         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36970         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36971         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36972         * doc/posix-functions/towupper.texi: Likewise.
36973         Reported by Eric Blake.
36974
36975 2009-09-08  Jim Meyering  <meyering@redhat.com>
36976
36977         build: don't try to run autoheader if we don't use it
36978         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36979         is not used in configure.ac.
36980
36981 2009-09-08  Eric Blake  <ebb9@byu.net>
36982
36983         euidaccess: fix compilation error
36984         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36985
36986         rawmemchr: relax license
36987         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36988         okay.
36989         Reported by Jim Meyering.
36990
36991         mkfifoat: new module
36992         * modules/mkfifoat: New file.
36993         * lib/mkfifoat.c: Likewise.
36994         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36996         * modules/sys_stat (Makefile.am): Use them.
36997         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36998         * MODULES.html.sh (File system functions): Mention module.
36999         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37000         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37001         * modules/mkfifoat-tests: New test.
37002         * tests/test-mkfifoat.c: Likewise.
37003
37004         strchrnul: relax license
37005         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37006         okay.
37007         Reported by Jim Meyering.
37008
37009 2009-09-08  Eric Blake  <ebb9@byu.net>
37010
37011         fstatat: fix compilation on Solaris
37012         * lib/fstatat.c (includes): Add fcntl.h.
37013         Reported by Pádraig Brady.
37014
37015 2009-09-07  Eric Blake  <ebb9@byu.net>
37016
37017         rename: modernize replacement
37018         * modules/rename (Depends-on): Add stdio.
37019         (configure.ac): Declare witness.
37020         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37021         stdio take care of replacement.
37022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37023         * modules/stdio (Makefile.am): Substitute them.
37024         * lib/stdio.in.h (rename): Declare replacement.
37025         * lib/rename.c (includes): Allow cross-compilation to non-windows
37026         machines.
37027         * doc/posix-functions/rename.texi (rename): Improve
37028         documentation.
37029
37030         stdio: sort witness names
37031         * modules/stdio (Makefile.am): Sort replacements.
37032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37033         * lib/stdio.in.h: Likewise.
37034
37035         getcwd: minor cleanups
37036         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37037         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37038
37039         openat: provide more convenience names
37040         * modules/faccessat (configure.ac): Add C witness.
37041         * lib/unistd.in.h (readlinkat): Fix typo.
37042         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37043         convenience wrappers.
37044         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37045         wrappers in syntax checks.
37046
37047 2009-09-06  Eric Blake  <ebb9@byu.net>
37048
37049         doc: fix comments in recent patches
37050         * lib/faccessat.c: Mention correct function.
37051         * lib/fchmodat.c: Likewise.
37052         * lib/fchownat.c: Likewise.
37053         * lib/symlinkat.c: Likewise.
37054         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37055         constants.
37056
37057         faccessat, symlinkat: continue cleanup of previous patch
37058         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37059         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37060         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37062         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37063         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37064         set.
37065
37066 2009-09-06  Bruno Haible  <bruno@clisp.org>
37067
37068         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37069         (fstatat): Declare if GNULIB_FSTATAT is set.
37070         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37071         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37072         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37073         * modules/fcntl-h (Files): Remove m4/openat.m4.
37074         * modules/sys_stat (Files): Remove m4/openat.m4.
37075         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37076         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37077         * modules/unistd (Files): Remove m4/openat.m4.
37078         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37079         GNULIB_OPENAT.
37080         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37081         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37083         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37084         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37085         gl_OPENAT_DEFAULTS.
37086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37087         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37088         Don't require gl_OPENAT_DEFAULTS.
37089         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37090         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37091         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37092         (gl_OPENAT_DEFAULTS): Remove macro.
37093
37094 2009-09-06  Bruno Haible  <bruno@clisp.org>
37095
37096         * modules/openat (configure.ac): Remove unneeded witness.
37097
37098 2009-09-06  Bruno Haible  <bruno@clisp.org>
37099
37100         Set errno to ENOSYS when a function is entirely unsupported.
37101         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37102         EOPNOTSUPP.
37103         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37104         * modules/chown (Depends-on): Remove errno.
37105
37106 2009-09-06  Bruno Haible  <bruno@clisp.org>
37107
37108         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37109
37110 2009-09-06  Bruno Haible  <bruno@clisp.org>
37111
37112         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37113
37114 2009-09-06  Ben Pfaff  <blp@gnu.org>
37115             Bruno Haible  <bruno@clisp.org>
37116
37117         Work around a glibc bug in strtok_r.
37118         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37119         Undefine if UNDEFINE_STRTOK_R is set.
37120         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37122         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37124         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37125         UNDEFINE_STRTOK_R.
37126         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37127
37128 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37129
37130         exclude: minor fix
37131         * lib/exclude.c: Include wctype.h
37132
37133 2009-09-06  Akim Demaille  <demaille@gostai.com>
37134
37135         bootstrap: improve error message
37136         * build-aux/bootstrap (find_tool): Upon failure, report the list
37137         of candidates.
37138         Honor the initial value of the envvar.
37139
37140 2009-09-05  Eric Blake  <ebb9@byu.net>
37141
37142         symlinkat: new module
37143         * modules/symlinkat: New file.
37144         * lib/symlinkat.c: Likewise.
37145         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37147         * modules/unistd (Makefile.am): Use them.
37148         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37149         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37150         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37151         * MODULES.html.sh (File system functions): Mention module.
37152         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37153         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37154         * modules/symlinkat-tests: New test.
37155         * tests/test-symlinkat.c: Likewise.
37156
37157         test-openat-safer: add more checks
37158         * tests/test-openat-safer.c (main): Check more code paths.
37159
37160 2009-09-05  Jim Meyering  <meyering@redhat.com>
37161
37162         syntax-check: detect unnecessary inclusion of openat.h
37163         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37164
37165 2009-09-05  Bruno Haible  <bruno@clisp.org>
37166
37167         Support towlower, towupper.
37168         * doc/posix-functions/towlower.texi: Mention module wctype.
37169         * doc/posix-functions/towupper.texi: Likewise.
37170         * lib/wctype.in.h (towlower, towupper): New functions.
37171         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37172         (ASSERT): New macro.
37173         (e): New variable.
37174         (main): Test also towlower, towupper. Test WEOF argument.
37175         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37176
37177 2009-09-05  Bruno Haible  <bruno@clisp.org>
37178
37179         Fix conversion behaviour when the input is invalid.
37180         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37181         mark occurring in first pass of indirect conversion.
37182         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37183         input.
37184         Found by clang's static analyzer.
37185
37186 2009-09-05  Bruno Haible  <bruno@clisp.org>
37187
37188         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37189         where direct conversion is possible.
37190
37191 2009-09-04  Eric Blake  <ebb9@byu.net>
37192
37193         openat: fail with ENOENT on empty name
37194         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37195         buffer.
37196
37197         link-follow: fix logic bug in prior patch
37198         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37199         reversed sense of yes and no in prior patch.  Avoid confusing
37200         compilation failure with desired semantics.
37201
37202         link-follow: accomodate mingw and cross-compilation
37203         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37204         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37205         cross-compilation results to -1, to make linkat easier to
37206         implement when cross-compiling.  Trivially support mingw.
37207         * modules/link-follow (configure.ac): Call new name.
37208         * NEWS: Mention this.
37209
37210 2009-09-03  Eric Blake  <ebb9@byu.net>
37211
37212         faccessat: compile replacement
37213         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37214         needed.
37215
37216         fts: fix compilation error
37217         * lib/fts.c (includes): Re-add "openat.h", for
37218         openat_needs_fchdir.
37219
37220         faccessat: new module
37221         * modules/faccessat: New file.
37222         * lib/faccessat.c: Likewise.
37223         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37225         * modules/unistd (Makefile.am): Use it.
37226         * lib/unistd.in.h (faccessat): Declare it.
37227         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37228         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37229         * MODULES.html.sh (File system functions): Mention it.
37230         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37231         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37232
37233         euidaccess: prefer POSIX over non-standard implementation
37234         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37235         * lib/euidaccess.c (euidaccess): Use it if available.
37236
37237         openat: make template easier to use
37238         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37239         AT_FUNC_F2 to be undefined.
37240         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37241         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37242         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37243         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37244         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37245         Likewise.
37246         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37247         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37248         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37249         Likewise.
37250
37251         openat: declare in POSIX headers
37252         * NEWS: Mention this.
37253         * modules/openat (configure.ac): Declare witnesses.
37254         (Depends-on): Add fcntl-h, sys_stat, unistd.
37255         (Include): Mention correct headers.
37256         * modules/fcntl-h (Depends-on): Add link-warning.
37257         (Files): Add openat.m4.
37258         (Makefile.am): Substitute witnesses.
37259         * modules/sys_stat (Files, Makefile.am): Likewise.
37260         * modules/unistd (Files, Makefile.am): Likewise.
37261         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37262         (gl_OPENAT_DEFAULTS): New macro.
37263         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37266         (SYS_STAT_H): Remove unused variable.
37267         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37268         * lib/fcntl--.h (includes): Remove unneeded header.
37269         * lib/openat-safer.c (includes): Likewise.
37270         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37271         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37272         appropriate headers.
37273         (__OPENAT_PREFIX): Delete.
37274         * lib/fcntl.in.h (openat): Provide declaration.
37275         (AT_FDCWD): Fix Solaris bug.
37276         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37277         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37278         * lib/fchmodat.c (includes):  Adjust to find declaration.
37279         * lib/fchownat.c (includes): Likewise.
37280         * lib/mkdirat.c (includes): Likewise.
37281         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37282         still visible.
37283
37284 2009-09-02  Eric Blake  <ebb9@byu.net>
37285
37286         errno: use consistently
37287         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37288         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37289         * lib/canonicalize.c (ELOOP): Likewise.
37290         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37291         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37292         * lib/lchown.c (EOPNOTSUPP): Likewise.
37293         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37294         * lib/savewd.c (ESTALE): Likewise.
37295         * lib/settime.c (ENOSYS): Likewise.
37296         * lib/utimens.c (ENOSYS): Likewise.
37297         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37298         * lib/chdir-safer.c (ELOOP): Likewise.
37299         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37300         * modules/c-stack (Depends-on): Add errno.
37301         * modules/canonicalize (Depends-on): Likewise.
37302         * modules/chdir-safer (Depends-on): Likewise.
37303         * modules/fdopendir (Depends-on): Likewise.
37304         * modules/inet_ntop (Depends-on): Likewise.
37305         * modules/inet_pton (Depends-on): Likewise.
37306         * modules/lchown (Depends-on): Likewise.
37307         * modules/openat (Depends-on): Likewise.
37308         * modules/savewd (Depends-on): Likewise.
37309         * modules/settime (Depends-on): Likewise.
37310         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37311
37312         fts: avoid leaking fds
37313         * modules/fts (Depends-on): Add cloexec.
37314         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37315         flag.
37316
37317         fts: make directory fds more robust
37318         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37319         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37320
37321         backupfile, chdir-long, fts, savedir: make safer
37322         * lib/backupfile.c (includes): Use "dirent--.h", since
37323         numbered_backup can write to stderr during readdir.
37324         * lib/savedir.c (includes): Likewise.
37325         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37326         emulation can write to stderr on failure.
37327         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37328         * lib/getcwd.c: Document why opendir_safer is unused.
37329         * lib/glob.c: Likewise.
37330         * lib/scandir.c: Likewise.
37331         * lib/openat-proc.c: Likewise, for open_safer.
37332         * modules/backupfile (Depends-on): Add dirent-safer.
37333         * modules/savedir (Depends-on): Likewise.
37334         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37335         * modules/chdir-long (Depends-on): Add openat-safer.
37336
37337         openat-safer: new module
37338         * modules/openat-safer: New file.
37339         * lib/openat-safer.c: Likewise.
37340         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37341         * lib/fcntl-safer.h (openat_safer): Declare.
37342         * lib/fcntl--.h (openat): Override.
37343         * MODULES.html.sh (File descriptor based I/O): Mention it.
37344         * lib/openat.h: Add double-inclusion guards.
37345         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37346         "fcntl--.h", so we can implement openat.
37347         * modules/openat-safer-tests: New test.
37348         * tests/test-openat-safer.c: New file.
37349
37350         dirent-safer: new module
37351         * modules/dirent-safer: New file.
37352         * lib/dirent--.h: Likewise.
37353         * lib/dirent-safer.h: Likewise.
37354         * lib/opendir-safer.c: Likewise.
37355         * m4/dirent-safer.m4: Likewise.
37356         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37357         * modules/dirent-safer-tests: New test.
37358         * tests/test-dirent-safer.c: New file.
37359         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37360
37361         fdopendir: optimize on mingw
37362         * lib/unistd.in.h (_gl_directory_name): New prototype.
37363         * lib/fchdir.c (_gl_directory_name): Implement it.
37364         (fchdir): Use it to simplify implementation.
37365         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37366         fchdir, when available, to avoid calling [f]chdir().
37367
37368         fdopendir: split into its own module
37369         * lib/openat.c (fdopendir): Move...
37370         * lib/fdopendir.c: ...into new file.
37371         * modules/fdopendir: New module.
37372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37373         * modules/openat (Depends-on): Add fdopendir.
37374         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37375         fdopendir here.
37376         * modules/savedir (Depends-on): Only need fdopendir, not full
37377         openat.
37378         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37379         * lib/openat.h (fdopendir): Drop prototype.
37380         * lib/dirent.in.h (fdopendir): Provide prototype.
37381         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37382         * modules/dirent (Makefile.am): Substitute them.
37383         * MODULES.html.sh (File system functions): Mention it.
37384         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37385         * modules/fdopendir-tests: New file.
37386         * tests/test-fdopendir.c: Likewise.
37387
37388         fchdir: use more consistent macro convention
37389         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37390         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37391         REPLACE_FCHDIR, rather than relying on config.h macros.
37392         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37393         inside a single make-time REPLACE_FCHDIR block, rather than using
37394         the config.h FCHDIR_REPLACEMENT.
37395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37396         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37397         Manage fstat replacement.
37398         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37399         REPLACE_FCHDIR.
37400         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37401         (Makefile.am): Substitute REPLACE_FCHDIR.
37402         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37403         FCHDIR_REPLACEMENT.
37404         * lib/dup-safer.c (dup_safer): Likewise.
37405         * lib/dup2.c (rpl_dup2): Likewise.
37406         * lib/dup3.c (rpl_dup3): Likewise.
37407         * lib/open.c (rpl_open): Likewise.
37408
37409         fchdir: simplify error handling, and support dup3
37410         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37411         stdbool, malloc-posix, realloc-posix.
37412         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37413         (ensure_dirs_slot): Return false on allocation failure.
37414         (rpl_dup2): Delete.
37415         (_gl_register_dup): New function.
37416         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37417         (_gl_register_fd): Close fd on allocation failure.
37418         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37419         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37420         prototype.
37421         (rpl_dup2_fchdir): Delete prototype.
37422         * lib/open.c (open): Update caller.
37423         * lib/dup2.c (dup2): Track fchdir metadata.
37424         * lib/dup3.c (dup3): Likewise.
37425         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37427
37428 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37429
37430         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37431         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37432         don't pass arguments to AC_OUTPUT.
37433
37434 2009-09-02  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/mkdtemp (License): Relicense under LGPLv2+.
37437         Reported by Paolo Bonzini.
37438
37439 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37440
37441         Replace uses of obsolete autoconf macros in Jim's modules.
37442         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37443         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37444         can evoke a warning from autoconf when run with -Wobsolete
37445         enabled.  They were declared obsolete for good reasons (see
37446         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37447         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37448         should not continue using the deprecated macros.
37449         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37450         obsolete Autoconf macros with modern counterparts.
37451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37452         * m4/dos.m4 (gl_AC_DOS): Likewise.
37453         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37455         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37456         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37459         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37460         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37461         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37462         Likewise.
37463         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37464         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37465         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37466         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37467         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37468         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37469
37470 2009-09-01  Eric Blake  <ebb9@byu.net>
37471
37472         fchdir: fix off-by-one bug in previous patch
37473         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37474         (_gl_unregister_fd): Delete useless if.
37475
37476 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37477
37478         maint.mk: sort the list of syntax-check rules
37479         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37480         easier to get a sense of progress when the rules are run sequentially
37481         and take a long time.
37482
37483 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37484
37485         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37486         * modules/netinet_in: Likewise.
37487         * modules/sys_file: Likewise.
37488         * modules/sys_ioctl: Likewise.
37489         * modules/sys_select: Likewise.
37490         * modules/sys_socket: Likewise.
37491         * modules/sys_stat: Likewise.
37492         * modules/sys_time: Likewise.
37493         * modules/sys_times: Likewise.
37494         * modules/sys_utsname: Likewise.
37495         * modules/sys_wait: Likewise.
37496
37497 2009-09-01  Jim Meyering  <meyering@redhat.com>
37498
37499         fts: help ensure that return values are not ignored
37500         * lib/fts_.h (__GNUC_PREREQ): Define.
37501         (__attribute_warn_unused_result__): Define.
37502         (fts_children, fts_close, fts_open, fts_read): Declare with
37503         __attribute_warn_unused_result__.
37504
37505         fts: fts_close now fails also when closing a dir file descriptor fails
37506         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37507         and propagate to caller, along with errno.
37508
37509         announce-gen: correct formatting in --help output
37510         * build-aux/announce-gen (usage): Move the one-line description in
37511         --help output "up", to where it belongs, just after Usage:.
37512
37513 2009-08-31  Eric Blake  <ebb9@byu.net>
37514
37515         fchdir: port to mingw
37516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37517         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37518         opened, then use a substitute.
37519         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37520         replacement.
37521         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37522         (_gl_register_fd): No need to check stat if open already filters
37523         all directories.
37524         (fchdir): Fix error condition to match POSIX.
37525         * modules/fchdir (Depends-on): Add sys_stat.
37526         * doc/posix-functions/open.texi (open): Document the limitation.
37527         * modules/fchdir-tests: New file.
37528         * tests/test-fchdir.c: Likewise.
37529
37530         canonicalize: allow cross-testing from cygwin to mingw
37531         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37532         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37533         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37534         Likewise.
37535         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37536         target does not support symlinks.
37537         * tests/test-canonicalize-lgpl.sh: Likewise.
37538
37539         chown: avoid compilation warning on mingw
37540         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37541         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37542         mingw.
37543         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37544         * modules/chown (Depends-on): Add errno.
37545
37546 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37547
37548         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37549         command.
37550
37551 2009-08-31  Jim Meyering  <meyering@redhat.com>
37552
37553         canonicalize: remove useless initialization
37554         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37555         initialization of local, "end".
37556
37557 2009-08-30  Bruno Haible  <bruno@clisp.org>
37558
37559         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37560         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37561         ENOSYS.
37562
37563 2009-08-30  Bruno Haible  <bruno@clisp.org>
37564
37565         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37566         /usr/xpg4/bin/tr when it exists.
37567         * tests/test-pipe-filter-gi1.sh: Likewise.
37568
37569 2009-08-30  Bruno Haible  <bruno@clisp.org>
37570
37571         Work around deficient /usr/bin/id program on Solaris.
37572         * tests/test-file-has-acl.sh (ID): New variable.
37573         * tests/test-set-mode-acl.sh (ID): Likewise.
37574         * tests/test-copy-acl.sh (ID): Likewise.
37575         * tests/test-copy-file.sh (ID): Likewise.
37576
37577 2009-08-30  Bruno Haible  <bruno@clisp.org>
37578
37579         New module 'xstriconveh'.
37580         * lib/xstriconveh.h: New file.
37581         * lib/xstriconveh.c: New file.
37582         * modules/xstriconveh: New file.
37583
37584 2009-08-30  Bruno Haible  <bruno@clisp.org>
37585
37586         Make it easier to use mem_cd_iconveh.
37587         * lib/striconveh.h (iconveh_t): New type.
37588         (iconveh_open, iconveh_close): New declarations.
37589         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37590         with a single 'const iconveh_t *' argument.
37591         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37592         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37593         with a single 'const iconveh_t *' argument.
37594         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37595         * tests/test-striconveh.c (main): Update.
37596         * NEWS: Mention the change.
37597
37598 2009-08-30  Bruno Haible  <bruno@clisp.org>
37599
37600         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37601         problem.
37602
37603 2009-08-30  Bruno Haible  <bruno@clisp.org>
37604
37605         Work around iconv_open problem on Solaris.
37606         * lib/iconv_open-solaris.gperf: New file.
37607         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37609         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37610         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37611         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37612         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37613
37614 2009-08-29  Jim Meyering  <meyering@redhat.com>
37615
37616         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37617         * top/maint.mk (cvs-check): Remove target; it was just an alias
37618         to the better-named vc-diff-check.
37619         (maintainer-distcheck): Remove rule.  It was used only from
37620         the (alpha/beta/major) target, and all of its commands but one
37621         were coreutils-specific.
37622         (vc-dist): Remove rule.
37623         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37624         Run vc-diff-check, not vc-dist.
37625         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37626
37627 2009-08-27  Bruno Haible  <bruno@clisp.org>
37628
37629         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37630         of 0.
37631
37632 2009-08-27  Bruno Haible  <bruno@clisp.org>
37633
37634         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37635         compilers.
37636         * doc/func.texi: Document the SunPRO C bug.
37637
37638 2009-08-27  Bruno Haible  <bruno@clisp.org>
37639
37640         Fix link error on Solaris.
37641         * tests/test-parse-duration.c (xstrdup): Remove function.
37642
37643 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37644
37645         ignore-value: handle pointer types, too
37646         * lib/ignore-value.h (__attribute__): Remove definition.
37647         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37648         of a more concise and more-often effective "(void) i" statement.
37649         (ignore_ptr): New function to suppress warnings from functions that
37650         return pointers, and to make it explicit that one function doesn't
37651         handle all cases.
37652
37653 2009-08-25  Bruno Haible  <bruno@clisp.org>
37654
37655         dup2: work around a Linux bug.
37656         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37657         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37658         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37659         Reported by Simon Josefsson.
37660
37661 2009-08-25  Jim Meyering  <meyering@redhat.com>
37662
37663         libguestfs uses gnulib
37664         * users.txt: Add libguestfs.
37665
37666 2009-08-24  Eric Blake  <ebb9@byu.net>
37667
37668         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37669         * lib/pipe2.c (includes): Add binary-io.h.
37670         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37671
37672 2009-08-24  Bruno Haible  <bruno@clisp.org>
37673
37674         Tolerate declared but missing accept4 syscall.
37675         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37676         available.
37677         * lib/sys_socket.in.h (accept4): If the function is already present,
37678         override it.
37679         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37680         * modules/accept4 (Makefile.am): Compile accept4.c always.
37681         Reported by Paolo Bonzini and Eric Blake.
37682
37683 2009-08-23  Bruno Haible  <bruno@clisp.org>
37684
37685         New module 'accept4'.
37686         * lib/sys_socket.in.h (accept4): New declaration.
37687         * lib/accept4.c: New file.
37688         * m4/accept4.m4: New file.
37689         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37690         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37691         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37692         HAVE_ACCEPT4.
37693         * modules/accept4: New file.
37694         * doc/glibc-functions/accept4.texi: Mention the new module.
37695
37696 2009-08-24  Jim Meyering  <meyering@redhat.com>
37697
37698         progname: also set global program_invocation_name, when possible
37699         Before this change, a libtool-enabled program that calls glibc's
37700         error function would report the program name as
37701         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37702         * modules/progname (configure.ac): Check for a declaration of
37703         program_invocation_name.
37704         * lib/progname.c:  Include <errno.h>.
37705         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37706         Set program_invocation_name.
37707
37708 2009-08-23  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/dup3.c: Include <string.h>.
37711
37712 2009-08-23  Bruno Haible  <bruno@clisp.org>
37713
37714         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37715         * lib/pipe2.c (pipe2): Likewise.
37716         Suggested by Eric Blake.
37717
37718 2009-08-23  Bruno Haible  <bruno@clisp.org>
37719
37720         Tolerate declared but missing dup3 syscall.
37721         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37722         * lib/unistd.in.h (dup3): If the function is already present,
37723         override it.
37724         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37725         * modules/dup3 (Makefile.am): Compile dup3.c always.
37726         Reported by Paolo Bonzini.
37727
37728 2009-08-23  Bruno Haible  <bruno@clisp.org>
37729
37730         Tolerate declared but missing pipe2 syscall.
37731         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37732         available.
37733         * lib/unistd.in.h (pipe2): If the function is already present,
37734         override it.
37735         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37736         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37737         Reported by Paolo Bonzini.
37738
37739 2009-08-23  Bruno Haible  <bruno@clisp.org>
37740
37741         * lib/pipe2.c (pipe2): Move #ifs inside function.
37742
37743 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37744
37745         quotearg: document limitations of quote_these_too
37746         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37747         those limitations are created.
37748         * lib/quotearg.h (set_char_quoting): Document that digits and
37749         letters that are special after backslash are not permitted.
37750         (quotearg_char): Cross-reference set_char_quoting documentation.
37751
37752 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37753
37754         quotearg: implement custom_quoting_style
37755         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37756         right_quote fields.
37757         (set_custom_quoting): New public function.
37758         (quotearg_buffer_restyled): Add left_quote and right_quote
37759         arguments, handle them very much like locale quoting, and update
37760         all uses.
37761         (quotearg_n_custom): New public function.
37762         (quotearg_n_custom_mem): New public function.
37763         (quotearg_custom): New public function.
37764         (quotearg_custom_mem): New public function.
37765         * lib/quotearg.h: Prototype and document new public functions.
37766         (enum quoting_style): For escape_quoting_style and
37767         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37768         ignored even though they're otherwise like c_quoting_style.
37769         Add custom_quoting_style member and document with comparison to
37770         clocale_quoting_style.
37771         * tests/test-quotearg.c (custom_quotes): New array.
37772         (custom_results): New array.
37773         (main): Extend to test custom quoting.
37774
37775 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37776
37777         quotearg: fix right quote escaping when it's in quote_these_too
37778         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37779         quote, be sure to prepend only one backslash.
37780         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37781         (main): Test it.
37782
37783 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37784
37785         quotearg-tests: test escaping of embedded locale quotes
37786         * tests/test-quotearg.c (struct result_strings): Add member for
37787         new input.
37788         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37789         (inputs): Add new input.
37790         (results_g): Add expected results.
37791         (flag_results): Likewise.
37792         (locale_results): Likewise.
37793         (compare_strings): Check those.
37794
37795 2009-08-23  Bruno Haible  <bruno@clisp.org>
37796
37797         Tests for module 'dup3'.
37798         * modules/dup3-tests: New file.
37799         * tests/test-dup3.c: New file.
37800
37801         New module 'dup3'.
37802         * lib/unistd.in.h (dup3): New declaration.
37803         * lib/dup3.c: New file.
37804         * m4/dup3.m4: New file.
37805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37806         HAVE_DUP3.
37807         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37808         * modules/dup3: New file.
37809         * doc/glibc-functions/dup3.texi: Mention the new module.
37810
37811 2009-08-23  Bruno Haible  <bruno@clisp.org>
37812
37813         Tweak the dup2 test.
37814         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37815         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37816         the test file is still empty. Fix argument order of lseek.
37817
37818 2009-08-23  Bruno Haible  <bruno@clisp.org>
37819
37820         Avoid test link errors when the modules getopt-gnu, gettext are used.
37821         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37823
37824 2009-08-23  Bruno Haible  <bruno@clisp.org>
37825
37826         Fix getdtablesize() on mingw.
37827         * lib/getdtablesize.c (getdtablesize): Implement differently.
37828         * lib/unistd.in.h (getdtablesize): Improve comment.
37829
37830 2009-08-23  Bruno Haible  <bruno@clisp.org>
37831
37832         New module 'mkostemp'.
37833         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37834         * lib/stdlib.in.h (mksotemp): New declaration.
37835         * lib/mkostemp.c: New file, from glibc with modifications.
37836         * lib/tempname.h (GT_FILE): Remove outdated comment.
37837         (gen_tempname): Add flags argument.
37838         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37839         (__GT_FILE): Map to 1.
37840         (small_open, large_open): Remove macros.
37841         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37842         * lib/mkstemp.c (mkstemp): Update.
37843         * lib/mkdtemp.c (mkdtemp): Likewise.
37844         * m4/mkostemp.m4: New file.
37845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37846         HAVE_MKOSTEMP.
37847         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37848         HAVE_MKOSTEMP.
37849         * modules/mkostemp: New file, based on modules/mkstemp.
37850         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37851         * NEWS: Mention the change.
37852
37853 2009-08-23  Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37856         Reported by Eric Blake.
37857
37858 2009-08-23  Bruno Haible  <bruno@clisp.org>
37859
37860         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37861         Reported by Eric Blake.
37862
37863 2009-08-23  Bruno Haible  <bruno@clisp.org>
37864
37865         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37866         * modules/pipe2 (Depends-on): Likewise.
37867
37868 2009-08-23  Eric Blake  <ebb9@byu.net>
37869
37870         fcntl-h: add O_TTY_INIT support
37871         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37872         * tests/test-fcntl-h.c (o): Test it.
37873         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37874
37875         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37876         * modules/fcntl: Move <fcntl.h> header replacement...
37877         * modules/fcntl-h: ...to new name, so as not to collide with
37878         like-named function.
37879         * tests/test-fcntl.c: Rename...
37880         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37881         * modules/fcntl-tests: Rename...
37882         * modules/fcntl-h-tests: ...to this.  Update test file name.
37883         * modules/chdir-long (Depends-on): Update clients.
37884         * modules/chdir-safer (Depends-on): Likewise.
37885         * modules/fcntl-safer (Depends-on): Likewise.
37886         * modules/fts (Depends-on): Likewise.
37887         * modules/mkancesdirs (Depends-on): Likewise.
37888         * modules/mkdir-p (Depends-on): Likewise.
37889         * modules/open (Depends-on): Likewise.
37890         * modules/savewd (Depends-on): Likewise.
37891         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37892         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37893
37894 2009-08-22  Bruno Haible  <bruno@clisp.org>
37895
37896         * modules/binary-io (License): Relicense under LGPL.
37897         * modules/pipe2 (License): Likewise.
37898
37899 2009-08-22  Bruno Haible  <bruno@clisp.org>
37900
37901         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37902         return value.
37903         * lib/pipe-filter-gi.c (filter_init): Likewise.
37904         Reported by Eric Blake.
37905
37906 2009-08-22  Bruno Haible  <bruno@clisp.org>
37907
37908         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37909         * modules/pipe (Depends-on): Add pipe2.
37910
37911 2009-08-22  Bruno Haible  <bruno@clisp.org>
37912
37913         Tests for module 'pipe2'.
37914         * modules/pipe2-tests: New file.
37915         * tests/test-pipe2.c: New file.
37916
37917         New module 'pipe2'.
37918         * lib/unistd.in.h (pipe2): New declaration.
37919         * lib/pipe2.c: New file.
37920         * m4/pipe2.m4: New file.
37921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37922         HAVE_PIPE2.
37923         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37924         * modules/pipe2: New file.
37925         * doc/glibc-functions/pipe2.texi: Mention the new module.
37926
37927 2009-08-22  Bruno Haible  <bruno@clisp.org>
37928
37929         Reference some new glibc functions.
37930         * doc/glibc-functions/accept4.texi: New file.
37931         * doc/glibc-functions/dup3.texi: New file.
37932         * doc/glibc-functions/mkostemp.texi: New file.
37933         * doc/glibc-functions/pipe2.texi: New file.
37934         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37935         (Glibc sys/socket.h): Refer to accept4.
37936         (Glibc unistd.h): Refer to dup3, pipe2.
37937         Reported by Eric Blake.
37938
37939 2009-08-22  Jim Meyering  <meyering@redhat.com>
37940             Bruno Haible  <bruno@clisp.org>
37941
37942         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37943         This makes it so packages using automake-1.11's silent-rules option
37944         can print e.g., a single "GEN    configmake.h" line, rather than
37945         the 30+ statements that perform the job.  If you want to see the
37946         actual commands, you can still run "make V=1".
37947         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37948         so that make output is abbreviated when those variables are defined
37949         appropriately.
37950         * modules/argz: Likewise.
37951         * modules/arpa_inet: Likewise.
37952         * modules/byteswap: Likewise.
37953         * modules/configmake: Likewise.
37954         * modules/dirent: Likewise.
37955         * modules/errno: Likewise.
37956         * modules/fcntl: Likewise.
37957         * modules/float: Likewise.
37958         * modules/fnmatch: Likewise.
37959         * modules/getopt-posix: Likewise.
37960         * modules/glob: Likewise.
37961         * modules/iconv_open: Likewise.
37962         * modules/inttypes: Likewise.
37963         * modules/localcharset: Likewise.
37964         * modules/locale: Likewise.
37965         * modules/math: Likewise.
37966         * modules/netdb: Likewise.
37967         * modules/netinet_in: Likewise.
37968         * modules/poll: Likewise.
37969         * modules/posix_spawnp-tests: Likewise.
37970         * modules/sched: Likewise.
37971         * modules/search: Likewise.
37972         * modules/selinux-h: Likewise.
37973         * modules/signal: Likewise.
37974         * modules/spawn: Likewise.
37975         * modules/stdarg: Likewise.
37976         * modules/stdbool: Likewise.
37977         * modules/stddef: Likewise.
37978         * modules/stdint: Likewise.
37979         * modules/stdio: Likewise.
37980         * modules/stdlib: Likewise.
37981         * modules/string: Likewise.
37982         * modules/strings: Likewise.
37983         * modules/sys_file: Likewise.
37984         * modules/sys_ioctl: Likewise.
37985         * modules/sys_select: Likewise.
37986         * modules/sys_socket: Likewise.
37987         * modules/sys_stat: Likewise.
37988         * modules/sys_time: Likewise.
37989         * modules/sys_times: Likewise.
37990         * modules/sys_utsname: Likewise.
37991         * modules/sys_wait: Likewise.
37992         * modules/sysexits: Likewise.
37993         * modules/time: Likewise.
37994         * modules/unistd: Likewise.
37995         * modules/wchar: Likewise.
37996         * modules/wctype: Likewise.
37997
37998 2009-08-22  Jim Meyering  <meyering@redhat.com>
37999
38000         announce-gen: detect write failure
38001         * build-aux/announce-gen: Add Coda at end.
38002         Remove equivalent-but-more-verbose block at top.
38003
38004 2009-08-19  Akim Demaille  <demaille@gostai.com>
38005
38006         bootstrap: --help to stdout.
38007         * bootstrap (usage): Don't send --help to stderr.
38008         Use a here doc instead of a long string.
38009
38010 2009-08-21  Eric Blake  <ebb9@byu.net>
38011
38012         test-popen-safer: split from test-popen
38013         * tests/test-popen.c (main): Move...
38014         * tests/test-popen.h: ...into new file.
38015         * tests/test-popen-safer2.c: New file.
38016         * modules/popen-tests (Files): Add test-popen.h.
38017         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38018         Suggested by Bruno Haible.
38019
38020         test-fcntl-safer: split from test-open
38021         * tests/test-open.c (main): Move...
38022         * tests/test-open.h: ...into new file.
38023         * tests/test-fcntl-safer.c: New file.
38024         * modules/open-tests (Files): Add test-open.h.
38025         * modules/fcntl-safer-tests: New file.
38026         Suggested by Bruno Haible.
38027
38028         test-fopen-safer: split from test-fopen
38029         * tests/test-fopen.c (main): Move...
38030         * tests/test-fopen.h: ...into new file.
38031         * tests/test-fopen-safer.c: New file.
38032         * modules/fopen-tests (Files): Add test-fopen.h.
38033         * modules/fopen-safer-tests: New file.
38034         Suggested by Bruno Haible.
38035
38036 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38037
38038         popen-safer: test O_CLOEXEC at run-time.
38039         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38040
38041 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38042
38043         fcntl: move more flags to the header
38044         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38045         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38046         * lib/fcntl.in.h: Do both things here.
38047
38048 2009-08-21  Jim Meyering  <meyering@redhat.com>
38049
38050         consistently remove $@-t before redirecting to it
38051         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38052         * modules/alloca-opt: Likewise.
38053         * modules/byteswap: Likewise.
38054         * modules/fnmatch: Likewise.
38055         * modules/getopt-posix: Likewise.
38056         * modules/glob: Likewise.
38057         * modules/poll: Likewise.
38058         * modules/posix_spawnp-tests: Likewise.
38059         * modules/sys_socket: Likewise.
38060         * modules/sysexits: Likewise.
38061
38062 2009-08-21  Eric Blake  <ebb9@byu.net>
38063
38064         popen: simplify access to original popen
38065         * lib/popen.c (rpl_popen): No need to worry about popen being a
38066         macro.
38067         Reported by Bruno Haible.
38068
38069 2009-08-20  Eric Blake  <ebb9@byu.net>
38070
38071         build: avoid some compiler warnings
38072         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38073         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38074         type.
38075         (new_exclude_segment, excluded_file_pattern_p)
38076         (excluded_file_name_p): Reduce scope.
38077         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38078         old-style declaration.
38079
38080 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38081
38082         * tests/test-exclude1.sh: Handle Windows EOL.
38083         * tests/test-exclude2.sh: Likewise.
38084         * tests/test-exclude3.sh: Likewise.
38085         * tests/test-exclude4.sh: Likewise.
38086         * tests/test-exclude5.sh: Likewise.
38087         * tests/test-exclude6.sh: Likewise.
38088         * tests/test-exclude7.sh: Likewise.
38089
38090 2009-08-19  Akim Demaille  <demaille@gostai.com>
38091
38092         bootstrap: find sha1sum when named gsha1sum.
38093         * bootstrap (find_tool): New.
38094         ($SHA1SUM): New.
38095         Use it.
38096
38097 2009-08-20  Jim Meyering  <meyering@redhat.com>
38098
38099         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38100         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38101         expression that converts "." in a file name to "\." in the resulting
38102         regexp.  Start with a dummy statement, so that prior shell variable
38103         definitions are expanded portably.  Reported by Simon Josefsson.
38104
38105 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38106
38107         Fix polling for writeability of a screen buffer.
38108         * lib/poll.c: Distinguish input and screen buffers for the
38109         Win32 implementation.
38110         * lib/select.c: Likewise.
38111
38112 2009-08-19  Eric Blake  <ebb9@byu.net>
38113
38114         popen-safer: prevent popen from clobbering std descriptors
38115         * modules/popen-safer: New file.
38116         * lib/popen-safer.c: Likewise.
38117         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38118         * lib/stdio--.h (popen): Provide override.
38119         * lib/stdio-safer.h (popen_safer): Provide declaration.
38120         * tests/test-popen.c (includes): Partially test this.
38121         * modules/popen-safer-tests: New file, for more tests.
38122         * tests/test-popen-safer.c: Likewise.
38123         * MODULES.html.sh (file stream based Input/Output): Mention it.
38124
38125         tests: test some of the *-safer modules
38126         * modules/fopen-safer (Depends-on): Add fopen.
38127         * modules/fcntl-safer (Depends-on): Add fcntl.
38128         * modules/stdlib-safer (Depends-on): Add stdlib.
38129         (configure.ac): Set indicator.
38130         * modules/unistd-safer (configure.ac): Likewise.
38131         * modules/tmpfile-safer (configure.ac): Likewise.
38132         (Depends-on): Add tmpfile.
38133         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38134         active.
38135         * tests/test-fopen.c (includes): Test safer versions when they are
38136         in use.
38137         * tests/test-open.c (includes): Likewise.
38138
38139         popen: fix cygwin 1.5 bug when stdin closed
38140         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38141         * modules/popen: New file.
38142         * modules/popen-tests: Likewise.
38143         * tests/test-popen.c: Likewise.
38144         * m4/popen.m4: Likewise.
38145         * lib/popen.c: Likewise.
38146         * lib/stdio.in.h (popen): New declaration.
38147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38148         * modules/stdio (Makefile.am): Likewise.
38149         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38150
38151 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38152
38153         maint.mk: give full control over update-copyright exclusions
38154         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38155         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38156         (update-copyright): Don't force inclusion of top-level
38157         ChangeLog.  Don't force exclusion of all COPYING files, but make
38158         them the default exclusion instead.
38159
38160 2009-08-16  Bruno Haible  <bruno@clisp.org>
38161
38162         Fix test failures on Solaris 10.
38163         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38164         tests when Solaris iconv() is used.
38165         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38166         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38167         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38168         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38169         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38170
38171 2009-08-16  Bruno Haible  <bruno@clisp.org>
38172
38173         Fix test failures on Solaris 10.
38174         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38175         'tr' program and pass it as first argument.
38176         * tests/test-pipe-filter-gi1.sh: Likewise.
38177         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38178         program as first argument.
38179         * tests/test-pipe-filter-gi1.c (main): Likewise.
38180
38181 2009-08-16  Eric Blake  <ebb9@byu.net>
38182
38183         fpurge: fix previous commits
38184         * modules/fpurge (Makefile.am): Make replacement conditional,
38185         partially reverting 2007-04-29 change; missed in previous
38186         attempt.
38187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38188         is missing.
38189
38190 2009-08-16  Bruno Haible  <bruno@clisp.org>
38191
38192         Clarify fpurge's effect on the file position.
38193         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38194         * tests/test-fpurge.c (main): Make a second pass for checking the file
38195         position.
38196
38197 2009-08-16  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38200         declaration of fpurge is missing.
38201         * tests/test-fpurge.c (main): Check that the file has not more contents
38202         than expected. Close the file before removing it.
38203
38204 2009-08-15  Eric Blake  <ebb9@byu.net>
38205
38206         fpurge: don't wrap working cygwin implementation
38207         * lib/fpurge.c (fpurge): Fix comment typo.
38208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38209         1.7 to avoid replacement.
38210         * tests/test-fpurge.c (main): Enhance test.
38211
38212 2009-08-15  Eric Blake  <ebb9@byu.net>
38213         and Jim Meyering  <meyering@redhat.com>
38214
38215         test-update-copyright: skip if perl is insufficient
38216         * tests/test-update-copyright.sh: Failure to run maintainer tool
38217         should not cause testsuite failure on cygwin 1.5.
38218
38219 2009-08-14  Eric Blake  <ebb9@byu.net>
38220
38221         doc: mention more functions added in cygwin 1.7.0
38222         * doc/posix-headers/limits.texi (limits.h): Update for recent
38223         cygwin additions.
38224         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38225         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38226         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38227         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38228         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38229
38230 2009-08-14  Eric Blake  <ebb9@byu.net>
38231
38232         maint.mk: simplify update-copyright rule
38233         * top/maint.mk (update-copyright-local): Delete, and document how
38234         to do it in cfg.mk instead.
38235         (update-copyright-exclude-regexp): Delete, and document how to do
38236         it in .x-update-copyright instead.
38237         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38238         exclude ChangeLog.
38239
38240 2009-08-14  Bruno Haible  <bruno@clisp.org>
38241
38242         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38243
38244 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38245
38246         maint.mk: support update-copyright-env
38247         * top/maint.mk (update-copyright-env): Define place-holder.
38248         (update-copyright): Expand $(update-copyright-env) before
38249         invoking update-copyright.
38250
38251 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38252
38253         update-copyright: implement forced reformatting
38254         * build-aux/update-copyright: Implement and document
38255         UPDATE_COPYRIGHT_FORCE.
38256         * tests/test-update-copyright.sh: Test it.
38257
38258 2009-08-14  Eric Blake  <ebb9@byu.net>
38259         and Bruno Haible  <bruno@clisp.org>
38260
38261         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38262         * tests/test-locale.c: Revert previous patch related to NULL.
38263         * tests/test-stdio.c: Likewise.
38264         * tests/test-stdlib.c: Likewise.
38265         * tests/test-string.c: Likewise.
38266         * tests/test-unistd.c: Likewise.
38267         * modules/time-tests (Depends-on): Add verify.
38268         * modules/wchar-tests (Depends-on): Likewise.
38269         * tests/test-time.c: Test for NULL compliance.
38270         * tests/test-wchar.c: Likewise.
38271         * modules/locale (Depends-on): Add stddef.
38272         * modules/stdio (Depends-on): Likewise.
38273         * modules/stdlib (Depends-on): Likewise.
38274         * modules/string (Depends-on): Likewise.
38275         * modules/time (Depends-on): Likewise.
38276         * modules/unistd (Depends-on): Likewise.
38277         * modules/wchar (Depends-on): Likewise.
38278         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38279         * lib/stdlib.in.h (includes): Likewise.
38280         * lib/string.in.h (includes): Likewise.
38281         * lib/time.in.h (includes): Likewise.
38282         * lib/unistd.in.h (includes): Likewise.
38283         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38284         replaced.
38285         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38286         * m4/stddef_h.m4: New file.
38287         * modules/stddef: Likewise.
38288         * lib/stddef.in.h: Likewise.
38289         * modules/stddef-tests: Likewise.
38290         * tests/test-stddef.c: Likewise.
38291         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38292         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38293         * doc/posix-headers/locale.texi (locale.h): Likewise.
38294         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38295         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38296         * doc/posix-headers/string.texi (string.h): Likewise.
38297         * doc/posix-headers/time.texi (time.h): Likewise.
38298         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38299         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38300
38301 2009-08-14  Eric Blake  <ebb9@byu.net>
38302
38303         doc: improve git diff of texinfo files
38304         * .gitattributes: Add rule for *.texi files, with hint on how to
38305         use it.
38306         Copied from m4, and based on a report by Bruno Haible.
38307
38308 2009-08-14  Bruno Haible  <bruno@clisp.org>
38309
38310         Disable multithread support by default on Cygwin 1.5.x for real.
38311         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38312
38313 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38314
38315         update-copyright: much ado about intervals
38316         * build-aux/update-copyright: Implement and document
38317         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38318         of copyright year intervals.
38319         Also, document UPDATE_COPYRIGHT_YEAR.
38320         * tests/test-update-copyright.sh: Test it.
38321
38322         update-copyright: convert 2-digit to 4-digit years
38323         * build-aux/update-copyright: Implement and document.
38324         * tests/test-update-copyright.sh: Update.
38325
38326 2009-08-14  Jim Meyering  <meyering@redhat.com>
38327
38328         test-exclude: avoid coreutils "make check" failure
38329         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38330         just as in test-argmatch.c.
38331
38332 2009-08-13  Eric Blake  <ebb9@byu.net>
38333
38334         test-dup2: fix bad assumption
38335         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38336         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38337
38338         test-version-etc: fix CRLF portability issue
38339         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38340         recognize \r.
38341         * tests/test-argp-version-etc-1.sh: Likewise.
38342
38343         getopt: update client modules
38344         * modules/argp (Depends-on): Use getopt-gnu.
38345         * modules/git-merge-changelog (Depends-on): Likewise.
38346         * modules/long-options (Depends-on): Likewise.
38347         * modules/xstrtol (Depends-on): Likewise.
38348
38349 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38350
38351         * tests/test-version-etc.sh: Don't fail on different
38352         project/version.  Don't fail on CRLF differences.  Rewrite to use
38353         multiple -e instead of multiple sed forks, suggested by Eric Blake
38354         <ebb9@byu.net>.
38355         * tests/test-argp-version-etc-1.sh: Likewise.
38356
38357 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38358
38359         * tests/test-version-etc.sh: Don't fail on different
38360         project/version.
38361
38362 2009-08-12  Bruno Haible  <bruno@clisp.org>
38363
38364         Tests for modules 'getopt-posix', 'getopt-gnu'.
38365         * modules/getopt-posix-tests: New file.
38366         * tests/test-getopt.c: New file.
38367         * tests/test-getopt.h: New file.
38368         * tests/test-getopt_long.h: New file.
38369
38370         New modules 'getopt-posix', 'getopt-gnu'.
38371         * modules/getopt-gnu: New file, renamed from modules/getopt.
38372         * modules/getopt-posix: New file.
38373         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38374         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38375         (gl_GETOPT): Remove macro.
38376         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38377         Disable the test against BSD systems that declare optreset. Test
38378         against mingw bug. Test against lack of support of optional arguments
38379         on many platforms.
38380         * doc/glibc-headers/getopt.texi: Update module name and list of
38381         relevant platforms.
38382         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38383         'getopt-gnu' and more portability problems.
38384         * NEWS: Mention the changes.
38385
38386 2009-08-12  Bruno Haible  <bruno@clisp.org>
38387
38388         Ensure that optarg etc. get declared by <unistd.h>.
38389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38390         AC_USE_SYSTEM_EXTENSIONS.
38391         * modules/getopt (Depends-on): Add 'extensions'.
38392
38393 2009-08-12  Bruno Haible  <bruno@clisp.org>
38394
38395         Avoid test link errors.
38396         * modules/pipe-filter-ii-tests (Makefile.am): Define
38397         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38398         * modules/pipe-filter-gi-tests (Makefile.am): Define
38399         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38401
38402 2009-08-12  Bruno Haible  <bruno@clisp.org>
38403
38404         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38405         gl_GETOPT_SUBSTITUTE before.
38406         (gl_GETOPT): Use it.
38407         * m4/argp.m4 (gl_ARGP): Update.
38408         Reported by Sergey Poznyakoff.
38409
38410         * m4/getopt.m4: Reorder macros.
38411         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38412         (gl_GETOPT_SUBSTITUTE): Remove macro.
38413
38414 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38415
38416         Minor improvement in gitlog-to-changelog
38417
38418         * build-aux/gitlog-to-changelog: New option `--format' makes
38419         output format string configurable.
38420
38421 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38422
38423         Optimize exclude: use hash tables for non-wildcard patterns.
38424
38425         * lib/exclude.c: Include hash.h and mbuiter.h
38426         (struct exclude_pattern, exclude_segment): New data types.
38427         (struct exclude): Rewrite.
38428         (fnmatch_pattern_has_wildcards): New function.
38429         (new_exclude_segment, free_exclude_segment): New functions.
38430         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38431         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38432         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38433         * modules/exclude: Depend on hash and mbuiter.
38434
38435         * modules/exclude-tests: New file.
38436         * tests/test-exclude.c: New file.
38437         * tests/test-exclude1.sh: New file.
38438         * tests/test-exclude2.sh: New file.
38439         * tests/test-exclude3.sh: New file.
38440         * tests/test-exclude4.sh: New file.
38441         * tests/test-exclude5.sh: New file.
38442         * tests/test-exclude6.sh: New file.
38443         * tests/test-exclude7.sh: New file.
38444
38445 2009-08-12  Bruno Haible  <bruno@clisp.org>
38446
38447         Ensure that getopt() gets declared by <unistd.h>.
38448         * lib/unistd.in.h: Conditionally include getopt.h.
38449         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38450         Set GNULIB_UNISTD_H_GETOPT.
38451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38452         GNULIB_UNISTD_H_GETOPT.
38453         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38454
38455 2009-08-12  Bruno Haible  <bruno@clisp.org>
38456
38457         Clarify logic.
38458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38459         gl_replace_getopt instead of GETOPT_H.
38460
38461 2009-08-12  Bruno Haible  <bruno@clisp.org>
38462
38463         * m4/getopt.m4: Add comments.
38464
38465 2009-08-12  Bruno Haible  <bruno@clisp.org>
38466
38467         Disable multithread support by default on Cygwin 1.5.x.
38468         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38469         set gl_use_threads=no if not specified otherwise.
38470
38471 2009-08-11  Bruno Haible  <bruno@clisp.org>
38472
38473         Avoid compilation error on NetBSD 5.0.
38474         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38475         * tests/test-stdio.c: Likewise.
38476         * tests/test-stdlib.c: Likewise.
38477         * tests/test-string.c: Likewise.
38478         * tests/test-unistd.c: Likewise.
38479         Reported by Greg Troxel <gdt@ir.bbn.com>
38480         at <https://savannah.gnu.org/support/?106973>.
38481
38482 2009-08-11  Bruno Haible  <bruno@clisp.org>
38483
38484         * modules/dup2-tests (Depends-on): Remove close.
38485
38486         Undo 2009-07-19 commit.
38487         * modules/acl-tests (Depends-on): Remove close.
38488         * modules/binary-io-tests (Depends-on): Likewise.
38489         * modules/closein-tests (Depends-on): Likewise.
38490         * modules/flock-tests (Depends-on): Likewise.
38491         * modules/fsync-tests (Depends-on): Likewise.
38492         * modules/lseek-tests (Depends-on): Likewise.
38493         * modules/pipe-tests (Depends-on): Likewise.
38494         * modules/posix_spawn-tests (Depends-on): Likewise.
38495         * modules/posix_spawnp-tests (Depends-on): Likewise.
38496         * modules/stat-time-tests (Depends-on): Likewise.
38497         * modules/yesno-tests (Depends-on): Likewise.
38498
38499 2009-08-10  Bruno Haible  <bruno@clisp.org>
38500
38501         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38502
38503 2009-08-10  Bruno Haible  <bruno@clisp.org>
38504
38505         Fix a gcc warning.
38506         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38507
38508 2009-08-10  Bruno Haible  <bruno@clisp.org>
38509
38510         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38511         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38512         not only the first time.
38513         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38514         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38515         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38516         is 1, not only the the first time.
38517
38518 2009-08-10  Bruno Haible  <bruno@clisp.org>
38519
38520         Make it possible to use module 'gethostname' without module 'close'.
38521         * lib/unistd.in.h (close): Evoke a link error only if
38522         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38524         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38525         * modules/unistd (Makefile.am): Substitute
38526         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38527         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38528         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38529         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38530         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38531         * modules/sys_ioctl (Makefile.am): Substitute
38532         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38533         * modules/socket (configure.ac): On native Windows, set
38534         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38535         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38536         Reported by Sam Steingold <sds@gnu.org>.
38537
38538 2009-08-10  Bruno Haible  <bruno@clisp.org>
38539
38540         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38541         * modules/ioctl (configure.ac): Likewise.
38542
38543 2009-08-10  Bruno Haible  <bruno@clisp.org>
38544
38545         Avoid collision between gnulib wrapper and libintl wrapper.
38546         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38547         already defined in intl/printf.c.
38548         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38549         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38550
38551 2009-08-09  Bruno Haible  <bruno@clisp.org>
38552
38553         Make <sys/select.h> really self-contained, also on Solaris 10.
38554         * lib/sys_select.in.h: Include <string.h>.
38555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38556         Solaris 10 problem.
38557         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38558         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38559         Reported by Jim Meyering.
38560
38561 2009-08-09  Bruno Haible  <bruno@clisp.org>
38562
38563         Avoid warnings from 'aclocal' that are due to a use of macro name
38564         AM_XGETTEXT_OPTION that is not defined in automake.
38565         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38566         automake.
38567         * modules/error (configure.ac): Likewise.
38568         * modules/propername (configure.ac): Likewise.
38569         * modules/vasprintf (configure.ac): Likewise.
38570         * modules/verror (configure.ac): Likewise.
38571         * modules/xprintf (configure.ac): Likewise.
38572         * modules/xvasprintf (configure.ac): Likewise.
38573
38574 2009-08-08  Bruno Haible  <bruno@clisp.org>
38575
38576         Avoid compilation error in C++ mode.
38577         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38578         Reported by Sam Steingold <sds@gnu.org>.
38579
38580 2009-08-08  Bruno Haible  <bruno@clisp.org>
38581
38582         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38583         for the various Unix platforms.
38584         * doc/posix-headers/limits.texi: Update platforms list regarding
38585         HOST_NAME_MAX.
38586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38587
38588 2009-08-07  Jim Meyering  <meyering@redhat.com>
38589
38590         selinux-at: fix typo in a comment
38591         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38592         Spotted by Paolo Bonzini.
38593
38594         selinux-at: remove redundant m4 code, add documentation
38595         * modules/selinux-at (configure.ac): Remove redundant code.
38596         LIB_SELINUX is already set via the dependent module, selinux-h.
38597         (Include): Add quotes around selinux-at.h.
38598         * lib/selinux-at.h: Add documentation.
38599         Reported by Bruno Haible in
38600         http://marc.info/?l=gnulib-bug&m=124958988300749
38601
38602 2009-08-07  Bruno Haible  <bruno@clisp.org>
38603
38604         Avoid link error on MacOS X 10.3 and 10.4.
38605         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38606         on non-ELF systems.
38607         * lib/argp-pv.c (argp_program_version): Likewise.
38608         Reported by Simon Josefsson.
38609
38610 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38611
38612         * tests/test-version-etc.sh: Use $EXEEXT.
38613
38614 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38615
38616         update-copyright: update documentation to point to maint.mk
38617         * build-aux/update-copyright: Here.
38618
38619 2009-08-06  Jim Meyering  <meyering@redhat.com>
38620
38621         maint.mk: support update-copyright-local
38622         * top/maint.mk (update-copyright-local): Define place-holder.
38623         (update-copyright): Depend on $(update-copyright-local).
38624
38625 2009-08-06  Jim Meyering  <meyering@redhat.com>
38626
38627         selinux-at: new module
38628         Initially written for coreutils, this module will soon be
38629         used by findutils, too.
38630         * MODULES.html.sh [Misc]: Add selinux-at.
38631         * lib/selinux-at.h: New file, from coreutils.
38632         * lib/selinux-at.c: Likewise.
38633         * modules/selinux-at: Likewise.
38634         (License): Change from LGPL to GPL, since it depends
38635         on the GPL'd openat module.
38636
38637         doc: update README
38638         * README: Remove references to cogito.
38639         Remove cvs-repo-updating instructions from 2007.
38640         Don't imply that CVS is better if you have limited disk space.
38641
38642 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38643
38644         update-copyright: support C-style comments
38645         * build-aux/update-copyright: Implement and document.
38646         * tests/test-update-copyright.sh: Test.
38647
38648 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38649
38650         update-copyright: support omitted "(C)"
38651         * build-aux/update-copyright: Implement and document.  Also,
38652         allow variable whitespace before "(C)".
38653         * tests/test-update-copyright.sh: Test.
38654
38655 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38656
38657         update-copyright: don't trip on non-FSF copyright statements
38658         * build-aux/update-copyright: Fix so that the first correctly
38659         formatted FSF copyright statement is recognized no matter what
38660         appears before it.  Update documentation.
38661         * tests/test-update-copyright.sh: Test that.
38662
38663 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38664
38665         update-copyright: clean up code a little
38666         * build-aux/update-copyright: Append "_re" to the name of any
38667         variable holding a regular expression.
38668         Replace "old" and "new" with "stmt" in variable names.
38669         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38670         handled correctly.
38671         Format code more consistently.
38672
38673 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38674
38675         update-copyright-tests: improve portability
38676         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38677         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38678
38679 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38680
38681         update-copyright: support @copyright{} and &copy;
38682         * build-aux/update-copyright: Implement and document.
38683         * tests/test-update-copyright.sh: Test.
38684
38685 2009-08-04  Jim Meyering  <meyering@redhat.com>
38686
38687         update-copyright-tests: correctly test EOL=\r\n handling
38688         * tests/test-update-copyright.sh: Put \r at the end of some lines
38689         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38690
38691         maint.mk: make update-copyright exclusion list more configurable
38692         * top/maint.mk (update-copyright): Default to excluding COPYING,
38693         but allow an override, in case someone does want to update that file.
38694
38695         maint.mk: don't update copyright date in COPYING
38696         * top/maint.mk (update-copyright): Exclude COPYING.
38697
38698         maint.mk: add a copyright-updating rule
38699         * top/maint.mk (update-copyright): New rule.
38700         Derived from coreutils/Makefile.am.
38701
38702         update-copyright: rename some variables
38703         * build-aux/update-copyright: Rename a few variables for clarity.
38704         Tweak syntax.  List Joel E. Denny as coauthor.
38705
38706 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38707
38708         update-copyright: fix bug for 2-digit last year and add tests
38709         * build-aux/update-copyright: Fix bug.
38710         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38711         specified.
38712         * modules/update-copyright-tests: New
38713         * tests/test-update-copyright.sh: New.
38714
38715 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38716
38717         update-copyright: handle leading tabs in line prefix
38718         * build-aux/update-copyright: Count leading tabs as 8 spaces
38719         when computing margin.  This helps with the formatting of
38720         ChangeLogs, for example.
38721         Fix documentation a little.
38722
38723 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38724
38725         update-copyright: support EOL=\r\n
38726         * build-aux/update-copyright: Implement that.
38727
38728 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38729
38730         update-copyright: automatically format copyright statements
38731         * build-aux/update-copyright: Implement that.
38732         Also, be a little more predictable and safer by always failing
38733         when the full copyright format is not perfectly recognized as an
38734         unbroken whole.  Discussed at
38735         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38736         Rewrite documentation.
38737
38738 2009-08-03  Bruno Haible  <bruno@clisp.org>
38739
38740         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38741
38742 2009-08-02  Bruno Haible  <bruno@clisp.org>
38743
38744         Tests for module 'uname'.
38745         * modules/uname-tests: New file.
38746         * tests/test-uname.c: New file.
38747
38748         New module 'uname'.
38749         * lib/uname.c: New file.
38750         * m4/uname.m4: New file.
38751         * modules/uname: New file.
38752         * doc/posix-functions/uname.texi: Mention the new module.
38753
38754 2009-08-02  Bruno Haible  <bruno@clisp.org>
38755
38756         Tests for module 'sys_utsname'.
38757         * modules/sys_utsname-tests: New file.
38758         * tests/test-sys_utsname.c: New file.
38759
38760         New module 'sys_utsname'.
38761         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38762         * m4/sys_utsname_h.m4: New file.
38763         * modules/sys_utsname: New file.
38764         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38765
38766 2009-08-02  Bruno Haible  <bruno@clisp.org>
38767
38768         Implicitly initialize the sockets library.
38769         * lib/gethostname.c: Include sockets.h.
38770         (rpl_gethostname): Invoke gl_sockets_startup.
38771         * lib/socket.c: Include sockets.h.
38772         (rpl_socket): Invoke gl_sockets_startup.
38773         * modules/gethostname (Depends-on): Add sockets.
38774         * modules/socket (Depends-on): Likewise.
38775         * tests/test-poll.c: Don't include sockets.h.
38776         (main): Don't invoke gl_sockets_startup.
38777         * tests/test-select.c: Don't include sockets.h.
38778         (main): Don't invoke gl_sockets_startup.
38779
38780 2009-08-02  Bruno Haible  <bruno@clisp.org>
38781
38782         Allow multiple calls to gl_sockets_startup.
38783         * lib/sockets.c (initialized_sockets_version): New variable.
38784         (gl_sockets_startup): Do nothing if already called for this or a higher
38785         version.
38786         (gl_sockets_cleanup): Reset initialized_sockets_version.
38787
38788 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38789
38790         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38791         different project/version.
38792
38793 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38794             Bruno Haible  <bruno@clisp.org>
38795
38796         Tests for module 'pipe-filter-gi'.
38797         * modules/pipe-filter-gi-tests: New file.
38798         * tests/test-pipe-filter-gi1.sh: New file.
38799         * tests/test-pipe-filter-gi1.c: New file.
38800         * tests/test-pipe-filter-gi2.sh: New file.
38801         * tests/test-pipe-filter-gi2-main.c: New file.
38802         * tests/test-pipe-filter-gi2-child.c: New file.
38803
38804         New module 'pipe-filter-gi'.
38805         * lib/pipe-filter-gi.c: New file.
38806         * modules/pipe-filter-gi: New file.
38807
38808 2009-08-02  Bruno Haible  <bruno@clisp.org>
38809             Paolo Bonzini  <bonzini@gnu.org>
38810
38811         Tests for module 'pipe-filter-ii'.
38812         * modules/pipe-filter-ii-tests: New file.
38813         * tests/test-pipe-filter-ii1.sh: New file.
38814         * tests/test-pipe-filter-ii1.c: New file.
38815         * tests/test-pipe-filter-ii2.sh: New file.
38816         * tests/test-pipe-filter-ii2-main.c: New file.
38817         * tests/test-pipe-filter-ii2-child.c: New file.
38818
38819         New module 'pipe-filter-ii'.
38820         * lib/pipe-filter.h: New file.
38821         * lib/pipe-filter-ii.c: New file.
38822         * lib/pipe-filter-aux.h: New file.
38823         * modules/pipe-filter-ii: New file.
38824
38825 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38826
38827         * lib/gc-libgcrypt.c: Change copyright to FSF.
38828         * lib/gc-gnulib.c: Likewise.
38829
38830 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38831
38832         * lib/gethostname.c: Include limits.h.
38833
38834 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38835             Bruno Haible  <bruno@clisp.org>
38836
38837         Ensure HOST_NAME_MAX as part of the gethostname module.
38838         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38839         define also HOST_NAME_MAX.
38840         * tests/test-gethostname.c: Include <limits.h>.
38841         (main): Check also HOST_NAME_MAX.
38842         * doc/posix-headers/limits.texi: Document the mingw problem.
38843
38844 2009-08-02  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38847         Add comments.
38848
38849 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38850
38851         * lib/gethostname.c: Add Windows wrapper.
38852         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38853         * modules/gethostname: Depend on sys_socket & errno, for also
38854         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38855         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38856
38857 2009-07-31  Jim Meyering  <meyering@redhat.com>
38858
38859         getloadavg: fix symbol name in comment
38860         * lib/getloadavg.c: Correct a typo I introduced when adding
38861         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38862         Matt Kraai spotted the problem.
38863
38864 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38865
38866         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38867         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38868         code also if ! defined N_NAME_POINTER.
38869         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38870         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38871         but the n_name member is a 12-byte array.
38872
38873 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38874
38875         update-copyright: generalize comment handling
38876         * build-aux/update-copyright: Handle copyright statements
38877         within more comment styles.
38878         Document usage.
38879         Report any file with an external copyright holder or parse failure.
38880
38881 2009-07-29  Jim Meyering  <meyering@redhat.com>
38882
38883         mktime: correct setting of REPLACE_MKTIME
38884         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38885
38886         update-copyright: new module
38887         * modules/update-copyright: New file.
38888         * build-aux/update-copyright: New file.
38889         * MODULES.html.sh (maint+release support): Add update-copyright.
38890
38891 2009-07-27  Bruno Haible  <bruno@clisp.org>
38892
38893         Fix compilation error when <ctime> is used and mktime is replaced.
38894         * lib/time.in.h (mktime): New declaration.
38895         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38896         REPLACE_MKTIME instead of defining mktime in config.h.
38897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38898         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38899         Reported by Ross McFarland <rwmcfa1@neces.com>.
38900
38901 2009-07-27  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38904         Reported by Matt Kraai <mkraai@beckman.com>.
38905
38906 2009-07-25  Jim Meyering  <meyering@redhat.com>
38907
38908         maint.mk: avoid warnings about missing files
38909         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38910         diagnostic when .prev-version does not exist.
38911         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38912         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38913         nonexistent cfg.mk.
38914         Suggestions from Simon Josefsson.
38915
38916 2009-07-25  Bruno Haible  <bruno@clisp.org>
38917
38918         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38919         defined as macros. Needed on QNX 6.4.1.
38920         Reported by Matt Kraai <mkraai@beckman.com>.
38921
38922 2009-07-23  Jim Meyering  <meyering@redhat.com>
38923
38924         maint.mk: invoke "make dist" with a working value of XZ_OPT
38925         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38926
38927 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38928
38929         Make fseeko.c compile on QNX.
38930         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38931
38932 2009-07-22  Peter Simons  <simons@cryp.to>
38933
38934         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38935         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38936         * lib/md4.h: Likewise.
38937         * lib/md5.h: Likewise.
38938         * lib/sha1.h: Likewise.
38939         * lib/sha256.h: Likewise.
38940         * lib/sha512.h: Likewise.
38941
38942         tests-sha1: don't assign literal string to 'char *' variable
38943         * tests/test-sha1.c (main): Declare locals with "const" to match
38944         attributes of the right hand side.
38945
38946 2009-07-21  Eric Blake  <ebb9@byu.net>
38947
38948         dup2: fix more mingw problems
38949         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38950         fd to itself.
38951         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38952         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38953         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38954         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38955         care of mingw bugs.
38956
38957 2009-07-21  Jim Meyering  <meyering@redhat.com>
38958
38959         vc-list-files: avoid failure when /bin/sh is dash
38960         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38961         On some Debian based systems, /bin/sh is a symlink to dash, and running
38962         this command would omit the "/" following each 'tests' prefix:
38963           dash -x build-aux/vc-list-files -C . tests
38964         That is because bash and dash work differently:
38965           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38966           bash ok
38967           dash odd
38968
38969 2009-07-21  Eric Blake  <ebb9@byu.net>
38970
38971         dup2-tests: test previous patch
38972         * modules/dup2-tests: New file.
38973         * tests/test-dup2.c: Likewise.
38974         * tests/test-open.c (main): Avoid unspecified behavior.
38975         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38976         test.
38977
38978         dup2: work around mingw and cygwin 1.5 bug
38979         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38981         * modules/unistd (Makefile.am): Substitute it.
38982         * lib/unistd.in.h (dup2): Declare the replacement.
38983         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38984         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38985         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38986         * modules/execute (Depends-on): Add dup2.
38987         * modules/fseterr (Depends-on): Likewise.
38988         * modules/pipe (Depends-on): Likewise.
38989         * modules/posix_spawn-internal (Depends-on): Likewise.
38990
38991 2009-07-21  Bruno Haible  <bruno@clisp.org>
38992
38993         * modules/.gitattributes: New file.
38994
38995 2009-07-20  Bruno Haible  <bruno@clisp.org>
38996
38997         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38998         (main): Use it.
38999
39000 2009-07-20  Eric Blake  <ebb9@byu.net>
39001
39002         test-pipe: make a bit more robust.
39003         * tests/test-pipe.c (myerr): Allow error messages regardless of
39004         what we do to stderr.
39005         (test_pipe): Rearrange to avoid deadlock.
39006         (child_main): Try a larger read, to ensure we avoided deadlock.
39007         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39008         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39009         if misused.
39010
39011 2009-07-19  Jim Meyering  <meyering@redhat.com>
39012
39013         fts: avoid false-positive cycle-detection
39014         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39015         for each new command line argument.
39016
39017 2009-07-19  Bruno Haible  <bruno@clisp.org>
39018
39019         Fix build error on mingw with the modules sys_select and unistd.
39020         * modules/acl-tests (Depends-on): Add close.
39021         * modules/binary-io-tests (Depends-on): Likewise.
39022         * modules/closein-tests (Depends-on): Likewise.
39023         * modules/flock-tests (Depends-on): Likewise.
39024         * modules/fsync-tests (Depends-on): Likewise.
39025         * modules/lseek-tests (Depends-on): Likewise.
39026         * modules/pipe-tests (Depends-on): Likewise.
39027         * modules/posix_spawn-tests (Depends-on): Likewise.
39028         * modules/posix_spawnp-tests (Depends-on): Likewise.
39029         * modules/stat-time-tests (Depends-on): Likewise.
39030         * modules/yesno-tests (Depends-on): Likewise.
39031
39032 2009-07-19  Bruno Haible  <bruno@clisp.org>
39033
39034         Unify conditionals.
39035         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39036         macros, not at the compiler macros.
39037         * lib/pipe.c: Likewise.
39038         * lib/execute.c: Likewise.
39039         * lib/spawni.c: Likewise.
39040
39041 2009-07-19  Bruno Haible  <bruno@clisp.org>
39042
39043         Fix handling of closed stdin/stdout/stderr on mingw.
39044         * lib/w32spawn.h: Include unistd.h.
39045         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39046         file descriptor with O_NOINHERIT flag.
39047         (fd_safer_noinherit): New function, based on fd-safer.c.
39048         (dup_safer_noinherit): New function, based on dup-safer.c.
39049         (undup_safer_noinherit): New function.
39050         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39051         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39052         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39053         instead of fd_safer.
39054         * tests/test-pipe.c: Include <windows.h>.
39055         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39056         result.
39057
39058         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39059         from main.
39060         (test_pipe): Pass an extra argument for disambiguation.
39061         (main): Invoke parent_main or child_main.
39062
39063         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39064         consistently.
39065
39066 2009-07-18  Eric Blake  <ebb9@byu.net>
39067
39068         test-pipe: fix mingw build
39069         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39070
39071 2009-07-18  Bruno Haible  <bruno@clisp.org>
39072
39073         * modules/pipe-tests (Makefile.am): Fix typo.
39074
39075 2009-07-18  Eric Blake  <ebb9@byu.net>
39076
39077         error: fix mingw build
39078         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39079         Reported by Bruno Haible.
39080
39081         error: avoid undefined use of stdout
39082         * lib/error.c (error, error_at_line): Check that fd 1 is open
39083         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39084         is handling faults and the close_stdout module wants to report the
39085         detection of closed stdout as an error.
39086
39087 2009-07-17  Eric Blake  <ebb9@byu.net>
39088
39089         pipe: be robust in face of closed fds
39090         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39091         should cause child to misbehave.
39092         * modules/pipe-tests: New module.
39093         * tests/test-pipe.c: New file.
39094         * tests/test-pipe.sh: New file.
39095         Reported by Akim Demaille.
39096
39097 2009-07-14  Bruno Haible  <bruno@clisp.org>
39098
39099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39100         Reported by anonymous kc.
39101
39102 2009-07-07  Jim Meyering  <meyering@redhat.com>
39103
39104         maint.mk: don't look for translatable strings in *.m4 or *.mk
39105         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39106         when searching for translatable strings.
39107
39108 2009-07-05  Jim Meyering  <meyering@redhat.com>
39109
39110         remove superfluous parentheses in STREQ definition
39111         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39112         * lib/getugroups.c (STREQ): Likewise.
39113         * lib/fnmatch.c (STREQ): Likewise.
39114         Spotted by Bruno Haible.
39115
39116 2009-07-04  Jim Meyering  <meyering@redhat.com>
39117
39118         argv-iter: new module
39119         * MODULES.html.sh: Add argv-iter.
39120         * lib/argv-iter.c, lib/argv-iter.h: New files.
39121         * modules/argv-iter: New file.
39122         * modules/argv-iter-tests: New file.
39123         * tests/test-argv-iter.c: Test it.
39124
39125 2009-07-04  Bruno Haible  <bruno@clisp.org>
39126
39127         Fix assertion.
39128         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39129         contains more exact copies of a given entry than file2, leave the extra
39130         copies unpaired rather than aborting.
39131         Reported by Eric Blake.
39132
39133 2009-07-02  Bruno Haible  <bruno@clisp.org>
39134
39135         Speedup git-merge-changelog for git cherry-pick.
39136         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39137         (entries_mapping_get): New function, extracted from compute_mapping.
39138         (entries_mapping_reverse_get): New function.
39139         (compute_mapping): Add a 'full' argument. Return the result in a
39140         'struct entries_mapping'.
39141         (main): Update. Access the mappings through entries_mapping_get.
39142         Reported by Eric Blake.
39143
39144 2009-07-02  Bruno Haible  <bruno@clisp.org>
39145
39146         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39147         best_i.
39148
39149 2009-07-02  Bruno Haible  <bruno@clisp.org>
39150
39151         Speed up approximate search for matching ChangeLog entries.
39152         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39153         argument. Call fstrcmp_bounded instead of fstrcmp.
39154         (compute_mapping, try_split_merged_entry, main): Update callers.
39155
39156 2009-07-02  Bruno Haible  <bruno@clisp.org>
39157
39158         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39159
39160 2009-06-30  Bruno Haible  <bruno@clisp.org>
39161
39162         Reduce the number of uc_is_cased calls.
39163         * lib/unicase.h (casing_suffix_context_t): Add
39164         'first_char_except_ignorable' field.
39165         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39166         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39167         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39168         Update initializer.
39169         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39170         case-ignorable characters.
39171         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39172         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39173         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39174         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39175         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39176
39177 2009-06-30  Bruno Haible  <bruno@clisp.org>
39178
39179         Tests for module 'unicase/ignorable'.
39180         * modules/unicase/ignorable-tests: New file.
39181         * tests/unicase/test-ignorable.c: New file, generated by
39182         gen-uni-tables.
39183
39184         Tests for module 'unicase/cased'.
39185         * modules/unicase/cased-tests: New file.
39186         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39187         * tests/unicase/test-predicate-part1.h: New file, derived from
39188         tests/unictype/test-predicate-part1.h.
39189         * tests/unicase/test-predicate-part2.h: New file, same as
39190         tests/unictype/test-predicate-part2.h.
39191
39192         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39193         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39194         (output_casing_properties): New function.
39195         (main): Call it.
39196         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39197         * lib/unicase/cased.c: Include unictype/bitmap.h.
39198         (uc_is_cased): Define through a bitmap lookup.
39199         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39200         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39201         (uc_is_case_ignorable): Define through a bitmap lookup.
39202         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39203         lib/unictype/bitmap.h.
39204         (Depends-on): Add inline. Clean up.
39205         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39206         lib/unictype/bitmap.h.
39207         (Depends-on): Add inline. Clean up.
39208         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39209         recognition.
39210         * tests/unicase/test-u16-tolower.c (main): Likewise.
39211         * tests/unicase/test-u32-tolower.c (main): Likewise.
39212
39213 2009-06-30  Bruno Haible  <bruno@clisp.org>
39214
39215         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39216         * lib/unicase/u16-casemap.c: Likewise.
39217         * lib/unicase/u32-casemap.c: Likewise.
39218
39219 2009-06-29  Bruno Haible  <bruno@clisp.org>
39220
39221         Define u32_casefold as a wrapper around u32_ct_casefold.
39222         * lib/unicase/u32-casefold.c: Update.
39223         * modules/unicase/u32-casefold (Depends-on): Add
39224         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39225         unicase/empty-suffix-context. Clean up.
39226
39227         Define u16_casefold as a wrapper around u16_ct_casefold.
39228         * lib/unicase/u16-casefold.c: Update.
39229         * modules/unicase/u16-casefold (Depends-on): Add
39230         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39231         unicase/empty-suffix-context. Clean up.
39232
39233         Define u8_casefold as a wrapper around u8_ct_casefold.
39234         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39235         * lib/unicase/u8-casefold.c: Update.
39236         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39237         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39238
39239         Define u32_totitle as a wrapper around u32_ct_totitle.
39240         * lib/unicase/u32-totitle.c: Update.
39241         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39242         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39243
39244         Define u16_totitle as a wrapper around u16_ct_totitle.
39245         * lib/unicase/u16-totitle.c: Update.
39246         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39247         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39248
39249         Define u8_totitle as a wrapper around u8_ct_totitle.
39250         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39251         functions.
39252         (FUNC): Delegate to U_CT_TOTITLE.
39253         * lib/unicase/u8-totitle.c: Update.
39254         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39255         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39256
39257         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39258         invocation.
39259         * modules/unicase/u32-tolower (Depends-on): Add
39260         unicase/empty-prefix-context, unicase/empty-suffix-context.
39261
39262         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39263         invocation.
39264         * modules/unicase/u16-tolower (Depends-on): Add
39265         unicase/empty-prefix-context, unicase/empty-suffix-context.
39266
39267         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39268         * modules/unicase/u8-tolower (Depends-on): Add
39269         unicase/empty-prefix-context, unicase/empty-suffix-context.
39270
39271         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39272         invocation.
39273         * modules/unicase/u32-toupper (Depends-on): Add
39274         unicase/empty-prefix-context, unicase/empty-suffix-context.
39275
39276         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39277         invocation.
39278         * modules/unicase/u16-toupper (Depends-on): Add
39279         unicase/empty-prefix-context, unicase/empty-suffix-context.
39280
39281         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39282         * modules/unicase/u8-toupper (Depends-on): Add
39283         unicase/empty-prefix-context, unicase/empty-suffix-context.
39284
39285         New module 'unicase/u32-ct-casefold'.
39286         * lib/unicase/u32-ct-casefold.c: New file.
39287         * modules/unicase/u32-ct-casefold: New file.
39288
39289         New module 'unicase/u16-ct-casefold'.
39290         * lib/unicase/u16-ct-casefold.c: New file.
39291         * modules/unicase/u16-ct-casefold: New file.
39292
39293         New module 'unicase/u8-ct-casefold'.
39294         * lib/unicase/u8-ct-casefold.c: New file.
39295         * lib/unicase/u-ct-casefold.h: New file, derived from
39296         lib/unicase/u-casefold.h.
39297         * modules/unicase/u8-ct-casefold: New file.
39298
39299         New module 'unicase/u32-ct-totitle'.
39300         * lib/unicase/u32-ct-totitle.c: New file.
39301         * modules/unicase/u32-ct-totitle: New file.
39302
39303         New module 'unicase/u16-ct-totitle'.
39304         * lib/unicase/u16-ct-totitle.c: New file.
39305         * modules/unicase/u16-ct-totitle: New file.
39306
39307         New module 'unicase/u8-ct-totitle'.
39308         * lib/unicase/u8-ct-totitle.c: New file.
39309         * lib/unicase/u-ct-totitle.h: New file, derived from
39310         lib/unicase/u-totitle.h.
39311         * modules/unicase/u8-ct-totitle: New file.
39312
39313         New module 'unicase/u32-ct-tolower'.
39314         * lib/unicase/u32-ct-tolower.c: New file.
39315         * modules/unicase/u32-ct-tolower: New file.
39316
39317         New module 'unicase/u16-ct-tolower'.
39318         * lib/unicase/u16-ct-tolower.c: New file.
39319         * modules/unicase/u16-ct-tolower: New file.
39320
39321         New module 'unicase/u8-ct-tolower'.
39322         * lib/unicase/u8-ct-tolower.c: New file.
39323         * modules/unicase/u8-ct-tolower: New file.
39324
39325         New module 'unicase/u32-ct-toupper'.
39326         * lib/unicase/u32-ct-toupper.c: New file.
39327         * modules/unicase/u32-ct-toupper: New file.
39328
39329         New module 'unicase/u16-ct-toupper'.
39330         * lib/unicase/u16-ct-toupper.c: New file.
39331         * modules/unicase/u16-ct-toupper: New file.
39332
39333         New module 'unicase/u8-ct-toupper'.
39334         * lib/unicase/u8-ct-toupper.c: New file.
39335         * modules/unicase/u8-ct-toupper: New file.
39336
39337         Add context arguments to u*_casemap functions.
39338         * lib/unicase/unicasemap.h: Include unicase.h.
39339         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39340         suffix_context arguments.
39341         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39342         functions.
39343         (FUNC): Add prefix_context and suffix_context arguments. Use
39344         uc_is_cased and uc_is_case_ignorable.
39345         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39346         * lib/unicase/u16-casemap.c: Likewise.
39347         * lib/unicase/u32-casemap.c: Likewise.
39348         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39349         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39350         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39351         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39352         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39353         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39354
39355         New module 'unicase/u32-suffix-context'.
39356         * lib/unicase/u32-suffix-context.c: New file.
39357         * modules/unicase/u32-suffix-context: New file.
39358
39359         New module 'unicase/u16-suffix-context'.
39360         * lib/unicase/u16-suffix-context.c: New file.
39361         * modules/unicase/u16-suffix-context: New file.
39362
39363         New module 'unicase/u8-suffix-context'.
39364         * lib/unicase/u8-suffix-context.c: New file.
39365         * lib/unicase/u-suffix-context.h: New file.
39366         * modules/unicase/u8-suffix-context: New file.
39367
39368         New module 'unicase/empty-suffix-context'.
39369         * lib/unicase/empty-suffix-context.c: New file.
39370         * modules/unicase/empty-suffix-context: New file.
39371
39372         New module 'unicase/u32-prefix-context'.
39373         * lib/unicase/u32-prefix-context.c: New file.
39374         * modules/unicase/u32-prefix-context: New file.
39375
39376         New module 'unicase/u16-prefix-context'.
39377         * lib/unicase/u16-prefix-context.c: New file.
39378         * modules/unicase/u16-prefix-context: New file.
39379
39380         New module 'unicase/u8-prefix-context'.
39381         * lib/unicase/u8-prefix-context.c: New file.
39382         * lib/unicase/u-prefix-context.h: New file.
39383         * lib/unicase/context.h: New file.
39384         * modules/unicase/u8-prefix-context: New file.
39385
39386         New module 'unicase/empty-prefix-context'.
39387         * lib/unicase/empty-prefix-context.c: New file.
39388         * modules/unicase/empty-prefix-context: New file.
39389
39390         New module 'unicase/ignorable'.
39391         * lib/unicase/ignorable.c: New file.
39392         * modules/unicase/ignorable: New file.
39393
39394         New module 'unicase/cased'.
39395         * lib/unicase/caseprop.h: New file.
39396         * lib/unicase/cased.c: New file.
39397         * modules/unicase/cased: New file.
39398
39399         New functions for case mapping of substrings.
39400         * lib/unicase.h (casing_prefix_context_t): New type.
39401         (unicase_empty_prefix_context): New variable.
39402         (u8_casing_prefix_context, u16_casing_prefix_context,
39403         u32_casing_prefix_context, u8_casing_prefixes_context,
39404         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39405         declarations.
39406         (casing_suffix_context_t): New type.
39407         (unicase_empty_suffix_context): New variable.
39408         (u8_casing_suffix_context, u16_casing_suffix_context,
39409         u32_casing_suffix_context, u8_casing_suffixes_context,
39410         u16_casing_suffixes_context, u32_casing_suffixes_context,
39411         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39412         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39413         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39414         declarations.
39415
39416 2009-06-28  Jim Meyering  <meyering@redhat.com>
39417
39418         boostrap: indent only with spaces
39419         * build-aux/bootstrap: Indent only with spaces, never TABs.
39420
39421         bootstrap: split long lines
39422         * build-aux/bootstrap: Keep line length < 80.
39423
39424         bootstrap: sync from coreutils
39425         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39426         just as autoreconf does.  Verify a list of prerequisite
39427         package-name,version-number pairs if defined in bootstrap.conf.
39428         Refer to README-prereq, if prerequisites are not satisfied.
39429
39430 2009-06-27  Eric Blake  <ebb9@byu.net>
39431
39432         tests: add test for bogus NULL definition
39433         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39434         * tests/test-stdlib.c: Likewise.
39435         * tests/test-string.c: Likewise.
39436         * tests/test-locale.c: Likewise.
39437         * tests/test-unistd.c: Likewise.
39438         * modules/stdio-tests (Depends-on): Add verify.
39439         * modules/stdlib-tests (Depends-on): Likewise.
39440         * modules/string-tests (Depends-on): Likewise.
39441         * modules/locale-tests (Depends-on): Likewise.
39442         * modules/unistd-tests (Depends-on): Likewise.
39443
39444 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39445
39446         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39447         self-explaining comment.
39448         * m4/selinux-selinux-h: Update serial.
39449         (gl_LIBSELINUX): New macro, adding a warning for missing development
39450         packages to code extracted from...
39451         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39452         Add warning for missing development packages here, too.
39453
39454 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39455
39456         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39457
39458 2009-06-25  Eric Blake  <ebb9@byu.net>
39459
39460         version-etc: fix regression
39461         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39462         gcc.
39463         (version_etc): Use it, to catch bugs with trailing NULL.
39464         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39465         (version_etc_va): Fix logic bug.
39466         * modules/version-etc-tests: Add test.
39467         * tests/test-version-etc.c: New file.
39468         * tests/test-version-etc.sh: Likewise.
39469
39470 2009-06-25  Sam Steingold  <sds@gnu.org>
39471
39472         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39473         mbtowc declaration.
39474
39475 2009-06-25  Eric Blake  <ebb9@byu.net>
39476
39477         fpurge: migrate into <stdio.h>
39478         * lib/fpurge.h: Delete...
39479         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39480         * lib/fpurge.c (fpurge): Change declaring header.
39481         * modules/fpurge (Files): Drop deleted file.
39482         (Depends-on): Add stdio.
39483         (configure.ac): Set witness.
39484         * modules/stdio (Makefile.am): Support fpurge macros.
39485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39486         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39487         * lib/fflush.c: Update client.
39488         * tests/test-fpurge.c: Likewise.
39489         * NEWS: Mention the change.
39490
39491 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39492
39493         * lib/argp-version-etc.c (program_authors): Add const
39494         qualifier.
39495         * lib/version-etc.c: Fix typos in the comments.
39496         * modules/argp-version-etc: Depends on version-etc.
39497
39498 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39499
39500         argp-version-etc: new module.
39501
39502         * lib/argp-version-etc.c: New file.
39503         * lib/argp-version-etc.h: New file.
39504         * modules/argp-version-etc: New file.
39505         * modules/argp-version-etc-tests: New file.
39506         * tests/test-argp-version-etc.c: New test.
39507         * tests/test-argp-version-etc-1.sh: New test.
39508
39509 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39510
39511         Provide additional interfaces and documentation for version-etc
39512         module.
39513
39514         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39515         interfaces.
39516         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39517         prototypes.
39518
39519 2009-06-24  Bruno Haible  <bruno@clisp.org>
39520
39521         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39522         HAVE_LIB${NAME} macro.
39523         Reported by Sam Steingold <sds@gnu.org>.
39524
39525 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39526
39527         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39528         needed.
39529
39530 2009-06-21  Bruno Haible  <bruno@clisp.org>
39531
39532         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39533         work.
39534         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39535         together with LIB${NAME}, LTLIB${NAME}.
39536         Reported by Sam Steingold <sds@gnu.org>.
39537
39538 2009-06-20  Jim Meyering  <meyering@redhat.com>
39539
39540         tests: make sc_require_test_exit_idiom more generic
39541         * top/maint.mk (Exit_witness_file): New overridable variable.
39542         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39543         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39544
39545 2009-06-19  Jim Meyering  <meyering@redhat.com>
39546
39547         hash: reverse order of src/dst parameters in an internal interface
39548         * lib/hash.c (transfer_entries): Reverse order of parameters to
39549         put DST before SRC.  Adjust callers.
39550
39551         tests: test-hash: avoid wholesale duplication
39552         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39553         Instead, use a loop and add a single conditional.
39554
39555         tests: test-hash: allow seed selection via a command line argument
39556         * tests/test-hash.c (get_seed): New function.
39557         (main): Use it.
39558
39559 2009-06-19  Eric Blake  <ebb9@byu.net>
39560
39561         hash: avoid memory leak on allocation failure
39562         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39563         failure.  Factor repeated algorithm...
39564         (transfer_entries): ...into new helper routine.
39565         (hash_delete): React to hash_rehash return value.
39566
39567         hash: reduce memory pressure in hash_rehash no-op case
39568         * lib/hash.c (next_prime): Avoid overflow.
39569         (hash_initialize): Factor bucket size computation...
39570         (compute_bucket_size): ...into new helper function.
39571         (hash_rehash): Use new function and open coding to reduce memory
39572         pressure, and avoid a memory leak in USE_OBSTACK code.
39573         Reported by Jim Meyering.
39574
39575 2009-06-18  Eric Blake  <ebb9@byu.net>
39576
39577         hash: make rotation more obvious
39578         * modules/hash (Depends-on): Add bitrotate and stdint.
39579         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39580         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39581         (SIZE_MAX): Rely on headers for definition.
39582         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39583         (raw_hasher): Use rotr_sz.
39584         Suggested by Jim Meyering.
39585
39586         hash: fix memory leak in last patch
39587         * lib/hash.c (hash_rehash): Avoid memory leak.
39588
39589         hash: avoid no-op rehashing
39590         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39591
39592         hash: provide default callback functions
39593         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39594         (hash_initialize): Use them as defaults.
39595         * tests/test-hash.c (main): Test this.
39596
39597         hash: minor optimization
39598         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39599         when possible.
39600         (hash_initialize): Document this promise.
39601         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39602         * tests/test-hash.c (hash_compare_strings): Test this.
39603
39604 2009-06-18  Bruno Haible  <bruno@clisp.org>
39605
39606         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39607         going to be replaced anyway.
39608
39609 2009-06-18  Bruno Haible  <bruno@clisp.org>
39610
39611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39612         in one place.
39613         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39614         be replaced anyway.
39615
39616 2009-06-18  Eric Blake  <ebb9@byu.net>
39617
39618         hash: check for resize before insertion
39619         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39620         threshold before insertion, so that a pathological hash_rehash
39621         that fills every bucket can still trigger another rehash.
39622
39623 2009-06-18  Jim Meyering  <meyering@redhat.com>
39624
39625         hash-tests: add a loop around the small tests
39626         * tests/test-hash.c (main): Repeat small tests with selected
39627         small initial table sizes.
39628
39629 2009-06-17  Eric Blake  <ebb9@byu.net>
39630
39631         hash: minor cleanups
39632         * lib/hash.h (hash_entry): Make opaque, by moving...
39633         * lib/hash.c (hash_entry): ...here.
39634         (hash_insert): Clarify restrictions on what can be inserted.
39635         (hash_get_next): Clarify when it is safe to remove an element
39636         during traversal.
39637         (check_tuning): Skip verification when tuning is known safe.
39638         (hash_initialize): Clarify restrictions on tuning.
39639
39640 2009-06-17  Jim Meyering  <jim@meyering.net>
39641         and Eric Blake  <ebb9@byu.net>
39642
39643         hash-tests: new module
39644         * modules/hash-tests: New file.
39645         * tests/test-hash.c: New file.
39646
39647 2009-06-17  Eric Blake  <ebb9@byu.net>
39648
39649         strstr-simple: document new module
39650         * MODULES.html.sh: Document new module.
39651
39652         strstr, strcasestr: replace on platforms with broken memchr
39653         * modules/strstr: Split into...
39654         * modules/strstr-simple: ...new module that does not care about
39655         performance, but does care about glibc bug.
39656         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39657         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39658         if platform memchr is broken, per Debian bug 521737.
39659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39660         memchr.
39661         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39662         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39663         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39664         * modules/mountlist (Depends-on): Add strstr-simple.
39665         * modules/gen-uni-tables (Depends-on): Likewise.
39666         * modules/argz (Depends-on): Add strstr.
39667
39668 2009-06-17  Bruno Haible  <bruno@clisp.org>
39669
39670         * modules/posix_spawn-internal (Depends-on): Add errno.
39671
39672 2009-06-17  Bruno Haible  <bruno@clisp.org>
39673
39674         Define missing ESTALE on Interix 3.5.
39675         * lib/errno.in.h (ESTALE): Assign a value if missing.
39676         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39678         missing.
39679         * doc/posix-headers/errno.texi: Mention the Interix bug.
39680         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39681
39682 2009-06-15  Eric Blake  <ebb9@byu.net>
39683
39684         memchr, memchr2: add valgrind exception
39685         * lib/memchr.valgrind: New file.
39686         * lib/memchr2.valgrind: New file.
39687         * modules/memchr (Files): Distribute valgrind file.
39688         * modules/memchr2 (Files): Likewise.
39689
39690         docs: memchr is no longer obsolete
39691         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39692         * lib/string.in.h (memchr): Simplify logic.
39693
39694 2009-06-14  Jim Meyering  <meyering@redhat.com>
39695
39696         link-follow: fix the "checking..." message to not mention trailing slash
39697         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39698         never considered trailing slashes.
39699
39700 2009-06-14  Bruno Haible  <bruno@clisp.org>
39701
39702         * m4/memchr.m4: Mention also the bug on IA-64.
39703         * doc/posix-functions/memchr.texi: Likewise.
39704
39705 2009-06-12  Eric Blake  <ebb9@byu.net>
39706
39707         memchr: detect broken x86_64 and alpha implementations
39708         * modules/memchr-tests (Depends-on): Move mmap detection...
39709         * modules/memchr (Depends-on): ...here.
39710         (configure.ac): Set indicator.
39711         * lib/string.in.h (memchr): Declare replacement.
39712         * modules/string (Makefile.am): Trigger replacement.
39713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39714         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39715         bugs.
39716         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39717         * modules/getpagesize (License): Relax license.
39718
39719 2009-06-11  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/idpriv.h: Add more references.
39722
39723 2009-06-08  Bruno Haible  <bruno@clisp.org>
39724
39725         Tests for module 'idpriv-droptemp'.
39726         * modules/idpriv-droptemp-tests: New file.
39727         * tests/test-idpriv-droptemp.sh: New file.
39728         * tests/test-idpriv-droptemp.su.sh: New file.
39729         * tests/test-idpriv-droptemp.c: New file.
39730
39731         New module 'idpriv-droptemp'.
39732         * lib/idpriv-droptemp.c: New file.
39733         * modules/idpriv-droptemp: New file.
39734
39735 2009-06-08  Bruno Haible  <bruno@clisp.org>
39736
39737         Tests for module 'idpriv-drop'.
39738         * modules/idpriv-drop-tests: New file.
39739         * tests/test-idpriv-drop.sh: New file.
39740         * tests/test-idpriv-drop.su.sh: New file.
39741         * tests/test-idpriv-drop.c: New file.
39742
39743         New module 'idpriv-drop'.
39744         * lib/idpriv.h: New file.
39745         * lib-idpriv-drop.c: New file.
39746         * m4/idpriv.m4: New file.
39747         * modules/idpriv-drop: New file.
39748
39749 2009-06-08  Bruno Haible  <bruno@clisp.org>
39750
39751         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39752         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39753         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39754         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39755         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39756         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39757         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39758
39759 2009-06-08  Eric Blake  <ebb9@byu.net>
39760
39761         test-strstr: use memory fence, when possible
39762         * tests/test-strstr.c (main): Use memory fence, in order to be
39763         more likely to trigger Debian bug 521737.
39764         * modules/strstr-tests (Files): Pull in additional files.
39765
39766         memchr: no longer obsolete, for wider field testing
39767         * modules/memchr (Status, Notice): Delete, this module is no
39768         longer obsolete.
39769         * modules/vasnprintf (Depends-on): Add memchr.
39770
39771 2009-06-07  Jim Meyering  <meyering@redhat.com>
39772
39773         hash: declare some functions with the warn_unused_result attribute
39774         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39775
39776 2009-06-07  Bruno Haible  <bruno@clisp.org>
39777
39778         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39779         Reported by Eric Blake.
39780
39781 2009-06-06  Eric Blake  <ebb9@byu.net>
39782
39783         test-alignof: fix typo with long double
39784         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39785         compiler error.
39786
39787 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39788
39789         Escape non-texinfo { and }s.
39790         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39791         markup error.
39792
39793 2009-06-04  Jim Meyering  <meyering@redhat.com>
39794
39795         gitlog-to-changelog: don't infloop on an empty commit log
39796         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39797         Reported by Boris Petersen <transacid@centerim.org>.
39798
39799 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39800
39801         version-etc: extend for packagers
39802         Add three new configure options, intended for packagers:
39803           --with-packager="packager name"
39804           --with-packager-version="packager-specific version"
39805           --with-packager-bug-reports="packager bug reporting"
39806         An example with coreutils:
39807           $ ./configure \
39808             --with-packager=Gentoo \
39809             --with-packager-bug-report=http://bugs.gentoo.org/ \
39810             --with-packager-version="patchset 1.6"
39811           $ ./src/ls --version | head -n2
39812           ls (GNU coreutils) 7.1-dirty
39813           Packaged by Gentoo (patchset 1.6)
39814         Note that the bug reporting info via --help doesn't show up because
39815         coreutils uses its own custom emit_bug_reporting_address() implementation
39816         in src/system.h.  If it didn't, it'd look like:
39817           $ ./src/ls --help | tail -n4
39818           Report bugs to <bug-coreutils@gnu.org>.
39819           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39820           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39821           General help using GNU software: <http://www.gnu.org/gethelp/>.
39822         * lib/version-etc.c: Print new information, if provided.
39823         * m4/version-etc.m4: New file.
39824         * modules/version-etc (Files): Add m4/version-etc.m4.
39825         (configure.ac): Add gl_VERSION_ETC.
39826
39827 2009-05-31  Bruno Haible  <bruno@clisp.org>
39828
39829         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39830         and 'int64_t'.
39831         * modules/alignof-tests (Dependencies): Add stdint.
39832         Reported by Eric Blake.
39833
39834 2009-05-31  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39837         restriction due to compiler bugs.
39838         Reported by Eric Blake.
39839
39840 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39841             Bruno Haible  <bruno@clisp.org>
39842
39843         Fix test-alignof failure.
39844         * lib/alignof.h (alignof_slot): New macro.
39845         (alignof_type): New macro, with the same semantics as the previous
39846         'alignof'.
39847         (alignof): Alias to alignof_slot.
39848         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39849         check that the results are usable as constant expressions.
39850
39851 2009-05-31  Bruno Haible  <bruno@clisp.org>
39852
39853         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39854         * tests/test-memchr.c (main): Check that memchr does not read past the
39855         first occurrence of the byte.
39856         * tests/test-strstr.c (main): Update comment.
39857         Suggested by Eric Blake.
39858
39859 2009-05-30  Bruno Haible  <bruno@clisp.org>
39860
39861         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39862         detail how to use dumpbin.
39863         Reported by David Byron <dbyron@dbyron.com>.
39864
39865 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39866
39867         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39868
39869 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39870
39871         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39872
39873 2009-05-28  Bruno Haible  <bruno@clisp.org>
39874
39875         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39876         build-aux/ files.
39877
39878 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39879
39880         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39881
39882 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39883
39884         * gnulib-tool (sed_transform_main_lib_file)
39885         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39886         regexps.
39887
39888 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39889
39890         * tests/test-strstr.c: Add another self-test.
39891         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39892         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39893
39894 2009-05-23  Bruno Haible  <bruno@clisp.org>
39895
39896         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39897         change.
39898
39899 2009-05-21  Bruno Haible  <bruno@clisp.org>
39900
39901         Simplify use of mode_t varargs.
39902         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39903         uses 'mode_t' or 'int'.
39904         * lib/openat.c (openat): Likewise.
39905         * lib/open-safer.c (open_safer): Likewise.
39906         * m4/mode_t.m4: New file.
39907         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39908         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39909         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39910         * modules/open (Files): Add m4/mode_t.m4.
39911         * modules/openat (Files): Likewise.
39912         * modules/fcntl-safer (Files): Likewise.
39913         Suggested by Eric Blake.
39914
39915 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39916
39917         * doc/glibc-functions/fallocate.texi: New file.
39918         * doc/gnulib.texi: Include it.
39919
39920 2009-05-21  Eric Blake  <ebb9@byu.net>
39921             Bruno Haible  <bruno@clisp.org>
39922
39923         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39924         invocations.
39925         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39926
39927 2009-05-21  Eric Blake  <ebb9@byu.net>
39928             Bruno Haible  <bruno@clisp.org>
39929
39930         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39931         include_next. Fix of 2008-11-20 commit.
39932         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39933         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39934         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39935         NEXT_MATH_H.
39936         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39937         instead of NEXT_MATH_H.
39938
39939 2009-05-21  Bruno Haible  <bruno@clisp.org>
39940
39941         Avoid redefinition warnings for SIZE_MAX.
39942         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39943         Reported by Simon Josefsson.
39944
39945 2009-05-21  Bruno Haible  <bruno@clisp.org>
39946
39947         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39948         AC_CACHE_VAL.
39949
39950 2009-05-20  Bruno Haible  <bruno@clisp.org>
39951
39952         Make zeroptr.h work on mingw.
39953         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39954         mprotect.
39955         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39956         * modules/memchr2-tests (configure.ac): Likewise.
39957         * modules/memcmp-tests (configure.ac): Likewise.
39958         * modules/memmem-tests (configure.ac): Likewise.
39959         * modules/memrchr-tests (configure.ac): Likewise.
39960         Reported by Simon Josefsson.
39961
39962 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39963
39964         * tests/test-glob.c: Include string.h for strcmp prototype.
39965
39966 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39967
39968         * modules/getdelim (Depends-on): Add explicit stdint, although it
39969         was implicitly already pulled in via realloc-posix.
39970         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39971
39972 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39973
39974         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39975         G. Christensen" <tgc@jupiterrise.com>.
39976         * m4/sys_socket_h.m4: Check for sa_family_t.
39977         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39978         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39979         * tests/test-sys_socket.c: Check that sa_family_t works.
39980
39981 2009-05-18  Eric Blake  <ebb9@byu.net>
39982
39983         maint.mk: allow gnulib_dir in VPATH build
39984         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39985
39986 2009-05-15  Jim Meyering  <meyering@redhat.com>
39987
39988         maint.mk: Give gnulib_dir a default definition.
39989         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39990         Thus, most packages no longer need to specify this variable in cfg.mk
39991
39992 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39993
39994         rename.m4: fix typos that would make non-mingw cross-configure fail
39995         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39996
39997 2009-05-13  Eric Blake  <ebb9@byu.net>
39998
39999         mmap-anon: avoid out-of-order autoconf expansion
40000         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40001         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40002         * modules/memchr-tests (Depends-on): Add extensions.
40003         * modules/memchr2-tests (Depends-on): Add extensions.
40004         * modules/memcmp-tests (Depends-on): Add extensions.
40005         * modules/memmem-tests (Depends-on): Add extensions.
40006         * modules/memrchr-tests (Depends-on): Add extensions.
40007
40008 2009-05-13  Bruno Haible  <bruno@clisp.org>
40009
40010         Make some tests ISO C 99 compliant.
40011         * tests/zerosize-ptr.h: New file.
40012         * tests/test-memchr.c: Include zerosize-ptr.h.
40013         (main): Use a zero-size object pointer instead of NULL.
40014         * tests/test-memchr2.c: Include zerosize-ptr.h.
40015         (main): Use a zero-size object pointer instead of NULL.
40016         * tests/test-memcmp.c: Include zerosize-ptr.h.
40017         (main): Use a zero-size object pointer instead of NULL.
40018         * tests/test-memmem.c: Include zerosize-ptr.h.
40019         (main): Use a zero-size object pointer instead of NULL.
40020         * tests/test-memrchr.c: Include zerosize-ptr.h.
40021         (main): Use a zero-size object pointer instead of NULL.
40022         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40023         m4/mmap-anon.m4.
40024         (Depends-on): Add getpagesize.
40025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40026         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40027         m4/mmap-anon.m4.
40028         (Depends-on): Add getpagesize.
40029         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40030         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40031         m4/mmap-anon.m4.
40032         (Depends-on): Add getpagesize.
40033         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40034         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40035         m4/mmap-anon.m4.
40036         (Depends-on): Add getpagesize.
40037         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40038         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40039         m4/mmap-anon.m4.
40040         (Depends-on): Add getpagesize.
40041         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40042
40043 2009-05-12  Bruno Haible  <bruno@clisp.org>
40044
40045         Tests for module 'alignof'.
40046         * modules/alignof-tests: New file.
40047         * tests/test-alignof.c: New file.
40048
40049 2009-05-12  Bruno Haible  <bruno@clisp.org>
40050
40051         Fix alignof macro.
40052         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40053         vendor compilers that are always correct.
40054
40055 2009-05-12  Bruno Haible  <bruno@clisp.org>
40056
40057         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40058         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40059         not whether its fully works.
40060
40061 2009-05-12  Bruno Haible  <bruno@clisp.org>
40062
40063         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40064
40065 2009-05-12  Jim Meyering  <meyering@redhat.com>
40066
40067         * top/maint.mk: Adjust backslash alignment.
40068
40069 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40070
40071         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40072
40073 2009-05-11  Eric Blake  <ebb9@byu.net>
40074
40075         argp: avoid undefined behavior
40076         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40077         macros.
40078
40079 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40080
40081         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40082         user.name to prevent git commit from complaining.
40083
40084 2009-05-10  Bruno Haible  <bruno@clisp.org>
40085
40086         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40087         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40088         it rewrites every file name only once.
40089         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40090
40091 2009-05-08  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40094         instead of 'max'.
40095
40096 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40097
40098         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40099         sockaddr_storage test.
40100
40101 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40102
40103         * modules/sys_socket (Makefile.am): Substitute
40104         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40105         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40106         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40107         * tests/test-sys_socket.c: Check sockaddr_storage.
40108
40109 2009-05-08  Bruno Haible  <bruno@clisp.org>
40110
40111         New module 'alignof'.
40112         * lib/alignof.h: New file.
40113         * modules/alignof: New file.
40114
40115 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40116             Bruno Haible  <bruno@clisp.org>
40117
40118         Fix test-file-has-acl on FreeBSD.
40119         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40120         mask is implicitly added.
40121         * tests/test-file-has-acl.c: Include <signal.h>.
40122         (main): Terminate the test after 5 seconds.
40123         * modules/acl-tests (configure.ac): Check for alarm function.
40124
40125 2009-05-04  Bruno Haible  <bruno@clisp.org>
40126
40127         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40129         * modules/errno (configure.ac): Drop AC_REQUIRE.
40130         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40131         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40132
40133 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40134
40135         * modules/glob-tests: New module.
40136         * tests/test-glob.c: Add.
40137
40138 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40139
40140         * modules/fnmatch-tests: New module.
40141         * tests/test-fnmatch.c: Add.
40142
40143 2009-05-04  Eric Blake  <ebb9@byu.net>
40144
40145         maint: make the new no-submodule-changes rule VPATH-safe
40146         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40147
40148 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40149             Bruno Haible  <bruno@clisp.org>
40150
40151         acl: Fix infinite loop on FreeBSD.
40152         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40153         of return value from acl_get_entry.
40154         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40155         Likewise.
40156
40157 2009-05-03  Bruno Haible  <bruno@clisp.org>
40158
40159         * lib/acl-internal.h (acl_entries): Clarify return value.
40160         * lib/acl_entries.c (acl_entries): Likewise.
40161
40162 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40163
40164         Bug fix in acl module.
40165         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40166
40167 2009-05-03  Bruno Haible  <bruno@clisp.org>
40168
40169         Create gperf-generated file in the source dir, not in the build dir.
40170         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40171         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40172         * modules/unicase/locale-language (unicase/locale-languages.h):
40173         Likewise.
40174         * modules/unicase/special-casing (unicase/special-casing-table.h):
40175         Likewise.
40176         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40177         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40178         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40179         Reported by Ralf Wildenhues.
40180
40181 2009-05-03  Bruno Haible  <bruno@clisp.org>
40182
40183         * modules/fnmatch (Description, configure.ac): Taken from
40184         fnmatch-posix.
40185         * modules/fnmatch-posix: Turn into a symbolic reference to the
40186         'fnmatch' module, and deprecate.
40187         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40188
40189 2009-05-03  Bruno Haible  <bruno@clisp.org>
40190
40191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40192         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40193         Reported by Ralf Wildenhues.
40194
40195 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40196
40197         * m4/fnmatch.m4: Fix fnmatch re-define.
40198
40199 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40200
40201         priv-set: new module and tests; adapt write-any-file
40202         * lib/priv-set.c: New file.
40203         * lib/priv-set.h: New file.
40204         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40205         * lib/write-any-file.c: Simplify by using priv-set module.
40206         * m4/priv-set.m4: New file.
40207         * modules/priv-set: New file.
40208         * modules/unlinkdir: Add dependency on priv-set module.
40209         * modules/write-any-file: Likewise.
40210
40211         Tests for module 'priv-set'.
40212         * modules/priv-set-tests: New file.
40213         * tests/test-priv-set.c: New file.
40214
40215 2009-05-03  Jim Meyering  <meyering@redhat.com>
40216             Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40219         use the converted UTF-8 variant of the name instead.
40220
40221 2009-05-03  Jim Meyering  <meyering@redhat.com>
40222
40223         tests: tighten some getdate tests
40224         * tests/test-getdate.c (main): Tighten tests: require equality,
40225         not just greater than.  Set TZ envvar to UTC0.
40226
40227 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40228
40229         getdate: correctly interpret "next monday" when run on a Monday
40230         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40231         that e.g., "next tues" (when run on a tuesday) results in a date
40232         that is one week in the future, and not today's date.
40233         I.e., add a week when the wday is the same as the current one.
40234         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40235         and earlier by Martin Bernreuther and Jan Minář.
40236         * tests/test-getdate.c (main): Check that "next DAY" is always in
40237         the future and that "last DAY" is always in the past.
40238
40239 2009-05-02  Jim Meyering  <meyering@redhat.com>
40240
40241         build: ensure that a release build fails when a submodule is unclean
40242         * top/maint.mk (no-submodule-changes): New rule.
40243         (alpha beta major): Depend on it.
40244
40245 2009-05-02  Bruno Haible  <bruno@clisp.org>
40246
40247         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40248         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40249         shell variable gl_fnmatch_required to detect which variant is
40250         requested.
40251         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40252         gl_FUNC_FNMATCH_POSIX.
40253         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40254         exclude fnmatch-posix.
40255
40256 2009-05-02  Bruno Haible  <bruno@clisp.org>
40257
40258         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40259         * modules/mbsrtowcs (License): Change to LGPLv2+.
40260         * modules/strnlen1 (License): Likewise.
40261         Reported by Simon Josefsson.
40262
40263 2009-05-02  Bruno Haible  <bruno@clisp.org>
40264
40265         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40266         "cross".
40267         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40268         gnulib-tool was called with option --source-base=lib.
40269
40270 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40271
40272         Use automake *-local hooks without commands, for extensibility.
40273         * modules/localcharset (Makefile.am): Rename install-exec-local
40274         rule to install-exec-localcharset, and make it a prerequisite of
40275         install-exec-local.  Likewise, rename the uninstall-local rule to
40276         uninstall-localcharset, and make it a prerequisite of the former.
40277
40278 2009-05-01  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40281         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40282         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40284         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40285         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40286         m4/locale-zh.m4, m4/codeset.m4.
40287
40288         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40289         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40290         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40291         m4/locale-zh.m4.
40292
40293         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40294         REPLACE_WCRTOMB if mbstate_t must be replaced.
40295         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40296         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40297
40298 2009-05-01  Bruno Haible  <bruno@clisp.org>
40299
40300         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40301         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40302         dngettext, dcngettext, textdomain, bindtextdomain,
40303         bind_textdomain_codeset): Undefine before redefining.
40304
40305 2009-04-30  Bruno Haible  <bruno@clisp.org>
40306
40307         Fix bug introduced on 2009-04-25.
40308         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40309         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40310         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40311         is defined.
40312         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40313         is defined.
40314         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40315         is defined.
40316         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40317
40318 2009-04-28  Bruno Haible  <bruno@clisp.org>
40319
40320         Comment tweaks.
40321         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40322         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40323         * lib/unicase.h (u*_casexfrm): Likewise.
40324         Reported by Paolo Bonzini.
40325
40326 2009-04-28  Bruno Haible  <bruno@clisp.org>
40327
40328         Fix a compilation error.
40329         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40330         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40331         Reported by Jim Meyering.
40332
40333 2009-04-27  Bruno Haible  <bruno@clisp.org>
40334
40335         New module 'libunistring'.
40336         * modules/libunistring: New file.
40337         * m4/libunistring.m4: New file.
40338         * MODULES.html.sh (Unicode string functions): Add it.
40339
40340 2009-04-27  Eric Blake  <ebb9@byu.net>
40341
40342         maint.mk: allow package-specific header to provide <config.h>
40343         * top/maint.mk (sc_require_config_h): New variable.
40344         (sc_require_config_h, sc_require_config_h_first): Use it.
40345
40346 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40347
40348         * top/maint.mk (sc_avoid_if_before_free): Except
40349         useless-if-before-free script.
40350
40351 2009-04-27  Eric Blake  <ebb9@byu.net>
40352
40353         maintainer-makefile: depend on all required helper scripts
40354         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40355         useless-if-before-free.
40356         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40357         version, rather than assuming gnulib checkout is available.
40358         Reported by Simen Josefsson.
40359
40360 2009-04-26  Bruno Haible  <bruno@clisp.org>
40361
40362         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40363         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40364         "../" or "..".
40365
40366 2009-04-26  Bruno Haible  <bruno@clisp.org>
40367
40368         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40369         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40370         AC_LIB_HAVE_LINKFLAGS.
40371
40372 2009-04-26  Bruno Haible  <bruno@clisp.org>
40373
40374         Simplify calling convention of u*_conv_from_encoding.
40375         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40376         u32_conv_from_encoding): Expect a resultbuf argument and return the
40377         result directly as a pointer.
40378         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40379         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40380         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40381         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40382         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40383         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40384         Update.
40385         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40386         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40387         * lib/vasnprintf.c (VASNPRINTF): Update.
40388         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40389         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40390         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40391         * NEWS: Mention the change.
40392
40393 2009-04-26  Bruno Haible  <bruno@clisp.org>
40394
40395         Simplify calling convention of u*_conv_to_encoding.
40396         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40397         u32_conv_to_encoding): Expect a resultbuf argument and return the
40398         result directly as a pointer.
40399         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40400         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40401         freeing scaled_offsets if mem_iconveha failed.
40402         * lib/unicase/u-casexfrm.h (FUNC): Update.
40403         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40404         * lib/vasnprintf.c (VASNPRINTF): Update.
40405         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40406         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40407         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40408         * NEWS: Mention the change.
40409
40410 2009-04-26  Bruno Haible  <bruno@clisp.org>
40411
40412         Avoid test failures on AIX and OSF/1.
40413         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40414         malloc(0).
40415         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40416         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40417         Likewise.
40418         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40419         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40420         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40421         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40422         * doc/posix-functions/malloc.texi: Document the portability problem
40423         related to malloc(0).
40424
40425 2009-04-26  Bruno Haible  <bruno@clisp.org>
40426
40427         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40428         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40429         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40430
40431 2009-04-25  Bruno Haible  <bruno@clisp.org>
40432
40433         Avoid link error when creating a namespace clean library.
40434         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40435         as macro with arguments if already defined as an alias.
40436         * lib/signbitf.c (gl_signbitf): Don't undefine.
40437         * lib/signbitd.c (gl_signbitd): Don't undefine.
40438         * lib/signbitl.c (gl_signbitl): Don't undefine.
40439
40440 2009-04-25  Jim Meyering  <meyering@redhat.com>
40441
40442         vc-list-files: fix another quoting bug
40443         * build-aux/vc-list-files: Avoid sed backslash expansion
40444         of pathological directory names.
40445
40446 2009-04-25  Eric Blake  <ebb9@byu.net>
40447
40448         vc-list-files: fix shell quoting error
40449         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40450         timestamp.
40451
40452 2009-04-25  Jim Meyering  <meyering@redhat.com>
40453
40454         vc-list-files: restore lost functionality with subdir argument
40455         * build-aux/vc-list-files: When given a non-"." sub-directory
40456         argument, substitute the $dir/ prefix back onto each resulting name.
40457         Otherwise, coreutils' root_tests check would fail.
40458
40459 2009-04-24  Eric Blake  <ebb9@byu.net>
40460
40461         vc-list-files: ignore git symlinks
40462         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40463         than ls-files, to ignore git symlinks.
40464
40465         maint.mk: import improvements from m4
40466         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40467         (move_if_change): Delete unused macro.
40468         (news-date-check, vc-diff-check): Support VPATH builds.
40469         (announcement): Likewise.  Split --bootstrap-tools list...
40470         (boostrap-tools): ...into separate list, which can be overridden
40471         in cfg.mk.
40472         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40473         requiring dependency on useless-if-before-free module.
40474         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40475         Support VPATH builds.
40476
40477 2009-04-24  Jim Meyering  <meyering@redhat.com>
40478
40479         maint.mk: remove coreutils-specific rules and variables
40480         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40481         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40482         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40483
40484         maint.mk: remove obsolete rule
40485         * top/maint.mk (rel-check): Remove rule.
40486         (WGET, WGETFLAGS): Remove now-unused variables.
40487
40488 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40489
40490         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40491         consistency.
40492
40493         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40494         '$(PATH_SEPARATOR)' instead of ':'.
40495
40496 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40497
40498         * lib/getopt1.c (main): Use 'const' for static array.
40499
40500 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40501
40502         * top/maint.mk: Sync with coreutils.
40503         * NEWS: Explain incompatibilities.
40504
40505 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40506             Bruno Haible  <bruno@clisp.org>
40507
40508         Fix cross-compilation results.
40509         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40510         statement, as third argument of AC_TRY_RUN.
40511         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40512         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40513         Likewise.
40514         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40515         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40516         Likewise.
40517         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40518         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40519         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40520
40521 2009-04-20  Bruno Haible  <bruno@clisp.org>
40522
40523         Avoid test failure on mingw.
40524         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40525
40526 2009-04-20  Bruno Haible  <bruno@clisp.org>
40527
40528         Avoid compilation error on mingw.
40529         * modules/localename-tests (Depends-on): Add locale.
40530
40531 2009-04-19  Bruno Haible  <bruno@clisp.org>
40532
40533         Support for building a shared library on Windows platforms.
40534         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40535         (main): Test the presence of UNINORM_NFC here.
40536         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40537         (main): Test the presence of UNINORM_NFD here.
40538         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40539         (main): Test the presence of UNINORM_NFKC here.
40540         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40541         (main): Test the presence of UNINORM_NFKD here.
40542
40543 2009-04-19  Bruno Haible  <bruno@clisp.org>
40544
40545         Avoid a compiler warning.
40546         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40547         Change type of variable 'sequence'.
40548
40549 2009-04-19  Bruno Haible  <bruno@clisp.org>
40550
40551         * modules/configmake (Makefile.am): When the contents of configmake.h
40552         does not change, arrange to preserve its modification time.
40553
40554 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40555
40556         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40557         gettext domain.
40558
40559 2009-04-16  Jim Meyering  <meyering@redhat.com>
40560
40561         useless-if-before-free: improve conversion code
40562         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40563         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40564
40565 2009-04-14  Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/fcntl (Depends-on): Add extensions.
40568         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40569
40570 2009-04-12  Ben Pfaff  <blp@gnu.org>
40571
40572         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40573         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40574
40575 2009-03-20  Ben Pfaff  <blp@gnu.org>
40576
40577         Make rename replace existing destinations on Windows.
40578         * m4/rename.m4: Add test for Mingw.
40579         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40580         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40581         * doc/posix-functions/rename.texi: Document.
40582
40583 2009-04-10  Bruno Haible  <bruno@clisp.org>
40584
40585         New include file "iconveh.h".
40586         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40587         * lib/striconveh.h: Include it.
40588         (enum iconv_ilseq_handler): Remove definition.
40589         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40590         striconveh.h.
40591         * lib/striconveha.c: Include striconveh.h.
40592         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40593         * modules/striconveh (Files): Add lib/iconveh.h.
40594         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40595         lib/striconveh.h.
40596
40597 2009-04-10  Bruno Haible  <bruno@clisp.org>
40598
40599         * lib/uniconv.h: Update comment.
40600
40601 2009-04-10  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40604         always.
40605         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40606         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40607         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40608         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40609         "unistring-notinline.h", so that the function gets defined always.
40610         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40611         * lib/unistr/u8-uctomb.c: Likewise.
40612         * lib/unistr/u16-mbtouc.c: Likewise.
40613         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40614         * lib/unistr/u16-uctomb.c: Likewise.
40615         * lib/unistr/u32-mbtouc.c: Likewise.
40616         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40617         * lib/unistr/u32-uctomb.c: Likewise.
40618
40619 2009-04-10  Bruno Haible  <bruno@clisp.org>
40620
40621         Mark 'utime' obsolete.
40622         * modules/utime (Status, Notice): New sections.
40623         Suggested by Jim Meyering.
40624
40625         Fix cross-compile guess for utime test.
40626         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40627         autoconf.
40628         * doc/posix-functions/utime.texi: Give more precisions.
40629         Reported by Jan <ipif@ymail.com>.
40630
40631 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40632
40633         filevercmp: correct today's change
40634         * lib/filevercmp.c: Also handle coreutils' test inputs.
40635         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40636
40637         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40638         for reporting it.
40639         * lib/filevercmp.c: Special handle for "", "." and "..".
40640         * tests/test-filevercmp.c: Enlarge the set suite.
40641
40642 2009-04-07  Jim Meyering  <meyering@redhat.com>
40643
40644         useless-if-before-free: show how to remove braced useless free, too
40645         * build-aux/useless-if-before-free: still only in a comment, though.
40646
40647 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40648
40649         maint.mk: import changes to syntax-check macros from coreutils
40650         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40651         Use them in the relevant macros.
40652
40653 2009-04-06  Bruno Haible  <bruno@clisp.org>
40654
40655         Fix unportable use of bit-fields.
40656         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40657         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40658         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40659
40660 2009-04-06  Bruno Haible  <bruno@clisp.org>
40661
40662         Avoid test failures on AIX and OSF/1.
40663         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40664         that malloc(0) = NULL.
40665         * tests/unicase/test-u8-tolower.c (check): Likewise.
40666         * tests/unicase/test-u8-totitle.c (check): Likewise.
40667         * tests/unicase/test-u8-toupper.c (check): Likewise.
40668         * tests/unicase/test-u16-casefold.c (check): Likewise.
40669         * tests/unicase/test-u16-tolower.c (check): Likewise.
40670         * tests/unicase/test-u16-totitle.c (check): Likewise.
40671         * tests/unicase/test-u16-toupper.c (check): Likewise.
40672         * tests/unicase/test-u32-casefold.c (check): Likewise.
40673         * tests/unicase/test-u32-tolower.c (check): Likewise.
40674         * tests/unicase/test-u32-totitle.c (check): Likewise.
40675         * tests/unicase/test-u32-toupper.c (check): Likewise.
40676         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40677         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40678         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40679         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40680         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40681         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40682         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40683         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40684         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40685         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40686         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40687         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40688
40689 2009-04-05  Bruno Haible  <bruno@clisp.org>
40690
40691         Work around an autoconf limitation.
40692         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40693         comment line if it would be longer than 3 KB.
40694
40695 2009-04-05  Bruno Haible  <bruno@clisp.org>
40696
40697         Avoid test failure with libiconv-1.13.
40698         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40699         of the expected test results.
40700
40701 2009-04-05  Bruno Haible  <bruno@clisp.org>
40702
40703         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40704         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40705         that it should be installed.
40706
40707 2009-04-05  Bruno Haible  <bruno@clisp.org>
40708
40709         * gnulib-tool: New option --copy-file.
40710         (func_usage): Document it.
40711         (func_dest_tmpfilename): Moved out of func_import.
40712         (func_add_file, func_update_file): New functions, extracted from
40713         func_import.
40714         (func_import): Update.
40715
40716 2009-04-05  Karl Berry  <karl@gnu.org>
40717
40718         * README: prominently mention gnulib-tool.
40719         Rearrange sections so getting the code is near the top.
40720
40721 2009-04-05  Bruno Haible  <bruno@clisp.org>
40722
40723         * lib/unicase.h: Mention u*_cmp2.
40724         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40725         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40726         * lib/unicase/ulc-casecmp.c: Likewise.
40727         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40728         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40729         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40730         unistr/u8-cmp.
40731         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40732         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40733         unistr/u16-cmp.
40734         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40735         unistr/u32-cmp.
40736
40737         * lib/uninorm.h: Mention u*_cmp2.
40738         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40739         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40740         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40741         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40742         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40743         unistr/u8-cmp.
40744         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40745         unistr/u16-cmp.
40746         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40747         unistr/u32-cmp.
40748
40749         New module 'unistr/u32-cmp2'.
40750         * lib/unistr/u32-cmp2.c: New file.
40751         * modules/unistr/u32-cmp2: New file.
40752
40753         New module 'unistr/u16-cmp2'.
40754         * lib/unistr/u16-cmp2.c: New file.
40755         * modules/unistr/u16-cmp2: New file.
40756
40757         New module 'unistr/u8-cmp2'.
40758         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40759         * lib/unistr/u8-cmp2.c: New file.
40760         * lib/unistr/u-cmp2.h: New file.
40761         * modules/unistr/u8-cmp2: New file.
40762
40763 2009-04-05  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/unictype.h (uc_property_is_valid): New macro.
40766         * tests/unictype/test-pr_byname.c (main): Use it.
40767
40768         * lib/unistr.h: Doc fixes.
40769         * lib/uniconv.h: Doc fixes.
40770         * lib/unictype.h: Doc fixes.
40771
40772 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40773
40774         Port coreutils 7.2 to Solaris 8.
40775
40776         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40777         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40778         for Solaris 8.  This is a bit of a hack, as it means it's the
40779         caller's responsibility to add -lnsl if needed, but most likely it
40780         won't be needed since only getaddrinfo uses this and getaddrinfo
40781         isn't needed on Solaris 8.
40782
40783         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40784         problem to Solaris 8 encountered with coreutils 7.2, which
40785         resulted in a message "fnmatch.c:292: warning: passing argument 4
40786         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40787         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40788
40789 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40790
40791         * m4/ld-version-script.m4: Add FIXME comment.
40792
40793 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40794
40795         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40796         SOVERSION variable.
40797
40798 2009-04-02  Bruno Haible  <bruno@clisp.org>
40799
40800         * Makefile (info, html, dvi, pdf): Combine the rules.
40801         Suggested by Jim Meyering.
40802
40803 2009-04-01  Bruno Haible  <bruno@clisp.org>
40804
40805         * Makefile (info, html, dvi, pdf): New targets.
40806         Reported by Reuben Thomas <rrt@sc3d.org>.
40807
40808 2009-04-01  Bruno Haible  <bruno@clisp.org>
40809
40810         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40811         can be put into PATH.
40812         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40813
40814 2009-04-01  Bruno Haible  <bruno@clisp.org>
40815
40816         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40817
40818 2009-04-01  Bruno Haible  <bruno@clisp.org>
40819
40820         Rename module 'visibility'.
40821         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40822         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40823         * doc/gnulib.texi: Update.
40824         * MODULES.html.sh (Misc): Update.
40825         * NEWS: Mention the change.
40826
40827 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40828
40829         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40830         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40831         Eric Blake <ebb9@byu.net> for review.
40832         * MODULES.html.sh: Add lib-msvc-compat.
40833         * doc/gnulib.texi: Link to new section.
40834         * m4/ld-output-def.m4: New file.
40835         * doc/ld-output-def.texi: New file.
40836
40837 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40838
40839         Rename ld-version-script to lib-symbol-versions.  Suggested by
40840         Bruno Haible <bruno@clisp.org>.
40841         * modules/ld-version-script: Renamed to lib-symbol-versions.
40842         * doc/ld-version-script.texi: Fix module name.
40843         * MODULES.html.sh: Add lib-symbol-versions.
40844
40845 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40846
40847         * modules/u64-tests: New file.
40848         * tests/test-u64.c: New file.
40849
40850 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40851
40852         * MODULES.html.sh: Mention u64.
40853         * modules/u64: New module.
40854         * modules/crypto/sha512: Depend on u64 module instead of providing
40855         u64.h.
40856
40857 2009-03-27  Eric Blake  <ebb9@byu.net>
40858
40859         test-strerror: make debugging EAI_SYSTEM easier
40860         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40861         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40862         failure was EAI_SYSTEM.
40863
40864 2009-03-25  Bruno Haible  <bruno@clisp.org>
40865
40866         Fix a problem with --enable-relocatable on Solaris 7.
40867         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40868         since 2008-02-24.
40869
40870 2009-03-25  Eric Blake  <ebb9@byu.net>
40871
40872         test-sockets: avoid gcc warning
40873         * tests/test-sockets.c (main): Silence compiler warning.
40874
40875 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40876
40877         New modules nproc, pthread, contributed by Glen Lenker.
40878
40879         * MODULES.html.sh: Add pthread, nproc.
40880         * lib/nproc.c: New file.
40881         * lib/nproc.h: New file.
40882         * lib/pthread.in.h: New file.
40883         * m4/pthread.m4: New file.
40884         * modules/nproc: New file.
40885         * modules/pthread: New file.
40886
40887 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40888
40889         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40890         New variable.
40891
40892 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40893
40894         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40895         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40896         * tests/test-filevercmp.c: Add tests for backup suffixes.
40897
40898 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40899
40900         * modules/stdlib (Depends-on): Add stdint, needed when defining
40901         struct random_data on, for example, HP-UX 10.20.  Reported by
40902         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40903
40904 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40905
40906         * lib/readline.c (readline): Call fflush on stdout after printing
40907         prompt.
40908
40909 2009-03-20  Bruno Haible  <bruno@clisp.org>
40910
40911         Remove dependency from 'close' module to -lws2_32 on native Windows.
40912         * lib/close-hook.h: New file.
40913         * lib/close-hook.c: New file.
40914         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40915         w32sock.h.
40916         (_gl_close_fd_maybe_socket): Remove function.
40917         (rpl_close): Invoke execute_all_close_hooks instead of
40918         _gl_close_fd_maybe_socket.
40919         * lib/sockets.c: Include close-hook.h, w32sock.h.
40920         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40921         (close_sockets_hook): New variable.
40922         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40923         (gl_sockets_cleanup): Unregister it.
40924         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40925         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40926         * modules/close-hook: New file.
40927         * modules/close (Files): Remove lib/w32sock.h.
40928         (Depends-on): Add close-hook.
40929         (Link): Remove section.
40930         * modules/sockets (Files): Add lib/w32sock.h.
40931         (Depends-on): Add close-hook.
40932         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40933         invocation.
40934         * NEWS: Mention that LIB_CLOSE is gone.
40935
40936 2009-03-23  Eric Blake  <ebb9@byu.net>
40937
40938         signal-tests: test previous patch
40939         * tests/test-signal.c: New file.
40940         * modules/signal-tests: Likewise.
40941
40942         signal.h: always support 'volatile sig_atomic_t'
40943         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40944         (gl_SIGNAL_H_DEFAULTS): Add a default.
40945         * modules/signal (Makefile.am): Substitute if needed.
40946         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40947         users can blindly add volatile.
40948         * doc/posix-headers/signal.texi (signal.h): Document it.
40949         Reported by Matthew Woehlke.
40950
40951 2009-03-23  Jim Meyering  <meyering@redhat.com>
40952
40953         pathmax: PATH_MAX: use pathconf only when available
40954         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40955         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40956         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40957         This avoids a link failure in a PSP cross-compilation environment
40958         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40959
40960         * lib/vasnprintf.c (divide): Fix typo in comment.
40961
40962 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40963
40964         * gnulib-tool (func_filter_filelist): Fix comment.
40965
40966 2009-03-20  Bruno Haible  <bruno@clisp.org>
40967
40968         Make sockets.h self-contained.
40969         * lib/sockets.c: Include sockets.h first.
40970         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40971
40972 2009-03-19  Eric Blake  <ebb9@byu.net>
40973
40974         doc: mention more functions added in cygwin 1.7.0
40975         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40976         addition.
40977         * doc/posix-functions/log2f.texi: Likewise.
40978
40979 2009-03-19  Jim Meyering  <meyering@redhat.com>
40980
40981         fsusage: avoid syntax error due to statement-before-declaration
40982         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40983         after all declarations.  Reported by Matthew Woehlke in
40984         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40985
40986 2009-03-18  Eric Blake  <ebb9@byu.net>
40987
40988         build-aux/compile: sync from automake
40989         * build-aux/compile: New file, from automake.
40990         * config/srclist.txt: Mention build-aux/compile.
40991
40992 2009-03-17  Bruno Haible  <bruno@clisp.org>
40993
40994         * lib/git-merge-changelog.c: Fix typo in comment.
40995         Reported by Reuben Thomas <rrt@sc3d.org>.
40996
40997 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40998
40999         * m4/regex.m4: update and improve help for
41000         --without-included-regex.
41001
41002 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41003
41004         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41005         failure on missing include files.
41006
41007 2009-03-17  Eric Blake  <ebb9@byu.net>
41008
41009         doc: mention more functions added in cygwin 1.7.0
41010         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41011         addition.
41012         * doc/posix-functions/fwscanf.texi: Likewise.
41013         * doc/posix-functions/swprintf.texi: Likewise.
41014         * doc/posix-functions/swscanf.texi: Likewise.
41015         * doc/posix-functions/vfwprintf.texi: Likewise.
41016         * doc/posix-functions/vfwscanf.texi: Likewise.
41017         * doc/posix-functions/vswprintf.texi: Likewise.
41018         * doc/posix-functions/vswscanf.texi: Likewise.
41019         * doc/posix-functions/vwprintf.texi: Likewise.
41020         * doc/posix-functions/vwscanf.texi: Likewise.
41021         * doc/posix-functions/wcscasecmp.texi: Likewise.
41022         * doc/posix-functions/wcsdup.texi: Likewise.
41023         * doc/posix-functions/wcsftime.texi: Likewise.
41024         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41025         * doc/posix-functions/wprintf.texi: Likewise.
41026         * doc/posix-functions/wscanf.texi: Likewise.
41027         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41028
41029 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41030
41031         maint.mk: really add $(AM_MAKEFLAGS)
41032         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41033         was inadvertently omitted in the last commit.
41034         Spotted by Bruno Haible.
41035
41036         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41037         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41038         $(AM_MAKEFLAGS)' rather than plain `make'.
41039
41040         gnulib-tool: execute $MAKE not make
41041         * gnulib-tool: Default $MAKE to 'make'.
41042         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41043         than make.  Initialize $MAKE in the do-autobuild script.
41044
41045         gnulib-tool: use $MAKE not make in generated files
41046         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41047         make, in generated files.  Initialize $MAKE in the do-autobuild
41048         script.
41049
41050         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41051
41052         GNUmakefile: disable parallelism only for multiple, recursive targets
41053         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41054         additions in the Makefile.
41055         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41056         by Automake.
41057         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41058         are listed on the command line and at least one of them is
41059         listed in $(ALL_RECURSIVE_TARGETS).
41060
41061 2009-03-14  Bruno Haible  <bruno@clisp.org>
41062
41063         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41064         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41065         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41066         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41067         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41068         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41069         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41070         unistr/u8-uctomb.
41071         * modules/unistr/u8-strchr (Depends-on): Likewise.
41072         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41073         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41074         unistr/u16-uctomb.
41075         * modules/unistr/u16-strchr (Depends-on): Likewise.
41076         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41077
41078 2009-03-12  Bruno Haible  <bruno@clisp.org>
41079
41080         Work around select() bug on Interix 3.5.
41081         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41082         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41083         * m4/select.m4: New file.
41084         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41085         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41086         * modules/select (Files): Add m4/select.m4.
41087         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41088         * modules/nanosleep (Depends-on): Add select.
41089         * modules/poll (Depends-on): Likewise.
41090         * doc/posix-functions/select.texi: Mention the Interix bug.
41091         Reported by Markus Duft <mduft@gentoo.org>.
41092
41093         * lib/select.c: Renamed from lib/winsock-select.c.
41094         * modules/select (Files): Add lib/select.c, remove
41095         lib/winsock-select.c.
41096         (configure.ac): Update.
41097
41098 2009-03-12  Jim Meyering  <meyering@redhat.com>
41099
41100         avoid gcc warnings about unused macro definitions
41101         * lib/readtokens.c (STREQ): Remove unused definition.
41102         * lib/xmalloc.c (SIZE_MAX): Likewise.
41103         * lib/openat-die.c (N_): Likewise.
41104         * lib/mountlist.c (SIZE_MAX): Remove definition.
41105         Instead, include <stdint.h>.
41106         * lib/readutmp.c: Likewise.
41107         * modules/readutmp (Depends-on): Add stdint.
41108         * modules/mountlist (Depends-on): Add stdint.
41109         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41110
41111 2009-03-10  Bruno Haible  <bruno@clisp.org>
41112
41113         Tests for module 'mbmemcasecoll'.
41114         * modules/mbmemcasecoll-tests: New file.
41115         * tests/test-mbmemcasecoll1.sh: New file.
41116         * tests/test-mbmemcasecoll2.sh: New file.
41117         * tests/test-mbmemcasecoll3.sh: New file.
41118         * tests/test-mbmemcasecoll.c: New file.
41119
41120         New module 'mbmemcasecoll'.
41121         * lib/mbmemcasecoll.h: New file.
41122         * lib/mbmemcasecoll.c: New file.
41123         * modules/mbmemcasecoll: New file.
41124
41125         * tests/test-mbmemcasecmp.h: New file, extracted from
41126         tests/test-mbmemcasecmp.c.
41127         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41128         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41129         (main): Update.
41130         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41131
41132 2009-03-09  Bruno Haible  <bruno@clisp.org>
41133
41134         Tests for module 'mbmemcasecmp'.
41135         * modules/mbmemcasecmp-tests: New file.
41136         * tests/test-mbmemcasecmp1.sh: New file.
41137         * tests/test-mbmemcasecmp2.sh: New file.
41138         * tests/test-mbmemcasecmp3.sh: New file.
41139         * tests/test-mbmemcasecmp.c: New file.
41140
41141         New module 'mbmemcasecmp'.
41142         * lib/mbmemcasecmp.h: New file.
41143         * lib/mbmemcasecmp.c: New file.
41144         * modules/mbmemcasecmp: New file.
41145
41146 2009-03-09  Bruno Haible  <bruno@clisp.org>
41147
41148         Tests for module 'unicase/ulc-casecoll'.
41149         * modules/unicase/ulc-casecoll-tests: New file.
41150         * tests/unicase/test-ulc-casecoll1.sh: New file.
41151         * tests/unicase/test-ulc-casecoll2.sh: New file.
41152         * tests/unicase/test-ulc-casecoll.c: New file.
41153
41154         New module 'unicase/ulc-casecoll'.
41155         * lib/unicase.h (ulc_casecoll): New declaration.
41156         * lib/unicase/ulc-casecoll.c: New file.
41157         * modules/unicase/ulc-casecoll: New file.
41158
41159         New module 'unicase/ulc-casexfrm'.
41160         * lib/unicase.h (ulc_casexfrm): New declaration.
41161         * lib/unicase/ulc-casexfrm.c: New file.
41162         * modules/unicase/ulc-casexfrm: New file.
41163
41164 2009-03-09  Bruno Haible  <bruno@clisp.org>
41165
41166         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41167         invocations.
41168
41169         * m4/mbscasecmp.m4: Remove file.
41170         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41171         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41172
41173         * m4/mbscasestr.m4: Remove file.
41174         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41175         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41176
41177         * m4/mbschr.m4: Remove file.
41178         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41179         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41180
41181         * m4/mbscspn.m4: Remove file.
41182         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41183         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41184
41185         * m4/mbslen.m4: Remove file.
41186         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41187         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41188
41189         * m4/mbsncasecmp.m4: Remove file.
41190         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41191         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41192
41193         * m4/mbsnlen.m4: Remove file.
41194         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41195         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41196
41197         * m4/mbspbrk.m4: Remove file.
41198         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41199         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41200
41201         * m4/mbspcasecmp.m4: Remove file.
41202         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41203         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41204
41205         * m4/mbsrchr.m4: Remove file.
41206         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41207         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41208
41209         * m4/mbssep.m4: Remove file.
41210         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41211         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41212
41213         * m4/mbsspn.m4: Remove file.
41214         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41215         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41216
41217         * m4/mbsstr.m4: Remove file.
41218         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41219         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41220
41221         * m4/mbstok_r.m4: Remove file.
41222         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41223         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41224
41225         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41226
41227         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41228         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41229
41230         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41231
41232 2009-03-08  Bruno Haible  <bruno@clisp.org>
41233
41234         Tests for module 'unicase/ulc-casecmp'.
41235         * modules/unicase/ulc-casecmp-tests: New file.
41236         * tests/unicase/test-ulc-casecmp1.sh: New file.
41237         * tests/unicase/test-ulc-casecmp2.sh: New file.
41238         * tests/unicase/test-ulc-casecmp.c: New file.
41239
41240         New module 'unicase/ulc-casecmp'.
41241         * lib/unicase.h (ulc_casecmp): New declaration.
41242         * lib/unicase/ulc-casecmp.c: New file.
41243         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41244         'const SRC_UNIT *'.
41245         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41246         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41247         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41248         * modules/unicase/ulc-casecmp: New file.
41249
41250         Tests for module 'unicase/u32-is-cased'.
41251         * modules/unicase/u32-is-cased-tests: New file.
41252         * tests/unicase/test-u32-is-cased.c: New file.
41253
41254         Tests for module 'unicase/u16-is-cased'.
41255         * modules/unicase/u16-is-cased-tests: New file.
41256         * tests/unicase/test-u16-is-cased.c: New file.
41257
41258         Tests for module 'unicase/u8-is-cased'.
41259         * modules/unicase/u8-is-cased-tests: New file.
41260         * tests/unicase/test-u8-is-cased.c: New file.
41261         * tests/unicase/test-is-cased.h: New file.
41262
41263         New module 'unicase/u32-is-cased'.
41264         * lib/unicase/u32-is-cased.c: New file.
41265         * modules/unicase/u32-is-cased: New file.
41266
41267         New module 'unicase/u16-is-cased'.
41268         * lib/unicase/u16-is-cased.c: New file.
41269         * modules/unicase/u16-is-cased: New file.
41270
41271         New module 'unicase/u8-is-cased'.
41272         * lib/unicase/u8-is-cased.c: New file.
41273         * lib/unicase/u-is-cased.h: New file.
41274         * modules/unicase/u8-is-cased: New file.
41275
41276         Tests for module 'unicase/u32-is-casefolded'.
41277         * modules/unicase/u32-is-casefolded-tests: New file.
41278         * tests/unicase/test-u32-is-casefolded.c: New file.
41279
41280         Tests for module 'unicase/u16-is-casefolded'.
41281         * modules/unicase/u16-is-casefolded-tests: New file.
41282         * tests/unicase/test-u16-is-casefolded.c: New file.
41283
41284         Tests for module 'unicase/u8-is-casefolded'.
41285         * modules/unicase/u8-is-casefolded-tests: New file.
41286         * tests/unicase/test-u8-is-casefolded.c: New file.
41287         * tests/unicase/test-is-casefolded.h: New file.
41288
41289         New module 'unicase/u32-is-casefolded'.
41290         * lib/unicase/u32-is-casefolded.c: New file.
41291         * modules/unicase/u32-is-casefolded: New file.
41292
41293         New module 'unicase/u16-is-casefolded'.
41294         * lib/unicase/u16-is-casefolded.c: New file.
41295         * modules/unicase/u16-is-casefolded: New file.
41296
41297         New module 'unicase/u8-is-casefolded'.
41298         * lib/unicase/u8-is-casefolded.c: New file.
41299         * modules/unicase/u8-is-casefolded: New file.
41300
41301         Tests for module 'unicase/u32-is-titlecase'.
41302         * modules/unicase/u32-is-titlecase-tests: New file.
41303         * tests/unicase/test-u32-is-titlecase.c: New file.
41304
41305         Tests for module 'unicase/u16-is-titlecase'.
41306         * modules/unicase/u16-is-titlecase-tests: New file.
41307         * tests/unicase/test-u16-is-titlecase.c: New file.
41308
41309         Tests for module 'unicase/u8-is-titlecase'.
41310         * modules/unicase/u8-is-titlecase-tests: New file.
41311         * tests/unicase/test-u8-is-titlecase.c: New file.
41312         * tests/unicase/test-is-titlecase.h: New file.
41313
41314         New module 'unicase/u32-is-titlecase'.
41315         * lib/unicase/u32-is-titlecase.c: New file.
41316         * modules/unicase/u32-is-titlecase: New file.
41317
41318         New module 'unicase/u16-is-titlecase'.
41319         * lib/unicase/u16-is-titlecase.c: New file.
41320         * modules/unicase/u16-is-titlecase: New file.
41321
41322         New module 'unicase/u8-is-titlecase'.
41323         * lib/unicase/u8-is-titlecase.c: New file.
41324         * modules/unicase/u8-is-titlecase: New file.
41325
41326         Tests for module 'unicase/u32-is-lowercase'.
41327         * modules/unicase/u32-is-lowercase-tests: New file.
41328         * tests/unicase/test-u32-is-lowercase.c: New file.
41329
41330         Tests for module 'unicase/u16-is-lowercase'.
41331         * modules/unicase/u16-is-lowercase-tests: New file.
41332         * tests/unicase/test-u16-is-lowercase.c: New file.
41333
41334         Tests for module 'unicase/u8-is-lowercase'.
41335         * modules/unicase/u8-is-lowercase-tests: New file.
41336         * tests/unicase/test-u8-is-lowercase.c: New file.
41337         * tests/unicase/test-is-lowercase.h: New file.
41338
41339         New module 'unicase/u32-is-lowercase'.
41340         * lib/unicase/u32-is-lowercase.c: New file.
41341         * modules/unicase/u32-is-lowercase: New file.
41342
41343         New module 'unicase/u16-is-lowercase'.
41344         * lib/unicase/u16-is-lowercase.c: New file.
41345         * modules/unicase/u16-is-lowercase: New file.
41346
41347         New module 'unicase/u8-is-lowercase'.
41348         * lib/unicase/u8-is-lowercase.c: New file.
41349         * modules/unicase/u8-is-lowercase: New file.
41350
41351         Tests for module 'unicase/u32-is-uppercase'.
41352         * modules/unicase/u32-is-uppercase-tests: New file.
41353         * tests/unicase/test-u32-is-uppercase.c: New file.
41354
41355         Tests for module 'unicase/u16-is-uppercase'.
41356         * modules/unicase/u16-is-uppercase-tests: New file.
41357         * tests/unicase/test-u16-is-uppercase.c: New file.
41358
41359         Tests for module 'unicase/u8-is-uppercase'.
41360         * modules/unicase/u8-is-uppercase-tests: New file.
41361         * tests/unicase/test-u8-is-uppercase.c: New file.
41362         * tests/unicase/test-is-uppercase.h: New file.
41363
41364         New module 'unicase/u32-is-uppercase'.
41365         * lib/unicase/u32-is-uppercase.c: New file.
41366         * modules/unicase/u32-is-uppercase: New file.
41367
41368         New module 'unicase/u16-is-uppercase'.
41369         * lib/unicase/u16-is-uppercase.c: New file.
41370         * modules/unicase/u16-is-uppercase: New file.
41371
41372         New module 'unicase/u8-is-uppercase'.
41373         * lib/unicase/u8-is-uppercase.c: New file.
41374         * modules/unicase/u8-is-uppercase: New file.
41375
41376         New module 'unicase/u32-is-invariant'.
41377         * lib/unicase/u32-is-invariant.c: New file.
41378         * modules/unicase/u32-is-invariant: New file.
41379
41380         New module 'unicase/u16-is-invariant'.
41381         * lib/unicase/u16-is-invariant.c: New file.
41382         * modules/unicase/u16-is-invariant: New file.
41383
41384         New module 'unicase/u8-is-invariant'.
41385         * lib/unicase/u8-is-invariant.c: New file.
41386         * lib/unicase/invariant.h: New file.
41387         * lib/unicase/u-is-invariant.h: New file.
41388         * modules/unicase/u8-is-invariant: New file.
41389
41390         Tests for module 'unicase/u32-casecoll'.
41391         * modules/unicase/u32-casecoll-tests: New file.
41392         * tests/unicase/test-u32-casecoll.c: New file.
41393
41394         Tests for module 'unicase/u16-casecoll'.
41395         * modules/unicase/u16-casecoll-tests: New file.
41396         * tests/unicase/test-u16-casecoll.c: New file.
41397
41398         Tests for module 'unicase/u8-casecoll'.
41399         * modules/unicase/u8-casecoll-tests: New file.
41400         * tests/unicase/test-u8-casecoll.c: New file.
41401
41402         New module 'unicase/u32-casecoll'.
41403         * lib/unicase/u32-casecoll.c: New file.
41404         * modules/unicase/u32-casecoll: New file.
41405
41406         New module 'unicase/u16-casecoll'.
41407         * lib/unicase/u16-casecoll.c: New file.
41408         * modules/unicase/u16-casecoll: New file.
41409
41410         New module 'unicase/u8-casecoll'.
41411         * lib/unicase/u8-casecoll.c: New file.
41412         * lib/unicase/u-casecoll.h: New file.
41413         * modules/unicase/u8-casecoll: New file.
41414
41415         New module 'unicase/u32-casexfrm'.
41416         * lib/unicase/u32-casexfrm.c: New file.
41417         * modules/unicase/u32-casexfrm: New file.
41418
41419         New module 'unicase/u16-casexfrm'.
41420         * lib/unicase/u16-casexfrm.c: New file.
41421         * modules/unicase/u16-casexfrm: New file.
41422
41423         New module 'unicase/u8-casexfrm'.
41424         * lib/unicase/u8-casexfrm.c: New file.
41425         * lib/unicase/u-casexfrm.h: New file.
41426         * modules/unicase/u8-casexfrm: New file.
41427
41428         Tests for module 'unicase/u32-casecmp'.
41429         * modules/unicase/u32-casecmp-tests: New file.
41430         * tests/unicase/test-u32-casecmp.c: New file.
41431
41432         Tests for module 'unicase/u16-casecmp'.
41433         * modules/unicase/u16-casecmp-tests: New file.
41434         * tests/unicase/test-u16-casecmp.c: New file.
41435
41436         Tests for module 'unicase/u8-casecmp'.
41437         * modules/unicase/u8-casecmp-tests: New file.
41438         * tests/unicase/test-u8-casecmp.c: New file.
41439         * tests/unicase/test-casecmp.h: New file.
41440
41441         New module 'unicase/u32-casecmp'.
41442         * lib/unicase/u32-casecmp.c: New file.
41443         * modules/unicase/u32-casecmp: New file.
41444
41445         New module 'unicase/u16-casecmp'.
41446         * lib/unicase/u16-casecmp.c: New file.
41447         * modules/unicase/u16-casecmp: New file.
41448
41449         New module 'unicase/u8-casecmp'.
41450         * lib/unicase/u8-casecmp.c: New file.
41451         * lib/unicase/u-casecmp.h: New file.
41452         * modules/unicase/u8-casecmp: New file.
41453
41454         Tests for module 'unicase/u32-casefold'.
41455         * modules/unicase/u32-casefold-tests: New file.
41456         * tests/unicase/test-u32-casefold.c: New file.
41457
41458         Tests for module 'unicase/u16-casefold'.
41459         * modules/unicase/u16-casefold-tests: New file.
41460         * tests/unicase/test-u16-casefold.c: New file.
41461
41462         Tests for module 'unicase/u8-casefold'.
41463         * modules/unicase/u8-casefold-tests: New file.
41464         * tests/unicase/test-u8-casefold.c: New file.
41465
41466         New module 'unicase/u32-casefold'.
41467         * lib/unicase/u32-casefold.c: New file.
41468         * modules/unicase/u32-casefold: New file.
41469
41470         New module 'unicase/u16-casefold'.
41471         * lib/unicase/u16-casefold.c: New file.
41472         * modules/unicase/u16-casefold: New file.
41473
41474         New module 'unicase/u8-casefold'.
41475         * lib/unicase/u8-casefold.c: New file.
41476         * lib/unicase/u-casefold.h: New file.
41477         * modules/unicase/u8-casefold: New file.
41478
41479         New module 'unicase/tocasefold'.
41480         * lib/unicase/casefold.h: New file.
41481         * lib/unicase/tocasefold.c: New file.
41482         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41483         * modules/unicase/tocasefold: New file.
41484
41485         Tests for module 'unicase/u32-totitle'.
41486         * modules/unicase/u32-totitle-tests: New file.
41487         * tests/unicase/test-u32-totitle.c: New file.
41488
41489         Tests for module 'unicase/u16-totitle'.
41490         * modules/unicase/u16-totitle-tests: New file.
41491         * tests/unicase/test-u16-totitle.c: New file.
41492
41493         Tests for module 'unicase/u8-totitle'.
41494         * modules/unicase/u8-totitle-tests: New file.
41495         * tests/unicase/test-u8-totitle.c: New file.
41496
41497         New module 'unicase/u32-totitle'.
41498         * lib/unicase/u32-totitle.c: New file.
41499         * modules/unicase/u32-totitle: New file.
41500
41501         New module 'unicase/u16-totitle'.
41502         * lib/unicase/u16-totitle.c: New file.
41503         * modules/unicase/u16-totitle: New file.
41504
41505         New module 'unicase/u8-totitle'.
41506         * lib/unicase/u8-totitle.c: New file.
41507         * lib/unicase/u-totitle.h: New file.
41508         * modules/unicase/u8-totitle: New file.
41509
41510         Tests for module 'unicase/u32-tolower'.
41511         * modules/unicase/u32-tolower-tests: New file.
41512         * tests/unicase/test-u32-tolower.c: New file.
41513
41514         Tests for module 'unicase/u16-tolower'.
41515         * modules/unicase/u16-tolower-tests: New file.
41516         * tests/unicase/test-u16-tolower.c: New file.
41517
41518         Tests for module 'unicase/u8-tolower'.
41519         * modules/unicase/u8-tolower-tests: New file.
41520         * tests/unicase/test-u8-tolower.c: New file.
41521
41522         New module 'unicase/u32-tolower'.
41523         * lib/unicase/u32-tolower.c: New file.
41524         * modules/unicase/u32-tolower: New file.
41525
41526         New module 'unicase/u16-tolower'.
41527         * lib/unicase/u16-tolower.c: New file.
41528         * modules/unicase/u16-tolower: New file.
41529
41530         New module 'unicase/u8-tolower'.
41531         * lib/unicase/u8-tolower.c: New file.
41532         * modules/unicase/u8-tolower: New file.
41533
41534         Tests for module 'unicase/u32-toupper'.
41535         * modules/unicase/u32-toupper-tests: New file.
41536         * tests/unicase/test-u32-toupper.c: New file.
41537
41538         Tests for module 'unicase/u16-toupper'.
41539         * modules/unicase/u16-toupper-tests: New file.
41540         * tests/unicase/test-u16-toupper.c: New file.
41541
41542         Tests for module 'unicase/u8-toupper'.
41543         * modules/unicase/u8-toupper-tests: New file.
41544         * tests/unicase/test-u8-toupper.c: New file.
41545
41546         New module 'unicase/u32-toupper'.
41547         * lib/unicase/u32-toupper.c: New file.
41548         * modules/unicase/u32-toupper: New file.
41549
41550         New module 'unicase/u16-toupper'.
41551         * lib/unicase/u16-toupper.c: New file.
41552         * modules/unicase/u16-toupper: New file.
41553
41554         New module 'unicase/u8-toupper'.
41555         * lib/unicase/u8-toupper.c: New file.
41556         * modules/unicase/u8-toupper: New file.
41557
41558         New module 'unicase/u32-casemap'.
41559         * lib/unicase/u32-casemap.c: New file.
41560         * modules/unicase/u32-casemap: New file.
41561
41562         New module 'unicase/u16-casemap'.
41563         * lib/unicase/u16-casemap.c: New file.
41564         * modules/unicase/u16-casemap: New file.
41565
41566         New module 'unicase/u8-casemap'.
41567         * lib/unicase/unicasemap.h: New file.
41568         * lib/unicase/u8-casemap.c: New file.
41569         * lib/unicase/u-casemap.h: New file.
41570         * modules/unicase/u8-casemap: New file.
41571
41572         New module 'unicase/special-casing'.
41573         * lib/unicase/special-casing.h: New file.
41574         * lib/unicase/special-casing.c: New file.
41575         * lib/unicase/special-casing-table.gperf: New file, generated by
41576         gen-uni-tables.c.
41577         * modules/unicase/special-casing: New file.
41578
41579         Tests for module 'unicase/locale-language'.
41580         * modules/unicase/locale-language-tests: New file.
41581         * tests/unicase/test-locale-language.sh: New file.
41582         * tests/unicase/test-locale-language.c: New file.
41583
41584         New module 'unicase/locale-language'.
41585         * lib/unicase/locale-language.c: New file.
41586         * lib/unicase/locale-languages.gperf: New file.
41587         * modules/unicase/locale-language: New file.
41588
41589         Generate more tables for case conversion and case folding.
41590         * lib/gen-uni-tables.c (SCC_*): New enum items.
41591         (struct special_casing_rule): New type.
41592         (casing_rules, num_casing_rules, allocated_casing_rules): New
41593         variables.
41594         (add_casing_rule, fill_casing_rules): New functions.
41595         (struct casefold_rule): New type.
41596         (casefolding_rules, num_casefolding_rules,
41597         allocated_casefolding_rules): New variables.
41598         (fill_casefolding_rules): New function.
41599         (unicode_casefold): New variable.
41600         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41601         sort_casing_rules, output_casing_rules): New functions.
41602         (main): Accept to more arguments: SpecialCasing.txt and
41603         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41604         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41605         Output mapping for casefolding.
41606
41607         * lib/unicase.h: Include stdbool.h, uninorm.h.
41608         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41609         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41610         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41611         arguments.
41612         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41613         resultp arguments.
41614         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41615         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41616         resultp arguments.
41617         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41618         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41619         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41620         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41621         declarations.
41622         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41623
41624 2009-03-08  Bruno Haible  <bruno@clisp.org>
41625
41626         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41627         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41628         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41629         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41630
41631 2009-03-07  Bruno Haible  <bruno@clisp.org>
41632
41633         Adjust u*_normcmp, u*_normcoll API.
41634         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41635         u16_normcoll, u32_normcoll): Change failure conventions.
41636         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41637         errno and return -1.
41638         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41639
41640 2009-03-07  Bruno Haible  <bruno@clisp.org>
41641
41642         Tests for module 'uninorm/u32-normcoll'.
41643         * modules/uninorm/u32-normcoll-tests: New file.
41644         * tests/uninorm/test-u32-normcoll.c: New file.
41645
41646         Tests for module 'uninorm/u16-normcoll'.
41647         * modules/uninorm/u16-normcoll-tests: New file.
41648         * tests/uninorm/test-u16-normcoll.c: New file.
41649
41650         Tests for module 'uninorm/u8-normcoll'.
41651         * modules/uninorm/u8-normcoll-tests: New file.
41652         * tests/uninorm/test-u8-normcoll.c: New file.
41653
41654 2009-03-07  Bruno Haible  <bruno@clisp.org>
41655
41656         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41657         tests/uninorm/test-u32-normcmp.c.
41658         * tests/uninorm/test-u32-normcmp.c: Include it.
41659         (test_nonascii): New function, extracted from main. Add some more
41660         tests.
41661         (main): Invoke test_ascii and test_nonascii.
41662         * modules/uninorm/u32-normcmp-tests (Files): Add
41663         tests/uninorm/test-u32-normcmp.h.
41664         (Depends-on): Remove uninorm/u32-normcmp.
41665
41666         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41667         tests/uninorm/test-u16-normcmp.c.
41668         * tests/uninorm/test-u16-normcmp.c: Include it.
41669         (test_nonascii): New function, extracted from main. Add some more
41670         tests.
41671         (main): Invoke test_ascii and test_nonascii.
41672         * modules/uninorm/u16-normcmp-tests (Files): Add
41673         tests/uninorm/test-u16-normcmp.h.
41674         (Depends-on): Remove uninorm/u16-normcmp.
41675
41676         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41677         tests/uninorm/test-u8-normcmp.c.
41678         * tests/uninorm/test-u8-normcmp.c: Include it.
41679         (test_nonascii): New function, extracted from main. Add some more
41680         tests.
41681         (main): Invoke test_ascii and test_nonascii.
41682         * modules/uninorm/u8-normcmp-tests (Files): Add
41683         tests/uninorm/test-u8-normcmp.h.
41684         (Depends-on): Remove uninorm/u8-normcmp.
41685
41686 2009-03-07  Bruno Haible  <bruno@clisp.org>
41687
41688         New module 'uninorm/u32-normcoll'.
41689         * lib/uninorm/u32-normcoll.c: New file.
41690         * modules/uninorm/u32-normcoll: New file.
41691
41692         New module 'uninorm/u16-normcoll'.
41693         * lib/uninorm/u16-normcoll.c: New file.
41694         * modules/uninorm/u16-normcoll: New file.
41695
41696         New module 'uninorm/u8-normcoll'.
41697         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41698         declarations.
41699         * lib/uninorm/u8-normcoll.c: New file.
41700         * lib/uninorm/u-normcoll.h: New file.
41701         * modules/uninorm/u8-normcoll: New file.
41702
41703         New module 'uninorm/u32-normxfrm'.
41704         * lib/uninorm/u32-normxfrm.c: New file.
41705         * modules/uninorm/u32-normxfrm: New file.
41706
41707         New module 'uninorm/u16-normxfrm'.
41708         * lib/uninorm/u16-normxfrm.c: New file.
41709         * modules/uninorm/u16-normxfrm: New file.
41710
41711         New module 'uninorm/u8-normxfrm'.
41712         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41713         declarations.
41714         * lib/uninorm/u8-normxfrm.c: New file.
41715         * lib/uninorm/u-normxfrm.h: New file.
41716         * modules/uninorm/u8-normxfrm: New file.
41717
41718 2009-03-07  Bruno Haible  <bruno@clisp.org>
41719
41720         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41721         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41722         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41723
41724 2009-03-07  Bruno Haible  <bruno@clisp.org>
41725
41726         New module 'memxfrm'.
41727         * lib/memxfrm.h: New file.
41728         * lib/memxfrm.c: New file.
41729         * modules/memxfrm: New file.
41730
41731 2009-03-07  Bruno Haible  <bruno@clisp.org>
41732
41733         New module 'memcmp2'.
41734         * lib/memcmp2.h: New file.
41735         * lib/memcmp2.c: New file.
41736         * modules/memcmp2: New file.
41737
41738 2009-03-07  Bruno Haible  <bruno@clisp.org>
41739
41740         Tests for module 'uninorm/decomposing-form'.
41741         * modules/uninorm/decomposing-form-tests: New file.
41742         * tests/uninorm/test-decomposing-form.c: New file.
41743
41744         New module 'uninorm/decomposing-form'.
41745         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41746         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41747         Add 'decomposing_variant' field.
41748         * lib/uninorm/decomposing-form.c: New file.
41749         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41750         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41751         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41752         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41753         * modules/uninorm/decomposing-form: New file.
41754         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41755         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41756
41757 2009-03-07  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41760         strings.
41761
41762 2009-03-06  Bruno Haible  <bruno@clisp.org>
41763
41764         Tests for module 'uninorm/u32-normcmp'.
41765         * tests/uninorm/test-u32-normcmp.c: New file.
41766         * modules/uninorm/u32-normcmp-tests: New file.
41767
41768         Tests for module 'uninorm/u16-normcmp'.
41769         * tests/uninorm/test-u16-normcmp.c: New file.
41770         * modules/uninorm/u16-normcmp-tests: New file.
41771
41772         Tests for module 'uninorm/u8-normcmp'.
41773         * tests/uninorm/test-u8-normcmp.c: New file.
41774         * modules/uninorm/u8-normcmp-tests: New file.
41775
41776         New module 'uninorm/u32-normcmp'.
41777         * lib/uninorm/u32-normcmp.c: New file.
41778         * modules/uninorm/u32-normcmp: New file.
41779
41780         New module 'uninorm/u16-normcmp'.
41781         * lib/uninorm/u16-normcmp.c: New file.
41782         * modules/uninorm/u16-normcmp: New file.
41783
41784         New module 'uninorm/u8-normcmp'.
41785         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41786         declarations.
41787         * lib/uninorm/u8-normcmp.c: New file.
41788         * lib/uninorm/u-normcmp.h: New file.
41789         * modules/uninorm/u8-normcmp: New file.
41790
41791 2009-03-06  Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41794         Reported by Eric Blake.
41795
41796 2009-03-06  Eric Blake  <ebb9@byu.net>
41797             Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41800         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41801         condition.
41802         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41803         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41804         condition.
41805         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41806
41807 2009-03-06  Eric Blake  <ebb9@byu.net>
41808
41809         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41810         to avoid compiler warnings.
41811         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41812
41813 2009-03-05  Bruno Haible  <bruno@clisp.org>
41814
41815         * tests/test-ftell.c (main): Disable test beyond end of file on
41816         FreeMiNT.
41817         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41818
41819 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41820
41821         * lib/filevercmp.c: Move hidden files up in ordering.
41822         * tests/test-filevercmp.c: Add tests for hidden files.
41823
41824 2009-03-04  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41827         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41828         AM_CFLAGS.
41829         Reported by Simon Josefsson.
41830
41831 2009-03-03  Bruno Haible  <bruno@clisp.org>
41832
41833         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41834         Reported by Simon Josefsson.
41835
41836         * doc/ld-version-script.texi: Update node reference.
41837
41838 2009-03-03  Bruno Haible  <bruno@clisp.org>
41839
41840         * modules/visibility (License): Change to 'unlimited'.
41841         Suggested by Simon Josefsson.
41842
41843 2009-03-03  Jim Meyering  <meyering@redhat.com>
41844
41845         unlinkdir: cannot_unlink_dir may modify process state
41846         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41847         it's neither thread-safe nor appropriate for use in a library.
41848
41849 2009-03-03  Eric Blake  <ebb9@byu.net>
41850
41851         test-closein: silence test under Darwin
41852         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41853         care if it dies from EPIPE or EBADF.
41854
41855 2009-03-03  Bruno Haible  <bruno@clisp.org>
41856
41857         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41858         earlier.
41859         * doc/visibility.texi: Fix @node and @section.
41860
41861 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41862
41863         * doc/gnulib.texi: Link to sections for ld version script and
41864         visibility.
41865         * doc/visibility.texi: Add @node and @section.
41866         * modules/ld-version-script: New module.
41867         * m4/ld-version-script.m4: New file.
41868         * doc/ld-version-script.texi: New file.
41869
41870 2009-03-02  David Lutterkort  <lutter@redhat.com>
41871
41872         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41874
41875 2009-03-02  Bruno Haible  <bruno@clisp.org>
41876
41877         * doc/visibility.texi: Mention libtool's -export-symbols option.
41878
41879 2009-03-02  Jim Meyering  <meyering@redhat.com>
41880
41881         announce-gen: new option: --no-print-checksums
41882         * build-aux/announce-gen (usage): Describe it.
41883         (print_checksums): Print a newline here, not in the [*] footnote.
41884         (main): Honor it.
41885
41886 2009-03-01  Bruno Haible  <bruno@clisp.org>
41887
41888         Use socklen_t in the native Windows replacements prototypes.
41889         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41890         instead of 'int'.
41891         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41892         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41893         * modules/getsockopt (Depends-on): Add socklen.
41894         * modules/setsockopt (Depends-on): Add socklen.
41895
41896 2009-03-01  Bruno Haible  <bruno@clisp.org>
41897
41898         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41899         least 4.2.
41900
41901 2009-03-01  Eric Blake  <ebb9@byu.net>
41902             Bruno Haible  <bruno@clisp.org>
41903
41904         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41905         error messages.
41906         * lib/wait-process.c (wait_subprocess): Omit error message about
41907         deadly signal sent to the child of termsigp != NULL.
41908
41909 2009-03-01  Eric Blake  <ebb9@byu.net>
41910
41911         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41912
41913 2009-03-01  Bruno Haible  <bruno@clisp.org>
41914
41915         Avoid a gcc warning.
41916         * tests/test-sched.c (b): Make global.
41917         Reported by Eric Blake.
41918
41919 2009-01-19  Martin Lambers  <marlam@marlam.de>
41920
41921         Provide POSIX semantics for socket timeout options on W32.
41922         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41923         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41924         * modules/setsockopt: Depend on sys_time module for struct timeval.
41925         * modules/getsockopt: Depend on sys_time module for struct timeval.
41926
41927 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41928
41929         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41930         __USE_GNU, for consistency with netdb.in.h.
41931         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41932
41933 2009-03-01  Bruno Haible  <bruno@clisp.org>
41934
41935         More support for FreeMiNT.
41936         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41937         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41938
41939 2009-03-01  Bruno Haible  <bruno@clisp.org>
41940
41941         More support for FreeMiNT.
41942         * lib/fpurge.c (fpurge): Correct last commit.
41943         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41944
41945 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41946
41947         Fix unportable awk script in vc-list-files.
41948         * build-aux/vc-list-files: In the replacement awk script, use
41949         substr with a second argument of 1, not zero.
41950         Report by Simon Josefsson.
41951
41952 2009-02-28  Bruno Haible  <bruno@clisp.org>
41953
41954         More support for FreeMiNT.
41955         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41956         to FreeMiNT today.
41957         * lib/fwriting.c (fwriting): Likewise.
41958         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41959
41960 2009-02-28  Bruno Haible  <bruno@clisp.org>
41961
41962         * tests/test-freadseek.c (main): Disable test beyond end of file on
41963         FreeMiNT.
41964         * tests/test-ftello.c (main): Likewise.
41965         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41966
41967 2009-02-28  Bruno Haible  <bruno@clisp.org>
41968
41969         Add tentative support for FreeMiNT.
41970         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41971         * lib/fpurge.c (fpurge): Likewise.
41972         * lib/freadable.c (freadable): Likewise.
41973         * lib/freading.c (freading): Likewise.
41974         * lib/freadptr.c (freadptr): Likewise.
41975         * lib/freadseek.c (freadptrinc): Likewise.
41976         * lib/fseeko.c (rpl_fseeko): Likewise.
41977         * lib/fseterr.c (fseterr): Likewise.
41978         * lib/fwritable.c (fwritable): Likewise.
41979         * lib/fwriting.c (fwriting): Likewise.
41980         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41981         Hourihane.
41982         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41983
41984 2009-02-28  Bruno Haible  <bruno@clisp.org>
41985
41986         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41987         SIGCHLD.
41988         Reported by Jim Meyering.
41989
41990 2009-02-28  Bruno Haible  <bruno@clisp.org>
41991
41992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41993         Mention the results of these tests on various platforms.
41994         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41995         order.
41996         * doc/posix-functions/printf.texi: Likewise.
41997         * doc/posix-functions/snprintf.texi: Likewise.
41998         * doc/posix-functions/sprintf.texi: Likewise.
41999         * doc/posix-functions/vfprintf.texi: Likewise.
42000         * doc/posix-functions/vprintf.texi: Likewise.
42001         * doc/posix-functions/vsnprintf.texi: Likewise.
42002         * doc/posix-functions/vsprintf.texi: Likewise.
42003         * doc/glibc-functions/obstack_printf.texi: Likewise.
42004         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42005
42006 2009-02-28  Bruno Haible  <bruno@clisp.org>
42007
42008         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42009         Reported by Loïc Minier <lool@dooz.org>.
42010
42011 2009-02-27  Bruno Haible  <bruno@clisp.org>
42012
42013         * gnulib-tool (func_import): Make the sed expression used to create the
42014         sed script for updating the .gitignore file POSIX compliant.
42015         Reported by Eric Blake.
42016
42017 2009-02-27  Bruno Haible  <bruno@clisp.org>
42018
42019         * gnulib-tool (sed): Don't alias as "sed --posix".
42020         Reported by Eric Blake.
42021
42022 2009-02-27  Bruno Haible  <bruno@clisp.org>
42023
42024         Avoid test link errors.
42025         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42026         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42027         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42028         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42030
42031 2009-02-27  Bruno Haible  <bruno@clisp.org>
42032
42033         Avoid spurious "(cached)" in configure output.
42034         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42035         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42036         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42037         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42038         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42039         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42040         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42041         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42042         Reported by Eric Blake.
42043
42044 2009-02-27  Eric Blake  <ebb9@byu.net>
42045
42046         printf: fix regression in previous patch
42047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42048
42049 2009-02-27  Bruno Haible  <bruno@clisp.org>
42050
42051         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42052         value.
42053         * lib/stdint.in.h: Likewise.
42054         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42055
42056 2009-02-27  Eric Blake  <ebb9@byu.net>
42057
42058         doc: mention more functions added in cygwin 1.7.0
42059         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42060         addition.
42061         * doc/posix-functions/open_wmemstream.texi: Likewise.
42062         * doc/posix-functions/wcsnlen.texi: Likewise.
42063         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42064         * doc/posix-functions/wcstod.texi: Likewise.
42065         * doc/posix-functions/wcstof.texi: Likewise.
42066         * doc/posix-functions/wcstoimax.texi: Likewise.
42067         * doc/posix-functions/wcstok.texi: Likewise.
42068         * doc/posix-functions/wcstoumax.texi: Likewise.
42069
42070         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42072         * doc/posix-functions/fprintf.texi: Update.
42073         * doc/posix-functions/printf.texi: Update.
42074         * doc/posix-functions/snprintf.texi: Update.
42075         * doc/posix-functions/sprintf.texi: Update.
42076         * doc/posix-functions/vfprintf.texi: Update.
42077         * doc/posix-functions/vprintf.texi: Update.
42078         * doc/posix-functions/vsnprintf.texi: Update.
42079         * doc/posix-functions/vsprintf.texi: Update.
42080         * doc/glibc-functions/obstack_printf.texi: Update.
42081         * doc/glibc-functions/obstack_vprintf.texi: Update.
42082
42083 2009-02-26  Eric Blake  <ebb9@byu.net>
42084
42085         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42086         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42087         compilation bug by using runtime conversion.
42088         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42089         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42090         * modules/ceill-tests (Files): Use nan.h.
42091         * modules/floorl-tests (Files): Likewise.
42092         * modules/frexpl-tests (Files): Likewise.
42093         * modules/isnanl-tests (Files): Likewise.
42094         * modules/ldexpl-tests (Files): Likewise.
42095         * modules/roundl-tests (Files): Likewise.
42096         * modules/truncl-tests (Files): Likewise.
42097         * tests/test-ceill.c (main): Use a working NaN.
42098         * tests/test-floorl.c (main): Likewise.
42099         * tests/test-frexpl.c (main): Likewise.
42100         * tests/test-isnan.c (test_long_double): Likewise.
42101         * tests/test-isnanl.h (main): Likewise.
42102         * tests/test-ldexpl.h (main): Likewise.
42103         * tests/test-roundl.h (main): Likewise.
42104         * tests/test-truncl.h (main): Likewise.
42105         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42106
42107 2009-02-26  Eric Blake  <ebb9@byu.net>
42108             Bruno Haible  <bruno@clisp.org>
42109
42110         Work around a *printf bug with %ls on Solaris.
42111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42112         precision is specified, sprintf stops converting the wide string
42113         argument when the number of bytes that have been produced by this
42114         conversion equals or exceeds the precision.
42115         * doc/posix-functions/fprintf.texi: Update.
42116         * doc/posix-functions/printf.texi: Update.
42117         * doc/posix-functions/snprintf.texi: Update.
42118         * doc/posix-functions/sprintf.texi: Update.
42119         * doc/posix-functions/vfprintf.texi: Update.
42120         * doc/posix-functions/vprintf.texi: Update.
42121         * doc/posix-functions/vsnprintf.texi: Update.
42122         * doc/posix-functions/vsprintf.texi: Update.
42123         * doc/glibc-functions/obstack_printf.texi: Update.
42124         * doc/glibc-functions/obstack_vprintf.texi: Update.
42125
42126 2009-02-26  Eric Blake  <ebb9@byu.net>
42127
42128         stdlib: favor compiler check of random.h
42129         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42130         to avoid an ObjC random.h installed by Swarm.
42131
42132 2009-02-26  Bruno Haible  <bruno@clisp.org>
42133
42134         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42135         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42136         Reported by Gary V. Vaughan <gary@gnu.org>.
42137
42138 2009-02-26  Bruno Haible  <bruno@clisp.org>
42139
42140         Fix *printf behaviour regarding the %ls directive.
42141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42142         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42143         NEED_PRINTF_DIRECTIVE_LS.
42144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42145         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42146         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42147         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42148         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42149         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42150         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42152         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42153         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42154         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42155         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42156         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42159         * doc/posix-functions/fprintf.texi: Update.
42160         * doc/posix-functions/printf.texi: Update.
42161         * doc/posix-functions/snprintf.texi: Update.
42162         * doc/posix-functions/sprintf.texi: Update.
42163         * doc/posix-functions/vfprintf.texi: Update.
42164         * doc/posix-functions/vprintf.texi: Update.
42165         * doc/posix-functions/vsnprintf.texi: Update.
42166         * doc/posix-functions/vsprintf.texi: Update.
42167         * doc/glibc-functions/obstack_printf.texi: Update.
42168         * doc/glibc-functions/obstack_vprintf.texi: Update.
42169         Reported by Eric Blake.
42170
42171 2009-02-25  Bruno Haible  <bruno@clisp.org>
42172
42173         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42174         with known value.
42175         Reported by Gary V. Vaughan <gary@gnu.org>.
42176
42177 2009-02-25  Bruno Haible  <bruno@clisp.org>
42178
42179         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42180         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42181         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42182         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42183         Reported by Gary V. Vaughan <gary@gnu.org>.
42184
42185 2009-02-25  Bruno Haible  <bruno@clisp.org>
42186
42187         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42188         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42189         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42190         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42191         Reported by Gary V. Vaughan <gary@gnu.org>.
42192
42193 2009-02-25  Eric Blake  <ebb9@byu.net>
42194
42195         tests: skip fseek/ftell tests if ungetc is broken
42196         * m4/ungetc.m4: New file.
42197         * modules/fseek-tests: Split test, so ungetc dependency is
42198         separate from rest of test.
42199         * modules/fseeko-tests: Likewise.
42200         * modules/ftell-tests: Likewise.
42201         * modules/ftello-tests: Likewise.
42202         * tests/test-fseek.c (main): Isolate ungetc dependency.
42203         * tests/test-fseeko.c (main): Likewise.
42204         * tests/test-ftell.c (main): Likewise.
42205         * tests/test-ftello.c (main): Likewise.
42206         * tests/test-fseek2.sh: New file.
42207         * tests/test-fseeko2.sh: Likewise.
42208         * tests/test-ftell2.sh: Likewise.
42209         * tests/test-ftello2.sh: Likewise.
42210
42211 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42212
42213         test-getaddrinfo: fix usage of skip return code 77
42214         * tests/test-gettaddrinfo.c: Return skip code 77 only
42215         for first occurance of skip (4x77 is not 77)
42216
42217 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42218
42219         strtod: avoid C99 decl-after-statement
42220         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42221
42222 2009-02-24  Eric Blake  <ebb9@byu.net>
42223
42224         strtod: detect HP-UX 11.31 bug
42225         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42226         Reported by Gary V. Vaughan.
42227
42228 2009-02-23  Bruno Haible  <bruno@clisp.org>
42229
42230         Fix invalid read past end of memory block.
42231         * lib/vasnprintf.c (DCHAR_SET): Define.
42232         (local_wcslen): Define only when needed.
42233         (local_strnlen, local_wcsnlen): New functions.
42234         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42235         directives that involve a conversion ourselves.
42236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42237         wcsnlen, mbrtowc, wcrtomb.
42238         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42239         * tests/test-vasprintf-posix.c (test_function): Likewise.
42240         * tests/test-snprintf-posix.h (test_function): Likewise.
42241         * tests/test-sprintf-posix.h (test_function): Likewise.
42242         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42243
42244 2009-02-22  Bruno Haible  <bruno@clisp.org>
42245
42246         Implement new clarified decomposition of Hangul syllables.
42247         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42248         of type LTV, return only a pairwise decomposition.
42249         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42250         Likewise.
42251         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42252         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42253         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42254
42255 2009-02-22  Bruno Haible  <bruno@clisp.org>
42256
42257         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42258         zero-length results and shrink excess allocated memory.
42259         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42260         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42261         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42262         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42263         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42264         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42265         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42266         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42267         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42268         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42269         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42270         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42271
42272 2009-02-21  Bruno Haible  <bruno@clisp.org>
42273
42274         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42275         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42276         spaces after a period. Put a space between a macro name and its
42277         argument list. Trivial rewordings.
42278         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42279         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42280         (main): Return 0 explicitly.
42281
42282 2009-02-21  Bruno Haible  <bruno@clisp.org>
42283
42284         Tests for module 'uninorm/filter'.
42285         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42286         * modules/uninorm/filter-tests: New file.
42287
42288         New module 'uninorm/filter'.
42289         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42290         uninorm_filter_flush, uninorm_filter_free): New declarations.
42291         * lib/uninorm/uninorm-filter.c: New file.
42292         * modules/uninorm/filter: New file.
42293
42294 2009-02-21  Bruno Haible  <bruno@clisp.org>
42295
42296         Tests for module 'uninorm/nfkc'.
42297         * tests/uninorm/test-nfkc.c: New file.
42298         * tests/uninorm/test-u8-nfkc.c: New file.
42299         * tests/uninorm/test-u16-nfkc.c: New file.
42300         * tests/uninorm/test-u32-nfkc.c: New file.
42301         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42302         * tests/uninorm/test-u32-nfkc-big.c: New file.
42303         * modules/uninorm/nfkc-tests: New file.
42304
42305         New module 'uninorm/nfkc'.
42306         * lib/uninorm/nfkc.c: New file.
42307         * modules/uninorm/nfkc: New file.
42308
42309         Tests for module 'uninorm/nfkd'.
42310         * tests/uninorm/test-nfkd.c: New file.
42311         * tests/uninorm/test-u8-nfkd.c: New file.
42312         * tests/uninorm/test-u16-nfkd.c: New file.
42313         * tests/uninorm/test-u32-nfkd.c: New file.
42314         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42315         * tests/uninorm/test-u32-nfkd-big.c: New file.
42316         * modules/uninorm/nfkd-tests: New file.
42317
42318         New module 'uninorm/nfkd'.
42319         * lib/uninorm/nfkd.c: New file.
42320         * modules/uninorm/nfkd: New file.
42321
42322         Tests for module 'uninorm/nfc'.
42323         * tests/uninorm/test-nfc.c: New file.
42324         * tests/uninorm/test-u8-nfc.c: New file.
42325         * tests/uninorm/test-u16-nfc.c: New file.
42326         * tests/uninorm/test-u32-nfc.c: New file.
42327         * tests/uninorm/test-u32-nfc-big.sh: New file.
42328         * tests/uninorm/test-u32-nfc-big.c: New file.
42329         * modules/uninorm/nfc-tests: New file.
42330
42331         New module 'uninorm/nfc'.
42332         * lib/uninorm/nfc.c: New file.
42333         * modules/uninorm/nfc: New file.
42334
42335         Tests for module 'uninorm/nfd'.
42336         * tests/uninorm/test-nfd.c: New file.
42337         * tests/uninorm/test-u8-nfd.c: New file.
42338         * tests/uninorm/test-u16-nfd.c: New file.
42339         * tests/uninorm/test-u32-nfd.c: New file.
42340         * tests/uninorm/test-u32-nfd-big.sh: New file.
42341         * tests/uninorm/test-u32-nfd-big.c: New file.
42342         * tests/uninorm/test-u32-normalize-big.h: New file.
42343         * tests/uninorm/test-u32-normalize-big.c: New file.
42344         * tests/uninorm/NormalizationTest.txt: New file, created from
42345         Unicode 5.1.0 NormalizationTest.txt.
42346         * modules/uninorm/nfd-tests: New file.
42347
42348         New module 'uninorm/nfd'.
42349         * lib/uninorm/nfd.c: New file.
42350         * modules/uninorm/nfd: New file.
42351
42352         New module 'uninorm/u32-normalize'.
42353         * lib/uninorm/u32-normalize.c: New file.
42354         * modules/uninorm/u32-normalize: New file.
42355
42356         New module 'uninorm/u16-normalize'.
42357         * lib/uninorm/u16-normalize.c: New file.
42358         * modules/uninorm/u16-normalize: New file.
42359
42360         New module 'uninorm/u8-normalize'.
42361         * lib/uninorm/u8-normalize.c: New file.
42362         * lib/uninorm/normalize-internal.h: New file.
42363         * lib/uninorm/u-normalize-internal.h: New file.
42364         * modules/uninorm/u8-normalize: New file.
42365
42366         New module 'uninorm/decompose-internal'.
42367         * lib/uninorm/decompose-internal.c: New file.
42368         * modules/uninorm/decompose-internal: New file.
42369
42370         Tests for module 'uninorm/composition'.
42371         * tests/uninorm/test-composition.c: New file.
42372         * modules/uninorm/composition-tests: New file.
42373
42374         New module 'uninorm/composition'.
42375         * lib/uninorm/composition.c: New file.
42376         * lib/uninorm/composition-table.gperf: New file, generated by
42377         gen-uni-tables.
42378         * modules/uninorm/composition: New file.
42379
42380         Tests for module 'uninorm/compat-decomposition'.
42381         * tests/uninorm/test-compat-decomposition.c: New file.
42382         * modules/uninorm/compat-decomposition-tests: New file.
42383
42384         New module 'uninorm/compat-decomposition'.
42385         * lib/uninorm/decompose-internal.h: New file.
42386         * lib/uninorm/compat-decomposition.c: New file.
42387         * modules/uninorm/compat-decomposition: New file.
42388
42389         Tests for module 'uninorm/canonical-decomposition'.
42390         * tests/uninorm/test-canonical-decomposition.c: New file.
42391         * modules/uninorm/canonical-decomposition-tests: New file.
42392
42393         New module 'uninorm/canonical-decomposition'.
42394         * lib/uninorm/canonical-decomposition.c: New file.
42395         * modules/uninorm/canonical-decomposition: New file.
42396
42397         Tests for module 'uninorm/decomposition'.
42398         * tests/uninorm/test-decomposition.c: New file.
42399         * modules/uninorm/decomposition-tests: New file.
42400
42401         New module 'uninorm/decomposition'.
42402         * lib/uninorm/decomposition.c: New file.
42403         * modules/uninorm/decomposition: New file.
42404
42405         New module 'uninorm/decomposition-table'.
42406         * lib/uninorm/decomposition-table.h: New file.
42407         * lib/uninorm/decomposition-table.c: New file.
42408         * lib/uninorm/decomposition-table1.h: New file, generated by
42409         gen-uni-tables.
42410         * lib/uninorm/decomposition-table2.h: New file, generated by
42411         gen-uni-tables.
42412         * modules/uninorm/decomposition-table: New file.
42413
42414         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42415         (UC_DECOMP_*): New enumeration items.
42416         (get_decomposition): New function.
42417         (struct decomp_table): New type.
42418         (output_decomposition, output_decomposition_tables): New functions.
42419         (unicode_composition_exclusions): New variable.
42420         (fill_composition_exclusions, debug_output_composition_tables): New
42421         functions.
42422         (main): Accept one more argument. Invoke fill_composition_exclusions.
42423         Output decomposition and composition tables.
42424
42425         New module 'uninorm/base'.
42426         * lib/uninorm.h: New file.
42427         * lib/unictype.h: Update comment.
42428         * modules/uninorm/base: New file.
42429
42430 2009-02-21  David Lutterkort  <lutter@redhat.com>
42431
42432         Tests for module 'safe-alloc'.
42433         * tests/test-safe-alloc.c: New file.
42434         * modules/safe-alloc-tests: New file.
42435
42436         New module 'safe-alloc'.
42437         * lib/safe-alloc.h: New file.
42438         * lib/safe-alloc.c: New file.
42439         * m4/safe-alloc.m4: New file.
42440         * modules/safe-alloc: New file.
42441         * doc/safe-alloc.texi: New file.
42442         * doc/gnulib.texi: Include it.
42443         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42444         safe-alloc.
42445
42446 2009-02-18  Bruno Haible  <bruno@clisp.org>
42447
42448         Fix link error on non-glibc systems.
42449         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42450         variable.
42451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42452
42453 2009-02-18  Jim Meyering  <meyering@redhat.com>
42454
42455         fts: avoid used-uninitialized error due to recent change
42456         * lib/fts.c (fts_read): Guard uses of the new member,
42457         parent->fts_n_dirs_remaining, since it's not relevant for
42458         the parent of a directory specified on the command-line.
42459
42460 2009-02-17  James Youngman  <jay@gnu.org>
42461             Bruno Haible  <bruno@clisp.org>
42462
42463         * m4/include_next.m4: Reformulate comment.
42464
42465 2009-02-16  Jim Meyering  <meyering@redhat.com>
42466
42467         fts: add #if guards so that the fts_lgpl module still builds
42468         * lib/fts.c: Guard just-added hash-table-using parts with
42469         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42470         Reported by Simon Josefsson.
42471
42472 2009-02-15  Bruno Haible  <bruno@clisp.org>
42473
42474         * modules/array-mergesort-tests: New file.
42475         * tests/test-array-mergesort.c: New file.
42476
42477         New module 'array-mergesort'.
42478         * modules/array-mergesort: New file.
42479         * lib/array-mergesort.h: New file.
42480
42481 2009-02-15  Bruno Haible  <bruno@clisp.org>
42482
42483         Fix 2009-02-07 commit.
42484         * lib/gen-uni-tables.c (output_predicate, output_category,
42485         output_combclass, output_bidi_category, output_decimal_digit,
42486         output_digit, output_numeric, output_mirror, output_scripts,
42487         output_ident_category, output_simple_mapping): Fix format directives.
42488         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42489
42490 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42491
42492         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42493         fixes are available from IBM.
42494
42495 2009-02-13  Jim Meyering  <meyering@redhat.com>
42496
42497         fts: arrange not to stat non-directories in more cases
42498         This makes GNU find (when it doesn't need to stat each file)
42499         *much* more efficient at traversing reiserfs file systems.
42500         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42501         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42502         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42503         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42504         (leaf_optimization_applies): New function.
42505         (LCO_hash, LCO_compare): New helper functions.
42506         (link_count_optimize_ok): New function.
42507         (fts_stat): Initialize new member (if dir).
42508         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42509         we've just stat'ed a directory.  Skip the stat call when possible.
42510         ---
42511         Note this AFS-related exchange:
42512         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42513         and note find's pioctl call in find/fstype.c.
42514         But that is necessary only if you want to enable the
42515         optimization for AFS, and for now, I don't.
42516
42517         fts: move a function definition "up" (no semantic change)
42518         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42519         "up" to precede upcoming use of a related function.
42520
42521 2009-02-11  Jim Meyering  <meyering@redhat.com>
42522
42523         fts: correct internal computation of nlinks (optimization-related)
42524         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42525         whether the current entry is a directory, so don't test it.
42526
42527 2009-02-10  Bruno Haible  <bruno@clisp.org>
42528
42529         Tests for module 'uniwbrk/ulc-wordbreaks'.
42530         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42531         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42532         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42533
42534         Tests for module 'uniwbrk/u32-wordbreaks'.
42535         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42536         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42537
42538         Tests for module 'uniwbrk/u16-wordbreaks'.
42539         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42540         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42541
42542         Tests for module 'uniwbrk/u8-wordbreaks'.
42543         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42544         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42545
42546 2009-02-10  Bruno Haible  <bruno@clisp.org>
42547
42548         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42549         property.
42550         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42551         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42552         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42553
42554 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42555
42556         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42557         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42558
42559 2009-02-10  Bruno Haible  <bruno@clisp.org>
42560
42561         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42562         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42563         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42564         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42565         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42566         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42567
42568 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42569
42570         * lib/sockets.h (gl_fd_to_handle): New function.
42571
42572         * tests/test-sockets.c: Call gl_fd_to_handle.
42573
42574 2009-02-09  Bruno Haible  <bruno@clisp.org>
42575
42576         * doc/havelib.texi: Document the conventions on bi-arch systems.
42577
42578 2009-02-08  Bruno Haible  <bruno@clisp.org>
42579
42580         Document the AC_LIB_LINKFLAGS macro.
42581         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42582         * doc/gnulib.texi: Include it.
42583
42584 2009-02-08  Bruno Haible  <bruno@clisp.org>
42585
42586         Fix wrong order of sections, compared to TOC.
42587         * doc/gnulib.texi: Include relocatable-maint.texi after the
42588         "Regular expressions" node, not before.
42589
42590 2009-02-08  Bruno Haible  <bruno@clisp.org>
42591
42592         Tests for module 'unicase/totitle'.
42593         * modules/unicase/totitle-tests: New file.
42594
42595         Tests for module 'unicase/tolower'.
42596         * modules/unicase/tolower-tests: New file.
42597
42598         Tests for module 'unicase/toupper'.
42599         * modules/unicase/toupper-tests: New file.
42600         * tests/unicase/test-mapping-part1.h: New file.
42601         * tests/unicase/test-mapping-part2.h: New file.
42602
42603         New module 'unicase/totitle'.
42604         * modules/unicase/totitle: New file.
42605         * lib/unicase/totitle.c: New file.
42606
42607         New module 'unicase/tolower'.
42608         * modules/unicase/tolower: New file.
42609         * lib/unicase/tolower.c: New file.
42610
42611         New module 'unicase/toupper'.
42612         * modules/unicase/toupper: New file.
42613         * lib/unicase/toupper.c: New file.
42614         * lib/unicase/simple-mapping.h: New file.
42615
42616         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42617         (mapping_table): New structure.
42618         (output_simple_mapping): New function.
42619         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42620         * modules/gen-uni-tables (Description): Update.
42621         * lib/unicase/toupper.h: New file, automatically generated by
42622         gen-uni-tables.
42623         * lib/unicase/tolower.h: New file, automatically generated by
42624         gen-uni-tables.
42625         * lib/unicase/totitle.h: New file, automatically generated by
42626         gen-uni-tables.
42627         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42628         gen-uni-tables.
42629         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42630         gen-uni-tables.
42631         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42632         gen-uni-tables.
42633
42634         New module 'unicase/base'.
42635         * modules/unicase/base: New file.
42636         * lib/unicase.h: New file.
42637
42638 2009-02-08  Bruno Haible  <bruno@clisp.org>
42639
42640         New module 'uniwbrk/ulc-wordbreaks'.
42641         * modules/uniwbrk/ulc-wordbreaks: New file.
42642         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42643
42644         New module 'uniwbrk/u32-wordbreaks'.
42645         * modules/uniwbrk/u32-wordbreaks: New file.
42646         * lib/uniwbrk/u32-wordbreaks.c: New file.
42647
42648         New module 'uniwbrk/u16-wordbreaks'.
42649         * modules/uniwbrk/u16-wordbreaks: New file.
42650         * lib/uniwbrk/u16-wordbreaks.c: New file.
42651
42652         New module 'uniwbrk/u8-wordbreaks'.
42653         * modules/uniwbrk/u8-wordbreaks: New file.
42654         * lib/uniwbrk/u8-wordbreaks.c: New file.
42655         * lib/uniwbrk/u-wordbreaks.h: New file.
42656
42657         New module 'uniwbrk/table'.
42658         * modules/uniwbrk/table: New file.
42659         * lib/uniwbrk/wbrktable.h: New file.
42660         * lib/uniwbrk/wbrktable.c: New file.
42661
42662         New module 'uniwbrk/wordbreak-property'.
42663         * modules/uniwbrk/wordbreak-property: New file.
42664         * lib/uniwbrk/wordbreak-property.c: New file.
42665
42666         * lib/gen-uni-tables.c (WBP_*): New enum items.
42667         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42668         (unicode_org_wbp): New variable.
42669         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42670         New functions.
42671         (wbp_table): New structure.
42672         (output_wbp, output_wbrk_tables): New functions.
42673         (main): Accept additional argument. Invoke fill_org_wbp,
42674         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42675         output_wbrk_tables.
42676         * modules/gen-uni-tables (Description): Update.
42677         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42678         gen-uni-tables.
42679
42680         New module 'uniwbrk/base'.
42681         * modules/uniwbrk/base: New file.
42682         * lib/uniwbrk.h: New file.
42683
42684 2009-02-08  Bruno Haible  <bruno@clisp.org>
42685
42686         Update to Unicode 5.1.0.
42687         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42688         U+2185..U+2188.
42689         (is_property_default_ignorable_code_point): Don't include characters
42690         of category Cc or Cs and not-a-characters.
42691         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42692         U+0D79, U+109E, U+109F, U+A60C.
42693         * lib/unictype/bidi_of.h: Regenerated.
42694         * lib/unictype/blocks.h: Regenerated.
42695         * lib/unictype/categ_C.h: Regenerated.
42696         * lib/unictype/categ_Cf.h: Regenerated.
42697         * lib/unictype/categ_Cn.h: Regenerated.
42698         * lib/unictype/categ_L.h: Regenerated.
42699         * lib/unictype/categ_Ll.h: Regenerated.
42700         * lib/unictype/categ_Lm.h: Regenerated.
42701         * lib/unictype/categ_Lo.h: Regenerated.
42702         * lib/unictype/categ_Lu.h: Regenerated.
42703         * lib/unictype/categ_M.h: Regenerated.
42704         * lib/unictype/categ_Mc.h: Regenerated.
42705         * lib/unictype/categ_Me.h: Regenerated.
42706         * lib/unictype/categ_Mn.h: Regenerated.
42707         * lib/unictype/categ_N.h: Regenerated.
42708         * lib/unictype/categ_Nd.h: Regenerated.
42709         * lib/unictype/categ_Nl.h: Regenerated.
42710         * lib/unictype/categ_No.h: Regenerated.
42711         * lib/unictype/categ_P.h: Regenerated.
42712         * lib/unictype/categ_Pd.h: Regenerated.
42713         * lib/unictype/categ_Pe.h: Regenerated.
42714         * lib/unictype/categ_Pf.h: Regenerated.
42715         * lib/unictype/categ_Pi.h: Regenerated.
42716         * lib/unictype/categ_Po.h: Regenerated.
42717         * lib/unictype/categ_Ps.h: Regenerated.
42718         * lib/unictype/categ_S.h: Regenerated.
42719         * lib/unictype/categ_Sk.h: Regenerated.
42720         * lib/unictype/categ_Sm.h: Regenerated.
42721         * lib/unictype/categ_So.h: Regenerated.
42722         * lib/unictype/categ_of.h: Regenerated.
42723         * lib/unictype/combining.h: Regenerated.
42724         * lib/unictype/ctype_alnum.h: Regenerated.
42725         * lib/unictype/ctype_alpha.h: Regenerated.
42726         * lib/unictype/ctype_graph.h: Regenerated.
42727         * lib/unictype/ctype_lower.h: Regenerated.
42728         * lib/unictype/ctype_print.h: Regenerated.
42729         * lib/unictype/ctype_punct.h: Regenerated.
42730         * lib/unictype/ctype_upper.h: Regenerated.
42731         * lib/unictype/decdigit.h: Regenerated.
42732         * lib/unictype/digit.h: Regenerated.
42733         * lib/unictype/mirror.h: Regenerated.
42734         * lib/unictype/numeric.h: Regenerated.
42735         * lib/unictype/pr_alphabetic.h: Regenerated.
42736         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42737         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42738         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42739         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42740         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42741         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42742         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42743         * lib/unictype/pr_combining.h: Regenerated.
42744         * lib/unictype/pr_dash.h: Regenerated.
42745         * lib/unictype/pr_decimal_digit.h: Regenerated.
42746         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42747         * lib/unictype/pr_deprecated.h: Regenerated.
42748         * lib/unictype/pr_diacritic.h: Regenerated.
42749         * lib/unictype/pr_extender.h: Regenerated.
42750         * lib/unictype/pr_format_control.h: Regenerated.
42751         * lib/unictype/pr_grapheme_base.h: Regenerated.
42752         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42753         * lib/unictype/pr_grapheme_link.h: Regenerated.
42754         * lib/unictype/pr_id_continue.h: Regenerated.
42755         * lib/unictype/pr_id_start.h: Regenerated.
42756         * lib/unictype/pr_ideographic.h: Regenerated.
42757         * lib/unictype/pr_ignorable_control.h: Regenerated.
42758         * lib/unictype/pr_lowercase.h: Regenerated.
42759         * lib/unictype/pr_math.h: Regenerated.
42760         * lib/unictype/pr_numeric.h: Regenerated.
42761         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42762         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42763         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42764         * lib/unictype/pr_other_id_continue.h: Regenerated.
42765         * lib/unictype/pr_other_lowercase.h: Regenerated.
42766         * lib/unictype/pr_other_math.h: Regenerated.
42767         * lib/unictype/pr_punctuation.h: Regenerated.
42768         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42769         * lib/unictype/pr_soft_dotted.h: Regenerated.
42770         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42771         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42772         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42773         * lib/unictype/pr_uppercase.h: Regenerated.
42774         * lib/unictype/pr_xid_continue.h: Regenerated.
42775         * lib/unictype/pr_xid_start.h: Regenerated.
42776         * lib/unictype/pr_zero_width.h: Regenerated.
42777         * lib/unictype/scripts.h: Regenerated.
42778         * lib/unictype/scripts_byname.gperf: Regenerated.
42779         * lib/unictype/sy_java_ident.h: Regenerated.
42780         * lib/unilbrk/lbrkprop1.h: Regenerated.
42781         * lib/unilbrk/lbrkprop2.h: Regenerated.
42782         * tests/unictype/test-categ_C.c: Regenerated.
42783         * tests/unictype/test-categ_Cf.c: Regenerated.
42784         * tests/unictype/test-categ_Cn.c: Regenerated.
42785         * tests/unictype/test-categ_L.c: Regenerated.
42786         * tests/unictype/test-categ_Ll.c: Regenerated.
42787         * tests/unictype/test-categ_Lm.c: Regenerated.
42788         * tests/unictype/test-categ_Lo.c: Regenerated.
42789         * tests/unictype/test-categ_Lu.c: Regenerated.
42790         * tests/unictype/test-categ_M.c: Regenerated.
42791         * tests/unictype/test-categ_Mc.c: Regenerated.
42792         * tests/unictype/test-categ_Me.c: Regenerated.
42793         * tests/unictype/test-categ_Mn.c: Regenerated.
42794         * tests/unictype/test-categ_N.c: Regenerated.
42795         * tests/unictype/test-categ_Nd.c: Regenerated.
42796         * tests/unictype/test-categ_Nl.c: Regenerated.
42797         * tests/unictype/test-categ_No.c: Regenerated.
42798         * tests/unictype/test-categ_P.c: Regenerated.
42799         * tests/unictype/test-categ_Pd.c: Regenerated.
42800         * tests/unictype/test-categ_Pe.c: Regenerated.
42801         * tests/unictype/test-categ_Pf.c: Regenerated.
42802         * tests/unictype/test-categ_Pi.c: Regenerated.
42803         * tests/unictype/test-categ_Po.c: Regenerated.
42804         * tests/unictype/test-categ_Ps.c: Regenerated.
42805         * tests/unictype/test-categ_S.c: Regenerated.
42806         * tests/unictype/test-categ_Sk.c: Regenerated.
42807         * tests/unictype/test-categ_Sm.c: Regenerated.
42808         * tests/unictype/test-categ_So.c: Regenerated.
42809         * tests/unictype/test-ctype_alnum.c: Regenerated.
42810         * tests/unictype/test-ctype_alpha.c: Regenerated.
42811         * tests/unictype/test-ctype_graph.c: Regenerated.
42812         * tests/unictype/test-ctype_lower.c: Regenerated.
42813         * tests/unictype/test-ctype_print.c: Regenerated.
42814         * tests/unictype/test-ctype_punct.c: Regenerated.
42815         * tests/unictype/test-ctype_upper.c: Regenerated.
42816         * tests/unictype/test-decdigit.h: Regenerated.
42817         * tests/unictype/test-digit.h: Regenerated.
42818         * tests/unictype/test-numeric.h: Regenerated.
42819         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42820         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42821         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42822         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42823         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42824         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42825         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42826         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42827         * tests/unictype/test-pr_combining.c: Regenerated.
42828         * tests/unictype/test-pr_dash.c: Regenerated.
42829         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42830         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42831         * tests/unictype/test-pr_deprecated.c: Regenerated.
42832         * tests/unictype/test-pr_diacritic.c: Regenerated.
42833         * tests/unictype/test-pr_extender.c: Regenerated.
42834         * tests/unictype/test-pr_format_control.c: Regenerated.
42835         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42836         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42837         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42838         * tests/unictype/test-pr_id_continue.c: Regenerated.
42839         * tests/unictype/test-pr_id_start.c: Regenerated.
42840         * tests/unictype/test-pr_ideographic.c: Regenerated.
42841         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42842         * tests/unictype/test-pr_lowercase.c: Regenerated.
42843         * tests/unictype/test-pr_math.c: Regenerated.
42844         * tests/unictype/test-pr_numeric.c: Regenerated.
42845         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42846         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42847         Regenerated.
42848         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42849         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42850         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42851         * tests/unictype/test-pr_other_math.c: Regenerated.
42852         * tests/unictype/test-pr_punctuation.c: Regenerated.
42853         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42854         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42855         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42856         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42857         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42858         * tests/unictype/test-pr_uppercase.c: Regenerated.
42859         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42860         * tests/unictype/test-pr_xid_start.c: Regenerated.
42861         * tests/unictype/test-pr_zero_width.c: Regenerated.
42862
42863         Update to Unicode 5.1.0.
42864         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42865         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42866         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42867         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42868         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42869         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42870         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42871         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42872         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42873         (nonspacing_table_ind): Update.
42874         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42875
42876         Update to Unicode 5.1.0.
42877         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42878         code transform.
42879         * lib/uniname/uniname.c (unicode_character_name,
42880         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42881         * lib/uniname/uninames.h: Regenerated.
42882         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42883
42884 2009-02-07  Bruno Haible  <bruno@clisp.org>
42885
42886         Merge gen-ctype and gen-lbrk into a single program.
42887         * lib/gen-uni-tables.c: New file, incorporating
42888         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42889         Add directory prefixes to the names of the generated files.
42890         * lib/unictype/gen-ctype.c: Remove file.
42891         * lib/unilbrk/gen-lbrk.c: Remove file.
42892         * modules/gen-uni-tables: New file.
42893         * modules/unictype/gen-ctype: Remove file.
42894         * modules/unilbrk/gen-lbrk: Remove file.
42895
42896 2009-02-07  Bruno Haible  <bruno@clisp.org>
42897
42898         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42899
42900         New module 'unistr/u32-strcoll'.
42901         * modules/unistr/u32-strcoll: New file.
42902         * lib/unistr/u32-strcoll.c: New file.
42903
42904         New module 'unistr/u16-strcoll'.
42905         * modules/unistr/u16-strcoll: New file.
42906         * lib/unistr/u16-strcoll.c: New file.
42907
42908         New module 'unistr/u8-strcoll'.
42909         * modules/unistr/u8-strcoll: New file.
42910         * lib/unistr/u8-strcoll.c: New file.
42911         * lib/unistr/u-strcoll.h: New file.
42912
42913 2009-02-07  Bruno Haible  <bruno@clisp.org>
42914
42915         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42916         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42917         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42918         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42919         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42920         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42921
42922 2009-02-07  Bruno Haible  <bruno@clisp.org>
42923
42924         Make 64-bit clean.
42925         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42926         output_combclass, output_bidi_category, output_decimal_digit,
42927         output_digit, output_numeric, output_mirror, output_scripts,
42928         output_ident_category): Use proper width specifier in format strings.
42929
42930 2009-02-07  Bruno Haible  <bruno@clisp.org>
42931
42932         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42933         failure behaviour.
42934
42935 2009-02-07  Jim Meyering  <meyering@redhat.com>
42936
42937         regex: avoid compilation failure with upcoming gcc-4.4
42938         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42939         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42940         "... error: integer overflow in preprocessor expression".
42941
42942 2009-02-05  Ben Pfaff  <blp@gnu.org>
42943
42944         Fix link errors on Windows when close module is used.
42945         * modules/close: Add $(LIB_CLOSE) to Link section.
42946         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42947         $(LIB_CLOSE) on Windows.
42948
42949 2009-02-05  Jim Meyering  <meyering@redhat.com>
42950
42951         still avoid unused-parameter warnings, but do it cleanly
42952         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42953         (get_fs_usage): Cast to void instead.
42954         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42955         (dev_from_mount_options, read_file_system_list): Cast to void.
42956         Prompted by Bruno Haible.
42957
42958 2009-02-04  Jim Meyering  <meyering@redhat.com>
42959
42960         fsusage.c: correct copyright year
42961         * lib/fsusage.c: Reflect year in which the change is pushed into
42962
42963         avoid misc. warnings
42964         * lib/fsusage.c (UNUSED_PARAM): Define.
42965         (get_fs_usage): Mark parameter "disk" as unused.
42966         * lib/getugroups.c (getgrent): Use "void" in prototype.
42967         * lib/mountlist.c: Mark unused parameters.
42968         (read_file_system_list): Declare a local with "const".
42969         * lib/nanosleep.c (getnow): Declare static.
42970         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42971
42972         dirfd: set errno upon failure
42973         * lib/dirfd.c: Include <errno.h>.
42974         Set errno to ENOTSUP when returning -1.
42975         * modules/dirfd (Depends-on): Add errno.
42976         Suggested by John Kodis <kodis@comcast.net>.
42977
42978 2009-02-01  Bruno Haible  <bruno@clisp.org>
42979
42980         Don't assume sizeof (long) >= sizeof (void *).
42981         * lib/memcmp.c: Include stdint.h.
42982         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42983         srcp2 to 'const byte *'.
42984         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42985         types to uintptr_t.
42986         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42987         * modules/memcmp (Depends-on): Add stdint.
42988         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42989
42990 2009-01-30  Eric Blake  <ebb9@byu.net>
42991
42992         fix more require-before-expand issues
42993         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42994         expand, AC_PROG_AWK.
42995         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42996
42997 2009-01-28  Eric Blake  <ebb9@byu.net>
42998
42999         version-etc: use consistent URL formatting
43000         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43001         Improve formatting.  Use fputs for string without %.
43002
43003 2009-01-28  Jim Meyering  <meyering@redhat.com>
43004
43005         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43006         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43007         "underquoted definition of NAME" from autoconf-2.59.
43008
43009 2009-01-28  Bruno Haible  <bruno@clisp.org>
43010
43011         * doc/gnulib.texi: Add "Obsolete modules" to index.
43012
43013 2009-01-28  Jim Meyering  <meyering@redhat.com>
43014
43015         useless-if-before-free: recognize more variants
43016         * build-aux/useless-if-before-free: Also recognize e.g.,
43017         if (NULL != p) free (p);
43018
43019 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43020
43021         test-getaddrinfo: skip (don't fail) this test when there's no network
43022         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43023         on the presumption that it means you lack network access.
43024
43025 2009-01-26  Jim Meyering  <meyering@redhat.com>
43026
43027         fflush: avoid warnings on modern systems
43028         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43029         pos and result, into scopes where they're used.
43030
43031 2009-01-26  Eric Blake  <ebb9@byu.net>
43032
43033         Silence warning reintroduced by recent extensions patch.
43034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43035         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43036         autoconf.
43037
43038         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43039         * m4/00gnulib.m4: New file.
43040         * gnulib-tool (func_get_filelist): Always use it.
43041         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43042         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43043
43044 2009-01-25  Bruno Haible  <bruno@clisp.org>
43045
43046         Make test-quotearg work on MacOS X and AIX.
43047         * tests/test-quotearg.sh: New file.
43048         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43049         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43050         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43051         include <libintl.h>.
43052         (fake_locale): Remove variable.
43053         (gettext, dgettext, dcgettext): Remove functions.
43054         (main): Instead of setting a fake locale, set a real locale. Call
43055         textdomain and bindtextdomain.
43056         * modules/quotearg-tests (Files): Add the new files.
43057         (Depends-on): Add gettext, setenv, unsetenv.
43058         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43059         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43060         Augment TESTS_ENVIRONMENT.
43061
43062 2009-01-25  Bruno Haible  <bruno@clisp.org>
43063
43064         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43065         fr_FR.ISO8859-1 locale on MacOS X.
43066         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43067         ja_JP.eucJP locale on MacOS X.
43068         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43069         zh_CN.GB18030 locale on MacOS X.
43070
43071 2009-01-25  Bruno Haible  <bruno@clisp.org>
43072
43073         Avoid link errors on MacOS X 10.3.
43074         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43075         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43076
43077 2009-01-25  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43080         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43081         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43082         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43083         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43084         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43085         posix_spawnattr_init, posix_spawnattr_setsigmask,
43086         posix_spawnattr_setflags, posix_spawnattr_destroy.
43087
43088         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43089         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43090         * modules/execute (Files): Remove m4/posix_spawn.m4.
43091         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43092         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43093         posix_spawnattr_init, posix_spawnattr_setsigmask,
43094         posix_spawnattr_setflags, posix_spawnattr_destroy.
43095
43096 2009-01-25  Bruno Haible  <bruno@clisp.org>
43097
43098         * lib/glthread/threadlib.c: Include <stdlib.h>.
43099
43100 2009-01-25  Bruno Haible  <bruno@clisp.org>
43101
43102         * lib/glthread/threadlib.c (dummy): New declaration.
43103
43104 2009-01-25  Bruno Haible  <bruno@clisp.org>
43105
43106         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43107         multibyte characters also for the GB18030 encoding. Don't crash when
43108         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43109
43110 2009-01-25  Bruno Haible  <bruno@clisp.org>
43111
43112         Avoid redefining 'struct random_data' on OSF/1 5.1.
43113         * lib/stdlib.in.h: Include <random.h> if it exists.
43114         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43115         HAVE_RANDOM_H. Include <random.h> when testing whether
43116         'struct random_data' exists.
43117         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43118
43119 2009-01-25  Bruno Haible  <bruno@clisp.org>
43120
43121         Don't install charset.alias on MacOS X >= 10.3.
43122         * lib/localcharset.c (DARWIN7): New macro.
43123         (get_charset_aliases): Hardcode the result for Darwin7.
43124         * modules/localcharset (install-exec-local): Don't install
43125         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43126
43127 2009-01-25  Bruno Haible  <bruno@clisp.org>
43128
43129         Don't install charset.alias on mingw and Cygwin.
43130         * modules/localcharset (install-exec-local): Don't install
43131         charset.alias on mingw and Cygwin, if the file does not yet exist.
43132         The result for these platforms is hardcoded in localcharset.c.
43133
43134 2009-01-25  Bruno Haible  <bruno@clisp.org>
43135
43136         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43137         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43138         before requiring AC_USE_SYSTEM_EXTENSIONS.
43139
43140 2009-01-25  Jim Meyering  <meyering@redhat.com>
43141
43142         c-strtod: avoid warnings
43143         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43144         "assignment discards qualifiers from pointer target type" warnings.
43145
43146 2009-01-24  Bruno Haible  <bruno@clisp.org>
43147
43148         Add support for non-UTF-8 locales on MacOS X.
43149         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43150         canonical encodings. For Darwin 7 and newer, don't map traditional
43151         encodings to UTF-8.
43152         Reported by Vincent Lefevre <vincent@vinc17.org>
43153         at <http://savannah.gnu.org/bugs/?25235>.
43154
43155 2009-01-24  Bruno Haible  <bruno@clisp.org>
43156
43157         * doc/gnulib.texi (Obsolete modules): New section.
43158         Reported by Mike Frysinger <vapier@gentoo.org>.
43159
43160 2009-01-24  Bruno Haible  <bruno@clisp.org>
43161
43162         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43163         (%.dvi): New rule.
43164
43165 2009-01-24  Bruno Haible  <bruno@clisp.org>
43166
43167         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43168         Reported by Eric Blake.
43169
43170 2009-01-24  Bruno Haible  <bruno@clisp.org>
43171
43172         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43173         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43174         Reported by Gary V. Vaughan <gary@gnu.org>.
43175
43176 2009-01-24  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43179
43180 2009-01-23  Bruno Haible  <bruno@clisp.org>
43181
43182         Make c-strtod, c-strtold usable in libraries.
43183         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43184         (C_STRTOD): Call strdup instead of xstrdup.
43185         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43186         * modules/c-strtold (Depends-on): Likewise.
43187         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43188         * NEWS: Mention the change.
43189         Reported by Michael Gold <mgold@ncf.ca>.
43190
43191 2009-01-23  Jim Meyering  <meyering@redhat.com>
43192
43193         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43194         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43195         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43196
43197 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43198
43199         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43200         GNU CoreUtils.
43201         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43202         * modules/version-etc (Description): Update.
43203
43204 2009-01-22  Bruno Haible  <bruno@clisp.org>
43205
43206         Cache the C locale object.
43207         * lib/c-strtod.c (c_locale_cache): New variable.
43208         (c_locale): New function.
43209         (C_STRTOD): Use it, and don't call freelocale.
43210         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43211         Suggested by Paolo Bonzini.
43212
43213 2009-01-21  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43216         conditions other than overflow.
43217
43218 2009-01-21  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/c-strtod.c: Include errno.h.
43221         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43222         value from STRTOD_L and STRTOD.
43223
43224 2009-01-21  Bruno Haible  <bruno@clisp.org>
43225         and Jim Meyering  <meyering@redhat.com>
43226
43227         nanosleep: skip configure test (fail it) for apple universal builds
43228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43229         universal builds, assume that nanosleep does not work.
43230         * modules/nanosleep (Depends-on): Add multiarch.
43231
43232         mktime: skip configure test (fail it) for apple universal builds
43233         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43234         universal builds, assume that mktime does not work.
43235         * modules/mktime (Depends-on): Add multiarch.
43236
43237 2009-01-21  Eric Blake  <ebb9@byu.net>
43238
43239         multiarch: avoid expand-before-require warning
43240         * modules/multiarch (configure.ac): Require, rather than expand,
43241         gl_MULTIARCH.
43242         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43243         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43244         enforce that all clients require it.  Partial reversion of
43245         2008-12-29 patch.
43246
43247         error: avoid expand-before-require warning
43248         * modules/errno (configure.ac): Require, rather than expand,
43249         gl_HEADER_ERRNO_H.
43250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43251         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43252         enforce that all clients require it.
43253
43254         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43255         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43256         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43257         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43258
43259 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43260
43261         Revert:
43262         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43263
43264         regex: do not depend on obsolete modules.
43265         * modules/regex: Remove memcmp and memmove.
43266
43267 2009-01-20  Bruno Haible  <bruno@clisp.org>
43268
43269         Make the 'link' module link on Windows NT 4.
43270         * lib/link.c (_WIN32_WINNT): Don't define.
43271         (CreateHardLinkFuncType): New type.
43272         (CreateHardLinkFunc, initialized): New variables.
43273         (initialize): New function.
43274         (link): Invoke CreateHardLink indirectly through the function pointer.
43275
43276 2009-01-20  Bruno Haible  <bruno@clisp.org>
43277
43278         Fix compilation failure on mingw.
43279         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43280
43281 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43282
43283         * doc/c-strtod.texi: Mention a couple of restrictions.
43284
43285 2009-01-20  Jim Meyering  <meyering@redhat.com>
43286
43287         gettimeofday: move more declarations out of functions
43288         * lib/gettimeofday.c: Move extern declarations of tzset and
43289         gmtime out of containing functions.  Prompted by Bruno Haible.
43290
43291 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43292
43293         regex: do not depend on obsolete modules.
43294         * modules/regex: Remove memcmp and memmove.
43295
43296 2009-01-19  Bruno Haible  <bruno@clisp.org>
43297
43298         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43299         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43300         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43301         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43302         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43303
43304 2009-01-19  Bruno Haible  <bruno@clisp.org>
43305
43306         * tests/test-link.c: Include <errno.h>.
43307         (main): Exit with code 77 when a hard link cannot be created due to
43308         the file system.
43309         * tests/test-link.sh: Skip test when a hard link cannot be created due
43310         to the file system.
43311         Suggested by Eric Blake.
43312
43313 2009-01-19  Martin Lambers  <marlam@marlam.de>
43314
43315         * modules/link-tests: New file.
43316         * tests/test-link.sh: New file.
43317         * tests/test-link.c: New file.
43318
43319 2009-01-19  Eric Blake  <ebb9@byu.net>
43320
43321         doc: mention another function added in cygwin 1.7.0
43322         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43323         Another new function in cygwin 1.7.
43324
43325 2009-01-19  Bruno Haible  <bruno@clisp.org>
43326
43327         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43328         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43329         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43330         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43331         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43332         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43333         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43334         * m4/md4.m4 (gl_MD4): Likewise.
43335         * m4/md5.m4 (gl_MD5): Likewise.
43336         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43337         * m4/sha1.m4 (gl_SHA1): Likewise.
43338         * m4/sha256.m4 (gl_SHA256): Likewise.
43339         * m4/sha512.m4 (gl_SHA512): Likewise.
43340
43341 2009-01-19  Bruno Haible  <bruno@clisp.org>
43342
43343         * modules/uniname/uniname-tests (Depends-on): Add progname.
43344         * tests/uniname/test-uninames.c: Include progname.h.
43345         (main): Call set_program_name.
43346
43347         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43348         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43349         (main): Call set_program_name.
43350
43351         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43352         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43353         (main): Call set_program_name.
43354
43355         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43356         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43357         (main): Call set_program_name.
43358
43359         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43360         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43361         (main): Call set_program_name.
43362
43363         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43364         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43365         (main): Call set_program_name.
43366
43367         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43368         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43369         (main): Call set_program_name.
43370
43371         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43372         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43373         (main): Call set_program_name.
43374
43375         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43376         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43377         (main): Call set_program_name.
43378
43379 2009-01-19  Eric Blake  <ebb9@byu.net>
43380
43381         test-unistd: test previous patch
43382         * tests/test-unistd.c: Test *_FILENO macros.
43383
43384         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43385         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43386         Guarantee a definition.
43387         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43388         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43389         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43390         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43391         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43392         Likewise.
43393         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43394         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43395         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43396         Likewise.
43397         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43398         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43399         (STDERR_FILENO): Likewise.
43400         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43401         (STDERR_FILENO): Likewise.
43402         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43403         (STDERR_FILENO): Likewise.
43404         Reported by Elbert Pol.
43405
43406 2009-01-19  Eric Blake  <ebb9@byu.net>
43407
43408         doc: mention more functions added in cygwin 1.7.0
43409         * doc/posix-functions/abort.texi (abort): Update wording related
43410         to cygwin.
43411         * doc/posix-functions/daylight.texi (daylight): Likewise.
43412         * doc/posix-functions/optarg.texi (optarg): Likewise.
43413         * doc/posix-functions/optarg.texi (opterr): Likewise.
43414         * doc/posix-functions/optarg.texi (optind): Likewise.
43415         * doc/posix-functions/optarg.texi (optopt): Likewise.
43416         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43417         worked in 1.5.x, and was withdrawn in 1.7.
43418         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43419         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43420         cygwin versions.
43421         * doc/posix-functions/perror.texi (perror): Likewise.
43422         * doc/posix-functions/printf.texi (printf): Likewise.
43423         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43424         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43425         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43426         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43427         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43428         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43429         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43430         Likewise.
43431         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43432         Likewise.
43433         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43434         this function.
43435         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43436         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43437         Likewise.
43438         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43439         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43440         * doc/posix-functions/confstr.texi (confstr): Likewise.
43441         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43442         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43443         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43444         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43445         * doc/posix-functions/fputws.texi (fputws): Likewise.
43446         * doc/posix-functions/fwide.texi (fwide): Likewise.
43447         * doc/posix-functions/getwc.texi (getwc): Likewise.
43448         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43449         * doc/posix-functions/putwc.texi (putwc): Likewise.
43450         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43451         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43452         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43453         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43454         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43455         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43456         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43457         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43458         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43459         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43460         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43461
43462 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43463
43464         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43465         * lib/ioctl.c: Include <sys/ioctl.h>.
43466
43467 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43468
43469         * modules/getdate-tests (Depends-on): Add progname.
43470         * tests/test-getdate.c: Use progname module, to avoid link errors
43471         on non-glibc systems.
43472
43473 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43474
43475         * modules/filenamecat-tests (Depends-on): Add progname.
43476         * modules/fstrcmp-tests (Depends-on): Likewise.
43477
43478         * tests/test-filenamecat.c: Use progname module, to avoid link
43479         errors on non-glibc systems.
43480         * tests/test-fstrcmp.c: Likewise.
43481
43482 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43483
43484         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43485         * lib/gettimeofday.c: Move extern declaration out of function.
43486
43487 2009-01-18  Bruno Haible  <bruno@clisp.org>
43488
43489         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43490         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43491         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43492
43493 2009-01-18  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/strftime.c (MEMPCPY): Remove unused macro.
43496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43497
43498 2009-01-18  Martin Lambers  <marlam@marlam.de>
43499
43500         New module 'link'.
43501         * lib/unistd.in.h (link): New declaration.
43502         * lib/link.c: New file.
43503         * m4/link.m4: New file.
43504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43505         HAVE_LINK.
43506         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43507         * modules/link: New file.
43508         * doc/posix-functions/link.texi: Mention the new module.
43509
43510 2009-01-18  Bruno Haible  <bruno@clisp.org>
43511
43512         * tests/test-avltree_list.c (main): Call set_program_name.
43513         * tests/test-avltree_oset.c (main): Likewise.
43514         * tests/test-obstack-printf.c: Include progname.h.
43515         (main): Call set_program_name.
43516         * tests/test-quotearg.c: Include progname.h.
43517         (main): Call set_program_name.
43518         * tests/test-xmemdup0.c: Include progname.h.
43519         (main): Call set_program_name.
43520
43521 2009-01-18  Bruno Haible  <bruno@clisp.org>
43522
43523         New module 'alphasort'.
43524         * lib/dirent.in.h (alphasort): New declaration.
43525         * lib/alphasort.c: New file, from glibc with modifications.
43526         * m4/alphasort.m4: New file.
43527         * modules/alphasort: New file.
43528         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43529         HAVE_ALPHASORT.
43530         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43531         HAVE_ALPHASORT.
43532         * doc/posix-functions/alphasort.texi: Mention the new module and the
43533         portability problems.
43534
43535 2009-01-18  Bruno Haible  <bruno@clisp.org>
43536
43537         New module 'scandir'.
43538         * lib/dirent.in.h (scandir): New declaration.
43539         * lib/scandir.c: New file, from glibc with modifications.
43540         * m4/scandir.m4: New file.
43541         * modules/scandir: New file.
43542         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43543         HAVE_SCANDIR.
43544         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43545         HAVE_SCANDIR.
43546         * doc/posix-functions/scandir.texi: Mention the new module and the
43547         portability problems.
43548
43549 2009-01-17  Bruno Haible  <bruno@clisp.org>
43550
43551         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43552         Update documentation.
43553         (func_remove_suffix): Escape all dots in the suffix. Update
43554         documentation.
43555         (func_filter_filelist): Update documentation.
43556         Reported by Ralf Wildenhues.
43557
43558 2009-01-17  Bruno Haible  <bruno@clisp.org>
43559
43560         * modules/dprintf-posix-tests: New file.
43561         * tests/test-dprintf-posix.sh: New file.
43562         * tests/test-dprintf-posix.c: New file.
43563
43564         New modules 'dprintf', 'dprintf-posix'.
43565         * lib/stdio.in.h (dprintf): New declaration.
43566         * lib/dprintf.c: New file.
43567         * m4/dprintf.m4: New file.
43568         * m4/dprintf-posix.m4: New file.
43569         * modules/dprintf: New file.
43570         * modules/dprintf-posix: New file.
43571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43572         HAVE_DPRINTF, REPLACE_DPRINTF.
43573         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43574         HAVE_DPRINTF, REPLACE_DPRINTF.
43575         * doc/posix-functions/dprintf.texi: Mention the new modules.
43576
43577 2009-01-17  Bruno Haible  <bruno@clisp.org>
43578
43579         * modules/vdprintf-posix-tests: New file.
43580         * tests/test-vdprintf-posix.sh: New file.
43581         * tests/test-vdprintf-posix.c: New file.
43582
43583         New modules 'vdprintf', 'vdprintf-posix'.
43584         * lib/stdio.in.h (vdprintf): New declaration.
43585         * lib/vdprintf.c: New file.
43586         * m4/vdprintf.m4: New file.
43587         * m4/vdprintf-posix.m4: New file.
43588         * modules/vdprintf: New file.
43589         * modules/vdprintf-posix: New file.
43590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43591         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43592         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43593         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43594         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43595
43596 2009-01-17  Bruno Haible  <bruno@clisp.org>
43597
43598         Fix replacement of fopen on mingw.
43599         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43600         mingw.
43601
43602 2009-01-17  Bruno Haible  <bruno@clisp.org>
43603
43604         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43605         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43606
43607 2009-01-17  Bruno Haible  <bruno@clisp.org>
43608
43609         Avoid test-fflush2.sh failure on mingw.
43610         * tests/test-fflush2.c: Include binary-io.h.
43611         (main): Put standard input into binary mode.
43612         * modules/fflush-tests (Depends-on): Add binary-io.
43613
43614 2009-01-17  Bruno Haible  <bruno@clisp.org>
43615
43616         * lib/wchar.in.h: In another particular situation, include only the
43617         system's <wchar.h> file.
43618         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43619         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43620         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43621
43622 2009-01-17  Bruno Haible  <bruno@clisp.org>
43623
43624         Support for stripping executables in --enable-relocatable.
43625         * build-aux/install-reloc: Expect one more argument, or an environment
43626         variable RELOC_STRIP_PROG. If set, strip the destination program and
43627         its wrapper.
43628         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43629         RELOC_STRIP_PROG.
43630         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43631         to set RELOCATABLE_STRIP.
43632         * NEWS: Mention the new Makefile requirement.
43633
43634 2009-01-17  Bruno Haible  <bruno@clisp.org>
43635
43636         * build-aux/install-reloc: Remove debugging information left over by
43637         C compiler on MacOS X.
43638
43639 2009-01-17  Bruno Haible  <bruno@clisp.org>
43640
43641         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43642         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43643         _NSGetExecutablePath.
43644
43645 2009-01-16  Jim Meyering  <meyering@redhat.com>
43646
43647         strerror: avoid warnings about discarding "const"
43648         * lib/strerror.c (rpl_strerror): Instead of returning a const
43649         string from each and every "case", use a variable, and add a single
43650         cast after the switch.
43651
43652 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43653
43654         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43655
43656 2009-01-16  Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43659         array initializer syntax that also works in C++ mode.
43660         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43661
43662 2009-01-16  Jim Meyering  <meyering@redhat.com>
43663
43664         poll: suppress a warning
43665         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43666         to ignore "...unsigned expression < 0 is always false" warnings.
43667
43668 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43669
43670         poll: remove declarations of unused variables
43671         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43672         sockbuf and optlen.
43673
43674 2009-01-15  Bruno Haible  <bruno@clisp.org>
43675
43676         Make fflush-after-ungetc POSIX compliant on BSD systems.
43677         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43678         (clear_ungetc_buffer): Implement also for other systems.
43679         (rpl_fflush): On glibc systems, invoke
43680         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43681         clear_ungetc_buffer after fetching the stream's position, not before.
43682
43683 2009-01-15  Bruno Haible  <bruno@clisp.org>
43684
43685         Make fflush-after-ungetc POSIX compliant on glibc systems.
43686         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43687         after ungetc.
43688         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43689         (rpl_fflush): On glibc systems, simply call the system's fflush
43690         function after clearing the ungetc buffer.
43691         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43692         Instead, lseek only to the end of file, then use the system's fseeko
43693         for the rest. On glibc systems, reset the EOF indicator bit.
43694
43695 2009-01-15  Jim Meyering  <meyering@redhat.com>
43696
43697         openmp.m4: revert quote-adding change, for portability to older autoconf
43698         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43699         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43700         Simon Josefsson noticed the problem when using autoconf-2.61.
43701
43702 2009-01-15  Bruno Haible  <bruno@clisp.org>
43703
43704         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43705         * tests/test-fflush2.c (ASSERT): Always fail.
43706         (main): Add two tests for fflush() after ungetc(), taking into account
43707         the Austin Group's clarification.
43708         Suggested by Eric Blake.
43709
43710 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43711
43712         mktime.m4: remove K&R-style function prototypes
43713         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43714         for the Sun C++ compiler.
43715
43716 2009-01-14  Bruno Haible  <bruno@clisp.org>
43717
43718         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43719         while including <wchar.h>.
43720         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43721         the system's <wchar.h> file.
43722         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43723
43724 2009-01-14  Bruno Haible  <bruno@clisp.org>
43725
43726         * m4/csharp.m4: Don't mention gettext on the serial number line.
43727         * m4/csharpexec.m4: Likewise.
43728         * m4/eaccess.m4: Likewise.
43729         * m4/javaexec.m4: Likewise.
43730         * m4/sig_atomic_t.m4: Likewise.
43731         * m4/tmpdir.m4: Likewise.
43732         * m4/intldir.m4: Bump gettext version.
43733         * m4/lib-ld.m4: Likewise.
43734
43735 2009-01-14  Bruno Haible  <bruno@clisp.org>
43736
43737         * lib/progname.c (set_program_name): Add more comments.
43738         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43739
43740 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43741
43742         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43743         were sys/stat.h does not define it.
43744
43745 2009-01-14  Jim Meyering  <meyering@redhat.com>
43746
43747         many *.m4 files: improve m4 quoting
43748         99% of this change was performed by running the following commands:
43749         git ls-files | grep '\.m4$' | xargs perl -pi \
43750           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43751           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43752           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43753           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43754         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43755         The remainder were to add Copyright dates, increment serial numbers,
43756         undo some changes in comments, exclude m4/intl.m4, and add quotes
43757         around the "1" in ",1" where the unusual spacing prohibited the
43758         above regexps from doing the job.  For more details, see
43759         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43760         * m4/acl.m4: Modified.
43761         * m4/afs.m4: Likewise.
43762         * m4/alloca.m4: Likewise.
43763         * m4/argp.m4: Likewise.
43764         * m4/argz.m4: Likewise.
43765         * m4/atexit.m4: Likewise.
43766         * m4/bison-i18n.m4: Likewise.
43767         * m4/bison.m4: Likewise.
43768         * m4/byteswap.m4: Likewise.
43769         * m4/c-stack.m4: Likewise.
43770         * m4/c-strtod.m4: Likewise.
43771         * m4/calloc.m4: Likewise.
43772         * m4/canonicalize-lgpl.m4: Likewise.
43773         * m4/chown.m4: Likewise.
43774         * m4/clock_time.m4: Likewise.
43775         * m4/codeset.m4: Likewise.
43776         * m4/copy-file.m4: Likewise.
43777         * m4/csharp.m4: Likewise.
43778         * m4/csharpcomp.m4: Likewise.
43779         * m4/csharpexec.m4: Likewise.
43780         * m4/d-ino.m4: Likewise.
43781         * m4/d-type.m4: Likewise.
43782         * m4/dirfd.m4: Likewise.
43783         * m4/double-slash-root.m4: Likewise.
43784         * m4/eaccess.m4: Likewise.
43785         * m4/eealloc.m4: Likewise.
43786         * m4/environ.m4: Likewise.
43787         * m4/errno_h.m4: Likewise.
43788         * m4/euidaccess.m4: Likewise.
43789         * m4/execute.m4: Likewise.
43790         * m4/fatal-signal.m4: Likewise.
43791         * m4/fchdir.m4: Likewise.
43792         * m4/fcntl_h.m4: Likewise.
43793         * m4/fileblocks.m4: Likewise.
43794         * m4/filenamecat.m4: Likewise.
43795         * m4/findprog.m4: Likewise.
43796         * m4/flexmember.m4: Likewise.
43797         * m4/fnmatch.m4: Likewise.
43798         * m4/fopen.m4: Likewise.
43799         * m4/fpending.m4: Likewise.
43800         * m4/fprintf-posix.m4: Likewise.
43801         * m4/free.m4: Likewise.
43802         * m4/frexp.m4: Likewise.
43803         * m4/frexpl.m4: Likewise.
43804         * m4/fsusage.m4: Likewise.
43805         * m4/ftruncate.m4: Likewise.
43806         * m4/gc-camellia.m4: Likewise.
43807         * m4/gc-random.m4: Likewise.
43808         * m4/gc.m4: Likewise.
43809         * m4/getaddrinfo.m4: Likewise.
43810         * m4/getcwd-abort-bug.m4: Likewise.
43811         * m4/getcwd-path-max.m4: Likewise.
43812         * m4/getdate.m4: Likewise.
43813         * m4/getdomainname.m4: Likewise.
43814         * m4/getgroups.m4: Likewise.
43815         * m4/gethostname.m4: Likewise.
43816         * m4/gethrxtime.m4: Likewise.
43817         * m4/getline.m4: Likewise.
43818         * m4/getloadavg.m4: Likewise.
43819         * m4/getndelim2.m4: Likewise.
43820         * m4/getpass.m4: Likewise.
43821         * m4/gettext.m4: Likewise.
43822         * m4/gettime.m4: Likewise.
43823         * m4/gettimeofday.m4: Likewise.
43824         * m4/gnulib-common.m4: Likewise.
43825         * m4/group-member.m4: Likewise.
43826         * m4/host-os.m4: Likewise.
43827         * m4/iconv.m4: Likewise.
43828         * m4/iconv_open.m4: Likewise.
43829         * m4/inet_ntop.m4: Likewise.
43830         * m4/inet_pton.m4: Likewise.
43831         * m4/inline.m4: Likewise.
43832         * m4/intldir.m4: Likewise.
43833         * m4/intlmacosx.m4: Likewise.
43834         * m4/intmax.m4: Likewise.
43835         * m4/intmax_t.m4: Likewise.
43836         * m4/inttypes.m4: Likewise.
43837         * m4/inttypes_h.m4: Likewise.
43838         * m4/inttypes-pri.m4: Likewise.
43839         * m4/isapipe.m4: Likewise.
43840         * m4/isnand.m4: Likewise.
43841         * m4/isnanf.m4: Likewise.
43842         * m4/isnanl.m4: Likewise.
43843         * m4/javacomp.m4: Likewise.
43844         * m4/javaexec.m4: Likewise.
43845         * m4/jm-winsz1.m4: Likewise.
43846         * m4/jm-winsz2.m4: Likewise.
43847         * m4/lchown.m4: Likewise.
43848         * m4/lcmessage.m4: Likewise.
43849         * m4/ldexpl.m4: Likewise.
43850         * m4/lib-ld.m4: Likewise.
43851         * m4/lib-link.m4: Likewise.
43852         * m4/libsigsegv.m4: Likewise.
43853         * m4/link-follow.m4: Likewise.
43854         * m4/localcharset.m4: Likewise.
43855         * m4/locale-fr.m4: Likewise.
43856         * m4/locale-ja.m4: Likewise.
43857         * m4/locale-tr.m4: Likewise.
43858         * m4/locale-zh.m4: Likewise.
43859         * m4/lock.m4: Likewise.
43860         * m4/longlong.m4: Likewise.
43861         * m4/ls-mntd-fs.m4: Likewise.
43862         * m4/lstat.m4: Likewise.
43863         * m4/malloc.m4: Likewise.
43864         * m4/mathl.m4: Likewise.
43865         * m4/mbrtowc.m4: Likewise.
43866         * m4/mbstate_t.m4: Likewise.
43867         * m4/mbswidth.m4: Likewise.
43868         * m4/memchr.m4: Likewise.
43869         * m4/memcmp.m4: Likewise.
43870         * m4/memcpy.m4: Likewise.
43871         * m4/memmem.m4: Likewise.
43872         * m4/memmove.m4: Likewise.
43873         * m4/mempcpy.m4: Likewise.
43874         * m4/memrchr.m4: Likewise.
43875         * m4/memset.m4: Likewise.
43876         * m4/minmax.m4: Likewise.
43877         * m4/mkdir-slash.m4: Likewise.
43878         * m4/mkdtemp.m4: Likewise.
43879         * m4/mktime.m4: Likewise.
43880         * m4/mmap-anon.m4: Likewise.
43881         * m4/mountlist.m4: Likewise.
43882         * m4/nanosleep.m4: Likewise.
43883         * m4/nls.m4: Likewise.
43884         * m4/nocrash.m4: Likewise.
43885         * m4/open.m4: Likewise.
43886         * m4/openat.m4: Likewise.
43887         * m4/openmp.m4: Likewise.
43888         * m4/pathmax.m4: Likewise.
43889         * m4/perl.m4: Likewise.
43890         * m4/physmem.m4: Likewise.
43891         * m4/pipe.m4: Likewise.
43892         * m4/po.m4: Likewise.
43893         * m4/poll.m4: Likewise.
43894         * m4/posixtm.m4: Likewise.
43895         * m4/posixver.m4: Likewise.
43896         * m4/printf-frexp.m4: Likewise.
43897         * m4/printf-frexpl.m4: Likewise.
43898         * m4/printf-posix.m4: Likewise.
43899         * m4/printf-posix-rpl.m4: Likewise.
43900         * m4/printf.m4: Likewise.
43901         * m4/progtest.m4: Likewise.
43902         * m4/putenv.m4: Likewise.
43903         * m4/readline.m4: Likewise.
43904         * m4/readlink.m4: Likewise.
43905         * m4/readutmp.m4: Likewise.
43906         * m4/realloc.m4: Likewise.
43907         * m4/regex.m4: Likewise.
43908         * m4/relocatable.m4: Likewise.
43909         * m4/relocatable-lib.m4: Likewise.
43910         * m4/rename-dest-slash.m4: Likewise.
43911         * m4/rename.m4: Likewise.
43912         * m4/rmdir-errno.m4: Likewise.
43913         * m4/rmdir.m4: Likewise.
43914         * m4/roundf.m4: Likewise.
43915         * m4/roundl.m4: Likewise.
43916         * m4/rpmatch.m4: Likewise.
43917         * m4/save-cwd.m4: Likewise.
43918         * m4/selinux-selinux-h.m4: Likewise.
43919         * m4/setenv.m4: Likewise.
43920         * m4/settime.m4: Likewise.
43921         * m4/sig2str.m4: Likewise.
43922         * m4/sig_atomic_t.m4: Likewise.
43923         * m4/signalblocking.m4: Likewise.
43924         * m4/signbit.m4: Likewise.
43925         * m4/sigpipe.m4: Likewise.
43926         * m4/sockets.m4: Likewise.
43927         * m4/sockpfaf.m4: Likewise.
43928         * m4/st_dm_mode.m4: Likewise.
43929         * m4/stat-time.m4: Likewise.
43930         * m4/stdbool.m4: Likewise.
43931         * m4/stdint.m4: Likewise.
43932         * m4/stdint_h.m4: Likewise.
43933         * m4/stpcpy.m4: Likewise.
43934         * m4/stpncpy.m4: Likewise.
43935         * m4/strcase.m4: Likewise.
43936         * m4/strchrnul.m4: Likewise.
43937         * m4/strcspn.m4: Likewise.
43938         * m4/strdup.m4: Likewise.
43939         * m4/strftime.m4: Likewise.
43940         * m4/strndup.m4: Likewise.
43941         * m4/strnlen.m4: Likewise.
43942         * m4/strpbrk.m4: Likewise.
43943         * m4/strptime.m4: Likewise.
43944         * m4/strsep.m4: Likewise.
43945         * m4/strtod.m4: Likewise.
43946         * m4/strtoimax.m4: Likewise.
43947         * m4/strtok_r.m4: Likewise.
43948         * m4/strtol.m4: Likewise.
43949         * m4/strtoll.m4: Likewise.
43950         * m4/strtoul.m4: Likewise.
43951         * m4/strtoull.m4: Likewise.
43952         * m4/strtoumax.m4: Likewise.
43953         * m4/strverscmp.m4: Likewise.
43954         * m4/threadlib.m4: Likewise.
43955         * m4/timegm.m4: Likewise.
43956         * m4/tm_gmtoff.m4: Likewise.
43957         * m4/tmpdir.m4: Likewise.
43958         * m4/tmpfile.m4: Likewise.
43959         * m4/tzset.m4: Likewise.
43960         * m4/uintmax_t.m4: Likewise.
43961         * m4/unlinkdir.m4: Likewise.
43962         * m4/unlocked-io.m4: Likewise.
43963         * m4/uptime.m4: Likewise.
43964         * m4/userspec.m4: Likewise.
43965         * m4/utimbuf.m4: Likewise.
43966         * m4/utime.m4: Likewise.
43967         * m4/utimes-null.m4: Likewise.
43968         * m4/utimes.m4: Likewise.
43969         * m4/vararrays.m4: Likewise.
43970         * m4/vasnprintf.m4: Likewise.
43971         * m4/vfprintf-posix.m4: Likewise.
43972         * m4/vprintf-posix.m4: Likewise.
43973         * m4/wait-process.m4: Likewise.
43974         * m4/wchar_t.m4: Likewise.
43975         * m4/wint_t.m4: Likewise.
43976         * m4/write-any-file.m4: Likewise.
43977         * m4/yield.m4: Likewise.
43978
43979 2009-01-13  Bruno Haible  <bruno@clisp.org>
43980
43981         Avoid test-copy-file.sh failures when ACL support insufficient.
43982         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43983         TESTS_ENVIRONMENT.
43984         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43985         Reported by Jim Meyering.
43986
43987 2009-01-13  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43990         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43991         * modules/unistdio/u8-printf-parse (Files): Likewise.
43992         * modules/unistdio/u32-printf-parse (Files): Likewise.
43993         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43994
43995 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43996
43997         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43998         and m4/inttypes_h.m4 too.
43999
44000 2009-01-12  Eric Blake  <ebb9@byu.net>
44001
44002         tests: IRIX 6.2 cc can't compile -0.0 into .data
44003         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44004         rather than at compile-time.
44005         * tests/test-floorl.c (minus_zero): Likewise.
44006         * tests/test-frexpl.c (minus_zero): Likewise.
44007         * tests/test-isnan.c (minus_zerol): Likewise.
44008         * tests/test-isnanl.h (minus_zero): Likewise.
44009         * tests/test-ldexpl.c (minus_zero): Likewise.
44010         * tests/test-roundl.c (minus_zero): Likewise.
44011         * tests/test-signbit.c (minus_zerol): Likewise.
44012         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44013         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44014         * tests/test-truncl.c (minus_zero): Likewise.
44015         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44016         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44017         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44018
44019 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44020
44021         regex: fix glibc bug 9697
44022         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44023         handling.
44024
44025 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44026
44027         regex: fix glibc bug 697
44028         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44029         being NULL also if there are no backreferences.
44030
44031 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44032
44033         regex: merge glibc changes
44034         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44035         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44036         re_string_skip_chars, re_string_reconstruct): Likewise.
44037         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44038
44039 2009-01-07  Jim Meyering  <meyering@redhat.com>
44040
44041         poll: filter through cppi
44042         * lib/poll.c: Indent cpp directives to reflect nesting.
44043
44044 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44045
44046         poll: don't return uninitialized
44047         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44048
44049 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44050
44051         avoid compile failure on AIX 6.1
44052         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44053         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44054
44055 2009-01-04  Jim Meyering  <meyering@redhat.com>
44056
44057         remove duplicate inclusion of <stdio.h>
44058         * tests/test-fprintf-posix.c: Likewise.
44059         * tests/test-printf-posix.c: Likewise.
44060         * tests/test-snprintf-posix.c: Likewise.
44061         * tests/test-sprintf-posix.c: Likewise.
44062         * tests/test-vasprintf-posix.c: Likewise.
44063         * tests/test-vfprintf-posix.c: Likewise.
44064         * tests/test-vprintf-posix.c: Likewise.
44065         * tests/test-vsnprintf-posix.c: Likewise.
44066         * tests/test-vsprintf-posix.c: Likewise.
44067
44068 2009-01-03  Jim Meyering  <meyering@redhat.com>
44069
44070         gnulib-tool: fix sed-based filtering
44071         * gnulib-tool (func_filter_filelist): Remove extra backslash
44072         in sed_fff_filter definition.
44073
44074 2009-01-02  Jim Meyering  <meyering@redhat.com>
44075
44076         strftime: avoid compilation failure on Solaris 2.6
44077         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44078         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44079         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44080         be available.  Reported by Tom G. Christensen.  Details in
44081         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44082
44083 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44084             Bruno Haible  <bruno@clisp.org>
44085
44086         Speed up gnulib-tool by doing more string processing through shell
44087         built-ins.
44088         * gnulib-tool (fast_func_append): New variable.
44089         (func_remove_prefix, func_remove_suffix): New functions.
44090         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44091         (func_filter_filelist): New function.
44092         (func_get_dependencies): Use func_remove_suffix instead of sed.
44093         (func_get_automake_snippet): Use func_filter_filelist instead of a
44094         subshell and sed invocation.
44095
44096 2009-01-01  Bruno Haible  <bruno@clisp.org>
44097
44098         Fix a security bug.
44099         * gnulib-tool (func_import, import, update): Don't allow the characters
44100         '"', '$', '`', '\' in macro arguments that become part of commands that
44101         are evaluated.
44102
44103 2009-01-01  Bruno Haible  <bruno@clisp.org>
44104
44105         * gnulib-tool (func_reset_sigpipe): Add more comments.
44106
44107 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44108
44109         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44110         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44111         already know the answer.
44112
44113 2009-01-01  Jim Meyering  <meyering@redhat.com>
44114
44115         * lib/version-etc.c (version_etc_va): Update copyright year.
44116
44117 2008-12-30  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44120         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44121         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44122
44123 2008-12-29  Eric Blake  <ebb9@byu.net>
44124
44125         multiarch: avoid autoconf AC_REQUIRE bug
44126         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44127         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44128         2.63 and older.
44129         Reported by Bruno Haible, and analyzed in
44130         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44131
44132 2008-12-29  Bruno Haible  <bruno@clisp.org>
44133
44134         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44135         files in subdirectories correctly.
44136         Reported by Ralf Wildenhues.
44137
44138 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44139
44140         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44141         rather than 'join FILE -', for Solaris join.
44142
44143 2008-12-29  Bruno Haible  <bruno@clisp.org>
44144
44145         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44146         quoting.
44147         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44148         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44149         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44150         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44151         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44152         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44153         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44154         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44155         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44156         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44157         * m4/nls.m4 (AM_NLS): Likewise.
44158         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44159         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44160         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44161         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44162         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44163         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44164         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44165         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44166         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44167         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44168         * m4/xsize.m4 (gl_XSIZE): Likewise.
44169         Suggested by Jim Meyering.
44170
44171 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44172
44173         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44174         * lib/parse-duration.c: use a switch instead of cascading if's.
44175
44176 2008-12-29  Eric Blake  <ebb9@byu.net>
44177
44178         wchar.h: supply WEOF on Irix 5.3
44179         * lib/wchar.in.h (wint_t): Also supply WEOF.
44180         * lib/wctype.in.h (wint_t): Likewise.
44181         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44182         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44183         Reported by Tom G. Christensen.
44184
44185 2008-12-26  Bruno Haible  <bruno@clisp.org>
44186
44187         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44188         i486, i586, i686.
44189
44190 2008-12-26  Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44193
44194 2008-12-26  Bruno Haible  <bruno@clisp.org>
44195
44196         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44197         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44198         not __STDC_CONSTANT_MACROS.
44199         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44200
44201 2008-12-25  Bruno Haible  <bruno@clisp.org>
44202
44203         Add support for universal builds to vasnprintf.
44204         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44205         universal builds, guess no.
44206         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44207         * modules/vasprintf-posix (Depends-on): Likewise.
44208         * modules/fprintf-posix (Depends-on): Likewise.
44209         * modules/vfprintf-posix (Depends-on): Likewise.
44210         * modules/snprintf-posix (Depends-on): Likewise.
44211         * modules/vsnprintf-posix (Depends-on): Likewise.
44212         * modules/sprintf-posix (Depends-on): Likewise.
44213         * modules/vsprintf-posix (Depends-on): Likewise.
44214         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44215         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44216         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44217         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44218         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44219         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44220         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44221
44222         Add support for universal builds to <inttypes.h>.
44223         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44224         _SCNu64_PREFIX): In Apple
44225         universal builds, define directly, using _LP64.
44226         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44227         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44228         * modules/inttypes (Depends-on): Add multiarch.
44229         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44230
44231         Add support for universal builds to <stdint.h>.
44232         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44233         universal builds, define directly, using _LP64.
44234         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44235         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44236         and size_t.
44237         * modules/stdint (Depends-on): Add multiarch.
44238         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44239
44240         New module 'multiarch'.
44241         * modules/multiarch: New file.
44242         * m4/multiarch.m4: New file.
44243
44244 2008-12-25  Bruno Haible  <bruno@clisp.org>
44245
44246         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44247
44248 2008-12-25  Bruno Haible  <bruno@clisp.org>
44249
44250         * modules/btowc (License): Relicense under LGPLv2+.
44251         * modules/mbsinit (License): Likewise.
44252         * modules/mbrtowc (License): Likewise.
44253         * modules/wcrtomb (License): Likewise.
44254         * modules/streq (License): Likewise.
44255         Reported by David Lutterkort <lutter@redhat.com>.
44256
44257 2008-12-23  Bruno Haible  <bruno@clisp.org>
44258
44259         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44260
44261 2008-12-23  Bruno Haible  <bruno@clisp.org>
44262
44263         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44265         GETADDRINFO_LIB, not in LIBS.
44266         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44267         * modules/canon-host (Link): Likewise.
44268         * NEWS: Mention the change.
44269         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44270         GETADDRINFO_LIB.
44271
44272 2008-12-22  Bruno Haible  <bruno@clisp.org>
44273
44274         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44275         * doc/posix-functions/iswalpha_l.texi: Likewise.
44276         * doc/posix-functions/iswblank_l.texi: Likewise.
44277         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44278         * doc/posix-functions/iswctype_l.texi: Likewise.
44279         * doc/posix-functions/iswdigit_l.texi: Likewise.
44280         * doc/posix-functions/iswgraph_l.texi: Likewise.
44281         * doc/posix-functions/iswlower_l.texi: Likewise.
44282         * doc/posix-functions/iswprint_l.texi: Likewise.
44283         * doc/posix-functions/iswpunct_l.texi: Likewise.
44284         * doc/posix-functions/iswspace_l.texi: Likewise.
44285         * doc/posix-functions/iswupper_l.texi: Likewise.
44286         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44287         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44288         * doc/posix-functions/open_wmemstream.texi: Likewise.
44289         * doc/posix-functions/swscanf.texi: Likewise.
44290         * doc/posix-functions/towctrans_l.texi: Likewise.
44291         * doc/posix-functions/towlower.texi: Likewise.
44292         * doc/posix-functions/towlower_l.texi: Likewise.
44293         * doc/posix-functions/towupper.texi: Likewise.
44294         * doc/posix-functions/towupper_l.texi: Likewise.
44295         * doc/posix-functions/vfwprintf.texi: Likewise.
44296         * doc/posix-functions/vfwscanf.texi: Likewise.
44297         * doc/posix-functions/vswscanf.texi: Likewise.
44298         * doc/posix-functions/vwprintf.texi: Likewise.
44299         * doc/posix-functions/vwscanf.texi: Likewise.
44300         * doc/posix-functions/wcpcpy.texi: Likewise.
44301         * doc/posix-functions/wcpncpy.texi: Likewise.
44302         * doc/posix-functions/wcscasecmp.texi: Likewise.
44303         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44304         * doc/posix-functions/wcscoll_l.texi: Likewise.
44305         * doc/posix-functions/wcsdup.texi: Likewise.
44306         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44307         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44308         * doc/posix-functions/wcsnlen.texi: Likewise.
44309         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44310         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44311         * doc/posix-functions/wctrans_l.texi: Likewise.
44312         * doc/posix-functions/wctype_l.texi: Likewise.
44313         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44314         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44315         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44316         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44317         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44318         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44319         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44320         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44321         * doc/glibc-functions/wcschrnul.texi: Likewise.
44322         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44323         * doc/glibc-functions/wcstod_l.texi: Likewise.
44324         * doc/glibc-functions/wcstof_l.texi: Likewise.
44325         * doc/glibc-functions/wcstol_l.texi: Likewise.
44326         * doc/glibc-functions/wcstold_l.texi: Likewise.
44327         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44328         * doc/glibc-functions/wcstoq.texi: Likewise.
44329         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44330         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44331         * doc/glibc-functions/wcstouq.texi: Likewise.
44332         * doc/glibc-functions/wmempcpy.texi: Likewise.
44333
44334 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44335             Eric Blake  <ebb9@byu.net>
44336             Paolo Bonzini  <bonzini@gnu.org>
44337             Bruno Haible  <bruno@clisp.org>
44338
44339         Make c-stack work on Haiku.
44340         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44341         (c_stack_action): Use SA_ONSTACK flag.
44342
44343 2008-12-22  Bruno Haible  <bruno@clisp.org>
44344
44345         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44346
44347 2008-12-22  Bruno Haible  <bruno@clisp.org>
44348
44349         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44350         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44351         being overridden.
44352         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44353         New macros.
44354         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44356         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44357         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44358
44359 2008-12-22  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44362         from test code.
44363
44364 2008-12-22  Eric Blake  <ebb9@byu.net>
44365
44366         Avoid gcc warnings on cygwin.
44367         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44368         Avoid unused variable.
44369         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44370         Likewise.
44371
44372 2008-12-22  Bruno Haible  <bruno@clisp.org>
44373
44374         Remove HAVE_MBRTOWC conditionals.
44375         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44376         (mbscasecmp): Assume mbrtowc function.
44377         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44378         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44379         * lib/mbschr.c: Include mbuiter.h unconditionally.
44380         (mbschr): Assume mbrtowc function.
44381         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44382         (mbscspn): Assume mbrtowc function.
44383         * lib/mbslen.c: Include mbuiter.h unconditionally.
44384         (mbslen): Assume mbrtowc function.
44385         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44386         (mbsncasecmp): Assume mbrtowc function.
44387         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44388         (mbsnlen): Assume mbrtowc function.
44389         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44390         (mbspbrk): Assume mbrtowc function.
44391         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44392         (mbspcasecmp): Assume mbrtowc function.
44393         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44394         (mbsrchr): Assume mbrtowc function.
44395         * lib/mbssep.c: Include mbuiter.h unconditionally.
44396         (mbssep): Assume mbrtowc function.
44397         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44398         (mbsspn): Assume mbrtowc function.
44399         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44400         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44401         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44402         (mbstok_r): Assume mbrtowc function.
44403         * lib/propername.c: Include mbuiter.h unconditionally.
44404         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44405         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44406         (trim2): Assume mbrtowc function.
44407         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44408         (mbsnwidth): Assume mbrtowc function.
44409         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44410         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44411         fallback definitions.
44412         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44413
44414 2008-12-22  Bruno Haible  <bruno@clisp.org>
44415
44416         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44417
44418 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44419
44420         * modules/regex: Request emulations for the mb*/wc* functions we need.
44421         * m4/regex.m4: Don't look for those functions here.
44422         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44423
44424 2008-12-22  Bruno Haible  <bruno@clisp.org>
44425
44426         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44427
44428 2008-12-21  Bruno Haible  <bruno@clisp.org>
44429
44430         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44431         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44432         (Include): Remove conditionalization.
44433         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44434         (Include): Remove conditionalization.
44435         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44436         (Include): Remove conditionalization.
44437         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44438         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44439         * NEWS: Mention the change.
44440         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44441         via Sergey Poznyakoff <gray@gnu.org.ua>.
44442
44443 2008-12-21  Bruno Haible  <bruno@clisp.org>
44444
44445         * MODULES.html.sh (Extended multibyte and wide character utilities
44446         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44447         wcrtomb, wcsrtombs.
44448         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44449         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44450         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44451         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44452
44453 2008-12-21  Bruno Haible  <bruno@clisp.org>
44454
44455         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44456
44457 2008-12-21  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/wcsnrtombs-tests: New file.
44460         * tests/test-wcsnrtombs1.sh: New file.
44461         * tests/test-wcsnrtombs2.sh: New file.
44462         * tests/test-wcsnrtombs3.sh: New file.
44463         * tests/test-wcsnrtombs4.sh: New file.
44464         * tests/test-wcsnrtombs.c: New file.
44465
44466         New module 'wcsnrtombs'.
44467         * lib/wchar.in.h (wcsnrtombs): New declaration.
44468         * lib/wcsnrtombs.c: New file.
44469         * lib/wcsrtombs-state.c: New file.
44470         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44471         (internal_state): Remove variable.
44472         * m4/wcsnrtombs.m4: New file.
44473         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44474         compilation units.
44475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44476         HAVE_WCSNRTOMBS.
44477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44478         HAVE_WCSNRTOMBS.
44479         * modules/wcsnrtombs: New file.
44480         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44481         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44482
44483 2008-12-21  Bruno Haible  <bruno@clisp.org>
44484
44485         * modules/wcsrtombs-tests: New file.
44486         * tests/test-wcsrtombs1.sh: New file.
44487         * tests/test-wcsrtombs2.sh: New file.
44488         * tests/test-wcsrtombs3.sh: New file.
44489         * tests/test-wcsrtombs4.sh: New file.
44490         * tests/test-wcsrtombs.c: New file.
44491
44492         New module 'wcsrtombs'.
44493         * lib/wchar.in.h (wcsrtombs): New declaration.
44494         * lib/wcsrtombs.c: New file.
44495         * m4/wcsrtombs.m4: New file.
44496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44497         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44499         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44500         * modules/wcsrtombs: New file.
44501         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44502         bugs.
44503
44504 2008-12-21  Bruno Haible  <bruno@clisp.org>
44505
44506         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44507         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44508         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44509         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44510         if not correct.
44511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44512         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44513         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44514         m4/locale-zh.m4, m4/codeset.m4.
44515         * doc/posix-functions/wcrtomb.texi: Document the bug.
44516
44517 2008-12-21  Bruno Haible  <bruno@clisp.org>
44518
44519         Work around a btowc() bug on IRIX 6.5.
44520         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44521         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44522         REPLACE_WTOBC if not.
44523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44524         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44525         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44526
44527 2008-12-21  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/wcrtomb-tests: New file.
44530         * tests/test-wcrtomb.sh: New file.
44531         * tests/test-wcrtomb.c: New file.
44532
44533         New module 'wcrtomb'.
44534         * lib/wchar.in.h (wcrtomb): New declaration.
44535         * lib/wcrtomb.c: New file.
44536         * m4/wcrtomb.m4: New file.
44537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44538         HAVE_WCRTOMB.
44539         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44540         HAVE_WCRTOMB.
44541         * modules/wcrtomb: New file.
44542         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44543
44544 2008-12-21  Bruno Haible  <bruno@clisp.org>
44545
44546         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44547         * modules/mbsrtowcs (Files): Likewise.
44548         * modules/wctob (Files): Likewise.
44549         * modules/c-strcase-tests (Files): Likewise.
44550         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44551         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44552         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44553         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44554         * modules/vasnprintf-posix-tests (Files): Likewise.
44555
44556 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44557
44558         gitlog-to-changelog: pass all command-line arguments to git-log
44559         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44560         it is sometimes convenient to filter the commits in various ways.
44561         gitlog-to-changelog only allows --since to specify a start date,
44562         but git-log itself supports many other filtering mechanisms.
44563         At the moment, I want to filter by branch name.  Rather than
44564         adding a --branch option to gitlog-to-changelog, it seems more
44565         flexible to simply pass all options directly to git-log and let
44566         git do the work.  Notice that this effectively makes --since a
44567         redundant option for gitlog-to-changelog, but removing it would
44568         require current usage to change since calls would then require
44569         an additional '--'.
44570
44571 2008-12-21  Bruno Haible  <bruno@clisp.org>
44572
44573         * modules/mbsnrtowcs-tests: New file.
44574         * tests/test-mbsnrtowcs1.sh: New file.
44575         * tests/test-mbsnrtowcs2.sh: New file.
44576         * tests/test-mbsnrtowcs3.sh: New file.
44577         * tests/test-mbsnrtowcs4.sh: New file.
44578         * tests/test-mbsnrtowcs.c: New file.
44579
44580         New module 'mbsnrtowcs'.
44581         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44582         * lib/mbsnrtowcs.c: New file.
44583         * lib/mbsrtowcs-state.c: New file.
44584         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44585         (internal_state): Remove variable.
44586         * m4/mbsnrtowcs.m4: New file.
44587         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44588         compilation units.
44589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44590         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44591         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44592         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44593         * modules/mbsnrtowcs: New file.
44594         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44595         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44596         portability problem.
44597
44598 2008-12-21  Bruno Haible  <bruno@clisp.org>
44599
44600         Work around mbsrtowcs bug.
44601         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44602         (gl_FUNC_MBSRTOWCS): Invoke it.
44603         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44604         m4/locale-zh.m4.
44605         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44606
44607 2008-12-21  Bruno Haible  <bruno@clisp.org>
44608
44609         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44610
44611 2008-12-21  Bruno Haible  <bruno@clisp.org>
44612
44613         Update doc for AIX.
44614         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44615         16-bit wchar_t type.
44616         * doc/posix-functions/btowc.texi: Likewise.
44617         * doc/posix-functions/fgetwc.texi: Likewise.
44618         * doc/posix-functions/fgetws.texi: Likewise.
44619         * doc/posix-functions/fputwc.texi: Likewise.
44620         * doc/posix-functions/fputws.texi: Likewise.
44621         * doc/posix-functions/fwide.texi: Likewise.
44622         * doc/posix-functions/fwprintf.texi: Likewise.
44623         * doc/posix-functions/fwscanf.texi: Likewise.
44624         * doc/posix-functions/getwchar.texi: Likewise.
44625         * doc/posix-functions/getwc.texi: Likewise.
44626         * doc/posix-functions/iswalnum.texi: Likewise.
44627         * doc/posix-functions/iswalpha.texi: Likewise.
44628         * doc/posix-functions/iswblank.texi: Likewise.
44629         * doc/posix-functions/iswcntrl.texi: Likewise.
44630         * doc/posix-functions/iswctype.texi: Likewise.
44631         * doc/posix-functions/iswdigit.texi: Likewise.
44632         * doc/posix-functions/iswgraph.texi: Likewise.
44633         * doc/posix-functions/iswlower.texi: Likewise.
44634         * doc/posix-functions/iswprint.texi: Likewise.
44635         * doc/posix-functions/iswpunct.texi: Likewise.
44636         * doc/posix-functions/iswspace.texi: Likewise.
44637         * doc/posix-functions/iswupper.texi: Likewise.
44638         * doc/posix-functions/iswxdigit.texi: Likewise.
44639         * doc/posix-functions/mbrtowc.texi: Likewise.
44640         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44641         * doc/posix-functions/mbstowcs.texi: Likewise.
44642         * doc/posix-functions/mbtowc.texi: Likewise.
44643         * doc/posix-functions/putwchar.texi: Likewise.
44644         * doc/posix-functions/putwc.texi: Likewise.
44645         * doc/posix-functions/swprintf.texi: Likewise.
44646         * doc/posix-functions/tolower.texi: Likewise.
44647         * doc/posix-functions/toupper.texi: Likewise.
44648         * doc/posix-functions/towctrans.texi: Likewise.
44649         * doc/posix-functions/ungetwc.texi: Likewise.
44650         * doc/posix-functions/vswprintf.texi: Likewise.
44651         * doc/posix-functions/wcrtomb.texi: Likewise.
44652         * doc/posix-functions/wcscat.texi: Likewise.
44653         * doc/posix-functions/wcschr.texi: Likewise.
44654         * doc/posix-functions/wcscmp.texi: Likewise.
44655         * doc/posix-functions/wcscoll.texi: Likewise.
44656         * doc/posix-functions/wcscpy.texi: Likewise.
44657         * doc/posix-functions/wcscspn.texi: Likewise.
44658         * doc/posix-functions/wcsftime.texi: Likewise.
44659         * doc/posix-functions/wcslen.texi: Likewise.
44660         * doc/posix-functions/wcsncat.texi: Likewise.
44661         * doc/posix-functions/wcsncmp.texi: Likewise.
44662         * doc/posix-functions/wcsncpy.texi: Likewise.
44663         * doc/posix-functions/wcspbrk.texi: Likewise.
44664         * doc/posix-functions/wcsrchr.texi: Likewise.
44665         * doc/posix-functions/wcsrtombs.texi: Likewise.
44666         * doc/posix-functions/wcsspn.texi: Likewise.
44667         * doc/posix-functions/wcsstr.texi: Likewise.
44668         * doc/posix-functions/wcstod.texi: Likewise.
44669         * doc/posix-functions/wcstof.texi: Likewise.
44670         * doc/posix-functions/wcstoimax.texi: Likewise.
44671         * doc/posix-functions/wcstok.texi: Likewise.
44672         * doc/posix-functions/wcstold.texi: Likewise.
44673         * doc/posix-functions/wcstoll.texi: Likewise.
44674         * doc/posix-functions/wcstol.texi: Likewise.
44675         * doc/posix-functions/wcstombs.texi: Likewise.
44676         * doc/posix-functions/wcstoull.texi: Likewise.
44677         * doc/posix-functions/wcstoul.texi: Likewise.
44678         * doc/posix-functions/wcstoumax.texi: Likewise.
44679         * doc/posix-functions/wcswidth.texi: Likewise.
44680         * doc/posix-functions/wcsxfrm.texi: Likewise.
44681         * doc/posix-functions/wctob.texi: Likewise.
44682         * doc/posix-functions/wctomb.texi: Likewise.
44683         * doc/posix-functions/wctrans.texi: Likewise.
44684         * doc/posix-functions/wctype.texi: Likewise.
44685         * doc/posix-functions/wcwidth.texi: Likewise.
44686         * doc/posix-functions/wmemchr.texi: Likewise.
44687         * doc/posix-functions/wmemcmp.texi: Likewise.
44688         * doc/posix-functions/wmemcpy.texi: Likewise.
44689         * doc/posix-functions/wmemmove.texi: Likewise.
44690         * doc/posix-functions/wmemset.texi: Likewise.
44691         * doc/posix-functions/wprintf.texi: Likewise.
44692         * doc/posix-functions/wscanf.texi: Likewise.
44693
44694 2008-12-21  Bruno Haible  <bruno@clisp.org>
44695
44696         Update doc for HP-UX 11.11.
44697         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44698         in HP-UX version 11.00, not in all versions of HP-UX 11.
44699         * doc/posix-functions/fwide.texi: Likewise.
44700         * doc/posix-functions/fwprintf.texi: Likewise.
44701         * doc/posix-functions/fwscanf.texi: Likewise.
44702         * doc/posix-functions/inet_ntop.texi: Likewise.
44703         * doc/posix-functions/inet_pton.texi: Likewise.
44704         * doc/posix-functions/mbrlen.texi: Likewise.
44705         * doc/posix-functions/mbrtowc.texi: Likewise.
44706         * doc/posix-functions/mbsinit.texi: Likewise.
44707         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44708         * doc/posix-functions/swprintf.texi: Likewise.
44709         * doc/posix-functions/swscanf.texi: Likewise.
44710         * doc/posix-functions/towctrans.texi: Likewise.
44711         * doc/posix-functions/vfwprintf.texi: Likewise.
44712         * doc/posix-functions/vswprintf.texi: Likewise.
44713         * doc/posix-functions/vwprintf.texi: Likewise.
44714         * doc/posix-functions/wcrtomb.texi: Likewise.
44715         * doc/posix-functions/wcsrtombs.texi: Likewise.
44716         * doc/posix-functions/wcsstr.texi: Likewise.
44717         * doc/posix-functions/wctob.texi: Likewise.
44718         * doc/posix-functions/wctrans.texi: Likewise.
44719         * doc/posix-functions/wmemchr.texi: Likewise.
44720         * doc/posix-functions/wmemcmp.texi: Likewise.
44721         * doc/posix-functions/wmemcpy.texi: Likewise.
44722         * doc/posix-functions/wmemmove.texi: Likewise.
44723         * doc/posix-functions/wmemset.texi: Likewise.
44724         * doc/posix-functions/wprintf.texi: Likewise.
44725         * doc/posix-functions/wscanf.texi: Likewise.
44726
44727 2008-12-21  Bruno Haible  <bruno@clisp.org>
44728
44729         Work around a portability problem.
44730         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44731         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44732
44733 2008-12-20  Bruno Haible  <bruno@clisp.org>
44734
44735         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44736         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44737         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44738         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44739         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44740
44741         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44742         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44743         set.
44744         (GNULIB_defined_mbstate_t): New macro.
44745         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44746         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44747         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44748         reuses the system's mbrtowc function but works around the bugs.
44749         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44750         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44751         macros.
44752         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44753         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44754         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44755         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44756         REPLACE_MBSINIT if mbsinit needs to be overridden.
44757         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44758         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44759         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44760         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44761         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44762         m4/locale-zh.m4.
44763         (Depends): Add mbsinit.
44764         * modules/mbsinit (Depends): Add mbrtowc.
44765         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44766
44767 2008-12-20  Bruno Haible  <bruno@clisp.org>
44768
44769         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44770         so that there are no conversion errors on AIX.
44771         * tests/test-mbsrtowcs.c (main): LIkewise.
44772
44773 2008-12-20  Bruno Haible  <bruno@clisp.org>
44774
44775         Work around wctob bug on Solaris <= 9.
44776         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44777         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44779         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44780         * modules/wctob (Files): Add m4/locale-fr.m4.
44781         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44782
44783 2008-12-20  Bruno Haible  <bruno@clisp.org>
44784
44785         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44786         /dev/null.
44787         * tests/test-select-in.sh: Likewise.
44788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44789
44790 2008-12-20  Bruno Haible  <bruno@clisp.org>
44791
44792         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44793         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44794         Cygwin 1.5.x.
44795
44796 2008-12-20  Bruno Haible  <bruno@clisp.org>
44797
44798         Ensure mbstate_t is defined on HP-UX 11.11.
44799         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44800         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44801         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44802         AC_USE_SYSTEM_EXTENSIONS.
44803         * modules/fnmatch (Depends-on): Add extensions.
44804         * modules/mbrlen (Depends-on): Likewise.
44805         * modules/mbrtowc (Depends-on): Likewise.
44806         * modules/mbsinit (Depends-on): Likewise.
44807         * modules/mbsrtowcs (Depends-on): Likewise.
44808         * modules/mbswidth (Depends-on): Likewise.
44809         * modules/quotearg (Depends-on): Likewise.
44810         * modules/strftime (Depends-on): Likewise.
44811
44812 2008-12-20  Bruno Haible  <bruno@clisp.org>
44813
44814         Ensure wctob is declared on IRIX 6.5.
44815         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44816         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44817         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44819         of HAVE_WCTOB.
44820         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44821         HAVE_WCTOB.
44822         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44823
44824 2008-12-19  Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/mbsrtowcs-tests: New file.
44827         * tests/test-mbsrtowcs1.sh: New file.
44828         * tests/test-mbsrtowcs2.sh: New file.
44829         * tests/test-mbsrtowcs3.sh: New file.
44830         * tests/test-mbsrtowcs4.sh: New file.
44831         * tests/test-mbsrtowcs.c: New file.
44832
44833         New module 'mbsrtowcs'.
44834         * lib/wchar.in.h (mbsrtowcs): New declaration.
44835         * lib/mbsrtowcs.c: New file.
44836         * m4/mbsrtowcs.m4: New file.
44837         * modules/mbsrtowcs: New file.
44838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44839         HAVE_MBSRTOWCS.
44840         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44841         HAVE_MBSRTOWCS.
44842         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44843
44844 2008-12-19  Bruno Haible  <bruno@clisp.org>
44845
44846         New module 'mbrlen'.
44847         * lib/wchar.in.h (mbrlen): New declaration.
44848         * lib/mbrlen.c: New file.
44849         * m4/mbrlen.m4: New file.
44850         * modules/mbrlen: New file.
44851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44852         HAVE_MBRLEN.
44853         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44854         HAVE_MBRLEN.
44855         * doc/posix-functions/mbrlen.texi: Document the new module.
44856
44857 2008-12-19  Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44860         * modules/mbrtowc (Depends-on): Add verify.
44861         Suggested by Paul Eggert.
44862
44863 2008-12-18  Bruno Haible  <bruno@clisp.org>
44864
44865         * modules/mbsinit-tests: New file.
44866         * tests/test-mbsinit.sh: New file.
44867         * tests/test-mbsinit.c: New file.
44868
44869 2008-12-18  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/mbrtowc-tests: New file.
44872         * tests/test-mbrtowc1.sh: New file.
44873         * tests/test-mbrtowc2.sh: New file.
44874         * tests/test-mbrtowc3.sh: New file.
44875         * tests/test-mbrtowc4.sh: New file.
44876         * tests/test-mbrtowc.c: New file.
44877
44878         New module 'mbrtowc'.
44879         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44880         mbsinit and mbrtowc.
44881         (mbrtowc): New declaration.
44882         * lib/mbrtowc.c: New file.
44883         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44884         * modules/mbrtowc: New file.
44885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44886         HAVE_MBRTOWC.
44887         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44888         HAVE_MBRTOWC.
44889         * doc/posix-functions/mbrtowc.texi: Document the new module.
44890
44891 2008-12-18  Bruno Haible  <bruno@clisp.org>
44892
44893         New module 'wctob'.
44894         * lib/wchar.in.h (wctob): New declaration.
44895         * lib/wctob.c: New file.
44896         * m4/wctob.m4: New file.
44897         * modules/wctob: New file.
44898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44899         HAVE_WCTOB.
44900         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44901         * doc/posix-functions/wctob.texi: Document the new module.
44902
44903 2008-12-18  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44906         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44907
44908 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44909
44910         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44911         G. Christensen" <tgc@jupiterrise.com>.
44912
44913         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44914         G. Christensen" <tgc@jupiterrise.com>.
44915
44916         * lib/flock.c: Need to include string.h.  Reported by "Tom
44917         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44918         <ebb9@byu.net>.
44919
44920 2008-12-18  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/locale-ja.m4: New file, from GNU gettext.
44923
44924 2008-12-17  Bruno Haible  <bruno@clisp.org>
44925
44926         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44927         Suggested by Eric Blake.
44928
44929 2008-12-17  Bruno Haible  <bruno@clisp.org>
44930
44931         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44932
44933 2008-12-17  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44936         * modules/mbsinit (Depends-on): Add verify.
44937         Suggested by Paul Eggert.
44938
44939 2008-12-17  Bruno Haible  <bruno@clisp.org>
44940
44941         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44942         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44943         gl_FUNC_MBRTOWC.
44944         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44945         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44946         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44947         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44948         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44949         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44950         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44951         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44952         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44953         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44954         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44955         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44956         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44957         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44958         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44959         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44960         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44961         * modules/trim (configure.ac): Likewise.
44962
44963 2008-12-17  Bruno Haible  <bruno@clisp.org>
44964
44965         * modules/btowc-tests: New file.
44966         * tests/test-btowc1.sh: New file.
44967         * tests/test-btowc2.sh: New file.
44968         * tests/test-btowc.c: New file.
44969
44970         New module 'btowc'.
44971         * lib/wchar.in.h (btowc): New declaration.
44972         * lib/btowc.c: New file.
44973         * m4/btowc.m4: New file.
44974         * modules/btowc: New file.
44975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44976         HAVE_BTOWC.
44977         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44978         * doc/posix-functions/btowc.texi: Document the new module.
44979
44980 2008-12-17  Bruno Haible  <bruno@clisp.org>
44981
44982         New module 'mbsinit'.
44983         * lib/wchar.in.h (mbsinit): New declaration.
44984         * lib/mbsinit.c: New file.
44985         * m4/mbsinit.m4: New file.
44986         * modules/mbsinit: New file.
44987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44988         HAVE_MBSINIT.
44989         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44990         HAVE_MBSINIT.
44991         * doc/posix-functions/mbsinit.texi: Document the new module.
44992
44993 2008-12-16  Bruno Haible  <bruno@clisp.org>
44994
44995         * lib/unistd.in.h: Add comment.
44996         * tests/test-environ.c: Don't include <stdlib.h>.
44997
44998 2008-12-16  Bruno Haible  <bruno@clisp.org>
44999
45000         * lib/parse-duration.h (parse_duration): Document return value
45001         convention.
45002         * lib/parse-duration.c: Include specification header first. Add
45003         comments.
45004         (_): Remove macro.
45005         (parse_year_month_day, parse_hour_minute_second): Move side effects
45006         outside of strchr call.
45007         (parse_non_iso8601): Move side effects outside of isspace call.
45008         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45009         call.
45010
45011 2008-12-16  Bruno Haible  <bruno@clisp.org>
45012
45013         * tests/test-parse-duration.sh: Produce no output when the test
45014         succeeds.
45015
45016 2008-12-16  Bruno Haible  <bruno@clisp.org>
45017
45018         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45019         expressions.
45020
45021 2008-12-15  Bruno Haible  <bruno@clisp.org>
45022
45023         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45024         * doc/glibc-functions/flistxattr.texi: Likewise.
45025         * doc/glibc-functions/fopencookie.texi: Likewise.
45026         * doc/glibc-functions/fremovexattr.texi: Likewise.
45027         * doc/glibc-functions/fsetxattr.texi: Likewise.
45028         * doc/glibc-functions/getxattr.texi: Likewise.
45029         * doc/glibc-functions/lgetxattr.texi: Likewise.
45030         * doc/glibc-functions/listxattr.texi: Likewise.
45031         * doc/glibc-functions/llistxattr.texi: Likewise.
45032         * doc/glibc-functions/lremovexattr.texi: Likewise.
45033         * doc/glibc-functions/lsetxattr.texi: Likewise.
45034         * doc/glibc-functions/removexattr.texi: Likewise.
45035         * doc/glibc-functions/setxattr.texi: Likewise.
45036         * doc/posix-functions/open_memstream.texi: Likewise.
45037
45038 2008-12-15  Eric Blake  <ebb9@byu.net>
45039
45040         Update doc for cygwin 1.7.
45041         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45042         functions.
45043         * doc/posix-functions/fchmodat.texi: Likewise.
45044         * doc/posix-functions/fchownat.texi: Likewise.
45045         * doc/posix-functions/fdopendir.texi: Likewise.
45046         * doc/posix-functions/fmemopen.texi: Likewise.
45047         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45048         * doc/posix-functions/fstatat.texi: Likewise.
45049         * doc/posix-functions/futimens.texi: Likewise.
45050         * doc/posix-functions/gai_strerror.texi: Likewise.
45051         * doc/posix-functions/getaddrinfo.texi: Likewise.
45052         * doc/posix-functions/getnameinfo.texi: Likewise.
45053         * doc/posix-functions/if_freenameindex.texi: Likewise.
45054         * doc/posix-functions/if_indextoname.texi: Likewise.
45055         * doc/posix-functions/if_nameindex.texi: Likewise.
45056         * doc/posix-functions/if_nametoindex.texi: Likewise.
45057         * doc/posix-functions/insque.texi: Likewise.
45058         * doc/posix-functions/linkat.texi: Likewise.
45059         * doc/posix-functions/llrint.texi: Likewise.
45060         * doc/posix-functions/llrintf.texi: Likewise.
45061         * doc/posix-functions/llrintl.texi: Likewise.
45062         * doc/posix-functions/lockf.texi: Likewise.
45063         * doc/posix-functions/lrintl.texi: Likewise.
45064         * doc/posix-functions/mkdirat.texi: Likewise.
45065         * doc/posix-functions/mkfifoat.texi: Likewise.
45066         * doc/posix-functions/mknodat.texi: Likewise.
45067         * doc/posix-functions/mq_close.texi: Likewise.
45068         * doc/posix-functions/mq_getattr.texi: Likewise.
45069         * doc/posix-functions/mq_notify.texi: Likewise.
45070         * doc/posix-functions/mq_open.texi: Likewise.
45071         * doc/posix-functions/mq_receive.texi: Likewise.
45072         * doc/posix-functions/mq_send.texi: Likewise.
45073         * doc/posix-functions/mq_setattr.texi: Likewise.
45074         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45075         * doc/posix-functions/mq_timedsend.texi: Likewise.
45076         * doc/posix-functions/mq_unlink.texi: Likewise.
45077         * doc/posix-functions/open_memstream.texi: Likewise.
45078         * doc/posix-functions/openat.texi: Likewise.
45079         * doc/posix-functions/posix_fadvise.texi: Likewise.
45080         * doc/posix-functions/posix_fallocate.texi: Likewise.
45081         * doc/posix-functions/posix_madvise.texi: Likewise.
45082         * doc/posix-functions/posix_memalign.texi: Likewise.
45083         * doc/posix-functions/posix_openpt.texi: Likewise.
45084         * doc/posix-functions/readlinkat.texi: Likewise.
45085         * doc/posix-functions/remque.texi: Likewise.
45086         * doc/posix-functions/renameat.texi: Likewise.
45087         * doc/posix-functions/rintl.texi: Likewise.
45088         * doc/posix-functions/sem_unlink.texi: Likewise.
45089         * doc/posix-functions/shm_open.texi: Likewise.
45090         * doc/posix-functions/shm_unlink.texi: Likewise.
45091         * doc/posix-functions/signgam.texi: Likewise.
45092         * doc/posix-functions/sigset.texi: Likewise.
45093         * doc/posix-functions/stpcpy.texi: Likewise.
45094         * doc/posix-functions/stpncpy.texi: Likewise.
45095         * doc/posix-functions/strerror.texi: Likewise.
45096         * doc/posix-functions/strtod.texi: Likewise.
45097         * doc/posix-functions/symlinkat.texi: Likewise.
45098         * doc/posix-functions/unlinkat.texi: Likewise.
45099         * doc/posix-functions/utimensat.texi: Likewise.
45100         * doc/glibc-functions/bindresvport.texi: Likewise.
45101         * doc/glibc-functions/dn_expand.texi: Likewise.
45102         * doc/glibc-functions/exp10.texi: Likewise.
45103         * doc/glibc-functions/exp10f.texi: Likewise.
45104         * doc/glibc-functions/fgetxattr.texi: Likewise.
45105         * doc/glibc-functions/flistxattr.texi: Likewise.
45106         * doc/glibc-functions/fopencookie.texi: Likewise.
45107         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45108         * doc/glibc-functions/fremovexattr.texi: Likewise.
45109         * doc/glibc-functions/fsetxattr.texi: Likewise.
45110         * doc/glibc-functions/getifaddrs.texi: Likewise.
45111         * doc/glibc-functions/getxattr.texi: Likewise.
45112         * doc/glibc-functions/lgetxattr.texi: Likewise.
45113         * doc/glibc-functions/listxattr.texi: Likewise.
45114         * doc/glibc-functions/llistxattr.texi: Likewise.
45115         * doc/glibc-functions/lremovexattr.texi: Likewise.
45116         * doc/glibc-functions/lsetxattr.texi: Likewise.
45117         * doc/glibc-functions/pow10.texi: Likewise.
45118         * doc/glibc-functions/pow10f.texi: Likewise.
45119         * doc/glibc-functions/rcmd_af.texi: Likewise.
45120         * doc/glibc-functions/removexattr.texi: Likewise.
45121         * doc/glibc-functions/res_init.texi: Likewise.
45122         * doc/glibc-functions/res_mkquery.texi: Likewise.
45123         * doc/glibc-functions/res_query.texi: Likewise.
45124         * doc/glibc-functions/res_querydomain.texi: Likewise.
45125         * doc/glibc-functions/res_send.texi: Likewise.
45126         * doc/glibc-functions/rresvport_af.texi: Likewise.
45127         * doc/glibc-functions/setxattr.texi: Likewise.
45128         * doc/glibc-functions/strcasestr.texi: Likewise.
45129
45130 2008-12-15  Bruno Haible  <bruno@clisp.org>
45131
45132         Fix compilation error on OSF/1 4.0.
45133         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45134         <sys/time.h>, simply delegate to the system header.
45135         Reported by Daniel Richard G. <oss@teragram.com>.
45136
45137 2008-12-15  Bruno Haible  <bruno@clisp.org>
45138
45139         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45140         * doc/posix-functions/fchmodat.texi: Likewise.
45141         * doc/posix-functions/fchownat.texi: Likewise.
45142         * doc/posix-functions/fdopendir.texi: Likewise.
45143         * doc/posix-functions/fstatat.texi: Likewise.
45144         * doc/posix-functions/mkdirat.texi: Likewise.
45145         * doc/posix-functions/unlinkat.texi: Likewise.
45146
45147 2008-12-14  Bruno Haible  <bruno@clisp.org>
45148
45149         Update doc for POSIX:2008.
45150         * doc/posix-functions/faccessat.texi: New file.
45151         * doc/posix-functions/fchmodat.texi: New file.
45152         * doc/posix-functions/fchownat.texi: New file.
45153         * doc/posix-functions/fdopendir.texi: New file.
45154         * doc/posix-functions/fstatat.texi: New file.
45155         * doc/posix-functions/futimens.texi: New file.
45156         * doc/posix-functions/linkat.texi: New file.
45157         * doc/posix-functions/mkdirat.texi: New file.
45158         * doc/posix-functions/mkfifoat.texi: New file.
45159         * doc/posix-functions/mknodat.texi: New file.
45160         * doc/posix-functions/open_wmemstream.texi: New file.
45161         * doc/posix-functions/openat.texi: New file.
45162         * doc/posix-functions/psiginfo.texi: New file.
45163         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45164         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45165         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45166         * doc/posix-functions/readlinkat.texi: New file.
45167         * doc/posix-functions/renameat.texi: New file.
45168         * doc/posix-functions/strerror_l.texi: New file.
45169         * doc/posix-functions/symlinkat.texi: New file.
45170         * doc/posix-functions/unlinkat.texi: New file.
45171         * doc/posix-functions/utimensat.texi: New file.
45172         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45173
45174 2008-12-14  Bruno Haible  <bruno@clisp.org>
45175
45176         Update doc for POSIX:2008.
45177         * doc/posix-functions/alphasort.texi: Renamed from
45178         doc/glibc-functions/alphasort.texi.
45179         * doc/posix-functions/dirfd.texi: Renamed from
45180         doc/glibc-functions/dirfd.texi.
45181         * doc/posix-functions/dprintf.texi: Renamed from
45182         doc/glibc-functions/dprintf.texi.
45183         * doc/posix-functions/duplocale.texi: Renamed from
45184         doc/glibc-functions/duplocale.texi.
45185         * doc/posix-functions/fexecve.texi: Renamed from
45186         doc/glibc-functions/fexecve.texi.
45187         * doc/posix-functions/fmemopen.texi: Renamed from
45188         doc/glibc-functions/fmemopen.texi.
45189         * doc/posix-functions/freelocale.texi: Renamed from
45190         doc/glibc-functions/freelocale.texi.
45191         * doc/posix-functions/getdate_err.texi: Renamed from
45192         doc/glibc-functions/getdate_err.texi.
45193         * doc/posix-functions/isalnum_l.texi: Renamed from
45194         doc/glibc-functions/isalnum_l.texi.
45195         * doc/posix-functions/isalpha_l.texi: Renamed from
45196         doc/glibc-functions/isalpha_l.texi.
45197         * doc/posix-functions/isblank_l.texi: Renamed from
45198         doc/glibc-functions/isblank_l.texi.
45199         * doc/posix-functions/iscntrl_l.texi: Renamed from
45200         doc/glibc-functions/iscntrl_l.texi.
45201         * doc/posix-functions/isdigit_l.texi: Renamed from
45202         doc/glibc-functions/isdigit_l.texi.
45203         * doc/posix-functions/isgraph_l.texi: Renamed from
45204         doc/glibc-functions/isgraph_l.texi.
45205         * doc/posix-functions/islower_l.texi: Renamed from
45206         doc/glibc-functions/islower_l.texi.
45207         * doc/posix-functions/isprint_l.texi: Renamed from
45208         doc/glibc-functions/isprint_l.texi.
45209         * doc/posix-functions/ispunct_l.texi: Renamed from
45210         doc/glibc-functions/ispunct_l.texi.
45211         * doc/posix-functions/isspace_l.texi: Renamed from
45212         doc/glibc-functions/isspace_l.texi.
45213         * doc/posix-functions/isupper_l.texi: Renamed from
45214         doc/glibc-functions/isupper_l.texi.
45215         * doc/posix-functions/iswalnum_l.texi: Renamed from
45216         doc/glibc-functions/iswalnum_l.texi.
45217         * doc/posix-functions/iswalpha_l.texi: Renamed from
45218         doc/glibc-functions/iswalpha_l.texi.
45219         * doc/posix-functions/iswblank_l.texi: Renamed from
45220         doc/glibc-functions/iswblank_l.texi.
45221         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45222         doc/glibc-functions/iswcntrl_l.texi.
45223         * doc/posix-functions/iswctype_l.texi: Renamed from
45224         doc/glibc-functions/iswctype_l.texi.
45225         * doc/posix-functions/iswdigit_l.texi: Renamed from
45226         doc/glibc-functions/iswdigit_l.texi.
45227         * doc/posix-functions/iswgraph_l.texi: Renamed from
45228         doc/glibc-functions/iswgraph_l.texi.
45229         * doc/posix-functions/iswlower_l.texi: Renamed from
45230         doc/glibc-functions/iswlower_l.texi.
45231         * doc/posix-functions/iswprint_l.texi: Renamed from
45232         doc/glibc-functions/iswprint_l.texi.
45233         * doc/posix-functions/iswpunct_l.texi: Renamed from
45234         doc/glibc-functions/iswpunct_l.texi.
45235         * doc/posix-functions/iswspace_l.texi: Renamed from
45236         doc/glibc-functions/iswspace_l.texi.
45237         * doc/posix-functions/iswupper_l.texi: Renamed from
45238         doc/glibc-functions/iswupper_l.texi.
45239         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45240         doc/glibc-functions/iswxdigit_l.texi.
45241         * doc/posix-functions/isxdigit_l.texi: Renamed from
45242         doc/glibc-functions/isxdigit_l.texi.
45243         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45244         doc/glibc-functions/mbsnrtowcs.texi.
45245         * doc/posix-functions/mkdtemp.texi: Renamed from
45246         doc/glibc-functions/mkdtemp.texi.
45247         * doc/posix-functions/newlocale.texi: Renamed from
45248         doc/glibc-functions/newlocale.texi.
45249         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45250         doc/glibc-functions/nl_langinfo_l.texi.
45251         * doc/posix-functions/open_memstream.texi: Renamed from
45252         doc/glibc-functions/open_memstream.texi.
45253         * doc/posix-functions/opterr.texi: Renamed from
45254         doc/glibc-functions/opterr.texi.
45255         * doc/posix-functions/optind.texi: Renamed from
45256         doc/glibc-functions/optind.texi.
45257         * doc/posix-functions/optopt.texi: Renamed from
45258         doc/glibc-functions/optopt.texi.
45259         * doc/posix-functions/psignal.texi: Renamed from
45260         doc/glibc-functions/psignal.texi.
45261         * doc/posix-functions/scandir.texi: Renamed from
45262         doc/glibc-functions/scandir.texi.
45263         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45264         doc/glibc-functions/sched_get_priority_min.texi.
45265         * doc/posix-functions/signgam.texi: Renamed from
45266         doc/glibc-functions/signgam.texi.
45267         * doc/posix-functions/stpcpy.texi: Renamed from
45268         doc/glibc-functions/stpcpy.texi.
45269         * doc/posix-functions/stpncpy.texi: Renamed from
45270         doc/glibc-functions/stpncpy.texi.
45271         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45272         doc/glibc-functions/strcasecmp_l.texi.
45273         * doc/posix-functions/strcoll_l.texi: Renamed from
45274         doc/glibc-functions/strcoll_l.texi.
45275         * doc/posix-functions/strfmon_l.texi: Renamed from
45276         doc/glibc-functions/strfmon_l.texi.
45277         * doc/posix-functions/strftime_l.texi: Renamed from
45278         doc/glibc-functions/strftime_l.texi.
45279         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45280         doc/glibc-functions/strncasecmp_l.texi.
45281         * doc/posix-functions/strndup.texi: Renamed from
45282         doc/glibc-functions/strndup.texi.
45283         * doc/posix-functions/strnlen.texi: Renamed from
45284         doc/glibc-functions/strnlen.texi.
45285         * doc/posix-functions/strsignal.texi: Renamed from
45286         doc/glibc-functions/strsignal.texi.
45287         * doc/posix-functions/strxfrm_l.texi: Renamed from
45288         doc/glibc-functions/strxfrm_l.texi.
45289         * doc/posix-functions/timer_gettime.texi: Renamed from
45290         doc/glibc-functions/timer_gettime.texi.
45291         * doc/posix-functions/tolower_l.texi: Renamed from
45292         doc/glibc-functions/tolower_l.texi.
45293         * doc/posix-functions/toupper_l.texi: Renamed from
45294         doc/glibc-functions/toupper_l.texi.
45295         * doc/posix-functions/towctrans_l.texi: Renamed from
45296         doc/glibc-functions/towctrans_l.texi.
45297         * doc/posix-functions/towlower_l.texi: Renamed from
45298         doc/glibc-functions/towlower_l.texi.
45299         * doc/posix-functions/towupper_l.texi: Renamed from
45300         doc/glibc-functions/towupper_l.texi.
45301         * doc/posix-functions/uselocale.texi: Renamed from
45302         doc/glibc-functions/uselocale.texi.
45303         * doc/posix-functions/vdprintf.texi: Renamed from
45304         doc/glibc-functions/vdprintf.texi.
45305         * doc/posix-functions/wcpcpy.texi:
45306         Renamed from doc/glibc-functions/wcpcpy.texi.
45307         * doc/posix-functions/wcpncpy.texi: Renamed from
45308         doc/glibc-functions/wcpncpy.texi.
45309         * doc/posix-functions/wcscasecmp.texi: Renamed from
45310         doc/glibc-functions/wcscasecmp.texi.
45311         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45312         doc/glibc-functions/wcscasecmp_l.texi.
45313         * doc/posix-functions/wcscoll_l.texi: Renamed from
45314         doc/glibc-functions/wcscoll_l.texi.
45315         * doc/posix-functions/wcsdup.texi: Renamed from
45316         doc/glibc-functions/wcsdup.texi.
45317         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45318         doc/glibc-functions/wcsncasecmp.texi.
45319         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45320         doc/glibc-functions/wcsncasecmp_l.texi.
45321         * doc/posix-functions/wcsnlen.texi: Renamed from
45322         doc/glibc-functions/wcsnlen.texi.
45323         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45324         doc/glibc-functions/wcsnrtombs.texi.
45325         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45326         doc/glibc-functions/wcsxfrm_l.texi.
45327         * doc/posix-functions/wctrans_l.texi: Renamed from
45328         doc/glibc-functions/wctrans_l.texi.
45329         * doc/posix-functions/wctype_l.texi: Renamed from
45330         doc/glibc-functions/wctype_l.texi.
45331         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45332         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45333         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45334         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45335         these subsections.
45336         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45337         Remove sections.
45338
45339 2008-12-14  Bruno Haible  <bruno@clisp.org>
45340
45341         Update doc for POSIX:2008.
45342         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45343
45344 2008-12-14  Bruno Haible  <bruno@clisp.org>
45345
45346         Update doc for POSIX:2008.
45347         * doc/pastposix-functions/bcmp.texi: Renamed from
45348         doc/posix-functions/bcmp.texi.
45349         * doc/pastposix-functions/bcopy.texi: Renamed from
45350         doc/posix-functions/bcopy.texi.
45351         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45352         doc/posix-functions/bsd_signal.texi.
45353         * doc/pastposix-functions/bzero.texi: Renamed from
45354         doc/posix-functions/bzero.texi.
45355         * doc/pastposix-functions/ecvt.texi: Renamed from
45356         doc/posix-functions/ecvt.texi.
45357         * doc/pastposix-functions/fcvt.texi: Renamed from
45358         doc/posix-functions/fcvt.texi.
45359         * doc/pastposix-functions/ftime.texi: Renamed from
45360         doc/posix-functions/ftime.texi.
45361         * doc/pastposix-functions/gcvt.texi: Renamed from
45362         doc/posix-functions/gcvt.texi.
45363         * doc/pastposix-functions/getcontext.texi: Renamed from
45364         doc/posix-functions/getcontext.texi.
45365         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45366         doc/posix-functions/gethostbyaddr.texi.
45367         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45368         doc/posix-functions/gethostbyname.texi.
45369         * doc/pastposix-functions/getwd.texi: Renamed from
45370         doc/posix-functions/getwd.texi.
45371         * doc/pastposix-functions/h_errno.texi: Renamed from
45372         doc/posix-functions/h_errno.texi.
45373         * doc/pastposix-functions/index.texi: Renamed from
45374         doc/posix-functions/index.texi.
45375         * doc/pastposix-functions/makecontext.texi: Renamed from
45376         doc/posix-functions/makecontext.texi.
45377         * doc/pastposix-functions/mktemp.texi: Renamed from
45378         doc/posix-functions/mktemp.texi.
45379         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45380         doc/posix-functions/pthread_attr_getstackaddr.texi.
45381         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45382         doc/posix-functions/pthread_attr_setstackaddr.texi.
45383         * doc/pastposix-functions/rindex.texi: Renamed from
45384         doc/posix-functions/rindex.texi.
45385         * doc/pastposix-functions/scalb.texi: Renamed from
45386         doc/posix-functions/scalb.texi.
45387         * doc/pastposix-functions/setcontext.texi: Renamed from
45388         doc/posix-functions/setcontext.texi.
45389         * doc/pastposix-functions/swapcontext.texi: Renamed from
45390         doc/posix-functions/swapcontext.texi.
45391         * doc/pastposix-functions/ualarm.texi: Renamed from
45392         doc/posix-functions/ualarm.texi.
45393         * doc/pastposix-functions/usleep.texi: Renamed from
45394         doc/posix-functions/usleep.texi.
45395         * doc/pastposix-functions/vfork.texi: Renamed from
45396         doc/posix-functions/vfork.texi.
45397         * doc/pastposix-functions/wcswcs.texi: Renamed from
45398         doc/posix-functions/wcswcs.texi.
45399         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45400         (Function Substitutes): Update.
45401
45402 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45403
45404         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45405         m4/strerror.m4.
45406
45407 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45408             Bruno Haible  <bruno@clisp.org>
45409
45410         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45411
45412 2008-12-13  Bruno Haible  <bruno@clisp.org>
45413
45414         * modules/strtoull (Depends-on): Remove unistd.
45415
45416 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45417
45418         * modules/strtoull (Depends-on): Add stdlib.
45419
45420 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45421
45422         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45423
45424 2008-12-10  Jim Meyering  <meyering@redhat.com>
45425
45426         gl_ASSERT: don't say assertions are disabled when they're not
45427         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45428         "checking whether to enable assertions... no", when they are in
45429         fact enabled.  This is solely a bug in the output of configure.
45430         In spite of saying "no", NDEBUG was not defined in that case.
45431         Also, as noted by Eric Blake, leave assertions enabled upon
45432         --enable-assert=INVALID.
45433
45434 2008-12-10  Bruno Haible  <bruno@clisp.org>
45435
45436         Change MODULES.html to refer to POSIX:2008 where possible.
45437         * MODULES.html.sh (POSIX2008_URL): New variable.
45438         (posix_headers): Remove sys/timeb, ucontext.
45439         (posix2001_headers): New variable.
45440         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45441         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45442         index, makecontext, mktemp, pthread_attr_getstackaddr,
45443         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45444         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45445         (posix2001_functions): New variable.
45446         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45447         otherwise.
45448
45449 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45450
45451         add missing include to parse-duration.c
45452         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45453         * modules/parse-duration (Depends-on): Add xalloc.
45454
45455         fix sed script reading maint.mk
45456         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45457         (syntax-check-rules): Use it.
45458
45459 2008-12-09  Bruno Haible  <bruno@clisp.org>
45460
45461         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45462         MacOS X 10.4/PowerPC.
45463         Reported by Simon Josefsson.
45464
45465 2008-12-08  Jim Meyering  <meyering@redhat.com>
45466
45467         work around mingw's lack of some S_IF definitions
45468         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45469         Reported by Simon Josefsson.
45470
45471 2008-12-08  Bruno Haible  <bruno@clisp.org>
45472
45473         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45474         applied to variables. Needed on MacOS X 10.4/PowerPC.
45475         Reported by Simon Josefsson.
45476
45477 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45478         and Eric Blake  <ebb9@byu.net>
45479
45480         assert: honor --enable-assert
45481         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45482         order to honor --enable-assert, rather than treating it as a
45483         synonym for --disable-assert.
45484
45485 2008-12-08  Jim Meyering  <meyering@redhat.com>
45486
45487         * lib/posixtm.c: Remove now-useless declaration of mktime.
45488
45489         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45490
45491 2008-12-07  Bruno Haible  <bruno@clisp.org>
45492
45493         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45494         test_once): Mark functions as static.
45495         * tests/test-tls.c (test_tls): Likewise.
45496
45497 2008-12-07  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45500         iconv_register_autodetect.
45501
45502 2008-12-07  Jim Meyering  <meyering@redhat.com>
45503
45504         posixtm.c: avoid a warning
45505         * lib/posixtm.c (posixtime): Don't initialize tm0.
45506         It's no longer needed to placate gcc4's -Wuninitialized,
45507         and the attempt to placate would elicit a new warning.
45508
45509         unicodeio.c: mark unused parameters
45510         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45511         (fallback_failure_callback): Likewise.
45512
45513 2008-12-07  Bruno Haible  <bruno@clisp.org>
45514
45515         * gnulib-tool (func_create_testdir): When building the tests
45516         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45517         Reported by Simon Josefsson.
45518
45519 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45520
45521         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45522
45523 2008-12-06  Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45526         Suggested by Eric Blake.
45527
45528 2008-12-06  Bruno Haible  <bruno@clisp.org>
45529
45530         Fix a c-stack test failure on MacOS X.
45531         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45532         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45533         handler for SIGBUS as well.
45534         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45535         install a signal handler for SIGBUS as well.
45536         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45537
45538 2008-12-06  Bruno Haible  <bruno@clisp.org>
45539
45540         Advocacy documentation.
45541         * doc/gnulib-intro.texi (Benefits): New section.
45542         * doc/gnulib.texi: Update.
45543
45544 2008-12-06  Bruno Haible  <bruno@clisp.org>
45545
45546         Document the 'manywarnings' module.
45547         * doc/manywarnings.texi: New file.
45548         * doc/gnulib.texi: Include it.
45549
45550 2008-12-05  Eric Blake  <ebb9@byu.net>
45551
45552         tests: silence some gcc warnings
45553         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45554         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45555         type mismatches.
45556
45557 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45558             Bruno Haible  <bruno@clisp.org>
45559
45560         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45561
45562 2008-11-29  Jim Meyering  <meyering@redhat.com>
45563
45564         unicodeio.c: mark unused parameters
45565         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45566         (fallback_failure_callback): Likewise.
45567
45568         fts: fix a thinko
45569         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45570         (set_stat_type): Return S_IF*-valued "type" directly.
45571         Prompted by James Youngman's spotting a related bug.
45572         Confirmed by further testing through find.
45573
45574         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45575         * lib/fts.c (D_TYPE): Define.
45576         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45577         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45578         (s_ifmt_shift_bits): New function.
45579         (set_stat_type): New function.
45580         (fts_build): When not calling fts_stat, call set_stat_type
45581         to propagate dirent.d_type info to fts_read caller.
45582         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45583         fts_statp->st_mode type information may be valid.
45584
45585 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45586
45587         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45588         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45589         <sds@gnu.org>.
45590
45591 2008-11-20  Bruno Haible  <bruno@clisp.org>
45592
45593         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45594         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45595         INCLUDE_NEXT.
45596         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45597         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45598         * modules/math (Makefile.am): Substitute
45599         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45601
45602 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45603             Bruno Haible  <bruno@clisp.org>
45604
45605         * lib/stdint.in.h: Define all type macros so that their expansion is
45606         a single typedef'ed token. Fixes a compilation failure in Boost which
45607         does "using ::int8_t;".
45608
45609 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45610
45611         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45612         gl_MANYWARN_ALL_GCC.
45613         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45614         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45615         * modules/manywarnings: New file.
45616         * MODULES.html.sh: Mention manywarnings module.
45617
45618 2008-11-18  Bruno Haible  <bruno@clisp.org>
45619
45620         * doc/gnulib-tool.texi (Unit tests): New section.
45621
45622 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45623
45624         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45625         paths like 'lib/po/foo.po'.
45626
45627 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45628
45629         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45630         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45631
45632 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45633
45634         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45635         parameter works.
45636
45637 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45638
45639         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45640
45641 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45642
45643         * modules/parse-duration-tests: New file.
45644         * tests/test-parse-duration.sh: New file.
45645         * tests/test-parse-duration.c: New file.
45646
45647         New module 'parse-duration'.
45648         * lib/parse-duration.h: New file.
45649         * lib/parse-duration.c: New file.
45650         * modules/parse-duration: New file.
45651
45652 2008-11-17  Bruno Haible  <bruno@clisp.org>
45653
45654         * tests/test-select-out.sh: Comment out the first pipe test.
45655         Reported by Simon Josefsson.
45656
45657 2008-11-17  Bruno Haible  <bruno@clisp.org>
45658
45659         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45660         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45661         gl_HOSTENT.
45662
45663 2008-11-17  Bruno Haible  <bruno@clisp.org>
45664
45665         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45666         -lnetwork and -lnet. Needed for Haiku and BeOS.
45667
45668 2008-11-16  Bruno Haible  <bruno@clisp.org>
45669
45670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45671
45672 2008-11-16  Bruno Haible  <bruno@clisp.org>
45673
45674         Avoid test failure on Haiku.
45675         * tests/test-fsync.c: Include <errno.h>.
45676         (main): Don't require that fsync (0) fails.
45677
45678 2008-11-15  Bruno Haible  <bruno@clisp.org>
45679
45680         New module 'hostent'.
45681         * modules/hostent: New file.
45682         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45683
45684 2008-11-15  Bruno Haible  <bruno@clisp.org>
45685
45686         New module 'servent'.
45687         * modules/servent: New file.
45688         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45689
45690 2008-11-15  Bruno Haible  <bruno@clisp.org>
45691
45692         Avoid generating same test program with two different rules.
45693         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45694         test-frexp to test-frexp-nolibm.
45695         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45696         test-frexpl to test-frexpl-nolibm.
45697
45698 2008-11-15  Bruno Haible  <bruno@clisp.org>
45699
45700         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45701         $(FREXPL_LIBM).
45702
45703 2008-11-15  Bruno Haible  <bruno@clisp.org>
45704
45705         * lib/netdb.in.h: Activate the definitions also when the system's
45706         <netdb.h> has 'struct addrinfo'.
45707         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45708         EAI_OVERFLOW or AI_NUMERICSERV.
45709         * doc/posix-headers/netdb.texi: Document the problem.
45710
45711 2008-11-15  Bruno Haible  <bruno@clisp.org>
45712
45713         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45714
45715         Make the 'sched' module work on platforms where <sched.h> exists but
45716         is incomplete (such as Haiku).
45717         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45718         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45719         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45720         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45721         HAVE_STRUCT_SCHED_PARAM.
45722         * modules/sched (Depends-on): Add include_next.
45723         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45724         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45725         * doc/posix-headers/sched.texi: Document the issue.
45726
45727 2008-11-13  Jim Meyering  <meyering@redhat.com>
45728
45729         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45730         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45731         test would fail due to the difference in the Report bugs to ...
45732         line.  The expected address is empty, "<>", while the actual
45733         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45734
45735 2008-11-12  Bruno Haible  <bruno@clisp.org>
45736
45737         lstat: don't compile lstat.c on systems lacking lstat
45738         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45739         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45740         Reported by Daniel P. Berrange via Jim Meyering.
45741
45742 2008-11-12  Jim Meyering  <meyering@redhat.com>
45743
45744         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45745
45746 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45747
45748         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45749         instead.
45750
45751 2008-11-12  Bruno Haible  <bruno@clisp.org>
45752
45753         * lib/unicodeio.c: Include unistr.h.
45754         (utf8_wctomb): Remove function.
45755         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45756
45757 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45758
45759         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45760         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45761         <bruno@clisp.org>.
45762         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45763
45764 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45765
45766         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45767         * doc/gnulib.texi: Add section for warnings.
45768
45769 2008-11-11  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/sockets.h: Add a comment.
45772
45773 2008-11-11  Karl Berry  <karl@gnu.org>
45774
45775         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45776
45777 2008-11-11  Eric Blake  <ebb9@byu.net>
45778
45779         fdl.texi: avoid git symlinks
45780         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45781
45782 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45783
45784         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45785
45786 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45787
45788         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45789         (gl_WARN_ADD): Substitute $2 if literal.
45790
45791 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45792
45793         * m4/warning.m4: Remove.
45794
45795 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45796
45797         * m4/warnings.m4: Almost complete rewrite. :-)
45798
45799 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45800
45801         * modules/warnings: New module.
45802         * m4/warnings.m4: New file.
45803         * MODULES.html.sh: Mention warnings module.
45804         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45805         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45806
45807 2008-11-10  Eric Blake  <ebb9@byu.net>
45808
45809         fdl.texi: make a symlink to the latest version
45810         * doc/standards.texi: Revert today's earlier change.
45811         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45812         * doc/fdl.texi: ...and replace this with a symlink to the newer
45813         fdl-1.3.texi.
45814
45815 2008-11-10  Bruno Haible  <bruno@clisp.org>
45816
45817         * tests/test-select-fd.c (main): Accept the result file name as fourth
45818         argument.
45819         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45820         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45821
45822 2008-11-10  Bruno Haible  <bruno@clisp.org>
45823
45824         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45825         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45826         as autoconf-substituted macros.
45827         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45829         gl_NETDB_H_DEFAULTS. Set these variables.
45830         * modules/netdb (Makefile.am): Substitute these variables.
45831
45832 2008-11-10  Eric Blake  <ebb9@byu.net>
45833
45834         standards.texi: include correct file for FDL 1.3
45835         * doc/standards.texi (GNU Free Documentation License): Change
45836         include file to pull in FDL 1.3, not 1.2.
45837
45838         fdl.texi: revert accidental change to license
45839         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45840
45841 2008-11-10  Bruno Haible  <bruno@clisp.org>
45842
45843         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45844         cross-compiling guesses also when the native compile gives no result.
45845
45846 2008-11-10  Bruno Haible  <bruno@clisp.org>
45847
45848         * lib/spawni.c (__spawni): Force variable into the stack.
45849
45850 2008-11-10  Bruno Haible  <bruno@clisp.org>
45851
45852         Add support for Haiku.
45853         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45854         glibc and BeOS, but also on Haiku.
45855         * lib/fpurge.c (fpurge): Likewise.
45856         * lib/freadable.c (freadable): Likewise.
45857         * lib/freadahead.c (freadahead): Likewise.
45858         * lib/freading.c (freading): Likewise.
45859         * lib/freadptr.c (freadptr): Likewise.
45860         * lib/freadseek.c (freadptrinc): Likewise.
45861         * lib/fseeko.c (rpl_fseeko): Likewise.
45862         * lib/fseterr.c (fseterr): Likewise.
45863         * lib/fwritable.c (fwritable): Likewise.
45864         * lib/fwriting.c (fwriting): Likewise.
45865         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45866
45867 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45868
45869         * lib/config.charset: Treat Haiku like BeOS.
45870
45871 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45872
45873         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45874         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45875
45876 2008-11-08  Bruno Haible  <bruno@clisp.org>
45877
45878         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45879         AC_CACHE_CHECK.
45880
45881 2008-11-08  Bruno Haible  <bruno@clisp.org>
45882
45883         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45884
45885 2008-11-08  Bruno Haible  <bruno@clisp.org>
45886
45887         * tests/test-select-fd.c: New file.
45888         * tests/test-select-in.sh: New file.
45889         * tests/test-select-out.sh: New file.
45890         * tests/test-select-stdin.c: New file.
45891         * modules/select-tests (Files): Add the new files.
45892         (Depends-on): Add gettimeofday.
45893         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45894         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45895         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45896
45897 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45898             Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45901
45902 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45903
45904         * build-aux/pmccabe2html: Added support for C++ source files.
45905
45906 2008-11-05  Ben Pfaff  <blp@gnu.org>
45907
45908         Fix lib/close.c build on Windows.
45909         * modules/close (Files): Add lib/w32sock.h.
45910
45911 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45912
45913         Accept Bison's NEWS format.
45914         * build-aux/announce-gen (print_news_deltas): Tweak
45915         $re_prefix.
45916
45917 2008-11-04  Bruno Haible  <bruno@clisp.org>
45918
45919         * modules/random_r (Maintainer): Add glibc.
45920
45921 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45922
45923         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45924         by karl@freefriends.org (Karl Berry).
45925         * doc/alloca.texi: Likewise.
45926         * doc/c-ctype.texi: Likewise.
45927         * doc/c-strcase.texi: Likewise.
45928         * doc/c-strcaseeq.texi: Likewise.
45929         * doc/c-strcasestr.texi: Likewise.
45930         * doc/c-strstr.texi: Likewise.
45931         * doc/c-strtod.texi: Likewise.
45932         * doc/c-strtold.texi: Likewise.
45933         * doc/ctime.texi: Likewise.
45934         * doc/error.texi: Likewise.
45935         * doc/fdl.texi: Likewise.
45936         * doc/gcd.texi: Likewise.
45937         * doc/getdate.texi: Likewise.
45938         * doc/gnulib-intro.texi: Likewise.
45939         * doc/gnulib-tool.texi: Likewise.
45940         * doc/gnulib.texi: Likewise.
45941         * doc/inet_ntoa.texi: Likewise.
45942         * doc/maintain.texi: Likewise.
45943         * doc/make-stds.texi: Likewise.
45944         * doc/quote.texi: Likewise.
45945         * doc/regexprops-generic.texi: Likewise.
45946         * doc/standards.texi: Likewise.
45947         * doc/verify.texi: Likewise.
45948         * doc/visibility.texi: Likewise.
45949         * doc/gnulib.texi (GNU Free Documentation License): Include
45950         fdl-1.3.texi instead of fdl.texi.
45951
45952 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45953
45954         * doc/fdl-1.3.texi: New file, from
45955         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45956         * modules/fdl-1.3: Add.
45957         * MODULES.html.sh: Add fdl-1.3.
45958
45959 2008-11-03  Bruno Haible  <bruno@clisp.org>
45960
45961         Make determination of absolute name of header file work with AIX xlc.
45962         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45963         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45964         preprocessing.
45965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45966         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45967
45968 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45969
45970         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45971         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45972         <ludo@gnu.org>.
45973
45974 2008-11-02  Bruno Haible  <bruno@clisp.org>
45975
45976         Mark 'strpbrk' obsolete.
45977         * modules/strpbrk (Status, Notice): New sections.
45978         * modules/strtok_r (Depends-on): Add strpbrk.
45979
45980 2008-11-02  Bruno Haible  <bruno@clisp.org>
45981
45982         Mark 'strdup' obsolete.
45983         * modules/strdup (Status, Notice): New sections.
45984         * modules/findprog (Depends-on): Add strdup.
45985         * modules/getaddrinfo (Depends-on): Likewise.
45986         * modules/localename (Depends-on): Likewise.
45987         * modules/relocatable-lib (Depends-on): Likewise.
45988         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45989         * modules/relocatable-prog (Depends-on): Likewise.
45990         * modules/trim (Depends-on): Likewise.
45991         * modules/unictype/gen-ctype (Depends-on): Likewise.
45992         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45993
45994 2008-11-02  Bruno Haible  <bruno@clisp.org>
45995
45996         Mark 'strcspn' obsolete.
45997         * modules/strcspn (Status, Notice): New sections.
45998
45999 2008-11-02  Bruno Haible  <bruno@clisp.org>
46000
46001         Mark 'rmdir' obsolete.
46002         * modules/rmdir (Status, Notice): New sections.
46003         * modules/clean-temp (Depends-on): Add rmdir.
46004         * modules/openat (Depends-on): Likewise.
46005
46006 2008-11-02  Bruno Haible  <bruno@clisp.org>
46007
46008         Mark 'raise' obsolete.
46009         * modules/raise (Status, Notice): New sections.
46010         (Include): Specify <signal.h>.
46011         * modules/stdio (Depends-on): Add raise.
46012         * modules/write (Depends-on): Likewise.
46013
46014 2008-11-02  Bruno Haible  <bruno@clisp.org>
46015
46016         Mark 'memset' obsolete.
46017         * modules/memset (Status, Notice): New sections.
46018
46019 2008-11-02  Bruno Haible  <bruno@clisp.org>
46020
46021         Mark 'memmove' obsolete.
46022         * modules/memmove (Status, Notice): New sections.
46023         * modules/argp (Depends-on): Add memmove.
46024         * modules/argz (Depends-on): Likewise.
46025         * modules/canonicalize (Depends-on): Likewise.
46026         * modules/canonicalize-lgpl (Depends-on): Likewise.
46027         * modules/fts (Depends-on): Likewise.
46028         * modules/getcwd (Depends-on): Likewise.
46029         * modules/human (Depends-on): Likewise.
46030         * modules/regex (Depends-on): Likewise.
46031         * modules/striconveh (Depends-on): Likewise.
46032         * modules/trim (Depends-on): Likewise.
46033         * modules/unistr/u8-move (Depends-on): Likewise.
46034         * modules/unistr/u16-move (Depends-on): Likewise.
46035         * modules/unistr/u32-move (Depends-on): Likewise.
46036
46037 2008-11-02  Bruno Haible  <bruno@clisp.org>
46038
46039         Mark 'memcpy' obsolete.
46040         * modules/memcpy (Status, Notice): New sections.
46041
46042 2008-11-02  Bruno Haible  <bruno@clisp.org>
46043
46044         Mark 'memcmp' obsolete.
46045         * modules/memcmp (Status, Notice): New sections.
46046         * modules/argmatch (Depends-on): Add memchr.
46047         * modules/backupfile (Depends-on): Likewise.
46048         * modules/c-strcasestr (Depends-on): Likewise.
46049         * modules/crypto/des (Depends-on): Likewise.
46050         * modules/csharpcomp (Depends-on): Likewise.
46051         * modules/fnmatch (Depends-on): Likewise.
46052         * modules/git-merge-changelog (Depends-on): Likewise.
46053         * modules/isnand (Depends-on): Likewise.
46054         * modules/isnand-nolibm (Depends-on): Likewise.
46055         * modules/isnanf (Depends-on): Likewise.
46056         * modules/isnanf-nolibm (Depends-on): Likewise.
46057         * modules/isnanl (Depends-on): Likewise.
46058         * modules/isnanl-nolibm (Depends-on): Likewise.
46059         * modules/mbchar (Depends-on): Likewise.
46060         * modules/memcoll (Depends-on): Likewise.
46061         * modules/quotearg (Depends-on): Likewise.
46062         * modules/regex (Depends-on): Likewise.
46063         * modules/relocatable-prog (Depends-on): Likewise.
46064         * modules/same (Depends-on): Likewise.
46065         * modules/signbit (Depends-on): Likewise.
46066         * modules/strcasestr-simple (Depends-on): Likewise.
46067         * modules/unictype/gen-ctype (Depends-on): Likewise.
46068         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46069         * modules/uniname/uniname (Depends-on): Likewise.
46070         * modules/unistr/u8-cmp (Depends-on): Likewise.
46071
46072 2008-11-02  Bruno Haible  <bruno@clisp.org>
46073
46074         Mark 'memchr' obsolete.
46075         * modules/memchr (Status, Notice): New sections.
46076         * modules/argp (Depends-on): Add memchr.
46077         * modules/base64 (Depends-on): Likewise.
46078         * modules/c-strcasestr (Depends-on): Likewise.
46079         * modules/chdir-long (Depends-on): Likewise.
46080         * modules/fnmatch (Depends-on): Likewise.
46081         * modules/getsubopt (Depends-on): Likewise.
46082         * modules/git-merge-changelog (Depends-on): Likewise.
46083         * modules/glob (Depends-on): Likewise.
46084         * modules/strcasestr-simple (Depends-on): Likewise.
46085         * modules/strnlen (Depends-on): Likewise.
46086
46087 2008-11-02  Bruno Haible  <bruno@clisp.org>
46088
46089         Mark 'atexit' obsolete.
46090         * modules/atexit (Status, Notice): New sections.
46091         * modules/chdir-long (Depends-on): Add atexit.
46092         * modules/wait-process (Depends-on): Likewise.
46093
46094 2008-11-02  Bruno Haible  <bruno@clisp.org>
46095
46096         * gnulib-tool: New option --with-obsolete.
46097         (func_usage): Document it.
46098         (func_modules_transitive_closure): Drop obsolete dependencies if
46099         incobsolete is not true.
46100         (func_import): Read and save the incobsolete variable to the cache.
46101
46102 2008-11-02  Bruno Haible  <bruno@clisp.org>
46103
46104         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46105         * gnulib-tool: New option --extract-status.
46106         (func_usage): Document it.
46107         (sed_extract_prog): Recognize it.
46108         (func_get_status): New function.
46109
46110 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46111
46112         * modules/sockets (License): Change from LGPL to LGPLv2+.
46113
46114 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46115
46116         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46117
46118 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46119
46120         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46121         Mention times and sys_times.
46122         * modules/sys_times, modules/sys_times-tests: New modules.
46123         * modules/times, modules/times-tests: Likewise
46124         * m4/sys_times_h.m4: New file.
46125         * lib/sys_times.in.h: Likewise
46126         * lib/times.c: Likewise.
46127         * tests/test-sys_times.c: Likewise.
46128         * tests/test-times.c: Likewise.
46129         * doc/posix-headers/sys_times.texi: Update.
46130         * doc/posix-functions/times.texi: Update.
46131
46132 2008-10-28  Jim Meyering  <meyering@redhat.com>
46133
46134         * modules/tempname (Depends-on): Add lstat.
46135
46136         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46137
46138 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46139
46140         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46141         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46142         using idiom used elsewhere in gnulib.
46143
46144 2008-10-27  Jim Meyering  <meyering@redhat.com>
46145
46146         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46147
46148 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46149
46150         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46151         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46152         programs.
46153         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46154
46155 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46156
46157         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46158
46159 2008-10-27  Bruno Haible  <bruno@clisp.org>
46160
46161         * tests/test-lstat.c: Include <stdio.h>.
46162
46163 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46164
46165         * modules/lstat-tests: New module.
46166         * tests/test-lstat.c: New file.
46167
46168 2008-10-26  Jim Meyering  <meyering@redhat.com>
46169
46170         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46171
46172 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46173             Bruno Haible  <bruno@clisp.org>
46174
46175         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46176         * modules/configmake (Include): Add a note that the include must come
46177         after all system headers.
46178         * lib/javaversion.c: Include configmake.h after all other includes.
46179
46180 2008-10-26  Bruno Haible  <bruno@clisp.org>
46181
46182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46183         HAVE_STRUCT_RANDOM_DATA to 1.
46184         (gl_STDLIB_H): Simplify.
46185
46186 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46187
46188         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46189         substitute HAVE_STRUCT_RANDOM_DATA.
46190         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46191         random_data.
46192         * modules/stdlib (Makefile.am): Substitute
46193         HAVE_STRUCT_RANDOM_DATA.
46194
46195 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46196
46197         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46198         * doc/gnulib-intro.texi (Copyright): Likewise.
46199
46200 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46201
46202         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46203         findings.
46204
46205 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46206             Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/unistd.in.h: Include <winsock2.h>.
46209         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46210         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46211         Provide dummy declarations.
46212         (gethostname): Override.
46213         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46214         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46215         gl_PREREQ_SYS_H_WINSOCK2.
46216         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46217         * doc/posix-functions/gethostname.texi: More details.
46218
46219 2008-10-25  Bruno Haible  <bruno@clisp.org>
46220
46221         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46222         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46223         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46224
46225         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46226         here ...
46227         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46228         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46229         gl_UNISTD_H_DEFAULTS.
46230
46231 2008-10-25  Eric Blake  <ebb9@byu.net>
46232
46233         signbit: avoid spurious compiler failure
46234         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46235         declarations inside function.
46236
46237 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46238             Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46241         * modules/random_r (Depends-on): Add stdint.
46242
46243 2008-10-24  Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46246         Eggert.
46247         * modules/strerror (License): Likewise.
46248
46249 2008-10-24  Jim Meyering  <meyering@redhat.com>
46250
46251         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46252         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46253
46254 2008-10-24  Eric Blake  <ebb9@byu.net>
46255
46256         getgroups: fix compilation when getgroups is available
46257         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46258         but with <config.h> override of getgroups disabled.
46259
46260 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46261
46262         * doc/gnulib.texi (Header files): Add note about C++ problems.
46263         Explained by Bruno Haible <bruno@clisp.org>.
46264
46265 2008-10-23  Bruno Haible  <bruno@clisp.org>
46266
46267         Define a dummy SA_NODEFER macro on Interix.
46268         * lib/signal.in.h (SA_NODEFER): Define fallback.
46269         Reported by Aleksey Cheusov <cheusov@tut.by> via
46270         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46271
46272 2008-10-23  Bruno Haible  <bruno@clisp.org>
46273
46274         * modules/freadahead (License): Change to LGPLv2+.
46275         Suggested by Simon Josefsson.
46276
46277 2008-10-23  Jim Meyering  <meyering@redhat.com>
46278
46279         random_r: new module
46280         * modules/random_r: New file.
46281         * m4/random_r.m4: New file.
46282         * lib/random_r.c: New file, from glibc.
46283         * modules/random_r-tests: New file.
46284         * tests/test-random_r.c: New file.
46285         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46286          Declare.
46287         (RAND_MAX): Define.
46288         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46289         * modules/stdlib: Substitute them, too.
46290         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46291         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46292         * doc/glibc-functions/random_r.texi: Likewise.
46293         * doc/glibc-functions/setstate_r.texi: Likewise.
46294         * doc/glibc-functions/srandom_r.texi: Likewise.
46295         * config/srclist.txt: Mention it.
46296
46297 2008-10-23  David Lutterkort  <lutter@redhat.com>
46298
46299         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46300         link requirement
46301
46302 2008-10-23  Jim Meyering  <meyering@redhat.com>
46303
46304         selinux-h: mark parameters of stub functions as intentionally unused
46305         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46306         * lib/se-context.in.h: Likewise.
46307
46308 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46309
46310         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46311
46312 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46313
46314         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46315
46316 2008-10-22  Eric Blake  <ebb9@byu.net>
46317
46318         glthread/thread: avoid compiler warning
46319         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46320         Add unreachable abort to silence compiler.
46321
46322 2008-10-22  Eric Blake  <ebb9@byu.net>
46323
46324         netdb: also supply struct addrinfo for cygwin 1.5.x
46325         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46326         older cygwin.
46327         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46328         cygwin.
46329         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46330
46331 2008-10-22  Bruno Haible  <bruno@clisp.org>
46332
46333         * users.txt: Update entry about pspp.
46334
46335 2008-10-21  Bruno Haible  <bruno@clisp.org>
46336
46337         Simplification.
46338         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46339         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46340
46341         Simplification.
46342         * lib/ioctl.c (ioctl): Don't undefine.
46343         * lib/socket.c (socket): Don't undefine.
46344
46345         Remove unused module indicator macros.
46346         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46347         GNULIB_$1 as a C macro.
46348
46349         * doc/posix-functions/close.texi: Undo last change.
46350         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46351         Windows platforms.
46352
46353 2008-10-21  Bruno Haible  <bruno@clisp.org>
46354
46355         Add gethostname() declaration to <unistd.h>.
46356         * lib/unistd.in.h (gethostname): New declaration.
46357         * lib/gethostname.c: Include <unistd.h>.
46358         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46359         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46361         and HAVE_GETHOSTNAME.
46362         * modules/gethostname (Depends-on): Add unistd.
46363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46364         (Include): Specify <unistd.h>.
46365         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46366         HAVE_GETHOSTNAME.
46367         * tests/test-gethostname.c: Include <unistd.h> first.
46368
46369 2008-10-21  Bruno Haible  <bruno@clisp.org>
46370
46371         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46372         * modules/select-tests (Depends-on): Likewise.
46373         Reported by Simon Josefsson.
46374
46375 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46376
46377         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46378         * lib/accept.c: New file, based on winsock.c.
46379         * lib/bind.c: New file, based on winsock.c.
46380         * lib/connect.c: New file, based on winsock.c.
46381         * lib/getpeername.c: New file, based on winsock.c.
46382         * lib/getsockname.c: New file, based on winsock.c.
46383         * lib/getsockopt.c: New file, based on winsock.c.
46384         * lib/ioctl.c: New file, based on winsock.c.
46385         * lib/listen.c: New file, based on winsock.c.
46386         * lib/recv.c: New file, based on winsock.c.
46387         * lib/recvfrom.c: New file, based on winsock.c.
46388         * lib/send.c: New file, based on winsock.c.
46389         * lib/sendto.c: New file, based on winsock.c.
46390         * lib/setsockopt.c: New file, based on winsock.c.
46391         * lib/shutdown.c: New file, based on winsock.c.
46392         * lib/socket.c: New file, based on winsock.c.
46393         * lib/w32sock.h: New file, based on winsock.c.
46394         * lib/winsock.c: Remove file.
46395         * modules/accept: Likewise.
46396         * modules/bind: Likewise.
46397         * modules/connect: Likewise.
46398         * modules/getpeername: Likewise.
46399         * modules/getsockname: Likewise.
46400         * modules/getsockopt: Likewise.
46401         * modules/ioctl: Likewise.
46402         * modules/listen: Likewise.
46403         * modules/recv: Likewise.
46404         * modules/recvfrom: Likewise.
46405         * modules/send: Likewise.
46406         * modules/sendto: Likewise.
46407         * modules/setsockopt: Likewise.
46408         * modules/shutdown: Likewise.
46409         * modules/socket: Use socket.c instead of winsock.c.
46410         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46411         * doc/posix-functions/accept.texi: Doc fix.
46412         * doc/posix-functions/bind.texi: Doc fix.
46413         * doc/posix-functions/close.texi: Doc fix.
46414         * doc/posix-functions/connect.texi: Doc fix.
46415         * doc/posix-functions/getpeername.texi: Doc fix.
46416         * doc/posix-functions/getsockname.texi: Doc fix.
46417         * doc/posix-functions/getsockopt.texi: Doc fix.
46418         * doc/posix-functions/ioctl.texi: Doc fix.
46419         * doc/posix-functions/listen.texi: Doc fix.
46420         * doc/posix-functions/recv.texi: Doc fix.
46421         * doc/posix-functions/recvfrom.texi: Doc fix.
46422         * doc/posix-functions/send.texi: Doc fix.
46423         * doc/posix-functions/sendto.texi: Doc fix.
46424         * doc/posix-functions/setsockopt.texi: Doc fix.
46425         * doc/posix-functions/shutdown.texi: Doc fix.
46426         * doc/posix-functions/socket.texi: Doc fix.
46427
46428 2008-10-20  Bruno Haible  <bruno@clisp.org>
46429
46430         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46431         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46432         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46433         as an alias for SIGABRT.
46434         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46435         (sigaction): Map it to SIGABRT.
46436         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46437
46438 2008-10-20  Bruno Haible  <bruno@clisp.org>
46439
46440         * lib/fts.c: Don't include lstat.h.
46441         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46442
46443         Move the lstat() declaration to <sys/stat.h>.
46444         * lib/lstat.h: Remove file.
46445         * lib/sys_stat.in.h: Add special invocation convention.
46446         (lstat): New declaration.
46447         * lib/lstat.c (orig_lstat): New function.
46448         (rpl_lstat): Use orig_lstat instead of lstat.
46449         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46450         AC_C_INLINE. Set REPLACE_LSTAT.
46451         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46452         and REPLACE_LSTAT.
46453         * modules/lstat (Files): Remove lib/lstat.h.
46454         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46455         (Include): Specify <sys/stat.h> instead of lstat.h.
46456         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46457         REPLACE_LSTAT.
46458         * NEWS: Mention the change.
46459
46460 2008-10-20  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/posix_spawn-tests: New file.
46463         * tests/test-posix_spawn3.c: New file.
46464
46465 2008-10-20  Bruno Haible  <bruno@clisp.org>
46466
46467         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46468         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46469         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46470         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46471         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46472
46473 2008-10-20  Bruno Haible  <bruno@clisp.org>
46474
46475         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46476         of posix_spawn on AIX 5.3.
46477
46478 2008-10-20  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46481
46482 2008-10-20  Bruno Haible  <bruno@clisp.org>
46483
46484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46485         of AC_LANG_PROGRAM.
46486
46487 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46488
46489         * lib/netdb.in.h: Don't define GNU specific constants until they
46490         are supported or needed.  Reported by Bruno Haible
46491         <bruno@clisp.org>.
46492
46493 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46494
46495         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46496
46497 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46498
46499         * lib/getaddrinfo.h: Remove file.
46500         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46501         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46502         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46503         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46504         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46505         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46506         * tests/test-getaddrinfo.c: Likewise.
46507         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46508         * NEWS: Mention change.
46509
46510 2008-10-19  Bruno Haible  <bruno@clisp.org>
46511
46512         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46513
46514 2008-10-19  Bruno Haible  <bruno@clisp.org>
46515
46516         * lib/wait-process.c: Include simply <sys/wait.h>.
46517         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46518         WIFSTOPPED): Remove fallback definitions.
46519         * modules/wait-process (Depends-on): Add sys_wait.
46520
46521         New module 'sys_wait'.
46522         * modules/sys_wait: New file.
46523         * lib/sys_wait.in.h: New file, partially copied from
46524         lib/wait-process.c.
46525         * m4/sys_wait_h.m4: New file.
46526         * doc/posix-headers/sys_wait.texi: Mention the new module.
46527
46528 2008-10-19  Bruno Haible  <bruno@clisp.org>
46529
46530         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46531
46532 2008-10-19  Bruno Haible  <bruno@clisp.org>
46533
46534         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46535         * lib/wait-process.c (WAIT_T): Remove type.
46536         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46537         (wait_subprocess): Update.
46538
46539 2008-10-19  Bruno Haible  <bruno@clisp.org>
46540
46541         New module 'atoll'.
46542         * modules/atoll: New file.
46543         * lib/stdlib.in.h (atoll): New declaration.
46544         * lib/atoll.c: New file, from glibc with modifications.
46545         * m4/atoll.m4: New file.
46546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46547         HAVE_ATOLL.
46548         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46549         * doc/posix-functions/atoll.texi: Mention the new module.
46550
46551 2008-10-19  Bruno Haible  <bruno@clisp.org>
46552
46553         Add strtoull() declaration to <stdlib.h>.
46554         * lib/stdlib.in.h (strtoull): New declaration.
46555         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46556         Set HAVE_STRTOULL.
46557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46558         HAVE_STRTOULL.
46559         * modules/strtoull (Depends-on): Add stdlib.
46560         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46561         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46562         HAVE_STRTOULL.
46563
46564 2008-10-19  Bruno Haible  <bruno@clisp.org>
46565
46566         Add strtoll() declaration to <stdlib.h>.
46567         * lib/stdlib.in.h (strtoll): New declaration.
46568         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46569         Set HAVE_STRTOLL.
46570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46571         HAVE_STRTOLL.
46572         * modules/strtoll (Depends-on): Add stdlib.
46573         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46574         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46575
46576 2008-10-19  Bruno Haible  <bruno@clisp.org>
46577
46578         * modules/bcopy (Depends-on): Add strings.
46579         (Include): Specify <strings.h>.
46580
46581 2008-10-19  Bruno Haible  <bruno@clisp.org>
46582
46583         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46584
46585 2008-10-19  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46588         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46589         mingw.
46590
46591 2008-10-19  Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/atanl.c: Don't include isnanl.h.
46594         * lib/cosl.c: Likewise.
46595         * lib/ldexpl.c: Likewise.
46596         * lib/logl.c: Likewise.
46597         * lib/sinl.c: Likewise.
46598         * lib/sqrtl.c: Likewise.
46599         * lib/tanl.c: Likewise.
46600
46601         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46602         * lib/isnanf.h: Remove file.
46603         * lib/isnand.h: Remove file.
46604         * lib/isnanl.h: Remove file.
46605         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46606         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46607         macros.
46608         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46609         HAVE_ISNANF, don't define it as a C macro.
46610         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46611         HAVE_ISNAND, don't define it as a C macro.
46612         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46613         HAVE_ISNANL, don't define it as a C macro.
46614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46615         HAVE_ISNAN[FDL].
46616         * modules/isnanf (Files): Remove lib/isnanf.h.
46617         (Depends-on): Add math.
46618         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46619         (Include): Specify <math.h> instead of isnanf.h.
46620         * modules/isnand (Files): Remove lib/isnand.h.
46621         (Depends-on): Add math.
46622         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46623         (Include): Specify <math.h> instead of isnand.h.
46624         * modules/isnanl (Files): Remove lib/isnanl.h.
46625         (Depends-on): Add math.
46626         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46627         (Include): Specify <math.h> instead of isnanl.h.
46628         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46629         HAVE_ISNAN[FDL].
46630         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46631         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46632         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46633         * NEWS: Mention the change.
46634
46635 2008-10-18  Bruno Haible  <bruno@clisp.org>
46636
46637         Add getusershell(), setusershell(), endusershell() declarations to
46638         <unistd.h>.
46639         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46640         declarations.
46641         * lib/getusershell.c: Include unistd.h.
46642         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46643         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46644         HAVE_GETUSERSHELL.
46645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46646         and HAVE_GETUSERSHELL.
46647         * modules/getusershell (Depends-on): Add unistd, extensions.
46648         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46649         (Include): Specify <unistd.h>.
46650         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46651         HAVE_GETUSERSHELL.
46652
46653 2008-10-18  Bruno Haible  <bruno@clisp.org>
46654
46655         Add a getloadavg() declaration to <stdlib.h>.
46656         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46657         getloadavg declaration.
46658         (getloadavg): New declaration.
46659         * lib/getloadavg.c: Include <stdlib.h> first.
46660         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46661         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46662         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46664         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46665         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46667         (Include): Specify <stdlib.h>.
46668         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46669         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46670
46671 2008-10-18  Bruno Haible  <bruno@clisp.org>
46672
46673         * lib/dirchownmod.c: Don't include lchmod.h.
46674
46675         Move the lchmod() declaration to <sys/stat.h>.
46676         * lib/lchmod.h: Remove file.
46677         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46678         (lchmod): New declaration, moved here from lib/lchown.h.
46679         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46680         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46681         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46682         and HAVE_LCHMOD.
46683         * modules/lchmod (Files): Remove lib/lchmod.h.
46684         (Depends-on): Add sys_stat, extensions.
46685         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46686         (Include): Specify <sys/stat.h> instead of lchmod.h.
46687         * modules/sys_stat (Depends-on): Add link-warning.
46688         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46689         definition of GL_LINK_WARNING.
46690         * NEWS: Mention the change.
46691
46692 2008-10-18  Bruno Haible  <bruno@clisp.org>
46693
46694         * lib/fchdir.c: Don't include dirfd.h.
46695         * lib/fts.c: Likewise.
46696         * lib/getcwd.c: Likewise.
46697         * lib/glob.c: Likewise.
46698
46699         Move the dirfd() declaration to <dirent.h>.
46700         * lib/dirfd.h: Remove file.
46701         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46702         (dirfd): New declaration.
46703         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46704         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46705         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46706         HAVE_DECL_DIRFD.
46707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46708         HAVE_DECL_DIRFD.
46709         * modules/dirfd (Files): Remove lib/dirfd.h.
46710         (Depends-on): Add dirent, extensions.
46711         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46712         (Include): Specify <dirent.h> instead of dirfd.h.
46713         * modules/dirent (Depends-on): Add link-warning.
46714         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46715         definition of GL_LINK_WARNING.
46716         * NEWS: Mention the change.
46717
46718 2008-10-18  Bruno Haible  <bruno@clisp.org>
46719
46720         Move the euidaccess() declaration to <unistd.h>.
46721         * lib/euidaccess.h: Remove file.
46722         * lib/unistd.in.h (euidaccess): New declaration.
46723         * lib/euidaccess.c: Don't include euidaccess.h.
46724         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46725         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46727         and HAVE_EUIDACCESS.
46728         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46729         (Depends-on): Add unistd.
46730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46731         (Include): Specify <unistd.h> instead of euidaccess.h.
46732         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46733         HAVE_EUIDACCESS.
46734         * NEWS: Mention the change.
46735
46736 2008-10-18  Bruno Haible  <bruno@clisp.org>
46737
46738         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46739
46740         Move the getdomainname() declaration to <unistd.h>.
46741         * lib/getdomainname.h: Remove file.
46742         * lib/unistd.in.h (getdomainname): New declaration.
46743         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46744         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46745         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46746         HAVE_GETDOMAINNAME.
46747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46748         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46749         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46750         (Depends-on): Add unistd, extensions.
46751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46752         (Includes): Specify <unistd.h> instead of getdomainname.h.
46753         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46754         HAVE_GETDOMAINNAME.
46755         * NEWS: Mention the change.
46756
46757 2008-10-18  Bruno Haible  <bruno@clisp.org>
46758
46759         * modules/dirent: New file.
46760         * m4/dirent_h.m4: New file.
46761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46762         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46763         * modules/fchdir (Files): Remove lib/dirent.in.h.
46764         (Depends-on): Add dirent.
46765         (Makefile.am): Move rules to modules/dirent.
46766         * doc/posix-headers/dirent.texi: Mention the new module.
46767
46768 2008-10-18  Bruno Haible  <bruno@clisp.org>
46769
46770         Avoid -Wunused-parameter warnings in public gnulib header files.
46771         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46772         macro.
46773         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46774
46775 2008-10-18  Bruno Haible  <bruno@clisp.org>
46776
46777         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46778         * doc/glibc-functions/error.texi: Mention the module 'error'.
46779         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46780         * doc/glibc-functions/getdomainname.texi: Mention the module
46781         'getdomainname'.
46782         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46783         * doc/glibc-functions/getpagesize.texi: Mention the module
46784         'getpagesize'.
46785         * doc/glibc-functions/getusershell.texi: Mention the module
46786         'getusershell'.
46787         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46788         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46789         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46790         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46791         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46792         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46793         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46794         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46795         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46796         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46797         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46798         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46799         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46800         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46801
46802 2008-10-17  Bruno Haible  <bruno@clisp.org>
46803
46804         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46805         HP-UX and IRIX, use -0.0L.
46806         * tests/test-ceill.c (minus_zero): Likewise.
46807         * tests/test-floorl.c (minus_zero): Likewise.
46808         * tests/test-frexpl.c (minus_zero): Likewise.
46809         * tests/test-isnan.c (minus_zerol): Likewise.
46810         * tests/test-isnanl.h (minus_zero): Likewise.
46811         * tests/test-ldexpl.c (minus_zero): Likewise.
46812         * tests/test-roundl.c (minus_zero): Likewise.
46813         * tests/test-signbit.c (minus_zerol): Likewise.
46814         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46815         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46816         * tests/test-truncl.c (minus_zero): Likewise.
46817         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46818         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46819         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46820         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46821
46822 2008-10-17  Bruno Haible  <bruno@clisp.org>
46823
46824         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46825         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46826         that it gets activated only for gcc >= 3.0.
46827         * lib/dirent.in.h: Likewise.
46828         * lib/errno.in.h: Likewise.
46829         * lib/fcntl.in.h: Likewise.
46830         * lib/float.in.h: Likewise.
46831         * lib/iconv.in.h: Likewise.
46832         * lib/inttypes.in.h: Likewise.
46833         * lib/locale.in.h: Likewise.
46834         * lib/math.in.h: Likewise.
46835         * lib/netdb.in.h: Likewise.
46836         * lib/netinet_in.in.h: Likewise.
46837         * lib/search.in.h: Likewise.
46838         * lib/signal.in.h: Likewise.
46839         * lib/spawn.in.h: Likewise.
46840         * lib/stdarg.in.h: Likewise.
46841         * lib/stdint.in.h: Likewise.
46842         * lib/stdio.in.h: Likewise.
46843         * lib/stdlib.in.h: Likewise.
46844         * lib/string.in.h: Likewise.
46845         * lib/strings.in.h: Likewise.
46846         * lib/sys_file.in.h: Likewise.
46847         * lib/sys_ioctl.in.h: Likewise.
46848         * lib/sys_select.in.h: Likewise.
46849         * lib/sys_socket.in.h: Likewise.
46850         * lib/sys_stat.in.h: Likewise.
46851         * lib/sys_time.in.h: Likewise.
46852         * lib/sysexits.in.h: Likewise.
46853         * lib/time.in.h: Likewise.
46854         * lib/unistd.in.h: Likewise.
46855         * lib/wchar.in.h: Likewise.
46856         * lib/wctype.in.h: Likewise.
46857         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46858
46859 2008-10-17  Jim Meyering  <meyering@redhat.com>
46860
46861         ignore-value: don't depend on inline module
46862         * modules/ignore-value (Depends-on): Remove 'inline'.
46863         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46864         Suggestion from Bruno Haible.
46865
46866 2008-10-17  Bruno Haible  <bruno@clisp.org>
46867
46868         New implementation of condition variables for Win32.
46869         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46870         (gl_linked_waitqueue_t): New type.
46871         (gl_cond_t): Use it.
46872         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46873         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46874         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46875         (glthread_cond_init_func, glthread_cond_wait_func,
46876         glthread_cond_timedwait_func, glthread_cond_signal_func,
46877         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46878         Reimplemented on the basis of gl_linked_waitqueue_t.
46879         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46880         gl_waitqueue_t.
46881         (gl_rwlock_t): Update.
46882         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46883
46884 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46885
46886         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46887         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46888
46889 2008-10-17  Jim Meyering  <meyering@redhat.com>
46890
46891         ignore-value: new module
46892         * modules/ignore-value: New file.
46893         * lib/ignore-value.h: New file.
46894         * MODULES.html.sh (Compiler warning management): New section,
46895         just for this module.  More to come.
46896
46897 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46898
46899         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46900         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46901         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46902
46903 2008-10-16  Jim Meyering  <meyering@redhat.com>
46904
46905         openat-die.c: avoid 'no previous prototype' warning
46906         * lib/openat-die.c: Include "openat.h".
46907         Reported by Reuben Thomas <rrt@sc3d.org>.
46908
46909 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46910
46911         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46912         * lib/netdb.in.h: Fix typo.
46913         Reported by Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/netdb.in.h: Include sys/socket.h for platforms without
46916         netdb.h, to get structures like hostent on MinGW.
46917         * modules/netdb (Depends-on): Add sys_socket.
46918
46919 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46920
46921         * modules/netdb, modules/netdb-tests: New file.
46922         * m4/netdb_h.m4: New file.
46923         * lib/netdb.in.h: Add, currently just an empty file pending
46924         definitions.
46925         * tests/test-netdb.c: New file.
46926         * doc/posix-headers/netdb.texi: Mention that we replace it if
46927         needed.
46928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46929         netdb.
46930
46931 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46932
46933         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46934         with code.
46935
46936 2008-10-13  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/glthread/cond.c (glthread_cond_wait_func,
46939         glthread_cond_timedwait_func): Add a comment.
46940
46941 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46942
46943         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46944         * tests/test-select.c: Likewise,
46945
46946 2008-10-13  Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/glthread/cond.c (glthread_cond_wait_func,
46949         glthread_cond_timedwait_func): Fix variable name.
46950         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46951
46952 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46953
46954         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46956         struct sockaddr.sa_len.
46957         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46958
46959 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46960
46961         * build-aux/pmccabe2html: Add css and css_url parameters.
46962
46963 2008-10-12  Bruno Haible  <bruno@clisp.org>
46964
46965         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46966         calling aclx_get.
46967         Reported by Rainer Tammer <tammer@tammer.net>.
46968
46969 2008-10-12  Bruno Haible  <bruno@clisp.org>
46970
46971         Use msvcrt aware primitives for creation/termination of Win32 threads.
46972         * lib/glthread/thread.c: Include <process.h>.
46973         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46974         (wrapper_func): Update signature.
46975         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46976
46977 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46978             Bruno Haible  <bruno@clisp.org>
46979
46980         Provide a Win32 implementation of the 'cond' module.
46981         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46982         * lib/glthread/cond.c (glthread_cond_init_func,
46983         glthread_cond_wait_func, glthread_cond_timedwait_func,
46984         glthread_cond_signal_func, glthread_cond_broadcast_func,
46985         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46986         * modules/cond (Dependencies): Add gettimeofday.
46987
46988 2008-10-11  Bruno Haible  <bruno@clisp.org>
46989
46990         Make sleep work on older versions of mingw.
46991         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46992         only whether it exists.
46993         * doc/posix-functions/sleep.texi: Mention the problem with older
46994         versions of mingw.
46995
46996 2008-10-11  Bruno Haible  <bruno@clisp.org>
46997
46998         New module 'shutdown'.
46999         * modules/shutdown: New file.
47000         * lib/sys_socket.in.h (shutdown): New declaration.
47001         * lib/winsock.c (shutdown): New function.
47002         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47003         GNULIB_SHUTDOWN.
47004         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47005         * doc/posix-functions/shutdown.texi: Document the new module.
47006
47007 2008-10-11  Jim Meyering  <meyering@redhat.com>
47008
47009         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47010
47011 2008-10-11  Bruno Haible  <bruno@clisp.org>
47012
47013         New module 'fclose'.
47014         * modules/fclose: New file.
47015         * lib/stdio.in.h (fclose): New declaration.
47016         * lib/fclose.c: New file.
47017         * m4/fclose.m4: New file.
47018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47019         REPLACE_FCLOSE.
47020         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47021         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47022         REPLACE_FCLOSE.
47023         * modules/close (Depends-on): fclose.
47024         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47025
47026 2008-10-11  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47029         set errno and don't call _close.
47030
47031 2008-10-10  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47034         ACL, not afterwards. Fixes test failure on Cygwin.
47035
47036 2008-10-09  Ben Pfaff  <blp@gnu.org>
47037
47038         * build-aux/announce-gen: Fix gnulib version related part of usage
47039         message.  Die with a useful error message if no tarballs are
47040         found.
47041
47042 2008-10-10  Jim Meyering  <meyering@redhat.com>
47043
47044         bootstrap: use git's --depth=N option only if it's supported
47045         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47046         recognize the --depth option.  Reported by Pádraig Brady.
47047
47048 2008-10-09  Bruno Haible  <bruno@clisp.org>
47049
47050         New module 'ioctl'.
47051         * modules/ioctl: New file.
47052         * lib/sys_socket.in.h (ioctl): Remove declaration.
47053         * lib/winsock.c: Include <sys/ioctl.h>.
47054         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47055         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47056         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47057         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47058         * doc/posix-functions/ioctl.texi: Mention the new module.
47059
47060 2008-10-09  Bruno Haible  <bruno@clisp.org>
47061
47062         New module 'sys_ioctl'.
47063         * lib/sys_ioctl.in.h: New file.
47064         * m4/sys_ioctl_h.m4: New file.
47065         * modules/sys_ioctl: New file.
47066         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47067
47068 2008-10-09  Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47071         * lib/winsock.c: Include <stdarg.h>.
47072         (rpl_ioctl): Change to second argument 'int' and then varargs.
47073
47074 2008-10-09  Bruno Haible  <bruno@clisp.org>
47075
47076         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47077         when the sys_socket module is present and the system has <winsock2.h>.
47078
47079 2008-10-09  Bruno Haible  <bruno@clisp.org>
47080
47081         * doc/posix-functions/close.texi: Mention module 'close' instead of
47082         module 'sys_socket'.
47083
47084 2008-10-09  Bruno Haible  <bruno@clisp.org>
47085
47086         * doc/glibc-headers/sys_ioctl.texi: New file.
47087         * doc/gnulib.texi: Include it.
47088
47089 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47090             Bruno Haible  <bruno@clisp.org>
47091
47092         Combine the two replacements of 'close'.
47093         * lib/sys_socket.in.h (close): Define to a reminder to include
47094         <unistd.h>.
47095         (_gl_close_fd_maybe_socket): New declaration.
47096         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47097         * lib/winsock.c (close): Remove undefinition.
47098         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47099         needed for the gnulib module 'close'.
47100         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47101         define to an error symbol or to a warning, if suitable.
47102         * lib/close.c: Include <sys/socket.h>.
47103         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47104         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47105         UNISTD_H_HAVE_WINSOCK2_H.
47106         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47108         UNISTD_H_HAVE_WINSOCK2_H.
47109         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47110         (configure.ac): Set a module indicator.
47111         (Makefile.am): Substitute GNULIB_CLOSE.
47112         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47113         * modules/poll-tests (Depends-on): Add close.
47114         * modules/select-tests (Depends-on): Likewise.
47115
47116 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47117             Bruno Haible  <bruno@clisp.org>
47118
47119         New module 'close'.
47120         * modules/close: New file.
47121         * lib/unistd.in.h (close): Move declaration out of the
47122         FCHDIR_REPLACEMENT scope.
47123         (_gl_unregister_fd): New declaration.
47124         * lib/close.c: New file.
47125         * lib/fchdir.c (rpl_close): Remove function.
47126         * m4/close.m4: New file.
47127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47128         close.
47129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47130         REPLACE_CLOSE.
47131         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47132         REPLACE_CLOSE.
47133         * modules/fchdir (Depends-on): Add close.
47134
47135 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47136             Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/fcntl.in.h (open): Simplify conditionals.
47139         (_gl_register_fd): New declaration.
47140         * lib/fchdir.c (rpl_open): Remove function.
47141         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47142         also.
47143         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47145         open.
47146
47147 2008-10-09  Jim Meyering  <meyering@redhat.com>
47148
47149         GNUmakefile: use the more name-space-friendly "_version"
47150         * top/GNUmakefile (_dummy): Update.
47151         (_version): Rename from "version".
47152
47153 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47154             Bruno Haible  <bruno@clisp.org>
47155
47156         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47157         rpl_close.
47158         (_gl_register_fd): New function, extracted from rpl_open.
47159         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47160         (rpl_open, rpl_opendir): Use _gl_register_fd.
47161
47162 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47163
47164         Fix organization of 'open' replacement.
47165         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47166         (gl_FUNC_OPEN): Use it.
47167         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47168
47169 2008-10-08  Bruno Haible  <bruno@clisp.org>
47170
47171         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47172
47173 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47174
47175         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47176         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47177         listen).
47178
47179 2008-10-08  Eric Blake  <ebb9@byu.net>
47180
47181         GNUmakefile: add 'make version' target
47182         * top/GNUmakefile (_curr-ver): Split version update rules...
47183         (version): ...into a target.
47184
47185 2008-10-07  Bruno Haible  <bruno@clisp.org>
47186
47187         Use a more portable replacement expression for -0.0L.
47188         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47189         instead of -0.0L. Fix m4 quotation.
47190
47191         * tests/test-signbit.c: Include <float.h>.
47192         (minus_zero): New variable.
47193         (test_signbitl): Use minus_zero instead of -zero.
47194         * modules/signbit-tests (Depends-on): Add float.
47195
47196         * tests/test-ceill.c: Include <float.h>.
47197         (zero): Remove variable.
47198         (minus_zero): New variable.
47199         (main): Use minus_zero instead of -zero.
47200         * modules/ceill-tests (Depends-on): Add float.
47201
47202         * tests/test-floorl.c: Include <float.h>.
47203         (zero): Remove variable.
47204         (minus_zero): New variable.
47205         (main): Use minus_zero instead of -zero.
47206         * modules/floorl-tests (Depends-on): Add float.
47207
47208         * tests/test-roundl.c: Include <float.h>.
47209         (zero): Remove variable.
47210         (minus_zero): New variable.
47211         (main): Use minus_zero instead of -zero.
47212         * modules/roundl-tests (Depends-on): Add float.
47213
47214         * tests/test-truncl.c: Include <float.h>.
47215         (zero): Remove variable.
47216         (minus_zero): New variable.
47217         (main): Use minus_zero instead of -zero.
47218         * modules/truncl-tests (Depends-on): Add float.
47219
47220         * tests/test-frexpl.c (zero): Remove variable.
47221         (minus_zero): New variable.
47222         (main): Use minus_zero instead of -zero.
47223         * modules/frexpl-tests (Depends-on): Add float.
47224
47225         * tests/test-isnan.c (zerol): Remove variable.
47226         (minus_zerol): New variable.
47227         (test_long_double): Use minus_zerol instead of -zerol.
47228         * modules/isnan-tests (Depends-on): Add float.
47229
47230         * tests/test-isnanl.h (zero): Remove variable.
47231         (minus_zero): New variable.
47232         (main): Use minus_zero instead of -zero.
47233         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47234         * modules/isnanl-tests (Depends-on): Add float.
47235
47236         * tests/test-ldexpl.c (zero): Remove variable.
47237         (minus_zero): New variable.
47238         (main): Use minus_zero instead of -zero.
47239         * modules/ldexpl-tests (Depends-on): Add float.
47240
47241         * tests/test-snprintf-posix.h (zerol): Remove variable.
47242         (minus_zerol): New variable.
47243         (test_function): Use minus_zerol instead of -zerol.
47244         * modules/snprintf-posix-tests (Depends-on): Add float.
47245         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47246
47247         * tests/test-sprintf-posix.h (zerol): Remove variable.
47248         (minus_zerol): New variable.
47249         (test_function): Use minus_zerol instead of -zerol.
47250         * modules/sprintf-posix-tests (Depends-on): Add float.
47251         * modules/vsprintf-posix-tests (Depends-on): Add float.
47252
47253         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47254         (minus_zerol): New variable.
47255         (test_function): Use minus_zerol instead of -zerol.
47256         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47257
47258         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47259         (minus_zerol): New variable.
47260         (test_function): Use minus_zerol instead of -zerol.
47261         * modules/vasprintf-posix-tests (Depends-on): Add float.
47262
47263 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47264
47265         * MODULES.html.sh (Support for building documentation): Mention
47266         pmccabe2html.  Sort entries.
47267
47268         Add pmccabe2html module, from gnupdf.
47269         * build-aux/pmccabe.css: New file.
47270         * build-aux/pmccabe2html: New file.
47271         * m4/pmccabe2html.m4: New file.
47272         * modules/pmccabe2html: New file.
47273
47274 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47275
47276         flock: new module
47277         * MODULES.html.sh: Add to list of modules.
47278         * lib/flock.c: flock implementation for Windows and Unix systems
47279         which have fcntl.
47280         * doc/glibc-functions/flock.texi: Update documentation.
47281         * lib/sys_file.in.h: <sys/file.h> header file.
47282         * m4/flock.m4: M4 macros.
47283         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47284         * modules/flock: flock module.
47285         * modules/flock-tests: flock tests module.
47286         * modules/sys_file: sys/file.h module.
47287         * tests/test-flock.c: test suite for flock.
47288
47289 2008-10-06  Jim Meyering  <meyering@redhat.com>
47290
47291         bootstrap: check for LT_INIT more portably still ;-)
47292         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47293         Spotted by Bruno Haible.
47294
47295 2008-10-06  Eric Blake  <ebb9@byu.net>
47296
47297         test-signbit: avoid tripping Irix cc bug on -0.0L
47298         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47299         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47300         entire testsuite consistent and avoids an Irix 6.2 bug.
47301
47302 2008-10-05  Bruno Haible  <bruno@clisp.org>
47303             Jim Meyering  <jim@meyering.net>
47304
47305         Add an option for ignoring EPIPE during close_stdout.
47306         * lib/closeout.h: Include <stdbool.h>.
47307         (close_stdout_set_ignore_EPIPE): New declaration.
47308         * lib/closeout.c: Include <stdbool.h>.
47309         (ignore_EPIPE): New variable.
47310         (close_stdout_set_ignore_EPIPE): New function.
47311         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47312         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47313         failure.
47314         * modules/closeout (Depends-on): Add stdbool.
47315
47316 2008-10-05  Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/accept: New file.
47319         * modules/bind: New file.
47320         * modules/connect: New file.
47321         * modules/getpeername: New file.
47322         * modules/getsockname: New file.
47323         * modules/getsockopt: New file.
47324         * modules/listen: New file.
47325         * modules/recv: New file.
47326         * modules/recvfrom: New file.
47327         * modules/send: New file.
47328         * modules/sendto: New file.
47329         * modules/setsockopt: New file.
47330         * modules/socket: New file.
47331         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47332         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47333         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47334         the particular module is requested. Add a link warning when the
47335         particular module is not requested.
47336         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47337         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47338         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47339         the particular module is requested.
47340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47341         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47342         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47343         * modules/sys_socket (Depends-on): Add link-warning.
47344         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47345         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47346         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47347         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47348         GL_LINK_WARNING.
47349         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47350         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47351         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47352         * doc/posix-functions/getpeername.texi: Mention the new module
47353         'getpeername'.
47354         * doc/posix-functions/getsockname.texi: Mention the new module
47355         'getsockname'.
47356         * doc/posix-functions/getsockopt.texi: Mention the new module
47357         'getsockopt'.
47358         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47359         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47360         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47361         * doc/posix-functions/send.texi: Mention the new module 'send'.
47362         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47363         * doc/posix-functions/setsockopt.texi: Mention the new module
47364         'setsockopt'.
47365         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47366         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47367         listen, connect, accept.
47368         * modules/select-tests (Depends-on): Likewise.
47369
47370 2008-10-05  Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/winsock.c (strerror): Remove unused #undef.
47373         (rpl_close): Remove unused local variable.
47374
47375         * modules/sys_socket (Depends-on); Add errno.
47376
47377 2008-10-05  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47380         (select): Add a link warning when the 'select' module is not used.
47381         * modules/sys_select (Depends-on): Add link-warning.
47382         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47383         Suggested by Paolo Bonzini.
47384
47385 2008-10-05  Jim Meyering  <meyering@redhat.com>
47386
47387         bootstrap: check for LT_INIT more portably
47388         * build-aux/bootstrap: Avoid using grep -E, since it's not
47389         portable enough.  Suggestion from Bruno Haible.
47390
47391 2008-10-05  Bruno Haible  <bruno@clisp.org>
47392
47393         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47394         as being fixed by gnulib.
47395
47396 2008-10-05  Bruno Haible  <bruno@clisp.org>
47397
47398         * modules/select-tests: New file, mostly copied from
47399         modules/sys_select-tests.
47400         * tests/test-select.c: New file, mostly copied from
47401         tests/test-sys_select.c.
47402         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47403         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47404         (Makefile.am): Remove test_sys_select_LDADD.
47405
47406         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47407         to an undefined symbol, for an error message.
47408         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47409         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47410         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47411         winsock-select.c here.
47412         * modules/sys_select (Files): Remove lib/winsock-select.c.
47413         (Depends-on): Remove alloca.
47414         (Makefile.am): Substitute GNULIB_SELECT.
47415         * modules/select: New file.
47416         * doc/posix-functions/select.texi: Update.
47417
47418 2008-10-05  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47421         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47422         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47423         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47424         getdtablesize.
47425         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47426         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47427
47428 2008-10-05  Bruno Haible  <bruno@clisp.org>
47429
47430         * modules/getdtablesize-tests: New file.
47431         * tests/test-getdtablesize.c: New file.
47432
47433         New module 'getdtablesize'.
47434         * lib/unistd.in.h (getdtablesize): New declaration.
47435         * lib/getdtablesize.c: New file.
47436         * m4/getdtablesize.m4: New file.
47437         * modules/getdtablesize: New file.
47438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47439         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47440         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47441         HAVE_GETDTABLESIZE.
47442         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47443
47444 2008-10-05  Bruno Haible  <bruno@clisp.org>
47445
47446         * modules/sched (Makefile.am): Fix typo.
47447         Reported by Simon Josefsson.
47448
47449 2008-10-05  Jim Meyering  <meyering@redhat.com>
47450
47451         bootstrap: check for LT_INIT, too
47452         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47453         are deprecated.  Suggestion from Ralf Wildenhues.
47454
47455 2008-10-05  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47458         overriding them by ours.
47459         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47460
47461 2008-10-05  Jim Meyering  <meyering@redhat.com>
47462
47463         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47464         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47465         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47466
47467 2008-10-04  Bruno Haible  <bruno@clisp.org>
47468
47469         * modules/dup2 (License): Change to LGPLv2+.
47470         * modules/sleep (License): Likewise.
47471         * modules/perror (License): Likewise.
47472         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47473         Blake.
47474         * modules/signal (License): Likewise.
47475         * modules/sigprocmask (License): Likewise.
47476         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47477         Meyering.
47478
47479 2008-10-04  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47482         Reported by Rainer Tammer <tammer@tammer.net>.
47483
47484 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47485             Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47488         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47489         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47490
47491 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47492
47493         filevercmp: new module
47494         * lib/filevercmp.h: New function filevercmp comparing version strings.
47495         * lib/filevercmp.c: Implementation of filevercmp function.
47496         * modules/filevercmp: Module metadata.
47497         * tests/test-filevercmp.c: Unit test for new module.
47498         * modules/filevercmp-tests: Unit test metadata.
47499         * MODULES.html.sh: Add filevercmp module.
47500
47501 2008-10-03  Bruno Haible  <bruno@clisp.org>
47502
47503         * lib/c-ctype.h: Add comment.
47504         Reported by Jim Meyering.
47505
47506 2008-10-02  Bruno Haible  <bruno@clisp.org>
47507
47508         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47509
47510 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47511
47512         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47513         name of bootstrap.conf accordingly.
47514
47515 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47516
47517         * build-aux/bootstrap: Install git-merge-changelog configuration
47518         items into .gitconfig if needed.
47519
47520 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47521
47522         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47523         git repository, and initialize/update it accordingly.
47524
47525 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47526
47527         * modules/fsync-tests: New file.
47528         * tests/test-fsync.c: New file.
47529
47530         New module 'fsync'.
47531         * lib/fsync.c: New file.
47532         * m4/fsync.m4: New file.
47533         * modules/fsync: New file.
47534         * lib/unistd.in.h (fsync): New declaration.
47535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47536         GNULIB_FSYNC and HAVE_FSYNC.
47537         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47538         * MODULES.html.sh (posix_functions): Add fsync.
47539         * doc/posix-functions/fsync.texi: Mention the new module.
47540
47541 2008-10-02  Jim Meyering  <meyering@redhat.com>
47542
47543         fts.c: sync with similar code from coreutils' remove.c
47544         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47545         Guard also with "#if defined __linux__", since for now at least,
47546         this code is Linux-kernel-specific.
47547
47548 2008-10-02  Jim Meyering  <meyering@redhat.com>
47549
47550         fts: bug fixes
47551         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47552         Include <sys/vfs.h>, not <sys/statfs.h>.
47553
47554         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47555         Include <sys/vfs.h>, not <sys/statfs.h>.
47556
47557 2008-10-01  Bruno Haible  <bruno@clisp.org>
47558
47559         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47561         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47562         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47563         * doc/posix-functions/posix_spawnp.texi: Likewise.
47564         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47565         whether posix_spawn actually works.
47566         * m4/pipe.m4 (gl_PIPE): Likewise.
47567         * modules/execute (Files): Add m4/posix_spawn.m4.
47568         * modules/pipe (Files): Add m4/posix_spawn.m4.
47569         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47570
47571 2008-10-01  Jim Meyering  <meyering@redhat.com>
47572
47573         remove trailing spaces
47574         * NEWS: Likewise.
47575         * lib/poll.c (poll): Likewise.
47576         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47577         * lib/winsock.c (rpl_close): Likewise.
47578         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47579         * modules/yield: Likewise.
47580         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47581         * tests/test-sys_select.c (connect_to_socket): Likewise.
47582
47583         fts.c: adjust a new interface to be more generally useful
47584         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47585         (fts_build): Adjust caller.
47586
47587 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47588
47589         * modules/cond-tests: New file.
47590         * tests/test-cond.c: New file.
47591
47592 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47593             Bruno Haible  <bruno@clisp.org>
47594
47595         * modules/cond (Dependencies): Add errno, time.
47596         * lib/glthread/cond.h: Include <time.h>.
47597         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47598         across platforms.
47599
47600 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47601             Bruno Haible  <bruno@clisp.org>
47602
47603         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47604
47605 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47606             Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/tls-tests (Depends-on): Add thread, yield.
47609         (configure.ac): Remove all checks.
47610         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47611         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47612         gl_thread_self): Remove definitions. Include glthread/thread.h and
47613         glthread/yield.h instead.
47614         (test_tls): Pass an additional NULL argument to gl_thread_join.
47615
47616 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47617             Bruno Haible  <bruno@clisp.org>
47618
47619         * modules/lock-tests (Depends-on): Add thread, yield.
47620         (configure.ac): Remove all checks.
47621         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47622         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47623         gl_thread_self): Remove definitions. Include glthread/thread.h and
47624         glthread/yield.h instead.
47625         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47626         additional NULL argument to gl_thread_join.
47627
47628 2008-09-30  Bruno Haible  <bruno@clisp.org>
47629
47630         Fix the Win32 implementation of the 'thread' module.
47631         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47632         pointer type.
47633         (gl_thread_self): Invoke gl_thread_self_func.
47634         (gl_thread_self_func): New declaration.
47635         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47636         (do_init_self_key, init_self_key): New functions.
47637         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47638         Remove some fields.
47639         (running_threads, running_lock): Remove variables.
47640         (get_current_thread_handle): New function.
47641         (gl_thread_self_func, wrapper_func, glthread_create_func,
47642         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47643         simplified.
47644
47645 2008-09-30  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47648         files.
47649
47650 2008-09-30  Jim Meyering  <meyering@redhat.com>
47651
47652         fts.m4: correct the test for statfs.f_type
47653         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47654         when checking for statfs.f_type.
47655
47656 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47657
47658         tests: avoid some compiler warnings
47659         * tests/test-memchr.c (main): Pass NULL indirectly.
47660         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47661
47662 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47663
47664         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47665         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47666         exactly specified dayshifts.
47667         (dayshift): New rule.
47668         (rel): Add dayshift.
47669         (relative_time_table) [tomorrow, yesterday, today, now]:
47670         Use tDAY_SHIFT in place of tDAY_UNIT.
47671         * tests/test-getdate.c: Add tests for now-disallowed countable
47672         dayshifts, e.g., "4 yesterday ago".
47673
47674 2008-09-29  Bruno Haible  <bruno@clisp.org>
47675
47676         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47677         * tests/test-posix_spawn1.in.sh: Renamed from
47678         tests/test-posix_spawn.in.sh.
47679         * tests/test-posix_spawn2.c: New file.
47680         * tests/test-posix_spawn2.in.sh: New file.
47681         * modules/posix_spawnp-tests (Files): Update.
47682         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47683
47684 2008-09-29  Bruno Haible  <bruno@clisp.org>
47685
47686         Propagate effects of putenv/setenv/unsetenv to child processes.
47687         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47688         * lib/pipe.c (create_pipe): Likewise.
47689
47690 2008-09-29  Bruno Haible  <bruno@clisp.org>
47691
47692         Enable use of shell scripts as executables in mingw.
47693         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47694         run the program as a shell script.
47695         * lib/pipe.c (create_pipe): Likewise.
47696         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47697         resulting array.
47698
47699 2008-09-29  Eric Blake  <ebb9@byu.net>
47700
47701         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47702
47703 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47704
47705         * doc/posix-functions/accept.texi: Update mingw problems.
47706         * doc/posix-functions/bind.texi: Update mingw problems.
47707         * doc/posix-functions/close.texi: Update mingw problems.
47708         * doc/posix-functions/connect.texi: Update mingw problems.
47709         * doc/posix-functions/getpeername.texi: Update mingw problems.
47710         * doc/posix-functions/getsockname.texi: Update mingw problems.
47711         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47712         * doc/posix-functions/ioctl.texi: Update mingw problems.
47713         * doc/posix-functions/listen.texi: Update mingw problems.
47714         * doc/posix-functions/recv.texi: Update mingw problems.
47715         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47716         * doc/posix-functions/select.texi: Update mingw problems.
47717         * doc/posix-functions/send.texi: Update mingw problems.
47718         * doc/posix-functions/sendto.texi: Update mingw problems.
47719         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47720         * doc/posix-functions/socket.texi: Update mingw problems.
47721
47722 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47723             Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/sys_select.in.h: Include sys/time.h.
47726         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47727         * modules/sys_select: Depend on sys_time.
47728         * tests/test-sys_select.c: Test that sys/select.h defines struct
47729         timeval fully.
47730
47731 2008-09-29  Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47734         * lib/sys_select.in.h: Likewise.
47735
47736 2008-09-29  Bruno Haible  <bruno@clisp.org>
47737
47738         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47739
47740 2008-09-29  Bruno Haible  <bruno@clisp.org>
47741
47742         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47743         Set LIBSOCKET instead of augmenting LIBS.
47744         * modules/sockets (Link): New section.
47745         * modules/sockets-tests (test_sockets_LDADD): New variable.
47746         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47747         * modules/poll-tests (test_poll_LDADD): New variable.
47748         * NEWS: Document the change.
47749
47750 2008-09-29  Bruno Haible  <bruno@clisp.org>
47751
47752         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47753         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47754         ARPA_INET_H directly.
47755         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47756
47757 2008-09-28  Bruno Haible  <bruno@clisp.org>
47758
47759         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47760         from gl_HEADER_SYS_SOCKET.
47761         (gl_HEADER_SYS_SOCKET): Invoke it.
47762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47763
47764 2008-09-28  Bruno Haible  <bruno@clisp.org>
47765
47766         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47767         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47768         Needed on OSF/1 4.0.
47769
47770 2008-09-28  Bruno Haible  <bruno@clisp.org>
47771
47772         Override open more carefully.
47773         * lib/open.c (orig_open): New function.
47774         (rpl_open): Use orig_open instead of open.
47775         * lib/fcntl.in.h: Add special invocation convention.
47776         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47777         (gl_FUNC_OPEN): Invoke it.
47778
47779         Override freopen more carefully.
47780         * lib/freopen.c (orig_freopen): New function.
47781         (rpl_freopen): Use orig_freopen instead of freopen.
47782         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47783         (gl_FUNC_FREOPEN): Invoke it.
47784
47785         Override fopen more carefully.
47786         * lib/fopen.c (orig_fopen): New function.
47787         (rpl_fopen): Use orig_fopen instead of fopen.
47788         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47789         (gl_FUNC_FOPEN): Invoke it.
47790         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47791
47792 2008-09-28  Bruno Haible  <bruno@clisp.org>
47793
47794         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47795         SIGPIPE.
47796
47797 2008-09-28  Bruno Haible  <bruno@clisp.org>
47798
47799         * tests/test-sigaction.c (handler, main): Disable the check whether
47800         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47801         glibc systems with LinuxThreads.
47802
47803 2008-09-28  Bruno Haible  <bruno@clisp.org>
47804
47805         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47806
47807         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47808         with AIX xlc.
47809         * lib/fcntl.in.h (open): Likewise.
47810         Reported by Rainer Tammer <tammer@tammer.net>.
47811
47812 2008-09-28  Bruno Haible  <bruno@clisp.org>
47813
47814         * modules/posix_spawnp-tests: New file.
47815         * tests/test-posix_spawn.c: New file.
47816         * tests/test-posix_spawn.in.sh: New file.
47817
47818         New module 'posix_spawnp'.
47819         * modules/posix_spawnp: New file.
47820         * lib/spawnp.c: New file, from GNU libc with modifications.
47821         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47822
47823         New module 'posix_spawn'.
47824         * modules/posix_spawn: New file.
47825         * lib/spawn.c: New file, from GNU libc with modifications.
47826         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47827
47828         New module 'posix_spawnattr_destroy'.
47829         * modules/posix_spawnattr_destroy: New file.
47830         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47831         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47832         module.
47833
47834         New module 'posix_spawnattr_setsigmask'.
47835         * modules/posix_spawnattr_setsigmask: New file.
47836         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47837         modifications.
47838         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47839         new module.
47840
47841         New module 'posix_spawnattr_getsigmask'.
47842         * modules/posix_spawnattr_getsigmask: New file.
47843         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47844         modifications.
47845         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47846         new module.
47847
47848         New module 'posix_spawnattr_setsigdefault'.
47849         * modules/posix_spawnattr_setsigdefault: New file.
47850         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47851         modifications.
47852         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47853         new module.
47854
47855         New module 'posix_spawnattr_getsigdefault'.
47856         * modules/posix_spawnattr_getsigdefault: New file.
47857         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47858         modifications.
47859         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47860         new module.
47861
47862         New module 'posix_spawnattr_setschedpolicy'.
47863         * modules/posix_spawnattr_setschedpolicy: New file.
47864         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47865         modifications.
47866         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47867         new module.
47868
47869         New module 'posix_spawnattr_getschedpolicy'.
47870         * modules/posix_spawnattr_getschedpolicy: New file.
47871         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47872         modifications.
47873         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47874         new module.
47875
47876         New module 'posix_spawnattr_setschedparam'.
47877         * modules/posix_spawnattr_setschedparam: New file.
47878         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47879         modifications.
47880         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47881         new module.
47882
47883         New module 'posix_spawnattr_getschedparam'.
47884         * modules/posix_spawnattr_getschedparam: New file.
47885         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47886         modifications.
47887         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47888         new module.
47889
47890         New module 'posix_spawnattr_setpgroup'.
47891         * modules/posix_spawnattr_setpgroup: New file.
47892         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47893         modifications.
47894         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47895         module.
47896
47897         New module 'posix_spawnattr_getpgroup'.
47898         * modules/posix_spawnattr_getpgroup: New file.
47899         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47900         modifications.
47901         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47902         module.
47903
47904         New module 'posix_spawnattr_setflags'.
47905         * modules/posix_spawnattr_setflags: New file.
47906         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47907         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47908         module.
47909
47910         New module 'posix_spawnattr_getflags'.
47911         * modules/posix_spawnattr_getflags: New file.
47912         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47913         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47914         module.
47915
47916         New module 'posix_spawnattr_init'.
47917         * modules/posix_spawnattr_init: New file.
47918         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47919         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47920         module.
47921
47922         New module 'posix_spawn_file_actions_destroy'.
47923         * modules/posix_spawn_file_actions_destroy: New file.
47924         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47925         modifications.
47926         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47927         the new module.
47928
47929         New module 'posix_spawn_file_actions_addopen'.
47930         * modules/posix_spawn_file_actions_addopen: New file.
47931         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47932         modifications.
47933         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47934         the new module.
47935
47936         New module 'posix_spawn_file_actions_adddup2'.
47937         * modules/posix_spawn_file_actions_adddup2: New file.
47938         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47939         modifications.
47940         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47941         the new module.
47942
47943         New module 'posix_spawn_file_actions_addclose'.
47944         * modules/posix_spawn_file_actions_addclose: New file.
47945         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47946         modifications.
47947         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47948         the new module.
47949
47950         New module 'posix_spawn_file_actions_init'.
47951         * modules/posix_spawn_file_actions_init: New file.
47952         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47953         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47954         new module.
47955
47956         New module 'posix_spawn-internal'.
47957         * modules/posix_spawn-internal: New file.
47958         * lib/spawn_int.h: New file, from GNU libc with modifications.
47959         * lib/spawni.c: New file, from GNU libc with modifications.
47960         * m4/posix_spawn.m4: New file.
47961
47962         New module 'spawn'.
47963         * modules/spawn: New file.
47964         * lib/spawn.in.h: New file, from GNU libc with modifications.
47965         * m4/spawn_h.m4: New file.
47966         * doc/posix-headers/spawn.texi: Mention the new module.
47967
47968 2008-09-28  Bruno Haible  <bruno@clisp.org>
47969
47970         * modules/sched-tests: New file.
47971         * tests/test-sched.c: New file.
47972
47973         New module 'sched'.
47974         * modules/sched: New file.
47975         * lib/sched.in.h: New file.
47976         * m4/sched_h.m4: New file.
47977         * doc/posix-headers/sched.texi: Mention the new module.
47978
47979 2008-09-27  Eric Blake  <ebb9@byu.net>
47980
47981         Fix previous patch, and tweak references to $0.
47982         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47983         (func_version, func_gnulib_dir): Don't call this program
47984         gnulib-tool.
47985         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47986         with using $0 in function.
47987         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47988         (func_fatal_error): Reuse the name the user invoked us with.
47989
47990 2008-09-27  Bruno Haible  <bruno@clisp.org>
47991
47992         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47993         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47994         (gl_ICONV_H): Not here.
47995         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47996         instead of assigning ICONV_H directly.
47997
47998         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48000         WCHAR_H directly.
48001
48002 2008-09-27  Bruno Haible  <bruno@clisp.org>
48003
48004         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48005         * modules/arpa_inet (Depends-on): Add link-warning.
48006         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48007         * modules/unistd (Makefile.am): Likewise.
48008
48009 2008-09-26  Bruno Haible  <bruno@clisp.org>
48010
48011         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48012         variables.
48013         (func_version): Essentially copied from gnulib-tool.
48014         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48015         func_readlink): Copied from gnulib-tool.
48016
48017 2008-09-26  Bruno Haible  <bruno@clisp.org>
48018
48019         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48020         invoking git-version-gen.
48021
48022 2008-09-26  Bruno Haible  <bruno@clisp.org>
48023
48024         * posix-modules: Update to directory names changed on 2008-01-19.
48025         Remove commas in output before splitting into words. No more need to
48026         avoid 'ftruncate' since 2007-02-19.
48027
48028 2008-09-26  Bruno Haible  <bruno@clisp.org>
48029
48030         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48031
48032 2008-09-26  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48035         * modules/fwriteerror (Depends-on): Add errno.
48036
48037 2008-09-26  Bruno Haible  <bruno@clisp.org>
48038
48039         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48040         * tests/test-vc-list-files-cvs.sh: Likewise.
48041
48042 2008-09-26  Bruno Haible  <bruno@clisp.org>
48043
48044         * doc/posix-headers/sys_resource.texi: Reorder items.
48045
48046 2008-09-26  Jim Meyering  <meyering@redhat.com>
48047
48048         fts: tweak inode comparison function
48049         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48050         inode numbers, as documented.
48051
48052         fts: sort dirent entries on inode number before traversing
48053         This avoids a quadratic, seek-related performance penalty when
48054         operating on a directory containing many entries (measurable at 10k;
48055         3.5 hours at 2 million entries with a cold cache) on certain types
48056         of file systems, including ext3 and ext4, but not tmpfs.
48057         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48058         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48059         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48060         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48061         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48062         (fts_build): Set the stat.st_ino member from D_INO.
48063         If it is likely to be useful, sort dirent entries on inode number.
48064
48065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48066         and the struct statfs.f_type member.
48067         * modules/fts (Depends-on): Add d-ino.
48068
48069 2008-09-26  Bruno Haible  <bruno@clisp.org>
48070
48071         * modules/sigpipe-die (Depends-on): Add sigpipe.
48072
48073         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48074         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48075         and GNULIB_STDIO_H_SIGPIPE are set.
48076         * lib/stdio-write.c: New file.
48077         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48078         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48079         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48080         REPLACE_STDIO_WRITE_FUNCS.
48081         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48082         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48083         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48084         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48085         * modules/stdio (Files): Add lib/stdio-write.c.
48086         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48087         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48088         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48089         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48090         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48091         REPLACE_FPRINTF_POSIX.
48092         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48093         REPLACE_PRINTF_POSIX.
48094         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48095         REPLACE_VFPRINTF_POSIX.
48096         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48097         REPLACE_VPRINTF_POSIX.
48098         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48099         SIGPIPE issue.
48100         * doc/posix-functions/fputc.texi: Likewise.
48101         * doc/posix-functions/fputs.texi: Likewise.
48102         * doc/posix-functions/fwrite.texi: Likewise.
48103         * doc/posix-functions/printf.texi: Likewise.
48104         * doc/posix-functions/putc.texi: Likewise.
48105         * doc/posix-functions/putchar.texi: Likewise.
48106         * doc/posix-functions/puts.texi: Likewise.
48107         * doc/posix-functions/vfprintf.texi: Likewise.
48108         * doc/posix-functions/vprintf.texi: Likewise.
48109
48110         * modules/safe-write (Depends-on): Add write.
48111
48112         * modules/sigpipe-tests: New file.
48113         * tests/test-sigpipe.c: New file.
48114         * tests/test-sigpipe.sh: New file.
48115
48116         * modules/write: New file.
48117         * lib/unistd.in.h: Include <sys/types.h>.
48118         (write): New declaration.
48119         * lib/write.c: New file.
48120         * m4/write.m4: New file.
48121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48122         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48123         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48124         GNULIB_WRITE, REPLACE_WRITE.
48125         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48126         and the SIGPIPE issue.
48127
48128         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48129         (raise): New declaration.
48130         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48131         (ext_signal): New function.
48132         (rpl_raise): New function.
48133         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48134         GNULIB_SIGNAL_H_SIGPIPE.
48135         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48136         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48137
48138         * modules/sigpipe: New file.
48139         * m4/sigpipe.m4: New file.
48140
48141 2008-09-25  Derek Price  <derek@ximbiot.com>
48142             Bruno Haible  <bruno@clisp.org>
48143
48144         * gnulib-tool (func_import): Report all license incompatibilities, not
48145         just the first one.
48146
48147 2008-09-25  Bruno Haible  <bruno@clisp.org>
48148
48149         * gnulib-tool (func_import): When computing the edits, consider not
48150         only the Makefile.ams that exist but also those that will be generated.
48151
48152 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48153
48154         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48155         fixes gnulib-tool --test warning about duplicate dependency.
48156
48157 2008-09-25  Bruno Haible  <bruno@clisp.org>
48158
48159         * gnulib-tool: Don't ask the user to perform edits in the generated
48160         Makefile.ams.
48161         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48162         apply to the Makefile.am being generated.
48163         (func_emit_tests_Makefile_am): Execute edits that apply to the
48164         Makefile.am being generated.
48165         (func_import): Setup list of Makefile.am edits before emitting the
48166         Makefile.ams, not at the end.
48167         (func_create_testdir): Update.
48168         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48169
48170 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48171
48172         * gnulib-tool (func_import): Store the --tests-base option in the
48173         comment in gnulib-cache.m4.
48174
48175 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48176
48177         * NEWS: Document increased portability that sys_select now provides.
48178
48179         * lib/sys_select.in.h: Install select wrapper.
48180         * lib/sys_socket.in.h: Use more descriptive name when there is no
48181         select wrapper.
48182         * lib/winsock-select.c: New.
48183         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48184         Require gl_HEADER_SYS_SOCKET.
48185         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48186         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48187         * tests/test-sys_select.c: Add functional tests.
48188
48189 2008-09-24  Eric Blake  <ebb9@byu.net>
48190
48191         open, fopen: close fd leak in last patch
48192         * lib/open.c (rpl_open): Close fd before returning error.
48193         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48194         * doc/posix-functions/open.texi (open): Document that Irix also
48195         has the bug.
48196         * doc/posix-functions/fopen.texi (fopen): Likewise.
48197         Reported by Paolo Bonzini.
48198
48199 2008-09-24  Bruno Haible  <bruno@clisp.org>
48200
48201         Ensure that a filename ending in a slash cannot be used to access a
48202         non-directory.
48203         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48204         to check whether it's really a directory.
48205         * lib/fopen.c: Include fcntl.h, unistd.h.
48206         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48207         and fdopen().
48208         * modules/fopen (Depends-on): Add unistd.
48209         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48210         * tests/test-fopen.c (main): Likewise.
48211         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48212         * doc/posix-functions/fopen.texi: Likewise.
48213         Reported by Eric Blake.
48214
48215 2008-09-23  Eric Blake  <ebb9@byu.net>
48216
48217         c-stack: avoid compiler optimizations when provoking overflow
48218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48219         recursion harder to optimize, to ensure a stack overflow occurs.
48220         * tests/test-c-stack.c (recurse): Likewise.
48221         Borrowed from libsigsegv.
48222
48223         c-stack: work around Irix sigaltstack bug
48224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48225         whether sigaltstack uses wrong end of stack_t (copied in part from
48226         libsigsegv).
48227         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48228         Irix bug, without requiring an over-allocation.
48229         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48230         bug.
48231
48232         fopen: document mingw bug on directories
48233         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48234         not allowing a stream visiting a directory, even though reading
48235         from such a stream is not portable.
48236
48237 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48238
48239         * lib/poll.c: Rewrite.
48240         * modules/poll: Depend on alloca.
48241
48242 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48243
48244         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48245         instead define prototypes for a full set of wrappers.  Ensure
48246         that Cygwin does not use the compatibility code, which is only
48247         for MinGW.
48248         * lib/winsock.c: New.
48249         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48250         * modules/sys_socket: Add lib/winsock.c.
48251
48252         * modules/poll-tests: Add errno and perror.
48253         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48254
48255 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48256
48257         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48258
48259 2008-09-23  Bruno Haible  <bruno@clisp.org>
48260
48261         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48262         * doc/glibc-functions/*: Likewise.
48263
48264 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48265
48266         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48267         success.
48268
48269 2008-09-22  Eric Blake  <ebb9@byu.net>
48270             Bruno Haible  <bruno@clisp.org>
48271
48272         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48273         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48274         supply %A but mishandle pseudo-NaN.
48275         Reported by Simon Josefsson.
48276
48277 2008-09-21  Bruno Haible  <bruno@clisp.org>
48278
48279         * tests/test-lock.c (main): Tweak skip message.
48280         * tests/test-tls.c (main): Likewise.
48281
48282 2008-09-21  Bruno Haible  <bruno@clisp.org>
48283
48284         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48285         whether 'struct sigaction' has sa_sigaction here...
48286         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48287         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48288
48289 2008-09-21  Bruno Haible  <bruno@clisp.org>
48290
48291         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48292         section.
48293         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48294         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48295         the new section.
48296         (Support for obsolete systems lacking POSIX:2001): New section.
48297         (String handling <string.h>): Move strdup to the new section.
48298         Suggested by Simon Josefsson and Paolo Bonzini.
48299
48300 2008-09-21  Bruno Haible  <bruno@clisp.org>
48301
48302         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48303         exponents in %e and %g results on 'long double'. Needed for mingw's
48304         improved *printf functions.
48305         * tests/test-vasprintf-posix.c (test_function): Likewise.
48306         * tests/test-snprintf-posix.h (test_function): Likewise.
48307         * tests/test-sprintf-posix.h (test_function): Likewise.
48308         Reported by Eric Blake.
48309
48310 2008-09-21  Bruno Haible  <bruno@clisp.org>
48311
48312         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48313         * tests/test-sprintf-posix.h (test_function): Likewise.
48314
48315 2008-09-21  Bruno Haible  <bruno@clisp.org>
48316
48317         * modules/getpass (Depends-on): Add strdup-posix.
48318
48319         New module 'strdup-posix'.
48320         * modules/strdup-posix: New file.
48321         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48322         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48324         REPLACE_STRDUP.
48325         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48326         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48328         strdup-posix.
48329
48330         * modules/strdup (Depends-on): Remove malloc-posix.
48331
48332 2008-09-20  Bruno Haible  <bruno@clisp.org>
48333
48334         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48335         Wildenhues.
48336
48337 2008-09-20  Bruno Haible  <bruno@clisp.org>
48338
48339         Ensure that wint_t gets defined on IRIX 5.3.
48340         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48341         * lib/wctype.in.h (wint_t): Likewise.
48342         (__wctype_wint_t): Remove type.
48343         (isw*): Use wint_t instead of __wctype_wint_t.
48344         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48345         * modules/wchar (Files): Add m4/wint_t.m4.
48346         (Makefile.am): Substitute HAVE_WINT_T.
48347         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48348         * tests/test-wctype.c: Check that wint_t is defined.
48349         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48350         * doc/posix-headers/wctype.texi: Likewise.
48351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48352
48353 2008-09-18  Bruno Haible  <bruno@clisp.org>
48354
48355         * gnulib-tool (func_exit): Update comment.
48356
48357 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48358
48359         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48360         assumes strdup exists and does not depend on strdup to return
48361         ENOMEM on out of memory conditions.
48362
48363 2008-09-18  Bruno Haible  <bruno@clisp.org>
48364
48365         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48366         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48367         digits for the exponent.
48368
48369 2008-09-18  Jim Meyering  <meyering@redhat.com>
48370             Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/vasnprintf.c (decimal_point_char): Define also if
48373         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48374
48375 2008-09-16  Bruno Haible  <bruno@clisp.org>
48376         and Eric Blake  <ebb9@byu.net>
48377
48378         vasnprintf: support Irix 5.3
48379         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48380         that mishandle long double infinity.
48381         Reported by Tom G. Christensen.
48382
48383 2008-09-16  Bruno Haible  <bruno@clisp.org>
48384
48385         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48386         Solaris 9.
48387         * doc/glibc-functions/alphasort.texi: Likewise.
48388         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48389
48390 2008-09-16  Jim Meyering  <meyering@redhat.com>
48391
48392         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48393         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48394         a umask modification leak out of a subshell.  Otherwise, the
48395         opensolaris /bin/sh would be accepted and thus cause unwarranted
48396         failures in the coreutils test suite.
48397
48398 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48399
48400         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48401         to succeed.
48402
48403 2008-09-16  Jim Meyering  <meyering@redhat.com>
48404
48405         avoid spurious test failure when library is built without ACL support
48406         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48407         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48408         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48409         * tests/test-copy-acl.sh: Likewise.
48410
48411 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48412
48413         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48414         based on character occurrence counts.
48415
48416 2008-09-15  Eric Blake  <ebb9@byu.net>
48417
48418         tests: avoid some compiler warnings
48419         * tests/test-memchr.c (main): Pass NULL indirectly.
48420         * tests/test-closein.c (main): Avoid unused variable.
48421
48422 2008-09-15  Bruno Haible  <bruno@clisp.org>
48423
48424         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48425         are missing on OpenBSD 4.0 individually.
48426         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48427
48428 2008-09-15  Bruno Haible  <bruno@clisp.org>
48429
48430         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48431         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48432         * doc/posix-functions/perror.texi: Likewise.
48433         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48434         is missing.
48435         Reported by Eric Blake.
48436
48437         * lib/errno.in.h: Use replacement values >= 2000.
48438         Reported by Eric Blake.
48439
48440 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48441
48442         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48443         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48444         limit.
48445         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48446         compareseq was aborted.
48447
48448 2008-09-14  Bruno Haible  <bruno@clisp.org>
48449
48450         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48451         yvec_edit_count.
48452         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48453         (fstrcmp_bounded): Simplify result computation accordingly.
48454
48455 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48456
48457         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48458         (fstrcmp): Define in terms of fstrcmp_bounded.
48459         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48460         lower_bound argument.
48461         Return quickly if the result is certainly < lower_bound.
48462         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48463
48464 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48465
48466         * lib/diffseq.h (EARLY_ABORT): New macro.
48467         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48468         evaluates to true.
48469
48470 2008-09-14  Bruno Haible  <bruno@clisp.org>
48471
48472         * modules/perror-tests: New file.
48473         * tests/test-perror.sh: New file.
48474         * tests/test-perror.c: New file.
48475
48476         New module 'perror'.
48477         * lib/stdio.in.h (perror): New declaration.
48478         * lib/perror.c: New file.
48479         * m4/perror.m4: New file.
48480         * modules/perror: New file.
48481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48482         * doc/posix-functions/perror.texi: Mention the perror module.
48483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48484         REPLACE_PERROR.
48485         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48486         REPLACE_PERROR.
48487
48488 2008-09-14  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/stdio (Makefile.am): Reorder to match the order in
48491         lib/stdio.in.h.
48492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48493
48494 2008-09-13  Bruno Haible  <bruno@clisp.org>
48495
48496         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48497
48498 2008-09-13  Bruno Haible  <bruno@clisp.org>
48499
48500         Extend strerror to cover the added errno values.
48501         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48502         (rpl_strerror): Provide error messages for the added errno values and
48503         for the WSA* values.
48504         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48505         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48506         strerror.
48507         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48508         * modules/strerror (Depends-on): Add errno.
48509         * doc/posix-functions/strerror.texi: Document the change.
48510         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48511         and EOVERFLOW.
48512
48513 2008-09-13  Bruno Haible  <bruno@clisp.org>
48514
48515         * modules/EOVERFLOW: Remove file.
48516         * m4/eoverflow.m4: Remove file.
48517         * modules/EOVERFLOW-tests: Remove file.
48518         * tests/test-EOVERFLOW.c: Remove file.
48519         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48520         * modules/ftell (Depends-on): Likewise.
48521         * modules/getdelim (Depends-on): Likewise.
48522         * modules/getugroups (Depends-on): Likewise.
48523         * modules/poll (Depends-on): Likewise.
48524         * modules/snprintf (Depends-on): Likewise.
48525         * modules/sprintf-posix (Depends-on): Likewise.
48526         * modules/vasnprintf (Depends-on): Likewise.
48527         * modules/vasprintf (Depends-on): Likewise.
48528         * modules/vfprintf-posix (Depends-on): Likewise.
48529         * modules/vsnprintf (Depends-on): Likewise.
48530         * modules/vsprintf-posix (Depends-on): Likewise.
48531         * modules/xvasprintf (Depends-on): Likewise.
48532         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48533         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48534         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48535         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48536         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48537         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48538         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48539         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48540         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48541         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48542         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48543         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48544         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48545         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48546         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48547         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48548         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48549         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48550         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48551         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48552         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48553         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48554         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48555         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48556         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48557         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48558         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48559         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48560         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48561         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48562         * MODULES.html.sh: Remove EOVERFLOW.
48563         * NEWS: Mention the change.
48564
48565 2008-09-13  Bruno Haible  <bruno@clisp.org>
48566
48567         * modules/errno-tests: New file.
48568         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48569
48570         * lib/errno.in.h: New file.
48571         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48572         * modules/errno: New file.
48573         * doc/posix-headers/errno.texi: Update documentation.
48574         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48575
48576 2008-09-13  Bruno Haible  <bruno@clisp.org>
48577
48578         * tests/test-poll.c: Use #if for native Windows, rather than testing
48579         __MSVCRT__.
48580
48581 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48582             Bruno Haible  <bruno@clisp.org>
48583
48584         * lib/glob.c: Don't include <pwd.h> on native Windows.
48585         (WINDOWS32): New macro.
48586         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48587
48588 2008-09-13  Bruno Haible  <bruno@clisp.org>
48589
48590         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48591         (ETIMEDOUT): Remove macro.
48592         (glthread_cond_timedwait_multithreaded): New declaration.
48593         (glthread_cond_timedwait): Use it.
48594         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48595         (glthread_cond_timedwait_multithreaded): New function.
48596
48597 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48598
48599         * modules/poll-tests: Do not check for io.h.
48600         * tests/test-poll.c: Check for __MSVCRT__ instead.
48601
48602 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48603
48604         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48605         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48606         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48607
48608 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48609
48610         * modules/poll-tests: New.
48611         * tests/test-poll.c: New.
48612
48613 2008-09-12  Eric Blake  <ebb9@byu.net>
48614
48615         frexp: test for NetBSD failure on -0.0
48616         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48617         not all, bugs from NetBSD 3.0 have been fixed.
48618         * doc/posix-functions/frexp.texi (frexp): Document bug.
48619         Reported by Thomas Klausner.
48620
48621         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48622         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48623         literal -0.0.
48624         Reported by Jonathan C. Patschke <jp@centtech.com>.
48625
48626 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48627
48628         * lib/glthread/cond.h: Use dummy implementation also if
48629         USE_WIN32_THREADS.
48630
48631 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48632
48633         * modules/fnmatch-posix (License): Change to LGPLv2+.
48634         * modules/fnmatch-gnu (License): Likewise.
48635
48636 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48637
48638         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48639
48640 2008-09-11  Jim Meyering  <meyering@redhat.com>
48641
48642         * users.txt: Add gtk-vnc.
48643
48644 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48645
48646         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48647         rotate amounts.
48648
48649         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48650         required for 16-bit and 8-bit rotates.
48651         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48652         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48653         UINT8_MAX instead of hard-coded constants.
48654         Suggested by Paul Eggert.
48655
48656 2008-09-07  Bruno Haible  <bruno@clisp.org>
48657
48658         * tests/test-striconveh.c (main): Check behaviour when converting from
48659         UTF-7.
48660
48661         Make striconveh work better with stateful encodings.
48662         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48663         that iconv does not increment the inptr when returning -1/EINVAL.
48664
48665 2008-09-07  Bruno Haible  <bruno@clisp.org>
48666
48667         * build-aux/config.rpath: Update according to libtool-2.2.6.
48668         * build-aux/config.libpath: Likewise.
48669
48670 2008-09-06  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48673         * lib/freadptr.c (freadptr): Likewise.
48674         * lib/freadseek.c (freadptrinc): Likewise.
48675         Reported by Simon Josefsson.
48676
48677 2008-09-06  Bruno Haible  <bruno@clisp.org>
48678
48679         * modules/freadptr (License): Change to LGPLv2+.
48680         * modules/freadseek (License): Likewise.
48681         Suggested by Eric Blake.
48682
48683         * modules/memchr2 (License): Change to LGPLv2+.
48684         Approved by Eric Blake.
48685
48686 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48687             Bruno Haible  <bruno@clisp.org>
48688
48689         Make gnulib-tool work with native 'sed' on AIX.
48690         * gnulib-tool (sed_noop): New variable.
48691         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48692         func_add_or_update, func_create_testdir): Use it to initialize sed
48693         script variables.
48694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48695
48696 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48697             Bruno Haible  <bruno@clisp.org>
48698
48699         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48700         also works after #include directives.
48701
48702 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48703
48704         getdate.y: reject an out-of-range timezone value
48705         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48706         the range [-24...+24].  When specified with only one or two digits,
48707         * tests/test-getdate.c: Tests for the fix.
48708         * doc/getdate.texi: Document this change.
48709
48710 2008-09-03  Bruno Haible  <bruno@clisp.org>
48711
48712         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48713
48714 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48715
48716         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48717         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48718         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48719         Blake <ebb9@byu.net>.
48720
48721         * tests/test-bitrotate.c: Add more test vectors.
48722
48723 2008-09-02  Eric Blake  <ebb9@byu.net>
48724
48725         vasnprintf-posix: handle large precision via %.*d
48726         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48727         when handling it ourselves.
48728         * tests/test-vasnprintf-posix.c (test_function): Add test.
48729         * tests/test-snprintf-posix.h (test_function): Likewise.
48730         * tests/test-sprintf-posix.h (test_function): Likewise.
48731         * tests/test-vasprintf-posix.c (test_function): Likewise.
48732         Reported by Alain Guibert.
48733
48734 2008-09-01  Eric Blake  <ebb9@byu.net>
48735
48736         c-stack: make configure-time check more robust
48737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48738         successful sigaction call.
48739         Reported by Tom G. Christensen.
48740
48741 2008-09-01  Bruno Haible  <bruno@clisp.org>
48742
48743         New module 'findprog-lgpl'.
48744         * modules/findprog-lgpl: New file.
48745         * lib/findprog-lgpl.c: New file.
48746         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48747         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48748         to decide whether to use strdup or xstrdup, concatenated_filename or
48749         xconcatenated_filename.
48750
48751 2008-09-01  Bruno Haible  <bruno@clisp.org>
48752
48753         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48754         'xconcat-filename' (GPL).
48755         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48756         (License): Change to LGPLv2+.
48757         * modules/xconcat-filename: New file.
48758         * lib/concat-filename.h (concatenated_filename): Change specification.
48759         (xconcatenated_filename): New declaration.
48760         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48761         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48762         memory situations.
48763         * lib/xconcat-filename.c: New file.
48764         * NEWS: Mention the change.
48765         * lib/findprog.c: Include concat-filename.h, not filename.h.
48766         (find_in_path): Use xconcatenated_filename instead of
48767         concatenated_filename.
48768         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48769         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48770         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48771         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48772         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48773         instead of concatenated_filename.
48774         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48775         (execute_java_class): Use xconcatenated_filename instead of
48776         concatenated_filename.
48777         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48778         * modules/javacomp (Depends-on): Likewise.
48779         * modules/javaexec (Depends-on): Likewise.
48780
48781 2008-09-01  Bruno Haible  <bruno@clisp.org>
48782
48783         Split module 'filename' into 'filename' and 'concat-filename'.
48784         * modules/filename: Keep only lib/filename.h.
48785         (License): Change to LGPLv2+.
48786         * modules/concat-filename: New file, extracted from modules/filename.
48787         * lib/filename.h (concatenated_filename): Remove declaration.
48788         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48789         * lib/concat-filename.c: Include concat-filename.h.
48790         * NEWS: Mention the change.
48791
48792 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48793
48794         * lib/bitrotate.h (rotl8, rotr8): Add.
48795
48796         * modules/bitrotate (configure.ac): Need
48797         AC_REQUIRE([AC_C_INLINE]).
48798         (Description): Mention stdint.h.  Reported by Bruno Haible
48799         <bruno@clisp.org>.
48800
48801         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48802         Paolo Bonzini <bonzini@gnu.org>.
48803
48804 2008-08-31  Bruno Haible  <bruno@clisp.org>
48805
48806         Assume Solaris specific bi-arch conventions on Solaris systems.
48807         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48808         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48809         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48810         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48811         like acl_libdirstem.
48812         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48813         acl_libdirstem.
48814         * NEWS: Mention the change.
48815         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48816
48817 2008-08-31  Jim Meyering  <meyering@redhat.com>
48818
48819         * lib/strftime.h: Add comments describing the two added arguments.
48820
48821         remove duplicate #include directives
48822         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48823         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48824
48825 2008-08-31  Bruno Haible  <bruno@clisp.org>
48826
48827         New module 'sigpipe-die'.
48828         * modules/sigpipe-die: New file.
48829         * lib/sigpipe-die.h: New file.
48830         * lib/sigpipe-die.c: New file.
48831         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48832
48833 2008-08-31  Bruno Haible  <bruno@clisp.org>
48834
48835         Don't override previously installed signal handlers.
48836         * lib/fatal-signal.c (saved_sigactions): New variable.
48837         (uninstall_handlers): Reset the signal to the saved handler, not
48838         to SIG_DFL (except when ignored).
48839         (install_handlers): Save the previous handlers.
48840
48841 2008-08-30  Bruno Haible  <bruno@clisp.org>
48842
48843         * gnulib-tool (func_reset_sigpipe): New function.
48844         (func_get_automake_snippet, func_modules_transitive_closure,
48845         func_import): Invoke it before a join command that reads from stdin,
48846         to avoid "echo: write error: Broken pipe" error messages on stderr.
48847         Reported by Sam Steingold <sds@gnu.org>.
48848
48849 2008-08-30  Bruno Haible  <bruno@clisp.org>
48850
48851         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48852         Code copied from m4/open.m4.
48853         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48854         access and the filename ends in a slash. Code copied from lib/open.c.
48855         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48856         * tests/test-fopen.c (main): Check against bug with trailing slash.
48857
48858 2008-08-29  Bruno Haible  <bruno@clisp.org>
48859
48860         Avoid some "gcc -pedantic" warnings.
48861         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48862         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48863         * lib/dirent.in.h: Likewise.
48864         * lib/fcntl.in.h: Likewise.
48865         * lib/float.in.h: Likewise.
48866         * lib/iconv.in.h: Likewise.
48867         * lib/inttypes.in.h: Likewise.
48868         * lib/locale.in.h: Likewise.
48869         * lib/math.in.h: Likewise.
48870         * lib/netinet_in.in.h: Likewise.
48871         * lib/search.in.h: Likewise.
48872         * lib/signal.in.h: Likewise.
48873         * lib/stdarg.in.h: Likewise.
48874         * lib/stdint.in.h: Likewise.
48875         * lib/stdio.in.h: Likewise.
48876         * lib/stdlib.in.h: Likewise.
48877         * lib/string.in.h: Likewise.
48878         * lib/strings.in.h: Likewise.
48879         * lib/sys_select.in.h: Likewise.
48880         * lib/sys_socket.in.h: Likewise.
48881         * lib/sys_stat.in.h: Likewise.
48882         * lib/sys_time.in.h: Likewise.
48883         * lib/sysexits.in.h: Likewise.
48884         * lib/time.in.h: Likewise.
48885         * lib/unistd.in.h: Likewise.
48886         * lib/wchar.in.h: Likewise.
48887         * lib/wctype.in.h: Likewise.
48888         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48889         * modules/fchdir (Makefile.am): Likewise.
48890         * modules/fcntl (Makefile.am): Likewise.
48891         * modules/float (Makefile.am): Likewise.
48892         * modules/iconv_open (Makefile.am): Likewise.
48893         * modules/inttypes (Makefile.am): Likewise.
48894         * modules/locale (Makefile.am): Likewise.
48895         * modules/math (Makefile.am): Likewise.
48896         * modules/netinet_in (Makefile.am): Likewise.
48897         * modules/search (Makefile.am): Likewise.
48898         * modules/signal (Makefile.am): Likewise.
48899         * modules/stdarg (Makefile.am): Likewise.
48900         * modules/stdint (Makefile.am): Likewise.
48901         * modules/stdio (Makefile.am): Likewise.
48902         * modules/stdlib (Makefile.am): Likewise.
48903         * modules/string (Makefile.am): Likewise.
48904         * modules/strings (Makefile.am): Likewise.
48905         * modules/sys_select (Makefile.am): Likewise.
48906         * modules/sys_socket (Makefile.am): Likewise.
48907         * modules/sys_stat (Makefile.am): Likewise.
48908         * modules/sys_time (Makefile.am): Likewise.
48909         * modules/sysexits (Makefile.am): Likewise.
48910         * modules/time (Makefile.am): Likewise.
48911         * modules/unistd (Makefile.am): Likewise.
48912         * modules/wchar (Makefile.am): Likewise.
48913         * modules/wctype (Makefile.am): Likewise.
48914         Reported by Reuben Thomas <rrt@sc3d.org>.
48915
48916 2008-08-29  Bruno Haible  <bruno@clisp.org>
48917
48918         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48919         any more.
48920
48921 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48922
48923         * MODULES.html.sh (Misc): Add bitrotate.
48924
48925         * modules/bitrotate: New file.
48926
48927         * lib/bitrotate.h: New file.
48928
48929         * modules/bitrotate-tests: New file.
48930
48931         * tests/test-bitrotate.c: New file.
48932
48933         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48934         on the bitrotate module.
48935
48936         * lib/arctwo.c: Use new bitrotate module.
48937
48938 2008-08-29  Jim Meyering  <meyering@redhat.com>
48939
48940         bootstrap: merge changes from coreutils
48941         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48942         of copied files.  Remove a kludge, now that this is fixed.
48943         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48944         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48945         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48946
48947 2008-08-29  Bruno Haible  <bruno@clisp.org>
48948
48949         * MODULES.html.sh: Remove --cvs-urls option.
48950
48951 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48952
48953         maint.mk: adjust to file name change
48954         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48955
48956 2008-08-28  Jim Meyering  <meyering@redhat.com>
48957
48958         * modules/getndelim2 (License): Relicense to LGPLv2+.
48959         Approved by Richard Stallman for the version of 1995, and by
48960         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48961
48962 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48963
48964         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48965         dummy if one is not available.  Do not touch them if
48966         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48967         (getc_maybe_unlocked): New.
48968         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48969
48970 2008-08-26  Eric Blake  <ebb9@byu.net>
48971
48972         doc/INSTALL: resync from autoconf
48973         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48974         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48975         moving...
48976         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48977         * INSTALL: Regenerate.
48978         * INSTALL.ISO: New file.
48979         * INSTALL.UTF-8: Likewise.
48980
48981 2008-08-26  Jim Meyering  <meyering@redhat.com>
48982
48983         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48984         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48985         these definitions conditional, so that they may be overridden, too.
48986
48987 2008-08-26  Bruno Haible  <bruno@clisp.org>
48988
48989         Generate INSTALL file variants with prettier quotes.
48990         * doc/Makefile (INSTALL_PRELUDE): New macro.
48991         (INSTALL): Use it.
48992         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48993
48994 2008-08-26  Bruno Haible  <bruno@clisp.org>
48995
48996         Run makeinfo in an English locale.
48997         * doc/Makefile (MAKEINFO): New variable.
48998
48999 2008-08-26  Bruno Haible  <bruno@clisp.org>
49000
49001         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49002         Suggested by Eric Blake.
49003
49004 2008-08-25  Bruno Haible  <bruno@clisp.org>
49005
49006         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49007
49008 2008-08-25  Eric Blake  <ebb9@byu.net>
49009
49010         c-stack: test that stack overflow can be caught
49011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49012         that platform allows handling stack overflow; at least OS/2 EMX
49013         has sigaltstack, but crashes before transferring control to
49014         handler on stack overflow.
49015         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49016         check for HAVE_STACK_OVERFLOW_HANDLING.
49017         Reported by Elbert Pol.
49018
49019 2008-08-25  Bruno Haible  <bruno@clisp.org>
49020
49021         * doc/posix-functions/strftime.texi: Fix description of strftime
49022         module.
49023
49024 2008-08-24  Bruno Haible  <bruno@clisp.org>
49025
49026         * tests/uniwidth/test-uc_width2.c: New file.
49027         * tests/uniwidth/test-uc_width2.sh: New file.
49028         * modules/uniwidth/width-tests (Files): Add the new files.
49029         (TESTS): Add uniwidth/test-uc_width2.sh.
49030         (TESTS_ENVIRONMENT): New variable.
49031         (check_PROGRAMS): Add test-uc_width2.
49032         (test_uc_width2_SOURCES): New variable.
49033
49034         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49035         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49036         not 0x00AB.
49037         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49038
49039 2008-08-22  Eric Blake  <ebb9@byu.net>
49040
49041         test-lock, test-tls: mention why a test is skipped
49042         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49043         skipped.
49044         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49045
49046         count-one-bits: relax license
49047         * modules/count-one-bits (License): Relicense to LGPLv2+.
49048         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49049
49050 2008-08-22  Andreas Schwab  <schwab@suse.de>
49051
49052         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49053         Remove spurious space in assignment.
49054
49055 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49056
49057         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49058         Paul Eggert <eggert@CS.UCLA.EDU>.
49059
49060 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49061
49062         * modules/gettext: Add m4/threadlib.m4.
49063
49064 2008-08-19  Eric Blake  <ebb9@byu.net>
49065
49066         test-c-stack: fix compilation failure on FreeBSD 5.0
49067         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49068         headers before <sys/resource.h>.
49069         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49070         the bug.
49071         Reported by Nelson H. F. Beebe.
49072
49073         strverscmp: migrate from "strverscmp.h" to <string.h>
49074         * modules/string (Makefile.am): Add new hooks.
49075         * modules/strverscmp (Files): Remove strverscmp.h.
49076         (Depends-on): Add string.
49077         (configure.ac): Add indicator.
49078         (Include): Mention new header.
49079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49080         defaults.
49081         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49082         results.
49083         * lib/strverscmp.h: Delete.
49084         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49085         * tests/test-strverscmp.c (includes): Adjust client.
49086         * lib/check-version.c (includes): Likewise.
49087         * NEWS: Document the change.
49088
49089         strverscmp: add unit test
49090         * modules/strverscmp-tests: New file.
49091         * tests/test-strverscmp.c: Likewise.
49092
49093 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49094
49095         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49096         regarding Windows crypto stuff, from Mono.
49097
49098 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49099
49100         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49101         if present, for intel RND.  Return error on failures.
49102
49103 2008-08-18  Ben Pfaff  <blp@gnu.org>
49104
49105         gitlog-to-changelog: give better diagnostic for failed pipe-open
49106         * build-aux/gitlog-to-changelog: Improve error message: suggest
49107         that the version of Git may be too old.
49108
49109 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49110
49111         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49112         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49113
49114 2008-08-18  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49117         pthread_in_use().
49118
49119 2008-08-18  Bruno Haible  <bruno@clisp.org>
49120
49121         * lib/glthread/threadlib.c: Include <pthread.h>.
49122
49123 2008-08-18  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49126         glthread_recursive_lock_* macros.
49127         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49128         Fix syntax error.
49129
49130 2008-08-18  Bruno Haible  <bruno@clisp.org>
49131
49132         * lib/glthread/thread.c: Avoid forcing a context switch right after
49133         thread creation.
49134
49135 2008-08-17  Bruno Haible  <bruno@clisp.org>
49136
49137         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49138         * lib/glthread/thread.h: Provide Win32 specific implementation.
49139         * modules/thread (Files): Add lib/glthread/thread.c.
49140         (Depends-on): Add lock.
49141         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49142
49143 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49144
49145         New module 'yield'.
49146         * modules/yield: New file.
49147         * lib/glthread/yield.h: New file.
49148         * m4/yield.m4: New file.
49149         * MODULES.html.sh (Multithreading): Add yield.
49150
49151 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49152
49153         New module 'thread'.
49154         * modules/thread: New file.
49155         * lib/glthread/thread.h: New file.
49156         * m4/thread.m4: New file.
49157         * MODULES.html.sh (Multithreading): Add thread.
49158
49159 2008-08-17  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/glthread/lock.h: Include <stdlib.h> always.
49162         * lib/glthread/tls.h: Likewise.
49163         * lib/glthread/cond.h: Likewise.
49164
49165 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49166
49167         New module 'cond'.
49168         * modules/cond: New file.
49169         * lib/glthread/cond.h: New file.
49170         * lib/glthread/cond.c: New file.
49171         * m4/cond.m4: New file.
49172         * MODULES.html.sh (Multithreading): Add cond.
49173
49174 2008-08-16  Eric Blake  <ebb9@byu.net>
49175
49176         c-stack: fix regression on Irix 5.3 from 2008-06-21
49177         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49178         sa_sigaction...
49179         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49180         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49181         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49182         * modules/signal (Makefile.am): Use the value.
49183         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49184         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49185         * doc/posix-headers/signal.texi (signal.h): Document this
49186         portability issue.
49187         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49188         Reported by Tom G. Christensen.
49189
49190 2008-08-17  Bruno Haible  <bruno@clisp.org>
49191
49192         New module 'threadlib'.
49193         * modules/threadlib: New file.
49194         * lib/glthread/threadlib.c: New file, extracted from
49195         lib/glthread/lock.c.
49196         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49197         functions.
49198         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49199         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49200         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49201         macros.
49202         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49203         (gl_DISABLE_THREADS): Remove macro.
49204         * modules/lock (Files): Remove build-aux/config.rpath.
49205         (Depends-on): Remove havelib. Add threadlib.
49206         (configure.ac-early): Remove section.
49207         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49208         * modules/tls (Depends-on): Remove lock. Add threadlib.
49209         (Link): New section, copied from threadlib.
49210         * MODULES.html.sh (Multithreading): Add threadlib.
49211
49212 2008-08-14  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49215         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49216         glthread_rwlock_unlock, glthread_rwlock_destroy,
49217         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49218         glthread_recursive_lock_destroy): Define as macros always.
49219         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49220         glthread_lock_lock.
49221         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49222         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49223         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49224         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49225         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49226         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49227         (glthread_recursive_lock_lock_func): Renamed from
49228         glthread_recursive_lock_lock.
49229         (glthread_recursive_lock_unlock_func): Renamed from
49230         glthread_recursive_lock_unlock.
49231         (glthread_recursive_lock_destroy_func): Renamed from
49232         glthread_recursive_lock_destroy.
49233
49234 2008-08-14  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/glthread/lock.h: Renamed from lib/lock.h.
49237         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49238         * lib/glthread/tls.h: Renamed from lib/tls.h.
49239         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49240         * lib/fstrcmp.c: Update includes.
49241         * lib/strsignal.c: Update includes.
49242         * modules/lock (Files, Makefile.am): Update.
49243         (Include): Change to "glthread/lock.h".
49244         * modules/tls (Files, Makefile.am): Update.
49245         (Include): Change to "glthread/tls.h".
49246         * tests/test-lock.c: Update includes.
49247         * tests/test-tls.c: Update includes.
49248         * NEWS: Mention the renamed header files.
49249
49250 2008-08-11  Jim Meyering  <meyering@redhat.com>
49251
49252         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49253
49254 2008-08-11  Eric Blake  <ebb9@byu.net>
49255
49256         test-c-stack: avoid C99-ism
49257         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49258         before statement.
49259         Reported by Alain Guibert.
49260
49261 2008-08-10  Jim Meyering  <meyering@redhat.com>
49262
49263         ensure that return value of uinttostr et al are not ignored
49264         * lib/inttostr.h (__GNUC_PREREQ): Define.
49265         (__attribute_warn_unused_result__): Define.
49266         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49267
49268 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49269
49270         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49271         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49272
49273 2008-08-07  Jim Meyering  <meyering@redhat.com>
49274
49275         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49276
49277         * modules/mkstemp (License): Relicense under LGPLv2+.
49278         * modules/tempname (License): Likewise.
49279
49280 2008-08-06  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/poll.c (poll): Further micro-optimization.
49283
49284 2008-08-06  Jim Meyering  <meyering@redhat.com>
49285
49286         inet_pton.c: use locale-independent tolower
49287         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49288         (inet_pton6): Use c_tolower rather than tolower.
49289         * modules/inet_pton (Depends-on): Add c-ctype.
49290
49291 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49292
49293         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49294         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49295
49296 2008-08-06  Jim Meyering  <meyering@redhat.com>
49297
49298         * modules/inet_pton (License): Relicense under LGPLv2+.
49299
49300 2008-08-03  Bruno Haible  <bruno@clisp.org>
49301
49302         Additional non-aborting API for lock and tls.
49303         * lib/lock.h: Include <errno.h>.
49304         (glthread_lock_init): New macro/function.
49305         (gl_lock_init): Define as wrapper around glthread_lock_init.
49306         (glthread_lock_lock): New macro/function.
49307         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49308         (glthread_lock_unlock): New macro/function.
49309         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49310         (glthread_lock_destroy): New macro/function.
49311         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49312         (glthread_rwlock_init): New macro/function.
49313         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49314         (glthread_rwlock_rdlock): New macro/function.
49315         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49316         (glthread_rwlock_wrlock): New macro/function.
49317         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49318         (glthread_rwlock_unlock): New macro/function.
49319         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49320         (glthread_rwlock_destroy): New macro/function.
49321         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49322         (glthread_recursive_lock_init): New macro/function.
49323         (gl_recursive_lock_init): Define as wrapper around
49324         glthread_recursive_lock_init.
49325         (glthread_recursive_lock_lock): New macro/function.
49326         (gl_recursive_lock_lock): Define as wrapper around
49327         glthread_recursive_lock_lock.
49328         (glthread_recursive_lock_unlock): New macro/function.
49329         (gl_recursive_lock_unlock): Define as wrapper around
49330         glthread_recursive_lock_unlock.
49331         (glthread_recursive_lock_destroy): New macro/function.
49332         (gl_recursive_lock_destroy): Define as wrapper around
49333         glthread_recursive_lock_destroy.
49334         (glthread_once): New macro/function.
49335         (gl_once): Define as wrapper around glthread_once.
49336         Update function declarations.
49337         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49338         glthread_rwlock_init. Return error code.
49339         (glthread_rwlock_rdlock_multithreaded): Renamed from
49340         glthread_rwlock_rdlock. Return error code.
49341         (glthread_rwlock_wrlock_multithreaded): Renamed from
49342         glthread_rwlock_wrlock. Return error code.
49343         (glthread_rwlock_unlock_multithreaded): Renamed from
49344         glthread_rwlock_unlock. Return error code.
49345         (glthread_rwlock_destroy_multithreaded): Renamed from
49346         glthread_rwlock_destroy. Return error code.
49347         (glthread_recursive_lock_init_multithreaded): Renamed from
49348         glthread_recursive_lock_init. Return error code.
49349         (glthread_recursive_lock_lock_multithreaded): Renamed from
49350         glthread_recursive_lock_lock. Return error code.
49351         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49352         glthread_recursive_lock_unlock. Return error code.
49353         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49354         glthread_recursive_lock_destroy. Return error code.
49355         (glthread_once_call): Make static.
49356         (glthread_once_multithreaded): Renamed from glthread_once.
49357         * lib/tls.h: Include <errno.h>.
49358         (glthread_tls_key_init): New macro/function.
49359         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49360         (glthread_tls_set): New macro/function.
49361         (gl_tls_set): Define as wrapper around glthread_tls_set.
49362         (glthread_tls_key_destroy): New macro/function.
49363         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49364         Update function declarations.
49365         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49366         glthread_tls_get.
49367         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49368
49369 2008-08-04  Eric Blake  <ebb9@byu.net>
49370
49371         gnumakefile: use space, not TAB, outside of targets
49372         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49373
49374 2008-08-02  Jim Meyering  <meyering@redhat.com>
49375
49376         getdate.y: avoid locale-dependent date parsing failure
49377         In Turkish locales, getdate would fail to recognize keywords
49378         containing a lowercase "i".  The solution is not to rely on
49379         locale-sensitive case-conversion.
49380         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49381         (lookup_word): Use c_toupper in place of toupper.
49382         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49383         Reported by Vefa Bicakci <bicave@superonline.com> in
49384         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49385         * modules/getdate (Depends-on): Add c-ctype.
49386
49387 2008-08-02  Bruno Haible  <bruno@clisp.org>
49388
49389         * gnulib-tool (func_import): When updating or creating a .gitignore
49390         file, prepend each added line with a slash, and ignore leading slashes
49391         from the existing lines.
49392         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49393
49394 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49395
49396         Portability fix for GNU make 3.79.1.
49397         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49398         versions do not understand.
49399
49400 2008-08-01  Bruno Haible  <bruno@clisp.org>
49401
49402         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49403         * tests/test-isnanf.h (zero): New variable.
49404         (main): Avoid literal -0.0f.
49405         * tests/test-isnand.h (zero): New variable.
49406         (main): Avoid literal -0.0.
49407         * tests/test-isnanl.h (zero): New variable.
49408         (main): Avoid literal -0.0L.
49409         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49410         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49411         -0.0, -0.0L.
49412         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49413         (test_signbitd): Avoid literal -0.0.
49414         (test_signbitl): Avoid literal -0.0L.
49415         * tests/test-ceilf1.c (zero): New variable.
49416         (main): Avoid literal -0.0f.
49417         * tests/test-ceill.c (zero): New variable.
49418         (main): Avoid literal -0.0L.
49419         * tests/test-floorf1.c (zero): New variable.
49420         (main): Avoid literal -0.0f.
49421         * tests/test-floorl.c (zero): New variable.
49422         (main): Avoid literal -0.0L.
49423         * tests/test-roundf1.c (zero): New variable.
49424         (main): Avoid literal -0.0f.
49425         * tests/test-round1.c (zero): New variable.
49426         (main): Avoid literal -0.0.
49427         * tests/test-roundl.c (zero): New variable.
49428         (main): Avoid literal -0.0L.
49429         * tests/test-truncf1.c (zero): New variable.
49430         (main): Avoid literal -0.0f.
49431         * tests/test-trunc1.c (zero): New variable.
49432         (main): Avoid literal -0.0.
49433         * tests/test-truncl.c (zero): New variable.
49434         (main): Avoid literal -0.0L.
49435         * tests/test-frexp.c (zero): New variable.
49436         (main): Avoid literal -0.0.
49437         * tests/test-frexpl.c (zero): New variable.
49438         (main): Avoid literal -0.0L.
49439         * tests/test-ldexpl.c (zero): New variable.
49440         (main): Avoid literal -0.0L.
49441         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49442         (zerod, zerol): New variables.
49443         (test_function): Avoid literals -0.0, -0.0L.
49444         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49445         (zerod, zerol): New variables.
49446         (test_function): Avoid literals -0.0, -0.0L.
49447         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49448         (zerod, zerol): New variables.
49449         (test_function): Avoid literals -0.0, -0.0L.
49450         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49451         (zerod, zerol): New variables.
49452         (test_function): Avoid literals -0.0, -0.0L.
49453         * tests/test-strtod.c (zero): New variable.
49454         (main): Avoid literal -0.0.
49455         Reported by Jonathan C. Patschke <jp@centtech.com>.
49456
49457 2008-07-31  Jim Meyering  <meyering@redhat.com>
49458
49459         sha256.h: correct definition of SHA224_DIGEST_SIZE
49460         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49461         Reported by Paulie Pena IV <paulie4@gmail.com>.
49462         Define as 224 / 8, rather than as a literal.
49463         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49464         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49465         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49466
49467 2008-07-31  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49470         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49471         Reported by Jonathan Patschke <jp@centtech.com>.
49472
49473 2008-07-31  Bruno Haible  <bruno@clisp.org>
49474
49475         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49476         Reported by Paolo Bonzini <bonzini@gnu.org>.
49477
49478 2008-07-30  Eric Blake  <ebb9@byu.net>
49479
49480         test-strtod: allow compilation without -lm
49481         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49482         Reported by Dennis Clarke <blastwave@gmail.com>.
49483
49484 2008-07-28  Jim Meyering  <meyering@redhat.com>
49485
49486         bootstrap: work also when there are no .po files in po/
49487         * build-aux/bootstrap (update_po_files): Complete the change
49488         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49489
49490 2008-07-27  Jim Meyering  <meyering@redhat.com>
49491
49492         * users.txt: Add zile.
49493
49494 2008-07-26  Ben Pfaff  <blp@gnu.org>
49495
49496         Add missing dependencies on new m4/exponent[fdl].m4 files.
49497         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49498         * modules/isnand-nolibm: Add m4/exponentd.m4.
49499         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49500         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49501         m4/isnan[fdl].m4, because the macros actually used moved.
49502         Reported by Jim Meyering.
49503
49504 2008-07-14  Ben Pfaff  <blp@gnu.org>
49505
49506         Add isinf module.
49507         * lib/isinf.c: New file.
49508         * lib/math.in.h: Define isinf macro if we have decided to replace
49509         it.
49510         * m4/isinf.m4: New file.
49511         * m4/math_h.m4: Initialize and substitute variables for isinf
49512         module.
49513         * modules/isinf: New file.
49514         * modules/isinf-tests: New file.
49515         * modules/math: Add substitutions for new module.
49516         * tests/test-isinf.c: New file.
49517         * doc/posix-functions/isinf.texi: Mention new module.
49518         * MODULES.html.sh: Mention new module.
49519
49520 2008-07-14  Ben Pfaff  <blp@gnu.org>
49521
49522         Factor out some macros for use by additional modules.
49523         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49524         exponentf.m4.
49525         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49526         exponentd.m4.
49527         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49528         file exponentl.m4.
49529         * m4/exponentf.m4: New file.
49530         * m4/exponentd.m4: New file.
49531         * m4/exponentl.m4: New file.
49532         * modules/isnanf: Use new file m4/exponentf.m4.
49533         * modules/isnand: Use new file m4/exponentd.m4.
49534         * modules/isnanl: Use new file m4/exponentl.m4.
49535
49536 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49537
49538         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49539         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49540         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49541         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49542
49543         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49544         readlink on platforms without PATH_MAX.
49545
49546 2008-07-21  Eric Blake  <ebb9@byu.net>
49547
49548         Warn, not fail, on stale version.
49549         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49550
49551         Don't allow installation with stale devel version number.
49552         * top/GNUmakefile (_is-install-target): New macro.
49553         (_curr-ver): Forbid installation with stale version number.
49554
49555 2008-07-20  Bruno Haible  <bruno@clisp.org>
49556
49557         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49558         TESTS_ENVIRONMENT.
49559         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49560
49561 2008-07-20  Bruno Haible  <bruno@clisp.org>
49562
49563         * lib/c-stack.h (c_stack_action): Add documentation.
49564         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49565
49566 2008-07-20  Bruno Haible  <bruno@clisp.org>
49567
49568         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49569         * modules/readlink (License): Likewise.
49570
49571 2008-07-17  Eric Blake  <ebb9@byu.net>
49572
49573         * modules/c-stack (Link): Fix typo.
49574
49575         Make c-stack use libsigsegv, when available.
49576         * modules/c-stack (Depends-on): Add libsigsegv.
49577         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49578         needed.
49579         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49580         (segv_handler, overflow_handler, c_stack_action)
49581         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49582         implementation when libsigsegv is available, but only when using
49583         the library is necessary.
49584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49585         comment, explaining why XSI check fails on Linux.
49586         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49587         * tests/test-c-stack2.sh: Tweak skip message.
49588         * NEWS: Document new link-time requirements.
49589
49590 2008-07-16  Eric Blake  <ebb9@byu.net>
49591
49592         c-stack: Expose false positives when not using libsigsegv.
49593         * modules/c-stack-tests (Files): Expand test.
49594         * tests/test-c-stack.c (main): Add means to conditionally trigger
49595         non-overflow SIGSEGV.
49596         * tests/test-c-stack2.sh: New file.
49597
49598 2008-07-14  Bruno Haible  <bruno@clisp.org>
49599
49600         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49601         Reported by Eric Blake.
49602
49603 2008-07-14  Sam Steingold  <sds@gnu.org>
49604             Bruno Haible  <bruno@clisp.org>
49605
49606         New module libsigsegv.
49607         * modules/libsigsegv: New file.
49608         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49609         modifications.
49610         * MODULES.html.sh (Signal handling): New section.
49611
49612 2008-07-14  Bruno Haible  <bruno@clisp.org>
49613
49614         * modules/unictype/ctype-* (Description): Add the word "function".
49615         Improves the resulting doc in MODULES.html.
49616
49617 2008-07-12  Ben Pfaff  <blp@gnu.org>
49618
49619         Add longlong module.
49620         * modules/longlong: New file.
49621
49622 2008-07-12  Bruno Haible  <bruno@clisp.org>
49623
49624         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49625         to empty.
49626
49627 2008-07-10  Ben Pfaff  <blp@gnu.org>
49628
49629         Add isnan module.
49630         * doc/posix-functions/isnan.texi: Mention new module.
49631         * lib/math.in.h: Define isnan macro if we have decided to replace
49632         it.
49633         * m4/isnan.m4: New file.
49634         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49635         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49636         also.
49637         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49638         redundancy.
49639         * m4/math_h.m4: Initialize and substitute variables for isnan
49640         module.
49641         * modules/isnan: New file.
49642         * modules/isnan-tests: New file.
49643         * modules/math: Add substitutions for new module.
49644         * tests/test-isnan.c: New file.
49645         * MODULES.html.sh: Mention new module.
49646
49647 2008-07-10  Ben Pfaff  <blp@gnu.org>
49648
49649         Add isnanf module.
49650         * lib/isnanf.m4: New file.
49651         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49652         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49653         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49654         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49655         * modules/isnanf: New file.
49656         * modules/isnanf-tests: New file.
49657         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49658         files.
49659         * tests/test-isnanf-nolibm.c: factored most of its contents into
49660         new file tests/test-isnanf.h.
49661         * tests/test-isnanf.h: New file.
49662         * tests/test-isnanf.c: New file.
49663         * MODULES.html.sh: Mention new module.
49664         * doc/glibc-functions/isnanf.texi: Mention new module.
49665
49666 2008-07-10  Ben Pfaff  <blp@gnu.org>
49667
49668         Add isnand module.
49669         * lib/isnand.h: New file.
49670         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49671         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49672         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49673         functionality also.
49674         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49675         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49676         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49677         * modules/isnand: New file.
49678         * modules/isnand-tests: New file.
49679         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49680         files.
49681         * tests/test-isnand-nolibm.c: factored most of its contents into
49682         new file tests/test-isnand.h.
49683         * tests/test-isnand.h: New file.
49684         * tests/test-isnand.c: New file.
49685         * MODULES.html.sh: Mention new module.
49686
49687 2008-07-10  Ben Pfaff  <blp@gnu.org>
49688
49689         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49690         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49691         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49692         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49693         * modules/isnanf-nolibm: Update references to renamed files.
49694         * modules/isnand-nolibm: Likewise.
49695         * modules/isnanf-nolibm-tests: Likewise.
49696         * modules/isnand-nolibm-tests: Likewise.
49697         * lib/frexp.c: Likewise.
49698         * lib/isfinite.c: Likewise.
49699         * lib/signbitd.c: Likewise.
49700         * lib/signbitf.c: Likewise.
49701         * lib/vasnprintf.c: Likewise.
49702         * tests/test-ceilf1.c: Likewise.
49703         * tests/test-ceilf2.c: Likewise.
49704         * tests/test-floorf1.c: Likewise.
49705         * tests/test-floorf2.c: Likewise.
49706         * tests/test-frexp.c: Likewise.
49707         * tests/test-round1.c: Likewise.
49708         * tests/test-round2.c: Likewise.
49709         * tests/test-roundf1.c: Likewise.
49710         * tests/test-strtod.c: Likewise.
49711         * tests/test-trunc1.c: Likewise.
49712         * tests/test-trunc2.c: Likewise.
49713         * tests/test-truncf1.c: Likewise.
49714         * tests/test-truncf2.c: Likewise.
49715         * NEWS: Mention the renamed header files.
49716
49717 2008-07-11  Jim Meyering  <meyering@redhat.com>
49718
49719         vc-list-files: make the last-resort awk code more portable
49720         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49721         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49722         does not support it.
49723
49724 2008-07-10  Eric Blake  <ebb9@byu.net>
49725
49726         Work with tar's bootstrap.
49727         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49728         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49729         an m4 comment.
49730
49731 2008-07-09  Jim Meyering  <meyering@redhat.com>
49732
49733         posix-shell.m4: fix typo that made this test malfunction
49734         * m4/posix-shell.m4: Remove capitalization in variable name.
49735
49736 2008-07-08  Bruno Haible  <bruno@clisp.org>
49737
49738         * m4/onceonly.m4: Update comments.
49739         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49740
49741 2008-07-04  Jim Meyering  <meyering@redhat.com>
49742
49743         * users.txt: Add vc-dwim.
49744         (bison, coreutils): Use the gitweb URL.
49745
49746 2008-07-03  Jim Meyering  <meyering@redhat.com>
49747
49748         * users.txt: Add libffcall.  From Sam Steingold.
49749
49750 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49751
49752         getdate.y: do not ignore TZ with relative day, month or year offset
49753         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49754         relative-date-handling, since otherwise, the latter would clobber the
49755         sole output (an updated Start value) of the tz-handling block.
49756         * tests/test-getdate.c: Tests for the fix
49757
49758 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49759
49760         Recognize 'foo_LIBRARIES += libgnu.a'.
49761         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49762         makefile snippet has already specified an installation location,
49763         also using '+='.
49764
49765 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49766
49767         getdate.y: factor out common actions
49768         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49769         Use them in place of open-coded actions.
49770
49771 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49772
49773         Add self-test for getdate module.
49774         * modules/getdate-tests: New file.
49775         * tests/test-getdate.c: New file.
49776
49777 2008-06-29  Bruno Haible  <bruno@clisp.org>
49778
49779         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49780         .gitignore.
49781         Reported by Sylvain Beucler <beuc@beuc.net>.
49782
49783 2008-06-29  Bruno Haible  <bruno@clisp.org>
49784
49785         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49786         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49787
49788 2008-06-29  Bruno Haible  <bruno@clisp.org>
49789
49790         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49791         EXTRA_DIST.
49792         Reported by Sylvain Beucler <beuc@beuc.net>.
49793
49794 2008-06-26  Jim Meyering  <meyering@redhat.com>
49795
49796         make several modules depend on the "open" module
49797         This provides slightly increased consistency when opening-for-write
49798         the name of a non-directory spelled with a trailing slash.
49799         * modules/chdir-safer: Likewise.
49800         * modules/chown: Likewise.
49801         * modules/clean-temp: Likewise.
49802         * modules/copy-file: Likewise.
49803         * modules/fchdir: Likewise.
49804         * modules/fcntl-safer: Likewise.
49805         * modules/pipe: Likewise.
49806         * modules/utime: Likewise.
49807         Prompted by Eric Blake and Bruno Haible.
49808
49809 2008-06-24  Andreas Schwab  <schwab@suse.de>
49810
49811         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49812         literals can be used as initializers for global variables.
49813
49814 2008-06-23  Eric Blake  <ebb9@byu.net>
49815
49816         Make gnulib-cache.m4 easier to diff.
49817         * gnulib-tool (func_import): Allow newlines when reading cached
49818         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49819
49820 2008-06-23  Bruno Haible  <bruno@clisp.org>
49821
49822         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49823         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49824         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49825         m4/signalblocking.m4.
49826         (gl_PREREQ_SIGACTION): Don't invoke it.
49827         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49828         gl_PREREQ_SIG_HANDLER_H.
49829         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49830         Don't check for sigaction here.
49831
49832 2008-06-23  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49835         (install_handlers): Don't set the SA_RESETHAND flag.
49836
49837 2008-06-23  Bruno Haible  <bruno@clisp.org>
49838
49839         * m4/sigaction.m4: Comment fixes.
49840         * lib/signal.in.h: Likewise.
49841
49842 2008-06-23  Eric Blake  <ebb9@byu.net>
49843
49844         Fix typo.
49845         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49846
49847         Avoid SA_ namespace.
49848         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49849         Reported by Ralf Wildenhues.
49850
49851         Avoid test failure due to SA_RESTORER.
49852         * tests/test-sigaction.c (SA_MASK): New macro.
49853         (main): Avoid failing due to extension flags being set.
49854         Reported by Jim Meyering.
49855
49856         Revert use of sig-handler.h in sigprocmask.c.
49857         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49858         it requires the existence of struct sigaction.
49859         * lib/sigprocmask.c (handler_t): Restore typedef.
49860         (rpl_signal, old_handlers): Use local type.
49861
49862 2008-06-22  Bruno Haible  <bruno@clisp.org>
49863
49864         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49865         conditionally.
49866         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49867
49868 2008-06-22  Bruno Haible  <bruno@clisp.org>
49869
49870         * doc/posix-functions/siginterrupt.texi: Move note.
49871
49872         * lib/signal.in.h (SA_RESTART): New macro.
49873         * lib/sigaction.c: Update comment.
49874
49875         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49876
49877         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49878         (gl_PREREQ_SIGPROCMASK): Invoke it.
49879         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49880
49881         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49882
49883         * lib/sigprocmask.c: Update a comment.
49884
49885 2008-06-21  Eric Blake  <ebb9@byu.net>
49886
49887         Use sigaction module rather than signal().
49888         * modules/c-stack (Depends-on): Add sigaction.
49889         * modules/fatal-signal (Depends-on): Likewise.
49890         * modules/nanosleep (Depends-on): Likewise.
49891         * modules/sigprocmask (Files): Add sig-handler.h.
49892         * modules/sigaction (Files): Likewise.
49893         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49894         Eggert.
49895         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49896         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49897         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49898         (init_fatal_signals): Likewise.
49899         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49900         (siginterrupt): Delete fallback.
49901         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49902         instead.
49903         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49904         siginterrupt.
49905
49906         New module sigaction, for mingw.
49907         * modules/sigaction: New module...
49908         * modules/sigaction-tests: ...and its test.
49909         * m4/sigaction.m4: New file.
49910         * lib/sigaction.c: Likewise.
49911         * tests/test-sigaction.c: Likewise.
49912         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49913         * modules/signal (Makefile.am): Likewise.
49914         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49915         needed.
49916         * doc/posix-headers/signal.texi (signal.h): Mention provided
49917         types.
49918         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49919         that sigaction is preferable.
49920         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49921         module.
49922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49923         sigaction.
49924
49925         Improve robustness of sigprocmask by overriding signal.
49926         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49927         is in use.
49928         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49929         (SIGKILL, SIGSTOP): Provide fallbacks.
49930         (rpl_signal): Implement.
49931         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49932         signal can be called inside handlers.
49933
49934         Fix nanosleep module on mingw.
49935         * modules/nanosleep (Depends-on): Add sys_select.
49936         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49937
49938         Fix licensing of sigprocmask.
49939         * modules/raise (License): Relicense as LGPL.
49940
49941 2008-06-21  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49944         result if it contains question marks.
49945         Reported by Michael Geng <linux@michaelgeng.de>.
49946
49947 2008-06-19  Bruno Haible  <bruno@clisp.org>
49948
49949         Fix CVS-ism.
49950         * doc/gnulib.texi: Include updated-stamp.texi.
49951         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49952         (updated-stamp.texi): New rule.
49953         (gnulib.info): Depend on it.
49954         * doc/.gitignore: Add updated-stamp.texi.
49955         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49956
49957 2008-06-19  Bruno Haible  <bruno@clisp.org>
49958
49959         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49960         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49961
49962 2008-06-19  Eric Blake  <ebb9@byu.net>
49963
49964         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49965         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49966         Reported by Stepan Kasal.
49967
49968 2008-06-18  Bruno Haible  <bruno@clisp.org>
49969
49970         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49971         Reported by Eric Blake.
49972
49973 2008-06-18  Eric Blake  <ebb9@byu.net>
49974
49975         Work around cygwin 1.5.25 strsignal bug.
49976         * tests/test-strsignal.c: Allow for const char *.
49977         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49978
49979 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49980
49981         * users.txt: Update URL to article and add author/date
49982         information.
49983
49984 2008-06-17  Bruno Haible  <bruno@clisp.org>
49985
49986         New macro gl_DISABLE_THREADS.
49987         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49988         if the user did not pass --enable-threads or --disable-threads option.
49989         (gl_DISABLE_THREADS): New macro.
49990         Reported by Eric Blake <ebb9@byu.net>.
49991
49992 2008-06-17  Bruno Haible  <bruno@clisp.org>
49993
49994         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49995         when the macro ignores it.
49996         Based on a patch by Eric Blake <ebb9@byu.net>.
49997
49998 2008-06-17  Bruno Haible  <bruno@clisp.org>
49999
50000         * modules/tls (License): Change to LGPLv2+.
50001         Reported by Eric Blake.
50002
50003 2008-06-17  Eric Blake  <ebb9@byu.net>
50004
50005         Simplify c-stack prerequisites.
50006         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50008         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50009         check.
50010         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50011         <sys/resource.h>.
50012
50013         Move c-stack test into testsuite.
50014         * modules/c-stack-tests: New file.
50015         * lib/c-stack.c [DEBUG]: Move test program...
50016         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50017         fail test if sigaltstack is lacking.
50018         * tests/test-c-stack.sh: New driver file.
50019
50020 2008-06-16  Eric Blake  <ebb9@byu.net>
50021
50022         Use raise module consistently.
50023         * modules/fatal-signal (Depends-on): Add raise.
50024         * modules/sigprocmask (Depends-on): Likewise.
50025         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50026         * lib/sigprocmask.c (sigprocmask): Likewise.
50027         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50028         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50029
50030         Fix compliance bug in sigpending.
50031         * lib/sigprocmask.c (sigpending): Return pending array via
50032         parameter, not return value.
50033
50034 2008-06-14  Eric Blake  <ebb9@byu.net>
50035
50036         Improve obstack-printf test code.
50037         * tests/test-obstack-printf.c (test_function): Fix comment, and
50038         simplify usage of obstack_* in macros.  Add a test for coverage.
50039         Reported by Bruno Haible.
50040
50041 2008-06-14  Bruno Haible  <bruno@clisp.org>
50042
50043         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50044         array size as a constant, not as a const variable.
50045         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50046         AC_USE_SYSTEM_EXTENSIONS.
50047         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50048         Test whether the obstack_printf function actually exists.
50049         * modules/obstack-printf (Depends-on): Add extensions.
50050         (Include): Remove obstack.h.
50051         * modules/obstack-printf-posix (Depends-on): Add extensions.
50052         (Include): Remove obstack.h.
50053
50054 2008-06-13  Eric Blake  <ebb9@byu.net>
50055
50056         Add obstack-printf and obstack-printf-posix modules.
50057         * modules/obstack-printf: New file.
50058         * modules/obstack-printf-posix: Likewise.
50059         * MODULES.html.sh (Misc): Mention them.
50060         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50061         Likewise.
50062         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50063         Likewise.
50064         * modules/stdio (Makefile.am): Accomodate new modules.
50065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50066         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50067         Declare.
50068         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50069         functions.
50070         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50071         (gl_REPLACE_OBSTACK_PRINTF): New macros
50072         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50073         * tests/test-obstack-printf.c: New file.
50074         * modules/obstack-printf-tests: Likewise.
50075         * modules/obstack-printf-posix-tests: Likewise.
50076
50077 2008-06-11  Bruno Haible  <bruno@clisp.org>
50078
50079         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50080         * lib/open.c: Include errno.h.
50081         (open): Fail when attempting to write to a file that has a trailing
50082         slash.
50083         * tests/test-open.c (main): Test against trailing slash bug.
50084         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50085
50086 2008-06-10  Bruno Haible  <bruno@clisp.org>
50087
50088         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50089         for $? to work inside the trap command, with various /bin/sh-s.
50090         * tests/test-vc-list-files-cvs.sh: Likewise.
50091
50092 2008-06-10  Bruno Haible  <bruno@clisp.org>
50093
50094         * lib/acl-internal.h: Don't include gettext.h here.
50095         * lib/set-mode-acl.c: Include gettext.h here.
50096         * lib/copy-acl.c: Likewise.
50097
50098 2008-06-10  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50101         * lib/wait-process.c (wait_subprocess): Likewise.
50102         * lib/execute.h (execute): Add termsigp argument.
50103         * lib/execute.c (execute): Likewise.
50104         * lib/csharpcomp.c (compile_csharp_using_pnet,
50105         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50106         * lib/csharpexec.c (execute_csharp_using_pnet,
50107         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50108         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50109         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50110         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50111         is_jikes_present): Update.
50112         * lib/javaexec.c (execute_java_class): Update.
50113         * lib/javaversion.c (execute_and_read_line): Update.
50114         * NEWS: Document the changes.
50115         Reported by Eric Blake.
50116
50117 2008-06-10  Eric Blake  <ebb9@byu.net>
50118
50119         Add missing include.
50120         * tests/test-strstr.c (includes): Add <signal.h>.
50121         * tests/test-strcasestr.c (includes): Likewise.
50122         * tests/test-memmem.c (includes): Likewise.
50123
50124 2008-06-10  Bruno Haible  <bruno@clisp.org>
50125
50126         * lib/wait-process.c (wait_subprocess): Add an assertion.
50127
50128 2008-06-10  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50131
50132 2008-06-10  Bruno Haible  <bruno@clisp.org>
50133
50134         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50135         using alarm().
50136         * tests/test-strcasestr.c (main): Likewise.
50137         * tests/test-strstr.c (main): Likewise.
50138
50139 2008-06-09  Bruno Haible  <bruno@clisp.org>
50140
50141         Work around the Solaris 10 ACE ACLs ABI change.
50142         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50143         declare if ACL_NO_TRIVIAL is present.
50144         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50145         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50146         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50147         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50148         define if ACL_NO_TRIVIAL is present.
50149         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50150         and use the current ABI.
50151         (file_has_acl): Use same #if condition as elsewhere.
50152         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50153         in use, and use the current ABI.
50154         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50155         Reported by Jim Meyering.
50156
50157 2008-06-09  Eric Blake  <ebb9@byu.net>
50158
50159         Work around environments that (stupidly) ignore SIGALRM.
50160         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50161         before using alarm().
50162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50163         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50164         Reported by Ian Beckwith <ianb@erislabs.net>.
50165
50166         Produce autobuild blurb earlier in log.
50167         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50168
50169 2008-06-09  Jim Meyering  <meyering@redhat.com>
50170         and OndÅ™ej Vašík  <ovasik@redhat.com>
50171
50172         utimens.c: correct kernel bug work-around
50173         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50174         failure, not success, and the kernel bug we're trying to work
50175         around affects not just the utimensat call, but also the fallback
50176         futimens call.
50177         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50178         not success.
50179         [HAVE_FUTIMENS]: Use the same work-around, here.
50180
50181 2008-06-09  Jim Meyering  <meyering@redhat.com>
50182
50183         add more guards around definition of ACE_-related code
50184         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50185         ALLOW and ACE_OWNER are also defined.
50186
50187 2008-06-08  Bruno Haible  <bruno@clisp.org>
50188
50189         * lib/acl-internal.h: Add me as co-author.
50190         * lib/file-has-acl.c: Likewise.
50191         * lib/set-mode-acl.c: Likewise.
50192         * lib/copy-acl.c: Likewise.
50193
50194 2008-06-08  Bruno Haible  <bruno@clisp.org>
50195
50196         Add support for AIX ACLs.
50197         * lib/acl-internal.h (acl_nontrivial): New declaration.
50198         * lib/file-has-acl.c (acl_nontrivial): New function.
50199         (file_has_acl): Add implementation using AIX 4 ACL API.
50200         * lib/set-mode-acl.c (qset_acl): Likewise.
50201         * lib/copy-acl.c (qcopy_acl): Likewise.
50202
50203 2008-06-08  Bruno Haible  <bruno@clisp.org>
50204
50205         Add support for HP-UX ACLs.
50206         * lib/acl-internal.h (acl_nontrivial): New declaration.
50207         * lib/file-has-acl.c (acl_nontrivial): New function.
50208         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50209         * lib/set-mode-acl.c (qset_acl): Likewise.
50210         * lib/copy-acl.c (qcopy_acl): Likewise.
50211
50212 2008-06-08  Bruno Haible  <bruno@clisp.org>
50213
50214         Add support for Cygwin ACLs.
50215         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50216         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50217         the chmod_or_fchmod call.
50218         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50219
50220 2008-06-08  Bruno Haible  <bruno@clisp.org>
50221
50222         Fix bug with setuid modes in Solaris 10+ code.
50223         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50224         succeeded, when the mode contains some special bits.
50225
50226 2008-06-08  Bruno Haible  <bruno@clisp.org>
50227
50228         Add support for Solaris 7..10 ACLs.
50229         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50230         declarations.
50231         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50232         functions.
50233         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50234         * lib/set-mode-acl.c (qset_acl): Likewise.
50235         * lib/copy-acl.c (qcopy_acl): Likewise.
50236
50237 2008-06-08  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50240         declaration.
50241         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50242         (acl_access_nontrivial): Remove MacOS X case.
50243         (file_has_acl): Use acl_extended_nontrivial.
50244         * lib/copy-acl.c (qcopy_acl): Likewise.
50245
50246 2008-06-08  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50249
50250 2008-06-08  Jim Meyering  <meyering@redhat.com>
50251
50252         * modules/acl (Maintainer): Add Bruno Haible.
50253
50254 2008-06-07  Bruno Haible  <bruno@clisp.org>
50255
50256         Improve support for Tru64 ACLs.
50257         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50258         ACL on OSF/1.
50259
50260 2008-06-07  Bruno Haible  <bruno@clisp.org>
50261
50262         Add support for MacOS X ACLs.
50263         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50264         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50265         * lib/set-mode-acl.c (qset_acl): Likewise.
50266         * lib/copy-acl.c (qcopy_acl): Likewise.
50267
50268 2008-06-07  Bruno Haible  <bruno@clisp.org>
50269
50270         Fix memory leak introduced on 2008-05-22.
50271         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50272         use.
50273
50274 2008-06-07  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50277         to construct an empty ACL.
50278
50279 2008-06-07  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50282         precisely.
50283         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50284
50285 2008-06-07  Bruno Haible  <bruno@clisp.org>
50286
50287         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50288         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50289
50290 2008-06-07  Bruno Haible  <bruno@clisp.org>
50291
50292         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50293         regardless of POSIX.
50294         * doc/posix-functions/_longjmp.texi: Likewise.
50295         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50296         SystemV platform in this case.
50297
50298 2008-06-06  Eric Blake  <ebb9@byu.net>
50299
50300         Document abort() bugs.
50301         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50302
50303         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50304         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50305         sigsetjmp.
50306         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50307         siglongjmp, but only as a macro.
50308         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50309         is obsolete.
50310         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50311
50312         Tweak documentation to cover cygwin argz bugs.
50313         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50314         argz bug fix; no code change needed since no cygwin releases
50315         occurred between the last fix and the bug being tested.
50316         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50317         module and recently fixed cygwin bugs.
50318         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50319         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50320         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50321         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50322         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50323         Likewise.
50324         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50325         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50326         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50327         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50328         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50329         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50330         Likewise.
50331
50332         Avoid gcc warning on cygwin.
50333         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50334         !ACL_NO_TRIVIAL]: Avoid unused variable.
50335
50336 2008-06-05  Eric Blake  <ebb9@byu.net>
50337
50338         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50339         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50340         git-version-gen fails to come up with a version.
50341         Reported by Simon Josefsson.
50342
50343 2008-06-05  Jim Meyering  <meyering@redhat.com>
50344             Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         utimens.c: work around a probable Linux kernel bug
50347         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50348         appears to be a kernel bug that causes utimensat to return 280
50349         instead of 0, indicating success.
50350
50351 2008-06-04  Bruno Haible  <bruno@clisp.org>
50352
50353         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50354         2008-06-01 commit.
50355
50356 2008-06-04  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50359         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50360         (file_has_acl): Use it. Save errno afterwards.
50361         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50362
50363 2008-06-03  Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50366         draft code. Simplify #ifs.
50367         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50368         Put Solaris code after POSIX-draft code. Fix comments regarding
50369         Solaris 10, HP-UX. Mention Cygwin.
50370         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50371
50372 2008-06-03  Eric Blake  <ebb9@byu.net>
50373
50374         Provide fallback for older kernels.
50375         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50376         Provide runtime fallback if kernel lacks support.
50377         Reported by Mike Frysinger.
50378
50379 2008-06-02  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50382         it exists.
50383
50384 2008-06-02  Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50387         * lib/copy-acl.c (qcopy_acl): Update comment.
50388
50389 2008-06-02  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50392         like ACL APIs.
50393
50394 2008-06-02  Bruno Haible  <bruno@clisp.org>
50395
50396         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50397         * tests/test-set-mode-acl.sh: Likewise.
50398         * tests/test-copy-acl.sh: Likewise.
50399         * tests/test-copy-file.sh: Likewise.
50400
50401 2008-06-02  Bruno Haible  <bruno@clisp.org>
50402
50403         * tests/test-file-has-acl.sh: Remove unused code.
50404
50405 2008-06-01  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50408         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50409         messages.
50410         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50411
50412 2008-06-01  Bruno Haible  <bruno@clisp.org>
50413
50414         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50415         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50416         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50417         APIs.
50418         * modules/acl-tests (configure.ac): Remove tests now contained in
50419         m4/acl.m4.
50420
50421 2008-06-02  Jim Meyering  <meyering@redhat.com>
50422
50423         announce-gen: use a better key-server host name
50424         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50425         it may be more consistently reliable.  Suggested by Werner Koch
50426         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50427
50428 2008-06-01  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50431         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50432
50433 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50434
50435         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50436
50437 2008-06-01  Bruno Haible  <bruno@clisp.org>
50438
50439         New ACL tests.
50440         * tests/test-file-has-acl.sh: New file.
50441         * tests/test-file-has-acl.c: New file.
50442         * tests/test-set-mode-acl.sh: New file.
50443         * tests/test-set-mode-acl.c: New file.
50444         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50445         * tests/test-copy-acl.c: New file.
50446         * modules/acl-tests: New file, based on modules/copy-file-tests.
50447         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50448         (Depends-on): Add acl-tests.
50449         (configure.ac): Remove checks.
50450         (Makefile.am): Don't create test-sameacls program here any more.
50451
50452 2008-06-01  Bruno Haible  <bruno@clisp.org>
50453
50454         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50455         * tests/test-sameacls.c: Include progname.h.
50456         (main): Invoke set_program_name. Portability fixes for MacOS X,
50457         Solaris, HP-UX.
50458
50459 2008-06-01  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50462         function.
50463         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50464
50465 2008-06-01  Bruno Haible  <bruno@clisp.org>
50466
50467         * modules/rpmatch (Depends-on): Add strdup.
50468
50469 2008-06-01  Bruno Haible  <bruno@clisp.org>
50470
50471         * lib/pipe.c: Include unistd-safer.h.
50472         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50473         * modules/pipe (Depends-on): Add unistd-safer.
50474
50475 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50476
50477         * modules/autobuild (configure.ac): Call AB_INIT.
50478
50479 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50480
50481         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50482         Suggested by Bruno Haible <bruno@clisp.org>.
50483
50484 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50485
50486         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50487         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50488         <bruno@clisp.org>.
50489
50490 2008-05-29  Eric Blake  <ebb9@byu.net>
50491
50492         Prefer new POSIX 200x interfaces over futimesat.
50493         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50494         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50495         when available.
50496         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50497
50498 2008-05-28  Bruno Haible  <bruno@clisp.org>
50499
50500         * modules/stpcpy (License): Change to LGPLv2+.
50501         Requested by David Lutterkort <dlutter@redhat.com>.
50502
50503 2008-05-27  Bruno Haible  <bruno@clisp.org>
50504
50505         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50506         current mingw.
50507         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50508
50509 2008-05-27  Bruno Haible  <bruno@clisp.org>
50510
50511         * modules/iconv_open (Link): New section, from module 'iconv'.
50512         * modules/striconv (Link): Likewise.
50513         * modules/striconveh (Link): Likewise.
50514         * modules/xstriconv (Link): Likewise.
50515         * modules/unicodeio (Link): Likewise.
50516         * modules/propername (Link): Likewise.
50517         Reported by Jim Meyering.
50518
50519 2008-05-26  Jim Meyering  <meyering@redhat.com>
50520
50521         sha256: do not artificially restrict buffer length to be < 2^32
50522         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50523         uint32_t to size_t.
50524         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50525         to match.
50526
50527         avoid unaligned access errors, e.g., on sparc
50528         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50529         direct access through a possibly-unaligned uint64* pointer.
50530         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50531         direct access through a possibly-unaligned uint32* pointer.
50532         Prompted by this patch from Tom "spot" Callaway:
50533         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50534
50535         sha512.c: fix typo in comment
50536         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50537
50538 2008-05-25  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50541         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50542         (Makefile.am): Update lib_SOURCES.
50543
50544 2008-05-25  Bruno Haible  <bruno@clisp.org>
50545
50546         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50547
50548 2008-05-25  Jim Meyering  <meyering@redhat.com>
50549
50550         useless-if-before-free: freed expr may have white-space differences
50551         * build-aux/useless-if-before-free: Recognize cases in which the
50552         freed expression differs from the tested one in embedded white
50553         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50554         $1 was used, so we can't make any regexp shy.  Improved tests now
50555         detect this.
50556
50557         useless-if-before-free: accept white space in the expression.
50558         * build-aux/useless-if-before-free: For now, any white space
50559         in the expression must be identical in the free argument.
50560
50561         useless-if-before-free: efficiency tweak
50562         * build-aux/useless-if-before-free: Make the expression-matching
50563         regexp "shy".
50564         Make the *outer* regexp shy, not the expr-matching one.
50565
50566         update code-in-comment to accept cast of free arg
50567         * build-aux/useless-if-before-free: Update regexp.
50568
50569 2008-05-25  Bruno Haible  <bruno@clisp.org>
50570
50571         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50572         * modules/copy-file-tests (Files, Makefile.am): Update.
50573         * tests/test-copy-file.c (func_test_copy): Update.
50574
50575 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50576
50577         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50578
50579 2008-05-23  Bruno Haible  <bruno@clisp.org>
50580
50581         Improve support for ACLs on OSF/1.
50582         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50583         Remove fallback for unknown flavors of ACLs.
50584
50585 2008-05-22  Bruno Haible  <bruno@clisp.org>
50586
50587         Add support for ACLs on OSF/1.
50588         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50589         replacements.
50590         (acl_free_text): New macro fallback.
50591         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50592         acl_free.
50593         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50594         acl_free_text function. Require AC_C_INLINE.
50595
50596 2008-05-22  Bruno Haible  <bruno@clisp.org>
50597
50598         Make copy_acl work on MacOS X 10.5.
50599         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50600         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50601         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50602         If MODE_INSIDE_ACL, don't assume that every system has the same text
50603         representation for ACLs as FreeBSD.
50604         * lib/copy-acl.c (copy_acl): Add support for platforms with
50605         !MODE_INSIDE_ACL.
50606         * lib/file-has-acl.c (file_has_acl): Likewise.
50607         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50608         FreeBSD, MacOS X, or IRIX, respectively.
50609
50610 2008-05-22  Bruno Haible  <bruno@clisp.org>
50611
50612         * lib/acl.h: Don't include <sys/acl.h>.
50613         (GETACLCNT): Move fallback to lib/acl-internal.h.
50614         * lib/acl-internal.h: Include <sys/acl.h> here.
50615         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50616
50617 2008-05-22  Bruno Haible  <bruno@clisp.org>
50618
50619         Split off copy_acl function to separate file.
50620         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50621         * lib/acl.c (copy_acl): Moved function to separate file.
50622         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50623         * modules/acl (Files): Add lib/copy-acl.c.
50624         (Makefiles.am): Augment lib_SOURCES.
50625
50626 2008-05-22  Bruno Haible  <bruno@clisp.org>
50627
50628         * modules/copy-file-tests: New file.
50629         * tests/test-copy-file.sh: New file.
50630         * tests/test-copy-file.c: New file.
50631         * tests/test-copy-file-sameacls.c: New file.
50632
50633 2008-05-22  Eric Blake  <ebb9@byu.net>
50634
50635         Avoid gcc warning.
50636         * tests/test-memcmp.c (main): Pass NULL indirectly.
50637
50638 2008-05-21  Bruno Haible  <bruno@clisp.org>
50639
50640         Add reference doc about ACLs.
50641         * doc/acl-resources.txt: New file.
50642         * doc/acl-cygwin.txt: New file.
50643
50644 2008-05-21  Bruno Haible  <bruno@clisp.org>
50645
50646         Avoid one more warning from gcc.
50647         * lib/vasnprintf.c (IF_LINT): Update comments.
50648         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50649
50650 2008-05-21  Jim Meyering  <meyering@redhat.com>
50651
50652         avoid a warning from gcc
50653         * lib/vasnprintf.c (IF_LINT): Define.
50654         (scale10_round_decimal_long_double):
50655         Use it to avoid a "may be used uninitialized" warning.
50656         (scale10_round_decimal_double): Likewise.
50657
50658 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50659
50660         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50661         declared.
50662
50663 2008-05-20  Bruno Haible  <bruno@clisp.org>
50664
50665         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50666         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50667
50668 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50669
50670         * modules/memcmp-tests: New file.
50671         * tests/test-memcmp.c: New file.
50672
50673 2008-05-19  Bruno Haible  <bruno@clisp.org>
50674
50675         * modules/propername (Notice, configure.ac): Put quoted "..." into
50676         --keyword option.
50677         * lib/propername.h: Update comments accordingly.
50678         Reported by Eric Blake.
50679
50680 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50681
50682         * modules/getpass-gnu (Depends-on): Add fseeko.
50683
50684 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50685
50686         * modules/base64-tests: New file.
50687
50688 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50689
50690         * lib/base64.c (base64_decode_ctx): If a decode context structure
50691         was passed in use it to ignore newlines.  If a context structure
50692         was _not_ passed in, continue to treat newlines as garbage (this
50693         is the historical behavior).  Formerly base64_decode.
50694         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50695         takes a decode context structure.
50696         * lib/base64.h (base64_decode): Macro for four-argument calls.
50697         (base64_decode_alloc): Likewise.
50698         * lib/base64.c (base64_decode_ctx): If a decode context structure
50699         was passed in use it to ignore newlines.  If a context structure
50700         was _not_ passed in, continue to treat newlines as garbage (this
50701         is the historical behavior).  Formerly base64_decode.
50702         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50703         takes a decode context structure.
50704         * lib/base64.h (base64_decode): Macro for four-argument calls.
50705         (base64_decode_alloc): Likewise.
50706
50707 2008-05-19  Jim Meyering  <meyering@redhat.com>
50708
50709         avoid a warning from gcc
50710         * lib/trim.c (IF_LINT): Define.
50711         (trim2): Use it to avoid a "may be used uninitialized" warning.
50712
50713         Fix doc typo.
50714         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50715
50716 2008-05-19  Bruno Haible  <bruno@clisp.org>
50717
50718         * doc/glibc-functions/getpass.texi: Document limits of other
50719         implementations.
50720
50721 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50722             Bruno Haible <bruno@clisp.org>
50723
50724         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50725
50726 2008-05-18  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/propername: New file, from GNU gettext.
50729         * lib/propername.h: New file, from GNU gettext.
50730         * lib/propername.c: New file, from GNU gettext.
50731         * MODULES.html.sh (Internationalization functions): Add propername.
50732
50733 2008-05-16  Jim Meyering  <meyering@redhat.com>
50734             Bruno Haible  <bruno@clisp.org>
50735
50736         Avoid some warnings from "gcc -Wshadow".
50737         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50738
50739 2008-05-15  Eric Blake  <ebb9@byu.net>
50740
50741         Extend previous patch to cygwin 1.7.0.
50742         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50743         fast implementation in cygwin >= 1.7.0.
50744         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50746
50747 2008-05-15  Bruno Haible  <bruno@clisp.org>
50748
50749         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50750         implementation in glibc >= 2.9.
50751         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50753
50754 2008-05-15  Bruno Haible  <bruno@clisp.org>
50755
50756         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50757         (Unicode string functions): Add unilbrk/*.
50758         Reported by Karl Berry.
50759
50760 2008-05-15  Eric Blake  <ebb9@byu.net>
50761
50762         Fix violation of <stdbool.h> replacement in regex.
50763         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50764         * lib/regexec.c (re_search_internal): Likewise.
50765         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50766
50767 2008-05-15  Jim Meyering  <meyering@redhat.com>
50768
50769         avoid distracting test output when git or cvs is not found
50770         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50771         * tests/test-vc-list-files-git.sh: Likewise.
50772
50773 2008-05-15  Eric Blake  <ebb9@byu.net>
50774
50775         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50776         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50777         glibc version.
50778         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50779         * doc/posix-functions/strstr.texi (strstr): Likewise.
50780         * lib/str-two-way.h (MAX): Sychronize with glibc.
50781
50782 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50783
50784         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50785         opr.ctx_type.
50786         (calc_first): Initialize constraint field.
50787         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50788         Fix grammar.
50789         (duplicate_node): Merge constraint field for all node types.
50790         (calc_eclosure_iter): Look at constraint field for all node types.
50791         * lib/regex_internal.c (create_cd_newstate): Don't look at
50792         opr.ctx_type.
50793
50794 2008-05-14  Bruno Haible  <bruno@clisp.org>
50795
50796         Help GCC to do better code generation.
50797         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50798         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50799         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50800         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50801         Declare with attribute 'malloc' if supported.
50802
50803 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50804
50805         use "echo STR|wc -c" rather than unportable "expr length STR"
50806         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50807         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50808
50809 2008-05-14  Jim Meyering  <meyering@redhat.com>
50810
50811         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50812         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50813         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50814         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50815         via Collin Lasse.
50816
50817 2008-05-14  Eric Blake  <ebb9@byu.net>
50818
50819         Avoid quadratic growth in gl_LIBSOURCES.
50820         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50821         Suggested by Bruno Haible.
50822
50823         Test xmemdup0.
50824         * modules/xmemdup0-tests: New file.
50825         * tests/test-xmemdup0.c: Likewise.
50826
50827 2008-05-13  Eric Blake  <ebb9@byu.net>
50828
50829         Split xmemdup0 into its own module.
50830         * modules/xmemdup0: New file.
50831         * lib/xmemdup0.h: Likewise.
50832         * lib/xmemdup0.c: Likewise.
50833         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50834         * lib/xalloc.h (xmemdup0): Remove.
50835         * lib/xmalloc.c (xmemdup0): Likewise.
50836
50837 2008-05-13  Eric Blake  <ebb9@byu.net>
50838             Bruno Haible  <bruno@clisp.org>
50839
50840         Reduce number of forks required during autoconf.
50841         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50842         and gl_LIBSOURCES_DIR.
50843         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50844         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50845         m4_syscmd per file.
50846         <m4_foreach_w>: Move...
50847         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50848
50849 2008-05-13  Eric Blake  <ebb9@byu.net>
50850
50851         * gnulib-tool: Fix various comment typos.
50852
50853 2008-05-12  Bruno Haible  <bruno@clisp.org>
50854
50855         Tailor the linebreaking algorithm.
50856         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50857
50858 2008-05-12  Bruno Haible  <bruno@clisp.org>
50859
50860         Update to Unicode 5.0.0.
50861         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50862         LBP_JV, LBP_JT. Redistribute values.
50863         (unilbrk_table): Change size.
50864         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50865         Unicode TR#14 rev. 22.
50866         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50867         LBP_JV, LBP_JT. Redistribute values.
50868         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50869         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50870         Update.
50871         * lib/unilbrk/lbrkprop1.h: Regenerated.
50872         * lib/unilbrk/lbrkprop2.h: Regenerated.
50873         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50874         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50875         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50876         Likewise.
50877         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50878         Likewise.
50879         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50880         result.
50881         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50882         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50883         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50884         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50885         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50886         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50887
50888 2008-05-11  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50891
50892 2008-05-11  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50895         * modules/unilbrk/gen-lbrk: New file.
50896
50897 2008-05-11  Bruno Haible  <bruno@clisp.org>
50898
50899         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50900         * m4/sha512.m4 (gl_SHA512): Likewise.
50901
50902 2008-05-11  Jim Meyering  <meyering@redhat.com>
50903
50904         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50905         * modules/crypto/sha256: New file.
50906         * modules/crypto/sha512: Likewise.
50907         * lib/sha256.c: Likewise.
50908         * lib/sha256.h: Likewise.
50909         * lib/sha512.c: Likewise.
50910         * lib/sha512.h: Likewise.
50911         * lib/u64.h: Likewise.
50912         * m4/sha256.m4: Likewise.
50913         * m4/sha512.m4: Likewise.
50914         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50915
50916 2008-05-10  Bruno Haible  <bruno@clisp.org>
50917
50918         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50919         (Input/Output <stdio.h>): Add xprintf.
50920         (Signal handling <signal.h>): Add strsignal.
50921         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50922         (Core language properties): Add func.
50923         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50924         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50925         strings.
50926         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50927         (Input/output): New section.
50928         (File system functions): Add openat-die, stat-macros.
50929         (Networking functions): Add sockets.
50930         (Unicode string functions): Add unictype/*.
50931         (Support for building libraries and executables): Add gperf.
50932         (Support for building documentation): Add agpl-3.0.
50933         (Misc): Add nocrash.
50934
50935 2008-05-10  Bruno Haible  <bruno@clisp.org>
50936
50937         * modules/unictype/gen-ctype: New file.
50938
50939 2008-05-10  Jim Meyering  <meyering@redhat.com>
50940
50941         Make chdir-safer.c more efficient on a system with no symlinks.
50942         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50943         also if ELOOP is zero.  Suggested by Bruno Haible.
50944
50945         Make chdir-safer.c slightly safer.
50946         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50947         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50948
50949         Avoid compile failure on systems without ELOOP (like mingw).
50950         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50951         Reported by Bruno Haible.
50952
50953 2008-05-10  Bruno Haible  <bruno@clisp.org>
50954
50955         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50956         (is_utf8_encoding): Use a case-insensitive comparison.
50957         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50958         streq.
50959
50960 2008-05-10  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50963         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50964         * lib/unilbrk/ulc-common.h (iconv_string_length,
50965         iconv_string_keeping_offsets): Remove declarations.
50966         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50967         Don't include <iconv.h>, streq.h, xsize.h.
50968         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50969         conversion.
50970         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50971         <iconv.h>, streq.h, xsize.h.
50972         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50973         conversion.
50974         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50975         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50976         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50977         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50978
50979 2008-05-10  Bruno Haible  <bruno@clisp.org>
50980
50981         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50982         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50983
50984         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50985         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50986
50987         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50988         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50989
50990         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50991         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50992
50993         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50994         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50995
50996         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50997         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50998
50999         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51000         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51001
51002         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51003         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51004
51005 2008-05-10  Bruno Haible  <bruno@clisp.org>
51006
51007         Split up 'linebreak' module.
51008         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51009         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51010         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51011         modifications.
51012         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51013         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51014         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51015         lib/linebreak.c.
51016         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51017         lib/linebreak.c.
51018         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51019         lib/linebreak.c.
51020         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51021         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51022         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51023         lib/linebreak.c.
51024         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51025         lib/linebreak.c.
51026         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51027         lib/linebreak.c.
51028         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51029         lib/linebreak.c.
51030         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51031         lib/linebreak.c.
51032         * modules/unilbrk/base: New file.
51033         * modules/unilbrk/tables: New file.
51034         * modules/unilbrk/u8-possible-linebreaks: New file.
51035         * modules/unilbrk/u16-possible-linebreaks: New file.
51036         * modules/unilbrk/u32-possible-linebreaks: New file.
51037         * modules/unilbrk/ulc-common: New file.
51038         * modules/unilbrk/ulc-possible-linebreaks: New file.
51039         * modules/unilbrk/u8-width-linebreaks: New file.
51040         * modules/unilbrk/u16-width-linebreaks: New file.
51041         * modules/unilbrk/u32-width-linebreaks: New file.
51042         * modules/unilbrk/ulc-width-linebreaks: New file.
51043         * lib/linebreak.h: Remove file.
51044         * lib/linebreak.c: Remove file.
51045         * m4/linebreak.m4: Remove file.
51046         * modules/linebreak: Remove file.
51047         * NEWS: Mention the changes.
51048
51049 2008-05-09  Eric Blake  <ebb9@byu.net>
51050
51051         Add xmemdup0.
51052         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51053         implementation.
51054         * lib/xmalloc.c (xmemdup0): New C implementation.
51055
51056 2008-05-08  Bruno Haible  <bruno@clisp.org>
51057
51058         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51059
51060 2008-05-07  Eric Blake  <ebb9@byu.net>
51061
51062         Support cross-compilation of <wctype.h>.
51063         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51064         AC_CACHE_CHECK.
51065
51066 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51067
51068         * build-aux/vc-list-files: Add support for bzr.
51069
51070 2008-05-03  Jim Meyering  <meyering@redhat.com>
51071
51072         avoid failed assertion with tight malloc
51073         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51074
51075 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51076
51077         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51078         are needed from arpa/inet.h.
51079         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51080         Reported by Bruno Haible.
51081
51082 2008-05-02  Jim Meyering  <meyering@redhat.com>
51083
51084         avoid compilation error on FreeBSD 6
51085         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51086
51087 2008-05-01  Jim Meyering  <meyering@redhat.com>
51088
51089         useless-if-before-free: correct --help's exit status description
51090         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51091         for one or more matches, etc.  Reported by Bruno Haible.
51092
51093         vc-list-files: make the stand-alone gnulib test work
51094         * modules/vc-list-files-tests (configure.ac):
51095         Define and AC_SUBST abs_aux_dir.
51096         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51097         $(abs_top_srcdir) to each script and having each of them
51098         duplicate the work of setting PATH, set PATH here, using
51099         the new variable, abs_aux_dir instead.
51100         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51101         * tests/test-vc-list-files-git.sh: Likewise.
51102         Reported by Bruno Haible.
51103
51104 2008-05-01  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51107         reallocation. Rename 'done' to 'found_delimiter'.
51108
51109 2008-05-01  Jim Meyering  <meyering@redhat.com>
51110
51111         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51112         * build-aux/vc-list-files: Use `...`, not $(...).
51113
51114 2008-04-30  Jim Meyering  <meyering@redhat.com>
51115
51116         add tests for vc-list-files
51117         * modules/vc-list-files-tests: New module.
51118         * tests/test-vc-list-files-cvs.sh: New file.
51119         * tests/test-vc-list-files-git.sh: New file.
51120
51121         avoid a warning from gcc
51122         * lib/getndelim2.c (IF_LINT): Define.
51123         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51124
51125         vc-list-files: work properly with build-aux/cvsu, too
51126         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51127         to all cvs-based clauses.
51128
51129         vc-list-files: work properly in the CVS+awk case, too
51130         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51131
51132         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51133         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51134         take more than one file argument, so .  Add quotes, just in case $dir
51135         ever contains a shell meta-character.  Prompted by Soren Hansen in
51136         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51137
51138 2008-04-29  Eric Blake  <ebb9@byu.net>
51139
51140         Optimize getndelim2 to use block operations when possible.
51141         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51142         freadseek, and memchr2.
51143         * lib/getndelim2.c (getndelim2): Use them for block reads.
51144
51145 2008-04-29  Bruno Haible  <bruno@clisp.org>
51146
51147         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51148         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51149         * modules/inet_ntop (Depends-on): Add extensions.
51150         * modules/inet_pton (Depends-on): Likewise.
51151         Reported by Simon Josefsson.
51152
51153 2008-04-29  Jim Meyering  <meyering@redhat.com>
51154
51155         When the is more than one match in a block, match all of them.
51156         * build-aux/useless-if-before-free: Iterate through each block
51157         until there are no more matches.
51158
51159         Fix broken useless-if-before-free script.
51160         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51161         the expression to match cast of argument to free-like function.
51162
51163 2008-04-29  Eric Blake  <ebb9@byu.net>
51164
51165         Use new header.
51166         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51167
51168 2008-04-29  Jim Meyering  <meyering@redhat.com>
51169
51170         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51171         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51172         by gnulib to exist and to declare e.g., inet_ntop.
51173         Don't include "inet_ntop.h", now removed.
51174
51175         * m4/arpa_inet_h.m4: Remove trailing blanks.
51176
51177 2008-04-29  Eric Blake  <ebb9@byu.net>
51178
51179         Silence valgrind on safe reads beyond potential array bounds.
51180         * lib/rawmemchr.valgrind: New file.
51181         * lib/strchrnul.valgrind: Likewise.
51182         * modules/rawmemchr (Files): Distribute new file.
51183         * modules/strchrnul (Files): Likewise.
51184         Suggested by Bruno Haible.
51185
51186 2008-04-29  Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51189         (inet_ntop, inet_pton): Change portability warning's wording.
51190         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51191         Invoke gl_CHECK_NEXT_HEADERS.
51192         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51193         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51194         set ARPA_INET_H.
51195         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51196         * modules/arpa_inet (Description): No longer only for systems that
51197         lack it.
51198         (Depends-on): Add include_next.
51199         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51200         HAVE_ARPA_INET_H.
51201
51202 2008-04-29  Jim Meyering  <meyering@redhat.com>
51203
51204         * modules/mkdir (License): Re-license as LGPLv2+.
51205
51206 2008-04-29  Bruno Haible  <bruno@clisp.org>
51207
51208         * modules/rawmemchr (Maintainer): Set to Eric.
51209         * modules/strchrnul (Maintainer): Likewise.
51210
51211 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51212
51213         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51214         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51215
51216         * modules/arpa_inet (arpa/inet.h): Use them.
51217
51218 2008-04-28  Eric Blake  <ebb9@byu.net>
51219
51220         Test getndelim2.
51221         * modules/getndelim2-tests: New file.
51222         * tests/test-getndelim2.c: Likewise.
51223         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51224         stream.
51225         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51226
51227         * MODULES.html.sh: Document new module.
51228
51229 2008-04-20  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/c-stack.c (die): Use raise.
51232         * modules/c-stack (Depends-on): Add raise.
51233
51234 2008-04-28  Bruno Haible  <bruno@clisp.org>
51235
51236         Expect rpmatch to be declared.
51237         * lib/yesno.c (rpmatch): Remove declaration.
51238
51239         Declare rpmatch.
51240         * lib/stdlib.in.h (rpmatch): New declaration.
51241         * lib/rpmatch.c: Include <stdlib.h> first.
51242         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51243         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51245         HAVE_RPMATCH.
51246         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51247         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51248         (Include): Set to <stdlib.h>.
51249         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51250         HAVE_RPMATCH.
51251         * NEWS: Document the change.
51252
51253 2008-04-28  Bruno Haible  <bruno@clisp.org>
51254
51255         Change rpmatch to use nl_langinfo when appropriate.
51256         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51257         (N_): New macro.
51258         (localized_pattern): New function/macro.
51259         (try): Remove match, nomatch arguments. Copy the pattern into safe
51260         memory before caching it.
51261         (rpmatch): Use localized_pattern. Add translator comments.
51262         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51263         Suggested by Eric Blake.
51264         * modules/rpmatch (Depends-on): Add stdbool.
51265
51266 2008-04-28  Eric Blake  <ebb9@byu.net>
51267
51268         Add rawmemchr module, matching glibc.
51269         * modules/string (Makefile.am): New indicator.
51270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51271         * lib/string.in.h (rawmemchr): Declare when appropriate.
51272         * modules/rawmemchr: New file.
51273         * m4/rawmemchr.m4: Likewise.
51274         * lib/rawmemchr.c: Likewise.
51275         * modules/rawmemchr-tests: Likewise.
51276         * tests/test-rawmemchr.c: Likewise.
51277         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51278         module.
51279         * modules/strchrnul (Depends-on): Add rawmemchr.
51280         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51281
51282         Whitespace cleanup.
51283         * tests/test-strchrnul.c: Reindent.
51284         * lib/strchrnul.c: Likewise.
51285
51286         Optimize and test strchrnul.
51287         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51288         * modules/strchrnul-tests: New file.
51289         * tests/test-strchrnul.c: Likewise.
51290
51291         Remove intprops dependency.
51292         * modules/memchr (Depends-on): Remove intprops.
51293         * modules/memrchr (Depends-on): Likewise.
51294         * modules/memchr2 (Depends-on): Likewise.
51295         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51296         * lib/memrchr.c (__memrchr): Likewise.
51297         * lib/memrchr2.c (memchr2): Likewise.
51298         Reported by Simon Josefsson.
51299
51300 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51301
51302         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51303         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51304
51305 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51306
51307         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51308
51309         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51310
51311         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51312
51313         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51314         declarations.
51315         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51316
51317         * m4/inet_pton.m4: Don't check for header files.
51318
51319         * m4/inet_ntop.m4: Don't check for header files.
51320
51321 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51322
51323         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51324         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51325         trigger for cygwin).
51326         Reported by Bruno Haible  <bruno@clisp.org>.
51327
51328 2008-04-28  Bruno Haible  <bruno@clisp.org>
51329
51330         * doc/posix-functions/strdup.texi: Mention mingw problem.
51331
51332 2008-04-27  Bruno Haible  <bruno@clisp.org>
51333
51334         * modules/stat-time-tests (Depends-on): Add sleep.
51335         * tests/test-stat-time.c (force_unlink): New function.
51336         (cleanup): Use it.
51337         (test_mtime): Remove the ctime related tests.
51338         (test_ctime): New function, containing the ctime related tests.
51339         (main): Call test_ctime, except on native Windows platforms.
51340
51341 2008-04-27  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/rpmatch.c (rpmatch): Add some comments.
51344         Reported by James Youngman <jay@gnu.org>.
51345
51346 2008-04-27  Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51349         quiet NaNs.
51350
51351 2008-04-27  Bruno Haible  <bruno@clisp.org>
51352
51353         Make test-yesno.sh work on mingw.
51354         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51355         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51356         (main): Set stdin to binary mode.
51357         * modules/yesno-tests (Depends-on): Add binary-io.
51358
51359 2008-04-27  Bruno Haible  <bruno@clisp.org>
51360
51361         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51362         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51363         argument that lie outside the IEEE 854 domain.
51364         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51365         (gl_ISFINITE): Use it.
51366         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51367
51368 2008-04-27  Bruno Haible  <bruno@clisp.org>
51369
51370         Allow local renaming in config.h.
51371         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51372
51373 2008-04-27  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/memchr.c (__memchr): Change type of 'i'.
51376         * lib/memchr2.c (memchr2): Likewise.
51377
51378 2008-04-26  Eric Blake  <ebb9@byu.net>
51379         and Bruno Haible  <bruno@clisp.org>
51380
51381         Optimize and test memrchr.
51382         * modules/memrchr (Depends-on): Add intprops.
51383         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51384         * modules/memrchr-tests: New file.
51385         * tests/test-memrchr.c: New file.
51386
51387 2008-04-26  Bruno Haible  <bruno@clisp.org>
51388
51389         Add tentative support for DragonFly BSD.
51390         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51391         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51392         fp.
51393         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51394         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51395         * lib/fpurge.c (fpurge): Likewise.
51396         * lib/freadable.c (freaadable): Likewise.
51397         * lib/freadahead.c (freadahead): Likewise.
51398         * lib/freading.c (freading): Likewise.
51399         * lib/freadptr.c (freadptr): Likewise.
51400         * lib/freadseek.c (freadptrinc): Likewise.
51401         * lib/fseeko.c (fseeko): Likewise.
51402         * lib/fseterr.c (fseterr): Likewise.
51403         * lib/fwritable.c (fwritable): Likewise.
51404         * lib/fwriting.c (fwriting): Likewise.
51405
51406 2008-04-26  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/stdio-impl.h: New file.
51409         * lib/fbufmode.c: Include stdio-impl.h.
51410         (fbufmode): Use fp_, remove redundant #defines.
51411         * lib/fflush.c: Include stdio-impl.h.
51412         (clear_ungetc_buffer): Remove redundant #defines.
51413         * lib/fpurge.c: Include stdio-impl.h.
51414         (fpurge): Remove redundant #defines.
51415         * lib/freadable.c: Include stdio-impl.h.
51416         (freadable): Remove redundant #defines.
51417         * lib/freadahead.c: Include stdio-impl.h.
51418         (freadahead): Remove redundant #defines.
51419         * lib/freading.c: Include stdio-impl.h.
51420         (freading): Remove redundant #defines.
51421         * lib/freadptr.c: Include stdio-impl.h.
51422         (freadptr): Remove redundant #defines.
51423         * lib/freadseek.c: Include stdio-impl.h.
51424         (freadptrinc): Remove redundant #defines.
51425         * lib/fseeko.c: Include stdio-impl.h.
51426         (rpl_fseeko): Remove redundant #defines.
51427         * lib/fseterr.c: Include stdio-impl.h.
51428         (fseterr): Remove redundant #defines.
51429         * lib/fwritable.c: Include stdio-impl.h.
51430         (fwritable: Remove redundant #defines.
51431         * lib/fwriting.c: Include stdio-impl.h.
51432         (fwriting): Remove redundant #defines.
51433         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51434         * modules/fflush (Files): Likewise.
51435         * modules/fpurge (Files): Likewise.
51436         * modules/freadable (Files): Likewise.
51437         * modules/freadahead (Files): Likewise.
51438         * modules/freading (Files): Likewise.
51439         * modules/freadptr (Files): Likewise.
51440         * modules/freadseek (Files): Likewise.
51441         * modules/fseeko (Files): Likewise.
51442         * modules/fseterr (Files): Likewise.
51443         * modules/fwritable (Files): Likewise.
51444         * modules/fwriting (Files): Likewise.
51445
51446 2008-04-26  Bruno Haible  <bruno@clisp.org>
51447
51448         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51449         restore_seek_optimization, update_fpos_cache): New functions, extracted
51450         from rpl_fflush.
51451         (rpl_fflush): Use them.
51452         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51453         (gl_REPLACE_FFLUSH): Use it.
51454
51455 2008-04-26  Bruno Haible  <bruno@clisp.org>
51456
51457         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51458         on Solaris.
51459         * tests/test-xstrtoimax.sh: Likewise.
51460         * tests/test-xstrtoumax.sh: Likewise.
51461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51462
51463 2008-04-26  Bruno Haible  <bruno@clisp.org>
51464
51465         * modules/memchr-tests: New file.
51466         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51467
51468 2008-04-26  Eric Blake  <ebb9@byu.net>
51469             Bruno Haible  <bruno@clisp.org>
51470
51471         * lib/memchr.c: Include intprops.h.
51472         (__memchr): Optimize parallel detection of matching bytes. Rename local
51473         variables. Add explanatory comments.
51474
51475 2008-04-26  Bruno Haible  <bruno@clisp.org>
51476
51477         Fix module 'memchr', broken since 2000-10-28.
51478         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51479
51480 2008-04-26  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51483         comments.
51484
51485 2008-04-25  Eric Blake  <ebb9@byu.net>
51486
51487         Use native fstatat on cygwin 1.7.0.
51488         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51489         first.
51490
51491 2008-04-23  Eric Blake  <ebb9@byu.net>
51492
51493         Improve memchr2 performance.
51494         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51495         NUL bytes.
51496         * modules/memchr2 (Depends-on): Use intprops.h.
51497
51498 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51499
51500         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51501         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51502         <blp@cs.stanford.edu>.
51503
51504 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51505
51506         * lib/arpa_inet.in.h: New file.
51507
51508         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51509         (Makefile.am): Sed in substitute header file.
51510
51511         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51512         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51513
51514         * modules/inet_ntop (configure.ac): Use
51515         gl_ARPA_INET_MODULE_INDICATOR.
51516
51517         * modules/inet_pton (configure.ac): Use
51518         gl_ARPA_INET_MODULE_INDICATOR.
51519
51520 2008-04-22  Jim Meyering  <meyering@redhat.com>
51521
51522         * modules/verify (License): Re-license as LGPLv2+.
51523
51524 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51525
51526         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51527         parameter to void* as per POSIX standard (MinGW uses char*).
51528
51529 2008-04-21  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51532         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51533         Define to replacements if REPLACE_ISWCNTRL is 1.
51534         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51535         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51536         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51537         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51538         what it fixes.
51539         * doc/posix-functions/iswalpha.texi: Likewise.
51540         * doc/posix-functions/iswblank.texi: Likewise.
51541         * doc/posix-functions/iswcntrl.texi: Likewise.
51542         * doc/posix-functions/iswdigit.texi: Likewise.
51543         * doc/posix-functions/iswgraph.texi: Likewise.
51544         * doc/posix-functions/iswlower.texi: Likewise.
51545         * doc/posix-functions/iswprint.texi: Likewise.
51546         * doc/posix-functions/iswpunct.texi: Likewise.
51547         * doc/posix-functions/iswspace.texi: Likewise.
51548         * doc/posix-functions/iswupper.texi: Likewise.
51549         * doc/posix-functions/iswxdigit.texi: Likewise.
51550         Reported by Alain Guibert.
51551
51552 2008-04-21  Bruno Haible  <bruno@clisp.org>
51553
51554         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51555         Patch by Alain Guibert.
51556
51557 2008-04-21  Bruno Haible  <bruno@clisp.org>
51558
51559         Fix test failures on mingw.
51560         * tests/test-xstrtol.c (print_no_progname): New function.
51561         (main): Install it in error_print_progname hook.
51562         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51563         * tests/test-xstrtoimax.sh: Likewise.
51564         * tests/test-xstrtoumax.sh: Likewise.
51565
51566 2008-04-21  Bruno Haible  <bruno@clisp.org>
51567
51568         Fix test failure on mingw.
51569         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51570
51571 2008-04-21  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51574         Actually assign a value.
51575
51576 2008-04-20  Bruno Haible  <bruno@clisp.org>
51577
51578         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51579         take 2.
51580         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51581         'canonicalize-lgpl' module is also used.
51582         * lib/canonicalize-lgpl.c: Undo last change.
51583         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51584
51585 2008-04-20  Bruno Haible  <bruno@clisp.org>
51586
51587         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51588         config.h. Provide _mkdir based fallback for mingw.
51589         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51590         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51591         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51592         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51593         rather than defining mkdir in config.h.
51594         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51595         (gl_SYS_STAT_H_DEFAULTS): New macro.
51596         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51597         HAVE_IO_H any more.
51598         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51599         HAVE_DECL_MKDIR and HAVE_IO_H.
51600
51601 2008-04-20  Bruno Haible  <bruno@clisp.org>
51602
51603         * lib/isapipe.c: Port to native Windows platforms.
51604
51605 2008-04-20  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51608
51609 2008-04-21  Eric Blake  <ebb9@byu.net>
51610
51611         Work around preprocessors that don't handle UINTMAX_MAX.
51612         * lib/memchr2.c (memchr2): Avoid embedded #if.
51613         Reported by Alain Guibert, fix suggested by Bruno Haible.
51614
51615 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51616
51617         * doc/posix-functions/strftime.texi (strftime): Explain better
51618         Windows incompatibility.  Suggested by Micah Cowan
51619         <micah@cowan.name>.
51620
51621 2008-04-20  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51624         unistr/u8-mblen.
51625
51626 2008-04-20  Bruno Haible  <bruno@clisp.org>
51627
51628         Fix test failure on platforms with non-GNU iconv.
51629         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51630         (U_TO_U8): Use it, rather than u16_to_u8.
51631         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51632         units at the end of the input string.
51633         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51634
51635 2008-04-20  Bruno Haible  <bruno@clisp.org>
51636
51637         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51638         when the resulting length is 0.
51639         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51640
51641 2008-04-20  Bruno Haible  <bruno@clisp.org>
51642
51643         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51644         works.
51645         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51646
51647 2008-04-20  Bruno Haible  <bruno@clisp.org>
51648
51649         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51650         * modules/tsearch-tests (configure.ac): Test for initstate function.
51651
51652 2008-04-20  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51655         for nlink_t if missing.
51656         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51657
51658 2008-04-19  Bruno Haible  <bruno@clisp.org>
51659
51660         Work around snprintf bug on Linux libc5.
51661         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51663         gl_SNPRINTF_SIZE1.
51664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51665         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51666         that test failed.
51667         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51668         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51669         * modules/snprintf (Files): Add m4/printf.m4.
51670         * modules/vsnprintf (Files): Likewise.
51671         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51672         * doc/posix-functions/vsnprintf.texi: Likewise.
51673
51674 2008-04-19  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51677         from 0.0058 to less than 10^-7.
51678
51679 2008-04-19  Bruno Haible  <bruno@clisp.org>
51680
51681         Fix rounding when a precision is given.
51682         * lib/vasnprintf.c (is_borderline): New function.
51683         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51684         9...9x.
51685         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51686         %e, %g.
51687         * tests/test-vasprintf-posix.c (test_function): Likewise.
51688         * tests/test-snprintf-posix.h (test_function): Likewise.
51689         * tests/test-sprintf-posix.h (test_function): Likewise.
51690         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51691         * tests/test-printf-posix.h (test_function): Likewise.
51692         * tests/test-printf-posix.output: Update.
51693         Reported by John Darrington <john@darrington.wattle.id.au> via
51694         Ben Pfaff <blp@cs.stanford.edu>.
51695
51696 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51697
51698         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51699         Suggested by Bruno Haible <bruno@clisp.org>.
51700
51701 2008-04-17  Bruno Haible  <bruno@clisp.org>
51702
51703         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51704         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51705         implementation.
51706         Patch by Bruce Merry <bmerry@gmail.com>.
51707
51708 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51709
51710         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51711         doesn't work under Windows.
51712
51713 2008-04-16  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51716         New macros.
51717         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51718         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51719         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51720         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51721         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51722         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51723         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51724         macros.
51725         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51726         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51727         Northern Sotho, Uighur.
51728
51729 2008-04-16  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51732         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51733         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51734         Reported by Daniel Bergström <daniel@octocode.com>.
51735
51736 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51737             Bruno Haible  <bruno@clisp.org>
51738
51739         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51740         function.
51741         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51742         New functions, mostly extracted from gl_locale_name_default.
51743         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51744
51745 2008-04-16  Eric Blake  <ebb9@byu.net>
51746
51747         Adjust strtod detection to catch glibc 2.7 bug.
51748         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51749         Reported by John Gatewood Ham.
51750
51751 2008-04-16  Bruno Haible  <bruno@clisp.org>
51752
51753         Add tentative support for Linux libc5.
51754         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51755         * lib/fpurge.c (fpurge): Likewise.
51756         * lib/freadable.c (freadable): Likewise.
51757         * lib/freadahead.c (freadahead): Likewise.
51758         * lib/freading.c (freading): Likewise.
51759         * lib/freadptr.c (freadptr): Likewise.
51760         * lib/freadseek.c (freadptrinc): Likewise.
51761         * lib/fseeko.c (rpl_fseeko): Likewise.
51762         * lib/fseterr.c (fseterr): Likewise.
51763         * lib/fwritable.c (fwritable): Likewise.
51764         * lib/fwriting.c (fwriting): Likewise.
51765         Reported by Alain Guibert <alguibert+bts@free.fr>.
51766
51767 2008-04-15  Bruno Haible  <bruno@clisp.org>
51768
51769         * modules/mathl (configure.ac): Define module indicator.
51770
51771 2008-04-15  Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/logl.c (logl): Remove unused variables.
51774
51775 2008-04-15  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51778         fails.
51779
51780 2008-04-15  Bruno Haible  <bruno@clisp.org>
51781
51782         * lib/trim.c (trim2): Fix argument of isspace() macro.
51783
51784 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51785
51786         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51787         to 0.
51788         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51789
51790 2008-04-14  Bruno Haible  <bruno@clisp.org>
51791
51792         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51793         AC_LANG_PROGRAM argument.
51794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51795         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51797         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51798         * m4/math_h.m4 (gl_MATH_H): Likewise.
51799         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51800         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51801         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51802         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51803         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51804         * m4/regex.m4 (gl_REGEX): Likewise.
51805         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51806         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51808         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51810         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51811         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51812         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51813
51814 2008-04-14  Jim Meyering  <meyering@redhat.com>
51815
51816         test-strtod: fix typos: s/abs/fabs/
51817         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51818
51819 2008-04-13  Bruno Haible  <bruno@clisp.org>
51820
51821         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51822         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51823         module is also used and while not building the reloc-wrapper.
51824
51825 2008-04-13  Bruno Haible  <bruno@clisp.org>
51826
51827         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51828
51829 2008-04-13  Bruno Haible  <bruno@clisp.org>
51830
51831         Fix AIX compilation failure introduced on 2008-04-02.
51832         * tests/test-frexp.c (exp): Undefine before redefining.
51833         * tests/test-frexpl.c (exp): Likewise.
51834
51835 2008-04-13  Bruno Haible  <bruno@clisp.org>
51836
51837         Work around a HP-UX stdio bug.
51838         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51839         * tests/test-ftello.c (main): Likewise.
51840         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51841         * doc/posix-functions/ftello.texi: Likewise.
51842
51843 2008-04-13  Bruno Haible  <bruno@clisp.org>
51844
51845         Make test-signbit pass on HP-UX/hppa.
51846         * tests/test-signbit.c (minus_zerol): New variable.
51847         (test_signbitl): Use it.
51848
51849 2008-04-13  Bruno Haible  <bruno@clisp.org>
51850
51851         Make truncl work on OSF/1 4.0.
51852         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51853         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51854         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51856         HAVE_DECL_TRUNCL.
51857         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51858         HAVE_DECL_TRUNCL.
51859         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51860
51861 2008-04-13  Bruno Haible  <bruno@clisp.org>
51862
51863         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51864
51865 2008-04-13  Bruno Haible  <bruno@clisp.org>
51866
51867         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51868         expression, so as to avoid HP-UX 11 cc compiler bug.
51869
51870 2008-04-13  Bruno Haible  <bruno@clisp.org>
51871
51872         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51873
51874 2008-04-13  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/git-merge-changelog.c: Remove empty declaration outside of
51877         functions.
51878
51879 2008-04-13  Bruno Haible  <bruno@clisp.org>
51880
51881         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51882
51883 2008-04-13  Bruno Haible  <bruno@clisp.org>
51884
51885         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51886         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51888         also if it exists but lacks definitions of the SHUT_* macros.
51889         * modules/sys_socket (Description): Update.
51890         Reported by Elbert Pol <e.pol@chello.nl>.
51891
51892 2008-04-13  Bruno Haible  <bruno@clisp.org>
51893
51894         * lib/localcharset.c (OS2): Don't redefine if already defined.
51895         Reported by Elbert Pol <e.pol@chello.nl>.
51896
51897 2008-04-13  Bruno Haible  <bruno@clisp.org>
51898
51899         * lib/binary-io.h [__EMX__]: Include <io.h>.
51900         Reported by Elbert Pol <e.pol@chello.nl>.
51901
51902 2008-04-12  Bruno Haible  <bruno@clisp.org>
51903
51904         * lib/fpucw.h: Enable the definitions also for x86_64.
51905         Needed for NetBSD/x86_64.
51906         Reported by Thomas Klausner <tk@giga.or.at>.
51907
51908 2008-04-12  Bruno Haible  <bruno@clisp.org>
51909
51910         * tests/test-strtod.c: Include isnand.h.
51911         (main): Use isnand instead of isnan.
51912         Reported by Jim Meyering.
51913
51914 2008-04-12  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51917         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51918
51919 2008-04-12  Jim Meyering  <meyering@redhat.com>
51920
51921         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51922
51923 2008-04-12  Bruno Haible  <bruno@clisp.org>
51924
51925         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51926         Reported by Elbert Pol <e.pol@chello.nl>.
51927
51928 2008-04-12  Eric Blake  <ebb9@byu.net>
51929
51930         Work around Solaris 10 math.h bug.
51931         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51932         (gl_MATH_H_DEFAULTS): Set up default.
51933         * modules/math (Makefile.am): Replace new indicators.
51934         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51935         * tests/test-math.c (main): Test this.
51936         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51937         * doc/posix-headers/math.texi (math.h): Mention bug.
51938         Reported by Nelson H. F. Beebe and Jim Meyering.
51939
51940 2008-04-11  Bruno Haible  <bruno@clisp.org>
51941
51942         Adapt to future versions of Apple GCC.
51943         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51944         Reported by Peter O'Gorman <peter@pogma.com>.
51945
51946 2008-04-11  Bruno Haible  <bruno@clisp.org>
51947
51948         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51949
51950 2008-04-11  Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51953
51954         * modules/getaddrinfo-tests (Makefile.am): Define
51955         test_getaddrinfo_LDADD.
51956
51957 2008-04-11  Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51960         (init): Fix syntax error.
51961         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51962         is declared.
51963
51964 2008-04-11  Bruno Haible  <bruno@clisp.org>
51965
51966         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51967         * modules/glob (Depends-on): Add stdbool.
51968
51969 2008-04-11  Bruno Haible  <bruno@clisp.org>
51970
51971         * lib/trim.c: Include <string.h>.
51972
51973 2008-04-11  Eric Blake  <ebb9@byu.net>
51974
51975         Avoid compile failure on OS/2.
51976         * lib/regex_internal.h (internal_function): Disable optimization
51977         on OS/2 (__EMX__), where it caused compiler error.
51978         Reported by Elbert Pol.
51979
51980 2008-04-11  Bruno Haible  <bruno@clisp.org>
51981
51982         Flush the standard error stream before aborting. Needed on mingw.
51983         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51984         * tests/test-array_list.c (ASSERT): Likewise.
51985         * tests/test-array_oset.c (ASSERT): Likewise.
51986         * tests/test-avltree_list.c (ASSERT): Likewise.
51987         * tests/test-avltree_oset.c (ASSERT): Likewise.
51988         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51989         * tests/test-binary-io.c (ASSERT): Likewise.
51990         * tests/test-byteswap.c (ASSERT): Likewise.
51991         * tests/test-c-ctype.c (ASSERT): Likewise.
51992         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51993         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51994         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51995         * tests/test-c-strstr.c (ASSERT): Likewise.
51996         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51997         * tests/test-canonicalize.c (ASSERT): Likewise.
51998         * tests/test-carray_list.c (ASSERT): Likewise.
51999         * tests/test-ceilf1.c (ASSERT): Likewise.
52000         * tests/test-ceilf2.c (ASSERT): Likewise.
52001         * tests/test-ceill.c (ASSERT): Likewise.
52002         * tests/test-count-one-bits.c (ASSERT): Likewise.
52003         * tests/test-fbufmode.c (ASSERT): Likewise.
52004         * tests/test-fflush2.c (ASSERT): Likewise.
52005         * tests/test-floorf1.c (ASSERT): Likewise.
52006         * tests/test-floorf2.c (ASSERT): Likewise.
52007         * tests/test-floorl.c (ASSERT): Likewise.
52008         * tests/test-fopen.c (ASSERT): Likewise.
52009         * tests/test-fpending.c (ASSERT): Likewise.
52010         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52011         * tests/test-fpurge.c (ASSERT): Likewise.
52012         * tests/test-freadable.c (ASSERT): Likewise.
52013         * tests/test-freadahead.c (ASSERT): Likewise.
52014         * tests/test-freading.c (ASSERT): Likewise.
52015         * tests/test-freadptr.c (ASSERT): Likewise.
52016         * tests/test-freadptr2.c (ASSERT): Likewise.
52017         * tests/test-freadseek.c (ASSERT): Likewise.
52018         * tests/test-freopen.c (ASSERT): Likewise.
52019         * tests/test-frexp.c (ASSERT): Likewise.
52020         * tests/test-frexpl.c (ASSERT): Likewise.
52021         * tests/test-fseek.c (ASSERT): Likewise.
52022         * tests/test-fseeko.c (ASSERT): Likewise.
52023         * tests/test-fstrcmp.c (ASSERT): Likewise.
52024         * tests/test-ftell.c (ASSERT): Likewise.
52025         * tests/test-ftello.c (ASSERT): Likewise.
52026         * tests/test-func.c (ASSERT): Likewise.
52027         * tests/test-fwritable.c (ASSERT): Likewise.
52028         * tests/test-fwriting.c (ASSERT): Likewise.
52029         * tests/test-getdelim.c (ASSERT): Likewise.
52030         * tests/test-getline.c (ASSERT): Likewise.
52031         * tests/test-i-ring.c (ASSERT): Likewise.
52032         * tests/test-iconv-utf.c (ASSERT): Likewise.
52033         * tests/test-iconv.c (ASSERT): Likewise.
52034         * tests/test-isfinite.c (ASSERT): Likewise.
52035         * tests/test-isnand.c (ASSERT): Likewise.
52036         * tests/test-isnanf.c (ASSERT): Likewise.
52037         * tests/test-isnanl.h (ASSERT): Likewise.
52038         * tests/test-ldexpl.c (ASSERT): Likewise.
52039         * tests/test-linked_list.c (ASSERT): Likewise.
52040         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52041         * tests/test-localename.c (ASSERT): Likewise.
52042         * tests/test-lseek.c (ASSERT): Likewise.
52043         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52044         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52045         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52046         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52047         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52048         * tests/test-mbschr.c (ASSERT): Likewise.
52049         * tests/test-mbscspn.c (ASSERT): Likewise.
52050         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52051         * tests/test-mbspbrk.c (ASSERT): Likewise.
52052         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52053         * tests/test-mbsrchr.c (ASSERT): Likewise.
52054         * tests/test-mbsspn.c (ASSERT): Likewise.
52055         * tests/test-mbsstr1.c (ASSERT): Likewise.
52056         * tests/test-mbsstr2.c (ASSERT): Likewise.
52057         * tests/test-mbsstr3.c (ASSERT): Likewise.
52058         * tests/test-memchr2.c (ASSERT): Likewise.
52059         * tests/test-memmem.c (ASSERT): Likewise.
52060         * tests/test-open.c (ASSERT): Likewise.
52061         * tests/test-printf-frexp.c (ASSERT): Likewise.
52062         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52063         * tests/test-printf-posix.c (ASSERT): Likewise.
52064         * tests/test-quotearg.c (ASSERT): Likewise.
52065         * tests/test-rbtree_list.c (ASSERT): Likewise.
52066         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52067         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52068         * tests/test-round1.c (ASSERT): Likewise.
52069         * tests/test-roundf1.c (ASSERT): Likewise.
52070         * tests/test-roundl.c (ASSERT): Likewise.
52071         * tests/test-signbit.c (ASSERT): Likewise.
52072         * tests/test-sleep.c (ASSERT): Likewise.
52073         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52074         * tests/test-snprintf.c (ASSERT): Likewise.
52075         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52076         * tests/test-stat-time.c (ASSERT): Likewise.
52077         * tests/test-strcasestr.c (ASSERT): Likewise.
52078         * tests/test-strerror.c (ASSERT): Likewise.
52079         * tests/test-striconv.c (ASSERT): Likewise.
52080         * tests/test-striconveh.c (ASSERT): Likewise.
52081         * tests/test-striconveha.c (ASSERT): Likewise.
52082         * tests/test-strsignal.c (ASSERT): Likewise.
52083         * tests/test-strstr.c (ASSERT): Likewise.
52084         * tests/test-strtod.c (ASSERT): Likewise.
52085         * tests/test-trunc1.c (ASSERT): Likewise.
52086         * tests/test-trunc2.c (ASSERT): Likewise.
52087         * tests/test-truncf1.c (ASSERT): Likewise.
52088         * tests/test-truncf2.c (ASSERT): Likewise.
52089         * tests/test-truncl.c (ASSERT): Likewise.
52090         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52091         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52092         * tests/test-vasnprintf.c (ASSERT): Likewise.
52093         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52094         * tests/test-vasprintf.c (ASSERT): Likewise.
52095         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52096         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52097         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52098         * tests/test-vsnprintf.c (ASSERT): Likewise.
52099         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52100         * tests/test-wcwidth.c (ASSERT): Likewise.
52101         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52102         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52103         * tests/test-xvasprintf.c (ASSERT): Likewise.
52104         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52105         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52106         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52107         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52108         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52109         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52110         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52111         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52112         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52113         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52114         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52115         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52116         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52117         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52118         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52119         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52120         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52121         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52122         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52123         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52124         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52125         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52126         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52127         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52128         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52129         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52130         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52131         * tests/unictype/test-combining.c (ASSERT): Likewise.
52132         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52133         * tests/unictype/test-digit.c (ASSERT): Likewise.
52134         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52135         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52136         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52137         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52138         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52139         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52140         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52141         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52142         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52143         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52144         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52145         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52146         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52147         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52148         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52149         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52150         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52151         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52152         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52153         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52154         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52155         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52156         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52157         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52158         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52159         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52160         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52161         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52162         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52163         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52164         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52165         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52166         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52167         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52168         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52169         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52170         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52171         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52172         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52173         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52174         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52175         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52176         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52177         Reported by Eric Blake.
52178
52179 2008-04-11  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/wchar.in.h: Tweak comment.
52182
52183 2008-04-11  Bruno Haible  <bruno@clisp.org>
52184
52185         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52186         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52187         gl_COMMON.
52188         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52189
52190 2008-04-11  Bruno Haible  <bruno@clisp.org>
52191
52192         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52193
52194 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52195
52196         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52197         of attempting to use non-existing /dev/*random.  Based on patch
52198         from Adam Strzelecki <ono@java.pl> in
52199         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52200
52201 2008-04-08  Bruno Haible  <bruno@clisp.org>
52202
52203         Add tentative support for emx+gcc.
52204         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52205         * lib/fpurge.c (fpurge): Likewise.
52206         * lib/freadable.c (freadable): Likewise.
52207         * lib/freadahead.c (freadahead): Likewise.
52208         * lib/freading.c (freading): Likewise.
52209         * lib/freadptr.c (freadptr): Likewise.
52210         * lib/freadseek.c (freadptrinc): Likewise.
52211         * lib/fseeko.c (rpl_fseeko): Likewise.
52212         * lib/fseterr.c (fseterr): Likewise.
52213         * lib/fwritable.c (fwritable): Likewise.
52214         * lib/fwriting.c (fwriting): Likewise.
52215         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52216
52217 2008-04-09  Eric Blake  <ebb9@byu.net>
52218
52219         Avoid some autoconf warnings.
52220         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52221         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52222         * m4/afs.m4 (gl_AFS): Likewise.
52223         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52224         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52225         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52226         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52227         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52228         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52229         (AC_CHECK_DECLS_ONCE): Likewise.
52230         Rename file...
52231         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52232         gnulib-tool requires autoconf 2.59 or better.
52233         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52234
52235 2008-04-08  Eric Blake  <ebb9@byu.net>
52236
52237         Use 'git describe --match' if present (added in git 1.5.5).
52238         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52239         if possible.
52240
52241 2008-04-08  Bruno Haible  <bruno@clisp.org>
52242
52243         Add tentative support for OpenServer.
52244         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52245         _ptr, _cnt.
52246         * lib/fpurge.c (fpurge): Likewise.
52247         * lib/freadable.c (freadable): Likewise.
52248         * lib/freadahead.c (freadahead): Likewise.
52249         * lib/freading.c (freading): Likewise.
52250         * lib/freadptr.c (freadptr): Likewise.
52251         * lib/freadseek.c (freadptrinc): Likewise.
52252         * lib/fseeko.c (rpl_fseeko): Likewise.
52253         * lib/fseterr.c (fseterr): Likewise.
52254         * lib/fwritable.c (fwritable): Likewise.
52255         * lib/fwriting.c (fwriting): Likewise.
52256         Reported by Roger Cornelius <rac@tenzing.org> and
52257         Brian K. White <brian@aljex.com>.
52258
52259 2008-04-06  Jim Meyering  <meyering@redhat.com>
52260
52261         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52262
52263 2008-04-06  Bruno Haible  <bruno@clisp.org>
52264
52265         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52266         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52267         * tests/test-printf-posix.sh: Likewise.
52268         * tests/test-vfprintf-posix.sh: Likewise.
52269         * tests/test-vprintf-posix.sh: Likewise.
52270         * tests/test-xprintf-posix.sh: Likewise.
52271
52272 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52273
52274         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52275         hide error from 'ls', needed on OS/2.
52276         Report by Elbert Pol <elbert.pol@gmail.com>.
52277
52278 2008-04-04  Eric Blake  <ebb9@byu.net>
52279
52280         Make test-fseeko.c failures meaningful.
52281         * tests/test-fseeko.c: Print line number on failure.
52282         * tests/test-fseek.c: Likewise.
52283         Reported by Nelson H. F. Beebe.
52284
52285         Improve strtod bug detection check.
52286         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52287         required for Solaris 10.
52288         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52289
52290 2008-04-04  Bruno Haible  <bruno@clisp.org>
52291
52292         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52293         by m4/setenv.m4.
52294
52295 2008-04-03  Eric Blake  <ebb9@byu.net>
52296
52297         Ensure sane .version contents.
52298         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52299         version string.
52300         * build-aux/git-version-gen: Improve documentation.
52301
52302         Make GNU make output nicer.
52303         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52304         MAKECMDGOALS to enforce message for all command line targets.  Set
52305         srcdir for use in maint.mk.
52306
52307         Another maintainer tweak.
52308         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52309         a target that regenerates version.
52310
52311 2008-04-03  Jim Meyering  <meyering@redhat.com>
52312
52313         vc-list-files: don't cause coreutils "make po-check" failure
52314         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52315
52316 2008-04-03  Eric Blake  <ebb9@byu.net>
52317
52318         Allow VPATH usage of vc-list-files.
52319         * build-aux/vc-list-files (scriptversion): Add timestamp.
52320         (options): Add --help, --version, -C.
52321         (CVS): Support installed cvsu.
52322
52323 2008-04-02  Bruno Haible  <bruno@clisp.org>
52324
52325         Avoid some "statement with no effect" warnings from gcc.
52326         * tests/test-wctype.c (main): Explicitly ignore unused values.
52327         Reported by Jim Meyering.
52328
52329 2008-04-02  Jim Meyering  <meyering@redhat.com>
52330
52331         Avoid some warnings from "gcc -Wshadow".
52332         * tests/test-frexp.c (exp): Define to a different identifier.
52333         * tests/test-frexpl.c (exp): Likewise.
52334
52335 2008-04-03  Jim Meyering  <meyering@redhat.com>
52336
52337         bootstrap: remove dangling *.[ch] symlinks from lib
52338         * build-aux/bootstrap [dangling symlink removal]: Move find's
52339         -depth option to precede all others, to avoid a warning.
52340         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52341
52342 2008-04-02  Bruno Haible  <bruno@clisp.org>
52343
52344         Avoid some warnings from "gcc -Wshadow".
52345         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52346         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52347         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52348         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52349         Reported by Jim Meyering.
52350
52351 2008-04-01  Bruno Haible  <bruno@clisp.org>
52352
52353         Fix test to work on IRIX 6.5 with cc.
52354         * tests/test-math.c (numeric_equal): New function.
52355         (main): Use it.
52356
52357 2008-04-01  Bruno Haible  <bruno@clisp.org>
52358
52359         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52360
52361 2008-04-01  Bruno Haible  <bruno@clisp.org>
52362
52363         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52364         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52365         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52366         (Depends-on): Remove math.
52367
52368         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52369         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52370         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52371         (Depends-on): Remove math.
52372
52373         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52374         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52375         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52376         (Depends-on): Remove math.
52377         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52378         (Depends-on): Remove math.
52379
52380         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52381         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52382         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52383         (Depends-on): Remove math.
52384         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52385         (Depends-on): Remove math.
52386
52387         * tests/test-round1.c: Include nan.h.
52388         (main): Use NaNd instead of NAN.
52389         * modules/round-tests (Files): Add tests/nan.h.
52390
52391         * tests/test-trunc1.c: Include nan.h.
52392         (main): Use NaNd instead of NAN.
52393         * modules/trunc-tests (Files): Add tests/nan.h.
52394
52395         * tests/test-roundf1.c: Include nan.h.
52396         (main): Use NaNf instead of NAN.
52397         * modules/roundf-tests (Files): Add tests/nan.h.
52398
52399         * tests/test-truncf1.c: Include nan.h.
52400         (main): Use NaNf instead of NAN.
52401         * modules/truncf-tests (Files): Add tests/nan.h.
52402
52403         * tests/test-ceilf1.c: Include nan.h.
52404         (main): Use NaNf instead of NAN.
52405         * modules/ceilf-tests (Files): Add tests/nan.h.
52406
52407         * tests/test-floorf1.c: Include nan.h.
52408         (main): Use NaNf instead of NAN.
52409         * modules/floorf-tests (Files): Add tests/nan.h.
52410
52411         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52412         (main): Use NaNf instead of NAN.
52413         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52414
52415         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52416         (main): Use NaNd instead of NAN.
52417         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52418
52419         * tests/test-frexp.c: Include nan.h.
52420         (main): Use NaNd instead of NAN.
52421         * modules/frexp-tests (Files): Add tests/nan.h.
52422
52423         * lib/isnan.c: Don't include <math.h>.
52424         (FUNC): Don't use NAN macro.
52425         * modules/isnand-nolibm (Depends-on): Remove math.
52426         * modules/isnanf-nolibm (Depends-on): Remove math.
52427         * modules/isnanl (Depends-on): Remove math.
52428         * modules/isnanl-nolibm (Depends-on): Remove math.
52429
52430         * tests/nan.h: New file.
52431
52432 2008-04-01  Eric Blake  <ebb9@byu.net>
52433
52434         Fix typos.
52435         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52436         values to be the right type.
52437
52438         For now, cater to gnulib strtod inaccuracies.
52439         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52440         fractional results.  While not as nice from a QoI perspective, it
52441         is a quicker patch than correctly implementing decimal to binary
52442         rounding.
52443
52444 2008-03-31  Eric Blake  <ebb9@byu.net>
52445
52446         Guarantee a definition of NAN.
52447         * lib/math.in.h (NAN): Define if missing.
52448         * tests/test-math.c (main): Test it.
52449         * doc/posix-headers/math.texi (math.h): Document this.
52450         * lib/isnan.c (rpl_isnand): Use it.
52451         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52452         * tests/test-floorf1.c (NaN): Likewise.
52453         * tests/test-frexp.c (NaN): Likewise.
52454         * tests/test-isnand.c (NaN): Likewise.
52455         * tests/test-isnanf.c (NaN): Likewise.
52456         * tests/test-round1.c (NaN): Likewise.
52457         * tests/test-roundf1.c (NaN): Likewise.
52458         * tests/test-snprintf-posix.h (NaN): Likewise.
52459         * tests/test-sprintf-posix.h (NaN): Likewise.
52460         * tests/test-trunc1.c (NaN): Likewise.
52461         * tests/test-truncf1.c (NaN): Likewise.
52462         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52463         * tests/test-vasprintf-posix.c (NaN): Likewise.
52464         * modules/isnand-nolibm (Depends-on): Add math.
52465         * modules/isnanf-nolibm (Depends-on): Likewise.
52466         * modules/isnanl (Depends-on): Likewise.
52467         * modules/isnanl-nolibm (Depends-on): Likewise.
52468         * modules/snprintf-posix-tests (Depends-on): Likewise.
52469         * modules/sprintf-posix-tests (Depends-on): Likewise.
52470         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52471         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52472         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52473         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52474
52475 2008-03-31  Bruno Haible  <bruno@clisp.org>
52476
52477         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52478         * doc/posix-functions/strtod.texi: Likewise.
52479
52480 2008-03-31  Bruno Haible  <bruno@clisp.org>
52481
52482         * tests/test-strtod.c (main): Don't use C99 syntax.
52483
52484 2008-03-31  Bruno Haible  <bruno@clisp.org>
52485
52486         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52487         Reported by Eric Blake.
52488
52489 2008-03-31  Jim Meyering  <meyering@redhat.com>
52490
52491         Don't compare actual signbit return values.
52492         * tests/test-strtod.c (main): Rather, compare only their
52493         zero/non-zero nature.
52494
52495 2008-03-31  Eric Blake  <ebb9@byu.net>
52496
52497         More strtod documentation.
52498         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52499         failures as distinct bugs.
52500
52501 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52504         Problem reported by Erik Benada in
52505         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52506
52507 2008-03-30  Bruno Haible  <bruno@clisp.org>
52508
52509         * tests/test-strtod.c: Add comments about which assertion fails on which
52510         platform.
52511         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52512
52513 2008-03-30  Eric Blake  <ebb9@byu.net>
52514
52515         Test signbit behavior on zeros.
52516         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52517         (test_signbitd, test_signbitl): Likewise.
52518
52519         More strtod touchups.
52520         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52521         sign of negative underflow, for now.  Use .5, not .1.
52522         * doc/posix-functions/strtod.texi (strtod): Mention these
52523         limitations.
52524         Reported by Jim Meyering.
52525
52526 2008-03-30  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52529         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52530
52531 2008-03-30  Bruno Haible  <bruno@clisp.org>
52532
52533         Avoid failure when attempting to return empty iconv results on some
52534         platforms.
52535         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52536         allocation, don't report ENOMEM when the resulting string is empty.
52537
52538 2008-03-30  Bruno Haible  <bruno@clisp.org>
52539
52540         Fix buffer overrun.
52541         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52542         Don't consider the width for tmp_length. Check count against tmp_length
52543         before doing the padding. Ensure enough allocation during padding.
52544
52545 2008-03-30  Eric Blake  <ebb9@byu.net>
52546
52547         strtod touchups.
52548         * lib/strtod.c (strtod): Avoid compiler warnings.
52549         Reported by Jim Meyering.
52550
52551 2008-03-30  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52554         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52555         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52556         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52557         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52558         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52559         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52560         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52561
52562         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52563         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52564         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52565         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52566         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52567         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52568         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52569         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52570
52571         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52572         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52573         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52574         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52575         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52576         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52577         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52578         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52579
52580         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52581         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52582
52583         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52584         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52585
52586         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52587         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52588
52589         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52591         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52592
52593         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52595         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52596
52597         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52598         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52599         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52600
52601         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52603         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52604
52605         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52606         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52607         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52608         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52609         (Depends-on): Add EOVERFLOW.
52610         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52611         (Depends-on): Add EOVERFLOW.
52612         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52613         (Depends-on): Add EOVERFLOW.
52614         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52615         (Depends-on): Add EOVERFLOW.
52616         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52617         (Depends-on): Add EOVERFLOW.
52618         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52619         (Depends-on): Add EOVERFLOW.
52620         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52621         (Depends-on): Add EOVERFLOW.
52622         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52623         (Depends-on): Add EOVERFLOW.
52624
52625         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52626         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52627         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52628
52629         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52631         * modules/snprintf (Depends-on): Add EOVERFLOW.
52632
52633         * lib/poll.c (EOVERFLOW): Remove fallback.
52634         * modules/poll (Depends-on): Add EOVERFLOW.
52635
52636         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52637         * modules/getugroups (Depends-on): Add EOVERFLOW.
52638
52639         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52640         * modules/getdelim (Depends-on): Add EOVERFLOW.
52641
52642         * lib/ftell.c (EOVERFLOW): Remove fallback.
52643         * modules/ftell (Depends-on): Add EOVERFLOW.
52644
52645         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52647         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52648
52649         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52650
52651         * modules/EOVERFLOW-tests: New file.
52652         * tests/test-EOVERFLOW.c: New file.
52653
52654         * modules/EOVERFLOW: New file.
52655         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52656
52657 2008-03-30  Bruno Haible  <bruno@clisp.org>
52658
52659         Fix bug introduced on 2007-06-10.
52660         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52661         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52662
52663 2008-03-30  Bruno Haible  <bruno@clisp.org>
52664
52665         Improve freadseek's efficiency after ungetc.
52666         * lib/freadseek.c: Include freadahead.h.
52667         (freadptrinc): New function, extracted from freadseek.
52668         (freadseek): Use it in a loop. Use freadahead to determine the number
52669         of loop iterations.
52670         * modules/freadseek (Depends-on): Add freadahead.
52671         (configure.ac): Require AC_C_INLINE.
52672
52673 2008-03-30  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/freadseek.c (freadseek): Don't ignore the return value of
52676         freadptr.
52677
52678 2008-03-29  Eric Blake  <ebb9@byu.net>
52679
52680         Add hex float support.
52681         * modules/strtod (Depends-on): Add c-ctype.
52682         (Link): Mention POW_LIB.
52683         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52684         whitespace between 'e' and exponent.
52685         * tests/test-strtod.c (main): Enable hex float tests.
52686         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52687         now provides.
52688
52689         Document various strtod bugs, with some fixes.
52690         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52691         "-0x", "inf", "nan", and hex constants.
52692         * doc/posix-functions/atof.texi (atof): Likewise.
52693         * modules/stdlib (Makefile.am): Support strtod.
52694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52695         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52696         detect additional strtod bugs.
52697         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52698         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52699         bool where appropriate.  Parse 'inf' and 'nan'.
52700         * tests/test-strtod.c: New file.
52701         * modules/strtod (Depends-on): Add stdbool, stdlib.
52702         (configure.ac): Turn on module indicator.
52703         * modules/strtod-tests: New module.
52704
52705 2008-03-29  Eric Blake  <ebb9@byu.net>
52706
52707         Fix ftell on mingw.
52708         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52709         * modules/ftell-tests (Depends-on): Add binary-io.
52710         * modules/ftello-tests (Depends-on): Likewise.
52711         * tests/test-ftell.c (main): Enhance test to cover behavior after
52712         ungetc.  Enforce binary mode.
52713         * tests/test-ftello.c (main): Likewise.
52714
52715         Pass test-freadseek on cygwin.
52716         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52717         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52718         ungetc buffer.
52719
52720         * tests/test-fflush2.c (main): Fix typo.
52721
52722 2008-03-29  Bruno Haible  <bruno@clisp.org>
52723
52724         * tests/test-fflush2.c (main): Temporarily disable the contents of
52725         this test.
52726         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52727         Reported by Eric Blake.
52728
52729 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52730
52731         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52732         (GC_SHA224_DIGEST_SIZE): Add.
52733
52734         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52735         (gc_hash_digest_length): Likewise.
52736         (gc_hash_buffer): Likewise.
52737
52738 2008-03-25  Bruno Haible  <bruno@clisp.org>
52739
52740         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52741         detail which gettext release to use.
52742         Reported by Simon Josefsson.
52743
52744 2008-03-26  Jim Meyering  <meyering@redhat.com>
52745
52746         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52747         * modules/gnumakefile (clean-GNUmakefile): Also, use
52748         test ... && ... || : syntax rather than if-then ... fi.
52749
52750         gnumakefile: Don't double-quote-expand $(VPATH) value.
52751         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52752
52753 2008-03-24  Eric Blake  <ebb9@byu.net>
52754
52755         Alter GNUmakefile to install into top directory.
52756         * modules/maintainer-makefile: Split, and add dependency...
52757         * modules/gnumakefile: to this new module.
52758         * build-aux/GNUmakefile: Move...
52759         * top/GNUmakefile: ...here.
52760         * build-aux/maint.mk: Move...
52761         * top/maint.mk: ...here.
52762         * MODULES.html.sh (Support for maintaining...): Document new
52763         module.
52764
52765 2008-03-23  Bruno Haible  <bruno@clisp.org>
52766
52767         * gnulib-tool: New options --vc-files, --no-vc-files.
52768         (func_usage): Document them.
52769         (vc_files): New variable.
52770         (func_import): Consider vc_files.
52771         (func_create_testdir): Set vc_files to empty.
52772         Suggested by Jim Meyering and Karl Berry.
52773
52774 2008-03-23  Bruno Haible  <bruno@clisp.org>
52775
52776         Fix regex compilation error on HP-UX 11.
52777         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52778         * modules/regex (Files): Add m4/mbstate_t.m4.
52779         Reported by Ton Voon <ton.voon@altinity.com>.
52780
52781 2008-03-23  Bruno Haible  <bruno@clisp.org>
52782
52783         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52784
52785 2008-03-23  Eric Blake  <ebb9@byu.net>
52786             Bruno Haible  <bruno@clisp.org>
52787
52788         Install files from top/ in the destination directory.
52789         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52790         augmentation also for the files from top/.
52791         (func_import, func_create_testdir): Rewrite file names:
52792         top/filename -> filename.
52793
52794 2008-03-23  Bruno Haible  <bruno@clisp.org>
52795
52796         Tweak "gnulib --version" output.
52797         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52798
52799 2008-03-23  Bruno Haible  <bruno@clisp.org>
52800
52801         Tweak "gnulib --version" output.
52802         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52803         rather than contents of ChangeLog, when possible.
52804
52805 2008-03-21  Eric Blake  <ebb9@byu.net>
52806
52807         More --version tweaks.
52808         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52809         date of last ChangeLog entry.
52810
52811 2008-03-21  Jim Meyering  <meyering@redhat.com>
52812
52813         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52814
52815 2008-03-20  Eric Blake  <ebb9@byu.net>
52816
52817         VPATH fix.
52818         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52819
52820 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52821
52822         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52823         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52824
52825 2008-03-20  Eric Blake  <ebb9@byu.net>
52826
52827         Sync GNUmakefile with coreutils.
52828         * build-aux/GNUmakefile (have-Makefile): Rename...
52829         (_have-Makefile): ...to this, for namespace consideration.
52830         (GNUmakefile.cfg): Include, if present.
52831         (_autoreconf): Define a default.
52832         (_is-dist-target): New rule for rebuilds to pick up intra-release
52833         version.
52834         (maint-cfg.mk): Rename...
52835         (cfg.mk): ...to this.
52836
52837 2008-03-18  Jim Meyering  <meyering@redhat.com>
52838
52839         New script and module: mktempd
52840         * MODULES.html.sh (maint+release support): Add mktempd.
52841         * build-aux/mktempd: New file.
52842         * modules/mktempd: New file.
52843
52844 2008-03-15  Jim Meyering  <meyering@redhat.com>
52845
52846         Undo last change.
52847         * lib/sha1.c, lib/md5.c: 63 != ~63.
52848         Reported by Andreas Schwab.
52849
52850         sha1.c, md5.c: Hoist a redundant expression.
52851         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52852         "ctx->buflen" only once, before calling *_process_block.
52853         * lib/md5.c (md5_process_bytes): Likewise.
52854
52855 2008-03-14  Eric Blake  <ebb9@byu.net>
52856
52857         Bump copyright year in files generated by gnulib-tool.
52858         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52859         gnulib-tool, rather than hard-coding it.
52860
52861         Fix 'gnulib-tool --version' output to work with git.
52862         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52863         (startup): ...here.
52864         (func_version): Use it to invoke git-version-gen, rather than
52865         relying on CVS keyword expansion.  Modernize wording.
52866         (cvsdatestamp, last_checkin_date, version): Kill unused
52867         variables.
52868
52869 2008-03-12  Jim Meyering  <meyering@redhat.com>
52870
52871         Recognize optional cast of the argument to free.
52872         * build-aux/useless-if-before-free: Update regexps.
52873
52874         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52875
52876 2008-03-11  Bruno Haible  <bruno@clisp.org>
52877
52878         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52879         by a single package.
52880         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52881         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52882         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52883         Reported by Sam Steingold <sds@gnu.org>.
52884
52885 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52886
52887         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52888         repositories.
52889
52890 2008-03-11  Bruno Haible  <bruno@clisp.org>
52891
52892         Avoid conflicts between local macro definitions.
52893         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52894         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52895
52896 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52897             Bruno Haible  <bruno@clisp.org>
52898
52899         Make va_copy work with some version of xlc on AIX 5.1.
52900         * lib/stdarg.in.h: New file.
52901         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52902         On AIX, use a <stdarg.h> file substitute.
52903         * modules/stdarg (Files): Add lib/stdarg.in.h.
52904         (Depends-on): Add include_next.
52905         (Makefile.am): Build a stdarg.h substitute if requested.
52906         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52907
52908 2008-03-10  Bruno Haible  <bruno@clisp.org>
52909
52910         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52911         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52912         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52913
52914 2008-03-10  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/stdlib (Depends-on): Add include_next, remove
52917         absolute-header.
52918
52919 2008-03-09  Bruno Haible  <bruno@clisp.org>
52920
52921         * lib/freadahead.h (freadahead): Document more precisely.
52922         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52923         the sum of both buffer sizes.
52924         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52925         * NEWS: Document the change.
52926
52927 2008-03-09  Bruno Haible  <bruno@clisp.org>
52928
52929         Extend freadptr to return also the buffer size.
52930         * lib/freadptr.h (freadptr): Add sizep argument.
52931         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52932         (freadptr): Add sizep argument. Determine buffer size like freadahead
52933         does.
52934         * tests/test-freadptr.c: Don't include freadahead.h.
52935         (main): Adapt for new calling convention of freadptr.
52936         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52937         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52938         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52939         tests/test-freadptr2.sh.
52940         (Depends): Remove freadahead.
52941         (TESTS): Add test-freadptr2.sh.
52942         (check_PROGRAMS): Add test-freadptr2.
52943
52944 2008-03-09  Bruno Haible  <bruno@clisp.org>
52945
52946         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52947         Report and solution by Simon Josefsson.
52948
52949 2008-03-06  Bruno Haible  <bruno@clisp.org>
52950
52951         Make fflush after ungetc work on BSD platforms.
52952         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52953         * tests/test-fflush2.c: New file.
52954         * tests/test-fflush2.sh: New file.
52955         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52956         tests/test-fflush2.c.
52957         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52958         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52959
52960 2008-03-06  Eric Blake  <ebb9@byu.net>
52961
52962         Likewise for ftello.
52963         * modules/ftello (Dependencies): Add extensions.
52964         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52965
52966 2008-03-06  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/fseeko (Dependencies): Add extensions.
52969         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52970         Needed on glibc systems.
52971
52972 2008-03-06  Bruno Haible  <bruno@clisp.org>
52973
52974         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52975         email address.
52976         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52977
52978 2008-03-06  Bruno Haible  <bruno@clisp.org>
52979
52980         * users.txt: Add libgnupdf.
52981
52982 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52983
52984         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52985         (Header File Substitutes, Function Substitutes,
52986         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52987         (Build robot for gnulib): Fix typo.
52988
52989 2008-03-06  Bruno Haible  <bruno@clisp.org>
52990
52991         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52992         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52993
52994 2008-03-06  Bruno Haible  <bruno@clisp.org>
52995
52996         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52997         * doc/gnulib.texi: Include it.
52998
52999 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53000
53001         * modules/func (License): Change license to unlimited; there was
53002         no LGPL parts in the module anyway.
53003
53004 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53005
53006         * modules/__func__: Renamed to modules/func.
53007         * modules/__func__-tests: Renamed to modules/func-tests.
53008         * tests/test-__func__.c: Renamed to tests/test-func.c.
53009         * m4/__func__.m4: Renamed to m4/func.m4.
53010         * doc/gnulib.texi (__func__): Section renamed to func.
53011         Suggested by Eric Blake <ebb9@byu.net>.
53012
53013 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53014
53015         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53016         about __func__.  Make example self-contained.  Suggested by Eric
53017         Blake <ebb9@byu.net>.
53018
53019         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53020         Suggested by Eric Blake <ebb9@byu.net>.
53021
53022 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53023
53024         * modules/__func__: New file.
53025         * modules/__func__-tests: New file.
53026         * tests/test-__func__.c: New file.
53027         * m4/__func__.m4: New file.
53028         * doc/gnulib.texi (__func__): Document __func__ module.
53029
53030 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53031
53032         * modules/byteswap (License): Re-license as LGPLv2+.
53033
53034 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53035
53036         * doc/Makefile: Add pdf target.
53037
53038 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53039
53040         * modules/inline (License): Use 'unlimited', since there are only
53041         *.m4 files in this module.
53042
53043 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53044             Bruno Haible  <bruno@clisp.org>
53045
53046         Add support for HP C 7.1 on OpenVMS 8.3.
53047         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53048
53049 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53050
53051         Update VMS specifics.
53052         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53053
53054 2008-03-02  Jim Meyering  <meyering@redhat.com>
53055
53056         Remove the last dependency on the "free" module.
53057         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53058         Reported by Bob Proulx.
53059
53060         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53061
53062         Remove useless "if" tests before free.  Deprecate "free" module.
53063         * doc/posix-functions/free.texi: Mention that this
53064         module is no longer useful.
53065         * modules/free (Notice): Say this module is obsolete.
53066         * modules/readutmp (Depends-on): Remove free.
53067         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53068         * lib/putenv.c (putenv): Likewise.
53069         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53070         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53071         * tests/test-c-strcasestr.c (main): Likewise.
53072         * tests/test-c-strstr.c (main): Likewise.
53073         * tests/test-mbscasestr1.c (main): Likewise.
53074         * tests/test-mbscasestr2.c (main): Likewise.
53075         * tests/test-mbsstr1.c (main): Likewise.
53076         * tests/test-mbsstr2.c (main): Likewise.
53077         * tests/test-memmem.c (main): Likewise.
53078         * tests/test-strcasestr.c (main): Likewise.
53079         * tests/test-striconv.c (main): Likewise.
53080         * tests/test-striconveh.c (main): Likewise.
53081         * tests/test-striconveha.c (main): Likewise.
53082         * tests/test-strstr.c (main): Likewise.
53083
53084         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53085
53086         bootstrap: sync from coreutils again
53087         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53088
53089 2008-03-01  Jim Meyering  <meyering@redhat.com>
53090
53091         bootstrap: sync from coreutils
53092         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53093         also when the target doesn't exist.
53094
53095 2008-03-01  Eric Blake  <ebb9@byu.net>
53096
53097         Fix bugs in last patch.
53098         * lib/memchr2.c (memchr2): Fix typo.
53099         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53100         extension.
53101         Reported by Bruce Korb.
53102
53103         New module 'memchr2'.
53104         * modules/memchr2: New file.
53105         * modules/memchr2-tests: Likewise.
53106         * lib/memchr2.h: Likewise.
53107         * lib/memchr2.c: Likewise, based on memchr.c.
53108         * tests/test-memchr2.c: New test.
53109         * MODULES.html.sh (String handling): Add memchr2.
53110
53111 2008-02-29  Bruno Haible  <bruno@clisp.org>
53112
53113         * modules/freadseek-tests: New file.
53114         * tests/test-freadseek.sh: New file.
53115         * tests/test-freadseek.c: New file.
53116
53117         New module 'freadseek'.
53118         * modules/freadseek: New file.
53119         * lib/freadseek.h: New file.
53120         * lib/freadseek.c: New file.
53121         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53122
53123 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53124
53125         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53126         wydawca.
53127
53128         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53129         program_invocation_name and program_invocation_short_name are
53130         present.
53131
53132 2008-02-28  Bruno Haible  <bruno@clisp.org>
53133
53134         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53135         * tests/test-freadptr.sh: Also test non-seekable stdin.
53136
53137 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53138
53139         * build-aux/bootstrap (source_base, m4_base)
53140         (doc_base, tests_base): New variables.
53141         (gnulib_tool_options): Do not hardcode base directories, use
53142         the above variables instead.
53143
53144 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53145
53146         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53147
53148 2008-02-28  Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/freadptr-tests: New file.
53151         * tests/test-freadptr.sh: New file.
53152         * tests/test-freadptr.c: New file.
53153
53154         New module 'freadptr'.
53155         * modules/freadptr: New file.
53156         * lib/freadptr.h: New file.
53157         * lib/freadptr.c: New file.
53158         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53159
53160 2008-02-26  Karl Berry  <karl@freefriends.org>
53161
53162         Sync from Libtool:
53163         * libltdl/argz.c (argz_add, argz_count): New functions.
53164         * libltdl/argz.in.h: Declare them.
53165         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53166
53167 2008-02-22  Bruno Haible  <bruno@clisp.org>
53168
53169         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53170         is a pointer type.  Needed for HP-UX 10.
53171         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53172         * doc/posix-functions/gmtime_r.texi: Likewise.
53173         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53174
53175 2008-02-24  Bruno Haible  <bruno@clisp.org>
53176
53177         * modules/environ-tests: New file.
53178         * tests/test-environ.c: New file.
53179
53180         New module 'environ'.
53181         * modules/environ: New file.
53182         * lib/unistd.in.h (environ): New declaration.
53183         * m4/environ.m4: New file.
53184         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53185         after use.
53186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53187         HAVE_DECL_ENVIRON.
53188         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53189         HAVE_DECL_ENVIRON.
53190         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53191         wrong claim that 'environ' is missing on some systems.
53192         * modules/execute (Depends-on): Add environ.
53193         * lib/execute.c (environ): Remove fallback declaration.
53194         * modules/pipe (Depends-on): Add environ.
53195         * lib/pipe.c (environ): Remove fallback declaration.
53196         * modules/setenv (Depends-on): Add environ.
53197         * lib/setenv.c (environ): Remove fallback declaration.
53198         * modules/unsetenv (Depends-on): Add environ.
53199         * lib/unsetenv.c (environ): Remove fallback declaration.
53200         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53201         m4/environ.m4.
53202         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53203         (gl_PREREQ_UNSETENV): Likewise.
53204
53205 2008-02-24  Bruno Haible  <bruno@clisp.org>
53206
53207         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53208
53209 2008-02-20  Bob Proulx  <bob@proulx.com>
53210
53211         Enable use of older two part flavor 'git describe'.
53212         * build-aux/git-version-gen: If using the older two part flavor of
53213         git version then recreate the third part now present in the
53214         newer three part flavor of git describe.
53215
53216 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53217
53218         * lib/fts.c (fts_build): Typo correction to comment.
53219
53220 2008-02-17  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53223         generating no-op conflicts.
53224
53225 2008-02-17  Bruno Haible  <bruno@clisp.org>
53226
53227         Speed up by 10%.
53228         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53229         result_entries, rather than an index-based loop.
53230
53231 2008-02-17  Bruno Haible  <bruno@clisp.org>
53232
53233         Speed up by 25%.
53234         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53235         'hashcode_cached'.
53236         (entry_create): New function.
53237         (entry_hashcode): Use the cached hashcode if possible.
53238         (read_changelog_file, try_split_merged_entry): Use entry_create.
53239
53240 2008-02-17  Bruno Haible  <bruno@clisp.org>
53241
53242         Speed up from O(n^2) to O(n) for long ChangeLog files.
53243         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53244         (read_changelog_file): Change implementation of entries_reversed list
53245         to rbtreehash.
53246         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53247
53248 2008-02-17  Bruno Haible  <bruno@clisp.org>
53249
53250         New option --split-merged-entry.
53251         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53252         (find_paragraph_end, try_split_merged_entry): New functions.
53253         (long_options): Add option --split-merged-entry.
53254         (usage): Document option --split-merged-entry.
53255         (main): Implement option --split-merged-entry.
53256         Reported by Eric Blake.
53257
53258 2008-02-17  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/git-merge-changelog.c: Include c-strstr.h.
53261         (main): Support the "git pull --rebase" situation.
53262         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53263         Reported by Eric Blake.
53264
53265 2008-02-16  Eric Blake  <ebb9@byu.net>
53266
53267         Avoid doubling \ in common case of "c-maybe" quoting style.
53268         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53269         eliding outer quotes.
53270         * lib/quotearg.h: Document this.
53271         * tests/test-quotearg.c (result_strings, inputs, results_g)
53272         (flag_results, locale_results): Test it by adding a new string to
53273         each test group.
53274         (compare_strings): Test new string.
53275
53276 2008-02-13  Eric Blake  <ebb9@byu.net>
53277
53278         Avoid trigraph quoting in default output.
53279         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53280         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53281         unless explicitly requested.
53282         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53283
53284 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53285
53286         Don't rely on signed integer overflowing to negative value.
53287         * lib/getugroups.c (getugroups): Include <limits.h>.
53288         Instead, compare against INT_MAX, and increment only if the test passes.
53289
53290 2008-02-13  Jim Meyering  <meyering@redhat.com>
53291         and Eric Blake  <ebb9@byu.net>
53292
53293         Avoid shadowing warning and compile errors on Linux.
53294         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53295         forwarding macros on Linux.
53296         (dcgettext): Define a stub, for Linux.
53297         (results_g, main): Avoid warnings.
53298
53299 2008-02-12  Eric Blake  <ebb9@byu.net>
53300
53301         Silence warning in last patch.
53302         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53303
53304         Quotearg part 4: add tests, fix c-maybe colon quoting.
53305         * lib/quotearg.h: Improve documentation.
53306         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53307         escapes when adding outer quotes.  When quoting trigraphs, use
53308         valid C notation.  When quoting NUL, omit extra characters if next
53309         character is not digit.  Alter prototype.
53310         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53311         callers.
53312         * modules/quotearg-tests: New module.
53313         * tests/test-quotearg.c: New test.
53314
53315 2008-02-07  Eric Blake  <ebb9@byu.net>
53316
53317         Quotearg part 3: add flag to control outer quote elision.
53318         * lib/quotearg.h (c_maybe_quoting_style): New style.
53319         (enum quoting_flags): Better documentation of flags.
53320         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53321         c-maybe style.
53322         (quotearg_buffer_restyled): Handle new flag to elide outer
53323         quotes.
53324
53325         Quotearg part 2: add flag that can control NUL elision.
53326         * lib/quotearg.h (set_quoting_flags): New prototype.
53327         * lib/quotearg.c (struct quoting_options): Add flag field.
53328         (set_quoting_flags): New function.
53329         (quotearg_buffer_restyled): Add flags parameter.
53330         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53331         (quotearg_n_options): Set the flag, since length cannot be
53332         returned.
53333         (quoting_options_from_style): Default flags correctly.
53334
53335         Quotearg part 1: more wrappers, restore quotearg_char state.
53336         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53337         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53338         (quotearg_colon_mem): New wrappers.
53339         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53340         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53341         functions.
53342         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53343         (quotearg_colon_mem): New functions.
53344
53345 2008-02-11  Bruno Haible  <bruno@clisp.org>
53346
53347         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53348         library in the current directory: it does not work with parallel make.
53349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53350
53351 2008-02-11  Bruno Haible  <bruno@clisp.org>
53352
53353         * .gitattributes: New file.
53354
53355 2008-02-11  Jim Meyering  <meyering@redhat.com>
53356
53357         useless-if-before-free: Fix reversed exit values.
53358         * build-aux/useless-if-before-free: Use correct values
53359         for EXIT_MATCH and EXIT_NO_MATCH.
53360
53361         * build-aux/useless-if-before-free: Close stdout carefully.
53362
53363 2008-02-10  Bruno Haible  <bruno@clisp.org>
53364
53365         New module 'git-merge-changelog'.
53366         * modules/git-merge-changelog: New file.
53367         * lib/git-merge-changelog.c: New file.
53368
53369 2008-02-10  Jim Meyering  <meyering@redhat.com>
53370
53371         useless-if-before-free: New option: --list (-l).
53372
53373         useless-if-before-free: Don't exit immediately upon open failure.
53374         * build-aux/useless-if-before-free: Exit 2 for errors.
53375         Upon failure to open a file, don't exit immediately.
53376         Rather, just warn and continue with any remaining files.
53377
53378 2008-02-10  Bruno Haible  <bruno@clisp.org>
53379
53380         New abstract list operation 'node_set_value'.
53381         * lib/gl_list.h (gl_list_node_set_value): New function.
53382         (struct gl_list_implementation): New field node_set_value.
53383         * lib/gl_list.c (gl_list_node_set_value): New function.
53384         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53385         (gl_array_list_implementation): Update.
53386         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53387         (gl_carray_list_implementation): Update.
53388         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53389         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53390         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53391         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53392         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53393         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53394         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53395         Update.
53396         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53397         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53398         (gl_sublist_list_implementation): Update.
53399
53400 2008-02-10  Bruno Haible  <bruno@clisp.org>
53401
53402         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53403         Needed when ELEMENT is #defined to 'some_type *'.
53404
53405 2008-02-10  Jim Meyering  <meyering@redhat.com>
53406
53407         New script and module: useless-if-before-free
53408         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53409         * build-aux/useless-if-before-free: New file.
53410         * modules/useless-if-before-free: New file.
53411
53412         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53413
53414         xstrtol_error: Fix typo.
53415         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53416         s/exit_failure/exit_status/.
53417
53418 2008-02-09  Jim Meyering  <meyering@redhat.com>
53419
53420         New script and module: gitlog-to-changelog
53421         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53422         * modules/gitlog-to-changelog: New file.
53423         * build-aux/gitlog-to-changelog: New file.
53424
53425 2008-02-08  Jim Meyering  <meyering@redhat.com>
53426
53427         Avoid two "parameter unused" warnings.
53428         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53429         Mark "st" as used.
53430
53431         Use "git COMMAND", not "git-COMMAND".
53432         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53433         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53434         * build-aux/git-version-gen: Use "git status", not "git-status".
53435
53436 2008-02-07  Bruno Haible  <bruno@clisp.org>
53437
53438         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53439         Avoids a crash on Windows Vista.
53440         Reported by Adam Strzelecki <ono@java.pl> via
53441         Simon Josefsson <simon@josefsson.org>.
53442
53443 2008-02-06  Bruno Haible  <bruno@clisp.org>
53444
53445         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53446         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53447         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53449         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53451         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53452         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53455         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53456         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53457         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53459         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53460         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53461         left-adjust flag.
53462         * tests/test-snprintf-posix.h (test_function): Likewise.
53463         * tests/test-sprintf-posix.h (test_function): Likewise.
53464         * tests/test-vasprintf-posix.c (test_function): Likewise.
53465         * doc/posix-functions/fprintf.texi: Update.
53466         * doc/posix-functions/printf.texi: Update.
53467         * doc/posix-functions/snprintf.texi: Update.
53468         * doc/posix-functions/sprintf.texi: Update.
53469         * doc/posix-functions/vfprintf.texi: Update.
53470         * doc/posix-functions/vprintf.texi: Update.
53471         * doc/posix-functions/vsnprintf.texi: Update.
53472         * doc/posix-functions/vsprintf.texi: Update.
53473         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53474
53475 2008-02-06  Bruno Haible  <bruno@clisp.org>
53476
53477         Fix bug introduced on 2008-01-26.
53478         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53479
53480 2008-02-06  Bruno Haible  <bruno@clisp.org>
53481
53482         Fix bug introduced on 2007-06-10.
53483         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53484         !NEED_PRINTF_FLAG_ZERO.
53485
53486 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53487
53488         getloadavg: use libperfstat on AIX5
53489         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53490
53491 2008-02-03  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/diffseq.h: Add comments about required #includes.
53494         Reported by Michael Biggs <gnulib@doubleplum.net>.
53495
53496 2008-02-01  Bruno Haible  <bruno@clisp.org>
53497
53498         * users.txt: Add gnuit.
53499
53500 2008-01-31  Bruno Haible  <bruno@clisp.org>
53501
53502         * lib/md4.c (set_uint32): Mark as inline.
53503         * lib/md5.c (set_uint32): Likewise.
53504         * lib/sha1.c (set_uint32): Likewise.
53505         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53506         * m4/md5.m4 (gl_MD5): Likewise.
53507         * m4/sha1.m4 (gl_SHA1): Likewise.
53508
53509 2008-01-31  Jim Meyering  <meyering@redhat.com>
53510
53511         Use "sizeof VAR", rather than a literal "4".
53512         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53513         * lib/md4.c (md4_read_ctx): Likewise.
53514         * lib/sha1.c (sha1_read_ctx): Likewise.
53515
53516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53517
53518         * tests/test-sha1.c: New file, based on test-md5.c.
53519
53520         * modules/crypto/sha1-tests: New file.
53521
53522 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53523
53524         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53525
53526 2008-01-31  Jim Meyering  <meyering@redhat.com>
53527
53528         Prefer "sizeof v" over the equivalent "4".
53529         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53530         * lib/md5.c (set_uint32): Likewise.
53531         * lib/sha1.c (set_uint32): Likewise.
53532
53533 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53534
53535         * lib/sha1.c (set_uint32): Mark function as static.
53536
53537 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53538
53539         md2: clarify comments to say that alignment is not required.
53540         * lib/md2.h: Remove warning about alignment in comment.
53541         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53542         never been required.
53543
53544 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53545
53546         md4: adapt alignment constraint fix from sha1.
53547         * lib/md4.c (set_uint32): New function, from sha1.c
53548         (md4_read_ctx): Use it.
53549         (md4_finish_ctx): Doc fix.
53550         * lib/md4.h: Doc fix.
53551
53552 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53553
53554         md5: adapt alignment constraint fix from sha1.
53555         * lib/md5.c (set_uint32): New function, from sha1.c
53556         (md5_read_ctx): Use it.
53557         (md5_finish_ctx): Doc fix.
53558         * lib/md5.h: Doc fix.
53559
53560 2008-01-30  Peter Palfrader  <weasel@debian.org>
53561
53562         sha1: remove the result buffer alignment constraint
53563         * lib/sha1.c (set_uint32): New function.
53564         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53565         constraint.
53566         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53567         * lib/sha1.h: Likewise.
53568
53569 2008-01-30  Andreas Schwab  <schwab@suse.de>
53570             Bruno Haible  <bruno@clisp.org>
53571
53572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53573         correct definition of LDBL_MIN_EXP.
53574
53575 2008-01-30  Karl Berry  <karl@gnu.org>
53576
53577         * config/srclist-update: try to preserve x bit on updates.
53578         * config/srclistvars.sh: update for karl.
53579
53580 2008-01-29  Jim Meyering  <meyering@redhat.com>
53581
53582         vasnprintf.c: Avoid warning about unused label
53583         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53584         "overflow" label definition and associated code with the
53585         same cpp condition that guards the sole use of that label.
53586
53587 2008-01-26  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53590         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53591         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53592         * lib/isnanl-nolibm.h (isnanl): Likewise.
53593         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53594
53595 2008-01-26  Bruno Haible  <bruno@clisp.org>
53596
53597         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53598         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53599
53600 2008-01-26  Bruno Haible  <bruno@clisp.org>
53601
53602         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53603         GCC >= 4.0 built-in.
53604         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53605
53606 2008-01-26  Bruno Haible  <bruno@clisp.org>
53607
53608         Rename isnan, applicable to 'double' only, to isnand.
53609         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53610         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53611         (configure.ac): Update.
53612         (Include): Replace "isnan.h" with "isnand.h".
53613         * m4/isnand.m4: Renamed from m4/isnan.m4.
53614         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53615         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53616         instead of isnan.c.
53617         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53618         instead of HAVE_ISNAN_IN_LIBC.
53619         (isnand): Renamed from isnan.
53620         * lib/isnand.c: New file.
53621         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53622         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53623         (Makefile.am): Update.
53624         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53625         Include isnand.h instead of isnan.h.
53626         (main): Test isnand instead of isnan.
53627         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53628         isnan-nolibm.
53629         * modules/frexp (Depends-on): Likewise.
53630         * modules/frexp-tests (Depends-on): Likewise.
53631         * modules/frexp-nolibm (Depends-on): Likewise.
53632         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53633         * modules/isfinite (Depends-on): Likewise.
53634         * modules/round-tests (Depends-on): Likewise.
53635         * modules/signbit (Depends-on): Likewise.
53636         * modules/signbit-tests (Depends-on): Likewise.
53637         * modules/snprintf-posix (Depends-on): Likewise.
53638         * modules/sprintf-posix (Depends-on): Likewise.
53639         * modules/trunc-tests (Depends-on): Likewise.
53640         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53641         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53644         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53645         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53646         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53647         * modules/vasnprintf-posix (Depends-on): Likewise.
53648         * modules/vasprintf-posix (Depends-on): Likewise.
53649         * modules/vfprintf-posix (Depends-on): Likewise.
53650         * modules/vsnprintf-posix (Depends-on): Likewise.
53651         * modules/vsprintf-posix (Depends-on): Likewise.
53652         * lib/frexp.c: Include isnand.h instead of isnan.h.
53653         (ISNAN): Set to isnand instead of isnan.
53654         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53655         (gl_isfinited): Use isnand instead of isnan.
53656         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53657         (gl_signbitd): Use isnand instead of isnan.
53658         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53659         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53660         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53661         (main): Use isnand instead of isnan.
53662         * tests/test-round1.c: Include isnand.h.
53663         (main): Use isnand instead of isnan.
53664         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53665         (ISNAN): Set to isnand instead of isnan.
53666         * tests/test-trunc1.c: Include isnand.h.
53667         (main): Use isnand instead of isnan.
53668         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53669         (equal): Use isnand instead of isnan.
53670         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53671         isnand-nolibm.
53672         * NEWS: Mention the change.
53673
53674 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53675             Bruno Haible  <bruno@clisp.org>
53676
53677         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53678         the GCC builtins for signbits are present and set
53679         REPLACE_SIGNBIT_USING_GCC if so.
53680         * lib/math.in.h (signbit): Define using GCC builtins if
53681         REPLACE_SIGNBIT_USING_GCC is set.
53682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53683         REPLACE_SIGNBIT_USING_GCC.
53684         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53685
53686 2008-01-25  Jim Meyering  <meyering@redhat.com>
53687
53688         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53689         * lib/poll.c: Include <config.h>, not "config.h".
53690         * tests/test-getaddrinfo.c: Likewise.
53691
53692 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53693
53694         * modules/sockets-tests: New file.
53695
53696 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53697
53698         * modules/sockets: New module, can be used to call WSA_Startup and
53699         WSA_Cleanup when needed.
53700
53701         * lib/sockets.h, lib/sockets.c: New files.
53702
53703         * m4/sockets.m4: New file.
53704
53705         * tests/test-sockets.c: New file.
53706
53707 2008-01-19  Bruno Haible  <bruno@clisp.org>
53708
53709         * doc/posix-headers: Renamed from doc/headers.
53710         * doc/posix-functions: Renamed from doc/functions.
53711         * doc/gnulib.texi: Update.
53712
53713 2008-01-19  Bruno Haible  <bruno@clisp.org>
53714
53715         * doc/glibc-functions/strcasestr.texi: Include contents of
53716         doc/functions/strcasestr.texi, fixing the list of platforms.
53717         * doc/functions/strcasestr.texi: Remove file.
53718
53719 2008-01-19  Bruno Haible  <bruno@clisp.org>
53720
53721         * doc/glibc-functions/memmem.texi: Include contents of
53722         doc/functions/memmem.texi.
53723         * doc/functions/memmem.texi: Remove file.
53724
53725 2008-01-18  Bruno Haible  <bruno@clisp.org>
53726
53727         * doc/glibc-functions/*.texi: New files.
53728         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53729         to use the new files.
53730
53731 2008-01-17  Bruno Haible  <bruno@clisp.org>
53732
53733         * tests/test-gethostname.c (main): Fix printf statement.
53734
53735 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53736
53737         * modules/gethostname-tests: New file.
53738
53739         * tests/test-gethostname.c: New file.
53740
53741 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53742
53743         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53744         used by the UNAME case.  Reported by Bruno Haible
53745         <bruno@clisp.org>.
53746
53747 2008-01-17  Eric Blake  <ebb9@byu.net>
53748
53749         Convert c-strcasestr to be more efficient.
53750         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53751         (Depends-on): Add c-strcase, remove malloca, strnlen.
53752         * tests/test-c-strcasestr.c (main): Enhance test.
53753         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53754
53755 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53756
53757         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53758         Use it in creating po/Makevars.
53759
53760 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53761
53762         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53763         Applications that requires it should initialize libgcrypt
53764         manually.
53765
53766 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53767
53768         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53769
53770 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53771
53772         Fix problem with getdate on mingw32 reported by Simon Josefsson
53773         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53774         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53775         tzname", when deciding whether to declare tzname.
53776         * lib/strftime.c (tzname): Likewise.
53777
53778 2008-01-15  Bruno Haible  <bruno@clisp.org>
53779
53780         Work around a MacOS X 10.5 bug in frexpl().
53781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53782         * doc/functions/frexpl.texi: Document the bug.
53783         Reported by Elias Pipping <pipping@gentoo.org>.
53784
53785 2008-01-14  Eric Blake  <ebb9@byu.net>
53786
53787         Touch up previous patch.
53788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53789         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53790
53791         Convert strcasestr module to use Two-Way algorithm.
53792         * modules/strcasestr-simple: New module, based on the old
53793         strcasestr, but with Two-Way rather than KMP.
53794         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53795         * lib/string.in.h (rpl_strcasestr): Declare.
53796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53797         performance.
53798         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53799         * modules/string (Makefile.am): Support strcasestr.
53800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53801         * modules/strcasestr-tests (Depends-on): Check for alarm.
53802         * tests/test-strcasestr.c: Augment test.
53803         * lib/str-two-way.h: Clean up stray macro.
53804         * NEWS: Document new module.
53805         * MODULES.html.sh (string handling): Likewise.
53806         * doc/functions/strcasestr.texi: New file.
53807         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53808         here, since it is not a POSIX function.
53809
53810 2008-01-14  Colin Watson  <cjwatson@debian.org>
53811             Bruno Haible  <bruno@clisp.org>
53812
53813         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53814         works fine; if not, set REPLACE_STRSIGNAL.
53815         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53817         REPLACE_STRSIGNAL.
53818         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53819         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53820         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53821
53822 2008-01-14  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/strsignal (Include): Change to <string.h>.
53825
53826 2008-01-14  Colin Watson  <cjwatson@debian.org>
53827
53828         * modules/argp (Notice): Add a notice recommending to change
53829         XGETTEXT_OPTIONS.
53830         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53831
53832 2008-01-13  Colin Watson  <cjwatson@debian.org>
53833
53834         * modules/strsignal-tests: New file.
53835         * tests/test-strsignal.c: New file.
53836
53837         * lib/strsignal.c: New file, from glibc with modifications.
53838         * lib/siglist.h: New file, from glibc with modifications.
53839         * lib/string.in.h (strsignal): New declaration.
53840         * m4/strsignal.m4: New file.
53841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53842         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53843         * modules/strsignal: New file.
53844         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53845         HAVE_DECL_STRSIGNAL.
53846
53847 2008-01-13  Bruno Haible  <bruno@clisp.org>
53848
53849         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53850         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53851         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53852         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53853
53854 2008-01-13  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53857         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53858         * lib/argp.h (__attribute__): Likewise.
53859         * lib/c-stack.c (__attribute__): Likewise.
53860         * lib/error.h (__attribute__): Likewise.
53861         * lib/fts.c (__attribute__): Likewise.
53862         * lib/openat.h (__attribute__): Likewise.
53863         * lib/stdio.in.h (__attribute__): Likewise.
53864         * lib/string.in.h (__attribute__): Likewise.
53865         * lib/utimens.c (__attribute__): Likewise.
53866         * lib/vasnprintf.h (__attribute__): Likewise.
53867         * lib/xalloc.h (__attribute__): Likewise.
53868         * lib/xprintf.h (__attribute__): Likewise.
53869         * lib/xstrtol.h (__attribute__): Likewise.
53870         * lib/xvasprintf.h (__attribute__): Likewise.
53871
53872 2008-01-12  Bruno Haible  <bruno@clisp.org>
53873
53874         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53875         * doc/glibc-headers/a.out.texi: New file.
53876         * doc/glibc-headers/aliases.texi: New file.
53877         * doc/glibc-headers/alloca.texi: New file.
53878         * doc/glibc-headers/ar.texi: New file.
53879         * doc/glibc-headers/argp.texi: New file.
53880         * doc/glibc-headers/argz.texi: New file.
53881         * doc/glibc-headers/byteswap.texi: New file.
53882         * doc/glibc-headers/crypt.texi: New file.
53883         * doc/glibc-headers/endian.texi: New file.
53884         * doc/glibc-headers/envz.texi: New file.
53885         * doc/glibc-headers/err.texi: New file.
53886         * doc/glibc-headers/error.texi: New file.
53887         * doc/glibc-headers/execinfo.texi: New file.
53888         * doc/glibc-headers/fpu_control.texi: New file.
53889         * doc/glibc-headers/fstab.texi: New file.
53890         * doc/glibc-headers/fts.texi: New file.
53891         * doc/glibc-headers/getopt.texi: New file.
53892         * doc/glibc-headers/ieee754.texi: New file.
53893         * doc/glibc-headers/ifaddrs.texi: New file.
53894         * doc/glibc-headers/libintl.texi: New file.
53895         * doc/glibc-headers/mcheck.texi: New file.
53896         * doc/glibc-headers/mntent.texi: New file.
53897         * doc/glibc-headers/obstack.texi: New file.
53898         * doc/glibc-headers/paths.texi: New file.
53899         * doc/glibc-headers/printf.texi: New file.
53900         * doc/glibc-headers/pty.texi: New file.
53901         * doc/glibc-headers/resolv.texi: New file.
53902         * doc/glibc-headers/shadow.texi: New file.
53903         * doc/glibc-headers/sysexits.texi: New file.
53904         * doc/glibc-headers/ttyent.texi: New file.
53905
53906 2008-01-12  Jim Meyering  <meyering@redhat.com>
53907
53908         announce-gen: emit Gnulib's git-based version string.
53909         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53910         New option --gnulib-version=V, where V is expected to be
53911         the output of running git describe in the gnulib directory.
53912         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53913         not useful, and plan to stop publishing an xdelta file with each
53914         coreutils release.
53915
53916         * build-aux/announce-gen: Also check for lzma-compressed files.
53917
53918 2008-01-11  Bruno Haible  <bruno@clisp.org>
53919
53920         * tests/test-memmem.c (main): Increase maximum allowed time.
53921         * tests/test-strstr.c (main): Likewise.
53922
53923 2008-01-11  Bruno Haible  <bruno@clisp.org>
53924
53925         * doc/functions/memmem.texi: Add more precisions about platforms.
53926         * doc/functions/strstr.texi: Likewise.
53927
53928 2008-01-10  Eric Blake  <ebb9@byu.net>
53929
53930         * m4/strstr.m4: Delete cruft from copy-n-paste.
53931         Reported by Bruno Haible.
53932
53933 2008-01-10  Bruno Haible  <bruno@clisp.org>
53934
53935         Make c-strstr rely on strstr.
53936         * lib/c-strstr.c: Don't include str-kmp.h.
53937         (c_strstr): Define in terms of strstr.
53938         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53939         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53940
53941 2008-01-10  Bruno Haible  <bruno@clisp.org>
53942
53943         * doc/gnulib.texi (String Functions in C Locale): New section.
53944         * doc/c-ctype.texi: New file.
53945         * doc/c-strcase.texi: New file.
53946         * doc/c-strcaseeq.texi: New file.
53947         * doc/c-strcasestr.texi: New file.
53948         * doc/c-strstr.texi: New file.
53949         * doc/c-strtod.texi: New file.
53950         * doc/c-strtold.texi: New file.
53951
53952 2008-01-10  Eric Blake  <ebb9@byu.net>
53953
53954         * lib/relocatable.h: Fix a comment.
53955
53956 2008-01-10  Eric Blake  <ebb9@byu.net>
53957
53958         Share two-way algorithm.
53959         * lib/str-two-way.h: New file, merged from...
53960         * lib/memmem.c: ...here...
53961         * lib/strstr.c: ...and here.
53962         * modules/memmem (Files): Use it.
53963         * modules/strstr (Files): Likewise.
53964
53965         Avoid quadratic strstr implementations.
53966         * lib/strstr.c: New file.
53967         * m4/strstr.m4: Likewise.
53968         * modules/strstr: Likewise.
53969         * modules/strstr-tests: Likewise.
53970         * tests/test-strstr.c: Likewise.
53971         * lib/string.in.h (rpl_strstr): Declare.
53972         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53974         * modules/string (Makefile.am): Likewise.
53975         * MODULES.html.sh (string handling): Mention new module.
53976         * doc/functions/strstr.texi (strstr): Document the bug.
53977
53978 2008-01-10  Bruno Haible  <bruno@clisp.org>
53979
53980         * lib/relocatable.h (relocate): State whether result is freshly
53981         allocated or not.
53982         * lib/relocatable.c (relocate): Return a freshly allocated string
53983         instead of a pointer to a privately held string.
53984         Reported by Sylvain Beucler <beuc@gnu.org>.
53985
53986 2008-01-10  Colin Watson  <cjwatson@debian.org>
53987
53988         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53989         s/S_ISNLK/S_ISLNK/.
53990
53991 2008-01-09  Bruno Haible  <bruno@clisp.org>
53992
53993         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53994         and other files.
53995         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53996         if it's only a guess.
53997         * modules/memmem: Simplify by depending on memmem-simple.
53998
53999 2008-01-09  Bruno Haible  <bruno@clisp.org>
54000
54001         Work around OpenBSD 4.0 tdelete() bug.
54002         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54003         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54004         macros and don't redefine the enum values.
54005         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54006         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54007         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54008
54009 2008-01-09  Bruno Haible  <bruno@clisp.org>
54010
54011         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54012         (main): Don't perform the tests if setlocale did not install a UTF-8
54013         locale. Needed on OpenBSD 4.0.
54014         * modules/wcwidth-tests (Depends-on): Add localcharset.
54015
54016 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54017
54018         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54019         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54020         * NEWS: announce this.
54021         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54022
54023 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54024         and Eric Blake  <ebb9@byu.net>
54025
54026         Add memmem-simple module.
54027         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54028         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54029         * modules/memmem-simple: New file.
54030         * modules/memmem (Description): Tweak.
54031         * MODULES.html.sh (string handling): Mention new module.
54032         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54033         addressed by memmem-simple.
54034         * NEWS: Document the difference.
54035
54036 2008-01-09  Eric Blake  <ebb9@byu.net>
54037
54038         Give gcc some memmem optimization hints.
54039         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54040         (strcasestr): Declare as pure.
54041         * modules/memmem (Maintainer): Claim my implementation.
54042
54043 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54044
54045         Support AIX 6.1 and higher.
54046         * build-aux/config.libpath: Likewise.
54047         * build-aux/config.rpath: Likewise.
54048
54049 2008-01-08  Jim Meyering  <meyering@redhat.com>
54050             Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54053         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54054         Reported by Peter Fales in
54055         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54056
54057 2008-01-08  Bruno Haible  <bruno@clisp.org>
54058
54059         * modules/unictype/category-of (Depends-on): Add
54060         unictype/category-none.
54061         * modules/unictype/category-and-tests (Depends-on): Add
54062         unictype/category-{L,N,Lu,Nd}.
54063         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54064         * modules/unictype/category-or-tests (Depends-on): Add
54065         unictype/category-{L,N}.
54066         * modules/unictype/category-name-tests (Depends-on): Add
54067         unictype/category-{Z,Nl}.
54068         Reported by Simon Josefsson.
54069
54070 2008-01-08  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54073         convention better.
54074         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54075         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54076         Reported by Peter Miller <millerp@canb.auug.org.au>.
54077
54078 2008-01-08  Eric Blake  <ebb9@byu.net>
54079
54080         Rewrite memmem to guarantee linear complexity without malloc.
54081         * lib/memmem.c (memmem): Use Two-Way rather than
54082         Knuth-Morris-Pratt, to allow O(1) space usage.
54083         (critical_factorization, two_way_short_needle)
54084         (two_way_long_needle): New functions.
54085         (knuth_morris_pratt): Delete.
54086         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54087         Add stdint.
54088         * tests/test-memmem.c (main): Add tests for periodic needle and
54089         sublinear performance.
54090         * doc/functions/memmem.texi (memmem): Document other deficiencies
54091         in cygwin and older glibc.
54092
54093 2008-01-08  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54096         augmentation.
54097
54098 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54099
54100         Add a configure time option: --disable-acl.
54101         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54102         AC_ARG_ENABLE(acl).
54103
54104 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54105
54106         * tests/test-localename.c: Don't include obsolete "setenv.h".
54107
54108         * modules/localename-tests (Depends-on): Need unsetenv.
54109
54110 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54111
54112         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54113
54114 2008-01-06  Colin Watson  <cjwatson@debian.org>
54115
54116         * users.txt: Add man-db.
54117
54118 2008-01-07  Bruno Haible  <bruno@clisp.org>
54119
54120         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54121         previous section name.
54122
54123 2008-01-07  Bruno Haible  <bruno@clisp.org>
54124
54125         * lib/progname.c (set_program_name): Don't strip off a leading
54126         "lt-" prefix outside a .libs directory.
54127         Suggested by Paul Eggert.
54128
54129 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54130             Bruno Haible  <bruno@clisp.org>
54131
54132         Improve memory cleanup in 'relocatable' module.
54133         * lib/relocatable.h (compute_curr_prefix): Change return type to
54134         'char *'.
54135         * lib/relocatable.c (compute_curr_prefix): Change return type to
54136         'char *'. Free curr_installdir after use.
54137         (relocate): Free curr_prefix_better after use.
54138         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54139
54140 2008-01-01  Bruno Haible  <bruno@clisp.org>
54141
54142         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54143         failure on older glibc systems.
54144         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54145
54146 2008-01-05  Eric Blake  <ebb9@byu.net>
54147
54148         Avoid quadratic system memmem.
54149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54150         Reported by Ralf Wildenhues.
54151
54152         Fix memmem test for mingw.
54153         * modules/memmem-tests (configure.ac): Check for alarm.
54154         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54155         it.
54156         * doc/functions/memmem.texi: New file.
54157         * doc/gnulib.texi (Function Substitutes): Add memmem.
54158         Reported by Bruno Haible.
54159
54160 2008-01-04  Bruno Haible  <bruno@clisp.org>
54161
54162         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54163         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54164         gl_HEADER_STRING_H_DEFAULTS.
54165
54166 2008-01-04  Eric Blake  <ebb9@byu.net>
54167
54168         Shorten duration of memmem test.
54169         * tests/test-memmem.c (main): Use alarm to declare failure if test
54170         is taking too long.
54171         Reported by Ralf Wildenhues.
54172
54173 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54174
54175         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54176         string, needed by strerror.
54177
54178 2008-01-03  Colin Watson  <cjwatson@debian.org>
54179             Bruno Haible  <bruno@clisp.org>
54180
54181         * doc/gnulib-tool.texi (Localization): New section.
54182
54183 2008-01-02  Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54186         variables to 'unsigned char *' type.
54187         Reported by Paul Eggert.
54188
54189 2008-01-02  Jim Meyering  <jim@meyering.net>
54190
54191         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54192
54193 2007-12-31  Jim Meyering  <jim@meyering.net>
54194
54195         Avoid use of private FTS type name.
54196         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54197
54198 2007-12-30  Karl Berry  <karl@gnu.org>
54199
54200         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54201         work around defect in Texinfo and/or the standalone Info browser.
54202
54203 2007-12-30  Bruno Haible  <bruno@clisp.org>
54204
54205         Unify 5 copies of the KMP code.
54206         * lib/str-kmp.h: New file.
54207         * lib/c-strcasestr.c: Include str-kmp.h.
54208         (knuth_morris_pratt): Remove function.
54209         (c_strcasestr): Update.
54210         * lib/c-strstr.c: Include str-kmp.h.
54211         (knuth_morris_pratt): Remove function.
54212         (c_strcasestr): Update.
54213         * lib/mbscasestr.c: Include str-kmp.h.
54214         (knuth_morris_pratt_unibyte): Remove function.
54215         * lib/mbsstr.c: Include str-kmp.h.
54216         (knuth_morris_pratt_unibyte): Remove function.
54217         * lib/strcasestr.c: Include str-kmp.h.
54218         (knuth_morris_pratt): Remove function.
54219         (strcasestr): Update.
54220         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54221         * modules/c-strstr (Files): Likewise.
54222         * modules/mbscasestr (Files): Likewise.
54223         * modules/mbsstr (Files): Likewise.
54224         * modules/strcasestr (Files): Likewise.
54225         Suggested by Paul Eggert.
54226
54227 2007-12-30  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54230         defined.
54231
54232 2007-12-30  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/xmalloca.h: Include xalloc.h.
54235         (xnmalloca): New macro.
54236
54237 2007-12-30  Bruno Haible  <bruno@clisp.org>
54238
54239         * lib/malloca.h (nmalloca): New macro.
54240         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54241         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54242         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54243         knuth_morris_pratt_multibyte): Likewise.
54244         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54245         knuth_morris_pratt_multibyte): Likewise.
54246         * lib/memmem.c (knuth_morris_pratt): Likewise.
54247         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54248
54249 2007-12-25  Bruno Haible  <bruno@clisp.org>
54250
54251         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54252         * lib/glob.c: Don't include openat.h.
54253         (link_exists2_p): Add back the code that deals with the
54254         !GLOB_ALTDIRFUNC case.
54255         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54256         let it do the filename concatenation.
54257         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54258         * modules/glob (Depends-on): Remove openat.
54259
54260 2007-12-31  Bruno Haible  <bruno@clisp.org>
54261
54262         * modules/dirfd (License): Change to LGPLv2+.
54263         Approved by Jim Meyering.
54264
54265 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54266
54267         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54268         when multiplying M by sizeof (size_t).
54269
54270 2007-12-10  Martin Lambers  <marlam@marlam.de>
54271
54272         Override getpagesize on mingw.
54273         * lib/getpagesize.c: New file.
54274         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54275         * modules/getpagesize (Files): Add lib/getpagesize.c.
54276         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54278         REPLACE_GETPAGESIZE.
54279         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54280
54281 2007-12-25  Bruno Haible  <bruno@clisp.org>
54282
54283         * modules/localcharset (Notice): New field.
54284         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54285         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54286
54287 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54288             Bruno Haible  <bruno@clisp.org>
54289
54290         Avoid using the syntax symbol() in formatted documentation.
54291         * MODULES.html.sh (func_module): When replacing symbol() with a
54292         hyperlink, remove the parentheses. Show an error if some remain.
54293         Recognize and render the '...' syntax.
54294         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54295         Rework. Add paragraph about GCC's inlining.
54296         * doc/alloca.texi: Likewise.
54297         * doc/error.texi: Remove parentheses from symbol reference.
54298         * doc/gnulib-intro.texi: Likewise.
54299         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54300         * modules/fnmatch (Description): Reword to say "the ... function".
54301         * modules/full-read (Description): Likewise.
54302         * modules/full-write (Description): Likewise.
54303         * modules/safe-read (Description): Likewise.
54304         * modules/safe-write (Description): Likewise.
54305         * modules/strchrnul (Description): Likewise.
54306         * modules/trim (Description): Likewise.
54307         * modules/error (Description): Remove parentheses from symbol
54308         references.
54309         * modules/verror (Description): Likewise.
54310         Reported by Karl Berry.
54311
54312 2007-12-25  Bruno Haible  <bruno@clisp.org>
54313
54314         Fixup after 2007-10-16 commit.
54315         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54316
54317 2007-12-24  Bruno Haible  <bruno@clisp.org>
54318
54319         Make --enable-relocatable work with DESTDIR.
54320         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54321         to compute installdir from destprog.
54322         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54323         also set the RELOC_DESTDIR variable.
54324         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54325
54326 2007-12-24  Bruno Haible  <bruno@clisp.org>
54327
54328         Fix link error due to xalloc_die().
54329         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54330         of xreadlink.
54331         * lib/relocwrapper.c: Update comments.
54332         * build-aux/install-reloc: Remove xreadlink.c from file list.
54333         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54334         xreadlink.c.
54335         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54336
54337 2007-12-24  Bruno Haible  <bruno@clisp.org>
54338
54339         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54340         * lib/setenv.h: Remove file.
54341         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54342         lib/setenv.h.
54343         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54344         (Depends-on): Add stdlib.
54345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54346         gl_FUNC_UNSETENV.
54347         (Include): Replace setenv.h with <stdlib.h>.
54348         * modules/unsetenv: New file.
54349         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54350         * lib/unsetenv.c: Include <stdlib.h> first.
54351         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54352         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54353         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54354         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54355         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54356         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54358         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54359         * doc/functions/unsetenv.texi: Update.
54360         * modules/xsetenv (Depends-on): Add unsetenv.
54361         * modules/getdate (Depends-on): Likewise.
54362         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54363         * lib/xsetenv.c: Don't include setenv.h.
54364         * lib/getdate.y: Likewise.
54365         * lib/relocwrapper.c: Likewise.
54366         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54367         (Depends-on): Add stdlib.
54368         * NEWS: Mention the changes.
54369         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54370
54371 2007-12-23  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54374         indentation.
54375
54376 2007-12-23  Bruno Haible  <bruno@clisp.org>
54377
54378         * lib/c-strcasestr.c: Add more comments.
54379         * lib/c-strstr.c: Likewise.
54380         * lib/mbscasestr.c: Likewise.
54381         * lib/mbsstr.c: Likewise.
54382         * lib/strcasestr.c: Likewise.
54383         * lib/memmem.c: Likewise.
54384
54385 2007-12-23  Bruno Haible  <bruno@clisp.org>
54386
54387         * tests/test-memmem.c: Include <string.h> first.
54388
54389 2007-12-22  Bruno Haible  <bruno@clisp.org>
54390
54391         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54392         the contents of $testsbase.
54393         Reported by Ralf Wildenhues.
54394
54395 2007-12-22  Bruno Haible  <bruno@clisp.org>
54396
54397         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54398         two variables local_ldadd_before, local_ldadd_last.
54399
54400 2007-12-20  Eric Blake  <ebb9@byu.net>
54401
54402         Work around circular library issue when cross-compiling.
54403         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54404         that progname.o does not need to pull in rpl_memcmp.
54405
54406 2007-12-19  Eric Blake  <ebb9@byu.net>
54407
54408         Fix memmem to avoid O(n^2) worst-case complexity.
54409         * lib/memmem.c (knuth_morris_pratt): New function.
54410         (memmem): Use it if first few naive iterations fail.
54411         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54412         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54413         * modules/memchr (License): Likewise.
54414         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54415         malloca.
54416         * tests/test-memmem.c: Rewrite, borrowing ideas from
54417         test-mbsstr1.c; the old version wouldn't even compile!
54418         * modules/memmem-tests: New file.
54419         * lib/string.in.h (rpl_memmem): Add declaration.
54420         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54422         REPLACE_MEMMEM.
54423
54424 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54425
54426         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54427         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54428         before any system include files, and undef after them all.  This
54429         should fix a problem on VMS reported by John E. Malmberg in
54430         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54431
54432 2007-12-17  Eric Blake  <ebb9@byu.net>
54433
54434         Revert addition of verify, for BSD/OS.
54435         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54436         can't handle large files, for the sake of obsolete platforms.
54437         * modules/fseeko (Depends-on): Remove verify.
54438         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54439         * doc/functions/ftello.texi (ftello): Likewise.
54440         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54441         Reported by Larry Jones.
54442
54443 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54444
54445         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54446         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54447
54448 2007-12-17  Jim Meyering  <meyering@redhat.com>
54449
54450         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54451         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54452         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54453         * modules/getcwd (Depends-on): Add openat.
54454         Reported by Petr Salinger.
54455
54456 2007-12-17  Bruno Haible  <bruno@clisp.org>
54457
54458         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54459         avoid a segmentation fault of the configure test on x86_64 systems.
54460
54461 2007-12-15  Jim Meyering  <meyering@redhat.com>
54462
54463         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54464
54465 2007-12-13  Eric Blake  <ebb9@byu.net>
54466
54467         Another fseek test.
54468         * tests/test-fseek.c (main): Also test ungetc handling.
54469         * tests/test-fseeko.c (main): Likewise.
54470         * modules/fseeko (Depends-on): Add verify.
54471         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54472         large.
54473         Reported by Larry Jones.
54474
54475         Fix fseeko on mingw.
54476         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54477         seek.
54478
54479         Beef up fseek tests.
54480         * tests/test-fseek.c (main): Also test eof handling.
54481         * tests/test-fseeko.c (main): Likewise.
54482         Reported by Larry Jones.
54483
54484 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54485
54486         Fix fseeko on BSD-based platforms.
54487         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54488         successful seek.
54489
54490 2007-12-12  Eric Blake  <ebb9@byu.net>
54491
54492         Allow circular dependency of separate libtests.a
54493         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54494         when use_libtests.
54495
54496 2007-12-11  Eric Blake  <ebb9@byu.net>
54497
54498         Fix bug with -0.0L in previous patch.
54499         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54500         * tests/test-isnan.c (main): Also test on zeroes.
54501         * tests/test-isnanf.c (main): Likewise.
54502         * tests/test-isnanl.h (main): Likewise.
54503
54504         Detect pseudo-denormals on x86 even when cross-compiling.
54505         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54506         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54507         invalid bit patterns that happen to satisfy ==.
54508
54509         Avoid link failures with separate libtests.a.
54510         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54511         last, to satisfy circular dependencies.
54512
54513 2007-12-11  Eric Blake  <ebb9@byu.net>
54514         and Bruno Haible  <bruno@clisp.org>
54515
54516         Fix OpenBSD 4.0 <float.h> handling of long double.
54517         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54518         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54519         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54520
54521 2007-12-11  Jim Meyering  <meyering@redhat.com>
54522
54523         * users.txt: Add libvirt.
54524
54525         Support versions of autoconf prior to 2.59c.
54526         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54527         if it is not already defined.
54528
54529 2007-12-09  Bruno Haible  <bruno@clisp.org>
54530
54531         Let 'gnulib-tool --import' collect sources needed for the tests in
54532         tests/ rather than in lib/.
54533         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54534         argument. If true, add rules to generate libtests.a, and put libtests.a
54535         into $(LDADD). Consider source files in subdirectories and set
54536         uses_subdirs.
54537         (func_emit_initmacro_start, func_emit_initmacro_end,
54538         func_emit_initmacro_done): Pass all arguments explicitly.
54539         (func_import): Determine two module lists main_modules,
54540         testsrelated_modules. Determine use_libtests. Determine two variables
54541         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54542         instead of just sed_transform_lib_file. Determine two variables
54543         main_files and testsrelated_files. Compute 'files' as the union of
54544         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54545         func_add_or_update. In the generated gnulib-comp.m4, collect the
54546         object files for tests/ in different variables than those for lib/.
54547         Substitute LIBTESTS_LIBDEPS.
54548         (func_create_testdir): Combine the uses_subdirs results from
54549         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54550
54551 2007-12-09  Bruno Haible  <bruno@clisp.org>
54552
54553         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54554         the build-aux directory.
54555
54556 2007-12-09  Bruno Haible  <bruno@clisp.org>
54557
54558         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54559         introduced on 2006-09-09.
54560
54561 2007-12-07  Jim Meyering  <meyering@redhat.com>
54562
54563         Let these macros work also with autoconf-2.59.
54564         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54565         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54566         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54567
54568 2007-12-06  Jim Meyering  <meyering@redhat.com>
54569
54570         Avoid a configure-time syntax error in gl_FUNC_ACL.
54571         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54572         function in each branch, before testing the cache variable.
54573
54574 2007-12-04  Eric Blake  <ebb9@byu.net>
54575
54576         Make scripts executable.
54577         * build-aux/config.guess: Add execute permissions.
54578         * build-aux/config.sub: Likewise.
54579         * build-aux/gendocs.sh: Likewise.
54580
54581         Fix frexp on mingw.
54582         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54583         cross-compiling.
54584         * doc/functions/frexp.texi (frexp): Document the bug.
54585
54586         Make cygwin fseeko check more reliable.
54587         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54588         version numbers, rather than unrelated feature check.
54589         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54590         * doc/functions/ftello.texi (ftello): Likewise.
54591         Reported by Bruno Haible.
54592
54593         * m4/strerror.m4: Bump version number.
54594
54595 2007-12-03  Bruno Haible  <bruno@clisp.org>
54596
54597         * doc/functions/mprotect.texi: Mention the mingw problem.
54598
54599 2007-12-03  Eric Blake  <ebb9@byu.net>
54600
54601         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54602         REPLACE_STRERROR is initialized before this macro.
54603
54604 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54607         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54608         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54609         put -lsec in even for programs other than 'ls'.  This fixes a problem
54610         for gettext reported by Bruno Haible in
54611         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54612         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54613         Add support for Solaris 10.  This isn't efficient, but should get the
54614         job done for now.
54615
54616 2007-12-03  James Youngman  <jay@gnu.org>
54617
54618         * doc/regexprops-generic.texi: change "an close-group" to "a
54619         close-group" and "illegal" to "not allowed".
54620
54621 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54622
54623         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54624         pr_byname.h. Needed for the rare case when the maintainer has done
54625         "make maintainer-clean" in the source directory and then attempts a
54626         build outside the source directory.
54627         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54628         scripts_byname.h.
54629
54630 2007-12-02  Martin Lambers <marlam@marlam.de>
54631             Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/getpagesize.h: Remove file.
54634         * lib/unistd.in.h: Include declaration of getpagesize here.
54635         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54636         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54637         HAVE_SYS_PARAM_H.
54638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54639         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54640         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54641         (Depends-on): Add unistd.
54642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54643         (Include): Use <unistd.h> instead of getpagesize.h.
54644         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54645         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54646         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54647         gl_GETPAGESIZE invocation, already handled by module dependency.
54648         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54649
54650 2007-12-02  Bruno Haible  <bruno@clisp.org>
54651
54652         * modules/strings-tests: New file.
54653         * tests/test-strings.c: New file.
54654
54655         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54656         * lib/strings.in.h: New file.
54657         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54658         * m4/strings_h.m4: New file.
54659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54660         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54661         * modules/strings: New file.
54662         * modules/string (Makefile.am): Update.
54663         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54664         Reported by Karl Berry.
54665
54666 2007-12-01  Eric Blake  <ebb9@byu.net>
54667
54668         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54669         accomodate fix in cygwin 1.5.25.
54670
54671 2007-12-01  Jim Meyering  <meyering@redhat.com>
54672
54673         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54674         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54675         that would inhibit utf8-optimization of a regexp containing line-
54676         or buffer-anchors, e.g., `^', `$'.
54677
54678 2007-11-30  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54681         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54682         glthread_recursive_lock_init.
54683         * lib/lock.c (glthread_recursive_lock_init)
54684         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54685         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54686
54687 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         New function qset_acl, like set_acl but with syscall semantics.
54690         * lib/acl.h (qset_acl): New decl.
54691         * lib/acl.c (qset_acl): New function.
54692         (set_acl): Use new function.  Use more-consistent diagnostics.
54693
54694 2007-11-28  Jim Meyering  <meyering@redhat.com>
54695
54696         * modules/physmem (License): Change from GPL to LGPLv2+.
54697
54698 2007-11-26  Bruno Haible  <bruno@clisp.org>
54699
54700         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54701         'long double' type has excess precision.
54702         Reported by Jim Meyering in
54703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54704
54705 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54706
54707         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54708         Sync from <http://gnu.org/licenses>.
54709         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54710         with license text from same location.
54711         * doc/maintain.texi, doc/standards.texi:  Sync from
54712         <http://savannah.gnu.org/projects/gnustandards>.
54713
54714 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54715         and Jim Meyering  <meyering@redhat.com>
54716
54717         Adjust getdate' grammar to accept a slightly more regular language.
54718         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54719         Before, the former was rejected.
54720         * lib/getdate.y (digits_to_date_time): New function, factored
54721         out of ...
54722         (number): ...here.  Just call digits_to_date_time.
54723         (hybrid): New non-terminal to handle an <unsigned number,
54724         signed relative offset> sequence consistently.
54725
54726 2007-11-18  Jim Meyering  <meyering@redhat.com>
54727
54728         Pull my changes from coreutils:
54729         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54730         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54731         use of $gnulib_tool_option_extras, so that it's separated from the
54732         preceding argument.
54733
54734         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54735         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54736         parent destination directories before copying a file into place.
54737
54738 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54739
54740         bootstrap: work also with 4-argument variant of AC_INIT
54741         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54742
54743 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54744
54745         Port test-getaddrinfo to Solaris.
54746         Problem reported by Bruno Haible in
54747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54748         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54749         explanation of setting 'hints'.
54750         Don't reject an implementation merely because it returns EAI_SERVICE.
54751         (EAI_SERVICE): Define to 0 if not defined.
54752
54753 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54754
54755         The license of gnu-make and posix-shell is now "GPLed build tool".
54756         * modules/gnu-make (License): Likewise.
54757         * modules/posix-shell (License): Likewise.
54758
54759         New module posix-shell, for determining a POSIX shell
54760         or perhaps something that is close enough to a POSIX shell.
54761         * m4/posix-shell.m4: New file.
54762         * modules/posix-shell: New file.
54763
54764         * MODULES.html.sh: Mention new module.
54765
54766         New module gnu-make, for determining whether we're using GNU Make.
54767         * m4/gnu-make.m4: New file.
54768         * modules/gnu-make: New file.
54769         * MODULES.html.sh: Mention new module.
54770
54771 2007-11-14  Jim Meyering  <meyering@redhat.com>
54772
54773         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54774         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54775         use this macro to create a function _definition_.
54776         Remove useless "#undef ARGMATCH_DIE".
54777
54778 2007-11-14  Bruno Haible  <bruno@clisp.org>
54779
54780         * lib/config.charset: Update for OpenBSD 4.1.
54781         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54782
54783 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54784
54785         Document 64-bit #if problems in stdint.texi.
54786         * doc/headers/stdint.texi (stdint.h): Mention problems with
54787         64-bit-#if, and how to work around them.
54788
54789         Don't insist on 'long long int' support in the preprocessor.  It
54790         breaks too many things.  For example, PRIdMAX still uses a 'long
54791         long int' format with the latest Sun compiler, even though
54792         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54793         preprocessor problem.  This causes the latest coreutils to dump
54794         core on Solaris 10 sparc with the Sun C compiler.
54795         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54796         the troublesome expressions at configure-time, not at #if-time.
54797         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54798         preprocessor.
54799         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54800         compile-time C checks, done at 'configure'-time.
54801         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54802         * modules/inttypes (Makefile): Substitute the new symbols that
54803         gl_INTTYPES_H now generates.
54804         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54805
54806 2007-11-12  Bruno Haible  <bruno@clisp.org>
54807
54808         Tests for Unicode character classification functions.
54809
54810         * modules/unictype/bidicategory-byname-tests: New file.
54811         * modules/unictype/bidicategory-name-tests: New file.
54812         * modules/unictype/bidicategory-of-tests: New file.
54813         * modules/unictype/bidicategory-test-tests: New file.
54814         * modules/unictype/block-list-tests: New file.
54815         * modules/unictype/block-of-tests: New file.
54816         * modules/unictype/block-test-tests: New file.
54817         * modules/unictype/category-C-tests: New file.
54818         * modules/unictype/category-Cc-tests: New file.
54819         * modules/unictype/category-Cf-tests: New file.
54820         * modules/unictype/category-Cn-tests: New file.
54821         * modules/unictype/category-Co-tests: New file.
54822         * modules/unictype/category-Cs-tests: New file.
54823         * modules/unictype/category-L-tests: New file.
54824         * modules/unictype/category-Ll-tests: New file.
54825         * modules/unictype/category-Lm-tests: New file.
54826         * modules/unictype/category-Lo-tests: New file.
54827         * modules/unictype/category-Lt-tests: New file.
54828         * modules/unictype/category-Lu-tests: New file.
54829         * modules/unictype/category-M-tests: New file.
54830         * modules/unictype/category-Mc-tests: New file.
54831         * modules/unictype/category-Me-tests: New file.
54832         * modules/unictype/category-Mn-tests: New file.
54833         * modules/unictype/category-N-tests: New file.
54834         * modules/unictype/category-Nd-tests: New file.
54835         * modules/unictype/category-Nl-tests: New file.
54836         * modules/unictype/category-No-tests: New file.
54837         * modules/unictype/category-P-tests: New file.
54838         * modules/unictype/category-Pc-tests: New file.
54839         * modules/unictype/category-Pd-tests: New file.
54840         * modules/unictype/category-Pe-tests: New file.
54841         * modules/unictype/category-Pf-tests: New file.
54842         * modules/unictype/category-Pi-tests: New file.
54843         * modules/unictype/category-Po-tests: New file.
54844         * modules/unictype/category-Ps-tests: New file.
54845         * modules/unictype/category-S-tests: New file.
54846         * modules/unictype/category-Sc-tests: New file.
54847         * modules/unictype/category-Sk-tests: New file.
54848         * modules/unictype/category-Sm-tests: New file.
54849         * modules/unictype/category-So-tests: New file.
54850         * modules/unictype/category-Z-tests: New file.
54851         * modules/unictype/category-Zl-tests: New file.
54852         * modules/unictype/category-Zp-tests: New file.
54853         * modules/unictype/category-Zs-tests: New file.
54854         * modules/unictype/category-and-not-tests: New file.
54855         * modules/unictype/category-and-tests: New file.
54856         * modules/unictype/category-byname-tests: New file.
54857         * modules/unictype/category-name-tests: New file.
54858         * modules/unictype/category-none-tests: New file.
54859         * modules/unictype/category-of-tests: New file.
54860         * modules/unictype/category-or-tests: New file.
54861         * modules/unictype/category-test-withtable-tests: New file.
54862         * modules/unictype/combining-class-tests: New file.
54863         * modules/unictype/ctype-alnum-tests: New file.
54864         * modules/unictype/ctype-alpha-tests: New file.
54865         * modules/unictype/ctype-blank-tests: New file.
54866         * modules/unictype/ctype-cntrl-tests: New file.
54867         * modules/unictype/ctype-digit-tests: New file.
54868         * modules/unictype/ctype-graph-tests: New file.
54869         * modules/unictype/ctype-lower-tests: New file.
54870         * modules/unictype/ctype-print-tests: New file.
54871         * modules/unictype/ctype-punct-tests: New file.
54872         * modules/unictype/ctype-space-tests: New file.
54873         * modules/unictype/ctype-upper-tests: New file.
54874         * modules/unictype/ctype-xdigit-tests: New file.
54875         * modules/unictype/decimal-digit-tests: New file.
54876         * modules/unictype/digit-tests: New file.
54877         * modules/unictype/mirror-tests: New file.
54878         * modules/unictype/numeric-tests: New file.
54879         * modules/unictype/property-alphabetic-tests: New file.
54880         * modules/unictype/property-ascii-hex-digit-tests: New file.
54881         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54882         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54883         * modules/unictype/property-bidi-block-separator-tests: New file.
54884         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54885         * modules/unictype/property-bidi-common-separator-tests: New file.
54886         * modules/unictype/property-bidi-control-tests: New file.
54887         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54888         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54889         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54890         * modules/unictype/property-bidi-european-digit-tests: New file.
54891         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54892         * modules/unictype/property-bidi-left-to-right-tests: New file.
54893         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54894         * modules/unictype/property-bidi-other-neutral-tests: New file.
54895         * modules/unictype/property-bidi-pdf-tests: New file.
54896         * modules/unictype/property-bidi-segment-separator-tests: New file.
54897         * modules/unictype/property-bidi-whitespace-tests: New file.
54898         * modules/unictype/property-byname-tests: New file.
54899         * modules/unictype/property-combining-tests: New file.
54900         * modules/unictype/property-composite-tests: New file.
54901         * modules/unictype/property-currency-symbol-tests: New file.
54902         * modules/unictype/property-dash-tests: New file.
54903         * modules/unictype/property-decimal-digit-tests: New file.
54904         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54905         * modules/unictype/property-deprecated-tests: New file.
54906         * modules/unictype/property-diacritic-tests: New file.
54907         * modules/unictype/property-extender-tests: New file.
54908         * modules/unictype/property-format-control-tests: New file.
54909         * modules/unictype/property-grapheme-base-tests: New file.
54910         * modules/unictype/property-grapheme-extend-tests: New file.
54911         * modules/unictype/property-grapheme-link-tests: New file.
54912         * modules/unictype/property-hex-digit-tests: New file.
54913         * modules/unictype/property-hyphen-tests: New file.
54914         * modules/unictype/property-id-continue-tests: New file.
54915         * modules/unictype/property-id-start-tests: New file.
54916         * modules/unictype/property-ideographic-tests: New file.
54917         * modules/unictype/property-ids-binary-operator-tests: New file.
54918         * modules/unictype/property-ids-trinary-operator-tests: New file.
54919         * modules/unictype/property-ignorable-control-tests: New file.
54920         * modules/unictype/property-iso-control-tests: New file.
54921         * modules/unictype/property-join-control-tests: New file.
54922         * modules/unictype/property-left-of-pair-tests: New file.
54923         * modules/unictype/property-line-separator-tests: New file.
54924         * modules/unictype/property-logical-order-exception-tests: New file.
54925         * modules/unictype/property-lowercase-tests: New file.
54926         * modules/unictype/property-math-tests: New file.
54927         * modules/unictype/property-non-break-tests: New file.
54928         * modules/unictype/property-not-a-character-tests: New file.
54929         * modules/unictype/property-numeric-tests: New file.
54930         * modules/unictype/property-other-alphabetic-tests: New file.
54931         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54932         * modules/unictype/property-other-grapheme-extend-tests: New file.
54933         * modules/unictype/property-other-id-continue-tests: New file.
54934         * modules/unictype/property-other-id-start-tests: New file.
54935         * modules/unictype/property-other-lowercase-tests: New file.
54936         * modules/unictype/property-other-math-tests: New file.
54937         * modules/unictype/property-other-uppercase-tests: New file.
54938         * modules/unictype/property-paired-punctuation-tests: New file.
54939         * modules/unictype/property-paragraph-separator-tests: New file.
54940         * modules/unictype/property-pattern-syntax-tests: New file.
54941         * modules/unictype/property-pattern-white-space-tests: New file.
54942         * modules/unictype/property-private-use-tests: New file.
54943         * modules/unictype/property-punctuation-tests: New file.
54944         * modules/unictype/property-quotation-mark-tests: New file.
54945         * modules/unictype/property-radical-tests: New file.
54946         * modules/unictype/property-sentence-terminal-tests: New file.
54947         * modules/unictype/property-soft-dotted-tests: New file.
54948         * modules/unictype/property-space-tests: New file.
54949         * modules/unictype/property-terminal-punctuation-tests: New file.
54950         * modules/unictype/property-test-tests: New file.
54951         * modules/unictype/property-titlecase-tests: New file.
54952         * modules/unictype/property-unassigned-code-value-tests: New file.
54953         * modules/unictype/property-unified-ideograph-tests: New file.
54954         * modules/unictype/property-uppercase-tests: New file.
54955         * modules/unictype/property-variation-selector-tests: New file.
54956         * modules/unictype/property-white-space-tests: New file.
54957         * modules/unictype/property-xid-continue-tests: New file.
54958         * modules/unictype/property-xid-start-tests: New file.
54959         * modules/unictype/property-zero-width-tests: New file.
54960         * modules/unictype/scripts-tests: New file.
54961         * modules/unictype/syntax-c-ident-tests: New file.
54962         * modules/unictype/syntax-c-whitespace-tests: New file.
54963         * modules/unictype/syntax-java-ident-tests: New file.
54964         * modules/unictype/syntax-java-whitespace-tests: New file.
54965         * tests/unictype/test-bidi_byname.c: New file.
54966         * tests/unictype/test-bidi_name.c: New file.
54967         * tests/unictype/test-bidi_of.c: New file.
54968         * tests/unictype/test-bidi_test.c: New file.
54969         * tests/unictype/test-block_list.c: New file.
54970         * tests/unictype/test-block_of.c: New file.
54971         * tests/unictype/test-block_test.c: New file.
54972         * tests/unictype/test-categ_and.c: New file.
54973         * tests/unictype/test-categ_and_not.c: New file.
54974         * tests/unictype/test-categ_byname.c: New file.
54975         * tests/unictype/test-categ_name.c: New file.
54976         * tests/unictype/test-categ_none.c: New file.
54977         * tests/unictype/test-categ_of.c: New file.
54978         * tests/unictype/test-categ_or.c: New file.
54979         * tests/unictype/test-categ_test_withtable.c: New file.
54980         * tests/unictype/test-combining.c: New file.
54981         * tests/unictype/test-decdigit.c: New file.
54982         * tests/unictype/test-digit.c: New file.
54983         * tests/unictype/test-mirror.c: New file.
54984         * tests/unictype/test-numeric.c: New file.
54985         * tests/unictype/test-pr_byname.c: New file.
54986         * tests/unictype/test-pr_test.c: New file.
54987         * tests/unictype/test-predicate-part1.h: New file.
54988         * tests/unictype/test-predicate-part2.h: New file.
54989         * tests/unictype/test-scripts.c: New file.
54990         * tests/unictype/test-sy_c_ident.c: New file.
54991         * tests/unictype/test-sy_java_ident.c: New file.
54992
54993         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54994         for Unicode 5.0.0.
54995         * tests/unictype/test-categ_Cc.c: Likewise.
54996         * tests/unictype/test-categ_Cf.c: Likewise.
54997         * tests/unictype/test-categ_Cn.c: Likewise.
54998         * tests/unictype/test-categ_Co.c: Likewise.
54999         * tests/unictype/test-categ_Cs.c: Likewise.
55000         * tests/unictype/test-categ_L.c: Likewise.
55001         * tests/unictype/test-categ_Ll.c: Likewise.
55002         * tests/unictype/test-categ_Lm.c: Likewise.
55003         * tests/unictype/test-categ_Lo.c: Likewise.
55004         * tests/unictype/test-categ_Lt.c: Likewise.
55005         * tests/unictype/test-categ_Lu.c: Likewise.
55006         * tests/unictype/test-categ_M.c: Likewise.
55007         * tests/unictype/test-categ_Mc.c: Likewise.
55008         * tests/unictype/test-categ_Me.c: Likewise.
55009         * tests/unictype/test-categ_Mn.c: Likewise.
55010         * tests/unictype/test-categ_N.c: Likewise.
55011         * tests/unictype/test-categ_Nd.c: Likewise.
55012         * tests/unictype/test-categ_Nl.c: Likewise.
55013         * tests/unictype/test-categ_No.c: Likewise.
55014         * tests/unictype/test-categ_P.c: Likewise.
55015         * tests/unictype/test-categ_Pc.c: Likewise.
55016         * tests/unictype/test-categ_Pd.c: Likewise.
55017         * tests/unictype/test-categ_Pe.c: Likewise.
55018         * tests/unictype/test-categ_Pf.c: Likewise.
55019         * tests/unictype/test-categ_Pi.c: Likewise.
55020         * tests/unictype/test-categ_Po.c: Likewise.
55021         * tests/unictype/test-categ_Ps.c: Likewise.
55022         * tests/unictype/test-categ_S.c: Likewise.
55023         * tests/unictype/test-categ_Sc.c: Likewise.
55024         * tests/unictype/test-categ_Sk.c: Likewise.
55025         * tests/unictype/test-categ_Sm.c: Likewise.
55026         * tests/unictype/test-categ_So.c: Likewise.
55027         * tests/unictype/test-categ_Z.c: Likewise.
55028         * tests/unictype/test-categ_Zl.c: Likewise.
55029         * tests/unictype/test-categ_Zp.c: Likewise.
55030         * tests/unictype/test-categ_Zs.c: Likewise.
55031         * tests/unictype/test-ctype_alnum.c: Likewise.
55032         * tests/unictype/test-ctype_alpha.c: Likewise.
55033         * tests/unictype/test-ctype_blank.c: Likewise.
55034         * tests/unictype/test-ctype_cntrl.c: Likewise.
55035         * tests/unictype/test-ctype_digit.c: Likewise.
55036         * tests/unictype/test-ctype_graph.c: Likewise.
55037         * tests/unictype/test-ctype_lower.c: Likewise.
55038         * tests/unictype/test-ctype_print.c: Likewise.
55039         * tests/unictype/test-ctype_punct.c: Likewise.
55040         * tests/unictype/test-ctype_space.c: Likewise.
55041         * tests/unictype/test-ctype_upper.c: Likewise.
55042         * tests/unictype/test-ctype_xdigit.c: Likewise.
55043         * tests/unictype/test-decdigit.h: Likewise.
55044         * tests/unictype/test-digit.h: Likewise.
55045         * tests/unictype/test-numeric.h: Likewise.
55046         * tests/unictype/test-pr_alphabetic.c: Likewise.
55047         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55048         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55049         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55050         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55051         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55052         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55053         * tests/unictype/test-pr_bidi_control.c: Likewise.
55054         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55055         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55056         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55057         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55058         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55059         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55060         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55061         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55062         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55063         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55064         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55065         * tests/unictype/test-pr_combining.c: Likewise.
55066         * tests/unictype/test-pr_composite.c: Likewise.
55067         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55068         * tests/unictype/test-pr_dash.c: Likewise.
55069         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55070         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55071         * tests/unictype/test-pr_deprecated.c: Likewise.
55072         * tests/unictype/test-pr_diacritic.c: Likewise.
55073         * tests/unictype/test-pr_extender.c: Likewise.
55074         * tests/unictype/test-pr_format_control.c: Likewise.
55075         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55076         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55077         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55078         * tests/unictype/test-pr_hex_digit.c: Likewise.
55079         * tests/unictype/test-pr_hyphen.c: Likewise.
55080         * tests/unictype/test-pr_id_continue.c: Likewise.
55081         * tests/unictype/test-pr_id_start.c: Likewise.
55082         * tests/unictype/test-pr_ideographic.c: Likewise.
55083         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55084         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55085         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55086         * tests/unictype/test-pr_iso_control.c: Likewise.
55087         * tests/unictype/test-pr_join_control.c: Likewise.
55088         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55089         * tests/unictype/test-pr_line_separator.c: Likewise.
55090         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55091         * tests/unictype/test-pr_lowercase.c: Likewise.
55092         * tests/unictype/test-pr_math.c: Likewise.
55093         * tests/unictype/test-pr_non_break.c: Likewise.
55094         * tests/unictype/test-pr_not_a_character.c: Likewise.
55095         * tests/unictype/test-pr_numeric.c: Likewise.
55096         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55097         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55098         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55099         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55100         * tests/unictype/test-pr_other_id_start.c: Likewise.
55101         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55102         * tests/unictype/test-pr_other_math.c: Likewise.
55103         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55104         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55105         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55106         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55107         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55108         * tests/unictype/test-pr_private_use.c: Likewise.
55109         * tests/unictype/test-pr_punctuation.c: Likewise.
55110         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55111         * tests/unictype/test-pr_radical.c: Likewise.
55112         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55113         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55114         * tests/unictype/test-pr_space.c: Likewise.
55115         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55116         * tests/unictype/test-pr_titlecase.c: Likewise.
55117         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55118         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55119         * tests/unictype/test-pr_uppercase.c: Likewise.
55120         * tests/unictype/test-pr_variation_selector.c: Likewise.
55121         * tests/unictype/test-pr_white_space.c: Likewise.
55122         * tests/unictype/test-pr_xid_continue.c: Likewise.
55123         * tests/unictype/test-pr_xid_start.c: Likewise.
55124         * tests/unictype/test-pr_zero_width.c: Likewise.
55125         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55126         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55127
55128 2007-11-12  Bruno Haible  <bruno@clisp.org>
55129
55130         Unicode character classification functions.
55131         * lib/unictype.h: New file.
55132         * modules/unictype/base: New file.
55133         * modules/unictype/category-L: New file.
55134         * modules/unictype/category-Lu: New file.
55135         * modules/unictype/category-Ll: New file.
55136         * modules/unictype/category-Lt: New file.
55137         * modules/unictype/category-Lm: New file.
55138         * modules/unictype/category-Lo: New file.
55139         * modules/unictype/category-M: New file.
55140         * modules/unictype/category-Mn: New file.
55141         * modules/unictype/category-Mc: New file.
55142         * modules/unictype/category-Me: New file.
55143         * modules/unictype/category-N: New file.
55144         * modules/unictype/category-Nd: New file.
55145         * modules/unictype/category-Nl: New file.
55146         * modules/unictype/category-No: New file.
55147         * modules/unictype/category-P: New file.
55148         * modules/unictype/category-Pc: New file.
55149         * modules/unictype/category-Pd: New file.
55150         * modules/unictype/category-Ps: New file.
55151         * modules/unictype/category-Pe: New file.
55152         * modules/unictype/category-Pi: New file.
55153         * modules/unictype/category-Pf: New file.
55154         * modules/unictype/category-Po: New file.
55155         * modules/unictype/category-S: New file.
55156         * modules/unictype/category-Sm: New file.
55157         * modules/unictype/category-Sc: New file.
55158         * modules/unictype/category-Sk: New file.
55159         * modules/unictype/category-So: New file.
55160         * modules/unictype/category-Z: New file.
55161         * modules/unictype/category-Zs: New file.
55162         * modules/unictype/category-Zl: New file.
55163         * modules/unictype/category-Zp: New file.
55164         * modules/unictype/category-C: New file.
55165         * modules/unictype/category-Cc: New file.
55166         * modules/unictype/category-Cf: New file.
55167         * modules/unictype/category-Cs: New file.
55168         * modules/unictype/category-Co: New file.
55169         * modules/unictype/category-Cn: New file.
55170         * modules/unictype/category-or: New file.
55171         * modules/unictype/category-of: New file.
55172         * modules/unictype/category-test: New file.
55173         * modules/unictype/category-test-withtable: New file.
55174         * modules/unictype/category-byname: New file.
55175         * modules/unictype/category-none: New file.
55176         * modules/unictype/category-and: New file.
55177         * modules/unictype/category-and-not: New file.
55178         * modules/unictype/category-name: New file.
55179         * modules/unictype/combining-class: New file.
55180         * modules/unictype/category-all: New file.
55181         * modules/unictype/bidicategory-all: New file.
55182         * modules/unictype/bidicategory-byname: New file.
55183         * modules/unictype/bidicategory-name: New file.
55184         * modules/unictype/bidicategory-of: New file.
55185         * modules/unictype/bidicategory-test: New file.
55186         * modules/unictype/decimal-digit: New file.
55187         * modules/unictype/digit: New file.
55188         * modules/unictype/numeric: New file.
55189         * modules/unictype/mirror: New file.
55190         * modules/unictype/property-white-space: New file.
55191         * modules/unictype/property-alphabetic: New file.
55192         * modules/unictype/property-other-alphabetic: New file.
55193         * modules/unictype/property-not-a-character: New file.
55194         * modules/unictype/property-default-ignorable-code-point: New file.
55195         * modules/unictype/property-other-default-ignorable-code-point: New
55196         file.
55197         * modules/unictype/property-deprecated: New file.
55198         * modules/unictype/property-logical-order-exception: New file.
55199         * modules/unictype/property-variation-selector: New file.
55200         * modules/unictype/property-private-use: New file.
55201         * modules/unictype/property-unassigned-code-value: New file.
55202         * modules/unictype/property-uppercase: New file.
55203         * modules/unictype/property-other-uppercase: New file.
55204         * modules/unictype/property-lowercase: New file.
55205         * modules/unictype/property-other-lowercase: New file.
55206         * modules/unictype/property-titlecase: New file.
55207         * modules/unictype/property-soft-dotted: New file.
55208         * modules/unictype/property-id-start: New file.
55209         * modules/unictype/property-other-id-start: New file.
55210         * modules/unictype/property-id-continue: New file.
55211         * modules/unictype/property-other-id-continue: New file.
55212         * modules/unictype/property-xid-start: New file.
55213         * modules/unictype/property-xid-continue: New file.
55214         * modules/unictype/property-pattern-white-space: New file.
55215         * modules/unictype/property-pattern-syntax: New file.
55216         * modules/unictype/property-join-control: New file.
55217         * modules/unictype/property-grapheme-base: New file.
55218         * modules/unictype/property-grapheme-extend: New file.
55219         * modules/unictype/property-other-grapheme-extend: New file.
55220         * modules/unictype/property-grapheme-link: New file.
55221         * modules/unictype/property-bidi-control: New file.
55222         * modules/unictype/property-bidi-left-to-right: New file.
55223         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55224         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55225         * modules/unictype/property-bidi-european-digit: New file.
55226         * modules/unictype/property-bidi-eur-num-separator: New file.
55227         * modules/unictype/property-bidi-eur-num-terminator: New file.
55228         * modules/unictype/property-bidi-arabic-digit: New file.
55229         * modules/unictype/property-bidi-common-separator: New file.
55230         * modules/unictype/property-bidi-block-separator: New file.
55231         * modules/unictype/property-bidi-segment-separator: New file.
55232         * modules/unictype/property-bidi-whitespace: New file.
55233         * modules/unictype/property-bidi-non-spacing-mark: New file.
55234         * modules/unictype/property-bidi-boundary-neutral: New file.
55235         * modules/unictype/property-bidi-pdf: New file.
55236         * modules/unictype/property-bidi-embedding-or-override: New file.
55237         * modules/unictype/property-bidi-other-neutral: New file.
55238         * modules/unictype/property-hex-digit: New file.
55239         * modules/unictype/property-ascii-hex-digit: New file.
55240         * modules/unictype/property-ideographic: New file.
55241         * modules/unictype/property-unified-ideograph: New file.
55242         * modules/unictype/property-radical: New file.
55243         * modules/unictype/property-ids-binary-operator: New file.
55244         * modules/unictype/property-ids-trinary-operator: New file.
55245         * modules/unictype/property-zero-width: New file.
55246         * modules/unictype/property-space: New file.
55247         * modules/unictype/property-non-break: New file.
55248         * modules/unictype/property-iso-control: New file.
55249         * modules/unictype/property-format-control: New file.
55250         * modules/unictype/property-dash: New file.
55251         * modules/unictype/property-hyphen: New file.
55252         * modules/unictype/property-punctuation: New file.
55253         * modules/unictype/property-line-separator: New file.
55254         * modules/unictype/property-paragraph-separator: New file.
55255         * modules/unictype/property-quotation-mark: New file.
55256         * modules/unictype/property-sentence-terminal: New file.
55257         * modules/unictype/property-terminal-punctuation: New file.
55258         * modules/unictype/property-currency-symbol: New file.
55259         * modules/unictype/property-math: New file.
55260         * modules/unictype/property-other-math: New file.
55261         * modules/unictype/property-paired-punctuation: New file.
55262         * modules/unictype/property-left-of-pair: New file.
55263         * modules/unictype/property-combining: New file.
55264         * modules/unictype/property-composite: New file.
55265         * modules/unictype/property-decimal-digit: New file.
55266         * modules/unictype/property-numeric: New file.
55267         * modules/unictype/property-diacritic: New file.
55268         * modules/unictype/property-extender: New file.
55269         * modules/unictype/property-ignorable-control: New file.
55270         * modules/unictype/property-test: New file.
55271         * modules/unictype/property-byname: New file.
55272         * modules/unictype/property-all: New file.
55273         * modules/unictype/scripts: New file.
55274         * modules/unictype/scripts-all: New file.
55275         * modules/unictype/block-of: New file.
55276         * modules/unictype/block-test: New file.
55277         * modules/unictype/block-list: New file.
55278         * modules/unictype/block-all: New file.
55279         * modules/unictype/syntax-c-whitespace: New file.
55280         * modules/unictype/syntax-java-whitespace: New file.
55281         * modules/unictype/syntax-c-ident: New file.
55282         * modules/unictype/syntax-java-ident: New file.
55283         * modules/unictype/ctype-alnum: New file.
55284         * modules/unictype/ctype-alpha: New file.
55285         * modules/unictype/ctype-cntrl: New file.
55286         * modules/unictype/ctype-digit: New file.
55287         * modules/unictype/ctype-graph: New file.
55288         * modules/unictype/ctype-lower: New file.
55289         * modules/unictype/ctype-print: New file.
55290         * modules/unictype/ctype-punct: New file.
55291         * modules/unictype/ctype-space: New file.
55292         * modules/unictype/ctype-upper: New file.
55293         * modules/unictype/ctype-xdigit: New file.
55294         * modules/unictype/ctype-blank: New file.
55295         * lib/unictype/bidi_byname.c: New file.
55296         * lib/unictype/bidi_name.c: New file.
55297         * lib/unictype/bidi_of.c: New file.
55298         * lib/unictype/bidi_test.c: New file.
55299         * lib/unictype/bitmap.h: New file.
55300         * lib/unictype/block_test.c: New file.
55301         * lib/unictype/blocks.c: New file.
55302         * lib/unictype/categ_C.c: New file.
55303         * lib/unictype/categ_Cc.c: New file.
55304         * lib/unictype/categ_Cf.c: New file.
55305         * lib/unictype/categ_Cn.c: New file.
55306         * lib/unictype/categ_Co.c: New file.
55307         * lib/unictype/categ_Cs.c: New file.
55308         * lib/unictype/categ_L.c: New file.
55309         * lib/unictype/categ_Ll.c: New file.
55310         * lib/unictype/categ_Lm.c: New file.
55311         * lib/unictype/categ_Lo.c: New file.
55312         * lib/unictype/categ_Lt.c: New file.
55313         * lib/unictype/categ_Lu.c: New file.
55314         * lib/unictype/categ_M.c: New file.
55315         * lib/unictype/categ_Mc.c: New file.
55316         * lib/unictype/categ_Me.c: New file.
55317         * lib/unictype/categ_Mn.c: New file.
55318         * lib/unictype/categ_N.c: New file.
55319         * lib/unictype/categ_Nd.c: New file.
55320         * lib/unictype/categ_Nl.c: New file.
55321         * lib/unictype/categ_No.c: New file.
55322         * lib/unictype/categ_P.c: New file.
55323         * lib/unictype/categ_Pc.c: New file.
55324         * lib/unictype/categ_Pd.c: New file.
55325         * lib/unictype/categ_Pe.c: New file.
55326         * lib/unictype/categ_Pf.c: New file.
55327         * lib/unictype/categ_Pi.c: New file.
55328         * lib/unictype/categ_Po.c: New file.
55329         * lib/unictype/categ_Ps.c: New file.
55330         * lib/unictype/categ_S.c: New file.
55331         * lib/unictype/categ_Sc.c: New file.
55332         * lib/unictype/categ_Sk.c: New file.
55333         * lib/unictype/categ_Sm.c: New file.
55334         * lib/unictype/categ_So.c: New file.
55335         * lib/unictype/categ_Z.c: New file.
55336         * lib/unictype/categ_Zl.c: New file.
55337         * lib/unictype/categ_Zp.c: New file.
55338         * lib/unictype/categ_Zs.c: New file.
55339         * lib/unictype/categ_and.c: New file.
55340         * lib/unictype/categ_and_not.c: New file.
55341         * lib/unictype/categ_byname.c: New file.
55342         * lib/unictype/categ_name.c: New file.
55343         * lib/unictype/categ_none.c: New file.
55344         * lib/unictype/categ_of.c: New file.
55345         * lib/unictype/categ_or.c: New file.
55346         * lib/unictype/categ_test.c: New file.
55347         * lib/unictype/combining.c: New file.
55348         * lib/unictype/ctype_alnum.c: New file.
55349         * lib/unictype/ctype_alpha.c: New file.
55350         * lib/unictype/ctype_blank.c: New file.
55351         * lib/unictype/ctype_cntrl.c: New file.
55352         * lib/unictype/ctype_digit.c: New file.
55353         * lib/unictype/ctype_graph.c: New file.
55354         * lib/unictype/ctype_lower.c: New file.
55355         * lib/unictype/ctype_print.c: New file.
55356         * lib/unictype/ctype_punct.c: New file.
55357         * lib/unictype/ctype_space.c: New file.
55358         * lib/unictype/ctype_upper.c: New file.
55359         * lib/unictype/ctype_xdigit.c: New file.
55360         * lib/unictype/decdigit.c: New file.
55361         * lib/unictype/digit.c: New file.
55362         * lib/unictype/identsyntaxmap.h: New file.
55363         * lib/unictype/mirror.c: New file.
55364         * lib/unictype/numeric.c: New file.
55365         * lib/unictype/pr_alphabetic.c: New file.
55366         * lib/unictype/pr_ascii_hex_digit.c: New file.
55367         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55368         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55369         * lib/unictype/pr_bidi_block_separator.c: New file.
55370         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55371         * lib/unictype/pr_bidi_common_separator.c: New file.
55372         * lib/unictype/pr_bidi_control.c: New file.
55373         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55374         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55375         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55376         * lib/unictype/pr_bidi_european_digit.c: New file.
55377         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55378         * lib/unictype/pr_bidi_left_to_right.c: New file.
55379         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55380         * lib/unictype/pr_bidi_other_neutral.c: New file.
55381         * lib/unictype/pr_bidi_pdf.c: New file.
55382         * lib/unictype/pr_bidi_segment_separator.c: New file.
55383         * lib/unictype/pr_bidi_whitespace.c: New file.
55384         * lib/unictype/pr_byname.c: New file.
55385         * lib/unictype/pr_byname.gperf: New file.
55386         * lib/unictype/pr_combining.c: New file.
55387         * lib/unictype/pr_composite.c: New file.
55388         * lib/unictype/pr_currency_symbol.c: New file.
55389         * lib/unictype/pr_dash.c: New file.
55390         * lib/unictype/pr_decimal_digit.c: New file.
55391         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55392         * lib/unictype/pr_deprecated.c: New file.
55393         * lib/unictype/pr_diacritic.c: New file.
55394         * lib/unictype/pr_extender.c: New file.
55395         * lib/unictype/pr_format_control.c: New file.
55396         * lib/unictype/pr_grapheme_base.c: New file.
55397         * lib/unictype/pr_grapheme_extend.c: New file.
55398         * lib/unictype/pr_grapheme_link.c: New file.
55399         * lib/unictype/pr_hex_digit.c: New file.
55400         * lib/unictype/pr_hyphen.c: New file.
55401         * lib/unictype/pr_id_continue.c: New file.
55402         * lib/unictype/pr_id_start.c: New file.
55403         * lib/unictype/pr_ideographic.c: New file.
55404         * lib/unictype/pr_ids_binary_operator.c: New file.
55405         * lib/unictype/pr_ids_trinary_operator.c: New file.
55406         * lib/unictype/pr_ignorable_control.c: New file.
55407         * lib/unictype/pr_iso_control.c: New file.
55408         * lib/unictype/pr_join_control.c: New file.
55409         * lib/unictype/pr_left_of_pair.c: New file.
55410         * lib/unictype/pr_line_separator.c: New file.
55411         * lib/unictype/pr_logical_order_exception.c: New file.
55412         * lib/unictype/pr_lowercase.c: New file.
55413         * lib/unictype/pr_math.c: New file.
55414         * lib/unictype/pr_non_break.c: New file.
55415         * lib/unictype/pr_not_a_character.c: New file.
55416         * lib/unictype/pr_numeric.c: New file.
55417         * lib/unictype/pr_other_alphabetic.c: New file.
55418         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55419         * lib/unictype/pr_other_grapheme_extend.c: New file.
55420         * lib/unictype/pr_other_id_continue.c: New file.
55421         * lib/unictype/pr_other_id_start.c: New file.
55422         * lib/unictype/pr_other_lowercase.c: New file.
55423         * lib/unictype/pr_other_math.c: New file.
55424         * lib/unictype/pr_other_uppercase.c: New file.
55425         * lib/unictype/pr_paired_punctuation.c: New file.
55426         * lib/unictype/pr_paragraph_separator.c: New file.
55427         * lib/unictype/pr_pattern_syntax.c: New file.
55428         * lib/unictype/pr_pattern_white_space.c: New file.
55429         * lib/unictype/pr_private_use.c: New file.
55430         * lib/unictype/pr_punctuation.c: New file.
55431         * lib/unictype/pr_quotation_mark.c: New file.
55432         * lib/unictype/pr_radical.c: New file.
55433         * lib/unictype/pr_sentence_terminal.c: New file.
55434         * lib/unictype/pr_soft_dotted.c: New file.
55435         * lib/unictype/pr_space.c: New file.
55436         * lib/unictype/pr_terminal_punctuation.c: New file.
55437         * lib/unictype/pr_test.c: New file.
55438         * lib/unictype/pr_titlecase.c: New file.
55439         * lib/unictype/pr_unassigned_code_value.c: New file.
55440         * lib/unictype/pr_unified_ideograph.c: New file.
55441         * lib/unictype/pr_uppercase.c: New file.
55442         * lib/unictype/pr_variation_selector.c: New file.
55443         * lib/unictype/pr_white_space.c: New file.
55444         * lib/unictype/pr_xid_continue.c: New file.
55445         * lib/unictype/pr_xid_start.c: New file.
55446         * lib/unictype/pr_zero_width.c: New file.
55447         * lib/unictype/scripts.c: New file.
55448         * lib/unictype/sy_c_ident.c: New file.
55449         * lib/unictype/sy_c_whitespace.c: New file.
55450         * lib/unictype/sy_java_ident.c: New file.
55451         * lib/unictype/sy_java_whitespace.c: New file.
55452
55453         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55454         Unicode 5.0.0.
55455         * lib/unictype/blocks.h: Likewise.
55456         * lib/unictype/categ_C.h: Likewise.
55457         * lib/unictype/categ_Cc.h: Likewise.
55458         * lib/unictype/categ_Cf.h: Likewise.
55459         * lib/unictype/categ_Cn.h: Likewise.
55460         * lib/unictype/categ_Co.h: Likewise.
55461         * lib/unictype/categ_Cs.h: Likewise.
55462         * lib/unictype/categ_L.h: Likewise.
55463         * lib/unictype/categ_Ll.h: Likewise.
55464         * lib/unictype/categ_Lm.h: Likewise.
55465         * lib/unictype/categ_Lo.h: Likewise.
55466         * lib/unictype/categ_Lt.h: Likewise.
55467         * lib/unictype/categ_Lu.h: Likewise.
55468         * lib/unictype/categ_M.h: Likewise.
55469         * lib/unictype/categ_Mc.h: Likewise.
55470         * lib/unictype/categ_Me.h: Likewise.
55471         * lib/unictype/categ_Mn.h: Likewise.
55472         * lib/unictype/categ_N.h: Likewise.
55473         * lib/unictype/categ_Nd.h: Likewise.
55474         * lib/unictype/categ_Nl.h: Likewise.
55475         * lib/unictype/categ_No.h: Likewise.
55476         * lib/unictype/categ_P.h: Likewise.
55477         * lib/unictype/categ_Pc.h: Likewise.
55478         * lib/unictype/categ_Pd.h: Likewise.
55479         * lib/unictype/categ_Pe.h: Likewise.
55480         * lib/unictype/categ_Pf.h: Likewise.
55481         * lib/unictype/categ_Pi.h: Likewise.
55482         * lib/unictype/categ_Po.h: Likewise.
55483         * lib/unictype/categ_Ps.h: Likewise.
55484         * lib/unictype/categ_S.h: Likewise.
55485         * lib/unictype/categ_Sc.h: Likewise.
55486         * lib/unictype/categ_Sk.h: Likewise.
55487         * lib/unictype/categ_Sm.h: Likewise.
55488         * lib/unictype/categ_So.h: Likewise.
55489         * lib/unictype/categ_Z.h: Likewise.
55490         * lib/unictype/categ_Zl.h: Likewise.
55491         * lib/unictype/categ_Zp.h: Likewise.
55492         * lib/unictype/categ_Zs.h: Likewise.
55493         * lib/unictype/categ_of.h: Likewise.
55494         * lib/unictype/combining.h: Likewise.
55495         * lib/unictype/ctype_alnum.h: Likewise.
55496         * lib/unictype/ctype_alpha.h: Likewise.
55497         * lib/unictype/ctype_blank.h: Likewise.
55498         * lib/unictype/ctype_cntrl.h: Likewise.
55499         * lib/unictype/ctype_digit.h: Likewise.
55500         * lib/unictype/ctype_graph.h: Likewise.
55501         * lib/unictype/ctype_lower.h: Likewise.
55502         * lib/unictype/ctype_print.h: Likewise.
55503         * lib/unictype/ctype_punct.h: Likewise.
55504         * lib/unictype/ctype_space.h: Likewise.
55505         * lib/unictype/ctype_upper.h: Likewise.
55506         * lib/unictype/ctype_xdigit.h: Likewise.
55507         * lib/unictype/decdigit.h: Likewise.
55508         * lib/unictype/digit.h: Likewise.
55509         * lib/unictype/mirror.h: Likewise.
55510         * lib/unictype/numeric.h: Likewise.
55511         * lib/unictype/pr_alphabetic.h: Likewise.
55512         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55513         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55514         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55515         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55516         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55517         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55518         * lib/unictype/pr_bidi_control.h: Likewise.
55519         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55520         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55521         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55522         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55523         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55524         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55525         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55526         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55527         * lib/unictype/pr_bidi_pdf.h: Likewise.
55528         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55529         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55530         * lib/unictype/pr_combining.h: Likewise.
55531         * lib/unictype/pr_composite.h: Likewise.
55532         * lib/unictype/pr_currency_symbol.h: Likewise.
55533         * lib/unictype/pr_dash.h: Likewise.
55534         * lib/unictype/pr_decimal_digit.h: Likewise.
55535         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55536         * lib/unictype/pr_deprecated.h: Likewise.
55537         * lib/unictype/pr_diacritic.h: Likewise.
55538         * lib/unictype/pr_extender.h: Likewise.
55539         * lib/unictype/pr_format_control.h: Likewise.
55540         * lib/unictype/pr_grapheme_base.h: Likewise.
55541         * lib/unictype/pr_grapheme_extend.h: Likewise.
55542         * lib/unictype/pr_grapheme_link.h: Likewise.
55543         * lib/unictype/pr_hex_digit.h: Likewise.
55544         * lib/unictype/pr_hyphen.h: Likewise.
55545         * lib/unictype/pr_id_continue.h: Likewise.
55546         * lib/unictype/pr_id_start.h: Likewise.
55547         * lib/unictype/pr_ideographic.h: Likewise.
55548         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55549         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55550         * lib/unictype/pr_ignorable_control.h: Likewise.
55551         * lib/unictype/pr_iso_control.h: Likewise.
55552         * lib/unictype/pr_join_control.h: Likewise.
55553         * lib/unictype/pr_left_of_pair.h: Likewise.
55554         * lib/unictype/pr_line_separator.h: Likewise.
55555         * lib/unictype/pr_logical_order_exception.h: Likewise.
55556         * lib/unictype/pr_lowercase.h: Likewise.
55557         * lib/unictype/pr_math.h: Likewise.
55558         * lib/unictype/pr_non_break.h: Likewise.
55559         * lib/unictype/pr_not_a_character.h: Likewise.
55560         * lib/unictype/pr_numeric.h: Likewise.
55561         * lib/unictype/pr_other_alphabetic.h: Likewise.
55562         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55563         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55564         * lib/unictype/pr_other_id_continue.h: Likewise.
55565         * lib/unictype/pr_other_id_start.h: Likewise.
55566         * lib/unictype/pr_other_lowercase.h: Likewise.
55567         * lib/unictype/pr_other_math.h: Likewise.
55568         * lib/unictype/pr_other_uppercase.h: Likewise.
55569         * lib/unictype/pr_paired_punctuation.h: Likewise.
55570         * lib/unictype/pr_paragraph_separator.h: Likewise.
55571         * lib/unictype/pr_pattern_syntax.h: Likewise.
55572         * lib/unictype/pr_pattern_white_space.h: Likewise.
55573         * lib/unictype/pr_private_use.h: Likewise.
55574         * lib/unictype/pr_punctuation.h: Likewise.
55575         * lib/unictype/pr_quotation_mark.h: Likewise.
55576         * lib/unictype/pr_radical.h: Likewise.
55577         * lib/unictype/pr_sentence_terminal.h: Likewise.
55578         * lib/unictype/pr_soft_dotted.h: Likewise.
55579         * lib/unictype/pr_space.h: Likewise.
55580         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55581         * lib/unictype/pr_titlecase.h: Likewise.
55582         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55583         * lib/unictype/pr_unified_ideograph.h: Likewise.
55584         * lib/unictype/pr_uppercase.h: Likewise.
55585         * lib/unictype/pr_variation_selector.h: Likewise.
55586         * lib/unictype/pr_white_space.h: Likewise.
55587         * lib/unictype/pr_xid_continue.h: Likewise.
55588         * lib/unictype/pr_xid_start.h: Likewise.
55589         * lib/unictype/pr_zero_width.h: Likewise.
55590         * lib/unictype/scripts.h: Likewise.
55591         * lib/unictype/scripts_byname.gperf: Likewise.
55592         * lib/unictype/sy_c_ident.h: Likewise.
55593         * lib/unictype/sy_c_whitespace.h: Likewise.
55594         * lib/unictype/sy_java_ident.h: Likewise.
55595         * lib/unictype/sy_java_whitespace.h: Likewise.
55596
55597         * lib/unictype/Makefile: New file.
55598         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55599         glibc.
55600         * lib/unictype/3level.h: New file, copied from glibc.
55601         * lib/unictype/3levelbit.h: New file.
55602
55603 2007-11-11  Bruno Haible  <bruno@clisp.org>
55604
55605         * modules/gperf: New file.
55606         * modules/iconv_open (Depends-on): Add it.
55607         (Makefile.am): Remove the GPERF definition.
55608
55609 2007-11-11  Bruno Haible  <bruno@clisp.org>
55610
55611         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55612         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55613
55614 2007-11-11  Bruno Haible  <bruno@clisp.org>
55615
55616         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55617         (usage): Remove function.
55618
55619 2007-11-11  Bruno Haible  <bruno@clisp.org>
55620
55621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55622         gl_FUNC_CEILF_LIBS.
55623         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55624         gl_FUNC_CEIL_LIBS.
55625         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55626         gl_FUNC_CEILL_LIBS.
55627         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55628         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55629         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55630
55631 2007-11-11  Bruno Haible  <bruno@clisp.org>
55632
55633         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55634         roundf were declared but do not exist on functions.
55635         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55636         roundl were declared but do not exist on functions.
55637         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55638         HAVE_FLOORL_AND_CEILL, respectively.
55639         Needed for Sun C on Solaris 10.
55640
55641 2007-11-11  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55644         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55645         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55646         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55647         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55648         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55649         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55650         HAVE_DECL_ROUNDF.
55651         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55652         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55654         of HAVE_DECL_ROUND*.
55655         * modules/math (Makefile.am): Update.
55656
55657 2007-11-10  Bruno Haible  <bruno@clisp.org>
55658
55659         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55660         ptrdiff_t as m4/intl.m4.
55661
55662 2007-11-10  Jim Meyering  <meyering@redhat.com>
55663
55664         Avoid link failure for the argmatch test.
55665         * tests/test-argmatch.c (usage): Define function to avoid a link
55666         failure: argmatch_die requires a usage function.
55667
55668 2007-11-09  Bruno Haible  <bruno@clisp.org>
55669
55670         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55671         * doc/functions/vsnprintf.texi: Likewise.
55672         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55673         with a size argument < 2.
55674
55675 2007-11-09  Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55678         buffer. Fixes an inefficiency introduced on 2007-11-03.
55679
55680 2007-11-09  Bruno Haible  <bruno@clisp.org>
55681
55682         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55683         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55684
55685 2007-11-08  Jim Meyering  <meyering@redhat.com>
55686
55687         Change cache variable name prefix "jm_" to "gl_" everywhere.
55688         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55689         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55690         * m4/uptime.m4: s/gl_/jm_/
55691
55692 2007-11-07  Bruno Haible  <bruno@clisp.org>
55693
55694         Update to GNU gettext 0.17.
55695         * m4/intl.m4: Update to GNU gettext 0.17.
55696         * m4/po.m4: Likewise.
55697         * modules/gettext (Files): Remove m4/ulonglong.m4.
55698         (configure.ac): Require gettext infrastructure from version 0.17.
55699
55700 2007-11-06  Bruno Haible  <bruno@clisp.org>
55701
55702         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55703         symbolic values are not defined in a public header.
55704         * lib/freadable.c (freadable) [QNX]: Likewise.
55705         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55706         * lib/freading.c (freading) [QNX]: Likewise.
55707         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55708         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55709         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55710         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55711         Reported by Alain Magloire.
55712
55713         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55714
55715 2007-11-05  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55718         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55719         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55720         Reported by Eric Blake.
55721
55722 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55723             Bruno Haible  <bruno@clisp.org>
55724
55725         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55726         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55727         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55728         (malloc): Undefine also before including <stdlib.h>.
55729         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55730         Needed on OSF/1 4.0.
55731
55732 2007-11-05  Jim Meyering  <meyering@redhat.com>
55733
55734         git-version-gen: sync from coreutils.
55735         * build-aux/git-version-gen: Add comments.
55736         Change the first '-' to '.' in the snapshot version string,
55737         e.g., 6.9-377-08144 -> 6.9.377-08144
55738         Remove first parameter.
55739         Don't declare a version "-dirty" merely because a time
55740         stamp has changed.
55741
55742 2007-11-04  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/lock.h: Protect all macro definitions containing an 'if'
55745         statement through a "do { ... } while (0)".
55746         * lib/tls.h: Likewise.
55747
55748 2007-11-04  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55751
55752 2007-11-04  Bruno Haible  <bruno@clisp.org>
55753
55754         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55755         * modules/fprintf-posix (Depends-on): Add nocrash.
55756         * modules/snprintf-posix (Depends-on): Likewise.
55757         * modules/sprintf-posix (Depends-on): Likewise.
55758         * modules/vasnprintf-posix (Depends-on): Likewise.
55759         * modules/vasprintf-posix (Depends-on): Likewise.
55760         * modules/vfprintf-posix (Depends-on): Likewise.
55761         * modules/vsnprintf-posix (Depends-on): Likewise.
55762         * modules/vsprintf-posix (Depends-on): Likewise.
55763         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55764         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55765         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55766         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55767         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55768         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55769         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55770
55771 2007-11-04  Bruno Haible  <bruno@clisp.org>
55772
55773         * modules/nocrash: New file.
55774         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55775         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55776
55777 2007-11-04  Bruno Haible  <bruno@clisp.org>
55778
55779         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55780         precision handling.
55781         * tests/test-vasprintf-posix.c (test_function): Likewise.
55782         * tests/test-snprintf-posix.h (test_function): Likewise.
55783         * tests/test-sprintf-posix.h (test_function): Likewise.
55784
55785         Fix *printf behaviour for large precisions on mingw and BeOS.
55786         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55787         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55789         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55791         gl_PRINTF_PRECISION and test its result. Invoke
55792         gl_PREREQ_VASNPRINTF_PRECISION.
55793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55800         * doc/functions/fprintf.texi: Update.
55801         * doc/functions/printf.texi: Update.
55802         * doc/functions/snprintf.texi: Update.
55803         * doc/functions/sprintf.texi: Update.
55804         * doc/functions/vfprintf.texi: Update.
55805         * doc/functions/vprintf.texi: Update.
55806         * doc/functions/vsnprintf.texi: Update.
55807         * doc/functions/vsprintf.texi: Update.
55808
55809 2007-11-04  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55812
55813 2007-11-04  Bruno Haible  <bruno@clisp.org>
55814
55815         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55816         Reported by Sylvain Beucler <beuc@gnu.org>.
55817
55818 2007-11-03  Bruno Haible  <bruno@clisp.org>
55819
55820         * tests/test-fprintf-posix2.sh: New file.
55821         * tests/test-fprintf-posix2.c: New file.
55822         * modules/fprintf-posix-tests (Files): Add them.
55823         (TESTS): Add test-fprintf-posix2.sh.
55824         (configure.ac): Check for getrlimit and setrlimit.
55825         (check_PROGRAMS): Add test-fprintf-posix2.
55826
55827         * tests/test-printf-posix2.sh: New file.
55828         * tests/test-printf-posix2.c: New file.
55829         * modules/printf-posix-tests (Files): Add them.
55830         (TESTS): Add test-printf-posix2.sh.
55831         (configure.ac): Check for getrlimit and setrlimit.
55832         (check_PROGRAMS): Add test-printf-posix2.
55833
55834         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55835         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55836         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55837         (decode_double): New function, copied from decode_long_double.
55838         (scale10_round_decimal_decoded): New function, extracted from
55839         scale10_round_decimal_long_double.
55840         (scale10_round_decimal_long_double): Use it.
55841         (scale10_round_decimal_double): New function.
55842         (floorlog10): New function.
55843         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55845         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55846         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55847         gl_PRINTF_ENOMEM and test its result. Invoke
55848         gl_PREREQ_VASNPRINTF_ENOMEM.
55849         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55850         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55856         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55857         * modules/snprintf-posix (Depends-on): Likewise.
55858         * modules/sprintf-posix (Depends-on): Likewise.
55859         * modules/vasnprintf-posix (Depends-on): Likewise.
55860         * modules/vasprintf-posix (Depends-on): Likewise.
55861         * modules/vfprintf-posix (Depends-on): Likewise.
55862         * modules/vsnprintf-posix (Depends-on): Likewise.
55863         * modules/vsprintf-posix (Depends-on): Likewise.
55864         * doc/functions/fprintf.texi: Update.
55865         * doc/functions/printf.texi: Update.
55866         * doc/functions/snprintf.texi: Update.
55867         * doc/functions/sprintf.texi: Update.
55868         * doc/functions/vfprintf.texi: Update.
55869         * doc/functions/vprintf.texi: Update.
55870         * doc/functions/vsnprintf.texi: Update.
55871         * doc/functions/vsprintf.texi: Update.
55872
55873 2007-11-03  Bruno Haible  <bruno@clisp.org>
55874
55875         * modules/frexp-nolibm-tests: New file.
55876
55877         * modules/frexp-nolibm: New file.
55878         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55879
55880 2007-11-03  Bruno Haible  <bruno@clisp.org>
55881
55882         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55883         value is C99 compliant.
55884         Needed for OSF/1 5.1.
55885
55886 2007-11-03  Bruno Haible  <bruno@clisp.org>
55887
55888         Fix out-of-memory handling of vasnprintf.
55889         * lib/printf-parse.c: Include <errno.h>.
55890         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55891         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55892         is already set.
55893
55894 2007-11-02  Eric Blake  <ebb9@byu.net>
55895
55896         Fix tests on cygwin.
55897         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55898
55899 2007-11-01  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55902         warning.
55903         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55904         needed for POSIX compatibility.
55905
55906 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55907
55908         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55909         for compatibility with GNU.
55910
55911 2007-11-01  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55914         (putenv): Renamed from rpl_putenv. Change argument type from
55915         'const char *' to 'char *'.
55916         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55917         of defining putenv in config.h, just set REPLACE_PUTENV.
55918         * modules/putenv (Depends-on): Add stdlib.
55919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55920         (Include): Use <stdlib.h>.
55921         * lib/stdlib.in.h (putenv): New declaration.
55922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55923         REPLACE_PUTENV.
55924         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55925         REPLACE_PUTENV.
55926         Needed for MacOS X 10.5.0.
55927         Reported by Peter O'Gorman <peter@pogma.com>.
55928
55929 2007-11-01  Jim Meyering  <meyering@redhat.com>
55930
55931         Treat an empty date string exactly like "0".
55932         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55933         if the remaining date string (to be parsed) is empty, use "0".
55934         Reported by Mischa Molhoek and discussed in this thread:
55935         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55936
55937 2007-10-31  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55940         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55941         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55942         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55943         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55944         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55945
55946 2007-10-31  Bruno Haible  <bruno@clisp.org>
55947
55948         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55949         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55950         (AC_TYPE_LONG_LONG_INT): Use it.
55951         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55952         it as well.
55953         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55954         to m4/longlong.m4.
55955         * modules/stdint (Files): Remove m4/ulonglong.m4.
55956         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55957         m4/ulonglong.m4.
55958         * modules/strtoumax (Files): Likewise.
55959
55960 2007-10-30  Bruno Haible  <bruno@clisp.org>
55961
55962         * modules/xvasprintf-posix: New file.
55963         Suggested by Eric Blake.
55964
55965 2007-10-30  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/xprintf-posix-tests: New file.
55968         * tests/test-xprintf-posix.sh: New file.
55969         * tests/test-xprintf-posix.c: New file.
55970         * tests/test-xfprintf-posix.c: New file.
55971
55972         * modules/xprintf-posix: New file.
55973
55974 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55975
55976         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55977         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55978         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55979
55980 2007-10-29  Bruno Haible  <bruno@clisp.org>
55981
55982         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55983         contain the special marker '_cv_'.
55984         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55986         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55987         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55989         Reported by Ralf Wildenhues.
55990
55991 2007-10-29  Bruno Haible  <bruno@clisp.org>
55992
55993         * gnulib-tool (func_import): When --lgpl is not specified, set
55994         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55995         GPLv3.
55996         Reported by Simon Josefsson.
55997
55998 2007-10-28  Bruno Haible  <bruno@clisp.org>
55999
56000         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56001         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56002         HAVE_DECL_ISFINITE.
56003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56004         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56005         HAVE_DECL_ISFINITE.
56006
56007 2007-10-28  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56010         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56011
56012 2007-10-28  Bruno Haible  <bruno@clisp.org>
56013
56014         Fix link errors with Sun C 5.0 on Solaris 10.
56015         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56016         function is declared but not present in the compiler's libm.
56017         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56018         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56019         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56020         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56021         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56022         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56023         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56025         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56026         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56027         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56028         HAVE_DECL_FLOORL.
56029
56030 2007-10-28  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56033         gl_FUNC_FLOORL. Cache the result.
56034         (gl_FUNC_FLOORL): Use it.
56035         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56036         gl_FUNC_CEILL. Cache the result.
56037         (gl_FUNC_CEILL): Use it.
56038
56039         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56040         gl_FUNC_FLOOR. Cache the result.
56041         (gl_FUNC_FLOOR): Use it.
56042         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56043         gl_FUNC_CEIL. Cache the result.
56044         (gl_FUNC_CEIL): Use it.
56045
56046         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56047         gl_FUNC_FLOORF. Cache the result.
56048         (gl_FUNC_FLOORF): Use it.
56049         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56050         gl_FUNC_CEILF. Cache the result.
56051         (gl_FUNC_CEILF): Use it.
56052
56053 2007-10-28  Bruno Haible  <bruno@clisp.org>
56054
56055         * gnulib-tool: Allow specifying the LGPL version number through
56056         --lgpl=2 or --lgpl=3.
56057         (func_usage): Document --lgpl with argument.
56058         Handle --lgpl=... arguments.
56059         (func_import): Recognize also gl_LGPL calls with an argument. When
56060         --lgpl=2 is used and the module's license is just LGPL, report an
56061         error. Set sed_transform_lib_file according to the lgpl variable. In
56062         the generated files, use --lgpl or gl_LGPL invocations with argument,
56063         if necessary.
56064         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56065         an LGPv2+ license.
56066         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56067         gl_LGPL macro.
56068
56069 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56070             Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56073         (u16_uctomb_aux): Likewise.
56074         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56075         !HAVE_INLINE.
56076         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56077
56078 2007-10-28  Bruno Haible  <bruno@clisp.org>
56079
56080         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56081         Invoke AM_GETTEXT_OPTION if it exists.
56082         * modules/vasprintf: Likewise.
56083         * modules/verror: Likewise.
56084         * modules/xprintf: Likewise.
56085         * modules/xvasprintf: Likewise.
56086
56087 2007-10-27  Ben Pfaff  <blp@gnu.org>
56088
56089         * lib/math.in.h: Define isfinite macro and prototypes for
56090         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56091         implementations.
56092         * m4/math_h.m4: New substitutions for isfinite module.
56093         * lib/isfinite.c: New file.
56094         * m4/isfinite.m4: New file.
56095         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56096         * modules/isfinite: New file.
56097         * modules/isfinite-tests: New file.
56098         * tests/tests-isfinite.c: New file.
56099         * doc/functions/isfinite.texi: Mention isfinite module.
56100         * MODULES.html.sh: Mention new module.
56101
56102 2007-10-27  Ben Pfaff  <blp@gnu.org>
56103
56104         Ralf Wildenhues reported that Tru64 4.0D declares the round
56105         functions but does not have definitions.
56106         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56107         cannot be found in any library, set the output variable to
56108         "missing" instead of "".
56109         * m4/round.m4: Also use our substitute if we cannot find round in
56110         any library, even if it is declared.
56111         * m4/roundf.m4: Likewise for roundf.
56112         * m4/roundl.m4: Likewise for roundl.
56113         * lib/math.in.h: Undefine roundf, round, roundl before defining
56114         their replacements, to allow for hypothetical systems where these
56115         may be defined as macros but not available in libraries.
56116
56117 2007-10-27  Bruno Haible  <bruno@clisp.org>
56118
56119         * doc/gnulib.texi: Invoke @firstparagraphindent.
56120         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56121         changes in gnulib.
56122         (Source changes): New section.
56123
56124 2007-10-26  Bruno Haible  <bruno@clisp.org>
56125
56126         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56127         borrowed from autoconf.
56128
56129 2007-10-26  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56132         strerror returned the empty string. Needed on HP-UX 11.00.
56133
56134 2007-10-24  Micah Cowan  <micah@cowan.name>
56135
56136         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56137         * build-aux/bootstrap: Remove support for now-unnecessary option,
56138         --cvs-user, and envvars CVS_USER, CVS_RSH.
56139
56140 2007-10-24  Jim Meyering  <meyering@redhat.com>
56141
56142         Avoid diagnostics from sha1sum when there is no cached checksum.
56143         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56144         if the po.s1 file hasn't been created yet.
56145
56146         * build-aux/bootstrap: Sync from coreutils:
56147         2007-10-24  Jim Meyering  <meyering@redhat.com>
56148         Get gnulib from the git repository, not from an obsolete cvs one.
56149         * build-aux/bootstrap: Suggestion from Micah Cowan.
56150         2007-10-04  Jim Meyering  <jim@meyering.net>
56151         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56152         (update_po_files): Work also when there are no .po files in po/.
56153
56154 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56155
56156         * README: Append ".git" to git and cg examples.
56157         Problem reported by Benoit Sigoure.
56158
56159 2007-10-23  Micah Cowan  <micah@cowan.name>
56160
56161         * users.txt: Add wget.
56162
56163 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56164
56165         Fix linking of some unistdio tests on FreeBSD.
56166         * modules/unistdio/u16-vsnprintf-tests
56167         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56168         * modules/unistdio/u16-vsprintf-tests
56169         (test_u16_vsnprintf1_LDADD): Likewise.
56170         * modules/unistdio/u32-vsnprintf-tests
56171         (test_u32_vsnprintf1_LDADD): Likewise.
56172         * modules/unistdio/u32-vsprintf-tests
56173         (test_u32_vsprintf1_LDADD): Likewise.
56174         * modules/unistdio/u8-vsnprintf-tests
56175         (test_u8_vsnprintf1_LDADD): Likewise.
56176         * modules/unistdio/u8-vsprintf-tests
56177         (test_u8_vsprintf1_LDADD): Likewise.
56178         * modules/unistdio/ulc-vsnprintf-tests
56179         (test_ulc_vsnprintf1_LDADD): Likewise.
56180         * modules/unistdio/ulc-vsprintf-tests
56181         (test_ulc_vsprintf1_LDADD): Likewise.
56182
56183         Fix linking of some uniconv tests on FreeBSD.
56184         * modules/uniconv/u16-conv-from-enc-tests
56185         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56186         * modules/uniconv/u16-conv-to-enc-tests
56187         (test_u16_conv_to_enc_LDADD): Likewise.
56188         * modules/uniconv/u16-strconv-from-enc-tests
56189         (test_u16_strconv_from_enc_LDADD): Likewise.
56190         * modules/uniconv/u16-strconv-to-enc-tests
56191         (test_u16_strconv_to_enc_LDADD): Likewise.
56192         * modules/uniconv/u32-conv-from-enc-tests
56193         (test_u32_conv_from_enc_LDADD): Likewise.
56194         * modules/uniconv/u32-conv-to-enc-tests
56195         (test_u32_conv_to_enc_LDADD): Likewise.
56196         * modules/uniconv/u32-strconv-from-enc-tests
56197         (test_u32_strconv_from_enc_LDADD): Likewise.
56198         * modules/uniconv/u32-strconv-to-enc-tests
56199         (test_u32_strconv_to_enc_LDADD): Likewise.
56200         * modules/uniconv/u8-conv-from-enc-tests
56201         (test_u8_conv_from_enc_LDADD): Likewise.
56202         * modules/uniconv/u8-conv-to-enc-tests
56203         (test_u8_conv_to_enc_LDADD): Likewise.
56204         * modules/uniconv/u8-strconv-from-enc-tests
56205         (test_u8_strconv_from_enc_LDADD): Likewise.
56206         * modules/uniconv/u8-strconv-to-enc-tests
56207         (test_u8_strconv_to_enc_LDADD): Likewise.
56208
56209 2007-10-22  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56212         size.
56213
56214 2007-10-22  Eric Blake  <ebb9@byu.net>
56215
56216         Tweak x*printf documentation.
56217         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56218         variable name and comments.
56219         Suggested by Bruno Haible.
56220
56221 2007-10-22  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/acl.c (copy_acl): Fix file name in comment.
56224
56225 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         Fix Tru64 problem with stdbool.h.
56228         * lib/stdbool.in.h (false, true):
56229         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56230         Don't declare as an enum in this situation; it runs afoul of Tru64.
56231         Problem reported by Steven M. Schweda in
56232         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56233
56234 2007-10-22  Eric Blake  <ebb9@byu.net>
56235
56236         Also wrap vf?printf.
56237         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56238         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56239         (xvprintf, xvfprintf): New functions.
56240
56241 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56242
56243         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56244         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56245
56246         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56247         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56248
56249 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56250
56251         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56252         by Bruno Haible.
56253
56254 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56255
56256         * lib/getloadavg.c
56257         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56258         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56259
56260         * tests/test-i-ring.c: Work for C89.
56261
56262 2007-10-22  Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56265         -1u, in preprocessor expression, so that we don't test for the bug
56266         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56268
56269 2007-10-22  Eric Blake  <ebb9@byu.net>
56270
56271         * tests/test-yesno.sh: Silence stderr during test.
56272
56273 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56274
56275         * modules/crypto/gc-camellia: New file.
56276
56277         * m4/gc-camellia.m4: New file.
56278
56279         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56280
56281         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56282
56283 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56284
56285         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56286         --help to stdout.  Reported by sms@antinode.org (Steven
56287         M. Schweda).
56288
56289 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56290
56291         * users.txt: Fix link to libksba.
56292
56293 2007-10-21  Ben Pfaff  <blp@gnu.org>
56294
56295         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56296         round.c roundf implementation that depends on floorf and ceilf to
56297         be tested unconditionally.
56298
56299 2007-10-21  Ben Pfaff  <blp@gnu.org>
56300
56301         * m4/check-libm-func.m4: Removed.
56302         * m4/check-math-lib.m4: New file.
56303         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56304         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56305         definition and lack of AC_LIBOBJ([roundf]).
56306         * m4/roundl.m4: Ditto, and similarly for roundl.
56307         * modules/round: Reference new m4 file.
56308         * modules/roundf: Ditto.
56309         * modules/roundl: Ditto.
56310         * tests/test-round2.c (main): Use ROUND instead of round.
56311         Bug report from Bruno Haible.
56312
56313 2007-10-21  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56316         context.
56317
56318 2007-10-21  Bruno Haible  <bruno@clisp.org>
56319
56320         * tests/test-wcwidth.c (main): Allow negative result for some control
56321         characters.
56322
56323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56324         Needed on OSF/1 5.1.
56325
56326 2007-10-21  Bruno Haible  <bruno@clisp.org>
56327
56328         * tests/test-floorf1.c: Include isnanf.h.
56329         (main): Use isnanf() instead of isnan().
56330         * tests/test-ceilf1.c: Include isnanf.h.
56331         (main): Use isnanf() instead of isnan().
56332         * tests/test-truncf1.c: Include isnanf.h.
56333         (main): Use isnanf() instead of isnan().
56334         * tests/test-roundf1.c: Include isnanf.h.
56335         (main): Use isnanf() instead of isnan().
56336
56337 2007-10-21  Eric Blake  <ebb9@byu.net>
56338
56339         * users.txt: Update URL for m4.
56340
56341 2007-10-21  Bruno Haible  <bruno@clisp.org>
56342
56343         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56344
56345 2007-10-21  Bruno Haible  <bruno@clisp.org>
56346
56347         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56348         Git's management files if the CVS files are not present.
56349
56350 2007-10-20  Bruno Haible  <bruno@clisp.org>
56351
56352         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56353         gcc-3.4.x.
56354
56355 2007-10-20  Ben Pfaff  <blp@gnu.org>
56356
56357         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56358         implementations.
56359         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56360         * lib/round.c: New file.
56361         * lib/roundf.c: New file.
56362         * lib/roundl.c: New file.
56363         * m4/round.m4: New file.
56364         * m4/roundf.m4: New file.
56365         * m4/roundl.m4: New file.
56366         * m4/check-libm-func-m4: New file.
56367         * modules/math: Replace round, roundf, roundl related @VARS@ in
56368         math.in.h.
56369         * modules/round: New file.
56370         * modules/round-tests: New file.
56371         * modules/roundf: New file.
56372         * modules/roundf-tests: New file.
56373         * modules/roundl: New file.
56374         * modules/roundl-tests: New file.
56375         * tests/test-round1.c: New file.
56376         * tests/test-round2.c: New file.
56377         * tests/test-roundf1.c: New file.
56378         * tests/test-roundf2.c: New file.
56379         * tests/test-roundl.c: New file.
56380         * doc/functions/round.texi: Mention round module.
56381         * doc/functions/roundf.texi: Mention roundf module.
56382         * doc/functions/roundl.texi: Mention roundl module.
56383         * MODULES.html.sh: Mention new modules.
56384         Thanks to Bruno Haible for suggestions.
56385
56386 2007-10-20  Jim Meyering  <meyering@redhat.com>
56387
56388         * lib/xprintf.c: Include <config.h> unconditionally.
56389
56390         Change xprintf's license to GPL.
56391         * modules/xprintf (License): s/LGPL/GPL/, since this module
56392         depends on modules (exit and exitfail) which are GPL.
56393         Suggestion from Bruno Haible.
56394
56395         xprintf fixes.
56396         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56397         Use a clearer diagnostic.
56398         Patch from Bruno Haible.
56399
56400 2007-10-20  Bruno Haible  <bruno@clisp.org>
56401
56402         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56403         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56405
56406 2007-10-20  Bruno Haible  <bruno@clisp.org>
56407
56408         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56409         precision in the comparison result > x - 1 or similar.
56410         * tests/test-ceilf2.c (correct_result_p): Likewise.
56411         * tests/test-truncf2.c (correct_result_p): Likewise.
56412         * tests/test-trunc2.c (correct_result_p): Likewise.
56413         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56414
56415 2007-10-20  Bruno Haible  <bruno@clisp.org>
56416
56417         * modules/ceil: New file.
56418         * m4/ceil.m4: New file.
56419         * doc/functions/ceil.texi: Mention the 'ceil' module.
56420
56421 2007-10-20  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/floor: New file.
56424         * m4/floor.m4: New file.
56425         * doc/functions/floor.texi: Mention the 'floor' module.
56426
56427 2007-10-20  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56430         of %a.
56431         * modules/floorf-tests (Depends-on): Likewise.
56432         * modules/truncf-tests (Depends-on): Likewise.
56433         * modules/trunc-tests (Depends-on): Likewise.
56434         Reported by Ben Pfaff.
56435
56436 2007-10-19  Jim Meyering  <meyering@redhat.com>
56437
56438         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56439         Don't bother testing specific errno values.  Just test ferror.
56440
56441         New module: xprintf
56442         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56443
56444 2007-10-19  Bruno Haible  <bruno@clisp.org>
56445
56446         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56447         syntax.
56448         * modules/javaexec (Makefile.am): Likewise.
56449         * modules/relocatable-prog (Makefile.am): Likewise.
56450         Suggested by Jim Meyering.
56451
56452 2007-10-18  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56455         Reported by Jim Meyering.
56456
56457 2007-10-18  Eric Blake  <ebb9@byu.net>
56458
56459         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56460
56461 2007-10-18  Bruno Haible  <bruno@clisp.org>
56462
56463         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56464         the format string into writable memory. Needed in Fortify conditions.
56465
56466 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56467             Bruno Haible  <bruno@clisp.org>
56468
56469         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56470         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56471         * modules/trim (Depends-on): Add mbchar.
56472         (configure.ac): Add gl_FUNC_MBRTOWC.
56473         (Makefile.am): Augment lib_SOURCES.
56474
56475 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56476
56477         Modify glob.c to use fstatat and dirfd, to simplify it.
56478         Suggested by Eric Blake.
56479         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56480         Don't include <stdbool.h>; not used.
56481         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56482         (link_exists_p): Simplify implementation, since we can now assume
56483         dirfd and fstatat.
56484         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56485
56486 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56487
56488         * gnulib-tool (func_get_dependencies): Fix sed script to
56489         match only tests.
56490
56491 2007-10-17  Bruno Haible  <bruno@clisp.org>
56492
56493         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56494         allow locale names without encoding suffix.
56495         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56496         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56497
56498 2007-10-16  Bruno Haible  <bruno@clisp.org>
56499
56500         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56501         * lib/getgroups.c (getgroups): Likewise.
56502         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56503
56504 2007-10-16  Bruno Haible  <bruno@clisp.org>
56505
56506         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56507         * modules/malloc-posix (License): Likewise.
56508         * modules/realloc-posix (License): Likewise.
56509         * modules/calloc-posix (License): Likewise.
56510         * modules/intprops (License): Change from GPL to LGPL, with
56511         Paul Eggert's approval.
56512
56513 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56514
56515         Merge glibc changes into lib/glob.c.
56516
56517         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56518         2007-10-15 04:59:03 UTC.  Here are the changes:
56519
56520         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56521
56522         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56523
56524         * lib/glob.c: Add some branch prediction throughout.
56525
56526         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56527
56528         [BZ #5103]
56529         * lib/glob.c (glob): Recognize patterns starting \/.
56530
56531         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56532
56533         [BZ #3996]
56534         * lib/glob.c (attribute_hidden): Define if not defined.
56535         (glob): Unescape dirname, filename or username when needed and not
56536         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56537         is NULL.  Handle unescaped [ in pattern without closing ].
56538         Don't pass GLOB_CHECK down to recursive glob for directories.
56539         (__glob_pattern_type): New function.
56540         (__glob_pattern_p): Implement using __glob_pattern_type.
56541         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56542         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56543         Remove unreachable code.
56544
56545         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56546
56547         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56548         explain why there are no leaks.
56549
56550         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56551
56552         [BZ #3253]
56553         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56554         time, rather allocate increasingly bigger arrays of pointers, if
56555         possible with alloca, if too large with malloc.
56556
56557 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56558
56559         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56560         Problem reported by H.Merijn Brand in
56561         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56562         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56563         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56564
56565 2007-10-15  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56568         with explicit rpl_ prefix.
56569         * lib/fopen.c (fopen): Likewise.
56570         * lib/freopen.c (freopen): Likewise.
56571         * lib/iconv.c (iconv): Likewise.
56572         * lib/iconv_close.c (iconv_close): Likewise.
56573
56574 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56575
56576         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56577
56578 2007-10-15  Bruno Haible  <bruno@clisp.org>
56579
56580         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56581         <stddef.h> instead of <stdlib.h> since we only need NULL.
56582         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56583
56584 2007-10-15  Bruno Haible  <bruno@clisp.org>
56585
56586         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56587         Replace paragraph talking about LIBOBJS.
56588         Reported by Colin Watson <cjwatson@debian.org>.
56589
56590 2007-10-15  Bruno Haible  <bruno@clisp.org>
56591
56592         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56593         <stdlib.h> before using NULL.
56594
56595 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56596
56597         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56598         Reported by Albert Chin <china@thewrittenword.com>.
56599
56600 2007-10-14  Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/iconv_open-utf-tests: New file.
56603         * tests/test-iconv-utf.c: New file.
56604
56605         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56606         * modules/iconv_open-utf: New file.
56607         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56608         (iconv, iconv_close): New declarations.
56609         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56610         be defined.
56611         (iconv_open): Add special handling of conversion between UTF-8 and
56612         UTF-{16,32}{BE,LE}.
56613         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56614         * lib/iconv_close.c: New file.
56615         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56616         gl_FUNC_ICONV_OPEN.
56617         (gl_FUNC_ICONV_OPEN): Use it.
56618         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56619         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56620         and REPLACE_ICONV_UTF.
56621         * modules/iconv_open (Depends-on): Add c-strcase.
56622         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56623         ICONV_CONST.
56624         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56625
56626 2007-10-13  Albert Chin  <china@thewrittenword.com>
56627             Bruno Haible  <bruno@clisp.org>
56628
56629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56630         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56631
56632 2007-10-13  Bruno Haible  <bruno@clisp.org>
56633
56634         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56635         defined, use the ISO C99 inline semantics.
56636         * lib/argp.h (ARGP_EI): Likewise.
56637
56638 2007-10-13  Bruno Haible  <bruno@clisp.org>
56639
56640         Handle 'inline' change in gcc 4.3.0.
56641         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56642         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56643         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56644         argp_fmtstream_point): Disable 'extern' declaration if the function
56645         definition is going to be provided inline.
56646         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56647         semantics, not the ISO C99 inline semantics.
56648         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56649         'extern' declaration if the function definition is going to be provided
56650         inline.
56651         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56652         the GNU C inline semantics, not the ISO C99 inline semantics. With
56653         GCC 4.2, avoid a warning.
56654
56655 2007-10-13  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/freading.h (freading): Enable the use of __freading for
56658         glibc >= 2.7.
56659         * lib/freading.c (freading): Likewise.
56660
56661 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56662
56663         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56664         "warning: C99 inline functions are not supported; using GNU89".
56665
56666 2007-10-12  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56669         of 2.
56670         * tests/test-ceilf2.c: New file.
56671         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56672
56673         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56674         * modules/ceilf-tests: Update.
56675
56676 2007-10-12  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56679         of 2.
56680         * tests/test-floorf2.c: New file.
56681         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56682
56683         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56684         * modules/floorf-tests: Update.
56685
56686 2007-10-12  Bruno Haible  <bruno@clisp.org>
56687
56688         * tests/test-trunc2.c: New file.
56689         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56690
56691         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56692         * modules/trunc-tests: Update.
56693
56694 2007-10-12  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56697         of 2.
56698         * tests/test-truncf2.c: New file.
56699         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56700
56701         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56702         * modules/truncf-tests: Update.
56703
56704 2007-10-11  Eric Blake  <ebb9@byu.net>
56705
56706         Don't claim strerror is broken on Interix.
56707         * doc/functions/strerror.texi (strerror): Known broken systems are
56708         now Solaris 8, and not Interix.
56709         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56710         Interix on cross-compile.
56711         Reported by Martin Koeppe in
56712         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56713
56714 2007-10-11  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/i-ring-tests: New file.
56717         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56718         instead of assert.
56719
56720 2007-10-11  Bruno Haible  <bruno@clisp.org>
56721
56722         * modules/filenamecat-tests: New file.
56723         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56724         * lib/filenamecat.c: Remove test code.
56725
56726 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56729
56730         * lib/strerror.c: Include <string.h> always, to test interface,
56731         and to remove the need for the dummy.
56732         Include intprops.h to compute width instead of doing it ourselves
56733         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56734         (strerror): Define it to return NULL if there's no system strerror.
56735         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56736         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56737         ancient pre-strerror Unix systems well any more.  Saying "unknown
56738         system error" is enough.
56739         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56740         simpler strerror.c implementation.
56741         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56742         Simplify the tests to reflect the simpler strerror implementation.
56743         * modules/strerror (Depends-on): Add intprops.
56744
56745 2007-10-09  Eric Blake  <ebb9@byu.net>
56746
56747         Silence test-fpending.
56748         * modules/fpending-tests (Files): Add wrapper script.
56749         * tests/test-fpending.sh: New file.
56750
56751 2007-10-09  Bruno Haible  <bruno@clisp.org>
56752
56753         * MODULES.html.sh (func_module): Don't create a hyperlink for
56754         function names like 'printf_frexp'.
56755         (Misc): Add crc, memxor.
56756         (Characteristics of floating types): New section.
56757         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56758         isnanf-nolibm, signbit, trunc, truncf, truncl.
56759         (Enhancements for ISO C 99 functions): New subsection Input/output.
56760         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56761         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56762         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56763         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56764         (Enhancements for POSIX:2001 functions): Add chdir-long.
56765         (File system functions): Add areadlink, chdir-safer, read-file.
56766         Remove cycle-check.
56767         (File system as inode set): New section.
56768         (Date and time): Add gethrxtime.
56769         (Multithreading): Add openmp.
56770         (Internationalization functions): Add localename.
56771         (Unicode string functions): Add unistr/u*-mbsnlen.
56772         (Support for maintaining and releasing projects): Add git-version-gen.
56773         (Lone files): Remove directories.
56774
56775 2007-10-08  Ben Pfaff  <blp@gnu.org>
56776
56777         * lib/xmalloca.h: Fix typo in comment.
56778
56779 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56782         when avoiding problems with integer overflow.  Use a portable test
56783         instead.
56784
56785 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56786
56787         * modules/dummy (License): Change to LGPLv2+.
56788         * modules/float (License): Likewise
56789         * modules/realloc (License): Likewise
56790         * modules/stdlib (License): Likewise
56791
56792 2007-10-07  Bruno Haible  <bruno@clisp.org>
56793
56794         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56795         * floor.c (TWO_MANT_DIG): Likewise.
56796         * ceil.c (TWO_MANT_DIG): Likewise.
56797         Reported by Ben Pfaff.
56798
56799 2007-10-07  Bruno Haible  <bruno@clisp.org>
56800
56801         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56802         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56803         * lib/frexp.c (FUNC): Likewise.
56804         * lib/printf-frexp.h (printf_frexp): Likewise.
56805         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56806         * lib/printf-frexp.c (FUNC): Likewise.
56807         Suggested by Jim Meyering.
56808
56809 2007-10-07  Jim Meyering  <meyering@redhat.com>
56810
56811         Make xnanosleep's integer overflow test more robust.
56812         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56813         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56814
56815 2007-10-07  Bruno Haible  <bruno@clisp.org>
56816
56817         * NEWS: Mention the license change.
56818
56819         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56820         abbreviations in the modules files.
56821
56822         Change copyright notice from GPLv2+ to GPLv3+.
56823         * README: Change copyright notice.
56824         * MODULES.html.sh: Likewise.
56825         * build-aux/bootstrap.conf: Likewise.
56826         * build-aux/config.libpath: Likewise.
56827         * build-aux/csharpcomp.sh.in: Likewise.
56828         * build-aux/csharpexec.sh.in: Likewise.
56829         * build-aux/install-reloc: Likewise.
56830         * build-aux/javacomp.sh.in: Likewise.
56831         * build-aux/javaexec.sh.in: Likewise.
56832         * build-aux/ldd.sh.in: Likewise.
56833         * build-aux/reloc-ldflags: Likewise.
56834         * build-aux/relocatable.sh.in: Likewise.
56835         * build-aux/x-to-1.in: Likewise.
56836         * check-module: Likewise.
56837         * config/srclistvars.sh: Likewise.
56838         * gnulib-tool: Likewise.
56839         * lib/acl-internal.h: Likewise.
56840         * lib/acl.c: Likewise.
56841         * lib/acl.h: Likewise.
56842         * lib/acl_entries.c: Likewise.
56843         * lib/areadlink-with-size.c: Likewise.
56844         * lib/areadlink.c: Likewise.
56845         * lib/areadlink.h: Likewise.
56846         * lib/argmatch.c: Likewise.
56847         * lib/argmatch.h: Likewise.
56848         * lib/argp-ba.c: Likewise.
56849         * lib/argp-eexst.c: Likewise.
56850         * lib/argp-fmtstream.c: Likewise.
56851         * lib/argp-fmtstream.h: Likewise.
56852         * lib/argp-fs-xinl.c: Likewise.
56853         * lib/argp-help.c: Likewise.
56854         * lib/argp-namefrob.h: Likewise.
56855         * lib/argp-parse.c: Likewise.
56856         * lib/argp-pin.c: Likewise.
56857         * lib/argp-pv.c: Likewise.
56858         * lib/argp-pvh.c: Likewise.
56859         * lib/argp-xinl.c: Likewise.
56860         * lib/argp.h: Likewise.
56861         * lib/at-func.c: Likewise.
56862         * lib/atanl.c: Likewise.
56863         * lib/backupfile.c: Likewise.
56864         * lib/backupfile.h: Likewise.
56865         * lib/basename.c: Likewise.
56866         * lib/binary-io.h: Likewise.
56867         * lib/byteswap.in.h: Likewise.
56868         * lib/c-stack.c: Likewise.
56869         * lib/c-stack.h: Likewise.
56870         * lib/c-strcasestr.c: Likewise.
56871         * lib/c-strcasestr.h: Likewise.
56872         * lib/c-strstr.c: Likewise.
56873         * lib/c-strstr.h: Likewise.
56874         * lib/c-strtod.c: Likewise.
56875         * lib/calloc.c: Likewise.
56876         * lib/canon-host.c: Likewise.
56877         * lib/canon-host.h: Likewise.
56878         * lib/canonicalize-lgpl.c: Likewise.
56879         * lib/canonicalize.c: Likewise.
56880         * lib/canonicalize.h: Likewise.
56881         * lib/ceil.c: Likewise.
56882         * lib/ceilf.c: Likewise.
56883         * lib/ceill.c: Likewise.
56884         * lib/chdir-long.c: Likewise.
56885         * lib/chdir-long.h: Likewise.
56886         * lib/chdir-safer.c: Likewise.
56887         * lib/chdir-safer.h: Likewise.
56888         * lib/chown.c: Likewise.
56889         * lib/classpath.c: Likewise.
56890         * lib/classpath.h: Likewise.
56891         * lib/clean-temp.c: Likewise.
56892         * lib/clean-temp.h: Likewise.
56893         * lib/cloexec.c: Likewise.
56894         * lib/close-stream.c: Likewise.
56895         * lib/closein.c: Likewise.
56896         * lib/closein.h: Likewise.
56897         * lib/closeout.c: Likewise.
56898         * lib/closeout.h: Likewise.
56899         * lib/concat-filename.c: Likewise.
56900         * lib/copy-file.c: Likewise.
56901         * lib/copy-file.h: Likewise.
56902         * lib/count-one-bits.h: Likewise.
56903         * lib/crc.c: Likewise.
56904         * lib/crc.h: Likewise.
56905         * lib/creat-safer.c: Likewise.
56906         * lib/csharpcomp.c: Likewise.
56907         * lib/csharpcomp.h: Likewise.
56908         * lib/csharpexec.c: Likewise.
56909         * lib/csharpexec.h: Likewise.
56910         * lib/cycle-check.c: Likewise.
56911         * lib/cycle-check.h: Likewise.
56912         * lib/diacrit.c: Likewise.
56913         * lib/diacrit.h: Likewise.
56914         * lib/diffseq.h: Likewise.
56915         * lib/dirchownmod.c: Likewise.
56916         * lib/dirent.in.h: Likewise.
56917         * lib/dirfd.c: Likewise.
56918         * lib/dirfd.h: Likewise.
56919         * lib/dirname.c: Likewise.
56920         * lib/dirname.h: Likewise.
56921         * lib/dummy.c: Likewise.
56922         * lib/dup-safer.c: Likewise.
56923         * lib/dup2.c: Likewise.
56924         * lib/eealloc.h: Likewise.
56925         * lib/error.c: Likewise.
56926         * lib/error.h: Likewise.
56927         * lib/euidaccess.c: Likewise.
56928         * lib/exclude.c: Likewise.
56929         * lib/exclude.h: Likewise.
56930         * lib/execute.c: Likewise.
56931         * lib/execute.h: Likewise.
56932         * lib/exitfail.c: Likewise.
56933         * lib/exitfail.h: Likewise.
56934         * lib/expl.c: Likewise.
56935         * lib/fatal-signal.c: Likewise.
56936         * lib/fatal-signal.h: Likewise.
56937         * lib/fbufmode.c: Likewise.
56938         * lib/fbufmode.h: Likewise.
56939         * lib/fchdir.c: Likewise.
56940         * lib/fchmodat.c: Likewise.
56941         * lib/fchownat.c: Likewise.
56942         * lib/fcntl--.h: Likewise.
56943         * lib/fcntl-safer.h: Likewise.
56944         * lib/fcntl.in.h: Likewise.
56945         * lib/fd-safer.c: Likewise.
56946         * lib/fflush.c: Likewise.
56947         * lib/file-has-acl.c: Likewise.
56948         * lib/file-set.c: Likewise.
56949         * lib/file-type.c: Likewise.
56950         * lib/file-type.h: Likewise.
56951         * lib/fileblocks.c: Likewise.
56952         * lib/filemode.c: Likewise.
56953         * lib/filemode.h: Likewise.
56954         * lib/filename.h: Likewise.
56955         * lib/filenamecat.c: Likewise.
56956         * lib/filenamecat.h: Likewise.
56957         * lib/findprog.c: Likewise.
56958         * lib/findprog.h: Likewise.
56959         * lib/float.in.h: Likewise.
56960         * lib/floor.c: Likewise.
56961         * lib/floorf.c: Likewise.
56962         * lib/floorl.c: Likewise.
56963         * lib/fopen-safer.c: Likewise.
56964         * lib/fopen.c: Likewise.
56965         * lib/fpending.c: Likewise.
56966         * lib/fpending.h: Likewise.
56967         * lib/fprintf.c: Likewise.
56968         * lib/fprintftime.h: Likewise.
56969         * lib/fpucw.h: Likewise.
56970         * lib/fpurge.c: Likewise.
56971         * lib/fpurge.h: Likewise.
56972         * lib/freadable.c: Likewise.
56973         * lib/freadable.h: Likewise.
56974         * lib/freadahead.c: Likewise.
56975         * lib/freadahead.h: Likewise.
56976         * lib/freading.c: Likewise.
56977         * lib/freading.h: Likewise.
56978         * lib/free.c: Likewise.
56979         * lib/freopen.c: Likewise.
56980         * lib/frexp.c: Likewise.
56981         * lib/frexpl.c: Likewise.
56982         * lib/fseek.c: Likewise.
56983         * lib/fseterr.c: Likewise.
56984         * lib/fseterr.h: Likewise.
56985         * lib/fstatat.c: Likewise.
56986         * lib/fstrcmp.c: Likewise.
56987         * lib/fstrcmp.h: Likewise.
56988         * lib/fsusage.c: Likewise.
56989         * lib/fsusage.h: Likewise.
56990         * lib/ftell.c: Likewise.
56991         * lib/ftello.c: Likewise.
56992         * lib/fts-cycle.c: Likewise.
56993         * lib/fts.c: Likewise.
56994         * lib/fts_.h: Likewise.
56995         * lib/full-read.c: Likewise.
56996         * lib/full-read.h: Likewise.
56997         * lib/full-write.c: Likewise.
56998         * lib/full-write.h: Likewise.
56999         * lib/fwritable.c: Likewise.
57000         * lib/fwritable.h: Likewise.
57001         * lib/fwriteerror.c: Likewise.
57002         * lib/fwriteerror.h: Likewise.
57003         * lib/fwriting.c: Likewise.
57004         * lib/fwriting.h: Likewise.
57005         * lib/gcd.c: Likewise.
57006         * lib/gcd.h: Likewise.
57007         * lib/getcwd.c: Likewise.
57008         * lib/getdate.h: Likewise.
57009         * lib/getdate.y: Likewise.
57010         * lib/getdomainname.c: Likewise.
57011         * lib/getdomainname.h: Likewise.
57012         * lib/getgroups.c: Likewise.
57013         * lib/gethostname.c: Likewise.
57014         * lib/gethrxtime.c: Likewise.
57015         * lib/gethrxtime.h: Likewise.
57016         * lib/getloadavg.c: Likewise.
57017         * lib/getndelim2.c: Likewise.
57018         * lib/getndelim2.h: Likewise.
57019         * lib/getnline.c: Likewise.
57020         * lib/getnline.h: Likewise.
57021         * lib/getopt.c: Likewise.
57022         * lib/getopt.in.h: Likewise.
57023         * lib/getopt1.c: Likewise.
57024         * lib/getopt_int.h: Likewise.
57025         * lib/getpagesize.h: Likewise.
57026         * lib/getsubopt.c: Likewise.
57027         * lib/gettime.c: Likewise.
57028         * lib/getugroups.c: Likewise.
57029         * lib/getugroups.h: Likewise.
57030         * lib/getusershell.c: Likewise.
57031         * lib/gl_anyavltree_list1.h: Likewise.
57032         * lib/gl_anyavltree_list2.h: Likewise.
57033         * lib/gl_anyhash_list1.h: Likewise.
57034         * lib/gl_anyhash_list2.h: Likewise.
57035         * lib/gl_anylinked_list1.h: Likewise.
57036         * lib/gl_anylinked_list2.h: Likewise.
57037         * lib/gl_anyrbtree_list1.h: Likewise.
57038         * lib/gl_anyrbtree_list2.h: Likewise.
57039         * lib/gl_anytree_list1.h: Likewise.
57040         * lib/gl_anytree_list2.h: Likewise.
57041         * lib/gl_anytree_oset.h: Likewise.
57042         * lib/gl_anytreehash_list1.h: Likewise.
57043         * lib/gl_anytreehash_list2.h: Likewise.
57044         * lib/gl_array_list.c: Likewise.
57045         * lib/gl_array_list.h: Likewise.
57046         * lib/gl_array_oset.c: Likewise.
57047         * lib/gl_array_oset.h: Likewise.
57048         * lib/gl_avltree_list.c: Likewise.
57049         * lib/gl_avltree_list.h: Likewise.
57050         * lib/gl_avltree_oset.c: Likewise.
57051         * lib/gl_avltree_oset.h: Likewise.
57052         * lib/gl_avltreehash_list.c: Likewise.
57053         * lib/gl_avltreehash_list.h: Likewise.
57054         * lib/gl_carray_list.c: Likewise.
57055         * lib/gl_carray_list.h: Likewise.
57056         * lib/gl_linked_list.c: Likewise.
57057         * lib/gl_linked_list.h: Likewise.
57058         * lib/gl_linkedhash_list.c: Likewise.
57059         * lib/gl_linkedhash_list.h: Likewise.
57060         * lib/gl_list.c: Likewise.
57061         * lib/gl_list.h: Likewise.
57062         * lib/gl_oset.c: Likewise.
57063         * lib/gl_oset.h: Likewise.
57064         * lib/gl_rbtree_list.c: Likewise.
57065         * lib/gl_rbtree_list.h: Likewise.
57066         * lib/gl_rbtree_oset.c: Likewise.
57067         * lib/gl_rbtree_oset.h: Likewise.
57068         * lib/gl_rbtreehash_list.c: Likewise.
57069         * lib/gl_rbtreehash_list.h: Likewise.
57070         * lib/gl_sublist.c: Likewise.
57071         * lib/gl_sublist.h: Likewise.
57072         * lib/group-member.c: Likewise.
57073         * lib/group-member.h: Likewise.
57074         * lib/hard-locale.c: Likewise.
57075         * lib/hard-locale.h: Likewise.
57076         * lib/hash-pjw.c: Likewise.
57077         * lib/hash-pjw.h: Likewise.
57078         * lib/hash-triple.c: Likewise.
57079         * lib/hash.c: Likewise.
57080         * lib/hash.h: Likewise.
57081         * lib/human.c: Likewise.
57082         * lib/human.h: Likewise.
57083         * lib/i-ring.c: Likewise.
57084         * lib/i-ring.h: Likewise.
57085         * lib/idcache.c: Likewise.
57086         * lib/imaxabs.c: Likewise.
57087         * lib/imaxdiv.c: Likewise.
57088         * lib/inet_pton.c: Likewise.
57089         * lib/inet_pton.h: Likewise.
57090         * lib/intprops.h: Likewise.
57091         * lib/inttostr.c: Likewise.
57092         * lib/inttostr.h: Likewise.
57093         * lib/inttypes.in.h: Likewise.
57094         * lib/isapipe.c: Likewise.
57095         * lib/isdir.c: Likewise.
57096         * lib/isnan.c: Likewise.
57097         * lib/isnan.h: Likewise.
57098         * lib/isnanf.c: Likewise.
57099         * lib/isnanf.h: Likewise.
57100         * lib/isnanl-nolibm.h: Likewise.
57101         * lib/isnanl.c: Likewise.
57102         * lib/isnanl.h: Likewise.
57103         * lib/javacomp.c: Likewise.
57104         * lib/javacomp.h: Likewise.
57105         * lib/javaexec.c: Likewise.
57106         * lib/javaexec.h: Likewise.
57107         * lib/javaversion.c: Likewise.
57108         * lib/javaversion.h: Likewise.
57109         * lib/javaversion.java: Likewise.
57110         * lib/lbrkprop.h: Likewise.
57111         * lib/lchmod.h: Likewise.
57112         * lib/lchown.c: Likewise.
57113         * lib/ldexpl.c: Likewise.
57114         * lib/linebreak.c: Likewise.
57115         * lib/linebreak.h: Likewise.
57116         * lib/linebuffer.c: Likewise.
57117         * lib/linebuffer.h: Likewise.
57118         * lib/locale.in.h: Likewise.
57119         * lib/logl.c: Likewise.
57120         * lib/long-options.c: Likewise.
57121         * lib/long-options.h: Likewise.
57122         * lib/lstat.c: Likewise.
57123         * lib/lstat.h: Likewise.
57124         * lib/math.in.h: Likewise.
57125         * lib/mbchar.c: Likewise.
57126         * lib/mbchar.h: Likewise.
57127         * lib/mbfile.h: Likewise.
57128         * lib/mbiter.h: Likewise.
57129         * lib/mbscasecmp.c: Likewise.
57130         * lib/mbscasestr.c: Likewise.
57131         * lib/mbschr.c: Likewise.
57132         * lib/mbscspn.c: Likewise.
57133         * lib/mbslen.c: Likewise.
57134         * lib/mbsncasecmp.c: Likewise.
57135         * lib/mbsnlen.c: Likewise.
57136         * lib/mbspbrk.c: Likewise.
57137         * lib/mbspcasecmp.c: Likewise.
57138         * lib/mbsrchr.c: Likewise.
57139         * lib/mbssep.c: Likewise.
57140         * lib/mbsspn.c: Likewise.
57141         * lib/mbsstr.c: Likewise.
57142         * lib/mbstok_r.c: Likewise.
57143         * lib/mbswidth.c: Likewise.
57144         * lib/mbswidth.h: Likewise.
57145         * lib/mbuiter.h: Likewise.
57146         * lib/memcasecmp.c: Likewise.
57147         * lib/memcasecmp.h: Likewise.
57148         * lib/memchr.c: Likewise.
57149         * lib/memcmp.c: Likewise.
57150         * lib/memcoll.c: Likewise.
57151         * lib/memcoll.h: Likewise.
57152         * lib/memcpy.c: Likewise.
57153         * lib/memrchr.c: Likewise.
57154         * lib/mkancesdirs.c: Likewise.
57155         * lib/mkdir-p.c: Likewise.
57156         * lib/mkdir-p.h: Likewise.
57157         * lib/mkdir.c: Likewise.
57158         * lib/mkdirat.c: Likewise.
57159         * lib/mkdtemp.c: Likewise.
57160         * lib/mkstemp-safer.c: Likewise.
57161         * lib/mkstemp.c: Likewise.
57162         * lib/modechange.c: Likewise.
57163         * lib/modechange.h: Likewise.
57164         * lib/mountlist.c: Likewise.
57165         * lib/mountlist.h: Likewise.
57166         * lib/mpsort.c: Likewise.
57167         * lib/nanosleep.c: Likewise.
57168         * lib/obstack.c: Likewise.
57169         * lib/obstack.h: Likewise.
57170         * lib/open-safer.c: Likewise.
57171         * lib/open.c: Likewise.
57172         * lib/openat-die.c: Likewise.
57173         * lib/openat-priv.h: Likewise.
57174         * lib/openat-proc.c: Likewise.
57175         * lib/openat.c: Likewise.
57176         * lib/openat.h: Likewise.
57177         * lib/pagealign_alloc.c: Likewise.
57178         * lib/pagealign_alloc.h: Likewise.
57179         * lib/physmem.c: Likewise.
57180         * lib/physmem.h: Likewise.
57181         * lib/pipe-safer.c: Likewise.
57182         * lib/pipe.c: Likewise.
57183         * lib/pipe.h: Likewise.
57184         * lib/posixtm.c: Likewise.
57185         * lib/posixtm.h: Likewise.
57186         * lib/posixver.c: Likewise.
57187         * lib/printf-frexp.c: Likewise.
57188         * lib/printf-frexp.h: Likewise.
57189         * lib/printf-frexpl.c: Likewise.
57190         * lib/printf-frexpl.h: Likewise.
57191         * lib/printf.c: Likewise.
57192         * lib/progname.c: Likewise.
57193         * lib/progname.h: Likewise.
57194         * lib/progreloc.c: Likewise.
57195         * lib/putenv.c: Likewise.
57196         * lib/quote.c: Likewise.
57197         * lib/quote.h: Likewise.
57198         * lib/quotearg.c: Likewise.
57199         * lib/quotearg.h: Likewise.
57200         * lib/raise.c: Likewise.
57201         * lib/readline.c: Likewise.
57202         * lib/readline.h: Likewise.
57203         * lib/readlink.c: Likewise.
57204         * lib/readtokens.c: Likewise.
57205         * lib/readtokens.h: Likewise.
57206         * lib/readtokens0.c: Likewise.
57207         * lib/readtokens0.h: Likewise.
57208         * lib/readutmp.c: Likewise.
57209         * lib/readutmp.h: Likewise.
57210         * lib/realloc.c: Likewise.
57211         * lib/relocwrapper.c: Likewise.
57212         * lib/rename-dest-slash.c: Likewise.
57213         * lib/rename.c: Likewise.
57214         * lib/rmdir.c: Likewise.
57215         * lib/rpmatch.c: Likewise.
57216         * lib/safe-read.c: Likewise.
57217         * lib/safe-read.h: Likewise.
57218         * lib/safe-write.c: Likewise.
57219         * lib/safe-write.h: Likewise.
57220         * lib/same-inode.h: Likewise.
57221         * lib/same.c: Likewise.
57222         * lib/same.h: Likewise.
57223         * lib/save-cwd.c: Likewise.
57224         * lib/save-cwd.h: Likewise.
57225         * lib/savedir.c: Likewise.
57226         * lib/savedir.h: Likewise.
57227         * lib/savewd.c: Likewise.
57228         * lib/savewd.h: Likewise.
57229         * lib/search.in.h: Likewise.
57230         * lib/setenv.c: Likewise.
57231         * lib/setenv.h: Likewise.
57232         * lib/settime.c: Likewise.
57233         * lib/sh-quote.c: Likewise.
57234         * lib/sh-quote.h: Likewise.
57235         * lib/sig2str.c: Likewise.
57236         * lib/sig2str.h: Likewise.
57237         * lib/signal.in.h: Likewise.
57238         * lib/signbitd.c: Likewise.
57239         * lib/signbitf.c: Likewise.
57240         * lib/signbitl.c: Likewise.
57241         * lib/sigprocmask.c: Likewise.
57242         * lib/sincosl.c: Likewise.
57243         * lib/sleep.c: Likewise.
57244         * lib/sprintf.c: Likewise.
57245         * lib/sqrtl.c: Likewise.
57246         * lib/stat-time.h: Likewise.
57247         * lib/stdio--.h: Likewise.
57248         * lib/stdio-safer.h: Likewise.
57249         * lib/stdlib--.h: Likewise.
57250         * lib/stdlib-safer.h: Likewise.
57251         * lib/stdlib.in.h: Likewise.
57252         * lib/stpcpy.c: Likewise.
57253         * lib/stpncpy.c: Likewise.
57254         * lib/strchrnul.c: Likewise.
57255         * lib/strcspn.c: Likewise.
57256         * lib/strerror.c: Likewise.
57257         * lib/strftime.c: Likewise.
57258         * lib/strftime.h: Likewise.
57259         * lib/striconveh.c: Likewise.
57260         * lib/striconveh.h: Likewise.
57261         * lib/striconveha.c: Likewise.
57262         * lib/striconveha.h: Likewise.
57263         * lib/stripslash.c: Likewise.
57264         * lib/strnlen1.c: Likewise.
57265         * lib/strnlen1.h: Likewise.
57266         * lib/strtod.c: Likewise.
57267         * lib/strtoimax.c: Likewise.
57268         * lib/strtok_r.c: Likewise.
57269         * lib/strtol.c: Likewise.
57270         * lib/strtoll.c: Likewise.
57271         * lib/strtoul.c: Likewise.
57272         * lib/strtoull.c: Likewise.
57273         * lib/sysexits.in.h: Likewise.
57274         * lib/tempname.c: Likewise.
57275         * lib/tempname.h: Likewise.
57276         * lib/timespec.h: Likewise.
57277         * lib/tls.c: Likewise.
57278         * lib/tls.h: Likewise.
57279         * lib/tmpdir.c: Likewise.
57280         * lib/tmpdir.h: Likewise.
57281         * lib/tmpfile-safer.c: Likewise.
57282         * lib/tmpfile.c: Likewise.
57283         * lib/trigl.c: Likewise.
57284         * lib/trigl.h: Likewise.
57285         * lib/trim.c: Likewise.
57286         * lib/trim.h: Likewise.
57287         * lib/trunc.c: Likewise.
57288         * lib/truncf.c: Likewise.
57289         * lib/truncl.c: Likewise.
57290         * lib/tsearch.c: Likewise.
57291         * lib/unicodeio.c: Likewise.
57292         * lib/unicodeio.h: Likewise.
57293         * lib/unistd--.h: Likewise.
57294         * lib/unistd-safer.h: Likewise.
57295         * lib/unistdio/ulc-fprintf.c: Likewise.
57296         * lib/unistdio/ulc-vfprintf.c: Likewise.
57297         * lib/unlinkdir.c: Likewise.
57298         * lib/unlinkdir.h: Likewise.
57299         * lib/unlocked-io.h: Likewise.
57300         * lib/unsetenv.c: Likewise.
57301         * lib/userspec.c: Likewise.
57302         * lib/utime.c: Likewise.
57303         * lib/utimecmp.c: Likewise.
57304         * lib/utimecmp.h: Likewise.
57305         * lib/utimens.c: Likewise.
57306         * lib/verify.h: Likewise.
57307         * lib/verror.c: Likewise.
57308         * lib/verror.h: Likewise.
57309         * lib/version-etc-fsf.c: Likewise.
57310         * lib/version-etc.c: Likewise.
57311         * lib/version-etc.h: Likewise.
57312         * lib/vfprintf.c: Likewise.
57313         * lib/vprintf.c: Likewise.
57314         * lib/vsprintf.c: Likewise.
57315         * lib/w32spawn.h: Likewise.
57316         * lib/wait-process.c: Likewise.
57317         * lib/wait-process.h: Likewise.
57318         * lib/wcwidth.c: Likewise.
57319         * lib/write-any-file.c: Likewise.
57320         * lib/xalloc-die.c: Likewise.
57321         * lib/xalloc.h: Likewise.
57322         * lib/xasprintf.c: Likewise.
57323         * lib/xgetcwd.c: Likewise.
57324         * lib/xgetcwd.h: Likewise.
57325         * lib/xgetdomainname.c: Likewise.
57326         * lib/xgetdomainname.h: Likewise.
57327         * lib/xgethostname.c: Likewise.
57328         * lib/xmalloc.c: Likewise.
57329         * lib/xmalloca.c: Likewise.
57330         * lib/xmalloca.h: Likewise.
57331         * lib/xmemcoll.c: Likewise.
57332         * lib/xnanosleep.c: Likewise.
57333         * lib/xreadlink.c: Likewise.
57334         * lib/xreadlink.h: Likewise.
57335         * lib/xsetenv.c: Likewise.
57336         * lib/xsetenv.h: Likewise.
57337         * lib/xstriconv.c: Likewise.
57338         * lib/xstriconv.h: Likewise.
57339         * lib/xstrndup.c: Likewise.
57340         * lib/xstrndup.h: Likewise.
57341         * lib/xstrtod.c: Likewise.
57342         * lib/xstrtod.h: Likewise.
57343         * lib/xstrtol-error.c: Likewise.
57344         * lib/xstrtol.c: Likewise.
57345         * lib/xstrtol.h: Likewise.
57346         * lib/xtime.h: Likewise.
57347         * lib/xvasprintf.c: Likewise.
57348         * lib/xvasprintf.h: Likewise.
57349         * lib/yesno.c: Likewise.
57350         * lib/yesno.h: Likewise.
57351         * posix-modules: Likewise.
57352         * tests/test-alloca-opt.c: Likewise.
57353         * tests/test-arcfour.c: Likewise.
57354         * tests/test-arctwo.c: Likewise.
57355         * tests/test-argmatch.c: Likewise.
57356         * tests/test-argp-2.sh: Likewise.
57357         * tests/test-argp.c: Likewise.
57358         * tests/test-arpa_inet.c: Likewise.
57359         * tests/test-array_list.c: Likewise.
57360         * tests/test-array_oset.c: Likewise.
57361         * tests/test-atexit.c: Likewise.
57362         * tests/test-avltree_list.c: Likewise.
57363         * tests/test-avltree_oset.c: Likewise.
57364         * tests/test-avltreehash_list.c: Likewise.
57365         * tests/test-base64.c: Likewise.
57366         * tests/test-binary-io.c: Likewise.
57367         * tests/test-byteswap.c: Likewise.
57368         * tests/test-c-ctype.c: Likewise.
57369         * tests/test-c-strcasecmp.c: Likewise.
57370         * tests/test-c-strcasestr.c: Likewise.
57371         * tests/test-c-strncasecmp.c: Likewise.
57372         * tests/test-c-strstr.c: Likewise.
57373         * tests/test-canonicalize-lgpl.c: Likewise.
57374         * tests/test-canonicalize.c: Likewise.
57375         * tests/test-carray_list.c: Likewise.
57376         * tests/test-ceilf.c: Likewise.
57377         * tests/test-ceill.c: Likewise.
57378         * tests/test-count-one-bits.c: Likewise.
57379         * tests/test-crc.c: Likewise.
57380         * tests/test-dirname.c: Likewise.
57381         * tests/test-fbufmode.c: Likewise.
57382         * tests/test-fcntl.c: Likewise.
57383         * tests/test-fflush.c: Likewise.
57384         * tests/test-floorf.c: Likewise.
57385         * tests/test-floorl.c: Likewise.
57386         * tests/test-fopen.c: Likewise.
57387         * tests/test-fprintf-posix.c: Likewise.
57388         * tests/test-fprintf-posix.h: Likewise.
57389         * tests/test-fpurge.c: Likewise.
57390         * tests/test-freadable.c: Likewise.
57391         * tests/test-freadahead.c: Likewise.
57392         * tests/test-freading.c: Likewise.
57393         * tests/test-freopen.c: Likewise.
57394         * tests/test-frexp.c: Likewise.
57395         * tests/test-frexpl.c: Likewise.
57396         * tests/test-fseek.c: Likewise.
57397         * tests/test-fseeko.c: Likewise.
57398         * tests/test-fseterr.c: Likewise.
57399         * tests/test-fstrcmp.c: Likewise.
57400         * tests/test-ftell.c: Likewise.
57401         * tests/test-ftello.c: Likewise.
57402         * tests/test-fwritable.c: Likewise.
57403         * tests/test-fwriting.c: Likewise.
57404         * tests/test-getaddrinfo.c: Likewise.
57405         * tests/test-getpass.c: Likewise.
57406         * tests/test-gettimeofday.c: Likewise.
57407         * tests/test-hmac-md5.c: Likewise.
57408         * tests/test-hmac-sha1.c: Likewise.
57409         * tests/test-iconv.c: Likewise.
57410         * tests/test-iconvme.c: Likewise.
57411         * tests/test-inttypes.c: Likewise.
57412         * tests/test-isnan.c: Likewise.
57413         * tests/test-isnanf.c: Likewise.
57414         * tests/test-isnanl-nolibm.c: Likewise.
57415         * tests/test-isnanl.c: Likewise.
57416         * tests/test-isnanl.h: Likewise.
57417         * tests/test-ldexpl.c: Likewise.
57418         * tests/test-linked_list.c: Likewise.
57419         * tests/test-linkedhash_list.c: Likewise.
57420         * tests/test-locale.c: Likewise.
57421         * tests/test-localename.c: Likewise.
57422         * tests/test-lock.c: Likewise.
57423         * tests/test-lseek.c: Likewise.
57424         * tests/test-malloca.c: Likewise.
57425         * tests/test-math.c: Likewise.
57426         * tests/test-mbscasecmp.c: Likewise.
57427         * tests/test-mbscasestr1.c: Likewise.
57428         * tests/test-mbscasestr2.c: Likewise.
57429         * tests/test-mbscasestr3.c: Likewise.
57430         * tests/test-mbscasestr4.c: Likewise.
57431         * tests/test-mbschr.c: Likewise.
57432         * tests/test-mbscspn.c: Likewise.
57433         * tests/test-mbsncasecmp.c: Likewise.
57434         * tests/test-mbspbrk.c: Likewise.
57435         * tests/test-mbspcasecmp.c: Likewise.
57436         * tests/test-mbsrchr.c: Likewise.
57437         * tests/test-mbsspn.c: Likewise.
57438         * tests/test-mbsstr1.c: Likewise.
57439         * tests/test-mbsstr2.c: Likewise.
57440         * tests/test-mbsstr3.c: Likewise.
57441         * tests/test-md5.c: Likewise.
57442         * tests/test-memmem.c: Likewise.
57443         * tests/test-netinet_in.c: Likewise.
57444         * tests/test-open.c: Likewise.
57445         * tests/test-printf-frexp.c: Likewise.
57446         * tests/test-printf-frexpl.c: Likewise.
57447         * tests/test-printf-posix.c: Likewise.
57448         * tests/test-printf-posix.h: Likewise.
57449         * tests/test-rbtree_list.c: Likewise.
57450         * tests/test-rbtree_oset.c: Likewise.
57451         * tests/test-rbtreehash_list.c: Likewise.
57452         * tests/test-read-file.c: Likewise.
57453         * tests/test-rijndael.c: Likewise.
57454         * tests/test-search.c: Likewise.
57455         * tests/test-signbit.c: Likewise.
57456         * tests/test-sleep.c: Likewise.
57457         * tests/test-snprintf-posix.c: Likewise.
57458         * tests/test-snprintf-posix.h: Likewise.
57459         * tests/test-snprintf.c: Likewise.
57460         * tests/test-sprintf-posix.c: Likewise.
57461         * tests/test-sprintf-posix.h: Likewise.
57462         * tests/test-stat-time.c: Likewise.
57463         * tests/test-stdbool.c: Likewise.
57464         * tests/test-stdint.c: Likewise.
57465         * tests/test-stdio.c: Likewise.
57466         * tests/test-stdlib.c: Likewise.
57467         * tests/test-stpncpy.c: Likewise.
57468         * tests/test-strcasestr.c: Likewise.
57469         * tests/test-striconv.c: Likewise.
57470         * tests/test-striconveh.c: Likewise.
57471         * tests/test-striconveha.c: Likewise.
57472         * tests/test-string.c: Likewise.
57473         * tests/test-sys_select.c: Likewise.
57474         * tests/test-sys_socket.c: Likewise.
57475         * tests/test-sys_stat.c: Likewise.
57476         * tests/test-sys_time.c: Likewise.
57477         * tests/test-sysexits.c: Likewise.
57478         * tests/test-time.c: Likewise.
57479         * tests/test-tls.c: Likewise.
57480         * tests/test-trunc.c: Likewise.
57481         * tests/test-truncf.c: Likewise.
57482         * tests/test-truncl.c: Likewise.
57483         * tests/test-unistd.c: Likewise.
57484         * tests/test-vasnprintf-posix.c: Likewise.
57485         * tests/test-vasnprintf-posix2.c: Likewise.
57486         * tests/test-vasnprintf.c: Likewise.
57487         * tests/test-vasprintf-posix.c: Likewise.
57488         * tests/test-vasprintf.c: Likewise.
57489         * tests/test-verify.c: Likewise.
57490         * tests/test-vfprintf-posix.c: Likewise.
57491         * tests/test-vprintf-posix.c: Likewise.
57492         * tests/test-vsnprintf-posix.c: Likewise.
57493         * tests/test-vsnprintf.c: Likewise.
57494         * tests/test-vsprintf-posix.c: Likewise.
57495         * tests/test-wchar.c: Likewise.
57496         * tests/test-wctype.c: Likewise.
57497         * tests/test-wcwidth.c: Likewise.
57498         * tests/test-xstrtol.c: Likewise.
57499         * tests/test-xvasprintf.c: Likewise.
57500         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57501         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57502         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57503         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57504         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57505         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57506         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57507         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57508         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57509         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57510         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57511         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57512         * tests/uniname/test-uninames.c: Likewise.
57513         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57514         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57515         * tests/unistdio/test-u16-printf1.h: Likewise.
57516         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57517         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57518         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57519         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57520         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57521         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57522         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57523         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57524         * tests/unistdio/test-u32-printf1.h: Likewise.
57525         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57526         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57527         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57528         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57529         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57530         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57531         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57532         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57533         * tests/unistdio/test-u8-printf1.h: Likewise.
57534         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57535         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57536         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57537         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57538         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57539         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57540         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57541         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57542         * tests/unistdio/test-ulc-printf1.h: Likewise.
57543         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57544         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57545         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57546         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57547         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57548         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57549         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57550         * tests/uniwidth/test-u16-width.c: Likewise.
57551         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57552         * tests/uniwidth/test-u32-width.c: Likewise.
57553         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57554         * tests/uniwidth/test-u8-width.c: Likewise.
57555         * tests/uniwidth/test-uc_width.c: Likewise.
57556         * config/srclist-update: Likewise.
57557         (fixlicense): Update to GPLv3+.
57558
57559         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57560         * tests/test-tsearch.c: Change copyright notice.
57561
57562         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57563         * lib/c-strcaseeq.h: Change copyright notice.
57564         * lib/streq.h: Likewise.
57565         * lib/uniconv.h: Likewise.
57566         * lib/uniconv/u-conv-from-enc.h: Likewise.
57567         * lib/uniconv/u-conv-to-enc.h: Likewise.
57568         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57569         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57570         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57571         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57572         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57573         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57574         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57575         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57576         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57577         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57578         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57579         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57580         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57581         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57582         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57583         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57584         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57585         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57586         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57587         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57588         * lib/uniname.h: Likewise.
57589         * lib/uniname/uniname.c: Likewise.
57590         * lib/unistdio.h: Likewise.
57591         * lib/unistdio/u-asnprintf.h: Likewise.
57592         * lib/unistdio/u-asprintf.h: Likewise.
57593         * lib/unistdio/u-printf-args.c: Likewise.
57594         * lib/unistdio/u-printf-args.h: Likewise.
57595         * lib/unistdio/u-printf-parse.h: Likewise.
57596         * lib/unistdio/u-snprintf.h: Likewise.
57597         * lib/unistdio/u-sprintf.h: Likewise.
57598         * lib/unistdio/u-vasprintf.h: Likewise.
57599         * lib/unistdio/u-vsnprintf.h: Likewise.
57600         * lib/unistdio/u-vsprintf.h: Likewise.
57601         * lib/unistdio/u16-asnprintf.c: Likewise.
57602         * lib/unistdio/u16-asprintf.c: Likewise.
57603         * lib/unistdio/u16-printf-parse.c: Likewise.
57604         * lib/unistdio/u16-snprintf.c: Likewise.
57605         * lib/unistdio/u16-sprintf.c: Likewise.
57606         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57607         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57608         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57609         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57610         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57611         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57612         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57613         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57614         * lib/unistdio/u16-vasnprintf.c: Likewise.
57615         * lib/unistdio/u16-vasprintf.c: Likewise.
57616         * lib/unistdio/u16-vsnprintf.c: Likewise.
57617         * lib/unistdio/u16-vsprintf.c: Likewise.
57618         * lib/unistdio/u32-asnprintf.c: Likewise.
57619         * lib/unistdio/u32-asprintf.c: Likewise.
57620         * lib/unistdio/u32-printf-parse.c: Likewise.
57621         * lib/unistdio/u32-snprintf.c: Likewise.
57622         * lib/unistdio/u32-sprintf.c: Likewise.
57623         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57624         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57625         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57626         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57627         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57628         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57629         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57630         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57631         * lib/unistdio/u32-vasnprintf.c: Likewise.
57632         * lib/unistdio/u32-vasprintf.c: Likewise.
57633         * lib/unistdio/u32-vsnprintf.c: Likewise.
57634         * lib/unistdio/u32-vsprintf.c: Likewise.
57635         * lib/unistdio/u8-asnprintf.c: Likewise.
57636         * lib/unistdio/u8-asprintf.c: Likewise.
57637         * lib/unistdio/u8-printf-parse.c: Likewise.
57638         * lib/unistdio/u8-snprintf.c: Likewise.
57639         * lib/unistdio/u8-sprintf.c: Likewise.
57640         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57641         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57642         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57643         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57644         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57645         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57646         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57647         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57648         * lib/unistdio/u8-vasnprintf.c: Likewise.
57649         * lib/unistdio/u8-vasprintf.c: Likewise.
57650         * lib/unistdio/u8-vsnprintf.c: Likewise.
57651         * lib/unistdio/u8-vsprintf.c: Likewise.
57652         * lib/unistdio/ulc-asnprintf.c: Likewise.
57653         * lib/unistdio/ulc-asprintf.c: Likewise.
57654         * lib/unistdio/ulc-printf-parse.c: Likewise.
57655         * lib/unistdio/ulc-snprintf.c: Likewise.
57656         * lib/unistdio/ulc-sprintf.c: Likewise.
57657         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57658         * lib/unistdio/ulc-vasprintf.c: Likewise.
57659         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57660         * lib/unistdio/ulc-vsprintf.c: Likewise.
57661         * lib/unistr.h: Likewise.
57662         * lib/unistr/u-cpy-alloc.h: Likewise.
57663         * lib/unistr/u-cpy.h: Likewise.
57664         * lib/unistr/u-endswith.h: Likewise.
57665         * lib/unistr/u-move.h: Likewise.
57666         * lib/unistr/u-set.h: Likewise.
57667         * lib/unistr/u-startswith.h: Likewise.
57668         * lib/unistr/u-stpcpy.h: Likewise.
57669         * lib/unistr/u-stpncpy.h: Likewise.
57670         * lib/unistr/u-strcat.h: Likewise.
57671         * lib/unistr/u-strcpy.h: Likewise.
57672         * lib/unistr/u-strcspn.h: Likewise.
57673         * lib/unistr/u-strdup.h: Likewise.
57674         * lib/unistr/u-strlen.h: Likewise.
57675         * lib/unistr/u-strncat.h: Likewise.
57676         * lib/unistr/u-strncpy.h: Likewise.
57677         * lib/unistr/u-strnlen.h: Likewise.
57678         * lib/unistr/u-strpbrk.h: Likewise.
57679         * lib/unistr/u-strspn.h: Likewise.
57680         * lib/unistr/u-strstr.h: Likewise.
57681         * lib/unistr/u-strtok.h: Likewise.
57682         * lib/unistr/u16-check.c: Likewise.
57683         * lib/unistr/u16-chr.c: Likewise.
57684         * lib/unistr/u16-cmp.c: Likewise.
57685         * lib/unistr/u16-cpy-alloc.c: Likewise.
57686         * lib/unistr/u16-cpy.c: Likewise.
57687         * lib/unistr/u16-endswith.c: Likewise.
57688         * lib/unistr/u16-mblen.c: Likewise.
57689         * lib/unistr/u16-mbsnlen.c: Likewise.
57690         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57691         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57692         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57693         * lib/unistr/u16-mbtouc.c: Likewise.
57694         * lib/unistr/u16-mbtoucr.c: Likewise.
57695         * lib/unistr/u16-move.c: Likewise.
57696         * lib/unistr/u16-next.c: Likewise.
57697         * lib/unistr/u16-prev.c: Likewise.
57698         * lib/unistr/u16-set.c: Likewise.
57699         * lib/unistr/u16-startswith.c: Likewise.
57700         * lib/unistr/u16-stpcpy.c: Likewise.
57701         * lib/unistr/u16-stpncpy.c: Likewise.
57702         * lib/unistr/u16-strcat.c: Likewise.
57703         * lib/unistr/u16-strchr.c: Likewise.
57704         * lib/unistr/u16-strcmp.c: Likewise.
57705         * lib/unistr/u16-strcpy.c: Likewise.
57706         * lib/unistr/u16-strcspn.c: Likewise.
57707         * lib/unistr/u16-strdup.c: Likewise.
57708         * lib/unistr/u16-strlen.c: Likewise.
57709         * lib/unistr/u16-strmblen.c: Likewise.
57710         * lib/unistr/u16-strmbtouc.c: Likewise.
57711         * lib/unistr/u16-strncat.c: Likewise.
57712         * lib/unistr/u16-strncmp.c: Likewise.
57713         * lib/unistr/u16-strncpy.c: Likewise.
57714         * lib/unistr/u16-strnlen.c: Likewise.
57715         * lib/unistr/u16-strpbrk.c: Likewise.
57716         * lib/unistr/u16-strrchr.c: Likewise.
57717         * lib/unistr/u16-strspn.c: Likewise.
57718         * lib/unistr/u16-strstr.c: Likewise.
57719         * lib/unistr/u16-strtok.c: Likewise.
57720         * lib/unistr/u16-to-u32.c: Likewise.
57721         * lib/unistr/u16-to-u8.c: Likewise.
57722         * lib/unistr/u16-uctomb-aux.c: Likewise.
57723         * lib/unistr/u16-uctomb.c: Likewise.
57724         * lib/unistr/u32-check.c: Likewise.
57725         * lib/unistr/u32-chr.c: Likewise.
57726         * lib/unistr/u32-cmp.c: Likewise.
57727         * lib/unistr/u32-cpy-alloc.c: Likewise.
57728         * lib/unistr/u32-cpy.c: Likewise.
57729         * lib/unistr/u32-endswith.c: Likewise.
57730         * lib/unistr/u32-mblen.c: Likewise.
57731         * lib/unistr/u32-mbsnlen.c: Likewise.
57732         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57733         * lib/unistr/u32-mbtouc.c: Likewise.
57734         * lib/unistr/u32-mbtoucr.c: Likewise.
57735         * lib/unistr/u32-move.c: Likewise.
57736         * lib/unistr/u32-next.c: Likewise.
57737         * lib/unistr/u32-prev.c: Likewise.
57738         * lib/unistr/u32-set.c: Likewise.
57739         * lib/unistr/u32-startswith.c: Likewise.
57740         * lib/unistr/u32-stpcpy.c: Likewise.
57741         * lib/unistr/u32-stpncpy.c: Likewise.
57742         * lib/unistr/u32-strcat.c: Likewise.
57743         * lib/unistr/u32-strchr.c: Likewise.
57744         * lib/unistr/u32-strcmp.c: Likewise.
57745         * lib/unistr/u32-strcpy.c: Likewise.
57746         * lib/unistr/u32-strcspn.c: Likewise.
57747         * lib/unistr/u32-strdup.c: Likewise.
57748         * lib/unistr/u32-strlen.c: Likewise.
57749         * lib/unistr/u32-strmblen.c: Likewise.
57750         * lib/unistr/u32-strmbtouc.c: Likewise.
57751         * lib/unistr/u32-strncat.c: Likewise.
57752         * lib/unistr/u32-strncmp.c: Likewise.
57753         * lib/unistr/u32-strncpy.c: Likewise.
57754         * lib/unistr/u32-strnlen.c: Likewise.
57755         * lib/unistr/u32-strpbrk.c: Likewise.
57756         * lib/unistr/u32-strrchr.c: Likewise.
57757         * lib/unistr/u32-strspn.c: Likewise.
57758         * lib/unistr/u32-strstr.c: Likewise.
57759         * lib/unistr/u32-strtok.c: Likewise.
57760         * lib/unistr/u32-to-u16.c: Likewise.
57761         * lib/unistr/u32-to-u8.c: Likewise.
57762         * lib/unistr/u32-uctomb.c: Likewise.
57763         * lib/unistr/u8-check.c: Likewise.
57764         * lib/unistr/u8-chr.c: Likewise.
57765         * lib/unistr/u8-cmp.c: Likewise.
57766         * lib/unistr/u8-cpy-alloc.c: Likewise.
57767         * lib/unistr/u8-cpy.c: Likewise.
57768         * lib/unistr/u8-endswith.c: Likewise.
57769         * lib/unistr/u8-mblen.c: Likewise.
57770         * lib/unistr/u8-mbsnlen.c: Likewise.
57771         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57772         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57773         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57774         * lib/unistr/u8-mbtouc.c: Likewise.
57775         * lib/unistr/u8-mbtoucr.c: Likewise.
57776         * lib/unistr/u8-move.c: Likewise.
57777         * lib/unistr/u8-next.c: Likewise.
57778         * lib/unistr/u8-prev.c: Likewise.
57779         * lib/unistr/u8-set.c: Likewise.
57780         * lib/unistr/u8-startswith.c: Likewise.
57781         * lib/unistr/u8-stpcpy.c: Likewise.
57782         * lib/unistr/u8-stpncpy.c: Likewise.
57783         * lib/unistr/u8-strcat.c: Likewise.
57784         * lib/unistr/u8-strchr.c: Likewise.
57785         * lib/unistr/u8-strcmp.c: Likewise.
57786         * lib/unistr/u8-strcpy.c: Likewise.
57787         * lib/unistr/u8-strcspn.c: Likewise.
57788         * lib/unistr/u8-strdup.c: Likewise.
57789         * lib/unistr/u8-strlen.c: Likewise.
57790         * lib/unistr/u8-strmblen.c: Likewise.
57791         * lib/unistr/u8-strmbtouc.c: Likewise.
57792         * lib/unistr/u8-strncat.c: Likewise.
57793         * lib/unistr/u8-strncmp.c: Likewise.
57794         * lib/unistr/u8-strncpy.c: Likewise.
57795         * lib/unistr/u8-strnlen.c: Likewise.
57796         * lib/unistr/u8-strpbrk.c: Likewise.
57797         * lib/unistr/u8-strrchr.c: Likewise.
57798         * lib/unistr/u8-strspn.c: Likewise.
57799         * lib/unistr/u8-strstr.c: Likewise.
57800         * lib/unistr/u8-strtok.c: Likewise.
57801         * lib/unistr/u8-to-u16.c: Likewise.
57802         * lib/unistr/u8-to-u32.c: Likewise.
57803         * lib/unistr/u8-uctomb-aux.c: Likewise.
57804         * lib/unistr/u8-uctomb.c: Likewise.
57805         * lib/unitypes.h: Likewise.
57806         * lib/uniwidth.h: Likewise.
57807         * lib/uniwidth/cjk.h: Likewise.
57808         * lib/uniwidth/u16-strwidth.c: Likewise.
57809         * lib/uniwidth/u16-width.c: Likewise.
57810         * lib/uniwidth/u32-strwidth.c: Likewise.
57811         * lib/uniwidth/u32-width.c: Likewise.
57812         * lib/uniwidth/u8-strwidth.c: Likewise.
57813         * lib/uniwidth/u8-width.c: Likewise.
57814         * lib/uniwidth/width.c: Likewise.
57815
57816 2007-10-07  Bruno Haible  <bruno@clisp.org>
57817
57818         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57819         The file is still under LGPL (see modules/inttypes).
57820
57821 2007-10-06  Bruno Haible  <bruno@clisp.org>
57822
57823         * modules/trunc (Dependencies): Add 'extensions'.
57824         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57825         Reported by Ben Pfaff <blp@gnu.org>.
57826
57827 2007-10-06  Bruno Haible  <bruno@clisp.org>
57828
57829         * modules/freopen-tests: New file.
57830         * tests/test-freopen.c: New file.
57831
57832         * modules/fopen-tests: New file.
57833         * tests/test-fopen.c: New file.
57834
57835         * modules/fopen: New file.
57836         * lib/fopen.c: New file.
57837         * m4/fopen.m4: New file.
57838         * modules/freopen: New file.
57839         * lib/freopen.c: New file.
57840         * m4/freopen.m4: New file.
57841         * lib/stdio.in.h (fopen, freopen): New declarations.
57842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57843         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57844         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57845         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57846         * doc/functions/fopen.texi: Mention the 'fopen' module.
57847         * doc/functions/freopen.texi: Mention the 'freopen' module.
57848
57849 2007-10-06  Bruno Haible  <bruno@clisp.org>
57850
57851         * modules/open-tests: New file.
57852         * tests/test-open.c: New file.
57853
57854         * modules/open: New file.
57855         * lib/open.c: New file.
57856         * m4/open.m4: New file.
57857         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57858         lib/open.c does.
57859         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57860         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57861         macros.
57862         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57863         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57864         REPLACE_OPEN.
57865         * doc/functions/open.texi: Mention the 'open' module.
57866
57867 2007-10-04  Bruno Haible  <bruno@clisp.org>
57868
57869         * modules/ceill-tests: New file.
57870         * tests/test-ceill.c: New file.
57871
57872         * modules/ceill: New file.
57873         * lib/ceill.c: Replace entire file.
57874         * m4/ceill.m4: New file.
57875         * lib/math.in.h (ceill): Replace declaration.
57876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57877         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57878         * doc/functions/ceill.texi: Mention the 'ceill' module.
57879         * modules/mathl (Files): Remove lib/ceill.c.
57880         (Depends-on): Add ceill.
57881
57882 2007-10-04  Bruno Haible  <bruno@clisp.org>
57883
57884         * modules/ceilf-tests: New file.
57885         * tests/test-ceilf.c: New file.
57886
57887         * modules/ceilf: New file.
57888         * lib/ceil.c: New file.
57889         * lib/ceilf.c: New file.
57890         * m4/ceilf.m4: New file.
57891         * lib/math.in.h (ceilf): New declaration.
57892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57893         HAVE_DECL_CEILF.
57894         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57895         HAVE_DECL_CEILF.
57896         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57897
57898 2007-10-04  Bruno Haible  <bruno@clisp.org>
57899
57900         * modules/floorl-tests: New file.
57901         * tests/test-floorl.c: New file.
57902
57903         * modules/floorl: New file.
57904         * lib/floorl.c: Replace entire file.
57905         * m4/floorl.m4: New file.
57906         * lib/math.in.h (floorl): Replace declaration.
57907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57908         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57909         * doc/functions/floorl.texi: Mention the 'floorl' module.
57910         * modules/mathl (Files): Remove lib/floorl.c.
57911         (Depends-on): Add floorl.
57912
57913 2007-10-04  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/floorf-tests: New file.
57916         * tests/test-floorf.c: New file.
57917
57918         * modules/floorf: New file.
57919         * lib/floor.c: New file.
57920         * lib/floorf.c: New file.
57921         * m4/floorf.m4: New file.
57922         * lib/math.in.h (floorf): New declaration.
57923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57924         HAVE_DECL_FLOORF.
57925         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57926         HAVE_DECL_FLOORF.
57927         * doc/functions/floorf.texi: Mention the 'floorf' module.
57928
57929 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57930             Bruno Haible  <bruno@clisp.org>
57931
57932         Advertise for the Git server instead of the CVS server.
57933         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57934         repository instead of the CVS one.
57935         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57936         about all VCS systems generically.
57937         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57938
57939 2007-10-04  Bruno Haible  <bruno@clisp.org>
57940
57941         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57942         means.
57943         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57944
57945 2007-10-04  Bruno Haible  <bruno@clisp.org>
57946
57947         * modules/truncl-tests: New file.
57948         * tests/test-truncl.c: New file.
57949
57950         * modules/truncl: New file.
57951         * lib/truncl.c: New file.
57952         * m4/truncl.m4: New file.
57953         * lib/math.in.h (truncl): New declaration.
57954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57955         HAVE_DECL_TRUNCL.
57956         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57957         HAVE_DECL_TRUNCL.
57958         * doc/functions/truncl.texi: Mention the 'truncl' module.
57959
57960 2007-10-04  Bruno Haible  <bruno@clisp.org>
57961
57962         * modules/truncf-tests: New file.
57963         * tests/test-truncf.c: New file.
57964
57965         * modules/truncf: New file.
57966         * lib/trunc.c: Make paramerizable through USE_* macros.
57967         * lib/truncf.c: New file.
57968         * m4/truncf.m4: New file.
57969         * lib/math.in.h (truncf): New declaration.
57970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57971         HAVE_DECL_TRUNCF.
57972         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57973         HAVE_DECL_TRUNCF.
57974         * doc/functions/truncf.texi: Mention the 'truncf' module.
57975
57976 2007-10-03  Bruno Haible  <bruno@clisp.org>
57977
57978         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57979         augmentation also for tests modules.
57980         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57981         * modules/atexit-tests (Makefile.am): Likewise.
57982         * modules/binary-io-tests (Makefile.am): Likewise.
57983         * modules/c-strcase-tests (Makefile.am): Likewise.
57984         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57985         * modules/canonicalize-tests (Makefile.am): Likewise.
57986         * modules/closein-tests (Makefile.am): Likewise.
57987         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57988         * modules/freadahead-tests (Makefile.am): Likewise.
57989         * modules/fseek-tests (Makefile.am): Likewise.
57990         * modules/fseeko-tests (Makefile.am): Likewise.
57991         * modules/ftell-tests (Makefile.am): Likewise.
57992         * modules/ftello-tests (Makefile.am): Likewise.
57993         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57994         * modules/isnanl-tests (Makefile.am): Likewise.
57995         * modules/lseek-tests (Makefile.am): Likewise.
57996         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57997         * modules/mbscasestr-tests (Makefile.am): Likewise.
57998         * modules/mbschr-tests (Makefile.am): Likewise.
57999         * modules/mbscspn-tests (Makefile.am): Likewise.
58000         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58001         * modules/mbspbrk-tests (Makefile.am): Likewise.
58002         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58003         * modules/mbsrchr-tests (Makefile.am): Likewise.
58004         * modules/mbsspn-tests (Makefile.am): Likewise.
58005         * modules/mbsstr-tests (Makefile.am): Likewise.
58006         * modules/printf-posix-tests (Makefile.am): Likewise.
58007         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58008         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58009         * modules/tsearch-tests (Makefile.am): Likewise.
58010         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58011         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58012         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58013         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58014         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58015         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58016         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58017         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58018         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58019         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58020         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58021         * modules/xstrtol-tests (Makefile.am): Likewise.
58022         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58023         * modules/yesno-tests (Makefile.am): Likewise.
58024
58025 2007-10-03  Bruno Haible  <bruno@clisp.org>
58026
58027         * modules/trunc-tests: New file.
58028         * tests/test-trunc.c: New file.
58029
58030         * modules/trunc: New file.
58031         * lib/trunc.c: New file.
58032         * m4/trunc.m4: New file.
58033         * lib/math.in.h (trunc): New declaration.
58034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58035         HAVE_DECL_TRUNC.
58036         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58037         HAVE_DECL_TRUNC.
58038         * doc/functions/trunc.texi: Mention the 'trunc' module.
58039
58040 2007-10-03  Bruno Haible  <bruno@clisp.org>
58041
58042         * tests/test-fpending.c: New file, mostly copied
58043         from coreutils/lib/t-fpending.c.
58044         * modules/fpending-tests: New file.
58045
58046 2007-10-03  Bruno Haible  <bruno@clisp.org>
58047
58048         Port the stdio extensions to QNX (untested).
58049         * lib/fseterr.c (fseterr): Add support for QNX.
58050         * lib/fbufmode.c (fbufmode): Likewise.
58051         * lib/freadable.c (freadable): Likewise.
58052         * lib/fwritable.c (fwritable): Likewise.
58053         * lib/freading.c (freading): Likewise.
58054         * lib/fwriting.c (fwriting): Likewise.
58055         * lib/freadahead.c (freadahed): Likewise.
58056         * lib/fpurge.c (fpurge): Likewise.
58057         * lib/fseeko.c (rpl_fseeko): Likewise.
58058
58059 2007-10-03  Bruno Haible  <bruno@clisp.org>
58060             Jim Meyering  <jim@meyering.net>
58061             Eric Blake  <ebb9@byu.net>
58062
58063         * doc/relocatable.texi: Use @command instead of @program.
58064
58065 2007-10-02  Jim Meyering  <jim@meyering.net>
58066
58067         Perform one more "_.h" -> ".in.h" substitution.
58068         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58069         instead of unistd_.h here, too.
58070
58071 2007-10-01  Bruno Haible  <bruno@clisp.org>
58072
58073         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58074         Needed for the alloca-opt module.
58075
58076 2007-09-30  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58079         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58080         alloca_.h.
58081         * lib/argz.in.h: Renamed from lib/argz_.h.
58082         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58083         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58084         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58085         byteswap_.h.
58086         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58087         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58088         dirent_.h.
58089         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58090         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58091         fcntl_.h.
58092         * lib/float.in.h: Renamed from lib/float_.h.
58093         * modules/float (Files, Makefile.am): Use float.in.h instead of
58094         float_.h.
58095         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58096         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58097         fnmatch_.h.
58098         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58099         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58100         getopt_.h.
58101         * lib/glob.in.h: Renamed from lib/glob_.h.
58102         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58103         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58104         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58105         iconv_.h.
58106         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58107         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58108         inttypes_.h.
58109         * lib/locale.in.h: Renamed from lib/locale_.h.
58110         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58111         locale_.h.
58112         * lib/math.in.h: Renamed from lib/math_.h.
58113         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58114         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58115         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58116         of netinet_in_.h. Add dependency.
58117         * lib/poll.in.h: Renamed from lib/poll_.h.
58118         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58119         * lib/search.in.h: Renamed from lib/search_.h.
58120         * modules/search (Files, Makefile.am): Use search.in.h instead of
58121         search_.h.
58122         * lib/signal.in.h: Renamed from lib/signal_.h.
58123         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58124         _signal.h.
58125         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58126         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58127         stdbool_.h.
58128         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58129         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58130         stdint_.h.
58131         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58132         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58133         stdio_.h.
58134         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58135         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58136         stdlib_.h.
58137         * lib/string.in.h: Renamed from lib/string_.h.
58138         * modules/string (Files, Makefile.am): Use string.in.h instead of
58139         string_.h.
58140         * doc/gnulib-tool.texi (Initial import): Update.
58141         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58142         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58143         of sys_select_.h. Add dependency.
58144         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58145         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58146         of sys_socket_.h.
58147         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58148         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58149         sys_stat_.h.
58150         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58151         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58152         sys_time_.h.
58153         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58154         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58155         sysexits_.h.
58156         * lib/time.in.h: Renamed from lib/time_.h.
58157         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58158         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58159         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58160         unistd_.h.
58161         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58162         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58163         wchar_.h.
58164         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58165         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58166         wctype_.h.
58167         * build-aux/bootstrap (slurp): Update.
58168         * lib/.cppi-disable: Update.
58169
58170 2007-09-30  Bruno Haible  <bruno@clisp.org>
58171
58172         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58173         Needed on BeOS.
58174
58175 2007-09-30  Bruno Haible  <bruno@clisp.org>
58176
58177         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58178
58179 2007-09-29  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58182
58183 2007-09-29  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58186         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58187         * build-aux/install-reloc: Compile also areadlink.c.
58188         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58189
58190 2007-09-29  Bruno Haible  <bruno@clisp.org>
58191
58192         * gnulib-tool (func_emit_initmacro_done): Indentation.
58193
58194 2007-09-29  Bruno Haible  <bruno@clisp.org>
58195
58196         * README: Add CVS checkout update instructions.
58197         Info from Bob Proulx <bob@proulx.com>.
58198
58199 2007-09-28  Eric Blake  <ebb9@byu.net>
58200
58201         Provide move-if-change.
58202         * build-aux/move-if-change: New file, based on best practice
58203         rather than any canonical upstream location.
58204
58205 2007-09-28  Jim Meyering  <jim@meyering.net>
58206
58207         Fix canonicalize loop-detection corner case.
58208         Do not attempt to stat the symlink values stored via seen_triple.
58209         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58210         on linux-2.6.18, (but not 2.6.22).
58211         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58212         triple_compare.  The former compares dev,ino,filename, while the latter
58213         would actually stat dirname(filename) when dev and ino were equal.
58214         * lib/hash-triple.c: Install <string.h>.
58215         (STREQ): Define.
58216         (triple_compare_ino_str): New function.
58217         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58218
58219 2007-09-28  Eric Blake  <ebb9@byu.net>
58220
58221         Enforce that AC_REPLACE_FUNCS files exist.
58222         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58223         override check for typos.
58224
58225         Fix test-closein on Solaris 10.
58226         * tests/test-closein.c (main): Don't assume stdin can be inherited
58227         closed on all systems.
58228         * tests/test-closein.sh: Likewise.
58229         Reported by Piotr Tarnowski.
58230
58231 2007-09-28  Jim Meyering  <jim@meyering.net>
58232
58233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58234
58235 2007-09-27  Jim Meyering  <jim@meyering.net>
58236
58237         canonicalize: Avoid a false-positive cycle failure.
58238         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58239         Sort.  Remove cycle-check.
58240         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58241         not cycle-check.h.
58242         (seen_triple): New function.
58243         (canonicalize_filename_mode): Use it instead of cycle-check.
58244         * tests/test-canonicalize.c: Add a test for this bug.
58245         * tests/test-canonicalize.sh: Set up and run the test.
58246
58247         New module, file-set, from coreutils.
58248         * modules/file-set: Define it.
58249         * lib/file-set.c, lib/file-set.h: Implement.
58250
58251         New module, hash-triple, from coreutils.
58252         * modules/hash-triple: Define it.
58253         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58254
58255 2007-09-25  Eric Blake  <ebb9@byu.net>
58256
58257         Fix strerror on Interix.
58258         * lib/string_.h (strerror): Declare replacement.
58259         * doc/functions/strerror.texi (strerror): Document the Interix
58260         shortcoming.
58261         * modules/string (Makefile.am): Support new hooks.
58262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58263         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58264         gl_FUNC_STRERROR_SEPARATE.
58265         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58266         * lib/strerror.c (rpl_strerror): Provide replacement.
58267         * modules/strerror (Depends-on): Add string.
58268         (configure.ac): Detect use of module.
58269         * tests/test-strerror.c: New file.
58270         * modules/strerror-tests: New test module.
58271         * modules/argp (Depends-on): Add strerror.
58272         * modules/error (Depends-on): Likewise.
58273         Reported by Martin Koeppe.
58274
58275 2007-09-24  Bruno Haible  <bruno@clisp.org>
58276
58277         * README: Update git instructions.
58278
58279 2007-09-24  Eric Blake  <ebb9@byu.net>
58280
58281         Revert fpending breakage from 2007-09-08.
58282         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58283         __fpending.c.
58284
58285 2007-09-24  Jim Meyering  <jim@meyering.net>
58286
58287         filenamecat.c: Add a test.
58288         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58289         showing how the function works when DIR is the empty string.
58290
58291 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58292
58293         * tests/test-canonicalize.sh: Turn on executable bit.
58294
58295 2007-09-19  Eric Blake  <ebb9@byu.net>
58296
58297         * README: Update CVS instructions.
58298
58299 2007-09-18  Bruno Haible  <bruno@clisp.org>
58300
58301         * modules/areadlink: New file.
58302         * lib/areadlink.h (areadlink): New declaration.
58303         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58304
58305 2007-09-17  Jim Meyering  <jim@meyering.net>
58306
58307         * lib/savewd.c (ESTALE) [!defined]: Define.
58308         Reported to be required on Interix by Martin Koeppe.
58309
58310 2007-09-17  Bruno Haible  <bruno@clisp.org>
58311
58312         * gnulib-tool (func_version): Use $version.
58313
58314 2007-09-16  Bruno Haible  <bruno@clisp.org>
58315
58316         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58317         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58318         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58319         Reported by Greg Schafer <gschafer@zip.com.au>.
58320
58321 2007-09-15  Bruno Haible  <bruno@clisp.org>
58322
58323         * gnulib-tool (sed): Try a little harder to make bash understand the
58324         alias.
58325         Reported by Bruce Korb <bruce.korb@gmail.com>.
58326
58327 2007-09-13  Eric Blake  <ebb9@byu.net>
58328
58329         * ChangeLog: Remove conflict markers.
58330
58331 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58332
58333         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58334         Reported by Bruno Haible <bruno@clisp.org>.
58335
58336 2007-09-12  Bruno Haible  <bruno@clisp.org>
58337
58338         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58339         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58340         is not defined.
58341
58342 2007-09-12  Eric Blake  <ebb9@byu.net>
58343
58344         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58345         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58346         Autoconf definition.
58347         * modules/euidaccess (Depends-on): Add extensions, for
58348         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58349         * modules/fnmatch (Depends-on): Likewise.
58350         * modules/getaddrinfo (Depends-on): Likewise.
58351         * modules/getdelim (Depends-on): Likewise.
58352         * modules/getline (Depends-on): Likewise.
58353         * modules/getsubopt (Depends-on): Likewise.
58354         * modules/gettext (Depends-on): Likewise.
58355         * modules/group-member (Depends-on): Likewise.
58356         * modules/mbchar (Depends-on): Likewise.
58357         * modules/memmem (Depends-on): Likewise.
58358         * modules/mempcpy (Depends-on): Likewise.
58359         * modules/memrchr (Depends-on): Likewise.
58360         * modules/pagealign_alloc (Depends-on): Likewise.
58361         * modules/readutmp (Depends-on): Likewise.
58362         * modules/stpcpy (Depends-on): Likewise.
58363         * modules/stpncpy (Depends-on): Likewise.
58364         * modules/strchrnul (Depends-on): Likewise.
58365         * modules/strndup (Depends-on): Likewise.
58366         * modules/strsep (Depends-on): Likewise.
58367         * modules/strverscmp (Depends-on): Likewise.
58368         * modules/vasprintf (Depends-on): Likewise.
58369         * modules/wcwidth (Depends-on): Likewise.
58370         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58371         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58372         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58374         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58375         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58376         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58377         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58378         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58379         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58381         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58382         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58383         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58384         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58385         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58386         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58387         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58388         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58389         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58390         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58391         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58392         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58393         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58394         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58396         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58397         so that lock.m4 can be used in gettext without extensions module.
58398
58399 2007-09-11  Bruno Haible  <bruno@clisp.org>
58400
58401         * m4/isc-posix.m4: Remove file.
58402         Suggested by Eric Blake.
58403
58404 2007-09-11  Eric Blake  <ebb9@byu.net>
58405
58406         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58407
58408 2007-09-10  Bruno Haible  <bruno@clisp.org>
58409
58410         * posix-modules: Fix typo in error message.
58411         Reported by Matt <mkraai@beckman.com>.
58412
58413 2007-09-09  Bruno Haible  <bruno@clisp.org>
58414
58415         * doc/functions/getdelim.texi: Update list of platforms lacking the
58416         function.
58417         * doc/functions/getline.texi: Likewise.
58418
58419 2007-09-09  Jim Meyering  <jim@meyering.net>
58420
58421         * lib/hash.c (hash_initialize): Detect calloc failure.
58422         Reported by Bruno Haible.
58423
58424 2007-09-09  Bruno Haible  <bruno@clisp.org>
58425
58426         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58427         malloc or realloc fails.
58428
58429 2007-09-09  Bruno Haible  <bruno@clisp.org>
58430
58431         * modules/getcwd (Depends-on): Add malloc-posix.
58432         * modules/glob (Depends-on): Likewise.
58433         * modules/putenv (Depends-on): Likewise.
58434         * modules/strdup (Depends-on): Likewise.
58435         * modules/getdelim (Depends-on): Add realloc-posix.
58436         * modules/read-file (Depends-on): Likewise.
58437
58438 2007-09-09  Bruno Haible  <bruno@clisp.org>
58439
58440         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58441         (gl_FUNC_MALLOC_POSIX): Require it.
58442         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58443         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58444         * modules/realloc (Files): Add m4/malloc.m4.
58445         * modules/calloc (Files): Likewise.
58446
58447 2007-09-09  Bruno Haible  <bruno@clisp.org>
58448
58449         * modules/malloc-posix: New file.
58450         * modules/malloc (Depends-on): Add malloc-posix.
58451         * lib/malloc.c: Include errno.h.
58452         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58453         and a POSIX-compatible malloc into a single function. Set ENOMEM
58454         when returning NULL.
58455         * m4/malloc.m4: New file.
58456         * doc/functions/malloc.texi: Mention the malloc-posix module.
58457         * lib/stdlib_.h (malloc): New declaration.
58458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58459         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58460         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58461         and HAVE_MALLOC_POSIX.
58462
58463 2007-09-09  Bruno Haible  <bruno@clisp.org>
58464
58465         * modules/realloc-posix: New file.
58466         * modules/realloc (Depends-on): Add realloc-posix.
58467         * lib/realloc.c: Include errno.h.
58468         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58469         and a POSIX-compatible realloc into a single function. Set ENOMEM
58470         when returning NULL.
58471         * m4/realloc.m4: New file.
58472         * doc/functions/realloc.texi: Mention the realloc-posix module.
58473         * lib/stdlib_.h (realloc): New declaration.
58474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58475         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58476         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58477         and HAVE_REALLOC_POSIX.
58478
58479 2007-09-09  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/calloc-posix: New file.
58482         * modules/calloc (Depends-on): Add calloc-posix.
58483         * lib/calloc.c: Include errno.h.
58484         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58485         and a POSIX-compatible calloc into a single function. Set ENOMEM
58486         when returning NULL.
58487         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58488         * doc/functions/calloc.texi: Mention the calloc-posix module.
58489         * lib/stdlib_.h (calloc): New declaration.
58490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58491         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58492         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58493         and HAVE_CALLOC_POSIX.
58494
58495 2007-09-09  Bruno Haible  <bruno@clisp.org>
58496
58497         Allow for modules to show an arbitrary notice.
58498         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58499         * gnulib-tool: New option --extract-notice.
58500         (func_usage): Document it.
58501         (sed_extract_prog): Update.
58502         (func_get_notice): New function.
58503         (func_modules_notice): New function.
58504         (func_import, func_create_testdir): Invoke it.
58505         Suggested by Jim Meyering.
58506
58507 2007-09-09  Bruno Haible  <bruno@clisp.org>
58508
58509         * gnulib-tool: New options --verbose, --quiet.
58510         (func_usage): Document them.
58511         (verbose): New variable.
58512         (func_execute_command): New function.
58513         (func_import): Don't show the module list and the file list if
58514         $verbose < 0.
58515         (func_create_testdir): Likewise. Use func_execute_command.
58516         (func_create_megatestdir): Use func_execute_command.
58517
58518 2007-09-08  Bruno Haible  <bruno@clisp.org>
58519
58520         * gnulib-tool (func_import): Prefer rsync over wget when available,
58521         for fetching the PO files.
58522
58523 2007-09-08  Bruno Haible  <bruno@clisp.org>
58524
58525         * posix-modules: New file. Portions copied from gnulib-tool.
58526         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58527
58528 2007-09-08  Jim Meyering  <jim@meyering.net>
58529
58530         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58531         * lib/fpending.h: Rename from __fpending.h.
58532         * lib/fpending.c: Rename from __fpending.c.
58533         Include "fpending.h", not "__fpending.h".
58534         * lib/__fpending.h, lib/__fpending.c: Remove files.
58535         * modules/fpending (Files): Reflect new file names.
58536         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58537
58538 2007-09-08  Bruno Haible  <bruno@clisp.org>
58539
58540         * m4/inttypes-h.m4: Remove stub file.
58541
58542 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58543
58544         * doc/headers/stdint.texi: Discuss #include_next issue.
58545
58546 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58547
58548         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58549
58550 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58551
58552         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58553         in variable name.
58554
58555 2007-09-03  Jim Meyering  <jim@meyering.net>
58556
58557         New module: git-version-gen.
58558         * modules/git-version-gen: New file.
58559
58560         Import changes from coreutils for bootstrap script.
58561
58562         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58563
58564         bootstrap: uses rsync to download the .po files
58565         * build-aux/bootstrap (po_download_command_format): New global.
58566         (download_po_files): Use rsync.
58567         (update_po_files): Don't remove .po files after download,
58568         so future rsync runs can take advantage of the copies.
58569
58570         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58571
58572         Solve the unnecessary-.po-file-regeneration problem once and for all.
58573         * build-aux/bootstrap (download_po_files): New function, renamed from
58574         get_translations.  Now, downloads, but doesn't update LINGUAS.
58575         (update_po_files): New function.
58576
58577         bootstrap: Ignore more.
58578         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58579         uniwidth to e.g., lib/.gitignore.
58580         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58581
58582         * build-aux/bootstrap: New setting: vc_ignore.
58583         (insert_sorted_if_absent): Create $file if absent.
58584         Adapt to new, possibly empty, list: $vc_ignore.
58585
58586         bootstrap: generate more ignorable names
58587         * build-aux/bootstrap (slurp): When generating ignorable names,
58588         also map .sin to .sed, .gperf to .c, and .y to .c.
58589
58590 2007-09-03  Jim Meyering  <jim@meyering.net>
58591
58592         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58593         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58594
58595 2007-09-02  Bruno Haible  <bruno@clisp.org>
58596
58597         Fix mis-recognition of 'mcs' on QNX 6.
58598         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58599         output contains the string "Mono".
58600         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58601         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58602
58603 2007-09-01  Bruno Haible  <bruno@clisp.org>
58604
58605         Fix collision between uniwidth/* and linebreak modules.
58606         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58607         u32_width): Remove declarations.
58608         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58609         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58610         streq3, streq2, streq1, streq0): Remove functions.
58611         (STREQ): Remove macro.
58612         (is_cjk_encoding): Remove function.
58613         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58614         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58615         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58616         * NEWS: Document the change.
58617
58618 2007-09-01  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/streq.h: Add double-inclusion guard.
58621
58622 2007-09-01  Karl Berry  <karl@gnu.org>
58623
58624         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58625
58626 2007-08-28  Jim Meyering  <jim@meyering.net>
58627
58628         Rename mreadlink_with_size to areadlink_with_size.
58629         * NEWS: Document the change.
58630         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58631         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58632         * lib/mreadlink.h: Rename this to...
58633         * lib/areadlink.h: ...this.
58634         * modules/mreadlink-with-size: Rename this to...
58635         * modules/areadlink-with-size: ...this.
58636         * lib/canonicalize.c: Reflect the renaming.
58637         * modules/canonicalize: Likewise.
58638
58639 2007-08-26  Bruno Haible  <bruno@clisp.org>
58640
58641         * gnulib-tool (func_import): When deciding which files to remove,
58642         consider also dangling symbolic links.
58643         Reported by Eric Blake.
58644
58645 2007-08-26  Bruno Haible  <bruno@clisp.org>
58646
58647         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58648
58649 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58650
58651         * lib/readline.c: Don't include getline.h, the prototype is now
58652         found in stdio.h.
58653
58654 2007-08-23  Jim Meyering  <jim@meyering.net>
58655
58656         Getdelim touchup.
58657         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58658         around the funlockfile call, since funlockfile never sets errno.
58659         Don't set errno upon failed realloc.
58660
58661 2007-08-22  Eric Blake  <ebb9@byu.net>
58662
58663         Getline touchups.
58664         * lib/getdelim.c (getdelim): Revert regression that required *n to
58665         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58667         getdelim, rather than whether implementation is missing.
58668         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58669         * lib/stdio_.h (getline): Also declare if replacement is
58670         required.
58671         * doc/functions/getdelim.texi: New file.
58672         * doc/functions/getline.texi: Likewise.
58673         * doc/gnulib.texi (Function Substitutes): Add new files.
58674         Reported by Bruno Haible.
58675
58676 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58677
58678         * users.txt: Add Guile.
58679
58680 2007-08-22  Eric Blake  <ebb9@byu.net>
58681
58682         * tests/test-getdelim.c (main): Use remove, not unlink.
58683         * tests/test-getline.c (main): Likewise.
58684
58685         Move getline and getdelim into stdio.h, per POSIX 200x.
58686         * modules/getline (Files): Remove getline.h.
58687         (Depends-on): Add stdio.
58688         (configure.ac): Add module indicator.
58689         * modules/getdelim (Files): Remove getdelim.h.
58690         (Depends-on): Add stdio.
58691         (configure.ac): Add module indicator.
58692         * modules/stdio (Makefile.am): Work with new indicators.
58693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58694         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58695         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58696         * lib/getdelim.h: Delete.
58697         * lib/getline.h: Delete.
58698         * lib/stdio_.h (getdelim, getline): Declare.
58699         * modules/getdelim-tests: New module.
58700         * modules/getline-tests: Likewise.
58701         * tests/test-getdelim.c: New file.
58702         * tests/test-getline.c: Likewise.
58703         * NEWS: Document the change.
58704         * lib/getline.c: Update choice of header.
58705         * lib/csharpcomp.c: Likewise.
58706         * lib/getpass.c: Likewise.
58707         * lib/javacomp.c: Likewise.
58708         * lib/javaversion.c: Likewise.
58709         * lib/yesno.c: Likewise.
58710         * lib/getdelim.c: Likewise.
58711         (getdelim): Set errno on failure, and avoid memory leak.
58712
58713 2007-08-19  Bruno Haible  <bruno@clisp.org>
58714
58715         * modules/closein (Depends-on): Add freadahead.
58716         * lib/closein.c: Include freadahead.h.
58717         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58718         is zero.
58719
58720 2007-08-19  Bruno Haible  <bruno@clisp.org>
58721
58722         * modules/freadahead-tests: New file.
58723         * tests/test-freadahead.sh: New file.
58724         * tests/test-freadahead.c: New file.
58725
58726         * modules/freadahead: New file.
58727         * lib/freadahead.h: New file.
58728         * lib/freadahead.c: New file.
58729         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58730         fbufmode, fpurge, freadable, fwritable.
58731
58732 2007-08-19  Eric Blake  <ebb9@byu.net>
58733
58734         Test yesno in combination with closein.
58735         * lib/yesno.c (yesno): Document use of stdin.
58736         * modules/yesno-tests (Files): New module.
58737         * tests/test-yesno.c (main): New file.
58738         * tests/test-yesno.sh: Likewise.
58739
58740 2007-08-19  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58743         * lib/fseeko.c (rpl_fseeko): Likewise.
58744         * lib/fseterr.c (fseterr): Likewise.
58745
58746 2007-08-19  Bruno Haible  <bruno@clisp.org>
58747
58748         * tests/test-lseek.c (main): Disable a test for BeOS.
58749         * doc/functions/lseek.texi: Document the BeOS bug.
58750
58751 2007-08-19  Bruno Haible  <bruno@clisp.org>
58752             Eric Blake  <ebb9@byu.net>
58753
58754         * lib/lseek.c: Include <sys/stat.h>.
58755         (rpl_lseek): Add workaround code also for Unix platforms.
58756         Needed for BeOS.
58757         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58758         * doc/functions/lseek.texi: Document BeOS definiency.
58759
58760 2007-08-18  Bruno Haible  <bruno@clisp.org>
58761
58762         * modules/fstrcmp-tests: New file.
58763         * tests/test-fstrcmp.c: New file.
58764
58765 2007-08-18  Bruno Haible  <bruno@clisp.org>
58766
58767         * modules/fstrcmp: New file, from GNU gettext with modifications.
58768         * lib/fstrcmp.h: New file, from GNU gettext.
58769         * lib/fstrcmp.c: New file, from GNU gettext.
58770         * MODULES.html.sh (String handling): Add fstrcmp.
58771
58772 2007-08-18  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58775         'bool'.
58776         (diag, compareseq): Remove const from the ctxt argument.
58777         (USE_HEURISTIC): Undefine at the end.
58778
58779 2007-08-18  Jim Meyering  <jim@meyering.net>
58780
58781         New file: lib/idcache.h
58782         * NEWS: Mention the addition.
58783         * modules/idcache (Files): Add lib/idcache.h
58784         * lib/idcache.c: Include "idcache.h".
58785         Don't include <sys/types.h>.
58786         Add a FIXME comment.
58787         Move file-scoped "static" declarations to the top.
58788         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58789
58790 2007-08-17  Bruno Haible  <bruno@clisp.org>
58791         and Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         * MODULES.html.sh: Add diffseq.
58794         * modules/diffseq: New file.
58795         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58796         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58797
58798 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         Import changes from coreutils for bootstrap script.
58801
58802         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58803
58804         * build-aux/bootstrap (slurp): Work even in environments where
58805         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58806         current code does not slurp files whose names start with ".", and
58807         this looks like it might be a troublesome area.
58808
58809         2007-07-11  Jim Meyering  <jim@meyering.net>
58810
58811         If there's a GPL vN copyright comment, require that N == 3.
58812
58813         2007-07-08  Jim Meyering  <jim@meyering.net>
58814
58815         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58816         * build-aux/bootstrap (mam_template): Move definition out of loop.
58817
58818         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58819
58820         * build-aux/bootstrap (symlink_to_dir): Rename function from
58821         symlink_to_gnulib.  Add a directory parameter.  Update all
58822         callers.
58823         (cp_mark_as_generated): Also check for -- and link to -- files in
58824         gl/.
58825
58826         2007-07-08  Jim Meyering  <jim@meyering.net>
58827
58828         Adapt to deeper hierarchy in gnulib.
58829         * build-aux/bootstrap (symlink_to_dir): If the destination
58830         directory doesn't exist, create it. This is required at least for
58831         "lib/uniwidth/cjk.h".
58832
58833         2007-05-15  Jim Meyering  <jim@meyering.net>
58834
58835         * build-aux/bootstrap: Now that generated Makefile.am files
58836         are no longer under version control, they must be created at
58837         bootstrap time.
58838
58839 2007-08-14  Ben Pfaff  <blp@gnu.org>
58840
58841         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58842
58843 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58844
58845         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58846         given the changes below.
58847         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58848         even on hosts that have padding bits beyond the supported 64.
58849
58850 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58853         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58854         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58855         depends on it.
58856         (xstrtol_error): Remove.
58857         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58858         but with a different signature.
58859         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58860         * lib/xstrtol-error.c: Include exitfail.h.
58861         (xstrtol_fatal): New function, with a different signature from the
58862         old xstrtol_error, so that the caller need not worry about passing
58863         in an exit status, or about storage management of the option argument.
58864         (xstrtol_error): Now a static function.  Redo signature to
58865         implement xstrtol_fatal.  Output the correct number of hyphens in
58866         front of the option so that the caller need not worry about
58867         storage management.
58868         (N_): New macro.
58869         (_): Remove; not used now.
58870         * modules/xstrtol: Depend on getopt.
58871         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58872         of old STRTOL_FATAL_ERROR macro.
58873         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58874         of test program.
58875         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58876         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58877
58878 2007-08-08  Eric Blake  <ebb9@byu.net>
58879
58880         * lib/xstrtol-error.c: Add missing include.
58881
58882         Move xstrtol messages into gnulib domain, when --pobase is used.
58883         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58884         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58885         * modules/xstrtol (Files): Distribute new file.
58886         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58887         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58888         * tests/test-xstrtol.c: ...into new file.
58889         * tests/test-xstrtoul.c: Also test xstrtoul.
58890         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58891         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58892         * tests/test-xstrtol.sh: Drive the tests.
58893         * tests/test-xstrtoimax.sh: Likewise.
58894         * tests/test-xstrtoumax.sh: Likewise.
58895         * modules/xstrtol-tests: New module.
58896         * modules/xstrtoimax-tests: Likewise.
58897         * modules/xstrtoumax-tests: Likewise.
58898
58899 2007-08-08  Jim Meyering  <jim@meyering.net>
58900
58901         New function: mfile_name_concat.
58902         * lib/filenamecat.c (mfile_name_concat): New function, just like
58903         file_name_concat, but return NULL upon failure rather than exiting
58904         with a diagnostic.
58905         * lib/filenamecat.h: Declare it.
58906
58907 2007-08-07  Bruno Haible  <bruno@clisp.org>
58908
58909         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58910         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58911         warning from gcc.
58912         Reported by Eric Blake.
58913
58914 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58915
58916         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58917         * modules/crypto/arcfour (License): Likewise.
58918         * modules/crypto/des-tests (License): Likewise.
58919         * modules/crypto/gc-arctwo-tests (License): Likewise.
58920         * modules/crypto/gc-des-tests (License): Likewise.
58921         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58922         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58923         * modules/crypto/gc-md2-tests (License): Likewise.
58924         * modules/crypto/gc-md4-tests (License): Likewise.
58925         * modules/crypto/gc-md5-tests (License): Likewise.
58926         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58927         * modules/crypto/gc-rijndael-tests (License): Likewise.
58928         * modules/crypto/gc-sha1-tests (License): Likewise.
58929         * modules/crypto/gc-tests (License): Likewise.
58930         * modules/crypto/hmac-md5 (License): Likewise.
58931         * modules/crypto/hmac-sha1 (License): Likewise.
58932         * modules/crypto/md2-tests (License): Likewise.
58933         * modules/crypto/md4-tests (License): Likewise.
58934         * modules/crypto/md5 (License): Likewise.
58935         * modules/crypto/rijndael (License): Likewise.
58936         * modules/crypto/sha1 (License): Likewise.
58937         * modules/memxor (License): Likewise.
58938
58939 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58940         and Bruno Haible  <bruno@clisp.org>
58941
58942         * NEWS: Describe interface changes to human, xstrtol.
58943         * lib/human.h: Include <xstrtol.h>.
58944         (human_options): Return enum strtol_error, not int.  Remove
58945         bool arg; take int * instead.
58946         * lib/human.c: Don't include "gettext.h".
58947         (_): Remove; no longer used.
58948         Don't include <xstrtol.h>, since human.h does it.
58949         (human_options): Adjust to abovementioned interface changes.
58950         Do not report error to stderr; that's now the caller's
58951         responsibility.
58952         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58953         interface change.
58954         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58955         Str, Argument_type_string.  All uses changed.  Put " argument"
58956         in diagnostics to make them clearer.  Change wording of suffix
58957         message for clarity.
58958         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58959         Argument_type_string.
58960         (STRTOL_FATAL_WARN): Remove; no longer used.
58961         * modules/human (Depends-on): Remove gettext-h.
58962
58963 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58964
58965         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58966
58967 2007-07-31  Bruno Haible  <bruno@clisp.org>
58968
58969         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58970         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58971         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58972
58973 2007-07-31  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58976         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58977
58978 2007-07-30  Bruno Haible  <bruno@clisp.org>
58979
58980         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58981         * modules/c-ctype (License): Likewise.
58982         * modules/c-strcase (License): Likewise.
58983         * modules/check-version (License): Likewise.
58984         * modules/iconv (License): Likewise.
58985         * modules/iconv_open (License): Likewise.
58986         * modules/read-file (License): Likewise.
58987         * modules/striconv (License): Likewise.
58988         * modules/strverscmp (License): Likewise.
58989         * modules/vasprintf (License): Likewise.
58990         * modules/crypto/des (License): Likewise.
58991         * modules/crypto/gc (License): Likewise.
58992         * modules/crypto/gc-arcfour (License): Likewise.
58993         * modules/crypto/gc-arctwo (License): Likewise.
58994         * modules/crypto/gc-des (License): Likewise.
58995         * modules/crypto/gc-hmac-md5 (License): Likewise.
58996         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58997         * modules/crypto/gc-md2 (License): Likewise.
58998         * modules/crypto/gc-md4 (License): Likewise.
58999         * modules/crypto/gc-md5 (License): Likewise.
59000         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59001         * modules/crypto/gc-random (License): Likewise.
59002         * modules/crypto/gc-rijndael (License): Likewise.
59003         * modules/crypto/gc-sha1 (License): Likewise.
59004         * modules/crypto/md2 (License): Likewise.
59005         * modules/crypto/md4 (License): Likewise.
59006
59007 2007-07-30  Jim Meyering  <jim@meyering.net>
59008
59009         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59010         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59011         it has valid stat data.  This bug would cause du not to count the
59012         sizes of inaccessible directories.
59013         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59014         in <http://bugzilla.redhat.com/250077>.
59015
59016 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59017             Bruno Haible  <bruno@clisp.org>
59018
59019         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59020         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59021         #include_next, gives a diagnostic about it, but reports no error in
59022         the exit code.
59023         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59024
59025 2007-07-24  Ben Pfaff  <blp@gnu.org>
59026
59027         Improve name: "count-one-bits" is better than "popcount".
59028         * MODULES.html.sh: Update name.
59029         * lib/popcount.h: Renamed lib/count-one-bits.h.
59030         (popcount): Renamed count_one_bits.
59031         (popcountl): Renamed count_one_bits_l.
59032         (popcountll): Renamed count_one_bits_ll.
59033         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59034         * modules/popcount: Renamed module/count-one-bits.
59035         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59036         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59037
59038 2007-07-23  Ben Pfaff  <blp@gnu.org>
59039
59040         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59041         better code generation, and add U to large constants to avoid
59042         warnings, in non-GCC case.
59043         Suggested by Bruno Haible.
59044
59045 2007-07-23  Ben Pfaff  <blp@gnu.org>
59046
59047         * lib/popcount.h: Use verify_true instead of if...abort.
59048         * modules/popcount: Depend on verify module.
59049         Suggested by Jim Meyering.
59050
59051 2007-07-23  Bruno Haible  <bruno@clisp.org>
59052
59053         * gnulib-tool (func_import): Create a .cvsignore file also when the
59054         directory is not yet in CVS but the toplevel directory is. When
59055         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59056         Reported by Karl Berry.
59057
59058 2007-07-22  Ben Pfaff  <blp@gnu.org>
59059
59060         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59061         case.
59062         Suggested by Eric Blake.
59063
59064 2007-07-22  Ben Pfaff  <blp@gnu.org>
59065
59066         New module: popcount.
59067         * MODULES.html.sh: Add popcount.
59068         * modules/popcount: New file.
59069         * modules/popcount-tests: New file.
59070         * tests/test-popcount.c: New file.
59071         * lib/popcount.h: New file.
59072         * m4/popcount.m4: New file.
59073
59074 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59075
59076         * build-aux/announce-gen: Update to GPLv3.
59077
59078         * build-aux/config.guess: Update from config.
59079
59080 2007-07-21  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59083         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59084
59085 2007-07-20  Jim Meyering  <jim@meyering.net>
59086
59087         * check-module: Diagnose a self-dependency.
59088
59089 2007-07-19  Bruno Haible  <bruno@clisp.org>
59090
59091         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59092         empty.
59093         Reported by Eric Blake.
59094
59095 2007-07-18  Bruno Haible  <bruno@clisp.org>
59096
59097         * gnulib-tool: New options --po-base, --po-domain.
59098         (func_usage): Document them.
59099         (pobase, po_domain): New variables.
59100         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59101         DEFAULT_TEXT_DOMAIN.
59102         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59103         (func_import): Consider pobase and po_domain. Create a po/ directory.
59104         (func_create_testdir): Set pobase and po_domain to empty.
59105         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59106         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59107
59108 2007-07-18  Bruno Haible  <bruno@clisp.org>
59109
59110         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59111         EXTRA_DIST augmentation for files in build-aux/.
59112
59113 2007-07-16  Bruno Haible  <bruno@clisp.org>
59114
59115         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59116         * modules/getdelim (License): Likewise.
59117
59118 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59119
59120         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59121         * modules/d-type (License): Likewise.
59122         * modules/extensions (License): Likewise.
59123         * modules/fnmatch (License): Likewise.
59124         * modules/fseeko (License): Likewise.
59125         * modules/getaddrinfo (License): Likewise.
59126         * modules/getline (License): Likewise.
59127         * modules/getlogin_r (License): Likewise.
59128         * modules/getpass (License): Likewise.
59129         * modules/gettimeofday (License): Likewise.
59130         * modules/glob (License): Likewise.
59131         * modules/inet_ntop (License): Likewise.
59132         * modules/malloc (License): Likewise.
59133         * modules/malloca (License): Likewise.
59134         * modules/memmem (License): Likewise.
59135         * modules/mempcpy (License): Likewise.
59136         * modules/memset (License): Likewise.
59137         * modules/minmax (License): Likewise.
59138         * modules/mktime (License): Likewise.
59139         * modules/netinet_in (License): Likewise.
59140         * modules/pathmax (License): Likewise.
59141         * modules/poll (License): Likewise.
59142         * modules/regex (License): Likewise.
59143         * modules/snprintf (License): Likewise.
59144         * modules/stdbool (License): Likewise.
59145         * modules/stdint (License): Likewise.
59146         * modules/stdio (License): Likewise.
59147         * modules/strcase (License): Likewise.
59148         * modules/strcasestr (License): Likewise.
59149         * modules/strdup (License): Likewise.
59150         * modules/string (License): Likewise.
59151         * modules/strndup (License): Likewise.
59152         * modules/strnlen (License): Likewise.
59153         * modules/strpbrk (License): Likewise.
59154         * modules/strptime (License): Likewise.
59155         * modules/strsep (License): Likewise.
59156         * modules/sys_select (License): Likewise.
59157         * modules/sys_socket (License): Likewise.
59158         * modules/sys_stat (License): Likewise.
59159         * modules/sys_time (License): Likewise.
59160         * modules/time (License): Likewise.
59161         * modules/time_r (License): Likewise.
59162         * modules/timegm (License): Likewise.
59163         * modules/unistd (License): Likewise.
59164         * modules/vsnprintf (License): Likewise.
59165         * modules/wctype (License): Likewise.
59166
59167 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59168
59169         * modules/argz (License): LGPLv2+.
59170
59171 2007-07-15  Karl Berry  <karl@gnu.org>
59172
59173         * doc/gnulib.texi: revise node structure per new fdl.texi.
59174
59175 2007-07-14  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59178         the output file.
59179         * lib/uniname/uninames.h: Regenerated.
59180
59181 2007-07-14  Karl Berry  <karl@gnu.org>
59182
59183         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59184         omitting sectioning and index commands.
59185
59186 2007-07-13  Bruno Haible  <bruno@clisp.org>
59187
59188         New gnulib-tool option --more-symlinks.
59189         * gnulib-tool (func_usage): Document --more-symlinks.
59190         (do_copyrights): New variable.
59191         Recognize option --more-symlinks.
59192         (func_import): Don't add a copyright notice transform to
59193         sed_transform_lib_file if do_copyrights is empty.
59194
59195 2007-07-13  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/vasnprintf.c (decimal_point_char): Define also if
59198         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59199         && !NEED_PRINTF_DIRECTIVE_A.
59200         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59201         Gary V. Vaughan <gary@gnu.org>.
59202
59203 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59204
59205         * lib/inttypes_.h: Undo previous change, since it was fixed
59206         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59207
59208 2007-07-13  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59211         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59212
59213 2007-07-13  Jim Meyering  <jim@meyering.net>
59214
59215         df: Don't fail for Tru64's "file-on-file mount".
59216         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59217         so we fall through and use statfs instead.  Details here:
59218         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59219         Reported by Albert Chin.
59220
59221 2007-07-13  Bruno Haible  <bruno@clisp.org>
59222
59223         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59224         * modules/configmake (License): Likewise.
59225         * modules/gettext (License): Likewise.
59226         * modules/gettext-h (License): Likewise.
59227         * modules/include_next (License): Likewise.
59228         * modules/link-warning (License): Likewise.
59229         * modules/localcharset (License): Likewise.
59230         * modules/localename (License): Likewise.
59231         * modules/lock (License): Likewise.
59232         * modules/relocatable-lib-lgpl (License): Likewise.
59233         * modules/size_max (License): Likewise.
59234         * modules/vasnprintf (License): Likewise.
59235         * modules/wchar (License): Likewise.
59236         * modules/xsize (License): Likewise.
59237
59238 2007-07-13  Bruno Haible  <bruno@clisp.org>
59239
59240         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59241         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59242
59243 2007-07-12  Bruno Haible  <bruno@clisp.org>
59244
59245         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59246         in the modules files.
59247
59248 2007-07-11  Karl Berry  <karl@gnu.org>
59249
59250         * MODULES.html.sh (func_module): use
59251          sed -e '\|^'"${includefile}"'$|d'
59252          instead of /.../d, to avoid errors on $includefile's containing /.
59253
59254 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59255
59256         * gnulib-tool (func_import): Avoid duplication of --avoid
59257         statements
59258         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59259         names to `_' in variable names.
59260
59261 2007-07-10  Eric Blake  <ebb9@byu.net>
59262
59263         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59264         * NEWS: Document this change.
59265
59266 2007-07-08  Bruno Haible  <bruno@clisp.org>
59267
59268         Update to Unicode 5.0.
59269         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59270         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59271         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59272         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59273         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59274         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59275         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59276         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59277         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59278         U+10A3F, U+1D242..U+1D244.
59279         (nonspacing_table_ind): Update.
59280         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59281         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59282
59283 2007-07-08  Bruno Haible  <bruno@clisp.org>
59284
59285         Update to Unicode 5.0.
59286         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59287         code transform. Extend the name index field of unicode_name_to_code and
59288         unicode_code_to_name from 16 to 24 bits.
59289         * lib/uniname/uniname.c (unicode_character_name,
59290         unicode_name_character): Add the range 0x12xxx to the code transform.
59291         * lib/uniname/uninames.h: Regenerated.
59292         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59293
59294 2007-07-07  Bruno Haible  <bruno@clisp.org>
59295
59296         * modules/wcwidth-tests: New file.
59297         * tests/test-wcwidth.c: New file.
59298
59299         Work around MacOS X wcwidth() bug.
59300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59301         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59302         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59303         original wcwidth in non-UTF-8 locales.
59304         * modules/wcwidth (Depends-on): Add localcharset, streq,
59305         uniwidth/width.
59306         * doc/functions/wcwidth.texi: Update.
59307
59308 2007-07-07  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59311         (wcwidth): New declaration.
59312         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59313         macros.
59314         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59315         here. Prepare for creating <wchar.h> unconditionally.
59316         * modules/wchar (Depends-on): Add link-warning.
59317         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59318         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59319         * lib/wcwidth.h: Remove file.
59320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59321         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59322         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59323         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59324         (Include): Replace wcwidth.h with <wchar.h>.
59325         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59326         * lib/mbchar.h: Don't include wcwidth.h.
59327         * lib/mbswidth.c: Likewise.
59328         * NEWS: Mention the change.
59329
59330 2007-07-07  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59333         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59334         definition with an external declaration.
59335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59336         defined as a function. Remove AC_C_INLINE requirement.
59337         * modules/wcwidth (Files): Add lib/wcwidth.c.
59338         (Makefile.am): Remove redundant statement.
59339
59340 2007-07-07  Bruno Haible  <bruno@clisp.org>
59341
59342         * MODULES.html.sh (Unicode string functions): Add the new modules.
59343
59344         * tests/uniwidth/test-u32-strwidth.c: New file.
59345         * modules/uniwidth/u32-strwidth-tests: New file.
59346
59347         * lib/uniwidth/u32-strwidth.c: New file.
59348         * modules/uniwidth/u32-strwidth: New file.
59349
59350         * tests/uniwidth/test-u16-strwidth.c: New file.
59351         * modules/uniwidth/u16-strwidth-tests: New file.
59352
59353         * lib/uniwidth/u16-strwidth.c: New file.
59354         * modules/uniwidth/u16-strwidth: New file.
59355
59356         * tests/uniwidth/test-u8-strwidth.c: New file.
59357         * modules/uniwidth/u8-strwidth-tests: New file.
59358
59359         * lib/uniwidth/u8-strwidth.c: New file.
59360         * modules/uniwidth/u8-strwidth: New file.
59361
59362         * tests/uniwidth/test-u32-width.c: New file.
59363         * modules/uniwidth/u32-width-tests: New file.
59364
59365         * lib/uniwidth/u32-width.c: New file.
59366         * modules/uniwidth/u32-width: New file.
59367
59368         * tests/uniwidth/test-u16-width.c: New file.
59369         * modules/uniwidth/u16-width-tests: New file.
59370
59371         * lib/uniwidth/u16-width.c: New file.
59372         * modules/uniwidth/u16-width: New file.
59373
59374         * tests/uniwidth/test-u8-width.c: New file.
59375         * modules/uniwidth/u8-width-tests: New file.
59376
59377         * lib/uniwidth/u8-width.c: New file.
59378         * modules/uniwidth/u8-width: New file.
59379
59380         * tests/uniwidth/test-uc_width.c: New file.
59381         * modules/uniwidth/width-tests: New file.
59382
59383         * lib/uniwidth/width.c: New file, from GNU libiconv.
59384         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59385         * modules/uniwidth/width: New file.
59386
59387         * lib/uniwidth.h: New file, from GNU libiconv.
59388         * modules/uniwidth/base: New file.
59389
59390 2007-07-07  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/uniname.h: New file, from GNU gettext.
59393         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59394         * lib/uniname/uninames.h: New file, from GNU gettext.
59395         * lib/uniname/uniname.c: New file, from GNU gettext.
59396         * tests/uniname/test-uninames.sh: New file.
59397         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59398         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59399         * modules/uniname/base: New file.
59400         * modules/uniname/uniname: New file.
59401         * modules/uniname/uniname-tests: New file.
59402         * MODULES.html.sh (Unicode string functions): Add the new modules.
59403
59404 2007-07-06  Bruno Haible  <bruno@clisp.org>
59405
59406         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59407
59408 2007-07-06  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59411         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59412         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59413         include <sys/time.h>.
59414         Reported by Eric Blake.
59415
59416 2007-07-06  Eric Blake  <ebb9@byu.net>
59417
59418         Fix testing canonicalize on cygwin.
59419         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59420         Revert patch from 2007-06-19.
59421         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59422         canonicalize module is also in use.
59423         * tests/test-canonicalize.c: New file.
59424         * tests/test-canonicalize.sh: Likewise.
59425         * modules/canonicalize-tests: Likewise.
59426
59427 2007-07-06  Jim Meyering  <jim@meyering.net>
59428
59429         * lib/getugroups.c (getugroups): Detect getgrent failure.
59430         Adjust comment to reflect reality: this function may return -1.
59431
59432 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59433
59434         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59435         the new TP address.
59436         (usage): Fix typo
59437         (gnulib_mk): New variable.
59438
59439 2007-07-05  Jim Meyering  <jim@meyering.net>
59440
59441         Don't let endgrent clobber errno, no matter how improbable.
59442         * lib/getugroups.c (getugroups): Save and restore errno around
59443         endgrent call.
59444
59445         Close the group DB even when failing with 2^31 or more members.
59446         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59447
59448 2007-07-04  Jim Meyering  <jim@meyering.net>
59449
59450         * lib/getugroups.h: New file.
59451         * lib/getugroups.c: Include "getugroups.h".
59452         Remove uses of "register" keyword.
59453         Move local variable, "cp", down into scope where used.
59454         Give "username" parameter the "const" attribute.
59455         * modules/getugroups (Files): Add lib/getugroups.h
59456
59457 2007-07-04  Karl Berry  <karl@gnu.org>
59458
59459         * MODULES.html.sh (func_all_modules): Complete rename of
59460         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59461
59462 2007-07-02  Bruno Haible  <bruno@clisp.org>
59463
59464         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59465         mode, when inttypes.h comes from gnulib.
59466         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59467
59468 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59469
59470         * NEWS: Mention lgpl module name change.
59471
59472         * modules/lgpl-2.1: Renamed from lgpl.
59473
59474         * NEWS: Mention gpl module name change.
59475
59476         * modules/gpl-3.0: New file, based on gpl-2.0.
59477
59478         * modules/gpl-2.0: Renamed from gpl.
59479
59480         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59481         doc/gpl-2.0.texi.
59482
59483 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59486         #define __STDC_LIMIT_MACROS temporarily while including
59487         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59488         Problem reported by Joel E. Denny in
59489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59490
59491 2007-07-01  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/unistdio.h: New file.
59494         * lib/unistdio/u-asnprintf.h: New file.
59495         * lib/unistdio/u-asprintf.h: New file.
59496         * lib/unistdio/u-printf-args.c: New file.
59497         * lib/unistdio/u-printf-args.h: New file.
59498         * lib/unistdio/u-printf-parse.h: New file.
59499         * lib/unistdio/u-snprintf.h: New file.
59500         * lib/unistdio/u-sprintf.h: New file.
59501         * lib/unistdio/u-vasprintf.h: New file.
59502         * lib/unistdio/u-vsnprintf.h: New file.
59503         * lib/unistdio/u-vsprintf.h: New file.
59504         * lib/unistdio/ulc-asnprintf.c: New file.
59505         * lib/unistdio/ulc-asprintf.c: New file.
59506         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59507         * lib/unistdio/ulc-printf-parse.c: New file.
59508         * lib/unistdio/ulc-snprintf.c: New file.
59509         * lib/unistdio/ulc-sprintf.c: New file.
59510         * lib/unistdio/ulc-vasnprintf.c: New file.
59511         * lib/unistdio/ulc-vasprintf.c: New file.
59512         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59513         * lib/unistdio/ulc-vsnprintf.c: New file.
59514         * lib/unistdio/ulc-vsprintf.c: New file.
59515         * lib/unistdio/u8-asnprintf.c: New file.
59516         * lib/unistdio/u8-asprintf.c: New file.
59517         * lib/unistdio/u8-printf-parse.c: New file.
59518         * lib/unistdio/u8-snprintf.c: New file.
59519         * lib/unistdio/u8-sprintf.c: New file.
59520         * lib/unistdio/u8-vasnprintf.c: New file.
59521         * lib/unistdio/u8-vasprintf.c: New file.
59522         * lib/unistdio/u8-vsnprintf.c: New file.
59523         * lib/unistdio/u8-vsprintf.c: New file.
59524         * lib/unistdio/u8-u8-asnprintf.c: New file.
59525         * lib/unistdio/u8-u8-asprintf.c: New file.
59526         * lib/unistdio/u8-u8-snprintf.c: New file.
59527         * lib/unistdio/u8-u8-sprintf.c: New file.
59528         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59529         * lib/unistdio/u8-u8-vasprintf.c: New file.
59530         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59531         * lib/unistdio/u8-u8-vsprintf.c: New file.
59532         * lib/unistdio/u16-asnprintf.c: New file.
59533         * lib/unistdio/u16-asprintf.c: New file.
59534         * lib/unistdio/u16-printf-parse.c: New file.
59535         * lib/unistdio/u16-snprintf.c: New file.
59536         * lib/unistdio/u16-sprintf.c: New file.
59537         * lib/unistdio/u16-vasnprintf.c: New file.
59538         * lib/unistdio/u16-vasprintf.c: New file.
59539         * lib/unistdio/u16-vsnprintf.c: New file.
59540         * lib/unistdio/u16-vsprintf.c: New file.
59541         * lib/unistdio/u16-u16-asnprintf.c: New file.
59542         * lib/unistdio/u16-u16-asprintf.c: New file.
59543         * lib/unistdio/u16-u16-snprintf.c: New file.
59544         * lib/unistdio/u16-u16-sprintf.c: New file.
59545         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59546         * lib/unistdio/u16-u16-vasprintf.c: New file.
59547         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59548         * lib/unistdio/u16-u16-vsprintf.c: New file.
59549         * lib/unistdio/u32-asnprintf.c: New file.
59550         * lib/unistdio/u32-asprintf.c: New file.
59551         * lib/unistdio/u32-printf-parse.c: New file.
59552         * lib/unistdio/u32-snprintf.c: New file.
59553         * lib/unistdio/u32-sprintf.c: New file.
59554         * lib/unistdio/u32-vasnprintf.c: New file.
59555         * lib/unistdio/u32-vasprintf.c: New file.
59556         * lib/unistdio/u32-vsnprintf.c: New file.
59557         * lib/unistdio/u32-vsprintf.c: New file.
59558         * lib/unistdio/u32-u32-asnprintf.c: New file.
59559         * lib/unistdio/u32-u32-asprintf.c: New file.
59560         * lib/unistdio/u32-u32-snprintf.c: New file.
59561         * lib/unistdio/u32-u32-sprintf.c: New file.
59562         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59563         * lib/unistdio/u32-u32-vasprintf.c: New file.
59564         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59565         * lib/unistdio/u32-u32-vsprintf.c: New file.
59566         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59567         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59568         * tests/unistdio/test-ulc-printf1.h: New file.
59569         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59570         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59571         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59572         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59573         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59574         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59575         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59576         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59577         * tests/unistdio/test-u8-asnprintf1.c: New file.
59578         * tests/unistdio/test-u8-asnprintf1.h: New file.
59579         * tests/unistdio/test-u8-printf1.h: New file.
59580         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59581         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59582         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59583         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59584         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59585         * tests/unistdio/test-u8-vasprintf1.c: New file.
59586         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59587         * tests/unistdio/test-u8-vsprintf1.c: New file.
59588         * tests/unistdio/test-u16-asnprintf1.c: New file.
59589         * tests/unistdio/test-u16-asnprintf1.h: New file.
59590         * tests/unistdio/test-u16-printf1.h: New file.
59591         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59592         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59593         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59594         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59595         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59596         * tests/unistdio/test-u16-vasprintf1.c: New file.
59597         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59598         * tests/unistdio/test-u16-vsprintf1.c: New file.
59599         * tests/unistdio/test-u32-asnprintf1.c: New file.
59600         * tests/unistdio/test-u32-asnprintf1.h: New file.
59601         * tests/unistdio/test-u32-printf1.h: New file.
59602         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59603         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59604         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59605         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59606         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59607         * tests/unistdio/test-u32-vasprintf1.c: New file.
59608         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59609         * tests/unistdio/test-u32-vsprintf1.c: New file.
59610         * modules/unistdio/base: New file.
59611         * modules/unistdio/u-printf-args: New file.
59612         * modules/unistdio/ulc-asnprintf: New file.
59613         * modules/unistdio/ulc-asprintf: New file.
59614         * modules/unistdio/ulc-fprintf: New file.
59615         * modules/unistdio/ulc-printf-parse: New file.
59616         * modules/unistdio/ulc-snprintf: New file.
59617         * modules/unistdio/ulc-sprintf: New file.
59618         * modules/unistdio/ulc-vasnprintf: New file.
59619         * modules/unistdio/ulc-vasprintf: New file.
59620         * modules/unistdio/ulc-vfprintf: New file.
59621         * modules/unistdio/ulc-vsnprintf: New file.
59622         * modules/unistdio/ulc-vsprintf: New file.
59623         * modules/unistdio/u8-asnprintf: New file.
59624         * modules/unistdio/u8-asprintf: New file.
59625         * modules/unistdio/u8-printf-parse: New file.
59626         * modules/unistdio/u8-snprintf: New file.
59627         * modules/unistdio/u8-sprintf: New file.
59628         * modules/unistdio/u8-vasnprintf: New file.
59629         * modules/unistdio/u8-vasprintf: New file.
59630         * modules/unistdio/u8-vsnprintf: New file.
59631         * modules/unistdio/u8-vsprintf: New file.
59632         * modules/unistdio/u8-u8-asnprintf: New file.
59633         * modules/unistdio/u8-u8-asprintf: New file.
59634         * modules/unistdio/u8-u8-snprintf: New file.
59635         * modules/unistdio/u8-u8-sprintf: New file.
59636         * modules/unistdio/u8-u8-vasnprintf: New file.
59637         * modules/unistdio/u8-u8-vasprintf: New file.
59638         * modules/unistdio/u8-u8-vsnprintf: New file.
59639         * modules/unistdio/u8-u8-vsprintf: New file.
59640         * modules/unistdio/u16-asnprintf: New file.
59641         * modules/unistdio/u16-asprintf: New file.
59642         * modules/unistdio/u16-printf-parse: New file.
59643         * modules/unistdio/u16-snprintf: New file.
59644         * modules/unistdio/u16-sprintf: New file.
59645         * modules/unistdio/u16-vasnprintf: New file.
59646         * modules/unistdio/u16-vasprintf: New file.
59647         * modules/unistdio/u16-vsnprintf: New file.
59648         * modules/unistdio/u16-vsprintf: New file.
59649         * modules/unistdio/u16-u16-asnprintf: New file.
59650         * modules/unistdio/u16-u16-asprintf: New file.
59651         * modules/unistdio/u16-u16-snprintf: New file.
59652         * modules/unistdio/u16-u16-sprintf: New file.
59653         * modules/unistdio/u16-u16-vasnprintf: New file.
59654         * modules/unistdio/u16-u16-vasprintf: New file.
59655         * modules/unistdio/u16-u16-vsnprintf: New file.
59656         * modules/unistdio/u16-u16-vsprintf: New file.
59657         * modules/unistdio/u32-asnprintf: New file.
59658         * modules/unistdio/u32-asprintf: New file.
59659         * modules/unistdio/u32-printf-parse: New file.
59660         * modules/unistdio/u32-snprintf: New file.
59661         * modules/unistdio/u32-sprintf: New file.
59662         * modules/unistdio/u32-vasnprintf: New file.
59663         * modules/unistdio/u32-vasprintf: New file.
59664         * modules/unistdio/u32-vsnprintf: New file.
59665         * modules/unistdio/u32-vsprintf: New file.
59666         * modules/unistdio/u32-u32-asnprintf: New file.
59667         * modules/unistdio/u32-u32-asprintf: New file.
59668         * modules/unistdio/u32-u32-snprintf: New file.
59669         * modules/unistdio/u32-u32-sprintf: New file.
59670         * modules/unistdio/u32-u32-vasnprintf: New file.
59671         * modules/unistdio/u32-u32-vasprintf: New file.
59672         * modules/unistdio/u32-u32-vsnprintf: New file.
59673         * modules/unistdio/u32-u32-vsprintf: New file.
59674         * modules/unistdio/ulc-asnprintf-tests: New file.
59675         * modules/unistdio/ulc-vasnprintf-tests: New file.
59676         * modules/unistdio/ulc-vasprintf-tests: New file.
59677         * modules/unistdio/ulc-vsnprintf-tests: New file.
59678         * modules/unistdio/ulc-vsprintf-tests: New file.
59679         * modules/unistdio/u8-asnprintf-tests: New file.
59680         * modules/unistdio/u8-vasnprintf-tests: New file.
59681         * modules/unistdio/u8-vasprintf-tests: New file.
59682         * modules/unistdio/u8-vsnprintf-tests: New file.
59683         * modules/unistdio/u8-vsprintf-tests: New file.
59684         * modules/unistdio/u16-asnprintf-tests: New file.
59685         * modules/unistdio/u16-vasnprintf-tests: New file.
59686         * modules/unistdio/u16-vasprintf-tests: New file.
59687         * modules/unistdio/u16-vsnprintf-tests: New file.
59688         * modules/unistdio/u16-vsprintf-tests: New file.
59689         * modules/unistdio/u32-asnprintf-tests: New file.
59690         * modules/unistdio/u32-vasnprintf-tests: New file.
59691         * modules/unistdio/u32-vasprintf-tests: New file.
59692         * modules/unistdio/u32-vsnprintf-tests: New file.
59693         * modules/unistdio/u32-vsprintf-tests: New file.
59694         * MODULES.html.sh (Unicode string functions): Add the new modules.
59695
59696 2007-07-01  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/sprintf.c (sprintf): Limit the available length estimation,
59699         to avoid address wraparound.
59700         * lib/vsprintf.c (vsprintf): Likewise.
59701         * modules/sprintf-posix (Dependencies): Add stdint.
59702         * modules/vsprintf-posix (Dependencies): Likewise.
59703
59704 2007-07-01  Bruno Haible  <bruno@clisp.org>
59705
59706         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59707         Windows PATH as well. Conservative double-quoting. Comments.
59708
59709 2007-07-01  Bruno Haible  <bruno@clisp.org>
59710             Eric Blake  <ebb9@byu.net>
59711             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59712
59713         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59714         empty components in $PATH, denoting '.'.
59715
59716 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59717
59718         * gnulib-tool: Fix indentation.
59719         (func_create_megatestdir): Likewise.
59720         Report by Bruno Haible.
59721
59722 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59723
59724         Sync from Automake.
59725         * build-aux/gnupload: Fix shell portability issues with for loops.
59726         Report by Karl Berry.
59727
59728 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59729
59730         * build-aux/maint.mk (POURL): Use translationproject.org.
59731
59732 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59733             Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59736         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59737         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59738         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59739         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59740
59741 2007-06-27  Bruno Haible  <bruno@clisp.org>
59742
59743         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59744         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59745
59746 2007-06-26  Karl Berry  <karl@gnu.org>
59747
59748         * MODULES.html.sh: remove xreadlink-with-size.
59749
59750 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59751
59752         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59753         method that I hope also handles the double-include problem noted
59754         by Bruno Haible in
59755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59756
59757 2007-06-23  Bruno Haible  <bruno@clisp.org>
59758
59759         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59760         Don't let the 'mostlyclean' target fail if the last subdirectory could
59761         not be removed.
59762         Reported by Karl Berry.
59763
59764 2007-06-23  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool (echo): Add a speedier workaround for ksh.
59767         * tests/test-echo.sh: Likewise.
59768
59769 2007-06-23  Bruno Haible  <bruno@clisp.org>
59770
59771         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59772         * tests/test-echo.sh: Likewise.
59773
59774 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59775
59776         * gnulib-tool (IFS): Initialize early, so we don't set it to
59777         empty later.
59778         (self_abspathname): Rewrite algorithm to set it, reindent.
59779         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59780         (func_create_megatestdir): Merge some sed scripts.
59781
59782 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59785         exposed by Sun Studio 11 cc on Solaris 8.
59786
59787 2007-06-22  Bruno Haible  <bruno@clisp.org>
59788
59789         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59790         backslashes.
59791         * tests/test-echo.sh: New file.
59792
59793 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59794
59795         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59796         simplify `sed_replace_build_aux' scripts, they are portable but
59797         echoing them with `echo' is not.
59798         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59799
59800 2007-06-21  Karl Berry  <karl@gnu.org>
59801
59802         * config/srclist.txt: guess we can't handle the licenses via
59803         srclist at the moment.
59804
59805 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * MODULES.html.sh: Add include_next.
59808         * modules/include_next: New file.
59809
59810 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59813         INCLUDE_NEXT.
59814         (gl_CHECK_NEXT_HEADERS): New macro.
59815         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59816         the obsolescent gl_ABSOLUTE_HEADER.
59817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59818         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59819         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59820         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59821         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59822         * m4/math_h.m4 (gl_MATH_H): Likewise.
59823         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59825         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59826         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59827         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59828         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59829         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59830         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59831         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59833         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59834         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59835         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59836         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59837         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59838         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59839         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59840         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59841         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59842         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59843         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59844         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59845         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59846         * lib/float_.h: Likewise.
59847         * lib/inttypes_.h: Likewise.
59848         * lib/math_.h: Likewise.
59849         * lib/search_.h: Likewise.
59850         * lib/signal_.h: Likewise.
59851         * lib/stdint_.h: Likewise.
59852         * lib/stdio_.h: Likewise.
59853         * lib/stdlib_.h: Likewise.
59854         * lib/string_.h: Likewise.
59855         * lib/sys_stat_.h: Likewise.
59856         * lib/sys_time_.h: Likewise.
59857         * lib/time_.h: Likewise.
59858         * lib/unistd_.h: Likewise.
59859         * lib/wchar_.h: Likewise.
59860         * lib/wctype_.h: Likewise.
59861         * lib/dirent_.h: Likewise.
59862         * lib/iconv_.h: Likewise.
59863         * lib/locale_.h: Likewise.
59864         * lib/netinet_in_.h: Likewise.
59865         * lib/sys_select_.h: Likewise.
59866         * lib/sys_socket_.h: Likewise.
59867         * lib/sysexits_.h: Likewise.
59868         * modules/fcntl (Depends-on): Depend on include_next, not
59869         absolute_header.
59870         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59871         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59872         * modules/fchdir: Likewise.
59873         * modules/float: Likewise.
59874         * modules/iconv_open: Likewise.
59875         * modules/inttypes: Likewise.
59876         * modules/locale: Likewise.
59877         * modules/math: Likewise.
59878         * modules/netinet_in: Likewise.
59879         * modules/search: Likewise.
59880         * modules/signal: Likewise.
59881         * modules/stdint: Likewise.
59882         * modules/stdio: Likewise.
59883         * modules/stdlib: Likewise.
59884         * modules/string: Likewise.
59885         * modules/sys_select: Likewise.
59886         * modules/sys_socket: Likewise.
59887         * modules/sys_stat: Likewise.
59888         * modules/sys_time: Likewise.
59889         * modules/sysexits: Likewise.
59890         * modules/time: Likewise.
59891         * modules/unistd: Likewise.
59892         * modules/wchar: Likewise.
59893         * modules/wctype: Likewise.
59894         * modules/sys_stat: Change maintainer to "all".
59895         * modules/unistd: Likewise.
59896
59897 2007-06-20  Karl Berry  <karl@gnu.org>
59898
59899         * config/srclist.txt: track www changes in license files.
59900
59901 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59902
59903         * build-aux/bootstrap: Remove stray dot.
59904         Make sure build_aux settings are honored when linking
59905         gnulib_extra_files.
59906
59907 2007-06-19  Eric Blake  <ebb9@byu.net>
59908
59909         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59910         Allow compilation on cygwin.
59911
59912 2007-06-19  Jim Meyering  <jim@meyering.net>
59913
59914         xreadlink-with-size: Remove module.  No longer used.
59915         Ex-callers now use xreadlink or mreadlink-with-size.
59916         * modules/xreadlink-with-size: Remove module.
59917         * lib/xreadlink-with-size.c: Remove file.
59918         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59919         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59920         just before the function definition *is* accurate.
59921
59922         Eliminate one way canonicalize_filename_mode could exit.
59923         * lib/canonicalize.c (canonicalize_filename_mode):
59924         Use mreadlink_with_size, not xreadlink_with_size.
59925
59926 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         Detect porting problems to FreeBSD/arm, which has time_t wider than
59929         long int.  Original problem reported for GNU diff by Xin Li in
59930         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59931         * modules/getdate (Depends-on): Add intprops, verify.
59932         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59933         is an integer type no wider than long int.
59934
59935 2007-06-18  Jim Meyering  <jim@meyering.net>
59936
59937         New module: mreadlink-with-size.
59938         * MODULES.html.sh: Add mreadlink-with-size.
59939         * modules/mreadlink-with-size: New module
59940         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59941         not xreadlink-with-size.
59942         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59943
59944 2007-06-16  Bruno Haible  <bruno@clisp.org>
59945
59946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59947         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59948         Reported by Gary V. Vaughan <gary@gnu.org>.
59949
59950 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         Revamp lchown so that it lives in unistd.h where it belongs.
59953         * lib/lchown.h: Remove.
59954         * lib/dirchownmod.c: Don't include lib/lchown.h.
59955         * lib/fchownat.c: Likewise.
59956         * lib/openat.c: Likewise.
59957         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59958         does not follow symlinks.
59959         (EOPNOTSUPP): Define if not defined.
59960         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59961         is defined to 0.
59962         (lchown): New decl.
59963         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59964         Do not check for lchown decl.
59965         Set REPLACE_LCHOWN.
59966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59967         REPLACE_LCHOWN.
59968         * modules/chown: Make it clear it follows symlinks.
59969         * modules/lchown: Make it clear it doesn't follow symlinks.
59970         (Files): Remove lib/lchown.h
59971         (Depends-on): Add unistd.
59972         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59973         (Include): Include <unistd.h>, not "lchown.h".
59974         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59975         REPLACE_LCHOWN.
59976
59977 2007-06-15  Jim Meyering  <jim@meyering.net>
59978
59979         Change license (GPL to LGPL) of fsusage and dependents.
59980         * modules/fsusage (License): Change to LGPL.
59981         * modules/full-read (License): Likewise.
59982         * modules/full-write (License): Likewise.
59983         * modules/safe-read (License): Likewise.
59984         * modules/safe-write (License): Likewise.
59985
59986 2007-06-14  Ben Pfaff  <blp@gnu.org>
59987
59988         Missing part of allocsa -> malloca transition.
59989         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59990         gl_MALLOCA.
59991
59992 2007-06-12  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59995         to ia64, x86_64, i386.
59996         Reported by Eric Blake.
59997
59998 2007-06-12  Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60001         cross-compiling to x86_64.
60002
60003 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60006         glitch reported by Ralf Wildenhues in
60007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60008
60009         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60010         Vin Shelton.
60011
60012 2007-06-11  Bruno Haible  <bruno@clisp.org>
60013
60014         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60015         replacement string.
60016         Reported by Eric Blake.
60017
60018 2007-06-10  Bruno Haible  <bruno@clisp.org>
60019
60020         Prepare vasnprintf code for use with Unicode strings.
60021         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60022         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60023         TYPE_U32_STRING.
60024         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60025         a_u32_string variants.
60026         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60027         * lib/printf-args.c: Don't include config.h and the specification
60028         header if PRINTF_FETCHARGS is already defined.
60029         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60030         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60031         TYPE_U16_STRING, TYPE_U32_STRING.
60032         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60033         u16_directive, u16_directives, u32_directive, u32_directives): New
60034         types.
60035         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60036         New declarations.
60037         * lib/printf-parse.c: Don't include config.h and the specification
60038         header if PRINTF_PARSE is already defined. Eliminate the set of
60039         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60040         them now. Include c-ctype.h.
60041         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60042         directive and CHAR_T_ONLY_ASCII.
60043         * lib/vasnprintf.c: Don't include config.h and the specification header
60044         if VASNPRINTF is already defined.
60045         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60046         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60047         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60048         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60049         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60050         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60051         code accordingly.
60052         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60053         pad_ourselves also in this case, with the 'c' and 's' directives, and
60054         with a different notion of "width".
60055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60056
60057 2007-06-10  Bruno Haible  <bruno@clisp.org>
60058
60059         * modules/unistr/u32-mbsnlen: New file.
60060         * lib/unistr/u32-mbsnlen.c: New file.
60061
60062         * modules/unistr/u16-mbsnlen: New file.
60063         * lib/unistr/u16-mbsnlen.c: New file.
60064
60065         * modules/unistr/u8-mbsnlen: New file.
60066         * lib/unistr/u8-mbsnlen.c: New file.
60067
60068         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60069         declarations.
60070
60071 2007-06-10  Bruno Haible  <bruno@clisp.org>
60072
60073         * lib/string_.h (mbsnlen): New declaration.
60074         * lib/mbsnlen.c: New file.
60075         * m4/mbsnlen.m4: New file.
60076         * modules/mbsnlen: New file.
60077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60078         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60079         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60080
60081 2007-06-10  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60084
60085 2007-06-10  Bruno Haible  <bruno@clisp.org>
60086
60087         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60088         * lib/mbuiter.h: Likewise.
60089
60090 2007-06-10  Bruno Haible  <bruno@clisp.org>
60091
60092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60093         declaration.
60094
60095 2007-06-10  Karl Berry  <karl@gnu.org>
60096
60097         * config/srclist.txt: remove gettext entries, Bruno prefers
60098         to update individually.
60099
60100 2007-06-10  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60103         'maxlen'. Ensure only length + width bytes are allocated, not
60104         length + 1 + width.
60105
60106 2007-06-09  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60109         (CHAR_T): Remove macro.
60110         (VASNPRINTF): Update.
60111
60112 2007-06-09  Bruno Haible  <bruno@clisp.org>
60113
60114         * MODULES.html.sh (Unicode string functions): Add the new modules.
60115
60116         * modules/uniconv/u32-conv-to-enc: New file.
60117         * lib/uniconv/u32-conv-to-enc.c: New file.
60118         * modules/uniconv/u32-conv-to-enc-tests: New file.
60119         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60120
60121         * modules/uniconv/u16-conv-to-enc: New file.
60122         * lib/uniconv/u16-conv-to-enc.c: New file.
60123         * lib/uniconv/u-conv-to-enc.h: New file.
60124         * modules/uniconv/u16-conv-to-enc-tests: New file.
60125         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60126
60127         * modules/uniconv/u8-conv-to-enc: New file.
60128         * lib/uniconv/u8-conv-to-enc.c: New file.
60129         * modules/uniconv/u8-conv-to-enc-tests: New file.
60130         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60131
60132         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60133         u32_conv_to_encoding): New declarations.
60134
60135 2007-06-09  Bruno Haible  <bruno@clisp.org>
60136
60137         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60138
60139 2007-06-09  Bruno Haible  <bruno@clisp.org>
60140
60141         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60142         * modules/malloca: Renamed from modules/allocsa, updated.
60143         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60144         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60145         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60146         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60147         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60148         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60149         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60150         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60151         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60152         * modules/c-strcasestr (Depends-on): Update.
60153         * lib/c-strcasestr.c: Update.
60154         * modules/c-strstr (Depends-on): Update.
60155         * lib/c-strstr.c: Update.
60156         * modules/canonicalize-lgpl (Depends-on): Update.
60157         * lib/canonicalize-lgpl.c: Update.
60158         * modules/clean-temp (Depends-on): Update.
60159         * lib/clean-temp.c: Update.
60160         * modules/csharpcomp (Depends-on): Update.
60161         * lib/csharpcomp.c: Update.
60162         * modules/csharpexec (Depends-on): Update.
60163         * lib/csharpexec.c: Update.
60164         * modules/javacomp (Depends-on): Update.
60165         * lib/javacomp.c: Update.
60166         * modules/javaexec (Depends-on): Update.
60167         * lib/javaexec.c: Update.
60168         * modules/mbscasestr (Depends-on): Update.
60169         * lib/mbscasestr.c: Update.
60170         * modules/mbsstr (Depends-on): Update.
60171         * lib/mbsstr.c: Update.
60172         * modules/setenv (Depends-on): Update.
60173         * lib/setenv.c: Update.
60174         * modules/strcasestr (Depends-on): Update.
60175         * lib/strcasestr.c: Update.
60176         * modules/striconveha (Depends-on): Update.
60177         * lib/striconveha.c: Update.
60178         * modules/relocatable-prog-wrapper (Files): Update.
60179         * lib/relocwrapper.c: Update.
60180         * build-aux/install-reloc: Update.
60181         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60182
60183 2007-06-08  Bruno Haible  <bruno@clisp.org>
60184
60185         Port to uClibc.
60186         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60187         * lib/fpurge.c (fpurge): Likewise.
60188         * lib/freading.c (freading): Likewise.
60189         * lib/fseeko.c (rpl_fseeko): Likewise.
60190         * lib/fseterr.c (fseterr): Likewise.
60191         * lib/fwriting.c (fwriting): Likewise.
60192         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60193
60194 2007-06-08  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60197         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60198         * modules/gettext (Files): Add m4/intlmacosx.m4.
60199
60200 2007-06-07  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/localename-tests: New file.
60203         * tests/test-localename.c: New file.
60204
60205         New module 'localename'.
60206         * lib/localename.h: New file.
60207         * lib/localename.c: New file, from GNU gettext.
60208         * m4/localename.m4: New file.
60209         * modules/localename: New file.
60210
60211 2007-06-07  Bruno Haible  <bruno@clisp.org>
60212
60213         Work around the lack of <wchar.h> on some builds of uClibc.
60214         * doc/headers/wchar.texi: Update.
60215         * lib/wchar_.h: Include <wchar.h> only if it exists.
60216         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60217         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60218         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60219         doesn't exist.
60220         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60221         * modules/mbfile (Depends-on): Add wchar.
60222         * modules/mbiter (Depends-on): Likewise.
60223         * modules/mbuiter (Depends-on): Likewise.
60224         Reported by Simon Josefsson.
60225
60226 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         Work around problem reported by Steven M. Schweda in
60229         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60230         Tru64 5.1B with the Compaq compiler environment installed declares
60231         an 'isblank' function but does not define it in the C library.
60232         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60233         * lib/regex_internal.h (isblank): Likewise.
60234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60235         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60236
60237 2007-06-05  Bruno Haible  <bruno@clisp.org>
60238
60239         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60240         ia64.
60241         * modules/printf-safe: New file.
60242         * modules/fprintf-posix (Depends-on): Add printf-safe.
60243         * modules/printf-posix (Depends-on): Likewise.
60244         * modules/snprintf-posix (Depends-on): Likewise.
60245         * modules/sprintf-posix (Depends-on): Likewise.
60246         * modules/vasnprintf-posix (Depends-on): Likewise.
60247         * modules/vasprintf-posix (Depends-on): Likewise.
60248         * modules/vfprintf-posix (Depends-on): Likewise.
60249         * modules/vprintf-posix (Depends-on): Likewise.
60250         * modules/vsnprintf-posix (Depends-on): Likewise.
60251         * modules/vsprintf-posix (Depends-on): Likewise.
60252         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60253         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60254         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60255         "no" on i386, x86_64, ia64.
60256         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60257         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60258         on i386, x86_64, ia64.
60259         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60260         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60261         on i386, x86_64, ia64.
60262         * tests/test-vasnprintf-posix.c: Include float.h.
60263         (LDBL80_WORDS): New macro.
60264         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60265         on i386, x86_64, ia64.
60266         * tests/test-vasprintf-posix.c: Include float.h.
60267         (LDBL80_WORDS): New macro.
60268         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60269         on i386, x86_64, ia64.
60270         * tests/test-snprintf-posix.c: Include float.h.
60271         * tests/test-sprintf-posix.c: Likewise.
60272         * tests/test-vsnprintf-posix.c: Likewise.
60273         * tests/test-vsprintf-posix.c: Likewise.
60274
60275 2007-06-05  Bruno Haible  <bruno@clisp.org>
60276
60277         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60278         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60279         non-IEEE numbers on i386, x86_64, ia64.
60280         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60281         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60282         * tests/test-isnanl.h: Include float.h.
60283         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60284
60285 2007-06-05  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60288         also the %a / %A. Handle the %a / %A code before this extra handling.
60289
60290 2007-06-05  Bruno Haible  <bruno@clisp.org>
60291
60292         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60293         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60294
60295 2007-06-05  Bruno Haible  <bruno@clisp.org>
60296
60297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60298         typo in variable name.
60299
60300 2007-06-05  Eric Blake  <ebb9@byu.net>
60301
60302         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60303         Reported by Simon Josefsson.
60304
60305 2007-06-04  Bruno Haible  <bruno@clisp.org>
60306
60307         Avoid test failures on some PowerPC platforms.
60308         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60309         Define differently for PowerPC.
60310         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60311         Reported by Gary V. Vaughan <gary@gnu.org>.
60312
60313 2007-06-02  Bruno Haible  <bruno@clisp.org>
60314
60315         Fix test-stdint failure on FreeBSD/ia64.
60316         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60317         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60318         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60319         * doc/headers/stdint.texi: Update.
60320
60321 2007-06-01  Bruno Haible  <bruno@clisp.org>
60322
60323         * tests/test-binary-io.c (main): Pass a third argument to open().
60324         Reported by Gary V. Vaughan <gary@gnu.org>.
60325
60326 2007-06-01  Bruno Haible  <bruno@clisp.org>
60327
60328         * doc/functions/frexpl.texi: Update for mingw.
60329
60330 2007-06-01  Bruno Haible  <bruno@clisp.org>
60331
60332         * tests/test-lseek.c (main): Disable test of errno for invalid third
60333         argument.
60334         * doc/functions/lseek.texi: Update.
60335         Reported by Gary V. Vaughan <gary@gnu.org>.
60336
60337 2007-05-28  Bruno Haible  <bruno@clisp.org>
60338
60339         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60340
60341 2007-05-31  Eric Blake  <ebb9@byu.net>
60342
60343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60344         cross compiling.
60345
60346 2007-05-30  Eric Blake  <ebb9@byu.net>
60347         and Bruno Haible  <bruno@clisp.org>
60348
60349         Work around mingw test failures exposed by m4-1.4.9b.
60350         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60351         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60352         moment.
60353
60354 2007-05-30  Bruno Haible  <bruno@clisp.org>
60355
60356         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60357         assuming that they are closed. Needed on HP-UX 11.
60358
60359 2007-05-29  Bruno Haible  <bruno@clisp.org>
60360
60361         Fix a problem with #include_next.
60362         * lib/dirent_.h: Split the double-inclusion guard.
60363         * lib/fcntl_.h: Likewise.
60364         * lib/float_.h: Likewise.
60365         * lib/iconv_.h: Likewise.
60366         * lib/inttypes_.h: Likewise.
60367         * lib/locale_.h: Likewise.
60368         * lib/math_.h: Likewise.
60369         * lib/netinet_in_.h: Likewise.
60370         * lib/search_.h: Likewise.
60371         * lib/signal_.h: Likewise.
60372         * lib/stdint_.h: Likewise.
60373         * lib/stdio_.h: Likewise.
60374         * lib/stdlib_.h: Likewise.
60375         * lib/string_.h: Likewise.
60376         * lib/sys_select_.h: Likewise.
60377         * lib/sys_socket_.h: Likewise.
60378         * lib/sys_stat_.h: Likewise.
60379         * lib/sys_time_.h: Likewise.
60380         * lib/sysexits_.h: Likewise.
60381         * lib/time_.h: Likewise.
60382         * lib/unistd_.h: Likewise.
60383         * lib/wchar_.h: Likewise.
60384         * lib/wctype_.h: Likewise.
60385
60386 2007-05-29  Bruno Haible  <bruno@clisp.org>
60387
60388         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60389         for the moment.
60390
60391 2007-05-29  Bruno Haible  <bruno@clisp.org>
60392
60393         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60394         invocation.
60395         Reported by Eric Blake.
60396
60397 2007-05-29  Bruno Haible  <bruno@clisp.org>
60398
60399         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60400         compiling case.
60401
60402 2007-05-29  Eric Blake  <ebb9@byu.net>
60403             Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60406         cross compiles.
60407
60408 2007-05-28  Eric Blake  <ebb9@byu.net>
60409
60410         * modules/closein-tests (test_closein_LDADD): Support test on
60411         cygwin with libtool.
60412
60413 2007-05-28  Bruno Haible  <bruno@clisp.org>
60414
60415         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60416         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60417         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60418         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60419         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60420         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60421         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60422         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60423         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60424
60425 2007-05-28  Eric Blake  <ebb9@byu.net>
60426
60427         Unconditionally include <config.h> in unit tests.
60428         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60429         * tests/test-allocsa.c, tests/test-arcfour.c,
60430         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60431         tests/test-array_list.c, tests/test-array_oset.c,
60432         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60433         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60434         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60435         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60436         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60437         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60438         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60439         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60440         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60441         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60442         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60443         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60444         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60445         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60446         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60447         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60448         test-md5.c, test-memmem.c, test-printf-posix.c,
60449         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60450         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60451         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60452         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60453         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60454         test-vasnprintf-posix2.c, test-vasnprintf.c,
60455         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60456         test-vfprintf-posix.c, test-vprintf-posix.c,
60457         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60458         test-xvasprintf.c: Likewise.
60459
60460 2007-05-28  Bruno Haible  <bruno@clisp.org>
60461
60462         * gnulib-tool (func_import): Remember the --with-tests command-line
60463         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60464         Reported by Eric Blake.
60465
60466 2007-05-28  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/ftell-tests: New file.
60469         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60470         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60471
60472         * lib/ftell.c: New file.
60473         * modules/ftell: New file.
60474         * m4/ftell.m4: New file.
60475         * doc/functions/ftell.texi: Update.
60476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60477         REPLACE_FTELL.
60478         * lib/stdio_.h (rpl_ftell): New declaration.
60479         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60480         REPLACE_FTELL.
60481
60482 2007-05-28  Eric Blake  <ebb9@byu.net>
60483
60484         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60485
60486 2007-05-28  Bruno Haible  <bruno@clisp.org>
60487
60488         * modules/fseek-tests: New file.
60489         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60490         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60491
60492         * lib/fseek.c: New file.
60493         * modules/fseek: New file.
60494         * m4/fseek.m4: New file.
60495         * doc/functions/fseek.texi: Update.
60496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60497         REPLACE_FSEEK.
60498         * lib/stdio_.h (rpl_fseek): New declaration.
60499         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60500         REPLACE_FSEEK.
60501
60502 2007-05-28  Bruno Haible  <bruno@clisp.org>
60503
60504         * lib/stdio_.h (fflush): More comments.
60505
60506 2007-05-28  Bruno Haible  <bruno@clisp.org>
60507
60508         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60509         runtime test.
60510
60511 2007-05-28  Eric Blake  <ebb9@byu.net>
60512
60513         Improve lseek module.
60514         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60515         * lib/unistd_.h (lseek): Scale back link warning message.
60516         * tests/test-lseek.c: Beef up test.
60517         * tests/test-lseek.sh: Exercise more facets of lseek.
60518         Reported by Bruno Haible.
60519
60520 2007-05-28  Bruno Haible  <bruno@clisp.org>
60521
60522         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60523         to define.
60524
60525 2007-05-27  Bruno Haible  <bruno@clisp.org>
60526
60527         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60528
60529 2007-05-27  Bruno Haible  <bruno@clisp.org>
60530
60531         * modules/openmp: New file.
60532         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60533         Noah Misch.
60534
60535 2007-05-26  Bruno Haible  <bruno@clisp.org>
60536
60537         * modules/chdir-long (Depends-on): Add fchdir.
60538         * modules/chdir-safer (Depends-on): Likewise.
60539         * modules/fts (Depends-on): Likewise.
60540         * modules/fts-lgpl (Depends-on): Likewise.
60541         * modules/openat (Depends-on): Likewise.
60542         * modules/savewd (Depends-on): Likewise.
60543
60544 2007-05-24  Eric Blake  <ebb9@byu.net>
60545
60546         Fix lseek on mingw.
60547         * modules/lseek: New module.
60548         * m4/lseek.m4: New file.
60549         * lib/lseek.c: New file.
60550         * modules/lseek-tests: New file.
60551         * tests/test-lseek.c: New file.
60552         * tests/test-lseek.sh: New file.
60553         * MODULES.html.sh: Document lseek module.
60554         * modules/fflush (Depends-on): Add lseek, fseeko.
60555         * modules/fseeko (Depends-on): Likewise.
60556         * modules/ftello (Depends-on): Likewise.
60557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60558         broken.
60559         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60560         broken.
60561         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60562         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60563         * lib/ftello.c (rpl_ftello): Likewise.
60564         * tests/test-fseeko.c (main): Test this.
60565         * tests/test-fseeko.sh: Likewise.
60566         * tests/test-ftello.c (main): Likewise.
60567         * tests/test-ftello.sh: Likewise.
60568         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60569         implies replacing fseek.
60570         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60571         HAVE_FTELLO.
60572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60573         * modules/unistd (Makefile.am): Likewise.
60574         * lib/unistd_.h (lseek): Declare a replacement.
60575         * doc/functions/lseek.texi (lseek): Document this fix.
60576         * doc/functions/fseek.texi (fseek): Likewise.
60577         * doc/functions/ftell.texi (ftell): Likewise.
60578
60579 2007-05-24  Bruno Haible  <bruno@clisp.org>
60580
60581         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60582         in the printed representation of a NaN.
60583         * tests/test-vasprintf-posix.c (test_function): Likewise.
60584         * tests/test-snprintf-posix.h (test_function): Likewise.
60585         * tests/test-sprintf-posix.h (test_function): Likewise.
60586         Reported by Eric Blake.
60587
60588 2007-05-23  Eric Blake  <ebb9@byu.net>
60589
60590         Fix fseeko/ftello on cygwin 1.5.24.
60591         * doc/functions/fseeko.texi (fseeko): Document the fix.
60592         * doc/functions/ftello.texi (ftello): Document the fix.
60593         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60594         * doc/functions/stdout.text (stdout): New file.
60595         * doc/functions/stderr.text (stderr): New file.
60596         * doc/gnulib.texi (Function Substitutes): Use new files.
60597         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60598         prior to 1.7.0.
60599         * tests/test-ftello.c (main): Likewise for ftello.
60600         * tests/test-fseeko.sh: New file.
60601         * tests/test-ftello.sh: New file.
60602         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60603         with seekable stdin.
60604         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60606         (gl_REPLACE_FSEEKO): New macro.
60607         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60608         * modules/fseeko (Files): Distribute fseeko.c.
60609         * modules/ftello (Files): Distribute ftello.c.
60610         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60611         mode.
60612         * lib/ftello.c (rpl_ftello): New file.
60613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60614         fseeko, ftello.
60615         (gl_STDIN_LARGE_OFFSET): New macro.
60616         * modules/stdio (Makefile.am): Perform the replacement.
60617         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60618
60619 2007-05-23  Bruno Haible  <bruno@clisp.org>
60620
60621         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60622         GNULIB_POSIXCHECK is defined.
60623
60624 2007-05-21  Bruno Haible  <bruno@clisp.org>
60625
60626         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60627         Check also the output for NaN arguments. When cross-compiling, guess
60628         no on IRIX.
60629         * lib/vasnprintf.c: Update comments.
60630         * tests/test-vasnprintf-posix.c (strisnan): New function.
60631         (test_function): Use it.
60632         * tests/test-vasprintf-posix.c (strisnan): New function.
60633         (test_function): Use it.
60634         * tests/test-snprintf-posix.h (strisnan): New function.
60635         (test_function): Use it.
60636         * tests/test-sprintf-posix.h (strisnan): New function.
60637         (test_function): Use it.
60638         Reported by Eric Blake.
60639
60640 2007-05-20  Bruno Haible  <bruno@clisp.org>
60641
60642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60643         numbers that fails on BeOS.
60644         * doc/functions/frexpl.texi: Update.
60645
60646 2007-05-20  Jim Meyering  <jim@meyering.net>
60647
60648         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60649         forced upon us by glibc-2.6.
60650
60651 2007-05-20  Bruno Haible  <bruno@clisp.org>
60652
60653         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60654         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60655         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60656         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60657         NEED_PRINTF_INFINITE.
60658         (is_infinitel): New function.
60659         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60661         gl_PREREQ_VASNPRINTF_INFINITE.
60662         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60664         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60665         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60666         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60667         gl_PREREQ_VASNPRINTF_INFINITE.
60668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60669         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60670         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60671         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60672         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60674         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60675         * doc/functions/fprintf.texi: Update.
60676         * doc/functions/printf.texi: Update.
60677         * doc/functions/snprintf.texi: Update.
60678         * doc/functions/sprintf.texi: Update.
60679         * doc/functions/vfprintf.texi: Update.
60680         * doc/functions/vprintf.texi: Update.
60681         * doc/functions/vsnprintf.texi: Update.
60682         * doc/functions/vsprintf.texi: Update.
60683
60684 2007-05-20  Bruno Haible  <bruno@clisp.org>
60685
60686         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60687         was not found in libc.
60688         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60689
60690 2007-05-20  Bruno Haible  <bruno@clisp.org>
60691
60692         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60693         printed as "-nan" instead of "nan".
60694         * tests/test-vasprintf-posix.c (test_function): Likewise.
60695         * tests/test-snprintf-posix.h (test_function): Likewise.
60696         * tests/test-sprintf-posix.h (test_function): Likewise.
60697         Needed for HP-UX 11.
60698
60699 2007-05-20  Jim Meyering  <jim@meyering.net>
60700
60701         Fix buggy test for the fchownat-deref bug.
60702         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60703         symlink required for the run-test.  Without it, this test would
60704         always declare that fchownat doesn't work, and client code would
60705         unnecessarily use the replacement function with fixed libc.
60706         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60707         Reported by Greg Schafer.
60708
60709 2007-05-19  Bruno Haible  <bruno@clisp.org>
60710
60711         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60712         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60713         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60714         Needed for IRIX 6.5 and Solaris 2.5.1.
60715
60716 2007-05-19  Bruno Haible  <bruno@clisp.org>
60717
60718         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60719         (test_function): Skip tests involving -0.0 on platforms where
60720         -0.0 = 0.0.
60721         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60722         (test_function): Skip tests involving -0.0 on platforms where
60723         -0.0 = 0.0.
60724         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60725         (test_function): Skip tests involving -0.0 on platforms where
60726         -0.0 = 0.0.
60727         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60728         (test_function): Skip tests involving -0.0 on platforms where
60729         -0.0 = 0.0.
60730         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60731         tests.
60732         * tests/test-printf-posix.h (test_function): Likewise.
60733         * tests/test-printf-posix.output: Remove all -0.0 related results.
60734         Needed for IRIX 6.5.
60735
60736 2007-05-19  Bruno Haible  <bruno@clisp.org>
60737
60738         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60739         printed as "nan0x7fffffff" instead of "nan".
60740         * tests/test-vasprintf-posix.c (test_function): Likewise.
60741         * tests/test-snprintf-posix.h (test_function): Likewise.
60742         * tests/test-sprintf-posix.h (test_function): Likewise.
60743         * tests/test-fprintf-posix.h (NaN): Remove macro.
60744         (test_function): Remove all NaN related tests.
60745         * tests/test-printf-posix.h (NaN): Remove macro.
60746         (test_function): Remove all NaN related tests.
60747         * tests/test-printf-posix.output: Remove all NaN related results.
60748         Needed for IRIX 6.5.
60749
60750 2007-05-19  Bruno Haible  <bruno@clisp.org>
60751
60752         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60754
60755 2007-05-19  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/float_.h: New file.
60758         * m4/float_h.m4: New file.
60759         * modules/float: New file.
60760         * modules/isnanl (Dependencies): Add float.
60761         * modules/isnanl-nolibm (Dependencies): Likewise.
60762         * modules/mathl (Dependencies): Likewise.
60763         * modules/printf-frexpl (Dependencies): Likewise.
60764         * modules/signbit (Dependencies): Likewise.
60765         * modules/vasnprintf (Dependencies): Likewise.
60766         * doc/headers/float.texi: Update.
60767
60768 2007-05-19  Jim Meyering  <jim@meyering.net>
60769
60770         * lib/utimens.c (gl_futimens): Rename from futimens,
60771         now that glibc-2.6 declares futimens.
60772         * lib/utimens.h: Likewise.
60773
60774 2007-05-19  Bruno Haible  <bruno@clisp.org>
60775
60776         Avoid test failures on mingw.
60777         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60778         * tests/test-printf-posix.sh: Likewise.
60779         * tests/test-vfprintf-posix.sh: Likewise.
60780         * tests/test-vprintf-posix.sh: Likewise.
60781
60782 2007-05-19  Bruno Haible  <bruno@clisp.org>
60783
60784         Fix *printf result for NaN, Inf, -0.0 on mingw.
60785         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60786         * lib/vasnprintf.c: Include math.h and isnan.h.
60787         (is_infinite_or_zero): New function.
60788         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60789         values in the %f, %F, %e, %E, %g, %G directives.
60790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60791         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60792         gl_PRINTF_INFINITE and test its result. Invoke
60793         gl_PREREQ_VASNPRINTF_INFINITE.
60794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60795         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60796         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60797         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60798         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60800         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60801         * doc/functions/fprintf.texi: Update.
60802         * doc/functions/printf.texi: Update.
60803         * doc/functions/snprintf.texi: Update.
60804         * doc/functions/sprintf.texi: Update.
60805         * doc/functions/vfprintf.texi: Update.
60806         * doc/functions/vprintf.texi: Update.
60807         * doc/functions/vsnprintf.texi: Update.
60808         * doc/functions/vsprintf.texi: Update.
60809
60810 2007-05-19  Bruno Haible  <bruno@clisp.org>
60811
60812         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60813         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60814         Instead of multiplying with 10^k, set extra_zeroes to k.
60815         (scale10_round_long_double): Remove function.
60816
60817 2007-05-18  Bruno Haible  <bruno@clisp.org>
60818
60819         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60820         introduced on 2007-05-06.
60821
60822 2007-05-18  Bruno Haible  <bruno@clisp.org>
60823
60824         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60825         %g directives.
60826         * tests/test-vasprintf-posix.c (test_function): Likewise.
60827         * tests/test-snprintf-posix.h (test_function): Likewise.
60828         * tests/test-sprintf-posix.h (test_function): Likewise.
60829
60830 2007-05-18  Bruno Haible  <bruno@clisp.org>
60831
60832         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60833         (strmatch): New function.
60834         (test_function): Test the %f directive on numbers of various exponents.
60835         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60836         (strmatch): New function.
60837         (test_function): Test the %f directive on numbers of various exponents.
60838         * tests/test-snprintf-posix.h (strmatch): New function.
60839         (test_function): Test the %f directive on numbers of various exponents.
60840         * tests/test-sprintf-posix.h (strmatch): New function.
60841         (test_function): Test the %f directive on numbers of various exponents.
60842         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60843         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60844         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60845         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60846
60847 2007-05-18  Bruno Haible  <bruno@clisp.org>
60848
60849         Add support for 'long double' number output.
60850         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60851         * lib/vasnprintf.c: Include math.h and float+.h.
60852         (mp_limb_t): New type.
60853         (GMP_LIMB_BITS): New macro.
60854         (mp_twolimb_t): New type.
60855         (GMP_TWOLIMB_BITS): New macro.
60856         (mpn_t): New type.
60857         (multiply, divide, convert_to_decimal, decode_long_double,
60858         scale10_round_long_double, scale10_round_decimal_long_double,
60859         floorlog10l): New functions.
60860         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60861         for the %f, %F, %e, %E, %g, %G directives.
60862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60864         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60865         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60873         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60874         * modules/snprintf-posix (Depends-on): Likewise.
60875         * modules/sprintf-posix (Depends-on): Likewise.
60876         * modules/vasnprintf-posix (Depends-on): Likewise.
60877         * modules/vasprintf-posix (Depends-on): Likewise.
60878         * modules/vfprintf-posix (Depends-on): Likewise.
60879         * modules/vsnprintf-posix (Depends-on): Likewise.
60880         * modules/vsprintf-posix (Depends-on): Likewise.
60881         * modules/vasnprintf (Files): Add lib/float+.h.
60882         * doc/functions/fprintf.texi: Update.
60883         * doc/functions/printf.texi: Update.
60884         * doc/functions/snprintf.texi: Update.
60885         * doc/functions/sprintf.texi: Update.
60886         * doc/functions/vfprintf.texi: Update.
60887         * doc/functions/vprintf.texi: Update.
60888         * doc/functions/vsnprintf.texi: Update.
60889         * doc/functions/vsprintf.texi: Update.
60890
60891 2007-05-18  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60894
60895 2007-05-18  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60898         for printing 64-bit integers. Needed for mingw.
60899
60900 2007-05-18  Bruno Haible  <bruno@clisp.org>
60901
60902         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60903         gl_FUNC_FREXPL_WORKS.
60904         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60905
60906 2007-05-18  Bruno Haible  <bruno@clisp.org>
60907
60908         * modules/frexpl-nolibm-tests: New file.
60909
60910         * modules/frexpl-nolibm: New file.
60911         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60912
60913 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60916         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60917         GCC 4.2, which otherwise issues a lot of warnings.
60918         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60919         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60920         Likewise.
60921         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60922         * modules/iconv_open (iconv.h): Likewise.
60923         * modules/locale (locale.h): Likewise.
60924         * modules/netinet_in (netinet/in.h): Likewise.
60925         * modules/sys_select (sys_select.h): Likewise.
60926         * modules/sys_socket (sys/socket.h): Likewise.
60927         * modules/sys_stat (sys/stat.h): Likewise.
60928         * modules/sysexits (sysexits.h): Likewise.
60929         * modules/unistd (unistd.h): Likewise.
60930
60931 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60932
60933         * modules/closein-tests (Makefile.am): Distribute
60934         `test-closein.sh'.
60935
60936 2007-05-17  Bruno Haible  <bruno@clisp.org>
60937
60938         * tests/test-printf-posix.output: Renamed from
60939         tests/test-fprintf-posix.out.
60940         * modules/fprintf-posix-tests: Update.
60941         * modules/printf-posix-tests: Update.
60942         * modules/vfprintf-posix-tests: Update.
60943         * modules/vprintf-posix-tests: Update.
60944         * tests/test-fprintf-posix.sh: Update.
60945         * tests/test-printf-posix.sh: Update.
60946         * tests/test-vfprintf-posix.sh: Update.
60947         * tests/test-vprintf-posix.sh: Update.
60948         Reported by Ralf Wildenhues.
60949
60950 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60953         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60954         GCC 4.2, which otherwise issues a lot of warnings.
60955         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60956         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60957         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60958         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60959         it should no longer be needed.
60960         * lib/string_.h: Likewise.
60961         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60962         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60963         * modules/inttypes (inttypes.h): Likewise.
60964         * modules/math (math.h): Likewise.
60965         * modules/search (search.h): Likewise.
60966         * modules/signal (signal.h): Likewise.
60967         * modules/stdint (stdint.h): Likewise.
60968         * modules/stdio (stdio.h): Likewise.
60969         * modules/stdlib (stdlib.h): Likewise.
60970         * modules/string (string.h): Likewise.
60971         * modules/sys_time (sys/time.h): Likewise.
60972         * modules/time (time.h): Likewise.
60973         * modules/wchar (wchar.h): Likewise.
60974         * modules/wctype (wtype.h): Likewise.
60975
60976 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60977
60978         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60979
60980 2007-05-13  Bruno Haible  <bruno@clisp.org>
60981
60982         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60983         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60984         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60985         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60986         (gl_PREREQ_STRTOK_R): Don't require it here.
60987
60988 2007-05-13  Bruno Haible  <bruno@clisp.org>
60989
60990         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60991         when used in C++ mode.
60992
60993 2007-05-12  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/linebuffer.h: Tweak doc.
60996         * lib/linebuffer.c: Likewise.
60997
60998 2007-05-12  James Youngman  <jay@gnu.org>
60999
61000         * lib/linebuffer.c (readlinebuffer_delim): New function,
61001         like readlinebuffer, but use a caller-specified delimiter.
61002         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61003         as the delimiter.
61004         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61005
61006 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61007
61008         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61009         * modules/openat (Files): Remove openat-die.c.
61010         (Depends-on): Add openat-die.
61011         * modules/openat-die: New module.
61012
61013 2007-05-06  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61016         Update with info about Cygwin.
61017         * doc/functions/fprintf.texi: Update.
61018         * doc/functions/printf.texi: Update.
61019         * doc/functions/snprintf.texi: Update.
61020         * doc/functions/sprintf.texi: Update.
61021         * doc/functions/vfprintf.texi: Update.
61022         * doc/functions/vprintf.texi: Update.
61023         * doc/functions/vsnprintf.texi: Update.
61024         * doc/functions/vsprintf.texi: Update.
61025         Reported by Eric Blake.
61026
61027 2007-05-06  Bruno Haible  <bruno@clisp.org>
61028
61029         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61030         padding ourselves for the floating-point directives.
61031         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61034         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61035         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61038         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61039         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61040         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61043         * tests/test-snprintf-posix.h (test_function): Also check the width
61044         and some flags in the %f directive.
61045         * tests/test-sprintf-posix.h (test_function): Likewise.
61046         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61047         * tests/test-vasprintf-posix.c (test_function): Likewise.
61048         * doc/functions/fprintf.texi: Update.
61049         * doc/functions/printf.texi: Update.
61050         * doc/functions/snprintf.texi: Update.
61051         * doc/functions/sprintf.texi: Update.
61052         * doc/functions/vfprintf.texi: Update.
61053         * doc/functions/vprintf.texi: Update.
61054         * doc/functions/vsnprintf.texi: Update.
61055         * doc/functions/vsprintf.texi: Update.
61056
61057 2007-05-06  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61060         pass the ' flag character to sprintf or snprintf.
61061         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61064         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61065         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61073         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61074         flag.
61075         * tests/test-sprintf-posix.h (test_function): Likewise.
61076         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61077         * tests/test-vasprintf-posix.c (test_function): Likewise.
61078         * doc/functions/fprintf.texi: Update.
61079         * doc/functions/printf.texi: Update.
61080         * doc/functions/snprintf.texi: Update.
61081         * doc/functions/sprintf.texi: Update.
61082         * doc/functions/vfprintf.texi: Update.
61083         * doc/functions/vprintf.texi: Update.
61084         * doc/functions/vsnprintf.texi: Update.
61085         * doc/functions/vsprintf.texi: Update.
61086
61087 2007-05-01  Bruno Haible  <bruno@clisp.org>
61088
61089         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61090
61091 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61094         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61095
61096 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61099         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61101
61102 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61103
61104         * lib/argp-help.c (struct hol_entry): New member `ord'.
61105         (HOL_ENTRY_PTRCMP): Use ord for comparison
61106         (hol_sort): Initialize ord.
61107
61108 2007-05-01  Bruno Haible  <bruno@clisp.org>
61109
61110         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61111         Reported by Eric Blake.
61112         * doc/gnulib.texi (Function Substitutes): Update.
61113
61114 2007-05-01  Bruno Haible  <bruno@clisp.org>
61115
61116         * doc/functions.texi: Remove file, now redundant through
61117         doc/functions/*.texi.
61118
61119 2007-05-01  Bruno Haible  <bruno@clisp.org>
61120
61121         * modules/argp (Depends-on): Add sleep.
61122
61123 2007-05-01  Bruno Haible  <bruno@clisp.org>
61124
61125         * modules/sleep-tests: New file.
61126         * tests/test-sleep.c: New file.
61127
61128         * modules/sleep: New file.
61129         * lib/sleep.c: New file.
61130         * m4/sleep.m4: New file.
61131         * lib/unistd_.h (sleep): New declaration.
61132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61133         HAVE_SLEEP.
61134         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61135         * doc/functions/sleep.texi: Document the sleep module.
61136
61137 2007-05-01  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/sigprocmask.h: Remove file.
61140         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61141         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61142         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61143         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61144         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61145         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61146         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61147         HAVE_SIGSET_T as a shell variable.
61148         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61149         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61150         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61151         (Depends-on): Add signal. Remove verify.
61152         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61153         (Include): Mention <signal.h> instead of sigprocmask.h.
61154         * NEWS: Mention the change.
61155         * lib/fatal-signal.c: Don't include sigprocmask.h.
61156
61157 2007-05-01  Bruno Haible  <bruno@clisp.org>
61158
61159         * modules/signal: New file.
61160         * lib/signal_.h: New file.
61161         * m4/signal_h.m4: New file.
61162
61163 2007-05-01  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61166         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61167         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61168         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61169
61170 2007-05-01  Bruno Haible  <bruno@clisp.org>
61171
61172         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61173         configure time.
61174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61175         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61176         * modules/sys_stat (Makefile.am): Substitute their values into
61177         sys/stat.h.
61178
61179 2007-05-01  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61182         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61183         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61184
61185 2007-05-01  Bruno Haible  <bruno@clisp.org>
61186
61187         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61188         'assert' module here.
61189
61190 2007-05-01  Bruno Haible  <bruno@clisp.org>
61191
61192         * doc/functions/*.texi: New files.
61193         * doc/functions/google-ranking.txt: New file.
61194         * doc/gnulib.texi (Function Substitutes): New chapter.
61195         (ctime, inet_ntoa): Remove sections.
61196         * doc/ctime.texi: Remove file.
61197         * doc/inet_ntoa.texi: Remove file.
61198         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61199         dependencies.
61200         (%.info): New rule, specifying a --reference-limit.
61201
61202 2007-05-01  Bruno Haible  <bruno@clisp.org>
61203
61204         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61205
61206 2007-05-01  Bruno Haible  <bruno@clisp.org>
61207
61208         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61209         the portability of 'mkdir' to mingw systems.
61210
61211 2007-05-01  Bruno Haible  <bruno@clisp.org>
61212
61213         * doc/headers/google-ranking.txt: New file.
61214
61215 2007-04-30  Eric Blake  <ebb9@byu.net>
61216
61217         Prefer fseeko to fseek.
61218         * modules/getpass (Depends-on): Add fseeko.
61219         * lib/getpass.c (getpass): Use fseeko, not fseek.
61220
61221 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61222
61223         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61224         assumes the sorting is stable, while most qsort implementations
61225         are not.  Use argument addresses to ensure they never compare as
61226         equal.
61227
61228         * tests/test-argp-2.sh (usage-indent test): Fix output
61229         (func_compare): Restore diff options
61230         * tests/test-argp.c: Restore #include "progname.h"
61231
61232 2007-04-29  Bruno Haible  <bruno@clisp.org>
61233
61234         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61236         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61238         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61239         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61240         (TESTS, check_PROGRAMS): Add test-snprintf.
61241         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61242         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61243         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61244         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61245         assertions that fail on HP-UX, OSF/1, or IRIX.
61246         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61247
61248 2007-04-29  Bruno Haible  <bruno@clisp.org>
61249
61250         * MODULES.html.sh (posix_functions): Remove 'contents'.
61251
61252 2007-04-29  Karl Berry  <karl@gnu.org>
61253
61254         * config/srclist.txt (gendocs_template_min): new entry.
61255
61256 2007-04-29  Bruno Haible  <bruno@clisp.org>
61257
61258         Work around fpurge bug on BSD systems.
61259         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61260         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61261         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61262         fpurge to rpl_fpurge if the system already has this function.
61263         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61264         the case where the system already has this function. Correct invariants
61265         on BSD systems.
61266         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61267         BSD systems.
61268
61269 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61270
61271         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61272         proposed by Sven Verdoolaege.
61273
61274         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61275         options.
61276         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61277         (usage and help tests): Update
61278
61279 2007-04-29  Bruno Haible  <bruno@clisp.org>
61280
61281         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61282         Print more information in case of failure. Disable a test on BeOS.
61283
61284 2007-04-29  Bruno Haible  <bruno@clisp.org>
61285
61286         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61287         This helps debugging on systems on which no gdb is available.
61288
61289 2007-04-29  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/freading.h: Improve comments.
61292         * lib/fwriting.h: Likewise.
61293         * tests/test-freading.c (main): Don't check freading immediately after
61294         repositioning. Needed for glibc.
61295
61296 2007-04-29  Bruno Haible  <bruno@clisp.org>
61297
61298         * lib/freading.c (freading): Trivial simplification.
61299
61300 2007-04-28  Bruno Haible  <bruno@clisp.org>
61301
61302         * tests/test-fwriting.c (main): Also test the interaction between
61303         fflush and fwriting.
61304         * modules/fwriting-tests (Depends-on): Add fflush.
61305
61306         * tests/test-freading.c (main): Also test the interaction between
61307         fflush and freading.
61308         * modules/freading-tests (Depends-on): Add fflush.
61309
61310 2007-04-28  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61313         fseeko and ftello.
61314         Suggested by Eric Blake.
61315
61316 2007-04-28  Jim Meyering  <jim@meyering.net>
61317
61318         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61319         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61320         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61321
61322 2007-04-27  Eric Blake  <ebb9@byu.net>
61323
61324         * doc/headers/assert.texi (assert.h): Document assert module use.
61325
61326 2007-04-27  Bruno Haible  <bruno@clisp.org>
61327
61328         * doc/headers/*.texi: New files.
61329         * doc/gnulib.texi (Header File Substitutes): New chapter.
61330         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61331         dependencies.
61332         (standards.info ,standards.html, standards.dvi): Update dependencies.
61333         (mostlyclean, clean): New targets.
61334
61335 2007-04-27  Bruno Haible  <bruno@clisp.org>
61336
61337         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61338         * modules/sysexits (Files, Makefile.am): Update.
61339
61340         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61341         * modules/sys_socket (Files, Makefile.am): Update.
61342
61343         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61344         * modules/sys_stat (Files, Makefile.am): Update.
61345
61346 2007-04-27  Eric Blake  <ebb9@byu.net>
61347
61348         * lib/freading.h: Improve comments.
61349         * lib/fwriting.h: Likewise.
61350         * lib/fflush.c: Likewise.
61351
61352         Fix closein for mingw.
61353         * modules/closein-tests: Add tests for closein.
61354         * tests/test-closein.c: New file.
61355         * tests/test-closein.sh: Likewise.
61356         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61357         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61358
61359 2007-04-27  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61362         version is < 6.
61363         * lib/math_.h [__DECC]: Likewise.
61364         * lib/stdio_.h [__DECC]: Likewise.
61365         * lib/stdlib_.h [__DECC]: Likewise.
61366         * lib/string_.h [__DECC]: Likewise.
61367         * lib/time_.h [__DECC]: Likewise.
61368         * lib/wchar_.h [__DECC]: Likewise.
61369         * lib/wctype_.h [__DECC]: Likewise.
61370
61371 2007-04-27  Bruno Haible  <bruno@clisp.org>
61372
61373         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61374
61375 2007-04-27  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/fflush.c: Add comments.
61378         * modules/fpurge-tests (Depends-on): Add fflush.
61379         * modules/freadable-tests (Depends-on): Likewise.
61380         * modules/fwritable-tests (Depends-on): Likewise.
61381
61382 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61383
61384         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61385         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61386         Report by Bruno Haible <bruno@clisp.org>.
61387
61388 2007-04-26  Eric Blake  <ebb9@byu.net>
61389
61390         Fix fflush on mingw.
61391         * modules/fflush (Depends-on): Add freading.
61392         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61393         but unread data.
61394
61395 2007-04-26  Eric Blake  <ebb9@byu.net>
61396         and Bruno Haible  <bruno@clisp.org>
61397
61398         Implement freading and fwriting.
61399         * lib/freading.c: New file.
61400         * lib/freading.h: Likewise.
61401         * m4/freading.m4: Likewise.
61402         * modules/freading: Likewise.
61403         * modules/freading-tests: Likewise.
61404         * tests/test-freading.c: Likewise.
61405         * lib/fwriting.c: New file.
61406         * lib/fwriting.h: Likewise.
61407         * m4/fwriting.m4: Likewise.
61408         * modules/fwriting: Likewise.
61409         * modules/fwriting-tests: Likewise.
61410         * tests/test-fwriting.c: Likewise.
61411         * MODULES.html.sh (File stream based Input/Output): Mention them.
61412
61413 2007-04-26  Bruno Haible  <bruno@clisp.org>
61414
61415         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61416         'long' when we assume it.
61417         Suggested by Eric Blake.
61418
61419 2007-04-26  Bruno Haible  <bruno@clisp.org>
61420
61421         Ensure fseeko, ftello are declared on glibc systems.
61422         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61423         * modules/fseeko (configure.ac-early): Likewise.
61424         * modules/ftello (configure.ac-early): Likewise.
61425         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61426         AC_FUNC_FSEEKO for this.
61427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61428         (gl_CHECK_FSEEKO): Remove macro.
61429
61430 2007-04-26  Bruno Haible  <bruno@clisp.org>
61431
61432         * tests/test-fflush.c (main): Also check the ftell result after
61433         fflush and fseek/fseeko.
61434         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61435         file descriptor position cache in the stream.
61436         * lib/fseeko.c (rpl_fseeko): Likewise.
61437
61438 2007-04-26  Bruno Haible  <bruno@clisp.org>
61439
61440         * modules/fflush-tests (Depends-on): Add fseeko.
61441
61442 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61443             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61444
61445         * lib/argz_.h: ensure error_t definition is obtained in same
61446         mechanism system argz.h would have.
61447         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61448         argz facilities are known bad.  Err on the side of caution if
61449         cross-compiling.
61450
61451 2007-04-25  Eric Blake  <ebb9@byu.net>
61452
61453         * lib/fpurge.c (includes): Use stdlib.h for free.
61454         * tests/test-fflush.c (main): Also test fflush-fseeko.
61455
61456 2007-04-25  Bruno Haible  <bruno@clisp.org>
61457
61458         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61459         * lib/fseeko.c: New file.
61460         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61461         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61462         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61463         gl_FUNC_FSEEKO.
61464         (gl_FUNC_FSEEKO): Invoke it.
61465         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61466         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61467         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61468
61469 2007-04-25  Bruno Haible  <bruno@clisp.org>
61470
61471         * modules/fflush (Depends-on): Add ftello.
61472
61473 2007-04-25  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/ftello-tests: New file.
61476         * tests/test-ftello.c: New file.
61477
61478         * modules/ftello: New file.
61479         * m4/ftello.m4: New file.
61480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61481         HAVE_FTELLO.
61482         * lib/stdio_.h (ftello): New declaration.
61483         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61484         HAVE_FTELLO.
61485
61486 2007-04-25  Bruno Haible  <bruno@clisp.org>
61487
61488         * modules/fseeko-tests: New file.
61489         * tests/test-fseeko.c: New file.
61490
61491         * modules/fseeko: New file.
61492         * m4/fseeko.m4: New file.
61493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61494         HAVE_FSEEKO.
61495         * lib/stdio_.h (fseeko): New declaration.
61496         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61497         HAVE_FSEEKO.
61498
61499 2007-04-25  Bruno Haible  <bruno@clisp.org>
61500
61501         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61502
61503 2007-04-25  Bruno Haible  <bruno@clisp.org>
61504
61505         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61506         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61507         * tests/test-unistd.c: Likewise.
61508         * tests/test-fcntl.c: Likewise.
61509
61510 2007-04-23  Eric Blake  <ebb9@byu.net>
61511
61512         * lib/fflush.c: Fix missing include.
61513         Reported by Bruno Haible.
61514
61515 2007-04-23  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61518         Reported by Eric Blake.
61519
61520 2007-04-23  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61523
61524 2007-04-23  Bruno Haible  <bruno@clisp.org>
61525
61526         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61527
61528 2007-04-23  Bruno Haible  <bruno@clisp.org>
61529
61530         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61531         Needed on HP-UX 11.
61532
61533 2007-04-16  Eric Blake  <ebb9@byu.net>
61534
61535         Make fflush rely on fpurge.
61536         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61537         open coding all variants.
61538         * modules/fflush (Depends-on): Add fpurge and unistd.
61539         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61540         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61541
61542         Fix --with-tests compilation on cygwin.
61543         * modules/argmatch-tests (Makefile.am): List gnulib library first
61544         in LDADD.
61545         * modules/argp-tests (Makefile.am): Likewise.
61546         * modules/array-list-tests (Makefile.am): Likewise.
61547         * modules/array-oset-tests (Makefile.am): Likewise.
61548         * modules/avltree-list-tests (Makefile.am): Likewise.
61549         * modules/avltree-oset-tests (Makefile.am): Likewise.
61550         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61551         * modules/carray-list-tests (Makefile.am): Likewise.
61552         * modules/dirname-tests (Makefile.am): Likewise.
61553         * modules/frexp-tests (Makefile.am): Likewise.
61554         * modules/isnanl-tests (Makefile.am): Likewise.
61555         * modules/linked-list-tests (Makefile.am): Likewise.
61556         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61557         * modules/lock-tests (Makefile.am): Likewise.
61558         * modules/rbtree-list-tests (Makefile.am): Likewise.
61559         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61560         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61561         * modules/tls-tests (Makefile.am): Likewise.
61562         * modules/tsearch-tests (Makefile.am): Likewise.
61563         * modules/xvasprintf-tests (Makefile.am): Likewise.
61564
61565         Fix fpurge for cygwin.
61566         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61567         value.
61568         * modules/fpurge-tests (Depends-on): Clean up trash.
61569
61570 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61571
61572         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61573
61574         * m4/autobuild.m4: Re-indent.
61575
61576 2007-04-13  Bruno Haible  <bruno@clisp.org>
61577
61578         * modules/fpurge-tests: New file.
61579         * tests/test-fpurge.c: New file.
61580
61581         * modules/fpurge: New file.
61582         * lib/fpurge.h: New file.
61583         * lib/fpurge.c: New file.
61584         * m4/fpurge.m4: New file.
61585
61586 2007-04-13  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/fbufmode-tests: New file.
61589         * tests/test-fbufmode.c: New file.
61590
61591         * modules/fbufmode: New file.
61592         * lib/fbufmode.h: New file.
61593         * lib/fbufmode.c: New file.
61594         * m4/fbufmode.m4: New file.
61595
61596 2007-04-13  Bruno Haible  <bruno@clisp.org>
61597
61598         * modules/fwritable-tests: New file.
61599         * tests/test-fwritable.c: New file.
61600
61601         * modules/fwritable: New file.
61602         * lib/fwritable.h: New file.
61603         * lib/fwritable.c: New file.
61604         * m4/fwritable.m4: New file.
61605
61606 2007-04-13  Bruno Haible  <bruno@clisp.org>
61607
61608         * modules/freadable-tests: New file.
61609         * tests/test-freadable.c: New file.
61610
61611         * modules/freadable: New file.
61612         * lib/freadable.h: New file.
61613         * lib/freadable.c: New file.
61614         * m4/freadable.m4: New file.
61615
61616 2007-04-13  Bruno Haible  <bruno@clisp.org>
61617
61618         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61619         MOSTLYCLEANFILES.
61620
61621 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61624         gzip bootstrap.conf to avoid dragging in i18n machinery.
61625         (gnulib_tool_option): Use it.
61626
61627 2007-04-13  Bruno Haible  <bruno@clisp.org>
61628
61629         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61630         %F directives.
61631         * tests/test-vasprintf-posix.c (test_function): Likewise.
61632         * tests/test-snprintf-posix.h (test_function): Likewise.
61633         * tests/test-sprintf-posix.h (test_function): Likewise.
61634         * tests/test-fprintf-posix.h (test_function): Likewise.
61635         * tests/test-printf-posix.h (test_function): Likewise.
61636         * tests/test-fprintf-posix.out: Likewise.
61637
61638 2007-04-13  Bruno Haible  <bruno@clisp.org>
61639
61640         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61641         * modules/tls-tests (configure.ac): Likewise.
61642         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61643
61644 2007-04-13  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/tls.c (glthread_tls_get): Fix return type.
61647         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61648
61649 2007-04-12  Eric Blake  <ebb9@byu.net>
61650
61651         * modules/gettime (Depends-on): Remove gettime.
61652         Reported by Dmitry V. Levin.
61653
61654 2007-04-12  Bruno Haible  <bruno@clisp.org>
61655
61656         * modules/fflush (Include): Mention <stdio.h>.
61657         * modules/strtoimax (Include): Mention <inttypes.h>.
61658         * modules/strtoumax (Include): Likewise.
61659
61660 2007-04-12  Eric Blake  <ebb9@byu.net>
61661
61662         * .cvsignore: New file.
61663         * .gitignore: Likewise.
61664
61665 2007-04-12  Bruno Haible  <bruno@clisp.org>
61666
61667         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61668         not before, since $(LDADD) often contains libgnu.a.
61669         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61670         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61671         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61672         Needed on Cygwin.
61673
61674 2007-04-12  Eric Blake  <ebb9@byu.net>
61675
61676         Work around glibc's failure to flush stdin on fclose.
61677         * lib/closein.c (close_stdin): Flush stdin before closing.
61678
61679         Work around glibc's failure to reset seekable stdin on exit.
61680         * modules/closein: New module.
61681         * lib/closein.c: New file.
61682         * lib/closein.h: Likewise.
61683         * m4/closein.m4: Likewise.
61684         * MODULES.html.sh (File stream based Input/Output): Document it.
61685
61686 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61687
61688         * gnulib-tool: Rename generated 'autobuild' script to
61689         'do-autobuild' in --create-megatestdir output.
61690
61691         * doc/gnulib.texi (Build robot for gnulib): Fix.
61692
61693 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61694
61695         * modules/sysexits (Depends-on): Add absolute-header.
61696
61697 2007-04-12  Eric Blake  <ebb9@byu.net>
61698
61699         No need to preserve errno on success.
61700         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61701         Reported by Bruno Haible.
61702
61703 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61704
61705         * MODULES.html.sh (Support for maintaining and releasing
61706         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61707
61708 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61709
61710         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61711
61712 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61713
61714         * modules/autobuild: New module.
61715
61716         * m4/autobuild.m4: New file.
61717
61718 2007-04-11  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61721         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61724         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61742         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61743         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61744         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61746         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61747         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61748         Reported by Eric Blake.
61749
61750 2007-04-11  Bruno Haible  <bruno@clisp.org>
61751
61752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61753
61754 2007-04-10  Bruno Haible  <bruno@clisp.org>
61755
61756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61757         for NaN and Infinity. Needed on FreeBSD 6.1.
61758         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61759         regarding results for "%010a" of Infinity and NaN.
61760         * tests/test-vasprintf-posix.c (test_function): Likewise.
61761         * tests/test-snprintf-posix.h (test_function): Likewise.
61762         * tests/test-sprintf-posix.h (test_function): Likewise.
61763         * tests/test-fprintf-posix.h (test_function): Likewise.
61764         * tests/test-printf-posix.h (test_function): Likewise.
61765         * tests/test-fprintf-posix.out: Likewise.
61766
61767 2007-04-10  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/locale-tests: New file.
61770         * tests/test-locale.c: New file.
61771
61772         * modules/locale: New file.
61773         * lib/locale_.h: New file.
61774         * m4/locale_h.m4: New file.
61775
61776 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61777             Bruno Haible  <bruno@clisp.org>
61778
61779         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61780         be determined, test for availability of the copysignf, copysign,
61781         copysignl functions.
61782         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61783         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61784         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61785
61786 2007-04-09  Eric Blake  <ebb9@byu.net>
61787
61788         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61789         * modules/stdio (Makefile.am): Support fflush.
61790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61791         * modules/fflush: New file.
61792         * lib/fflush.c: Likewise.
61793         * m4/fflush.m4: Likewise.
61794         * modules/fflush-tests: New test.
61795         * tests/test-fflush.c: Likewise.
61796         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61797
61798 2007-04-06  Bruno Haible  <bruno@clisp.org>
61799
61800         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61801         (VASNPRINTF): Use signbit for faster determination whether to print a
61802         minus sign.
61803         * modules/vasnprintf (Files): Remove lib/float+.h.
61804         * modules/fprintf-posix (Depends-on): Add signbit.
61805         * modules/snprintf-posix (Depends-on): Likewise.
61806         * modules/sprintf-posix (Depends-on): Likewise.
61807         * modules/vasnprintf-posix (Depends-on): Likewise.
61808         * modules/vasprintf-posix (Depends-on): Likewise.
61809         * modules/vfprintf-posix (Depends-on): Likewise.
61810         * modules/vsnprintf-posix (Depends-on): Likewise.
61811         * modules/vsprintf-posix (Depends-on): Likewise.
61812
61813 2007-04-06  Bruno Haible  <bruno@clisp.org>
61814
61815         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61816         * tests/test-frexpl.c (main): Likewise.
61817         * tests/test-ldexpl.c (main): Likewise.
61818         * modules/frexp-tests (Depends-on): Add signbit.
61819         * modules/frexpl-tests (Depdends-on): Likewise.
61820         * modules/ldexpl-tests (Depdends-on): Likewise.
61821
61822 2007-04-06  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/signbit-tests: New file.
61825         * tests/test-signbit.c: New file.
61826
61827         * modules/signbit: New file.
61828         * lib/signbitf.c: New file.
61829         * lib/signbitd.c: New file.
61830         * lib/signbitl.c: New file.
61831         * m4/signbit.m4: New file.
61832         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61833         (signbit): New macro.
61834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61835         REPLACE_SIGNBIT.
61836         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61837         REPLACE_FREXPL into math.h.
61838
61839 2007-04-06  Bruno Haible  <bruno@clisp.org>
61840
61841         * modules/isnanf-nolibm-tests: New file.
61842         * tests/test-isnanf.c: New file.
61843
61844         * modules/isnanf-nolibm: New file.
61845         * lib/isnanf.h: New file.
61846         * lib/isnanf.c: New file.
61847         * lib/isnan.c: Consider the USE_FLOAT macro.
61848         * m4/isnanf.m4: New file.
61849
61850 2007-04-06  Bruno Haible  <bruno@clisp.org>
61851
61852         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61853         (Link): New section.
61854
61855         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61856
61857 2007-04-06  Bruno Haible  <bruno@clisp.org>
61858
61859         Assume the 'long double' type.
61860         * m4/longdouble.m4: Remove file.
61861         * config/srclist.txt: Don't mention longdouble.m4.
61862         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61863         * lib/float+.h: Likewise.
61864         * lib/frexp.c: Likewise.
61865         * lib/printf-args.h: Likewise.
61866         * lib/printf-args.c: Likewise.
61867         * lib/printf-frexp.c: Likewise.
61868         * lib/printf-parse.c: Likewise.
61869         * lib/vasnprintf.c: Likewise.
61870         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61871         * m4/intl.m4: Likewise.
61872         * m4/isnanl.m4: Likewise.
61873         * m4/printf.m4: Likewise.
61874         * m4/printf-frexpl.m4: Likewise.
61875         * m4/vasnprintf.m4: Likewise.
61876         * modules/allocsa (Files): Remove m4/longdouble.m4.
61877         * modules/gettext (Files): Likewise.
61878         * modules/relocatable-prog-wrapper (Files): Likewise.
61879         * modules/vasnprintf (Files): Likewise.
61880         * modules/isnanl (Files): Likewise.
61881         (Include): Simplify.
61882         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61883         (Include): Simplify.
61884         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61885         (Include): Simplify.
61886         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61887         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61888         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61889         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61890         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61891         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61892         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61893         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61894         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61895         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61896         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61897         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61898         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61899         * tests/test-isnanl.c: Likewise.
61900         * tests/test-snprintf-posix.h: Likewise.
61901         * tests/test-sprintf-posix.h: Likewise.
61902         * tests/test-vasnprintf-posix.c: Likewise.
61903         * tests/test-vasnprintf-posix2.c: Likewise.
61904         * tests/test-vasprintf-posix.c: Likewise.
61905
61906 2007-04-06  Bruno Haible  <bruno@clisp.org>
61907
61908         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61909         * lib/math_.h [__DECC]: Include the overridden include file through
61910         #include_next, outside the double-inclusion guard.
61911         * lib/stdio_.h [__DECC]: Likewise.
61912         * lib/stdlib_.h [__DECC]: Likewise.
61913         * lib/string_.h [__DECC]: Likewise.
61914         * lib/time_.h [__DECC]: Likewise.
61915         * lib/wchar_.h [__DECC]: Likewise.
61916         * lib/wctype_.h [__DECC]: Likewise.
61917         * lib/inttypes_.h [__DECC]: Likewise.
61918         Reported by Albert Chin <china@thewrittenword.com> in
61919         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61920
61921 2007-04-04  Eric Blake  <ebb9@byu.net>
61922
61923         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61924         1.5.x.
61925
61926 2007-04-04  Bruno Haible  <bruno@clisp.org>
61927
61928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61929         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61930
61931 2007-04-04  Bruno Haible  <bruno@clisp.org>
61932
61933         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61934         results for "%010a" of Infinity and NaN.
61935         * tests/test-vasprintf-posix.c (test_function): Likewise.
61936         * tests/test-snprintf-posix.h (test_function): Likewise.
61937         * tests/test-sprintf-posix.h (test_function): Likewise.
61938         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61939         * tests/test-printf-posix.h (test_function): Likewise.
61940         * tests/test-fprintf-posix.out: Update.
61941         Needed for FreeBSD 6.1.
61942
61943 2007-04-04  Bruno Haible  <bruno@clisp.org>
61944
61945         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61946         directly used by the gnulib modules nor by gnulib-tool.
61947
61948 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61949
61950         * DEPENDENCIES: Give overall description of version dependency
61951         desirability.  Use more-typical names for apps.
61952         Add shell, coreutils, diffutils, grep, tar, gzip.
61953
61954 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61955
61956         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61957
61958 2007-04-04  Karl Berry  <karl@gnu.org>
61959
61960         * MODULES.html.sh (func_module): missing '.
61961
61962 2007-04-03  Bruno Haible  <bruno@clisp.org>
61963
61964         * modules/argmatch-tests (Makefile.am): New variable
61965         test_argmatch_LDADD.
61966         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61967         * modules/array-list-tests (Makefile.am): New variable
61968         test_array_list_LDADD.
61969         * modules/array-oset-tests (Makefile.am): New variable
61970         test_array_oset_LDADD.
61971         * modules/avltree-list-tests (Makefile.am): New variable
61972         test_avltree_list_LDADD.
61973         * modules/avltree-oset-tests (Makefile.am): New variable
61974         test_avltree_oset_LDADD.
61975         * modules/avltreehash-list-tests (Makefile.am): New variable
61976         test_avltreehash_list_LDADD.
61977         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61978         test_canonicalize_lgpl_LDADD.
61979         * modules/carray-list-tests (Makefile.am): New variable
61980         test_carray_list_LDADD.
61981         * modules/dirname-tests (Makefile.am): New variable
61982         test_dirname_LDADD.
61983         * modules/linked-list-tests (Makefile.am): New variable
61984         test_linked_list_LDADD.
61985         * modules/linkedhash-list-tests (Makefile.am): New variable
61986         test_linkedhash_list_LDADD.
61987         * modules/rbtree-list-tests (Makefile.am): New variable
61988         test_rbtree_list_LDADD.
61989         * modules/rbtree-oset-tests (Makefile.am): New variable
61990         test_rbtree_oset_LDADD.
61991         * modules/rbtreehash-list-tests (Makefile.am): New variable
61992         test_rbtreehash_list_LDADD.
61993         * modules/xvasprintf-tests (Makefile.am): New variable
61994         test_xvasprintf_LDADD.
61995         Reported by Eric Blake.
61996
61997 2007-04-03  Eric Blake  <ebb9@byu.net>
61998
61999         * DEPENDENCIES: Weaken m4 requirements.
62000
62001 2007-04-03  Bruno Haible  <bruno@clisp.org>
62002
62003         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62004         * modules/isnanl-tests (configure.ac): Likewise.
62005
62006 2007-04-03  Ben Pfaff  <blp@gnu.org>
62007
62008         * modules/iconv_open: Add $(srcdir)/ to source directory
62009         references in Makefile fragments that call gperf, to fix VPATH
62010         builds.
62011
62012 2007-04-03  Bruno Haible  <bruno@clisp.org>
62013
62014         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62015         * lib/ldexpl.c: Undo last change.
62016
62017 2007-04-03  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/printf-frexpl (Depends-on): Undo last change.
62020         (Files): Add m4/ldexpl.m4.
62021
62022 2007-04-03  Bruno Haible  <bruno@clisp.org>
62023
62024         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62025         * modules/isnanl (Link): New section.
62026
62027         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62028         * modules/frexp (Link): New section.
62029
62030         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62031         * modules/frexpl (Link): New section.
62032
62033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62034         * modules/ldexpl (Link): New section.
62035
62036 2007-04-03  Bruno Haible  <bruno@clisp.org>
62037
62038         * modules/TEMPLATE-EXTENDED: New file.
62039         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62040
62041 2007-04-03  Bruno Haible  <bruno@clisp.org>
62042
62043         * DEPENDENCIES: New file.
62044         Suggested by Simon Josefsson.
62045
62046 2007-04-03  Bruno Haible  <bruno@clisp.org>
62047
62048         * doc/gnulib.texi: Escape @.
62049
62050 2007-04-03  James Youngman  <jay@gnu.org>
62051         and Paul Eggert  <eggert@cs.ucla.edu>
62052
62053         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62054         birthtime on all systems that have birthtime, not just those which
62055         use st_birthtimensec rather than st_birthtim.  Putting zero in
62056         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62057         that the birth time is not available for files on an NFS mount.
62058
62059 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62060
62061         * modules/memxor: Move back from crypto/, suggested by Bruno.
62062         * modules/crypto/hmac-sha1: Fix memxor dependency.
62063
62064         * modules/crypto/gc: Moved from ../.
62065
62066 2007-04-02  Eric Blake  <ebb9@byu.net>
62067
62068         * lib/ldexpl.c (includes): Avoid libm.
62069
62070         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62071
62072 2007-04-02  Bruno Haible  <bruno@clisp.org>
62073
62074         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62075         on IRIX.
62076
62077 2007-04-02  Bruno Haible  <bruno@clisp.org>
62078
62079         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62080         x86 or x86_64 platforms running MacOS X.
62081         Reported by Ryan Schmidt <@ryandesign.com>.
62082
62083 2007-04-02  Bruno Haible  <bruno@clisp.org>
62084
62085         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62086         i386.
62087
62088 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62089
62090         * modules/crypto/arcfour: Moved from ../.
62091         * modules/crypto/arcfour-tests: Moved from ../.
62092         * modules/crypto/arctwo: Moved from ../.
62093         * modules/crypto/arctwo-tests: Moved from ../.
62094         * modules/crypto/des: Moved from ../.
62095         * modules/crypto/des-tests: Moved from ../.
62096         * modules/crypto/gc-arcfour: Moved from ../.
62097         * modules/crypto/gc-arcfour-tests: Moved from ../.
62098         * modules/crypto/gc-arctwo: Moved from ../.
62099         * modules/crypto/gc-arctwo-tests: Moved from ../.
62100         * modules/crypto/gc-des: Moved from ../.
62101         * modules/crypto/gc-des-tests: Moved from ../.
62102         * modules/crypto/gc-hmac-md5: Moved from ../.
62103         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62104         * modules/crypto/gc-hmac-sha1: Moved from ../.
62105         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62106         * modules/crypto/gc-md2: Moved from ../.
62107         * modules/crypto/gc-md2-tests: Moved from ../.
62108         * modules/crypto/gc-md4: Moved from ../.
62109         * modules/crypto/gc-md4-tests: Moved from ../.
62110         * modules/crypto/gc-md5: Moved from ../.
62111         * modules/crypto/gc-md5-tests: Moved from ../.
62112         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62113         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62114         * modules/crypto/gc-random: Moved from ../.
62115         * modules/crypto/gc-rijndael: Moved from ../.
62116         * modules/crypto/gc-rijndael-tests: Moved from ../.
62117         * modules/crypto/gc-sha1: Moved from ../.
62118         * modules/crypto/gc-sha1-tests: Moved from ../.
62119         * modules/crypto/gc-tests: Moved from ../.
62120         * modules/crypto/hmac-md5: Moved from ../.
62121         * modules/crypto/hmac-md5-tests: Moved from ../.
62122         * modules/crypto/hmac-sha1: Moved from ../.
62123         * modules/crypto/hmac-sha1-tests: Moved from ../.
62124         * modules/crypto/md2: Moved from ../.
62125         * modules/crypto/md2-tests: Moved from ../.
62126         * modules/crypto/md4: Moved from ../.
62127         * modules/crypto/md4-tests: Moved from ../.
62128         * modules/crypto/md5: Moved from ../.
62129         * modules/crypto/md5-tests: Moved from ../.
62130         * modules/crypto/memxor: Moved from ../.
62131         * modules/crypto/rijndael: Moved from ../.
62132         * modules/crypto/rijndael-tests: Moved from ../.
62133         * modules/crypto/sha1: Moved from ../.
62134
62135 2007-03-30  James Youngman  <jay@gnu.org>
62136
62137         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62138         rename() to change the ctime of a file (because ctime is unaffected
62139         by rename on jfs2 on AIX 5.1).
62140         (main): Start by doing cleanup, in case a previous run failed leaving
62141         test files behind.
62142
62143 2007-03-31  Bruno Haible  <bruno@clisp.org>
62144
62145         Support old proprietary implementations of iconv.
62146         * modules/iconv_open: New file.
62147         * lib/iconv_.h: New file.
62148         * m4/iconv_h.m4: New file.
62149         * lib/iconv_open.c: New file.
62150         * lib/iconv_open-aix.gperf: New file.
62151         * lib/iconv_open-hpux.gperf: New file.
62152         * lib/iconv_open-irix.gperf: New file.
62153         * lib/iconv_open-osf.gperf: New file.
62154         * m4/iconv_open.m4: New file.
62155         * modules/linebreak (Depends-on): Add iconv_open.
62156         * modules/striconv (Depends-on): Likewise.
62157         * modules/striconveh (Depends-on): Likewise.
62158         * modules/unicodeio (Depends-on): Likewise.
62159         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62160         (iconv_t)(-1).
62161         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62162         conversion if cd is (iconv_t)(-1).
62163         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62164         is not possible.
62165
62166 2007-03-31  Bruno Haible  <bruno@clisp.org>
62167
62168         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62169         work on Solaris either. Protect also second use of "autodetect_jp".
62170
62171 2007-03-31  Bruno Haible  <bruno@clisp.org>
62172
62173         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62174         the function is not present.
62175
62176 2007-03-31  Bruno Haible  <bruno@clisp.org>
62177
62178         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62179         the function is not present.
62180
62181 2007-03-31  Bruno Haible  <bruno@clisp.org>
62182
62183         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62184         a bug in HP-UX iconv_open().
62185
62186 2007-03-31  Bruno Haible  <bruno@clisp.org>
62187
62188         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62189         (Mathematics <math.h>): New section, add fpieee.
62190         (Input/output <stdio.h>): Add fseterr.
62191         (Mathematics <math.h>): New section, add printf-frexp.
62192         (Container data structures): Add sublist.
62193         (Core language properties): Add fpucw, inline.
62194         (Functions for greatest-width integer types <inttypes.h>): Add
62195         imaxabs, imaxdiv, inttypes.
62196         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62197         isnanl-nolibm, ldexp.
62198         (Mathematics <math.h>): New section, add printf-frexpl.
62199         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62200         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62201         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62202         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62203         (Unicode string functions): Add unistr/u*-mbtoucr.
62204         (Java): Add javacomp-script, javaexec-script.
62205         (C#): Add csharpcomp-script, csharpexec-script.
62206         (Support for building libraries and executables): Add havelib,
62207         relocatable-*.
62208         (Support for maintaining and releasing projects): Renamed from
62209         'Support for maintaining and release projects'. Add announce-gen.
62210
62211 2007-03-31  Bruno Haible  <bruno@clisp.org>
62212
62213         * README: Talk primarily about git.
62214         (git and CVS): Renamed from CVS.
62215         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62216         gnulib is available through git.
62217         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62218
62219 2007-03-30  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62222         * lib/poll_.h: Likewise.
62223         * lib/stat_.h: Likewise.
62224         * lib/sys_time_.h: Likewise.
62225         * lib/sysexit_.h: Likewise.
62226         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62227         * lib/stdbool_.h: Likewise.
62228         * lib/byteswap_.h: Add double-inclusion guard.
62229
62230 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62231
62232         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62233
62234 2007-03-30  Karl Berry  <karl@gnu.org>
62235
62236         * config/srclist-update: double space after USA in the license
62237         substitution, since that's how it's usually (?) written.
62238
62239 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62242         reported by Bruno Haible.
62243
62244 2007-03-29  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62247         a bug in AIX iconv().
62248
62249 2007-03-29  Bruno Haible  <bruno@clisp.org>
62250
62251         * modules/ldexpl-tests: New file.
62252         * tests/test-ldexpl.c: New file.
62253
62254 2007-03-29  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/ldexpl.c: Include fpucw.h.
62257         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62258         multiplication.
62259         * modules/ldexpl (Depends-on): Add fpucw.
62260
62261 2007-03-29  Bruno Haible  <bruno@clisp.org>
62262
62263         * modules/ldexpl: New file.
62264         * m4/ldexpl.m4: New file.
62265         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62266         set.
62267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62268         REPLACE_LDEXPL.
62269         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62270         REPLACE_LDEXPL.
62271         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62272         gl_FUNC_LDEXPL_WORKS.
62273         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62274         * modules/mathl (Files): Remove lib/ldexpl.c.
62275         (Depends-on): Add ldexpl.
62276
62277 2007-03-29  Bruno Haible  <bruno@clisp.org>
62278
62279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62280
62281 2007-03-29  Bruno Haible  <bruno@clisp.org>
62282
62283         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62284         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62285         and possibly also HP-UX.
62286         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62287         work on AIX, IRIX, HP-UX, OSF/1.
62288         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62289         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62290         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62291         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62292         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62293         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62294
62295 2007-03-29  Bruno Haible  <bruno@clisp.org>
62296
62297         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62298
62299 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62300
62301         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62302         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62303
62304 2007-03-29  Eric Blake  <ebb9@byu.net>
62305
62306         * lib/acl-internal.h: Remove redundant include.
62307         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62308         Cygwin when a file is locked.
62309
62310 2007-03-29  Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62313         file.
62314         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62315
62316 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62319         try to remove a parent directory if the child couldn't be removed
62320         (except for the first rmdir, which could fail because the child
62321         doesn't exist).  Problem reported by Jeff Blaine in
62322         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62323
62324 2007-03-28  Bruno Haible  <bruno@clisp.org>
62325
62326         * lib/striconveh.c (utf8conv_carefully): New function.
62327         (mem_cd_iconveh_internal): Invoke it.
62328
62329 2007-03-28  Bruno Haible  <bruno@clisp.org>
62330
62331         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62332         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62333         input.
62334         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62335         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62336         unistr/u8-uctomb.
62337
62338 2007-03-28  Bruno Haible  <bruno@clisp.org>
62339
62340         * modules/unistr/u8-mbtoucr: New file.
62341         * lib/unistr/u8-mbtoucr.c: New file.
62342         * modules/unistr/u16-mbtoucr: New file.
62343         * lib/unistr/u16-mbtoucr.c: New file.
62344         * modules/unistr/u16-mbtoucr: New file.
62345         * lib/unistr/u16-mbtoucr.c: New file.
62346         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62347
62348 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62349             Bruno Haible  <bruno@clisp.org>
62350
62351         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62352         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62353         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62354
62355         * m4/stdio_h.m4: Add stubs for vasprintf too.
62356
62357         * modules/stdio: Support vasprintf in sed command.
62358
62359         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62360         vasprintf.h.  Add stdio module indicator.
62361
62362         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62363         vasprintf.h.
62364
62365         * lib/vasprintf.h: File removed.
62366
62367         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62368         * lib/vasprintf.c: Ditto.
62369         * lib/xvasprintf.c: Ditto.
62370         * tests/test-vasprintf-posix.c: Ditto.
62371         * tests/test-vasprintf.c: Ditto.
62372
62373 2007-03-27  Bruno Haible  <bruno@clisp.org>
62374
62375         Make vasnprintf multithread-safe.
62376         * lib/vasnprintf.c (decimal_point_char): New function.
62377         (VASNPRINTF): Use it.
62378         Suggested by Simon Josefsson.
62379
62380 2007-03-27  Eric Blake  <ebb9@byu.net>
62381
62382         Support sub-second birthtime on cygwin.
62383         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62384         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62385         (get_stat_birthtime): Also work with st_birthtim.
62386
62387 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62390         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62391         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62392         (get_stat_birthtime_ns): Simplify compile-time tests.
62393         (get_stat_birthtime): Change the API to look like
62394         get_stat_mtime etc., except return a negative tv_nsec on error.
62395         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62396         Don't check for "spare" fields.
62397         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62398         or for struct stat.st_birthtime, as these tests aren't used.
62399         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62400
62401 2007-03-27  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/stat-time.h: Include <sys/stat.h>.
62404
62405 2007-03-27  James Youngman  <jay@gnu.org>
62406
62407         * lib/stat-time.h (get_stat_birthtime): New function for
62408           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62409         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62410           and its variants.
62411         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62412         * modules/stat-time-test: New file.
62413         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62414
62415 2007-03-26  Bruno Haible  <bruno@clisp.org>
62416
62417         Better support of signalling NaNs.
62418         * lib/atanl.c: Include isnanl.h.
62419         (atanl): Perform test for NaN at the beginning of the function and
62420         through a call to isnanl.
62421         * lib/cosl.c: Include isnanl.h.
62422         (cosl): Perform test for NaN at the beginning of the function and
62423         through a call to isnanl.
62424         * lib/ldexpl.c: Include isnanl.h.
62425         (ldexpl): Perform test for NaN through a call to isnanl.
62426         * lib/logl.c: Include isnanl.h.
62427         (logl): Perform test for NaN at the beginning of the function and
62428         through a call to isnanl.
62429         * lib/sinl.c: Include isnanl.h.
62430         (sinl): Perform test for NaN at the beginning of the function and
62431         through a call to isnanl.
62432         * lib/sqrtl.c: Include isnanl.h.
62433         (sqrtl): Perform test for NaN at the beginning of the function and
62434         through a call to isnanl.
62435         * lib/tanl.c: Include isnanl.h.
62436         (tanl): Perform test for NaN at the beginning of the function and
62437         through a call to isnanl.
62438         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62439         * modules/mathl (Depends-on): Add isnanl.
62440
62441 2007-03-26  Eric Blake  <ebb9@byu.net>
62442
62443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62444         regression in logic sense of previous patch.
62445
62446 2007-03-26  Bruno Haible  <bruno@clisp.org>
62447
62448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62449         unportable shell command "if ! ...".
62450         Reported by Ralf Wildenhues.
62451
62452 2007-03-25  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62455         <sysexits.h> file, and only add EX_CONFIG.
62456         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62457         absolute file name and whether it is sufficient. Substitute also
62458         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62459         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62460         ABSOLUTE_SYSEXITS_H into sysexits.h.
62461
62462 2007-03-25  Bruno Haible  <bruno@clisp.org>
62463
62464         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62465         hints is NULL.
62466
62467 2007-03-25  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62470         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62471
62472 2007-03-25  Bruno Haible  <bruno@clisp.org>
62473
62474         * lib/vasnprintf.c: Include langinfo.h.
62475         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62476         multithread-safe.
62477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62478         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62486         Reported by Simon Josefsson.
62487
62488 2007-03-25  Bruno Haible  <bruno@clisp.org>
62489
62490         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62491         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62492         * modules/vasnprintf (Depends-on): Add stdint.
62493
62494 2007-03-25  Bruno Haible  <bruno@clisp.org>
62495
62496         * modules/fpieee: New file.
62497         * m4/fpieee.m4: New file.
62498         * modules/isnan-nolibm (Depends-on): Add fpieee.
62499         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62500         * modules/isnanl (Depends-on): Add fpieee.
62501
62502 2007-03-25  Bruno Haible  <bruno@clisp.org>
62503
62504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62505
62506 2007-03-25  Bruno Haible  <bruno@clisp.org>
62507
62508         Avoid test failures on IRIX 6.5.
62509         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62510         (main): Use it.
62511         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62512         macros.
62513         (main): Use them.
62514
62515 2007-03-25  Bruno Haible  <bruno@clisp.org>
62516
62517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62518         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62519         exists but doesn't work.
62520         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62521         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62523         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62524         math.h.
62525
62526 2007-03-25  Bruno Haible  <bruno@clisp.org>
62527
62528         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62529         returns inf. Needed on IRIX 6.5.
62530
62531 2007-03-25  Bruno Haible  <bruno@clisp.org>
62532
62533         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62534         (main): Use isnanl instead of x != x idiom.
62535         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62536
62537         * tests/test-frexp.c: Include isnan.h.
62538         (main): Use isnan instead of x != x idiom.
62539         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62540
62541 2007-03-25  Bruno Haible  <bruno@clisp.org>
62542
62543         * tests/test-frexp.c (NaN): New function/macro.
62544         (main): Use it instead of 0.0 / 0.0.
62545         * tests/test-isnan.c (NaN): New function/macro.
62546         (main): Use it instead of 0.0 / 0.0.
62547         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62548         (test_function): Use it instead of 0.0 / 0.0.
62549         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62550         (test_function): Use it instead of 0.0 / 0.0.
62551         * tests/test-snprintf-posix.h (NaN): New function/macro.
62552         (test_function): Use it instead of 0.0 / 0.0.
62553         * tests/test-sprintf-posix.h (NaN): New function/macro.
62554         (test_function): Use it instead of 0.0 / 0.0.
62555         * tests/test-fprintf-posix.h (NaN): New function/macro.
62556         (test_function): Use it instead of 0.0 / 0.0.
62557         * tests/test-printf-posix.h (NaN): New function/macro.
62558         (test_function): Use it instead of 0.0 / 0.0.
62559
62560         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62561
62562 2007-03-25  Bruno Haible  <bruno@clisp.org>
62563
62564         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62565
62566 2007-03-25  Bruno Haible  <bruno@clisp.org>
62567
62568         * lib/regexec.c (merge_state_with_log): Make static.
62569
62570 2007-03-25  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/trigl.c (kernel_rem_pio2): Make static.
62573
62574 2007-03-25  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/sincosl.c (sincosl_table): Make static.
62577
62578 2007-03-25  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62581         if the compiler does not support C99.
62582
62583 2007-03-25  Bruno Haible  <bruno@clisp.org>
62584
62585         * modules/time (Makefile.am): Ensure all rule action lines start with a
62586         tab.
62587
62588 2007-03-24  Bruno Haible  <bruno@clisp.org>
62589
62590         * modules/tsearch-tests: New file.
62591         * tests/test-tsearch.sh: New file.
62592         * tests/test-tsearch.c: New file, mostly copied from glibc.
62593
62594         * modules/search-tests: New file.
62595         * tests/test-search.c: New file.
62596
62597         * modules/search: New file.
62598         * lib/search_.h: New file, incorporating lib/tsearch.h.
62599         * m4/search_h.m4: New file.
62600         * lib/tsearch.h: Remove file.
62601         * lib/tsearch.c: Include search.h instead of tsearch.h.
62602         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62603         HAVE_TSEARCH.
62604         * modules/tsearch (Files): Remove lib/tsearch.h.
62605         (Depends-on): Add search.
62606         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62607         (Include): Change tsearch.h into search.h.
62608
62609 2007-03-24  Bruno Haible  <bruno@clisp.org>
62610
62611         * modules/fpucw: New file.
62612         * lib/fpucw.h: New file.
62613         * lib/frexp.c: Include fpucw.h.
62614         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62615         (FUNC): Use them.
62616         * lib/printf-frexp.c: Include fpucw.h.
62617         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62618         (FUNC): Use them.
62619         * lib/vasnprintf.c: Include fpucw.h.
62620         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62621         'long double' calculations.
62622         * tests/test-frexpl.c: Include fpucw.h.
62623         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62624         * tests/test-printf-frexpl.c: Include fpucw.h.
62625         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62626         * modules/frexpl (Depends-on): Add fpucw.
62627         * modules/printf-frexpl (Depends-on): Likewise.
62628         * modules/fprintf-posix (Depends-on): Likewise.
62629         * modules/snprintf-posix (Depends-on): Likewise.
62630         * modules/sprintf-posix (Depends-on): Likewise.
62631         * modules/vasnprintf-posix (Depends-on): Likewise.
62632         * modules/vasprintf-posix (Depends-on): Likewise.
62633         * modules/vfprintf-posix (Depends-on): Likewise.
62634         * modules/vsnprintf-posix (Depends-on): Likewise.
62635         * modules/vsprintf-posix (Depends-on): Likewise.
62636         * modules/frexpl-tests (Depends-on): Likewise.
62637         * modules/printf-frexpl-tests (Depends-on): Likewise.
62638
62639 2007-03-24  Bruno Haible  <bruno@clisp.org>
62640
62641         * lib/float+.h: New file.
62642         * lib/isnan.c: Include float+.h.
62643         (SIZE): New macro.
62644         (FUNC): Compare only SIZE bytes of the value.
62645         * lib/vasnprintf.c: Include float+.h.
62646         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62647         SIZEOF_LDBL or SIZEOF_DBL bytes.
62648         * modules/isnan-nolibm (Files): Add lib/float+.h.
62649         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62650         * modules/isnanl (Files): Add lib/float+.h.
62651         * modules/vasnprintf (Files): Add lib/float+.h.
62652
62653 2007-03-24  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62656         include isnanl-nolibm.h.
62657
62658 2007-03-24  Bruno Haible  <bruno@clisp.org>
62659
62660         * tests/test-read-file.c (main): Don't produce spurious output for
62661         expected situations. Make the test fail if it encountered unexpected
62662         results.
62663
62664 2007-03-24  Bruno Haible  <bruno@clisp.org>
62665
62666         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62667         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62668
62669 2007-03-24  Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62672
62673 2007-03-24  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62676         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62677
62678         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62679         * modules/utf8-ucs4: Turn into a symbolic link to module
62680         unistr/u8-mbtouc.
62681
62682         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62683         utf8-ucs4-unsafe.
62684         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62685         unistr/u8-mbtouc-unsafe.
62686
62687         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62688         * modules/utf16-ucs4: Turn into a symbolic link to module
62689         unistr/u16-mbtouc.
62690
62691         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62692         utf16-ucs4-unsafe.
62693         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62694         unistr/u16-mbtouc-unsafe.
62695
62696         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62697         * modules/ucs4-utf8: Turn into a symbolic link to module
62698         unistr/u8-ubtomb.
62699
62700         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62701         * modules/ucs4-utf16: Turn into a symbolic link to module
62702         unistr/u16-ubtomb.
62703
62704 2007-03-24  Bruno Haible  <bruno@clisp.org>
62705
62706         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62707         Enable the function only if HAVE_INLINE.
62708         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62709         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62710         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62711         Enable the function only if HAVE_INLINE.
62712         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62713         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62714         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62715         Enable the function only if HAVE_INLINE.
62716         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62717         Enable the function only if HAVE_INLINE.
62718         * modules/utf8-ucs4: Update.
62719         * modules/utf8-ucs4-unsafe: Update.
62720         * modules/utf16-ucs4: Update.
62721         * modules/utf16-ucs4-unsafe: Update.
62722         * modules/ucs4-utf8: Update.
62723         * modules/ucs4-utf16: Update.
62724
62725 2007-03-24  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/utf8-ucs4.h: Remove file.
62728         * lib/utf8-ucs4-unsafe.h: Remove file.
62729         * lib/utf16-ucs4.h: Remove file.
62730         * lib/utf16-ucs4-unsafe.h: Remove file.
62731         * lib/ucs4-utf8.h: Remove file.
62732         * lib/ucs4-utf16.h: Remove file.
62733         * lib/unistr.h: Include their previous contents.
62734         * m4/utf-ucs4.m4: Remove file.
62735         * m4/ucs4-utf.m4: Remove file.
62736         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62737         (Depends-on): Add unistr/base.
62738         (configure.ac): Remove gl_UTF_UCS4.
62739         (Makefile.am): Update.
62740         (Include): Change to unistr.h.
62741         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62742         (Depends-on): Add unistr/base.
62743         (configure.ac): Remove gl_UTF_UCS4.
62744         (Makefile.am): Update.
62745         (Include): Change to unistr.h.
62746         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62747         (Depends-on): Add unistr/base.
62748         (configure.ac): Remove gl_UTF_UCS4.
62749         (Makefile.am): Update.
62750         (Include): Change to unistr.h.
62751         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62752         (Depends-on): Add unistr/base.
62753         (configure.ac): Remove gl_UTF_UCS4.
62754         (Makefile.am): Update.
62755         (Include): Change to unistr.h.
62756         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62757         (Depends-on): Add unistr/base.
62758         (configure.ac): Remove gl_UCS4_UTF.
62759         (Makefile.am): Update.
62760         (Include): Change to unistr.h.
62761         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62762         (Depends-on): Add unistr/base.
62763         (configure.ac): Remove gl_UCS4_UTF.
62764         (Makefile.am): Update.
62765         (Include): Change to unistr.h.
62766         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62767         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62768         utf8-ucs4-unsafe.h.
62769         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62770         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62771         utf16-ucs4-unsafe.h.
62772         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62773         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62774         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62775         * lib/unistr/u8-strchr.c: Likewise.
62776         * lib/unistr/u8-strrchr.c: Likewise.
62777         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62778         * lib/unistr/u16-strchr.c: Likewise.
62779         * lib/unistr/u16-strrchr.c: Likewise.
62780         * lib/striconveh.c: Update.
62781         * lib/linebreak.c: Update.
62782
62783 2007-03-24  Bruno Haible  <bruno@clisp.org>
62784
62785         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62786         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62787
62788 2007-03-22  Bruno Haible  <bruno@clisp.org>
62789
62790         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62791
62792 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * MODULES.html.sh (File system functions): New module write-any-file.
62795         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62796         * m4/write-any-file.m4: New files.
62797
62798 2007-03-23  Eric Blake  <ebb9@byu.net>
62799
62800         * gnulib-tool: Rearrange space-tab sequences, since some editors
62801         like to eat them.
62802
62803 2007-03-23  Eric Blake  <ebb9@byu.net>
62804
62805         * lib/version-etc.c (version_etc_va): Update license wording to
62806         be more concise.  Recommended by Richard Stallman.
62807
62808 2007-03-22  Bruno Haible  <bruno@clisp.org>
62809
62810         * lib/poll.c (MSG_PEEK): New fallback definition.
62811
62812 2007-03-22  Bruno Haible  <bruno@clisp.org>
62813
62814         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62815         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62816         (main): Update.
62817         Fixes a compilation error on BeOS.
62818
62819 2007-03-22  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/frexpl-tests: New file.
62822         * tests/test-frexpl.c: New file.
62823
62824         * modules/frexpl: New file.
62825         * m4/frexpl.m4: New file.
62826         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62827         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62829         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62830         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62831         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62832
62833 2007-03-22  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/frexpl.c: Share code with lib/frexp.c.
62836         * modules/mathl (Files): Add lib/frexp.c.
62837         (Depends-on): Add isnanl-nolibm.
62838
62839 2007-03-22  Bruno Haible  <bruno@clisp.org>
62840
62841         * modules/printf-frexp (Files): Add m4/frexp.m4.
62842         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62843         only if the found frexp function actually works.
62844
62845 2007-03-22  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/frexp.c: Remove older implementation that uses divisions.
62848
62849 2007-03-21  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/frexp-tests: New file.
62852         * tests/test-frexp.c: New file.
62853
62854         * modules/frexp: New file.
62855         * lib/frexp.c: New file.
62856         * m4/frexp.m4: New file.
62857         * lib/math_.h (frexp): New declaration.
62858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62859         REPLACE_FREXP.
62860         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62861
62862 2007-03-21  Bruno Haible  <bruno@clisp.org>
62863
62864         * modules/isnanl-tests: New file.
62865         * tests/test-isnanl.c: New file.
62866
62867         * modules/isnanl: New file.
62868         * lib/isnanl.h: New file.
62869         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62870         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62871         gl_FUNC_ISNANL_WORKS.
62872         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62873         New macros.
62874
62875 2007-03-21  Bruno Haible  <bruno@clisp.org>
62876
62877         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62878         lib/isnanl.h.
62879         (Include): Update.
62880         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62881         * lib/vasnprintf.c: Update.
62882         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62883         tests/test-isnanl.h, remove tests/test-isnanl.c.
62884         (Makefile.am): Update.
62885         * tests/test-isnanl-nolibm.c: New file.
62886         * tests/test-isnanl.h: New file.
62887         * tests/test-isnanl.c: Remove file.
62888
62889 2007-03-21  Jim Meyering  <jim@meyering.net>
62890
62891         When trying to open ".", treat ESTALE like EACCES.
62892         * lib/savewd.c (savewd_save): Resort to forking not just upon
62893         failure with EACCES, but also when errno is ESTALE.
62894
62895 2007-03-20  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62898         Needed on AIX 5.1. Reported by Matthew Woehlke.
62899
62900 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62901
62902         Suggestions by Bruno Haible:
62903         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62904         our own.
62905         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62906         * modules/acl (Depends-on): Add gettext.
62907
62908 2007-03-19  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/iconvme: Remove file.
62911         * lib/iconvme.h: Remove file.
62912         * lib/iconvme.c: Remove file.
62913         * m4/iconvme.m4: Remove file.
62914
62915 2007-03-19  Bruno Haible  <bruno@clisp.org>
62916
62917         * doc/relocatable-maint.texi: Break long shell script line.
62918         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62919
62920 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62923         handle file_has_acl.
62924         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62925         * lib/acl.c: Move header inclusions and related macro defns into
62926         lib/acl-internal.h.
62927         (S_ISLNK): Remove defn, since that's now done for us.
62928         (file_has_acl): Move to lib/file-has-acl.c.
62929         Call acl_trivial if available.  This is the crucial part of the fix.
62930         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62931         shared within the library.  Rewrite a bit, partly to make it compatible
62932         with the GNU coding style.
62933         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62934         Remove unnecessary double-quotes.
62935         Don't test for acl_to_text; the build will catch that.
62936         Replace acl_entries if it doesn't exist and it is needed.
62937         Check for -lsec and acl_trivial (as used on Solaris 10).
62938         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62939         lib/file-has-acl.c.
62940         (Depends-on): Add sys_stat, for S_ISLNK.
62941
62942 2007-03-19  Ben Pfaff  <blp@gnu.org>
62943
62944         * doc/gnulib.texi: Fix typos.
62945         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62946
62947 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62950         If size is zero here, buf must be zero.
62951
62952 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62953
62954         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62955         <bruno@clisp.org>.
62956
62957 2007-03-18  Bruno Haible  <bruno@clisp.org>
62958
62959         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62960         Suggested by Eric Blake.
62961
62962 2007-03-18  Ben Pfaff  <blp@gnu.org>
62963
62964         * doc/relocatable.texi: Recommend using as prefix a directory
62965         that does not exist and will never be created.  Based on
62966         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62967         and others.
62968
62969 2007-03-17  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/fchownat.c: Include lchown.h.
62972
62973 2007-03-17  Bruno Haible  <bruno@clisp.org>
62974
62975         Fix endless loop when the given allocated size was > INT_MAX.
62976         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62977         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62978         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62979         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62980         * lib/sprintf.c (sprintf): Likewise.
62981
62982 2007-03-17  Bruno Haible  <bruno@clisp.org>
62983
62984         * tests/test-argp-2.sh (func_compare): Output a context diff.
62985
62986 2007-03-17  Bruno Haible  <bruno@clisp.org>
62987
62988         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62989         locale's decimal-point character.
62990
62991 2007-03-17  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62994         before comparing it. Needed because on some platforms (e.g. x86) a
62995         'long double' occupies less bytes than sizeof (long double).
62996
62997 2007-03-17  Bruno Haible  <bruno@clisp.org>
62998
62999         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63000         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63001         * tests/test-getaddrinfo.c (simple): Likewise.
63002         * tests/test-read-file.c (main): Likewise.
63003
63004 2007-03-17  Bruno Haible  <bruno@clisp.org>
63005
63006         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63007
63008 2007-03-17  Bruno Haible  <bruno@clisp.org>
63009
63010         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63011         unused variable.
63012
63013 2007-03-17  Bruno Haible  <bruno@clisp.org>
63014
63015         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63016         * tests/test-c-strncasecmp.c: Likewise.
63017
63018 2007-03-17  Bruno Haible  <bruno@clisp.org>
63019
63020         * modules/stdlib (Depends-on): Add unistd.
63021         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63022         Needed for MacOS X 10.3.
63023
63024 2007-03-17  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63027
63028 2007-03-17  Bruno Haible  <bruno@clisp.org>
63029
63030         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63031
63032 2007-03-17  Bruno Haible  <bruno@clisp.org>
63033
63034         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63035         to reflect files copied from gnulib (with or without modifications).
63036         Suggested by Jim Meyering.
63037
63038 2007-03-17  Eric Blake  <ebb9@byu.net>
63039
63040         * NEWS: Document stdlib change from 2007-02-18.
63041
63042 2007-03-17  Jim Meyering  <jim@meyering.net>
63043
63044         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63045         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63046         someone uses a name containing shell meta-characters.
63047         Reported by Alfred M. Szmidt.
63048
63049         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63050
63051 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63052
63053         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63054         and copy gettext configuration files only if configure.ac contains
63055         a use of AM_GNU_GETTEXT_VERSION.
63056
63057 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63058
63059         * build-aux/bootstrap (gnulib_name): New variable.
63060         (gnulib_tool_options): Use it.
63061
63062 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63063
63064         * tests/test-des.c: Use new namespace.
63065
63066 2007-03-15  Bruno Haible  <bruno@clisp.org>
63067
63068         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63069         Reported by James Youngman <jay@gnu.org>.
63070
63071 2007-03-15  Bruno Haible  <bruno@clisp.org>
63072
63073         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63074         declared prototype. Needed with cc on OSF/1 5.1.
63075
63076 2007-03-15  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63079         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63080         (struct gl_list_implementation): Add dispose_fn argument to the
63081         'create_empty', 'create' methods.
63082         (struct gl_list_impl_base): Add field 'dispose_fn'.
63083         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63084         argument.
63085         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63086         dispose_fn argument.
63087         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63088         dispose_fn on the dropped values.
63089         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63090         dispose_fn argument.
63091         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63092         dropped values.
63093         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63094         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63095         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63096         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63097         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63098         argument.
63099         (gl_tree_list_free): Call dispose_fn on the dropped values.
63100         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63101         the dropped values.
63102         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63103         Add dispose_fn argument.
63104         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63105         Call dispose_fn on the dropped values.
63106         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63107         Add dispose_fn argument.
63108         (gl_sublist_create): Initialize the 'dispose_fn' field.
63109         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63110         * tests/test-array_list.c (main): Update.
63111         * tests/test-carray_list.c (main): Update.
63112         * tests/test-avltree_list.c (main): Update.
63113         * tests/test-rbtree_list.c (main): Update.
63114         * tests/test-avltreehash_list.c (main): Update.
63115         * tests/test-rbtreehash_list.c (main): Update.
63116         * tests/test-linked_list.c (main): Update.
63117         * tests/test-linkedhash_list.c (main): Update.
63118         * tests/test-array_oset.c (main): Update.
63119
63120 2007-03-15  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63123         (gl_oset_create_empty): Add dispose_fn argument.
63124         (struct gl_oset_implementation): Add dispose_fn argument to
63125         'create_empty' method.
63126         (struct gl_oset_impl_base): Add dispose_fn field.
63127         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63128         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63129         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63130         values.
63131         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63132         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63133         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63134         dropped value.
63135         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63136         dropped value.
63137         * tests/test-array_oset.c (main): Update.
63138         * tests/test-avltree_oset.c (main): Update.
63139         * tests/test-rbtree_oset.c (main): Update.
63140         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63141
63142 2007-03-13  Bruno Haible  <bruno@clisp.org>
63143
63144         * tests/test-stdbool.c (i): Update after last patch.
63145
63146 2007-03-12  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63149         the iswprint macro. Needed on Solaris 2.5.1.
63150
63151 2007-03-12  Bruno Haible  <bruno@clisp.org>
63152
63153         * tests/test-printf-frexp.c (main): Declare x as volatile.
63154
63155 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63156
63157         * doc/gnulib.texi (Build robot for gnulib): New section.
63158
63159 2007-03-12  Jim Meyering  <jim@meyering.net>
63160
63161         * build-aux/bootstrap: New file.
63162         * build-aux/bootstrap.conf: New file, from coreutils.
63163
63164 2007-03-11  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63167
63168 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63169
63170         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63171         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63172         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63173
63174 2007-03-11  Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63177         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63178
63179 2007-03-11  Bruno Haible  <bruno@clisp.org>
63180
63181         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63182         formula. Needed for SunPRO C 5.0.
63183
63184 2007-03-11  Bruno Haible  <bruno@clisp.org>
63185
63186         * modules/long-options (Depends-on): Add getopt.
63187
63188 2007-03-11  Bruno Haible  <bruno@clisp.org>
63189
63190         * modules/modechange (Depends-on): Add stdbool.
63191
63192 2007-03-11  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/i-ring (Depends-on): Add stdbool.
63195
63196 2007-03-11  Bruno Haible  <bruno@clisp.org>
63197
63198         * modules/gc-des (Depends-on): Add stdbool.
63199
63200 2007-03-11  Bruno Haible  <bruno@clisp.org>
63201
63202         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63203
63204 2007-03-11  Bruno Haible  <bruno@clisp.org>
63205
63206         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63207
63208 2007-03-11  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63211
63212 2007-03-11  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/vasnprintf.c (sprintf): Undefine.
63215
63216 2007-03-11  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63219         initializers in SunPRO C and Compaq C compilers.
63220
63221 2007-03-11  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63224         decrementing code ANSI C compliant.
63225
63226 2007-03-11  Bruno Haible  <bruno@clisp.org>
63227
63228         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63229         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63230
63231 2007-03-11  Bruno Haible  <bruno@clisp.org>
63232
63233         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63234         <stdbool.h> substitute doesn't pass.
63235
63236 2007-03-11  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63239
63240 2007-03-11  Bruno Haible  <bruno@clisp.org>
63241
63242         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63243         script, for submission to autobuild.josefsson.org.
63244
63245 2007-03-10  Bruno Haible  <bruno@clisp.org>
63246
63247         * modules/canonicalize-lgpl-tests: New file.
63248         * tests/test-canonicalize-lgpl.sh: New file.
63249         * tests/test-canonicalize-lgpl.c: New file.
63250
63251         * modules/c-strcase-tests: New file.
63252         * tests/test-c-strcase.sh: New file.
63253         * tests/test-c-strcasecmp.c: New file.
63254         * tests/test-c-strncasecmp.c: New file.
63255
63256         * modules/atexit-tests: New file.
63257         * tests/test-atexit.sh: New file.
63258         * tests/test-atexit.c: New file.
63259
63260 2007-03-10  Bruno Haible  <bruno@clisp.org>
63261
63262         * tests/test-binary-io.sh: Use temporary filenames that are not so
63263         likely to clash with those of other tests (in a parallel make).
63264         * tests/test-binary-io.c: Likewise.
63265
63266 2007-03-10  Bruno Haible  <bruno@clisp.org>
63267
63268         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63269         fallback; use #error instead.
63270         Suggested by Simon Josefsson.
63271
63272 2007-03-10  Bruno Haible  <bruno@clisp.org>
63273
63274         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63275         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63276         first and the last.
63277
63278 2007-03-10  Bruno Haible  <bruno@clisp.org>
63279
63280         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63281
63282 2007-03-10  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63285         "make distcheck".
63286         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63287         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63288         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63289
63290 2007-03-10  Bruno Haible  <bruno@clisp.org>
63291
63292         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63293         variable.
63294         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63295         variable.
63296
63297 2007-03-09  Eric Blake  <ebb9@byu.net>
63298         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63299
63300         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63301         types are not being provided by gnulib.
63302         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63303         types are supported.
63304
63305 2007-03-10  Bruno Haible  <bruno@clisp.org>
63306
63307         * lib/stdio_.h (__attribute__): New macro.
63308         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63309         vsprintf): Specify __attribute__ __format__ for GCC.
63310         Suggested by Eric Blake.
63311
63312 2007-03-09  Bruno Haible  <bruno@clisp.org>
63313
63314         * modules/printf-posix-tests: New file.
63315         * tests/test-printf-posix.sh: New file.
63316         * tests/test-printf-posix.c: New file.
63317
63318         * modules/printf-posix: New file.
63319         * lib/printf.c: New file.
63320         * m4/printf-posix-rpl.m4: New file.
63321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63322         REPLACE_PRINTF.
63323         * lib/stdio_.h (printf): New declaration.
63324         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63325         ____strfmon____): New macros.
63326         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63327         REPLACE_PRINTF.
63328
63329 2007-03-09  Bruno Haible  <bruno@clisp.org>
63330
63331         * tests/test-vasnprintf-posix2.sh: New file.
63332         * tests/test-vasnprintf-posix2.c: New file.
63333         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63334         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63335         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63336
63337         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63338         a locale dependent decimal point, rather than always '.'.
63339
63340 2007-03-09  Eric Blake  <ebb9@byu.net>
63341
63342         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63343         spite of platforms like Tandem/NSK that define it to -1.
63344
63345 2007-03-08  Bruno Haible  <bruno@clisp.org>
63346
63347         * modules/vprintf-posix-tests: New file.
63348         * tests/test-vprintf-posix.sh: New file.
63349         * tests/test-vprintf-posix.c: New file.
63350         * tests/test-printf-posix.h: New file.
63351
63352         * modules/vprintf-posix: New file.
63353         * lib/vprintf.c: New file.
63354         * m4/vprintf-posix.m4: New file.
63355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63356         REPLACE_VPRINTF.
63357         * lib/stdio_.h (vprintf): New declaration.
63358         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63359         REPLACE_VPRINTF.
63360
63361 2007-03-08  Bruno Haible  <bruno@clisp.org>
63362
63363         * modules/fprintf-posix-tests: New file.
63364         * tests/test-fprintf-posix.sh: New file.
63365         * tests/test-fprintf-posix.c: New file.
63366
63367         * modules/fprintf-posix: New file.
63368         * lib/fprintf.c: New file.
63369         * m4/fprintf-posix.m4: New file.
63370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63371         REPLACE_FPRINTF.
63372         * lib/stdio_.h (fprintf): New declaration.
63373         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63374         REPLACE_FPRINTF.
63375
63376 2007-03-08  Bruno Haible  <bruno@clisp.org>
63377
63378         * modules/vfprintf-posix-tests: New file.
63379         * tests/test-vfprintf-posix.sh: New file.
63380         * tests/test-vfprintf-posix.c: New file.
63381         * tests/test-fprintf-posix.h: New file.
63382         * tests/test-fprintf-posix.out: New file.
63383
63384         * modules/vfprintf-posix: New file.
63385         * lib/vfprintf.c: New file.
63386         * m4/vfprintf-posix.m4: New file.
63387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63388         REPLACE_VFPRINTF.
63389         * lib/stdio_.h (vfprintf): New declaration.
63390         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63391         REPLACE_VFPRINTF.
63392
63393 2007-03-08  Bruno Haible  <bruno@clisp.org>
63394
63395         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63396
63397 2007-03-08  Bruno Haible  <bruno@clisp.org>
63398
63399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63400         instead of 'expr' invocations.
63401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63406         Suggested by Paul Eggert.
63407
63408 2007-03-08  Bruno Haible  <bruno@clisp.org>
63409
63410         * modules/fseterr-tests: New file.
63411         * tests/test-fseterr.c: New file.
63412
63413         * modules/fseterr: New file.
63414         * lib/fseterr.h: New file.
63415         * lib/fseterr.c: New file.
63416
63417 2007-03-08  Bruno Haible  <bruno@clisp.org>
63418
63419         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63420         * lib/getopt_.h: Likewise.
63421         * lib/mbswidth.h: Likewise.
63422         * lib/setenv.h: Likewise.
63423         * lib/vasnprintf.h: Likewise.
63424         * lib/vasprintf.h: Likewise.
63425         * lib/verror.h: Likewise.
63426         * lib/xsetenv.h: Likewise.
63427         * lib/xvasprintf.h: Likewise.
63428
63429 2007-03-08  Jim Meyering  <jim@meyering.net>
63430
63431         * users.txt: Add parted.
63432
63433         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63434
63435 2007-03-07  Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/printf.m4: Make the shell script snippets copy&pastable.
63438
63439 2007-03-02  Bruno Haible  <bruno@clisp.org>
63440
63441         * lib/netinet_in_.h: New file.
63442         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63443         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63444         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63445         (Depends-on): Add absolute-header.
63446         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63447         into netinet/in.h.
63448
63449 2007-03-03  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/sys_select_.h: New file.
63452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63453         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63454         * modules/sys_select (Files): Add lib/sys_select_.h.
63455         (Depends-on): Add absolute-header.
63456         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63457         into sys/select.h.
63458
63459 2007-03-02  Bruno Haible  <bruno@clisp.org>
63460
63461         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63462         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63463         values.
63464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63465         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63466         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63467         * modules/sys_socket (Depends-on): Add absolute-header.
63468         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63469         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63470         (Include): Remove requirement of inclusion of <sys/types.h>.
63471
63472 2007-03-02  Bruno Haible  <bruno@clisp.org>
63473
63474         * lib/byteswap_.h (bswap_32): Fix formula.
63475
63476 2007-03-06  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/sprintf-posix-tests: New file.
63479         * tests/test-sprintf-posix.c: New file.
63480
63481         * modules/sprintf-posix: New file.
63482         * lib/sprintf.c: New file.
63483         * m4/sprintf-posix.m4: New file.
63484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63485         REPLACE_SPRINTF.
63486         * lib/stdio_.h (sprintf): New declaration.
63487         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63488         REPLACE_SPRINTF.
63489
63490 2007-03-06  Bruno Haible  <bruno@clisp.org>
63491
63492         * modules/vsprintf-posix-tests: New file.
63493         * tests/test-vsprintf-posix.c: New file.
63494         * tests/test-sprintf-posix.h: New file.
63495
63496         * modules/vsprintf-posix: New file.
63497         * lib/vsprintf.c: New file.
63498         * m4/vsprintf-posix.m4: New file.
63499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63500         REPLACE_VSPRINTF.
63501         * lib/stdio_.h (vsprintf): New declaration.
63502         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63503         REPLACE_VSPRINTF.
63504
63505 2007-03-06  Bruno Haible  <bruno@clisp.org>
63506
63507         * modules/vsnprintf (Depend-on): Remove minmax.
63508
63509 2007-03-06  Bruno Haible  <bruno@clisp.org>
63510
63511         * modules/snprintf-posix-tests: New file.
63512         * tests/test-snprintf-posix.c: New file.
63513
63514         * modules/snprintf-posix: New file.
63515         * m4/snprintf-posix.m4: New file.
63516         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63517         gl_FUNC_SNPRINTF.
63518         (gl_FUNC_SNPRINTF): Invoke it.
63519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63520         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63521         is set.
63522         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63523
63524 2007-03-06  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/vsnprintf-posix-tests: New file.
63527         * tests/test-vsnprintf-posix.c: New file.
63528         * tests/test-snprintf-posix.h: New file.
63529
63530         * modules/vsnprintf-posix: New file.
63531         * m4/vsnprintf-posix.m4: New file.
63532         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63533         gl_FUNC_VSNPRINTF.
63534         (gl_FUNC_VSNPRINTF): Invoke it.
63535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63536         * lib/stdio_.h (vsnprintf): Define as a replacement if
63537         REPLACE_VSNPRINTF is set.
63538         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63539
63540 2007-03-06  Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63544
63545 2007-03-06  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63548         (asinl): Declare also if HAVE_DECL_ASINL is set.
63549         (atanl): Declare also if HAVE_DECL_ATANL is set.
63550         (ceill): Declare also if HAVE_DECL_CEILL is set.
63551         (cosl): Declare also if HAVE_DECL_COSL is set.
63552         (expl): Declare also if HAVE_DECL_EXPL is set.
63553         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63554         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63555         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63556         (logl): Declare also if HAVE_DECL_LOGL is set.
63557         (sinl): Declare also if HAVE_DECL_SINL is set.
63558         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63559         (tanl): Declare also if HAVE_DECL_TANL is set.
63560         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63562         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63563         declaration of frexpl, ldexpl.
63564         * modules/printf-frexpl (Depends-on): Add math.
63565         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63566
63567 2007-03-05  Bruno Haible  <bruno@clisp.org>
63568
63569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63570         frexpl and ldexpl are declared.
63571         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63572
63573 2007-03-05  Bruno Haible  <bruno@clisp.org>
63574
63575         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63576         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63577
63578 2007-03-05  Bruno Haible  <bruno@clisp.org>
63579
63580         * lib/stdio_.h: Include <stddef.h>.
63581
63582 2007-03-05  Bruno Haible  <bruno@clisp.org>
63583
63584         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63585
63586 2007-03-05  Bruno Haible  <bruno@clisp.org>
63587
63588         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63589         NetBSD 4, from Ralf Wildenhues.
63590
63591 2007-03-04  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/vasprintf.h: Update #if logic for the case when the functions
63594         exist but are overridden.
63595
63596 2007-03-04  Bruno Haible  <bruno@clisp.org>
63597
63598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63599         implementations: glibc-2.4 and MacOS X 10.3.
63600         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63601         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63602         * tests/test-vasprintf-posix.c (test_function): Likewise.
63603
63604 2007-03-04  Bruno Haible  <bruno@clisp.org>
63605
63606         * modules/vasprintf-posix-tests: New file.
63607         * tests/test-vasprintf-posix.c: New file.
63608
63609         * modules/vasprintf-posix: New file.
63610         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63611         defined.
63612         * m4/vasprintf-posix.m4: New file.
63613         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63614         gl_FUNC_VASPRINTF.
63615         (gl_FUNC_VASPRINTF): Invoke it.
63616         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63617         here.
63618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63619
63620 2007-03-04  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63623         REPLACE_GETTIMEOFDAY.
63624         * modules/sys_time (Makefile.am): Likewise.
63625         * m4/sys_time_h.m4: Likewise.
63626         * m4/gettimeofday.m4: Likewise.
63627
63628 2007-03-04  Bruno Haible  <bruno@clisp.org>
63629
63630         * modules/vasnprintf-posix-tests: New file.
63631         * tests/test-vasnprintf-posix.c: New file.
63632
63633         * modules/vasnprintf-posix: New file.
63634         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63635         printf-frexpl.h.
63636         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63637         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63638         REPLACE_VASNPRINTF is defined.
63639         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63640         gl_FUNC_VASNPRINTF.
63641         (gl_FUNC_VASNPRINTF): Invoke it.
63642         * m4/vasnprintf-posix.m4: New file.
63643         * m4/printf.m4: New file.
63644
63645 2007-03-04  Bruno Haible  <bruno@clisp.org>
63646
63647         Compile progreloc.c only if --enable-relocatable is specified.
63648         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63649         if --enable-relocatable was specified.
63650         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63651         lib_SOURCES.
63652
63653 2007-03-04  Jim Meyering  <jim@meyering.net>
63654
63655         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63656         Use it consistently, rather than enumerating errno constants.
63657
63658 2007-03-04  Bruno Haible  <bruno@clisp.org>
63659
63660         * modules/xvasprintf-tests: New file.
63661         * tests/test-xvasprintf.c: New file.
63662
63663         * modules/vasprintf-tests: New file.
63664         * tests/test-vasprintf.c: New file.
63665
63666         * modules/vasnprintf-tests: New file.
63667         * tests/test-vasnprintf.c: New file.
63668
63669         * modules/vsnprintf-tests: New file.
63670         * tests/test-vsnprintf.c: New file.
63671
63672         * modules/snprintf-tests: New file.
63673         * tests/test-snprintf.c: New file.
63674
63675 2007-03-04  Bruno Haible  <bruno@clisp.org>
63676
63677         Compile relocatable.c only if --enable-relocatable is specified.
63678         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63679         gl_RELOCATABLE_LIBRARY.
63680         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63681         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63682         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63683         gl_RELOCATABLE_LIBRARY.
63684         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63685         (Makefile.am): Remove lib_SOURCES.
63686         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63687         gl_RELOCATABLE_LIBRARY.
63688         (Makefile.am): Remove lib_SOURCES.
63689         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63690         always.
63691         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63692         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63693
63694 2007-03-04  Bruno Haible  <bruno@clisp.org>
63695
63696         * modules/argmatch-tests: New file.
63697         * tests/test-argmatch.c: New file.
63698
63699         * tests/test-allocsa.c (main): Halve the number of loop runs.
63700
63701         * modules/alloca-opt-tests: New file.
63702         * tests/test-alloca-opt.c: New file.
63703
63704 2007-03-04  Jim Meyering  <jim@meyering.net>
63705
63706         Work around difference between Linux ACLs and Solaris 10 ZFS.
63707         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63708         for EINVAL.
63709
63710 2007-03-03  Bruno Haible  <bruno@clisp.org>
63711
63712         * modules/relocatable-prog (Depends-on): Add back progreloc's
63713         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63714
63715 2007-03-03  Bruno Haible  <bruno@clisp.org>
63716
63717         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63718         * modules/relocatable-lib: New file.
63719
63720 2007-03-03  Bruno Haible  <bruno@clisp.org>
63721
63722         * modules/relocatable-prog: Renamed from modules/relocatable.
63723         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63724
63725 2007-03-03  Bruno Haible  <bruno@clisp.org>
63726
63727         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63728         m4/relocatable-lib.m4.
63729         (Depends-on): Remove 'relocatable'.
63730         (configure.ac): Add gl_RELOCATABLE_NOP.
63731
63732 2007-03-03  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/relocatable-prog-wrapper: New file.
63735         * modules/relocatable (Depends-on): Add it. Remove all other
63736         dependencies except progname.
63737         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63738
63739         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63740         (gl_FUNC_STRERROR): Nop.
63741         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63742
63743         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63744         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63745
63746         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63747         (gl_FUNC_READLINK): Update.
63748
63749         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63750
63751 2007-03-03  Bruno Haible  <bruno@clisp.org>
63752
63753         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63754         * modules/xreadlink (Depends-on): Add unistd.
63755         * modules/xreadlink-with-size (Depends-on): Likewise.
63756
63757 2007-03-03  Bruno Haible  <bruno@clisp.org>
63758
63759         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63760         extracted from gt_FUNC_SETENV.
63761         (gt_FUNC_SETENV): Remove macro.
63762         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63763         remove gt_FUNC_SETENV.
63764
63765 2007-03-03  Bruno Haible  <bruno@clisp.org>
63766
63767         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63768         ENABLE_RELOCATABLE here.
63769         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63770
63771 2007-03-03  Bruno Haible  <bruno@clisp.org>
63772
63773         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63774         * tests/test-rbtreehash_list.c: Include progname.h.
63775         (main): Call set_program_name.
63776
63777         * modules/rbtree-oset-tests (Depends-on): Add progname.
63778         * tests/test-rbtree_oset.c: Include progname.h.
63779         (main): Call set_program_name.
63780
63781         * modules/rbtree-list-tests (Depends-on): Add progname.
63782         * tests/test-rbtree_list.c: Include progname.h.
63783         (main): Call set_program_name.
63784
63785         * modules/linked-list-tests (Depends-on): Add progname.
63786         * tests/test-linked_list.c: Include progname.h.
63787         (main): Call set_program_name.
63788
63789 2007-03-03  Bruno Haible  <bruno@clisp.org>
63790
63791         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63792         All uses of __restrict changed to _Restrict_.
63793         * lib/glob_.h (__restrict): Remove macro.
63794
63795 2007-03-02  Bruno Haible  <bruno@clisp.org>
63796
63797         * modules/gettext (configure.ac): Require gettext infrastructure
63798         from version 0.16.1.
63799
63800 2007-03-02  Bruno Haible  <bruno@clisp.org>
63801
63802         * modules/linkedhash-list-tests (Depends-on): Add progname.
63803         * tests/test-linkedhash_list.c: Include progname.h.
63804         (main): Call set_program_name.
63805
63806         * modules/carray-list-tests (Depends-on): Add progname.
63807         * tests/test-carray_list.c: Include progname.h.
63808         (main): Call set_program_name.
63809
63810         * modules/avltreehash-list-tests (Depends-on): Add progname.
63811         * tests/test-avltreehash_list.c: Include progname.h.
63812         (main): Call set_program_name.
63813
63814         * modules/avltree-oset-tests (Depends-on): Add progname.
63815         * tests/test-avltree_oset.c: Include progname.h.
63816         (main): Call set_program_name.
63817
63818         * modules/avltree-list-tests (Depends-on): Add progname.
63819         * tests/test-avltree_list.c: Include progname.h.
63820         (main): Call set_program_name.
63821
63822         * modules/array-oset-tests (Depends-on): Add progname.
63823         * tests/test-array_oset.c: Include progname.h.
63824         (main): Call set_program_name.
63825
63826         * modules/array-list-tests (Depends-on): Add progname.
63827         * tests/test-array_list.c: Include progname.h.
63828         (main): Call set_program_name.
63829
63830         * modules/argp-tests (Depends-on): Add progname.
63831         * tests/test-argp.c: Include argp.h first. Include progname.h.
63832         (main): Call set_program_name.
63833
63834 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * doc/gnulib-tool.texi (Initial import): Reword description of
63837         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63838         limited effect even if defined after the first system include.
63839
63840 2007-03-01  Bruno Haible  <bruno@clisp.org>
63841
63842         * build-aux/config.libpath: Update to libtool-1.5.22.
63843         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63844
63845 2007-03-01  Bruno Haible  <bruno@clisp.org>
63846
63847         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63848         foo_CFLAGS.
63849         Reported by Ralf Wildenhues.
63850
63851 2007-03-01  Bruno Haible  <bruno@clisp.org>
63852
63853         * build-aux/install-reloc: Remove object files left over by some
63854         compilers.
63855         Reported by Ralf Wildenhues.
63856
63857 2007-03-01  Bruno Haible  <bruno@clisp.org>
63858
63859         * build-aux/install-reloc: Break long lines.
63860
63861 2007-03-01  Bruno Haible  <bruno@clisp.org>
63862
63863         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63864         Reported by Ralf Wildenhues.
63865
63866 2007-03-01  Bruno Haible  <bruno@clisp.org>
63867
63868         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63869         include ordering constraints.
63870
63871 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63872
63873         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63875         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63876         as another example.
63877         * lib/time_.h: Fix misspelling.
63878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63879         Require gl_HEADER_TIME_H_DEFAULTS.
63880         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63881         * m4/time_r.m4 (gl_TIME_R): Likewise.
63882         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63883
63884 2007-03-01  Bruno Haible  <bruno@clisp.org>
63885
63886         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63887         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63888
63889 2007-03-01  Jim Meyering  <jim@meyering.net>
63890
63891         * modules/xreadlink (Maintainer): Add my name.
63892         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63893
63894 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63895             Bruno Haible  <bruno@clisp.org>
63896
63897         * build-aux/install-reloc: Compile also c-ctype.c.
63898         * build-aux/relocatable.sh.in: New file.
63899         * doc/relocatable.texi: New file.
63900         * doc/relocatable-maint.texi: New file.
63901         * doc/gnulib.texi: Include relocatable-maint.texi.
63902         * lib/progreloc.c: Include unistd.h unconditionally.
63903         * lib/relocwrapper.c: Include unistd.h unconditionally.
63904         Include c-ctype.h.
63905         (add_dotbin): Use c_tolower.
63906         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63907         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63908         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63909         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63910         to m4/relocatable-lib.m4.
63911         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63912         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63913         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63914         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63915         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63916         * modules/relocatable: New file.
63917         * modules/relocatable-lib: New file.
63918         * modules/relocatable-script: New file.
63919
63920 2007-02-28  Bruno Haible  <bruno@clisp.org>
63921
63922         Import --enable-relocatable infrastructure.
63923         * build-aux/config.libpath: New file, from GNU gettext.
63924         * build-aux/install-reloc: New file, from GNU gettext.
63925         * build-aux/reloc-ldflags: New file, from GNU gettext.
63926         * lib/relocatable.h: New file, from GNU gettext.
63927         * lib/relocatable.c: New file, from GNU gettext.
63928         * lib/relocwrapper.c: New file, from GNU gettext.
63929         * m4/relocatable.m4: New file, from GNU gettext.
63930
63931 2007-02-28  Bruno Haible  <bruno@clisp.org>
63932
63933         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63934
63935         * modules/xreadlink: New file, from GNU gettext with modifications.
63936         * lib/xreadlink.c: New file, from GNU gettext.
63937         * lib/xreadlink.h: Add comments.
63938         (xreadlink): New declaration.
63939
63940         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63941         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63942         lib/xreadlink-with-size.c.
63943         (configure.ac): Remove gl_XREADLINK invocation.
63944         (Makefile.am): Augment lib_SOURCES.
63945         * m4/xreadlink.m4: Remove file.
63946         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63947         (xreadlink_with_size): Renamed from xreadink.
63948         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63949         * modules/canonicalize (Depends-on): Replace xreadlink with
63950         xreadlink-with-size.
63951         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63952
63953 2007-02-25  Jim Meyering  <jim@meyering.net>
63954
63955         * build-aux/announce-gen: When complaining about excess arguments,
63956         list them.
63957
63958 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63959
63960         * README: Document signed integer overflow situation more
63961         accurately.
63962
63963 2007-02-25  Bruno Haible  <bruno@clisp.org>
63964
63965         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63966         'a' or 'A' conversion.
63967
63968 2007-02-25  Bruno Haible  <bruno@clisp.org>
63969
63970         * modules/filename: Renamed from modules/pathname.
63971         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63972         lib/concatpath.c with lib/concat-filename.c.
63973         (Makefile.am): Update.
63974         (Include): Replace pathname.h with filename.h.
63975         * lib/filename.h: Renamed from lib/pathname.h.
63976         (concatenated_filename): Renamed from concatenated_pathname.
63977         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63978         (concatenated_filename): Renamed from concatenated_pathname.
63979         * lib/findprog.c: Include filename.h instead of pathname.h.
63980         (find_in_path): Update.
63981         * lib/javacomp.c: Include filename.h instead of pathname.h.
63982         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63983         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63984         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63985         is_oldgcj_14_13_usable, is_javac_usable): Update.
63986         * lib/javaexec.c: Include filename.h instead of pathname.h.
63987         (execute_java_class): Update.
63988         * modules/findprog: Update.
63989         * modules/javacomp: Update.
63990         * modules/javaexec: Update.
63991         * MODULES.html.sh (File system functions): Add 'filename', remove
63992         'pathname'.
63993
63994 2007-02-25  Bruno Haible  <bruno@clisp.org>
63995
63996         * modules/printf-frexpl-tests: New file.
63997         * tests/test-printf-frexpl.c: New file.
63998
63999         * modules/printf-frexpl: New file.
64000         * lib/printf-frexpl.h: New file.
64001         * lib/printf-frexpl.c: New file.
64002         * m4/printf-frexpl.m4: New file.
64003
64004 2007-02-25  Bruno Haible  <bruno@clisp.org>
64005
64006         * modules/printf-frexp-tests: New file.
64007         * tests/test-printf-frexp.c: New file.
64008
64009         * modules/printf-frexp: New file.
64010         * lib/printf-frexp.h: New file.
64011         * lib/printf-frexp.c: New file.
64012         * m4/printf-frexp.m4: New file.
64013
64014 2007-02-25  Bruno Haible  <bruno@clisp.org>
64015
64016         Assume automake >= 1.10 for the tests.
64017         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64018         * modules/arctwo-tests: Likewise.
64019         * modules/argp-tests: Likewise.
64020         * modules/avltree-list-tests: Likewise.
64021         * modules/avltree-oset-tests: Likewise.
64022         * modules/avltreehash-list-tests: Likewise.
64023         * modules/carray-list-tests: Likewise.
64024         * modules/crc-tests: Likewise.
64025         * modules/des-tests: Likewise.
64026         * modules/gc-arcfour-tests: Likewise.
64027         * modules/gc-arctwo-tests: Likewise.
64028         * modules/gc-des-tests: Likewise.
64029         * modules/gc-hmac-md5-tests: Likewise.
64030         * modules/gc-hmac-sha1-tests: Likewise.
64031         * modules/gc-md2-tests: Likewise.
64032         * modules/gc-md4-tests: Likewise.
64033         * modules/gc-md5-tests: Likewise.
64034         * modules/gc-pbkdf2-sha1-tests: Likewise.
64035         * modules/gc-rijndael-tests: Likewise.
64036         * modules/gc-sha1-tests: Likewise.
64037         * modules/gc-tests: Likewise.
64038         * modules/getaddrinfo-tests: Likewise.
64039         * modules/hmac-md5-tests: Likewise.
64040         * modules/hmac-sha1-tests: Likewise.
64041         * modules/linked-list-tests: Likewise.
64042         * modules/linkedhash-list-tests: Likewise.
64043         * modules/lock-tests: Likewise.
64044         * modules/md2-tests: Likewise.
64045         * modules/md4-tests: Likewise.
64046         * modules/md5-tests: Likewise.
64047         * modules/rbtree-list-tests: Likewise.
64048         * modules/rbtree-oset-tests: Likewise.
64049         * modules/rbtreehash-list-tests: Likewise.
64050         * modules/read-file-tests: Likewise.
64051         * modules/rijndael-tests: Likewise.
64052         * modules/stdint-tests: Likewise.
64053         * modules/tls-tests: Likewise.
64054
64055 2007-02-24  Bruno Haible  <bruno@clisp.org>
64056
64057         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64058         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64059         function; instead check whether isnan with a double argument links.
64060         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64061         function; instead check whether isnan with a 'long double' argument
64062         links.
64063         Reported by Eric Blake <ebb9@byu.net>.
64064
64065 2007-02-24  Bruno Haible  <bruno@clisp.org>
64066
64067         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64068         defined.
64069         * lib/isnanl.c: Remove all code. Just include isnan.c.
64070         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64071
64072 2007-02-25  Jim Meyering  <jim@meyering.net>
64073
64074         Avoid conflicting types for 'unsetenv' on FreeBSD.
64075         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64076         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64077         in stdlib.h.
64078
64079 2007-02-24  Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/isnanl-nolibm-tests: New file.
64082         * tests/test-isnanl.c: New file.
64083
64084         * modules/isnanl-nolibm: New file.
64085         * lib/isnanl.h: New file.
64086         * lib/isnanl.c: New file.
64087         * m4/isnanl.m4: New file.
64088
64089 2007-02-24  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/isnan-nolibm-tests: New file.
64092         * tests/test-isnan.c: New file.
64093
64094         * modules/isnan-nolibm: New file.
64095         * lib/isnan.h: New file.
64096         * lib/isnan.c: New file.
64097         * m4/isnan.m4: New file.
64098
64099 2007-02-24  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64102         assume that an exponent fits in 20 bits.
64103
64104 2007-02-24  Jim Meyering  <jim@meyering.net>
64105
64106         * m4/regex.m4: Update the description of the configure-time option,
64107         --without-included-regex, to state accurately what the defaults are,
64108         and perhaps to give people an idea why using this option is risky.
64109
64110 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64111
64112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64113         loops on small arguments.  This attempts to avoid the problem
64114         Bruno Haible reported for AIX 4.3.2 in
64115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64116
64117 2007-02-23  Bruno Haible  <bruno@clisp.org>
64118
64119         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64120         Needed for help2man.
64121
64122 2007-02-23  Karl Berry  <karl@gnu.org>
64123
64124         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64125         exists, foo.h should be cvs-ignored, not committed.
64126
64127 2007-02-23  Eric Blake  <ebb9@byu.net>
64128
64129         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64130         * lib/stat-time.h (includes): Likewise.
64131         * lib/utimecmp.c (includes): Likewise.
64132         * lib/utimens.h (includes): Likewise.
64133         * lib/getdate.y (includes): Also include "timespec.h" for use
64134         internal to the module.
64135         * modules/utimens (Depends-on): Revert yesterday's patch.
64136         * modules/nanosleep (Depends-on): Add missing dependency.
64137
64138 2007-02-22  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/glob.c: Don't include getlogin_r.h.
64141
64142 2007-02-22  Jim Meyering  <jim@meyering.net>
64143
64144         * modules/utimens (Depends-on): Add timespec, required for
64145         utimens.h's inclusion of timespec.h.
64146
64147 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64150         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64151         Schwab in
64152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64153         I'll try to think of a better way to fix the Solaris problem.
64154
64155         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64156         like glibc; on Solaris 10, it fails with errno == EINVAL.
64157         POSIX says the behavior is unspecified if the first argument is NULL,
64158         so play it safe and never pass NULL to the system getcwd.
64159
64160 2007-02-21  Jim Meyering  <jim@meyering.net>
64161
64162         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64163         of gettimeofday.  It would conflict with the one now always
64164         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64165         an IRIX 6.5 build failure.
64166
64167 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         Minor fixups to port to Solaris 10 with Sun C 5.8.
64170         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64171         * modules/getcwd (Depends-on): Add dirfd.
64172         * lib/putenv.c (putenv): #undef it.
64173         (rpl_putenv): New decl.
64174         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64175
64176 2007-02-20  Bruno Haible  <bruno@clisp.org>
64177
64178         * modules/stdio-tests: New file.
64179         * tests/test-stdio.c: New file.
64180
64181         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64182         (Depends-on): Add stdio.
64183         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64184         (Include): Use <stdio.h> instead of vsnprintf.h.
64185         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64186         HAVE_DECL_VSNPRINTF.
64187         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64188
64189         * modules/snprintf (Files): Remove lib/snprintf.h.
64190         (Depends-on): Add stdio.
64191         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64192         (Include): Use <stdio.h> instead of snprintf.h.
64193         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64194         HAVE_DECL_SNPRINTF.
64195         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64196         * lib/getaddrinfo.c: Likewise.
64197
64198         * modules/stdio: New file.
64199         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64200         * lib/snprintf.h: Remove file.
64201         * lib/vsnprintf.h: Remove file.
64202         * lib/.cppi-disable: Remove snprintf.h.
64203         * m4/stdio_h.m4: New file.
64204         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64205
64206 2007-02-20  Jim Meyering  <jim@meyering.net>
64207
64208         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64209         used by e.g., mingw.  From Bruno Haible.
64210
64211 2007-02-19  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64214         warnings.
64215         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64216
64217 2007-02-19  Bruno Haible  <bruno@clisp.org>
64218
64219         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64220         from mingw users.
64221
64222 2007-02-19  Bruno Haible  <bruno@clisp.org>
64223
64224         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64225         warnings.
64226         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64227
64228 2007-02-19  Jim Meyering  <jim@meyering.net>
64229
64230         Don't use FD after a successful "fdopendir (fd)".
64231         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64232         Reset it by calling dirfd on the just-obtained DIR*.
64233
64234         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64235         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64236
64237 2007-02-18  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/readlink.c: Include <unistd.h>.
64240         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64241         HAVE_READLINK.
64242         * modules/readlink (Depends-on): Add unistd.
64243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64244         (Include): Add <unistd.h>.
64245
64246         * lib/getlogin_r.h: Remove file.
64247         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64248         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64249         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64250         HAVE_DECL_GETLOGIN_R.
64251         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64253         (Include): Use <unistd.h> instead of getlogin_r.h.
64254
64255         * lib/getcwd.h: Remove file.
64256         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64257         * lib/xgetcwd.c: Likewise.
64258         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64259         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64260         * modules/getcwd (Files): Remove lib/getcwd.h.
64261         (Depends-on): Add unistd.
64262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64263         (Include): Use <unistd.h> instad of getcwd.h.
64264
64265         * lib/ftruncate.c: Include <unistd.h> first.
64266         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64267         Set HAVE_FTRUNCATE.
64268         * modules/ftruncate (Depends-on): Add unistd.
64269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64270
64271         * lib/fchdir.c: Include <unistd.h> first.
64272         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64274         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64275         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64276         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64277
64278         * lib/dup2.c: Include <unistd.h> first.
64279         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64280         HAVE_DUP2.
64281         * modules/dup2 (Depends-on): Add unistd.
64282         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64283
64284         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64285         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64286         REPLACE_CHOWN. Don't define chown as a macro here.
64287         * modules/chown (Depends-on): Add unistd.
64288         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64289
64290         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64291         Add definition for GL_LINK_WARNING.
64292         (chown, dup2): New declarations.
64293         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64294         link warning.
64295         (ftruncate): New declaration.
64296         (getcwd): New declaration, taken from old getcwd.h.
64297         (getlogin_r): New declaration, taken from old getlogin_r.h.
64298         (readlink): New declaration.
64299         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64300         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64301         (gl_PREREQ_UNISTD): Remove macro.
64302         (gl_UNISTD_MODULE_INDICATOR): New macro.
64303         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64304         many new variables. Don't set UNISTD_H.
64305         * modules/unistd (Description): Change.
64306         (Depends-on): Add link-warning.
64307         (configure.ac): Update.
64308         (Makefile.am): Create unistd.h always. Substitute many new variables
64309         into it.
64310
64311 2007-02-18  Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64314         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64315         HAVE_GETSUBOPT.
64316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64317         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64318         * lib/getsubopt.h: Remove file.
64319         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64320         (Depends-on): Add stdlib.
64321         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64322         (Includes): Use <stdlib.h> instead of getsubopt.h.
64323         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64324         Set HAVE_GETSUBOPT.
64325         * lib/getsubopt.c: Don't include getsubopt.h.
64326
64327 2007-02-18  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/fchdir (Depends-on): Add dup2.
64330
64331 2007-02-18  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/stdlib_.h: Handle glibc's special invocation convention
64334         specially.
64335
64336 2007-02-18  Bruno Haible  <bruno@clisp.org>
64337
64338         * modules/stdlib-tests: New file.
64339         * tests/test-stdlib.c: New file.
64340
64341         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64342         (Depends-on): Add stdlib.
64343         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64344         (Includes): Use <stdlib.h> instead of mkstemp.h.
64345         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64346         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64347         * lib/mkstemp.c: Don't include mkstemp.h.
64348         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64349         * lib/stdlib--.h: Don't include mkstemp.h.
64350
64351         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64352         (Depends-on): Add stdlib.
64353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64354         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64355         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64356         HAVE_MKDTEMP.
64357         * lib/mkdtemp.c: Don't include mkdtemp.h.
64358         * lib/clean-temp.c: Don't include mkdtemp.h.
64359
64360         * modules/exit (Files): Remove lib/exit.h.
64361         (Depends-on): Add stdlib.
64362         (Makefile.am): Remove lib_SOURCES.
64363         (Include): Use <stdlib.h> instead of exit.h.
64364         * lib/argmatch.c: Don't include exit.h.
64365         * lib/execute.c: Likewise.
64366         * lib/pagealign_alloc.c: Likewise.
64367         * lib/pipe.c: Likewise.
64368         * lib/wait-process.c: Likewise.
64369         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64370         * lib/exitfail.c: Likewise.
64371         * lib/savewd.c: Likewise.
64372         * lib/xsetenv.c: Likewise.
64373
64374         * modules/stdlib: New file.
64375         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64376         and extra comments about mkstemp().
64377         * lib/exit.h: Remove file.
64378         * lib/mkdtemp.h: Remove file.
64379         * lib/mkstemp.h: Remove file.
64380         * m4/stdlib_h.m4: New file.
64381         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64382
64383 2007-02-18  Bruno Haible  <bruno@clisp.org>
64384
64385         * modules/math-tests: New file.
64386         * tests/test-math.c: New file.
64387
64388         * modules/math: New file.
64389         * modules/mathl (Files): Remove lib/mathl.h.
64390         (Depends-on): Add math.
64391         (Makefile.am): Don't mention mathl.h.
64392         (Include): Use <math.h> instead of mathl.h.
64393         * lib/math_.h: New file.
64394         * lib/mathl.h: Remove file.
64395         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64396         mathl.h.
64397         * lib/asinl.c: Likewise.
64398         * lib/atanl.c: Likewise.
64399         * lib/ceill.c: Likewise.
64400         * lib/cosl.c: Likewise.
64401         * lib/expl.c: Likewise.
64402         * lib/floorl.c: Likewise.
64403         * lib/frexpl.c: Likewise.
64404         * lib/ldexpl.c: Likewise.
64405         * lib/logl.c: Likewise.
64406         * lib/sincosl.c: Likewise.
64407         * lib/sinl.c: Likewise.
64408         * lib/sqrtl.c: Likewise.
64409         * lib/tanl.c: Likewise.
64410         * lib/trigl.c: Likewise.
64411         * m4/math_h.m4: New file.
64412         * MODULES.html.sh (Mathematics): Add math.
64413
64414 2007-02-17  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/wctype-tests: New file.
64417         * tests/test-wctype.c: New file.
64418
64419         * modules/wchar-tests: New file.
64420         * tests/test-wchar.c: New file.
64421
64422         * modules/unistd-tests: New file.
64423         * tests/test-unistd.c: New file.
64424
64425         * modules/time-tests: New file.
64426         * tests/test-time.c: New file.
64427
64428         * modules/sysexits-tests: New file.
64429         * tests/test-sysexits.c: New file.
64430
64431         * modules/sys_time-tests: New file.
64432         * tests/test-sys_time.c: New file.
64433
64434         * modules/sys_stat-tests: New file.
64435         * tests/test-sys_stat.c: New file.
64436
64437         * modules/sys_socket-tests: New file.
64438         * tests/test-sys_socket.c: New file.
64439
64440         * modules/sys_select-tests: New file.
64441         * tests/test-sys_select.c: New file.
64442
64443         * modules/string-tests: New file.
64444         * tests/test-string.c: New file.
64445
64446         * modules/stdbool-tests: New file.
64447         * tests/test-stdbool.c: New file.
64448
64449         * modules/netinet_in-tests: New file.
64450         * tests/test-netinet_in.c: New file.
64451
64452         * modules/inttypes-tests: New file.
64453         * tests/test-inttypes.c: New file.
64454
64455         * modules/fcntl-tests: New file.
64456         * tests/test-fcntl.c: New file.
64457
64458         * modules/byteswap-tests: New file.
64459         * tests/test-byteswap.c: New file.
64460
64461         * modules/arpa_inet-tests: New file.
64462         * tests/test-arpa_inet.c: New file.
64463
64464 2007-02-17  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64467         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64468         if the corresponding module is not enabled. Emit link warnings if
64469         the function is used nevertheless.
64470         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64471         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64472         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64473         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64474         * modules/inttypes (Depends-on): Add link-warning.
64475         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64476         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64477         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64478         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64479         * modules/imaxdiv (configure.ac): Likewise.
64480         * modules/strtoimax (configure.ac): Likewise.
64481         * modules/strtoumax (configure.ac): Likewise.
64482
64483 2007-02-17  Bruno Haible  <bruno@clisp.org>
64484
64485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64486         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64488         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64489
64490 2007-02-17  Bruno Haible  <bruno@clisp.org>
64491
64492         * modules/link-warning: New file.
64493         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64494         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64495         * modules/string (Depends-on): Add link-warning.
64496         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64497         string.h.
64498         * MODULES.html.sh (Support for building libraries and executables): Add
64499         link-warning.
64500
64501 2007-02-17  Bruno Haible  <bruno@clisp.org>
64502
64503         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64504         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64505         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64506         long lines.
64507
64508 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64509             Bruno Haible  <bruno@clisp.org>
64510
64511         * modules/tmpfile: New file.
64512         * lib/tmpfile.c: New file.
64513         * m4/tmpfile.m4: New file.
64514         * MODULES.html.sh (func_all_modules): New section "Input/output".
64515
64516 2007-02-15  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64519         (supports_delete_on_close): New function.
64520         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64521
64522 2007-02-14  Bruno Haible  <bruno@clisp.org>
64523
64524         * modules/mbspcasecmp-tests: New file.
64525         * tests/test-mbspcasecmp.sh: New file.
64526         * tests/test-mbspcasecmp.c: New file.
64527
64528         New module mbspcasecmp.
64529         * modules/mbspcasecmp: New file.
64530         * lib/mbspcasecmp.c: New file.
64531         * lib/string_.h (strncasecmp): Change warning message.
64532         (mbspcasecmp): New declaration.
64533         * m4/mbspcasecmp.m4: New file.
64534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64535         GNULIB_MBSPCASECMP.
64536         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64537         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64538
64539 2007-02-14  Bruno Haible  <bruno@clisp.org>
64540
64541         * modules/mbsncasecmp-tests: New file.
64542         * tests/test-mbsncasecmp.sh: New file.
64543         * tests/test-mbsncasecmp.c: New file.
64544
64545         New module mbsncasecmp.
64546         * modules/mbsncasecmp: New file.
64547         * lib/mbsncasecmp.c: New file.
64548         * lib/string_.h (mbsncasecmp): New declaration.
64549         * m4/mbsncasecmp.m4: New file.
64550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64551         GNULIB_MBSNCASECMP.
64552         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64553         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64554
64555 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64558         Verify that it doesn't overlap with our flags.
64559         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64560         do not have the desired effect in multibyte locales; instead, use
64561         mbscasecmp.
64562         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64563         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64564         we don't require GNU fnmatch ourselves (if our users require it, they
64565         should do so explicitly).
64566
64567         Fix regex code so it doesn't rely on strcasecmp.
64568         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64569         Otherwise, include gnulib's langinfo.h.
64570         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64571         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64572         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64573         * modules/regex (FILES): Remove m4/codeset.m4.
64574         (Depends-on): Add localcharset.  Remove strcase.
64575
64576 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64577
64578         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64579         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64580
64581 2007-02-13  Bruno Haible  <bruno@clisp.org>
64582
64583         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64584         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64585
64586 2007-02-12  Bruno Haible  <bruno@clisp.org>
64587
64588         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64589         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64590         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64591         time warning rather than a link error.
64592
64593 2007-02-12  Bruno Haible  <bruno@clisp.org>
64594
64595         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64596         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64598
64599 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64602         args, not 2.
64603
64604 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         New module 'time', so that apps can include <time.h> as per
64607         POSIX and GNU instead of separate include files like time_r.h
64608         and timegm.h.  This implementation tries out a simpler approach
64609         for replacing decls in standard include files (as compared to
64610         the string module), somewhat as an experiment.
64611
64612         * config/srclist.txt: Comment out mktime.c for now.
64613         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64614         since it doesn't apply any more.  Use generic wording instead.
64615         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64616         'time'.
64617         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64618         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64619         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64620         Don't include <sys/types.h>; no longer needed since we assume C89.
64621         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64622         * lib/strftime.c: Likewise.
64623         * lib/time_r.c: Likewise.
64624         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64625         * lib/nanosleep.c: Include <time.h> first, to check interface.
64626         * lib/strptime.c: Likewise.
64627         * lib/time_r.c: Likewise.
64628         * lib/timegm.c: Likewise.
64629         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64630         needed.
64631         * lib/timegm.c: Don't include timegm.h; no longer needed.
64632         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64633         time.h now handles any problems in that area.
64634         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64635         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64636         that time.h defines struct timespec.
64637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64638         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64639         handles that.
64640         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64641         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64642         needed.  Set REPLACE_LOCALTIME.
64643         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64644         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64645         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64646         nanosleep; time_h.m4 now does that.  Don't require
64647         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64648         module handles this now.
64649         * modules/getdate (Depends-on): Remove timespec.  Add time.
64650         * modules/nanosleep (Depends-on): Likewise.
64651         * modules/stat-time (Depends-on): Likewise.
64652         * modules/nanosleep (Include): Include time.h, not timespec.h.
64653         * modules/strptime (Files): Remove lib/strptime.h.
64654         (Depends-on): Add extensions, time.
64655         (Include): Include time.h, not strptime.h.
64656         * modules/time_r (Files): Remove lib/time_r.h.
64657         (Depends-on): Add time.
64658         (Include): Include time.h, not time_r.h.
64659         * modules/timegm: Likewise.
64660         * modules/timespec (Description): Now does timespec-related decls
64661         of our own, instead of struct timespec itself.
64662         (Depends-on): Add time; remove extensions.
64663         (Maintainer): Add self.
64664         * modules/utimecmp (Depends-on): Add time; remove timespec.
64665         * modules/utimens (Depends-on): Likewise.
64666         * modules/xnanosleep (Depends-on): Likewise.
64667
64668 2007-02-11  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/c-strstr.c: Include allocsa.h.
64671         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64672         * lib/c-strcasestr.c: Include allocsa.h.
64673         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64674         * lib/strcasestr.c: Include allocsa.h.
64675         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64676         * lib/mbsstr.c: Include allocsa.h.
64677         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64678         allocsa/freesa instead of malloc/free.
64679         * lib/mbscasestr.c: Include allocsa.h.
64680         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64681         allocsa/freesa instead of malloc/free.
64682         * modules/c-strstr (Depends-on): Add allocsa.
64683         * modules/c-strcasestr (Depends-on): Likewise.
64684         * modules/strcasestr (Depends-on): Likewise.
64685         * modules/mbsstr (Depends-on): Likewise.
64686         * modules/mbscasestr (Depends-on): Likewise.
64687
64688 2007-02-11  Bruno Haible  <bruno@clisp.org>
64689
64690         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64691
64692         * modules/mbsspn-tests: New file.
64693         * tests/test-mbsspn.sh: New file.
64694         * tests/test-mbsspn.c: New file.
64695
64696 2007-02-11  Bruno Haible  <bruno@clisp.org>
64697
64698         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64699
64700         * modules/mbspbrk-tests: New file.
64701         * tests/test-mbspbrk.sh: New file.
64702         * tests/test-mbspbrk.c: New file.
64703
64704 2007-02-11  Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64707         unneeded cast.
64708
64709         * modules/mbscspn-tests: New file.
64710         * tests/test-mbscspn.sh: New file.
64711         * tests/test-mbscspn.c: New file.
64712
64713 2007-02-11  Bruno Haible  <bruno@clisp.org>
64714
64715         * modules/mbscasecmp-tests: New file.
64716         * tests/test-mbscasecmp.sh: New file.
64717         * tests/test-mbscasecmp.c: New file.
64718
64719 2007-02-11  Bruno Haible  <bruno@clisp.org>
64720
64721         Ensure O(n) worst-case complexity of mbscasestr.
64722         * lib/mbscasestr.c: Include stdbool.h.
64723         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64724         functions.
64725         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64726         the bookkeeping indicates that it's worth it.
64727         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64728
64729         * modules/mbscasestr-tests: New file.
64730         * tests/test-mbscasestr1.c: New file.
64731         * tests/test-mbscasestr2.sh: New file.
64732         * tests/test-mbscasestr2.c: New file.
64733         * tests/test-mbscasestr3.sh: New file.
64734         * tests/test-mbscasestr3.c: New file.
64735         * tests/test-mbscasestr4.sh: New file.
64736         * tests/test-mbscasestr4.c: New file.
64737         * m4/locale-tr.m4: New file.
64738
64739 2007-02-11  Bruno Haible  <bruno@clisp.org>
64740
64741         Ensure O(n) worst-case complexity of mbsstr.
64742         * lib/mbsstr.c: Include stdbool.h.
64743         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64744         functions.
64745         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64746         bookkeeping indicates that it's worth it.
64747         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64748
64749         * modules/mbsstr-tests: New file.
64750         * tests/test-mbsstr1.c: New file.
64751         * tests/test-mbsstr2.sh: New file.
64752         * tests/test-mbsstr2.c: New file.
64753         * tests/test-mbsstr3.sh: New file.
64754         * tests/test-mbsstr3.c: New file.
64755         * m4/locale-fr.m4: New file.
64756
64757 2007-02-11  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/mbsrchr.c (mbsrchr): Fix bug.
64760
64761         * modules/mbsrchr-tests: New file.
64762         * tests/test-mbsrchr.sh: New file.
64763         * tests/test-mbsrchr.c: New file.
64764
64765 2007-02-11  Bruno Haible  <bruno@clisp.org>
64766
64767         * lib/mbschr.c (mbschr): Fix bug.
64768
64769         * modules/mbschr-tests: New file.
64770         * tests/test-mbschr.sh: New file.
64771         * tests/test-mbschr.c: New file.
64772         * m4/locale-zh.m4: New file.
64773
64774 2007-02-11  Bruno Haible  <bruno@clisp.org>
64775
64776         Support for copying multibyte string iterators.
64777         * lib/mbiter.h: Include <string.h>.
64778         (mbiter_multi_copy): New function.
64779         (mbi_copy): New macro.
64780         * lib/mbuiter.h: Include <string.h>.
64781         (mbuiter_multi_copy): New function.
64782         (mbui_copy): New macro.
64783
64784 2007-02-11  Bruno Haible  <bruno@clisp.org>
64785
64786         New module mbslen.
64787         * modules/mbslen: New file.
64788         * lib/mbslen.c: New file.
64789         * lib/string_.h (mbslen): New declaration.
64790         * m4/mbslen.m4: New file.
64791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64792         GNULIB_MBSLEN.
64793         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64794         * MODULES.html.sh (Internationalization functions): Add mbslen.
64795
64796 2007-02-11  Bruno Haible  <bruno@clisp.org>
64797
64798         Ensure O(n) worst-case complexity of strcasestr substitute.
64799         * lib/strcasestr.c: Include stdbool.h.
64800         (knuth_morris_pratt): New function.
64801         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64802         bookkeeping indicates that it's worth it.
64803         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64804
64805         * modules/strcasestr-tests: New file.
64806         * tests/test-strcasestr.c: New file.
64807
64808 2007-02-11  Bruno Haible  <bruno@clisp.org>
64809
64810         Ensure O(n) worst-case complexity of c_strcasestr.
64811         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64812         (knuth_morris_pratt): New function.
64813         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64814         the bookkeeping indicates that it's worth it.
64815         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64816
64817         * modules/c-strcasestr-tests: New file.
64818         * tests/test-c-strcasestr.c: New file.
64819
64820 2007-02-11  Bruno Haible  <bruno@clisp.org>
64821
64822         Ensure O(n) worst-case complexity of c_strstr.
64823         * lib/c-strstr.c: Include stdbool.h, string.h.
64824         (knuth_morris_pratt): New function.
64825         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64826         bookkeeping indicates that it's worth it.
64827         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64828
64829         * lib/c-strstr.c: Complete rewrite for maintainability.
64830
64831         * modules/c-strstr-tests: New file.
64832         * tests/test-c-strstr.c: New file.
64833
64834 2007-02-11  Bruno Haible  <bruno@clisp.org>
64835
64836         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64837         5.2.1 and earlier, whereby \055 was treated just like the range
64838         delimiter '-'.
64839         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64840
64841 2007-02-08  Bruno Haible  <bruno@clisp.org>
64842
64843         * modules/regex (Depends-on): Add stdbool.
64844         Reported by Dalibor Topic <robilad@kaffe.org>.
64845
64846 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64849         Prefer returning from main to exiting from it.
64850         Remove unnecessary parens after sizeof.
64851
64852 2007-02-05  Bruno Haible  <bruno@clisp.org>
64853
64854         New module mbssep.
64855         * modules/mbssep: New file.
64856         * lib/mbssep.c: New file.
64857         * lib/string_.h (strsep): Add a conditional link warning.
64858         (mbssep): New declaration.
64859         * m4/mbssep.m4: New file.
64860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64861         GNULIB_MBSSEP.
64862         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64863         * MODULES.html.sh (Internationalization functions): Add mbssep.
64864
64865 2007-02-05  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64868         Optimize search in case of 1 delimiter.
64869
64870 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64871
64872         * lib/acl.h: Include sys/types.h before sys/acl.h.
64873
64874 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64875
64876         Merge upstream fix for glibc bugzilla #3957:
64877
64878         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64879
64880         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64881         bit for RE_HAT_LISTS_NOT_NEWLINE.
64882         (build_charclass_op): Remove bogus comment.
64883
64884 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64885
64886         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64887
64888 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64891         * lib/memmem.c [!defined _LIBC]: Include config.h.
64892
64893 2007-02-04  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64896         warning message.
64897
64898 2007-02-04  Bruno Haible  <bruno@clisp.org>
64899
64900         New module mbstok_r.
64901         * modules/mbstok_r: New file.
64902         * lib/mbstok_r.c: New file.
64903         * lib/string_.h (strtok_r): Change argument names to match the
64904         comments. Add a conditional link warning.
64905         (mbstok_r): New declaration.
64906         * m4/mbstok_r.m4: New file.
64907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64908         GNULIB_MBSTOK_R.
64909         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64910         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64911
64912 2007-02-04  Bruno Haible  <bruno@clisp.org>
64913
64914         New module mbsspn.
64915         * modules/mbsspn: New file.
64916         * lib/mbsspn.c: New file.
64917         * lib/string_.h (strspn): Add a conditional link warning.
64918         (mbsspn): New declaration.
64919         * m4/mbsspn.m4: New file.
64920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64921         GNULIB_MBSSPN.
64922         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64923         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64924
64925 2007-02-04  Bruno Haible  <bruno@clisp.org>
64926
64927         New module mbspbrk.
64928         * modules/mbspbrk: New file.
64929         * lib/mbspbrk.c: New file.
64930         * lib/string_.h (strpbrk): Add a conditional link warning.
64931         (mbspbrk): New declaration.
64932         * m4/mbspbrk.m4: New file.
64933         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64934         GNULIB_MBSPBRK.
64935         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64936         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64937
64938 2007-02-04  Bruno Haible  <bruno@clisp.org>
64939
64940         New module mbscspn.
64941         * modules/mbscspn: New file.
64942         * lib/mbscspn.c: New file.
64943         * lib/string_.h (strcspn): Add a conditional link warning.
64944         (mbscspn): New declaration.
64945         * m4/mbscspn.m4: New file.
64946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64947         GNULIB_MBSCSPN.
64948         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64949         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64950
64951 2007-02-04  Bruno Haible  <bruno@clisp.org>
64952
64953         New module mbscasestr, reduced goal of strcasestr.
64954         * modules/mbscasestr: New file.
64955         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64956         (mbscasestr): Renamed from strcasestr.
64957         * lib/strcasestr.c: Don't include mbuiter.h.
64958         (strcasestr): Remove support for multibyte locales.
64959         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64960         Change the conditional link warning.
64961         (mbscasestr): New declaration.
64962         * m4/mbscasestr.m4: New file.
64963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64964         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64965         REPLACE_STRCASESTR.
64966         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64968         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64969         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64970         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64971         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64972         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64973         (Depends-on): Remove mbuiter.
64974         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64975
64976 2007-02-04  Bruno Haible  <bruno@clisp.org>
64977
64978         Simplify handling of strncasecmp.
64979         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64980         the conditional link warning.
64981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64982         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64983         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64984         * modules/strcase (configure.ac): Don't invoke
64985         gl_STRING_MODULE_INDICATOR.
64986         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64987
64988 2007-02-04  Bruno Haible  <bruno@clisp.org>
64989
64990         New module mbscasecmp, reduced goal of strcasecmp.
64991         * modules/mbscasecmp: New file.
64992         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64993         (mbscasecmp): Renamed from strcasecmp.
64994         * lib/strcasecmp.c: Don't include mbuiter.h.
64995         (strcasecmp): Remove support for multibyte locales.
64996         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64997         Change the conditional link warning.
64998         (mbscasecmp): New declaration.
64999         * m4/mbscasecmp.m4: New file.
65000         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65001         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65002         REPLACE_STRCASECMP.
65003         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65004         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65005         GNULIB_MBSCASECMP.
65006         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65007         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65008         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65009         (Depends-on): Remove mbuiter.
65010         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65011
65012 2007-02-04  Bruno Haible  <bruno@clisp.org>
65013
65014         New module mbsstr. Remove module strstr.
65015         * modules/mbsstr: New file.
65016         * modules/strstr: Remove file.
65017         * lib/mbsstr.c: Renamed from lib/strstr.c.
65018         (mbsstr): Renamed from strstr.
65019         * lib/string_.h (strstr): Remove declaration. Change the conditional
65020         link warning.
65021         (mbsstr): New declaration.
65022         * m4/mbsstr.m4: New file.
65023         * m4/strstr.m4: Remove file.
65024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65025         REPLACE_STRSTR.
65026         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65027         Don't initialize GNULIB_STRSTR.
65028         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65029         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65030         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65031         (Support for systems lacking ANSI C 89): Remove strstr.
65032
65033 2007-02-04  Bruno Haible  <bruno@clisp.org>
65034
65035         New module mbsrchr.
65036         * modules/mbsrchr: New file.
65037         * lib/mbsrchr.c: New file.
65038         * lib/string_.h (strrchr): Add a conditional link warning.
65039         (mbsrchr): New declaration.
65040         * m4/mbsrchr.m4: New file.
65041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65042         GNULIB_MBSRCHR.
65043         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65044         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65045
65046 2007-02-04  Bruno Haible  <bruno@clisp.org>
65047
65048         New module mbschr.
65049         * modules/mbschr: New file.
65050         * lib/mbschr.c: New file.
65051         * lib/string_.h (strchr): Add a conditional link warning.
65052         (mbschr): New declaration.
65053         * m4/mbschr.m4: New file.
65054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65055         GNULIB_MBSCHR.
65056         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65057         * MODULES.html.sh (Internationalization functions): Add mbschr.
65058
65059 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65062
65063         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65064
65065 2007-02-04  Bruno Haible  <bruno@clisp.org>
65066
65067         New module description section 'configure.ac-early'.
65068         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65069         (func_get_autoconf_early_snippet): New function.
65070         (func_import, func_create_testdir): Use it. Remove special cases for
65071         modules 'extensions' and 'lock'.
65072         * modules/extensions (configure.ac-early): Require
65073         gl_USE_SYSTEM_EXTENSIONS.
65074         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65075
65076 2007-02-04  Bruno Haible  <bruno@clisp.org>
65077
65078         Make use of gcj-4.3's -fsource and -ftarget option.
65079         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65080         and if so try the options -fsource and -ftarget.
65081         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65082         source_version, ftarget_option, target_version arguments.
65083         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65084         (is_envjavac_oldgcj_14_14_usable): Renamed from
65085         is_envjavac_gcj_14_14_usable.
65086         (is_envjavac_oldgcj_14_13_usable): Renamed from
65087         is_envjavac_gcj_14_13_usable.
65088         (is_gcj_present): Update.
65089         (is_gcj_43, is_gcj43_usable): New functions.
65090         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65091         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65092         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65093         try the options -fsource and -ftarget.
65094
65095 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65096
65097         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65098         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65099         larger value.
65100
65101 2007-02-03  Jim Meyering  <jim@meyering.net>
65102
65103         Give tools a better chance to allocate space for very large buffers.
65104         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65105
65106         Make pwd and readlink work also when run with an unreadable parent dir
65107         on systems with openat support.
65108         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65109         provided getcwd function, even when we have openat support.
65110         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65111
65112 2007-02-02  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65115         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65116         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65117         portability problems if one of these functions is only used on specific
65118         platforms.
65119         Reported by Paul Eggert.
65120
65121 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65124         is causing more trouble than it's curing.
65125         * lib/regex_internal.h (__mempcpy): Remove.
65126         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65127         (and make the code a tad smaller to boot).
65128         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65129
65130 2007-02-02  Jim Meyering  <jim@meyering.net>
65131
65132         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65133         section, not in the Makefile.am: one.
65134
65135 2007-02-02  Eric Blake  <ebb9@byu.net>
65136
65137         * lib/strchrnul.c: Always include config.h first.
65138
65139         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65140         gnulib strstr is not necessary here.
65141
65142 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65143
65144         * m4/socklen.m4: Fix typo.
65145
65146 2007-02-02  Eric Blake  <ebb9@byu.net>
65147
65148         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65149         * modules/netinet_in (Makefile.am): Likewise.
65150
65151 2007-02-01  Bruno Haible  <bruno@clisp.org>
65152
65153         * lib/string_.h (GL_LINK_WARNING): New macro.
65154         (strcasecmp, strstr, strcasestr): If provided by the system,
65155         conditionally define as a macro that leads to a warning instead of to
65156         an error.
65157         (strncasecmp): Conditionally define as a macro that leads to a warning.
65158
65159 2007-02-01  Karl Berry  <karl@gnu.org>
65160
65161         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65162
65163 2007-02-01  Bruno Haible  <bruno@clisp.org>
65164
65165         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65166         renamings.
65167
65168 2007-02-01  Eric Blake  <ebb9@byu.net>
65169
65170         * modules/regex (Depends-on): Revert dependence on mempcpy.
65171         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65172         module's definition of mempcpy.
65173         Reported by Paul Eggert.
65174
65175 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65176
65177         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65178         the symbol XYZ before redefining it.  This fixes a problem with
65179         programs that don't use XYZ, when compiled on systems that define
65180         XYZ to something else.
65181
65182 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65183
65184         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65185         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65186         writeable to group or other and (2) is intended to have a special
65187         mode bit that is set or cleared.  In such a case, the directory
65188         should be neither group- nor other-writeable until the special
65189         mode bits are right.
65190
65191 2007-01-31  Eric Blake  <ebb9@byu.net>
65192
65193         * modules/mountlist (Depends-on): Add strstr.
65194
65195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65196         bug.
65197         * modules/string (Makefile.am): Remove redundant replacement.
65198         * modules/regex (Depends-on): Add mempcpy.
65199
65200 2007-01-31  Bruno Haible  <bruno@clisp.org>
65201
65202         New module description field 'Link'.
65203         * gnulib-tool (func_usage): Document --extract-link-directive.
65204         (sed_extract_prog): Recognize 'Link' directive.
65205         (func_get_link_directive): New function.
65206         (func_import): Show summary of link directives.
65207         Handle --extract-link-directive option.
65208         * modules/acl (Link): New section.
65209         * modules/clock-time (Link): New section.
65210         * modules/euidaccess (Link): New section.
65211         * modules/gettext (Link): New section.
65212         * modules/iconv (Link): New section.
65213         * modules/lock (Link): New section.
65214         * modules/nanosleep (Link): New section.
65215         * modules/readline (Link): New section.
65216
65217 2007-01-27  Bruno Haible  <bruno@clisp.org>
65218
65219         Enforce the use of gnulib modules for unportable <string.h> functions.
65220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65221         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65222         (gl_HEADER_STRING_H_BODY): Require it.
65223         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65224         the symbol XYZ to one that gives a link error.
65225         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65226         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65227         * modules/mempcpy (configure.ac): Likewise.
65228         * modules/memrchr (configure.ac): Likewise.
65229         * modules/stpcpy (configure.ac): Likewise.
65230         * modules/stpncpy (configure.ac): Likewise.
65231         * modules/strcase (configure.ac): Likewise.
65232         * modules/strcasestr (configure.ac): Likewise.
65233         * modules/strchrnul (configure.ac): Likewise.
65234         * modules/strdup (configure.ac): Likewise.
65235         * modules/strndup (configure.ac): Likewise.
65236         * modules/strnlen (configure.ac): Likewise.
65237         * modules/strpbrk (configure.ac): Likewise.
65238         * modules/strsep (configure.ac): Likewise.
65239         * modules/strstr (configure.ac): Likewise.
65240         * modules/strtok_r (configure.ac): Likewise.
65241
65242 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65243
65244         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65245
65246 2007-01-30  Jim Meyering  <jim@meyering.net>
65247
65248         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65249
65250 2007-01-29  Bruno Haible  <bruno@clisp.org>
65251
65252         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65253         * lib/execute.c: Likewise.
65254         * lib/pipe.c: Likewise.
65255         * lib/printf-args.h: Likewise.
65256         * lib/printf-args.c: Likewise.
65257         * lib/printf-parse.c: Likewise.
65258         * lib/vasnprintf.c: Likewise.
65259
65260 2007-01-29  Eric Blake  <ebb9@byu.net>
65261
65262         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65263         declaration.
65264
65265 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65266
65267         * lib/strptime.h (strptime): Use 'restrict' for args where
65268         POSIX requires this.
65269         * lib/strptime.c (strptime): Likewise.
65270         Change license notice from LGPL to GPL, since gnulib-tool will
65271         change this as needed.
65272         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65273         defined.
65274         Include "strptime.h" first, to check interface.
65275         Do not #undef _LIBC and _NL_CURRENT.
65276         Do not include <stdlib.h>; no longer needed.
65277         Include "time_r.h" and declare ptime_locale_status
65278         only if _LIBC is not defined.
65279         (__P): Remove unused macro.
65280         (match_string): Bring back glibc version, but use it only if _LIBC
65281         is defined.
65282         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65283         Remove unnecessary assertion and abort() call.
65284         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65285         * m4/strptime.m4: Fix serial number comment.
65286         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65287         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65288         (Depends-on): Add time_r.
65289
65290 2007-01-29  Bruno Haible  <bruno@clisp.org>
65291
65292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65293         strptime.
65294         * modules/strptime (Depends-on): Add stdbool.
65295         * lib/strptime.h: Include <time.h> always. Add comments.
65296
65297 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65298
65299         * modules/strptime: New file.
65300         * lib/strptime.h: New file.
65301         * lib/strptime.c: New file.
65302         * m4/strptime.m4: New file.
65303
65304 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         * MODULES.html.sh: New module mpsort.
65307         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65308
65309         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65310         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65312         All uses changed.
65313         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65314         All uses changed.
65315         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65316         to _Restrict_.
65317         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65318         the parameter matches the prototype.
65319
65320 2007-01-28  Jim Meyering  <jim@meyering.net>
65321
65322         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65323         sys/time.h here, reverting that part of the previous patch:
65324         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65325
65326 2007-01-28  Bruno Haible  <bruno@clisp.org>
65327
65328         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65329         value of $(SYS_TIME_H).
65330         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65331         remove it conditionally, too. [added by Jim Meyering]
65332         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65334         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65335         GETTIMEOFDAY_REPLACEMENT to 1.
65336
65337 2007-01-28  Bruno Haible  <bruno@clisp.org>
65338
65339         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65340         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65342         Set UNISTD_H instead of UNISTD_H2.
65343         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65344
65345 2007-01-28  Bruno Haible  <bruno@clisp.org>
65346
65347         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65348         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65349
65350 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65351
65352         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65353         (func_create_testdir): Ensure C locale for `grep' and `tr'
65354         character ranges.
65355         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65356         ACLOCAL_AMFLAGS parsing state machine.
65357
65358 2007-01-27  Bruno Haible  <bruno@clisp.org>
65359
65360         * modules/unistr/base: Update.
65361
65362 2007-01-27  Bruno Haible  <bruno@clisp.org>
65363
65364         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65365         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65366         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65367         modules/unistr/u32-mbtouc.
65368         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65369         * lib/unistr.h: Update.
65370         * lib/linebreak.c: Update.
65371         * modules/unistr/u32-mbtouc: Renamed from
65372         modules/unistr/u32-mbtouc-safe.
65373         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65374         * lib/unistr.h: Update.
65375         * lib/unistr/u32-to-u8.c: Update.
65376         * lib/unistr/u32-to-u16.c: Update.
65377
65378 2007-01-27  Bruno Haible  <bruno@clisp.org>
65379
65380         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65381         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65382         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65383         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65384         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65385         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65386         modules/unistr/u16-mbtouc.
65387         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65388         * lib/unistr.h: Update.
65389         * lib/linebreak.c: Update.
65390         * modules/linebreak: Update.
65391         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65392         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65393         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65394         * modules/unistr/u16-mbtouc: Renamed from
65395         modules/unistr/u16-mbtouc-safe.
65396         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65397         * lib/unistr.h: Update.
65398         * lib/unistr/u16-to-u8.c: Update.
65399         * modules/unistr/u16-to-u8: Update.
65400         * lib/unistr/u16-to-u32.c: Update.
65401         * modules/unistr/u16-to-u32: Update.
65402
65403 2007-01-27  Bruno Haible  <bruno@clisp.org>
65404
65405         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65406         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65407         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65408         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65409         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65410         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65411         modules/unistr/u8-mbtouc.
65412         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65413         * lib/unistr.h: Update.
65414         * lib/striconveh.c: Update.
65415         * modules/striconveh: Update.
65416         * lib/linebreak.c: Update.
65417         * modules/linebreak: Update.
65418         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65419         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65420         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65421         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65422         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65423         * lib/unistr.h: Update.
65424         * lib/striconveh.c: Update.
65425         * modules/striconveh: Update.
65426         * lib/unistr/u8-to-u16.c: Update.
65427         * modules/unistr/u8-to-u16: Update.
65428         * lib/unistr/u8-to-u32.c: Update.
65429         * modules/unistr/u8-to-u32: Update.
65430
65431 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65432
65433         Sync from Libtool.
65434         * lib/argz.c: Do not include strings.h nor memory.h, include
65435         string.h unconditionally.  Patch by Simon Josefsson.
65436
65437 2007-01-27  Bruno Haible  <bruno@clisp.org>
65438
65439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65440         from gl_HEADER_STRING_H_BODY.
65441         (gl_HEADER_STRING_H_BODY): Require it.
65442         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65443         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65444         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65445         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65446         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65447         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65449         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65450         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65451         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65452         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65453         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65454         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65455         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65456         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65457
65458 2007-01-27  Bruno Haible  <bruno@clisp.org>
65459
65460         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65461         check_PROGRAMS into noinst_PROGRAMS.
65462         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65463         check_PROGRAMS in this case.
65464         (func_import): Set for_test to false.
65465         (func_create_testdir): Set for_test to true.
65466
65467 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65468             Bruno Haible  <bruno@clisp.org>
65469
65470         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65471         (Depends-on): Add string.
65472         (Includes): Use <string.h> instead of strcasestr.h.
65473         * modules/string (Makefile.am): Also substitute the value of
65474         REPLACE_STRCASESTR.
65475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65476         assume strcasestr is declared in <string.h> not <strings.h>. Also
65477         set REPLACE_STRCASESTR.
65478         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65479         REPLACE_STRCASESTR.
65480         * lib/strcasestr.h: Remove file.
65481         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65482         * lib/string_.h (strcasestr): New declaration.
65483
65484 2007-01-27  Bruno Haible  <bruno@clisp.org>
65485
65486         * lib/string_.h: Use 'extern'.
65487
65488 2007-01-27  Jim Meyering  <jim@meyering.net>
65489
65490         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65491         of set-but-not-used local, "q".
65492
65493         * lib/mempcpy.c: Include <config.h> before <string.h>.
65494         This fixes a compilation error on HP-UX, due to the system's
65495         "restrict"-using mempcpy prototype.
65496
65497 2007-01-26  Bruno Haible  <bruno@clisp.org>
65498
65499         Small optimization.
65500         * lib/javacomp.c: Include c-strstr.h.
65501          (is_envjavac_gcj): Use c_strstr instead of strstr.
65502         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65503
65504 2007-01-26  Bruno Haible  <bruno@clisp.org>
65505
65506         * MODULES.html.sh (Unicode string functions): Add the new modules.
65507
65508         * modules/uniconv/u32-strconv-to-locale: New file.
65509         * lib/uniconv/u32-strconv-to-locale.c: New file.
65510
65511         * modules/uniconv/u16-strconv-to-locale: New file.
65512         * lib/uniconv/u16-strconv-to-locale.c: New file.
65513
65514         * modules/uniconv/u8-strconv-to-locale: New file.
65515         * lib/uniconv/u8-strconv-to-locale.c: New file.
65516
65517         * modules/uniconv/u32-strconv-from-locale: New file.
65518         * lib/uniconv/u32-strconv-from-locale.c: New file.
65519
65520         * modules/uniconv/u16-strconv-from-locale: New file.
65521         * lib/uniconv/u16-strconv-from-locale.c: New file.
65522
65523         * modules/uniconv/u8-strconv-from-locale: New file.
65524         * lib/uniconv/u8-strconv-from-locale.c: New file.
65525
65526         * modules/uniconv/u32-strconv-to-enc: New file.
65527         * lib/uniconv/u32-strconv-to-enc.c: New file.
65528         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65529         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65530
65531         * modules/uniconv/u16-strconv-to-enc: New file.
65532         * lib/uniconv/u16-strconv-to-enc.c: New file.
65533         * lib/uniconv/u-strconv-to-enc.h: New file.
65534         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65535         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65536
65537         * modules/uniconv/u8-strconv-to-enc: New file.
65538         * lib/uniconv/u8-strconv-to-enc.c: New file.
65539         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65540         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65541
65542         * modules/uniconv/u32-strconv-from-enc: New file.
65543         * lib/uniconv/u32-strconv-from-enc.c: New file.
65544         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65545         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65546
65547         * modules/uniconv/u16-strconv-from-enc: New file.
65548         * lib/uniconv/u16-strconv-from-enc.c: New file.
65549         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65550         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65551
65552         * modules/uniconv/u8-strconv-from-enc: New file.
65553         * lib/uniconv/u8-strconv-from-enc.c: New file.
65554         * lib/uniconv/u-strconv-from-enc.h: New file.
65555         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65556         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65557
65558         * modules/uniconv/u32-conv-from-enc: New file.
65559         * lib/uniconv/u32-conv-from-enc.c: New file.
65560         * modules/uniconv/u32-conv-from-enc-tests: New file.
65561         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65562
65563         * modules/uniconv/u16-conv-from-enc: New file.
65564         * lib/uniconv/u16-conv-from-enc.c: New file.
65565         * lib/uniconv/u-conv-from-enc.h: New file.
65566         * modules/uniconv/u16-conv-from-enc-tests: New file.
65567         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65568
65569         * modules/uniconv/u8-conv-from-enc: New file.
65570         * lib/uniconv/u8-conv-from-enc.c: New file.
65571         * modules/uniconv/u8-conv-from-enc-tests: New file.
65572         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65573
65574         * modules/uniconv/base: New file.
65575         * lib/uniconv.h: New file.
65576
65577 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * doc/gnulib-tool.texi (Initial import): Update to match current
65580         behavior with strdup module.
65581         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65582         * lib/memmem.h: Remove; all uses removed.  This is now done
65583         by <string.h>.
65584         * lib/mempcpy.h: Likewise.
65585         * lib/memrchr.h: Likewise.
65586         * lib/stpcpy.h: Likewise.
65587         * lib/stpncpy.h: Likewise.
65588         * lib/strcase.h: Likewise.
65589         * lib/strchrnul.h: Likewise.
65590         * lib/strdup.h: Likewise.
65591         * lib/strndup.h: Likewise.
65592         * lib/strnlen.h: Likewise.
65593         * lib/strpbrk.h: Likewise.
65594         * lib/strsep.h: Likewise.
65595         * lib/strstr.h: Likewise.
65596         * lib/strtok_r.h: Likewise.
65597         * lib/string_.h: New file.
65598         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65599         Rely on <string.h> instead.
65600         * lib/canon-host.c: Likewise.
65601         * lib/chdir-long.c: Likewise.
65602         * lib/concatpath.c: Likewise.
65603         * lib/exclude.c: Likewise.
65604         * lib/fchdir.c: Likewise.
65605         * lib/getaddrinfo.c: Likewise.
65606         * lib/getcwd.c: Likewise.
65607         * lib/getsubopt.c: Likewise.
65608         * lib/glob.c: Likewise.
65609         * lib/hard-locale.c: Likewise.
65610         * lib/iconvme.c: Likewise.
65611         * lib/javacomp.c: Likewise.
65612         * lib/mempcpy.c: Likewise.
65613         * lib/memrchr.c: Likewise.
65614         * lib/regex_internal.h: Likewise.
65615         * lib/stpncpy.c: Likewise.
65616         * lib/strcasecmp.c: Likewise.
65617         * lib/strchrnul.c: Likewise.
65618         * lib/strdup.c: Likewise.
65619         * lib/striconv.c: Likewise.
65620         * lib/striconveh.c: Likewise.
65621         * lib/striconveha.c: Likewise.
65622         * lib/strncasecmp.c: Likewise.
65623         * lib/strndup.c: Likewise.
65624         * lib/strnlen.c: Likewise.
65625         * lib/strsep.c: Likewise.
65626         * lib/strstr.c: Likewise.
65627         * lib/strtok_r.c: Likewise.
65628         * lib/userspec.c: Likewise.
65629         * lib/w32spawn.h: Likewise.
65630         * lib/xstrndup.c: Likewise.
65631         * lib/mountlist.c (strstr): Remove decl.
65632         * m4/string_h.m4: New file.
65633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65636         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65637         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65638         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65639         Set REPLACE_STRCASECMP if necessary.
65640         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65641         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65642         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65643         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65644         HAVE_DECL_STRDUP if necessary.
65645         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65646         since gl_FUNC_STRNDUP does that now.
65647         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65648         Check for decl here...
65649         (gl_PREREQ_STRNLEN): ... not here.
65650         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65651         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65652         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65653         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65654         necessary.
65655         * modules/string: New file.
65656         * modules/memmem (Files): Remove special-purpose include file.
65657         (Depends-on): Add string.
65658         (Include): Include <string.h>, not the removed file.
65659         * modules/mempcpy: Likewise.
65660         * modules/memrchr: Likewise.
65661         * modules/stpcpy: Likewise.
65662         * modules/stpncpy: Likewise.
65663         * modules/strcase: Likewise.
65664         * modules/strchrnul: Likewise.
65665         * modules/strdup: Likewise.
65666         * modules/strndup: Likewise.
65667         * modules/strnlen: Likewise.
65668         * modules/strpbrk: Likewise.
65669         * modules/strsep: Likewise.
65670         * modules/strstr: Likewise.
65671         * modules/strtok_r: Likewise.
65672         * tests/test-dirname.c: Don't include "strdup.h", since
65673         <string.h> now suffices.
65674         * tests/test-memmem.c: Don't include "memmem.h", since
65675         <string.h> now suffices.
65676
65677 2007-01-25  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65680         *resultp is 0.
65681
65682         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65683         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65684         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65685         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65686
65687         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65688         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65689         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65690         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65691         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65692         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65693
65694 2007-01-24  Bruno Haible  <bruno@clisp.org>
65695
65696         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65698         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65699         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65700         gl_FUNC_FTS_CORE.
65701         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65702         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65703         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65704         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65705         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65706         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65707         gl_FUNC_FCHOWNAT.
65708         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65709         gl_FUNC_STRFTIME.
65710         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65711         Reported by Ralf Wildenhues.
65712
65713 2007-01-24  Bruno Haible  <bruno@clisp.org>
65714
65715         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65716         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65717         gl_GETADDRINFO.
65718         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65719         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65720         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65721
65722 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65725         Don't use 'exit'; just return from 'main'.
65726         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65727
65728         * lib/fnmatch_.h: Readjust white space and comments to match
65729         glibc, to avoid spurious diffs.
65730
65731 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65734         2004-12-01 change by Jakub Jelinek, since this code won't compile
65735         if !LIBC.  Problem reported by Bob Proulx.
65736
65737 2007-01-23  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/striconveh.c: Include c-strcaseeq.h.
65740         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65741         * modules/striconveh (Depends-on): Add c-strcaseeq.
65742
65743 2007-01-23  Bruno Haible  <bruno@clisp.org>
65744
65745         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65746
65747         * modules/c-strcaseeq: New file.
65748         * lib/c-strcaseeq.h: New file.
65749
65750         * modules/streq: New file.
65751         * lib/streq.h: New file.
65752
65753 2007-01-23  Bruno Haible  <bruno@clisp.org>
65754
65755         * modules/striconveha-tests: New file.
65756         * tests/test-striconveha.c: New file.
65757
65758         * lib/striconveha.h: Include <stdbool.h>.
65759         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65760         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65761         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65762         (mem_iconveha): New function.
65763         (str_iconveha_notranslit): Renamed from str_iconveha.
65764         (str_iconveha): New function.
65765         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65766         c-strcase.
65767
65768 2007-01-23  Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65771         encodings without forgiving before trying any encoding with handler.
65772         (str_iconveha): Try all encodings without forgiving before trying any
65773         encoding with handler.
65774
65775 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         Import the following changes from libc.
65778
65779         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65780
65781         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65782
65783         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65784
65785         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65786         normal_bracket label.
65787
65788         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65789
65790         [BZ #361]
65791         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65792         to normal_bracket after fetching the next character.
65793
65794 2007-01-22  Bruno Haible  <bruno@clisp.org>
65795
65796         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65797         argument.
65798         * lib/striconveh.c (iconv_carefully_1): New function.
65799         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65800         argument.
65801         (str_cd_iconveh): Update.
65802         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65803         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65804         * tests/test-striconveh.c (MAGIC): New macro.
65805         (new_offsets): New function.
65806         (main): Test call with and without offsets.
65807
65808 2007-01-22  Bruno Haible  <bruno@clisp.org>
65809
65810         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65811         * modules/sys_select (Makefile.am): Likewise.
65812         * modules/sys_socket (Makefile.am): Likewise.
65813         * modules/sys_time (Makefile.am): Likewise.
65814
65815 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * modules/gettimeofday (License): Change from GPL to LGPL, since
65818         gettimeofday is a library function.
65819
65820 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65821
65822         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65823
65824 2007-01-21  Bruno Haible  <bruno@clisp.org>
65825
65826         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65827
65828 2007-01-21  Bruno Haible  <bruno@clisp.org>
65829
65830         * modules/striconveha: New file.
65831         * lib/striconveha.h: New file.
65832         * lib/striconveha.c: New file.
65833         * MODULES.html.sh (Internationalization functions): Add striconveha.
65834         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65835         string.
65836         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65837
65838 2007-01-21  Bruno Haible  <bruno@clisp.org>
65839
65840         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65841         * lib/striconveh.c (str_iconveh): Likewise.
65842
65843 2007-01-21  Bruno Haible  <bruno@clisp.org>
65844
65845         * lib/striconveh.h (mem_iconveh): New declaration.
65846         * lib/striconveh.c (mem_iconveh): New function.
65847         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65848
65849 2007-01-21  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65852
65853         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65854         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65855         original result buffer.
65856         (str_cd_iconveh): Update.
65857         * tests/test-striconveh.c (main): Update.
65858
65859         * lib/striconv.h (mem_cd_iconv): Change specification.
65860         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65861         result buffer.
65862         (str_cd_iconv): Update.
65863         * tests/test-striconv.c (main): Update.
65864
65865 2007-01-21  Bruno Haible  <bruno@clisp.org>
65866
65867         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65868
65869 2007-01-20  Jim Meyering  <jim@meyering.net>
65870
65871         * lib/userspec.c (parse_with_separator): If a user or group string
65872         starts with "+", skip the corresponding name-to-ID look-up, since
65873         such a look-up must fail: user and group names may not include "+".
65874
65875 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65878         since we now assume the sys_time module.
65879         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65880         check for sys/time.h; no longer needed.
65881         * modules/poll (Depends-on): Depend on sys_time.
65882
65883 2007-01-18  Bruno Haible  <bruno@clisp.org>
65884
65885         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65886         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65887
65888         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65889         gettimeofday.
65890
65891         * tests/test-gettimeofday.c: Include <time.h>.
65892         (dummy): Remove variable.
65893
65894         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65895         gl_HEADER_SYS_TIME_H.
65896         (gl_HEADER_SYS_TIME_H): New macro.
65897
65898         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65899         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65900         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65901         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65902         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65904         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65905         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65906         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65907         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65908         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65909
65910         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65911         last change; it caused a compilation error when cross-compiling to
65912         Cygwin.
65913
65914 2007-01-18  Jim Meyering  <jim@meyering.net>
65915
65916         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65917         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65918         than the race-prone "test -d sys || mkdir sys".
65919         (configure.ac): Use AC_PROG_MKDIR_P.
65920         * modules/sys_select: Likewise.
65921         * modules/sys_socket: Likewise.
65922         * modules/sys_time: Likewise.
65923
65924 2007-01-18  Eric Blake  <ebb9@byu.net>
65925
65926         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65927         replace gettimeofday.
65928         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65929         name, to avoid infinite recursion.
65930
65931 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65932
65933         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65934         module sys_time.
65935         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65936         assume timespec.h defines struct timeval.
65937         * lib/settime.c: Likewise.
65938         * lib/utimens.c: Likewise.
65939         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65940         since we now assume the gettimeofday module.
65941         * lib/tempname.c (__gen_tempname): Likewise.
65942         * lib/gettimeofday.h: Remove.
65943         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65944         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65945         Include <time.h>, for 'time()'.
65946         (localtime_buffer_addr): Also use this workaround if
65947         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65948         to simplify the uses.  All uses changed.
65949         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65950         that #undef is inside {}, and 'const' follows type name consistently.
65951         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65952         (gettimeofday): Do not use the maximum possible value for
65953         tv->tv_usec, since that might break usages other than ls.c.
65954         Instead, we'll leave ls.c alone.  This undoes today's patch
65955         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65956         we've never observed the problem but might as well keep the
65957         canary.
65958         * lib/nanosleep.c: Include timespec.h first, for interface check.
65959         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65960         now assume the sys_time module.
65961         * lib/tempname.c: Likewise.
65962         * lib/timespec.h: Likewise.
65963         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65964         needed.
65965         * lib/strftime.c: Likewise.
65966         * lib/timespec.h: Likewise.
65967         * lib/posixtm.c: Include posixtm.h first, for interface check.
65968         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65969         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65970         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65971         * lib/sys_time_.h: New file.
65972         * lib/timespec.h (struct timespec): Use long int, not long.
65973         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65974         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65975         Remove obsolescent call to AC_HEADER_TIME.
65976         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65978         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65979         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65980         Likewise.
65981         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65982         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65984         into the sys_time module.  Check for gettimeofday just once.
65985         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65986         for gettimeofday signature to just check the signature.  Merely
65987         compile it, since linking doesn't test signature.  Improve test for
65988         whether gettimeofday.o is actually needed.
65989         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65990         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65991         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65992         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65993         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65994         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65995         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65996         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65997         than worrying about sys/time.h.
65998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65999         Don't bother worrying about TIME_WITH_SYS_TIME.
66000         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66001         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66002         * m4/sys_time_h.m4: New file.
66003         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66004         Don't include sys/time.h.  Return from main rather than exiting.
66005         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66006         all uses changed.
66007         * modules/gethrxtime (Depends-on): Add sys_time.
66008         * modules/gettime (Depends-on): Likewise.
66009         * modules/gettimeofday (Depends-on): Likewise.
66010         * modules/nanosleep (Depends-on): Likewise.
66011         * modules/settime (Depends-on): Likewise.
66012         * modules/tempname (Depends-on): Likewise.
66013         * modules/utimens (Depends-on): Likewise.
66014         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66015         (Include): Change back to <sys/time.h>.
66016         (Maintainer): Add self.
66017         * modules/sys_time: New file.
66018         * modules/tempname (Depends-on): Add gettimeofday.
66019         * tests/test-gettimeofday.c: Include <sys/time.h>
66020         rather than gettimeofday.h.
66021
66022 2007-01-17  Bruno Haible  <bruno@clisp.org>
66023
66024         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66025         the license default to GPL.
66026         (func_create_testdir): Don't complain if a module is LGPL and its
66027         tests module depends on GPLed modules.
66028
66029 2007-01-17  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/gettimeofday.c (gettimeofday): Add code for the case
66032         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66033         maximum possible value for tv->tv_usec, rather than the minimum one.
66034
66035 2005-10-08  Martin Lambers  <marlam@marlam.de>
66036 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66037 2007-01-16  Bruno Haible  <bruno@clisp.org>
66038
66039         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66040         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66041         gl_FUNC_GETTIMEOFDAY.
66042         (Include): Add gettimeofday.h.
66043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66044         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66045         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66046         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66047         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66048         * lib/gettimeofday.h: New file.
66049         * lib/gettimeofday.c: Include <sys/timeb.h>.
66050         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66051         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66052         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66053         fall back on time().
66054
66055         * tests/test-gettimeofday.c: New file.
66056         * modules/gettimeofday-tests: New file.
66057
66058 2007-01-16  Eric Blake  <ebb9@byu.net>
66059
66060         * modules/fnmatch (Depends-on): Depend on wchar.
66061         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66062         * m4/fnmatch.m4: Likewise.
66063         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66064         * m4/mbchar.m4: Likewise.
66065         * modules/mbswidth (Depends-on): Depend on wchar.
66066         * lib/mbswidth.c: Assume <wchar.h>.
66067         * m4/mbswidth.m4: Likewise.
66068         * modules/quotearg (Depends-on): Depend on wchar.
66069         * lib/quotearg.c: Assume <wchar.h>.
66070         * m4/quotearg.m4: Likewise.
66071         * modules/regex (Depends-on): Depend on wchar.
66072         * lib/regex_internal.h: Assume <wchar.h>.
66073         * m4/regex.m4: Likewise.
66074         * modules/stdint (Depends-on): Depend on wchar.
66075         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66076         * m4/stdint.m4: Likewise.
66077         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66078         * modules/strftime (Depends-on): Depend on wchar.
66079         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66080         * modules/strtol (Depends-on): Depend on wchar.
66081         * lib/strtol.c: Assume <wchar.h>.
66082         * modules/wcwidth (Depends-on): Depend on wchar.
66083         * lib/wcwidth.h: Assume <wchar.h>.
66084         * m4/wcwidth.m4: Likewise.
66085
66086 2007-01-16  Bruno Haible  <bruno@clisp.org>
66087
66088         * modules/csharpexec-script: New, created from...
66089         * modules/csharpexec: ... this.
66090
66091 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66092
66093         * modules/javaexec-script: New, created from...
66094         * modules/javaexec: ... this.
66095
66096 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66097
66098         * modules/poll (Dependencies): Add sys_select.
66099
66100 2007-01-15  Jim Meyering  <jim@meyering.net>
66101
66102         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66103         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66104         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66105         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66106
66107 2007-01-15  Bruno Haible  <bruno@clisp.org>
66108
66109         * modules/striconveh: New file.
66110         * lib/striconveh.h: New file.
66111         * lib/striconveh.c: New file.
66112         * MODULES.html.sh (Internationalization functions): Add striconveh.
66113
66114         * modules/striconveh-tests: New file.
66115         * tests/test-striconveh.c: New file.
66116
66117 2007-01-15  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66120         not from GNU libiconv or GNU libc.
66121
66122 2007-01-15  Bruno Haible  <bruno@clisp.org>
66123
66124         * doc/gnulib-intro.texi (Copyright): Explain the different license
66125         terms for module descriptions, autoconf macros, tests, documentation.
66126
66127 2007-01-14  Bruno Haible  <bruno@clisp.org>
66128
66129         * modules/striconv-tests: New file.
66130         * tests/test-striconv.c: New file.
66131
66132 2007-01-14  Bruno Haible  <bruno@clisp.org>
66133
66134         * modules/iconv-tests: New file.
66135         * tests/test-iconv.c: New file.
66136
66137 2007-01-14  Bruno Haible  <bruno@clisp.org>
66138
66139         * gnulib-tool (func_get_license): For test modules, use the license of
66140         the main module.
66141
66142 2007-01-14  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66145         if iconv is found to exist.
66146
66147 2007-01-14  Bruno Haible  <bruno@clisp.org>
66148
66149         * modules/c-ctype-tests: New file.
66150         * tests/test-c-ctype.c: New file.
66151
66152 2007-01-14  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/binary-io-tests: New file.
66155         * tests/test-binary-io.sh: New file.
66156         * tests/test-binary-io.c: New file.
66157
66158 2007-01-14  Bruno Haible  <bruno@clisp.org>
66159
66160         * modules/array-oset-tests: New file.
66161         * tests/test-array_oset.c: New file.
66162
66163 2007-01-14  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/array-list-tests: New file.
66166         * tests/test-array_list.c: New file.
66167
66168 2007-01-14  Bruno Haible  <bruno@clisp.org>
66169
66170         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66171         and make.
66172         Reported by Simon Josefsson in
66173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66174
66175 2007-01-14  Bruno Haible  <bruno@clisp.org>
66176
66177         * modules/allocsa-tests: New file.
66178         * tests/test-allocsa.c: New file.
66179
66180 2007-01-14  Bruno Haible  <bruno@clisp.org>
66181
66182         * modules/fchdir (Depends-on): Add absolute-header.
66183         * modules/unistd (Depends-on): Likewise.
66184
66185 2006-12-30  Bruno Haible  <bruno@clisp.org>
66186
66187         * modules/fchdir: New file.
66188         * modules/unistd (Files): Add lib/unistd_.h.
66189         (Makefile.am): Generate unistd.h from unistd_.h.
66190         * lib/fchdir.c: New file.
66191         * lib/dirent_.h: New file.
66192         * lib/unistd_.h: New file.
66193         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66194         * m4/fchdir.m4: New file.
66195         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66196         (gl_HEADER_UNISTD): Invoke it.
66197         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66198         function.
66199         * lib/backupfile.c (opendir, closedir): Undefine.
66200         * lib/chown.c (open, close): Undefine.
66201         * lib/clean-temp.c (open, close): Undefine.
66202         * lib/copy-file.c (open, close): Undefine.
66203         * lib/execute.c (open, close): Undefine.
66204         * lib/fsusage.c (open, close): Undefine.
66205         * lib/gc-gnulib.c (open, close): Undefine.
66206         * lib/getcwd.c (opendir, closedir): Undefine.
66207         * lib/glob.c (opendir, closedir): Undefine.
66208         * lib/javacomp.c (open, close): Undefine.
66209         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66210         * lib/openat-proc.c (open, close): Undefine.
66211         * lib/pagealign_alloc.c (open, close): Undefine.
66212         * lib/pipe.c (open, close): Undefine.
66213         * lib/progreloc.c (open, close): Undefine.
66214         * lib/savedir.c (opendir, closedir): Undefine.
66215         * lib/utime.c (open, close): Undefine.
66216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66217
66218 2007-01-10  Bruno Haible  <bruno@clisp.org>
66219
66220         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66221
66222 2007-01-12  Eric Blake  <ebb9@byu.net>
66223
66224         Provide a robust <wchar.h>.  Further simplifications are now
66225         possible in other modules, but not included here.
66226         * modules/wchar: New module.
66227         * m4/wchar.m4: New file.
66228         * lib/wchar_.h: Likewise.
66229         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66230         of the new module.
66231         * MODULES.html.sh (Extended multibyte and wide character utilities):
66232         New section.
66233
66234 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66237         to a reasonable default for memory allocation.
66238         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66239         file system that reports garbage st_size values for symlinks.
66240         Problem reported by Liyang Hu.
66241
66242 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66243
66244         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66245         Emacs .#* auto-save files).
66246
66247 2007-01-11  Bruno Haible  <bruno@clisp.org>
66248
66249         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66250         directory.
66251
66252 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         Use @...@ consistently in lib/wctype_.h.
66255         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66256         on it being set to 1 or 0.
66257         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66258         go back to AC_SUBSTing it.
66259         * modules/wctype (Makefile.am): Undo previous change.
66260
66261 2007-01-10  Eric Blake  <ebb9@byu.net>
66262
66263         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66264         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66265         * modules/wctype (Makefile.am): Likewise.
66266         Reported by Chris McGuire.
66267
66268 2007-01-10  Jim Meyering  <jim@meyering.net>
66269
66270         fts.c: a small readability/maintainability improvement
66271         * lib/fts.c (fts_read): Make this code slightly more readable and
66272         maintainable by hoisting the "sp->fts_cur = p" assignments to
66273         immediately follow the statements that set P.  Derived from
66274         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66275
66276 2007-01-10  Eric Blake  <ebb9@byu.net>
66277
66278         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66279         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66281         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66282         Reported by Chris McGuire.
66283
66284 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66285
66286         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66287         in sed script.
66288
66289 2007-01-09  Bruno Haible  <bruno@clisp.org>
66290
66291         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66292         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66293         variables.
66294         (func_module): Use them.
66295
66296 2007-01-09  Bruno Haible  <bruno@clisp.org>
66297
66298         * modules/unistr/base: New file.
66299         * lib/unistr.h: New file.
66300
66301         * modules/unistr/u8-to-u16: New file.
66302         * lib/unistr/u8-to-u16.c: New file.
66303
66304         * modules/unistr/u8-to-u32: New file.
66305         * lib/unistr/u8-to-u32.c: New file.
66306
66307         * modules/unistr/u16-to-u8: New file.
66308         * lib/unistr/u16-to-u8.c: New file.
66309
66310         * modules/unistr/u16-to-u32: New file.
66311         * lib/unistr/u16-to-u32.c: New file.
66312
66313         * modules/unistr/u32-to-u8: New file.
66314         * lib/unistr/u32-to-u8.c: New file.
66315
66316         * modules/unistr/u32-to-u16: New file.
66317         * lib/unistr/u32-to-u16.c: New file.
66318
66319         * modules/unistr/u8-check: New file.
66320         * modules/unistr/u16-check: New file.
66321         * modules/unistr/u32-check: New file.
66322         * lib/unistr/u8-check.c: New file.
66323         * lib/unistr/u16-check.c: New file.
66324         * lib/unistr/u32-check.c: New file.
66325
66326         * modules/unistr/u8-chr: New file.
66327         * modules/unistr/u16-chr: New file.
66328         * modules/unistr/u32-chr: New file.
66329         * lib/unistr/u8-chr.c: New file.
66330         * lib/unistr/u16-chr.c: New file.
66331         * lib/unistr/u32-chr.c: New file.
66332
66333         * modules/unistr/u8-cmp: New file.
66334         * modules/unistr/u16-cmp: New file.
66335         * modules/unistr/u32-cmp: New file.
66336         * lib/unistr/u8-cmp.c: New file.
66337         * lib/unistr/u16-cmp.c: New file.
66338         * lib/unistr/u32-cmp.c: New file.
66339
66340         * modules/unistr/u8-cpy: New file.
66341         * modules/unistr/u16-cpy: New file.
66342         * modules/unistr/u32-cpy: New file.
66343         * lib/unistr/u8-cpy.c: New file.
66344         * lib/unistr/u16-cpy.c: New file.
66345         * lib/unistr/u32-cpy.c: New file.
66346         * lib/unistr/u-cpy.h: New file.
66347
66348         * modules/unistr/u8-cpy-alloc: New file.
66349         * modules/unistr/u16-cpy-alloc: New file.
66350         * modules/unistr/u32-cpy-alloc: New file.
66351         * lib/unistr/u8-cpy-alloc.c: New file.
66352         * lib/unistr/u16-cpy-alloc.c: New file.
66353         * lib/unistr/u32-cpy-alloc.c: New file.
66354         * lib/unistr/u-cpy-alloc.h: New file.
66355
66356         * modules/unistr/u8-endswith: New file.
66357         * modules/unistr/u16-endswith: New file.
66358         * modules/unistr/u32-endswith: New file.
66359         * lib/unistr/u8-endswith.c: New file.
66360         * lib/unistr/u16-endswith.c: New file.
66361         * lib/unistr/u32-endswith.c: New file.
66362         * lib/unistr/u-endswith.h: New file.
66363
66364         * modules/unistr/u8-mblen: New file.
66365         * modules/unistr/u16-mblen: New file.
66366         * modules/unistr/u32-mblen: New file.
66367         * lib/unistr/u8-mblen.c: New file.
66368         * lib/unistr/u16-mblen.c: New file.
66369         * lib/unistr/u32-mblen.c: New file.
66370
66371         * modules/unistr/u8-mbtouc: New file.
66372         * modules/unistr/u16-mbtouc: New file.
66373         * modules/unistr/u32-mbtouc: New file.
66374         * lib/unistr/u8-mbtouc.c: New file.
66375         * lib/unistr/u16-mbtouc.c: New file.
66376         * lib/unistr/u32-mbtouc.c: New file.
66377
66378         * modules/unistr/u8-mbtouc-safe: New file.
66379         * modules/unistr/u16-mbtouc-safe: New file.
66380         * modules/unistr/u32-mbtouc-safe: New file.
66381         * lib/unistr/u8-mbtouc-safe.c: New file.
66382         * lib/unistr/u16-mbtouc-safe.c: New file.
66383         * lib/unistr/u32-mbtouc-safe.c: New file.
66384
66385         * modules/unistr/u8-move: New file.
66386         * modules/unistr/u16-move: New file.
66387         * modules/unistr/u32-move: New file.
66388         * lib/unistr/u8-move.c: New file.
66389         * lib/unistr/u16-move.c: New file.
66390         * lib/unistr/u32-move.c: New file.
66391         * lib/unistr/u-move.h: New file.
66392
66393         * modules/unistr/u8-next: New file.
66394         * modules/unistr/u16-next: New file.
66395         * modules/unistr/u32-next: New file.
66396         * lib/unistr/u8-next.c: New file.
66397         * lib/unistr/u16-next.c: New file.
66398         * lib/unistr/u32-next.c: New file.
66399
66400         * modules/unistr/u8-prev: New file.
66401         * modules/unistr/u16-prev: New file.
66402         * modules/unistr/u32-prev: New file.
66403         * lib/unistr/u8-prev.c: New file.
66404         * lib/unistr/u16-prev.c: New file.
66405         * lib/unistr/u32-prev.c: New file.
66406
66407         * modules/unistr/u8-set: New file.
66408         * modules/unistr/u16-set: New file.
66409         * modules/unistr/u32-set: New file.
66410         * lib/unistr/u8-set.c: New file.
66411         * lib/unistr/u16-set.c: New file.
66412         * lib/unistr/u32-set.c: New file.
66413         * lib/unistr/u-set.h: New file.
66414
66415         * modules/unistr/u8-startswith: New file.
66416         * modules/unistr/u16-startswith: New file.
66417         * modules/unistr/u32-startswith: New file.
66418         * lib/unistr/u8-startswith.c: New file.
66419         * lib/unistr/u16-startswith.c: New file.
66420         * lib/unistr/u32-startswith.c: New file.
66421         * lib/unistr/u-startswith.h: New file.
66422
66423         * modules/unistr/u8-stpcpy: New file.
66424         * modules/unistr/u16-stpcpy: New file.
66425         * modules/unistr/u32-stpcpy: New file.
66426         * lib/unistr/u8-stpcpy.c: New file.
66427         * lib/unistr/u16-stpcpy.c: New file.
66428         * lib/unistr/u32-stpcpy.c: New file.
66429         * lib/unistr/u-stpcpy.h: New file.
66430
66431         * modules/unistr/u8-stpncpy: New file.
66432         * modules/unistr/u16-stpncpy: New file.
66433         * modules/unistr/u32-stpncpy: New file.
66434         * lib/unistr/u8-stpncpy.c: New file.
66435         * lib/unistr/u16-stpncpy.c: New file.
66436         * lib/unistr/u32-stpncpy.c: New file.
66437         * lib/unistr/u-stpncpy.h: New file.
66438
66439         * modules/unistr/u8-strcat: New file.
66440         * modules/unistr/u16-strcat: New file.
66441         * modules/unistr/u32-strcat: New file.
66442         * lib/unistr/u8-strcat.c: New file.
66443         * lib/unistr/u16-strcat.c: New file.
66444         * lib/unistr/u32-strcat.c: New file.
66445         * lib/unistr/u-strcat.h: New file.
66446
66447         * modules/unistr/u8-strchr: New file.
66448         * modules/unistr/u16-strchr: New file.
66449         * modules/unistr/u32-strchr: New file.
66450         * lib/unistr/u8-strchr.c: New file.
66451         * lib/unistr/u16-strchr.c: New file.
66452         * lib/unistr/u32-strchr.c: New file.
66453
66454         * modules/unistr/u8-strcmp: New file.
66455         * modules/unistr/u16-strcmp: New file.
66456         * modules/unistr/u32-strcmp: New file.
66457         * lib/unistr/u8-strcmp.c: New file.
66458         * lib/unistr/u16-strcmp.c: New file.
66459         * lib/unistr/u32-strcmp.c: New file.
66460
66461         * modules/unistr/u8-strcpy: New file.
66462         * modules/unistr/u16-strcpy: New file.
66463         * modules/unistr/u32-strcpy: New file.
66464         * lib/unistr/u8-strcpy.c: New file.
66465         * lib/unistr/u16-strcpy.c: New file.
66466         * lib/unistr/u32-strcpy.c: New file.
66467         * lib/unistr/u-strcpy.h: New file.
66468
66469         * modules/unistr/u8-strcspn: New file.
66470         * modules/unistr/u16-strcspn: New file.
66471         * modules/unistr/u32-strcspn: New file.
66472         * lib/unistr/u8-strcspn.c: New file.
66473         * lib/unistr/u16-strcspn.c: New file.
66474         * lib/unistr/u32-strcspn.c: New file.
66475         * lib/unistr/u-strcspn.h: New file.
66476
66477         * modules/unistr/u8-strdup: New file.
66478         * modules/unistr/u16-strdup: New file.
66479         * modules/unistr/u32-strdup: New file.
66480         * lib/unistr/u8-strdup.c: New file.
66481         * lib/unistr/u16-strdup.c: New file.
66482         * lib/unistr/u32-strdup.c: New file.
66483         * lib/unistr/u-strdup.h: New file.
66484
66485         * modules/unistr/u8-strlen: New file.
66486         * modules/unistr/u16-strlen: New file.
66487         * modules/unistr/u32-strlen: New file.
66488         * lib/unistr/u8-strlen.c: New file.
66489         * lib/unistr/u16-strlen.c: New file.
66490         * lib/unistr/u32-strlen.c: New file.
66491         * lib/unistr/u-strlen.h: New file.
66492
66493         * modules/unistr/u8-strmblen: New file.
66494         * modules/unistr/u16-strmblen: New file.
66495         * modules/unistr/u32-strmblen: New file.
66496         * lib/unistr/u8-strmblen.c: New file.
66497         * lib/unistr/u16-strmblen.c: New file.
66498         * lib/unistr/u32-strmblen.c: New file.
66499
66500         * modules/unistr/u8-strmbtouc: New file.
66501         * modules/unistr/u16-strmbtouc: New file.
66502         * modules/unistr/u32-strmbtouc: New file.
66503         * lib/unistr/u8-strmbtouc.c: New file.
66504         * lib/unistr/u16-strmbtouc.c: New file.
66505         * lib/unistr/u32-strmbtouc.c: New file.
66506
66507         * modules/unistr/u8-strncat: New file.
66508         * modules/unistr/u16-strncat: New file.
66509         * modules/unistr/u32-strncat: New file.
66510         * lib/unistr/u8-strncat.c: New file.
66511         * lib/unistr/u16-strncat.c: New file.
66512         * lib/unistr/u32-strncat.c: New file.
66513         * lib/unistr/u-strncat.h: New file.
66514
66515         * modules/unistr/u8-strncmp: New file.
66516         * modules/unistr/u16-strncmp: New file.
66517         * modules/unistr/u32-strncmp: New file.
66518         * lib/unistr/u8-strncmp.c: New file.
66519         * lib/unistr/u16-strncmp.c: New file.
66520         * lib/unistr/u32-strncmp.c: New file.
66521
66522         * modules/unistr/u8-strncpy: New file.
66523         * modules/unistr/u16-strncpy: New file.
66524         * modules/unistr/u32-strncpy: New file.
66525         * lib/unistr/u8-strncpy.c: New file.
66526         * lib/unistr/u16-strncpy.c: New file.
66527         * lib/unistr/u32-strncpy.c: New file.
66528         * lib/unistr/u-strncpy.h: New file.
66529
66530         * modules/unistr/u8-strnlen: New file.
66531         * modules/unistr/u16-strnlen: New file.
66532         * modules/unistr/u32-strnlen: New file.
66533         * lib/unistr/u8-strnlen.c: New file.
66534         * lib/unistr/u16-strnlen.c: New file.
66535         * lib/unistr/u32-strnlen.c: New file.
66536         * lib/unistr/u-strnlen.h: New file.
66537
66538         * modules/unistr/u8-strpbrk: New file.
66539         * modules/unistr/u16-strpbrk: New file.
66540         * modules/unistr/u32-strpbrk: New file.
66541         * lib/unistr/u8-strpbrk.c: New file.
66542         * lib/unistr/u16-strpbrk.c: New file.
66543         * lib/unistr/u32-strpbrk.c: New file.
66544         * lib/unistr/u-strpbrk.h: New file.
66545
66546         * modules/unistr/u8-strrchr: New file.
66547         * modules/unistr/u16-strrchr: New file.
66548         * modules/unistr/u32-strrchr: New file.
66549         * lib/unistr/u8-strrchr.c: New file.
66550         * lib/unistr/u16-strrchr.c: New file.
66551         * lib/unistr/u32-strrchr.c: New file.
66552
66553         * modules/unistr/u8-strspn: New file.
66554         * modules/unistr/u16-strspn: New file.
66555         * modules/unistr/u32-strspn: New file.
66556         * lib/unistr/u8-strspn.c: New file.
66557         * lib/unistr/u16-strspn.c: New file.
66558         * lib/unistr/u32-strspn.c: New file.
66559         * lib/unistr/u-strspn.h: New file.
66560
66561         * modules/unistr/u8-strstr: New file.
66562         * modules/unistr/u16-strstr: New file.
66563         * modules/unistr/u32-strstr: New file.
66564         * lib/unistr/u8-strstr.c: New file.
66565         * lib/unistr/u16-strstr.c: New file.
66566         * lib/unistr/u32-strstr.c: New file.
66567         * lib/unistr/u-strstr.h: New file.
66568
66569         * modules/unistr/u8-strtok: New file.
66570         * modules/unistr/u16-strtok: New file.
66571         * modules/unistr/u32-strtok: New file.
66572         * lib/unistr/u8-strtok.c: New file.
66573         * lib/unistr/u16-strtok.c: New file.
66574         * lib/unistr/u32-strtok.c: New file.
66575         * lib/unistr/u-strtok.h: New file.
66576
66577         * modules/unistr/u8-uctomb: New file.
66578         * modules/unistr/u16-uctomb: New file.
66579         * modules/unistr/u32-uctomb: New file.
66580         * lib/unistr/u8-uctomb.c: New file.
66581         * lib/unistr/u16-uctomb.c: New file.
66582         * lib/unistr/u32-uctomb.c: New file.
66583
66584         * MODULES.html.sh (Unicode string functions): Add the new modules.
66585
66586 2007-01-08  Bruno Haible  <bruno@clisp.org>
66587
66588         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66589         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66590         subdirectories.
66591
66592 2007-01-08  Karl Berry  <karl@gnu.org>
66593
66594         * doc/error.texi: mention that main() fns must set program_name
66595         when progname is used.
66596
66597 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66600         WCTYPE_H is empty, for the benefit of builds from non-distclean
66601         directories.  Problem reported by Eric Blake in
66602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66603
66604 2007-01-08  Bruno Haible  <bruno@clisp.org>
66605
66606         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66607         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66608         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66609         PROVIDE_CANONICALIZE_FILENAME_MODE.
66610         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66611
66612 2007-01-08  Bruno Haible  <bruno@clisp.org>
66613
66614         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66615         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66616         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66617         * lib/fts.c: Likewise.
66618         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66619
66620 2006-12-25  Bruno Haible  <bruno@clisp.org>
66621
66622         * modules/utf8-ucs4-safe: New file.
66623         * lib/utf8-ucs4-safe.h: New file.
66624         * lib/unistr/utf8-ucs4-safe.c: New file.
66625
66626         * modules/utf16-ucs4-safe: New file.
66627         * lib/utf16-ucs4-safe.h: New file.
66628         * lib/unistr/utf16-ucs4-safe.c: New file.
66629
66630         * MODULES.html.sh (Unicode string functions): Add the new modules.
66631
66632 2007-01-08  Bruno Haible  <bruno@clisp.org>
66633
66634         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66635         (Depends-on): Add unitypes.
66636         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66637         (u8_mbtouc_aux): Move out to separate file.
66638         (u8_mbtouc): Use ucs4_t, uint8_t types.
66639         * lib/unistr/utf8-ucs4.c: New file.
66640
66641         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66642         (Depends-on): Add unitypes.
66643         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66644         (u16_mbtouc_aux): Move out to separate file.
66645         (u16_mbtouc): Use ucs4_t, uint16_t types.
66646         * lib/unistr/utf16-ucs4.c: New file.
66647
66648         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66649         (Depends-on): Add unitypes.
66650         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66651         (u8_uctomb_aux): Move out to separate file.
66652         (u8_uctomb): Use ucs4_t, uint8_t types.
66653         * lib/unistr/ucs4-utf8.c: New file.
66654
66655         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66656         (Depends-on): Add unitypes.
66657         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66658         (u16_uctomb_aux): Move out to separate file.
66659         (u16_uctomb): Use ucs4_t, uint16_t types.
66660         * lib/unistr/ucs4-utf16.c: New file.
66661
66662 2006-12-25  Bruno Haible  <bruno@clisp.org>
66663
66664         * modules/unitypes: New file.
66665         * lib/unitypes.h: New file.
66666         * MODULES.html.sh (func_all_modules): New section "Unicode string
66667         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66668         this section. Add unitypes.
66669
66670 2007-01-08  Bruno Haible  <bruno@clisp.org>
66671
66672         Avoid variable names that conflict with those from libtool.
66673         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66674         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66675         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66676         library_names_spec to acl_library_names_spec, hardcode_* to
66677         acl_hardcode_*.
66678         Reported by Ralf Wildenhues.
66679
66680 2007-01-08  Bruno Haible  <bruno@clisp.org>
66681
66682         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66683         definition.
66684         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66685         definition.
66686         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66687         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66688         definition.
66689         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66690         definition.
66691         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66692         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66693         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66694         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66695         definition.
66696         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66697         definition.
66698         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66699         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66700         GC_USE_<algorithm>.
66701         * lib/gc-libgcrypt.c: Likewise.
66702         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66703         * modules/gc-arctwo (configure.ac): Likewise.
66704         * modules/gc-des (configure.ac): Likewise.
66705         * modules/gc-hmac-md5 (configure.ac): Likewise.
66706         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66707         * modules/gc-md2 (configure.ac): Likewise.
66708         * modules/gc-md4 (configure.ac): Likewise.
66709         * modules/gc-md5 (configure.ac): Likewise.
66710         * modules/gc-random (configure.ac): Likewise.
66711         * modules/gc-rijndael (configure.ac): Likewise.
66712         * modules/gc-sha1 (configure.ac): Likewise.
66713
66714 2007-01-08  Bruno Haible  <bruno@clisp.org>
66715
66716         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66717         macro definition.
66718         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66719         definition.
66720         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66721         definition.
66722         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66723         * modules/fcntl-safer (configure.ac): Likewise.
66724         * modules/fopen-safer (configure.ac): Likewise.
66725         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66726         GNULIB_FWRITEERROR macro definition.
66727
66728 2007-01-08  Bruno Haible  <bruno@clisp.org>
66729
66730         * m4/gnulib-common.m4: New file.
66731         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66732         (func_get_filelist): Add m4/gnulib-common.m4.
66733
66734 2007-01-08  Bruno Haible  <bruno@clisp.org>
66735
66736         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66737         command.
66738
66739 2007-01-08  Jim Meyering  <jim@meyering.net>
66740
66741         Use a more robust test for a "can't happen" condition.
66742         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66743         narrowed the st_size value.  Presuming the "can't happen" condition
66744         is true, that narrowing could conceivably convert an invalid st_size
66745         value into a valid one.  Instead, use a change based on Matthew
66746         Woehlke's original patch.
66747
66748         Slight readability improvement: use an assert-like macro
66749         in place of literal "abort ()" uses.
66750         * lib/fts.c (fts_assert): Define.
66751         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66752         Use this macro instead of a bare 'abort'.
66753
66754 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66755
66756         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66757         simply work around them.
66758         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66759         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66760         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66761         declaring.
66762         Don't bother to define as macros, since the standard doesn't require it.
66763         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66764         longer worry about IRIX 5.3.
66765         (HAVE_WCTYPE_CTMP_BUG): Remove.
66766
66767 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66770         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66771         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66772         Problems reported by Georg Schwarz for IRIX 5.3.
66773
66774         * gnulib-tool (autoconf_minversion): Take the maximum version number
66775         found, not the minimum.  Problem reported by James Youngman.
66776
66777 2007-01-03  Karl Berry  <karl@gnu.org>
66778
66779         * doc/error.texi: new file, explaining interaction with progname.
66780         * doc/gnulib.texi: include it.  Update copyright.
66781
66782 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66783
66784         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66785         AC_CANONICAL_HOST, to improve autobuild outputs.
66786
66787 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66788             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66789
66790         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66791         sockets, server sockets, and other file descriptors.  Count errors
66792         to compute the return value.  Reorder the code a bit to be easier
66793         to follow.  Don't set event bits that were not requested (except
66794         POLLERR and POLLHUP).
66795
66796 2007-01-01  Bruno Haible  <bruno@clisp.org>
66797
66798         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66799
66800 2007-01-03  Jim Meyering  <jim@meyering.net>
66801
66802         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66803
66804 2007-01-02  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/settime (Include): Require timespec.h.
66807         * modules/nanosleep (Include): Likewise.
66808
66809 2007-01-01  Bruno Haible  <bruno@clisp.org>
66810
66811         * gnulib-tool (func_emit_copyright_notice): Bump year.
66812         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66813
66814 2007-01-01  Bruno Haible  <bruno@clisp.org>
66815
66816         Improve support for OpenBSD.
66817         * build-aux/config.rpath (libname_spec): Export.
66818         (library_names_spec): New variable. Export.
66819         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66820         library_names_spec from the config.rpath output. Locate shared library
66821         through the name pattern in library_names_spec.
66822
66823 2007-01-01  Eric Blake  <ebb9@byu.net>
66824
66825         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66826
66827 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66830         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66831         assume the C locale, and avoid an "eval" that could cause trouble.
66832         Problem with SORT reported by Bob Proulx.
66833
66834         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66835         Define.  Trivial patch from Henning Nielsen Lund, originally
66836         sent to bug-grep@gnu.org today.
66837
66838 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66841         struct stat.  Problem reported by Henning Nielsen Lund.
66842         * lib/acl.c: Include acl.h first, to check interface.  Don't
66843         bother to include sys/types.h and sys/stat.h again.
66844
66845 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         Import the following change from libc; problem reported by
66848         Sven Verdoolaege.
66849
66850         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66851
66852         [BZ #1373]
66853         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66854
66855 2006-12-28  Jim Meyering  <jim@meyering.net>
66856
66857         * build-aux/announce-gen: Do not assume that the package
66858         builds any of tar.gz, tar.bz2, and .xdelta files.
66859         Suggestion from Simon Josefsson.
66860
66861 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66862
66863         * modules/announce-gen: New file.
66864
66865 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66868         handles its gotchas now.
66869         * lib/mbswidth.c: Likewise.
66870         * lib/wcwidth.h: Likewise.
66871         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66872         and iswcntrl; the wctype module does this stuff now.
66873         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66875         * modules/mbchar (Depends-on): Add wctype.
66876         * modules/mbswidth (Depends-on): Likewise.
66877         * modules/wcwidth (Depends-on): Likewise.
66878
66879 2006-12-27  Eric Blake  <ebb9@byu.net>
66880
66881         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66882         module uses more than what <wctype.h> is required to provide.
66883
66884 2006-12-26  Eric Blake  <ebb9@byu.net>
66885
66886         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66887
66888 2006-12-26  Eric Blake  <ebb9@byu.net>
66889
66890         * modules/absolute-header: New module.
66891         * modules/fcntl (Depends-on): Depend on it.
66892         * modules/inttypes (Depends-on): Likewise.
66893         * modules/stdint (Depends-on): Likewise.
66894         * modules/sys_stat (Depends-on): Likewise.
66895         * modules/wctype (Depends-on): Likewise.
66896         * MODULES.html.sh (Support for building libraries and
66897         executables): Document it.
66898
66899 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * gnulib-tool (SED): Remove, undoing previous change.
66902         The problem was that it broke coreutils on Solaris, because
66903         "sed --posix" leaked into a makefile.
66904         (sed): New alias, if 'alias' and GNU sed.
66905
66906 2006-12-24  Jim Meyering  <jim@meyering.net>
66907
66908         Work around an fchownat bug in glibc-2.4:
66909         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66910         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66911         in spite of the -P option.
66912         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66913         New macros.
66914         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66915         * modules/openat (Files): Add lib/fchownat.c.
66916         * lib/openat.c (fchownat): Don't define here.  Move to...
66917         * lib/fchownat.c: ...this new file.
66918
66919 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66920
66921         Fix bug reported by Bruno Haible in
66922         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66923         where quotearg.c didn't compile on Mac OS X 10.2 because it
66924         lacks <wchar.h> and wint_t.
66925         * lib/wctype_.h (__wctype_wint_t): New type.
66926         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66927         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66928         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66929         Arg is now of type __wctype_wint_t, not wint_t.
66930         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66931         substitute HAVE_WINT_T.
66932         * modules/wctype (Files): Add m4/wint_t.m4.
66933         (wctype.h): Substitute HAVE_WINT_T.
66934
66935 2006-12-23  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66938
66939 2006-12-23  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66942         S_ISLNK.
66943         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66944         mingw.
66945
66946 2006-12-22  Bruno Haible  <bruno@clisp.org>
66947
66948         * lib/copy-file.c: Include acl.h.
66949         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66950         Close the file descriptors only after being done with copy_acl.
66951         * modules/copy-file (Depends-on): Add acl.
66952
66953 2006-12-22  Bruno Haible  <bruno@clisp.org>
66954
66955         * gnulib-tool (SED): New variable.
66956         Use $SED instead of sed everywhere.
66957
66958 2006-12-22  Bruno Haible  <bruno@clisp.org>
66959
66960         * modules/no-c++: New file.
66961         * m4/no-c++.m4: New file.
66962         * MODULES.html.sh (Support for building libraries and executables):
66963         Add no-c++.
66964
66965 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66968         Include <limits.h>, and use its INT_MAX to rewrite the
66969         j loop so that it does not overflow 'int'.  Problem reported by
66970         Ralf Wildenhues in
66971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66972         Play it safe by shifting left by 1 rather than multiplying by 2,
66973         as GCC is less likely to optimize this away when the value
66974         is signed (when it assumes overflow leads to undefined behavior).
66975         Also, don't assume time_t uses two's complement.
66976
66977 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * MODULES.html.sh: New module wctype.
66980         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66981         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66982         <wctype.h>, since the new wctype module should fix this.
66983         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66984         the wctype module should arrange for it.
66985         * lib/regex_internal.h: Likewise.
66986         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66987         since the wctype module should handle this now.
66988         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66989         * modules/fnmatch (Depends-on): Add wctype.
66990         * modules/quotearg (Depends-on): Likewise.
66991         * modules/regex (Depends-on): Likewise.
66992
66993 2006-12-19  Bruno Haible  <bruno@clisp.org>
66994
66995         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66996         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66997
66998 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66999
67000         * modules/savewd (Depends-on): Fix dependency on fcntl.
67001
67002 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67005         conforms to C99, rather than relying on the user's environment
67006         setting of STDINT_H.
67007
67008 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67009         and Eric Blake  <ebb9@byu.net>
67010
67011         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67012         This is more consistent with the other defines here.
67013         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67014         Port to z/OS.  Problem reported by Paul Gilmartin.
67015         Change local vars to use gl_ prefix rather than ac_.
67016         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67017         with other defines.
67018         * modules/double-slash-root: New module.
67019         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67020         (Depends-on): Add double-slash-root.
67021         * MODULES.html.sh (File system functions): Mention new module.
67022
67023 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67024
67025         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67026         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67027         This is for the benefit of gzip, which doesn't do i18n.
67028
67029 2006-12-12  Jim Meyering  <jim@meyering.net>
67030
67031         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67032         Reported by Andreas Schwab <schwab@suse.de>.
67033
67034 2006-12-12  Bruno Haible  <bruno@clisp.org>
67035
67036         Merge these changes.
67037         2006-09-05  Bruno Haible  <bruno@clisp.org>
67038         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67039         iconv_alloc succeeded.
67040         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67041         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67042         test for " && dest " at the end - dest is always != NULL there. Call
67043         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67044         with 2xNULL arguments, also to flush the state storage. Handle the
67045         IRIX iconv behaviour. Realloc the final result, to throw away unused
67046         memory.
67047
67048 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67049
67050         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67051         and fchmodat unconditionally, since glibc 2.4 has them.
67052         Problem reported by Arkadiusz Miskiewicz.
67053
67054 2006-12-10  Bruno Haible  <bruno@clisp.org>
67055
67056         * gnulib-tool (func_import): Show the include files only for those
67057         modules that are copied and specified.
67058         Reported by Karl Berry.
67059
67060 2006-12-08  Jim Meyering  <jim@meyering.net>
67061
67062         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67063         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67064
67065         * build-aux/announce-gen: Add two new options, both optional:
67066         --bootstrap-tools=TOOL_LIST
67067               a comma-separated list of tools, e.g.,
67068               autoconf,automake,bison,gnulib
67069         --gnulib-snapshot-date=DATE
67070               if gnulib is in the bootstrap tool list,
67071               then report this as the snapshot date.
67072               If not specified, use the current date/time.
67073               If you specify a date here, be sure it's UTC.
67074
67075 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67076
67077         * tests/test-argp-2.sh: Fix test to match actual output.
67078         (func_compare): Fix sed script to be portable.
67079
67080 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67083         workaround for this case.  It is not autoconfigured now; offhand
67084         it's hard to see how to autoconfigure it.
67085
67086 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67089         a directory that is about to be chowned.  Such a directory's
67090         initial file permissions should permit the owner only and this
67091         should not be changed until after the chown, since the group and
67092         other bits would be incorrect if they granted permission before
67093         the chown.
67094
67095         Fix porting problem for iswctype reported by Georg Schwarz in:
67096         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67097         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67098         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67099         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67100         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67101
67102 2006-12-03  Jim Meyering  <jim@meyering.net>
67103
67104         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67105         p->fts_statp may not yet be defined.
67106         (fts_read): Instead, set it in the caller, once p->fts_statp is
67107         sure to be defined, and corresponds to a top-level directory.
67108         This bug made du -x fail.  Here's the coreutils test case:
67109         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67110         Reported by Mike Frysinger.
67111
67112 2006-12-01  Jim Meyering  <jim@meyering.net>
67113
67114         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67115         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67116         Reported by Simon Josefsson.
67117
67118 2006-11-30  Jim Meyering  <jim@meyering.net>
67119
67120         * m4/warning.m4: Use the all-permissive copyright notice
67121         recommended by RMS (rather than LGPL).
67122         * m4/vararrays.m4: Likewise.
67123         * m4/flexmember.m4: Likewise.
67124
67125 2006-11-29  Bruno Haible  <bruno@clisp.org>
67126
67127         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67128         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67129         using +=.
67130         Reported by Simon Josefsson <simon@josefsson.org>.
67131
67132 2006-11-28  James Youngman <jay@gnu.org>
67133
67134         * README: Advise users that they might find the bug-gnulib@gnu.org
67135         and autotools-announce@gnu.org mailing lists useful.
67136
67137 2006-11-28  Bruno Haible  <bruno@clisp.org>
67138
67139         * m4/ptrdiff_max.m4: Remove file.
67140
67141 2006-11-21  Bruno Haible  <bruno@clisp.org>
67142
67143         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67144         _AC_COMPUTE_INT.
67145         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67146         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67147         _AC_COMPUTE_INT.
67148         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67149         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67150         _AC_COMPUTE_INT.
67151         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67152
67153 2006-11-28  Jim Meyering  <jim@meyering.net>
67154
67155         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67156         warning from "gcc -Wshadow" about shadowing the builtin.
67157
67158 2006-11-27  Bruno Haible  <bruno@clisp.org>
67159
67160         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67161         _AC_COMPUTE_INT.
67162         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67163
67164 2006-11-27  Bruno Haible  <bruno@clisp.org>
67165             Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67168
67169 2006-11-26  Bruno Haible  <bruno@clisp.org>
67170
67171         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67172         noinst_LTLIBRARIES.
67173
67174 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67175             Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67178         if compiling with "gcc -ansi".
67179
67180 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         Fix some incompatibilities with gcc -ansi -pedantic.
67183         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67184         if compiling pedantically with GCC, unless it's C99 or later.
67185         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67186         it mishandles gcc -ansi -pedantic as well.
67187         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67188         if gcc -pedantic.
67189         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67190         initializers for struct if -pedantic, unless it's C99 or later.
67191
67192 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67193
67194         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67195         Don't close an fd more than once. Identical atimes indicate
67196         success, not failure.
67197
67198 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67199
67200         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67201
67202 2006-11-23  Jim Meyering  <jim@meyering.net>
67203
67204         * build-aux/announce-gen: New file.  From coreutils.
67205
67206 2006-11-22  Jim Meyering  <jim@meyering.net>
67207
67208         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67209         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67210         (fts_read): Use a temporary to narrow the overused st_size member
67211         before using it in a switch statement.  Reported by Matthew Woehlke.
67212
67213         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67214         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67215
67216 2006-11-20  Bruno Haible  <bruno@clisp.org>
67217
67218         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67219         changequote instead of pairs of brackets.
67220         Reported by Andreas Schwab <schwab@suse.de>.
67221
67222 2006-11-21  Jim Meyering  <jim@meyering.net>
67223
67224         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67225         so as to remain compatible with older compilers.
67226         Patch from Michael Deutschmann.
67227
67228 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * MODULES.html.sh (File system functions): Add openat.
67231
67232         * lib/openat.h (rpl_fstatat): New macro, if
67233         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67234         (fstatat): Define to rpl_fstatat under the same conditions,
67235         unless COMPILING_FSTATAT.
67236         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67237         seems to have the bug.
67238         * lib/fstatat.c: New file.
67239         * modules/openat (Files): Add it.
67240
67241 2006-11-20  Bruno Haible  <bruno@clisp.org>
67242
67243         * Makefile: New file.
67244
67245 2006-11-20  Jim Meyering  <jim@meyering.net>
67246
67247         The beginnings of syntax-related checks for gnulib.
67248         * lib/Makefile: New file.
67249         * lib/t-idcache: New script.  Ensure that the two halves of
67250         idcache.c stay in sync.
67251
67252         * lib/idcache.c: Adjust comments in user- and group- portions to
67253         be more accurate, and to be consistent with one another.
67254
67255 2006-11-20  Jim Meyering  <jim@meyering.net>
67256
67257         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67258         continue using the flexible array member (thus, this module performs
67259         half as many malloc calls), with the addition that...
67260         (getgroup, getuser): Consistently record a non-match via an empty
67261         "name" string, and map an empty string match to a NULL return value.
67262         * modules/idcache (Depends-on): Re-add flexmember.
67263
67264         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67265         (getuidbyname, getgroup, getgidbyname): Likewise.
67266
67267         Use cleaner syntax: NULL rather than 0.
67268         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67269
67270 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67273         It mishandled the case where the group was missing.
67274         Problem reported by Greg Schafer.
67275         * modules/idcache: Likewise.
67276
67277 2006-11-18  Jim Meyering  <jim@meyering.net>
67278
67279         * check-module (%exempt_header): Add exception for some
67280         conditionally-included headers.
67281
67282         * modules/i-ring (Depends-on): Add verify.
67283         (License): Change to LGPL.
67284
67285 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67286
67287         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67288         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67289         and inttostr.h.  Use snprintf rather than uinttostr, so that
67290         LGPLed code doesn't depend on GPLed.
67291
67292 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67293
67294         * modules/inline (License): Change from GPL to LGPL.
67295
67296 2006-11-17  Jim Meyering  <jim@meyering.net>
67297
67298         * modules/d-type (License): Switch to LGPL.
67299
67300 2006-11-15  Bruno Haible  <bruno@clisp.org>
67301
67302         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67303
67304 2006-11-15  Eric Blake  <ebb9@byu.net>
67305
67306         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67307         the module dependency.
67308
67309 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67310             Bruno Haible  <bruno@clisp.org>
67311
67312         * gnulib-tool (func_create_testdir): Add license consistency check.
67313
67314 2006-11-15  Eric Blake  <ebb9@byu.net>
67315
67316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67317         random "(cached)" in configure output.
67318
67319 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67320
67321         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67322         test for conforming inttypes.h is both announced and cached.
67323
67324         * MODULES.html.sh (seen_modules, seen_files): New variables.
67325         (func_module): Rewrite to use a few less gnulib-tool and sed
67326         invocations.  Avoid a couple of quadratic algorithms for ...
67327         (missed_modules, missed_files): ... these, with ...
67328         (func_append, func_tmpdir): ... these new functions, from
67329         gnulib-tool.  Analogously, install traps for cleanup.
67330
67331         * tests/test-gc.c (main): Remove unused variables.
67332         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67333
67334 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * modules/inttostr (License): Change to LGPL.
67337
67338 2006-11-14  Eric Blake  <ebb9@byu.net>
67339
67340         * modules/tempname (License): Change to LGPL.
67341
67342 2006-11-14  Eric Blake  <ebb9@byu.net>
67343
67344         * doc/functions.texi (Function Portability): *printf functions on
67345         Cygwin now understand all POSIX size specifiers.
67346
67347 2006-11-14  Bruno Haible  <bruno@clisp.org>
67348
67349         * modules/c-ctype (License): Change to LGPL.
67350
67351 2006-11-12  Bruno Haible  <bruno@clisp.org>
67352
67353         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67354         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67355         for GNOME libraries, for which the include files are installed in
67356         subdirectories of $prefix/include.
67357
67358 2006-11-12  Bruno Haible  <bruno@clisp.org>
67359
67360         * m4/lib-link.m4: Require at least autoconf-2.54.
67361         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67362         name to underscores for the --with option.
67363
67364 2006-11-13  Bruno Haible  <bruno@clisp.org>
67365
67366         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67367         the tests directory.
67368         Reported by Ralf Wildenhues.
67369
67370 2006-11-13  Bruno Haible  <bruno@clisp.org>
67371
67372         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67373         (func_emit_initmacro_end): Undo the override here.
67374         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67375         Works around the famous automake error in coreutils.
67376
67377 2006-11-13  Eric Blake  <ebb9@byu.net>
67378
67379         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67380         element, not its node.
67381
67382 2006-11-12  Bruno Haible  <bruno@clisp.org>
67383
67384         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67385         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67386
67387 2006-11-12  Bruno Haible  <bruno@clisp.org>
67388
67389         * gnulib-tool: New option --local-symlink.
67390         (func_usage): Document it.
67391         (lsymbolic): New variable.
67392         (func_import, func_create_testdir): If --symlink was not specified,
67393         test whether --local-symlink was specified and the file comes from
67394         the local_gnulib_dir.
67395
67396 2006-11-12  Bruno Haible  <bruno@clisp.org>
67397
67398         * gnulib-tool (func_ln): New function.
67399         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67400
67401 2006-11-12  Bruno Haible  <bruno@clisp.org>
67402
67403         Finish support for source files in subdirectories.
67404         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67405         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67406         AUTOMAKE_OPTIONS.
67407         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67408
67409 2006-11-12  Bruno Haible  <bruno@clisp.org>
67410
67411         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67412         EXTRA_lib_SOURCES augmentation.
67413         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67414
67415 2006-11-12  Jim Meyering  <jim@meyering.net>
67416
67417         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67418         file descriptors.  This also averts a failure on systems with
67419         native openat support when a traversed directory lacks "x" access.
67420         * lib/fts_.h: Include "i-ring.h"
67421         (struct FTS) [fts_fd_ring]: New member.
67422         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67423         (FCHDIR): Add parentheses.
67424         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67425         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67426         When descending, rather than simply closing the previous
67427         fts_cwd_fd value, push that file descriptor onto the ring.
67428         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67429         (fts_open): Initialize the new fd_ring member.
67430         (fts_close): Clear the ring.
67431         (fts_safe_changedir): When possible, use our new fd_ring to skip
67432         the diropen and fstat and dev/ino comparison that would normally
67433         accompany a virtual `chdir ("..")'.
67434
67435         * modules/fts (Depends-on): Add i-ring.
67436         * modules/i-ring: New module.
67437         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67438         * m4/i-ring.m4: New file.
67439
67440 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67441
67442         * gnulib-tool (func_create_testdir): Fix replacement of
67443         `build-aux' in configure.ac.  Run autotools in gltests
67444         subdirectory.
67445         (func_create_testdir, func_create_megatestdir, test): There is
67446         no need for '--force' in most autotool invocations in a new
67447         tree.  Actually fail the whole test if any of the tools, or the
67448         configure or make stages fail.
67449
67450         Sync from Automake.
67451         * build-aux/gnupload: Revert last change.  Add pointer to upload
67452         instructions of the GNU Maintenance Instructions.
67453         Suggestion by Karl Berry.
67454
67455 2006-11-10  Jim Meyering  <jim@meyering.net>
67456
67457         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67458
67459 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67462         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67463         (bind_textdomain_codeset) [! ENABLE_NLS]:
67464         Evaluate all the arguments.  That way, callers get compatible behavior
67465         if the arguments have side effects.  Also, it avoids some GCC
67466         diagnostics in some cases; Joel E. Denny reported problems when Bison
67467         was configured with --enable-gcc-warnigs.
67468
67469 2006-11-10  Jim Meyering  <jim@meyering.net>
67470
67471         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67472         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67473         account.
67474
67475 2006-11-10  Jim Meyering  <jim@meyering.net>
67476
67477         * modules/inline: New file/module.
67478         * modules/xalloc (Files): Remove m4/inline.m4.
67479         (Depends-on): Add inline, instead.
67480         * modules/oset: Likewise.
67481         * modules/list: Likewise.
67482
67483 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67486         Problem reported by Matthew Woehlke.
67487
67488 2006-11-09  Bruno Haible  <bruno@clisp.org>
67489
67490         * lib/tempname.c (gen_tempname): Remove variant that invokes
67491         __gen_tempname.
67492         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67493         __gen_tempname.
67494
67495 2006-11-08  Bruno Haible  <bruno@clisp.org>
67496
67497         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67498         to 'yes' instead of 'cross-compiling'.
67499
67500 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * lib/quotearg.h (quotearg_free): New decl.
67503         * lib/quotearg.c (quotearg_free): New function.
67504         (slot0, nslots, slotvec0, slotvec):
67505         Now file-scope so that quotearg_free can get at them.
67506
67507 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67508
67509         Sync from Automake.
67510         * build-aux/gnupload: Add missing 'gnu' to example URL.
67511         Report by Karl Berry.
67512
67513 2006-11-08  Bruno Haible  <bruno@clisp.org>
67514
67515         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67516         Suggested by Paul Eggert.
67517
67518 2006-11-08  Jim Meyering  <jim@meyering.net>
67519
67520         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67521         It's already included if !_LIBC.
67522         (fts_safe_changedir): Add a comment.
67523
67524 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67527         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67528         Matthew Woehlke.
67529
67530         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67531         definitions up, to avoid colliding with change below.
67532         (static_inline) [HAVE_INLINE]: New macro.
67533         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67534         Provide extern decls when !HAVE_INLINE.  Do not define unless
67535         static_inline is defined, either by us or by xmalloc.c.  Use
67536         static_inline rather than static inline.
67537         (XCALLOC): Optimize sizeof(T) = 1 case.
67538         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67539
67540 2006-11-07  Bruno Haible  <bruno@clisp.org>
67541
67542         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67543         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67544         AC_C_INLINE.
67545         * modules/xalloc (Files): Add m4/inline.m4.
67546
67547 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67548
67549         * README: Fix typo.
67550         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67551         (Miscellanous Notes): ...from this.
67552
67553 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67556         Mention that offsetof should be used instead of sizeof.
67557         From Bruno Haible.
67558
67559 2006-11-07  Bruno Haible  <bruno@clisp.org>
67560
67561         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67562
67563 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67566         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67567         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67568         (gl_tree_add_before, gl_tree_add_after):
67569         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67570         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67571         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67572         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67573         (gl_linked_add_after, gl_linked_add_at): Likewise.
67574         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67575         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67576         (gl_tree_add_before, gl_tree_add_after): Likewise.
67577         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67578         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67579         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67580
67581 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67582
67583         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67584
67585 2006-11-06  Bruno Haible  <bruno@clisp.org>
67586
67587         * m4/inline.m4: New file.
67588         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67589         * modules/list (Files): Add m4/inline.m4.
67590         * modules/oset (Files): Likewise.
67591
67592 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67593
67594         * lib/idcache.c: Include <stddef.h>, for offsetof.
67595         (struct userid.name): Change from char * to a flexible array member.
67596         All uses changed.
67597         * modules/idcache (Depends-on): Add flexmember.
67598
67599         * MODULES.html.sh (Core language properties): New module flexmember.
67600         * modules/flexmember, m4/flexmember.m4: New files.
67601
67602         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67603         inline functions that are identical with the old xnmalloc_inline,
67604         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67605         that we can avoid some unnecessary integer multiplications and
67606         divisions in the common case where the element size is known at
67607         compile time.
67608         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67609         needed.
67610         (xnboundedmalloc): Remove.
67611         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67612         arguments, for consistency with rest of this header.
67613         (xcharalloc): Rewrite using XNMALLOC.
67614         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67615         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67616         versions have been moved to lib/xalloc.h and renamed to be the
67617         non-*_inline versions.
67618         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67619         and xnrealloc functions, since those functions are now inline and
67620         now call us.
67621         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67622         renaming described above.
67623         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67624         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67625         captures the dependency in AC_C_INLINE.
67626
67627         New module canonicalize-lgpl, proposed by Charles Wilson in
67628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67629         with a few small changes afterwards.
67630         * MODULES.html.sh (File system functions): New module
67631         canonicalize-lgpl.
67632         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67633         and canonicalize_file_name.
67634         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67635         * modules/canonicalize-lgpl: New files.
67636
67637 2006-11-05  Bruno Haible  <bruno@clisp.org>
67638
67639         * gnulib-tool (func_import, func_create_testdir): Create directories
67640         also for files in subdirectories of lib/.
67641
67642 2006-11-05  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67645         ANSI C compliant.
67646
67647 2006-11-03  Bruno Haible  <bruno@clisp.org>
67648
67649         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67650         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67651         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67652         (xnboundedmalloc): New inline function.
67653         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67654         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67655         xmalloc.
67656         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67657         xmalloc.
67658         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67659         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67660         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67661         xmalloc.
67662         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67663         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67664         xmalloc.
67665         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67666         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67667         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67668         xmalloc.
67669         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67670         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67671         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67672         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67673         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67674         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67675         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67676
67677 2006-11-03  Bruno Haible  <bruno@clisp.org>
67678
67679         * lib/c-ctype.h [C++]: Define functions without name mangling.
67680         * lib/fwriteerror.h [C++]: Likewise.
67681         * lib/gcd.h [C++]: Likewise.
67682         * lib/linebreak.h [C++]: Likewise.
67683
67684 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67687         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67688         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67689         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67690         Check for functions and headers just once.
67691         Check for declaration of canonicalize_file_name.
67692         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67693
67694 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67695
67696         * gnulib-tool (func_import): Fix typo in actioncmd.
67697
67698 2006-11-02  Bruno Haible  <bruno@clisp.org>
67699
67700         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67701         newline sequence in the Makefile.am snippet as a space, like "make"
67702         does.
67703         Reported by Roger Persson <perrog@gmail.com>.
67704
67705 2006-11-01  Bruno Haible  <bruno@clisp.org>
67706
67707         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67708         already declared in <string.h>.
67709         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67710
67711 2006-11-01  Bruno Haible  <bruno@clisp.org>
67712
67713         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67714         * lib/strcase.h: Include <string.h>.
67715         (strcasecmp): Define to rpl_strcasecmp here.
67716
67717 2006-11-01  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67720
67721 2006-11-01  Eric Blake  <ebb9@byu.net>
67722
67723         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67724
67725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67726
67727 2006-10-29  Bruno Haible  <bruno@clisp.org>
67728
67729         Make it compile in C++ mode.
67730         * lib/full-write.c (full_rw): Add a cast.
67731
67732 2006-11-01  Bruno Haible  <bruno@clisp.org>
67733
67734         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67735         be POSIX compliant.
67736         Reported by Roger Persson <perrog@gmail.com>.
67737
67738 2006-11-01  Eric Blake  <ebb9@byu.net>
67739
67740         * lib/getopt_.h: Fix comments.
67741
67742 2006-10-31  Eric Blake  <ebb9@byu.net>
67743
67744         * modules/tmpdir (Depends-on): Add sys_stat.
67745         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67746         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67747         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67748         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67749         tempname.
67750
67751 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         Avoid some C++ diagnostics reported by Bruno Haible.
67754         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67755         xmalloc.
67756         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67757         (struct slotvec): Move to top level.
67758         (quotearg_n_options): Rewrite to avoid xmalloc.
67759         * lib/xalloc.h (xcharalloc): New function.
67760         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67761         [defined __cplusplus]: Add function template that provides result
67762         type propagation.  This part of the change is from Bruno Haible.
67763
67764 2006-10-29  Bruno Haible  <bruno@clisp.org>
67765
67766         Make it compile in C++ mode.
67767         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67768         * lib/strnlen1.c (strnlen1): Cast memchr result.
67769         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67770         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67771         (create_temp_dir): Rename local variable 'template'.
67772         (compile_csharp_using_sscli): Add cast.
67773         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67774         * lib/findprog.c (find_in_path): Likewise.
67775         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67776         * lib/wait-process.c (register_slave_subprocess): Likewise.
67777
67778 2006-10-22  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/tsearch: New file.
67781         * lib/tsearch.h: New file.
67782         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67783         * m4/tsearch.m4: New file.
67784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67785
67786 2006-10-29  Eric Blake  <ebb9@byu.net>
67787
67788         * lib/arcfour.c: Assume config.h.
67789         * lib/arctwo.c: Likewise.
67790         * lib/base64.c: Likewise.
67791         * lib/check-version.c: Likewise.
67792         * lib/crc.c: Likewise.
67793         * lib/des.c: Likewise.
67794         * lib/gc-gnulib.c: Likewise.
67795         * lib/gc-libgcrypt.c: Likewise.
67796         * lib/gc-pbkdf2-sha1.c: Likewise.
67797         * lib/getaddrinfo.c: Likewise.
67798         * lib/getdelim.c: Likewise.
67799         * lib/getline.c: Likewise.
67800         * lib/hmac-md5.c: Likewise.
67801         * lib/hmac-sha1.c: Likewise.
67802         * lib/iconvme.c: Likewise.
67803         * lib/md2.c: Likewise.
67804         * lib/md4.c: Likewise.
67805         * lib/memxor.c: Likewise.
67806         * lib/read-file.c: Likewise.
67807         * lib/readline.c: Likewise.
67808         * lib/rijndael-alg-fst.c: Likewise.
67809         * lib/rijndael-api-fst.c: Likewise.
67810         * lib/xgetdomainname.c: Likewise.
67811
67812 2006-10-28  Eric Blake  <ebb9@byu.net>
67813
67814         * lib/xstrndup.c: Assume config.h.
67815
67816 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67819         stat-macros.h is now for our own macros, whereas stat_h is for
67820         macros in the <sys/stat.h> name space.
67821         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67822         (STAT_MACROS_H): Remove.
67823         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67824         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67825         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67826         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67827         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67828         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67829         Move these macros to ...
67830         * lib/stat_.h: here.  Don't include stat-macros.h.
67831         * lib/canonicalize.c: Don't include stat-macros.h.
67832         * lib/chown.c: Likewise.
67833         * lib/euidaccess.c: Likewise.
67834         * lib/file-type.c: Likewise.
67835         * lib/filemode.c: Likewise.
67836         * lib/glob.c: Likewise.
67837         * lib/isapipe.c: Likewise.
67838         * lib/lchown.c: Likewise.
67839         * lib/lstat.c: Likewise.
67840         * lib/mkdir-p.c: Likewise.
67841         * lib/rmdir.c: Likewise.
67842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67844         unless mkdir isn't declared, to speed up 'configure'.
67845         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67846         would define all the S_* symbols.
67847         * modules/canonicalize (Depends-on):
67848         Depend on sys_stat, not stat-macros.
67849         * modules/chown: Likewise.
67850         * modules/euidaccess: Likewise.
67851         * modules/filemode: Likewise.
67852         * modules/file-type: Likewise.
67853         * modules/glob: Likewise.
67854         * modules/isapipe: Likewise.
67855         * modules/lchown: Likewise.
67856         * modules/lstat: Likewise.
67857         * modules/mkancesdirs: Likewise.
67858         * modules/rmdir: Likewise.
67859         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67860         * modules/modechange: Likewise.
67861         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67862         (configure.ac): Remove gl_STAT_MACROS.
67863         * modules/sys_stat (Depends-on): Remove stat-macros.
67864
67865 2006-10-27  Bruno Haible  <bruno@clisp.org>
67866
67867         * m4/signed.m4: Remove file.
67868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67869         invocation.
67870         * modules/vasnprintf (Files): Remove m4/signed.m4.
67871
67872 2006-10-27  Bruno Haible  <bruno@clisp.org>
67873
67874         Update to GNU gettext 0.16.
67875         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67876         m4/inttypes-h.m4, m4/signed.m4.
67877         * m4/gettext.m4: Update to GNU gettext 0.16.
67878         * m4/intl.m4: New file, from GNU gettext.
67879         * m4/intldir.m4: New file, from GNU gettext.
67880         * config/srclist.txt: Update
67881
67882 2006-10-27  Eric Blake  <ebb9@byu.net>
67883
67884         * MODULES.html.sh: Document tempname.
67885         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67886         dependencies.
67887         (Files): Move lib/tempname.c...
67888         * modules/tempname: ...to this new module.
67889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67890         (gl_PREREQ_TEMPNAME): Move...
67891         * m4/tempname.m4: ...to this new file.
67892         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67893         * modules/sys_stat (Depends-on): Add stat-macros.
67894         * lib/stat_.h (includes): Pick up stat macros.
67895         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67896         if stat macros are broken.
67897         * lib/tempname.c (includes): No need to include "stat-macros.h".
67898         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67899         (direxists, __path_search) [!_LIBC]: Don't compile these in
67900         gnulib; the tmpdir module covers that.
67901         * lib/tempname.h: New file.
67902
67903 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * COPYING: Explain how gnulib-tool converts licence headers.
67906         Almost all wording by Eric Blake.
67907
67908 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * lib/mbchar.h (is_basic_table): Make read-only.
67911         * lib/mbchar.c (is_basic_table): Likewise.
67912         Reported by John Darrington.
67913
67914 2006-10-25  Bruno Haible  <bruno@clisp.org>
67915
67916         * lib/progname.h (set_program_name): Undefine before defining.
67917
67918 2006-10-25  Bruno Haible  <bruno@clisp.org>
67919
67920         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67921         false for non-gcc C++ compilers.
67922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67923
67924 2006-10-24  Bruno Haible  <bruno@clisp.org>
67925
67926         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67927         iconv implementations like Irix iconv.
67928
67929 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * modules/vararrays: New file.
67932         * m4/vararrays.m4: New file, taken from diffutils.
67933         * MODULES.html.sh: New module vararrays.
67934
67935 2006-10-24  Karl Berry  <karl@gnu.org>
67936
67937         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67938         Don't call GNU Unix.
67939
67940 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67941
67942         * users.txt: Add Libtool.
67943
67944         Sync from Libtool:
67945
67946         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67949         to gnulib's policy of including config.h unconditionally.
67950
67951 2006-10-24  Bruno Haible  <bruno@clisp.org>
67952
67953         * modules/wcwidth (Files): Add m4/wint_t.m4.
67954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67955         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67956
67957 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67960         to pacify GCC with some -W flags enabled.  Problem reported by
67961         Bruno Haible.
67962
67963 2006-10-24  Jim Meyering  <jim@meyering.net>
67964
67965         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67966         Reported by Karl Berry.
67967
67968 2006-10-23  Bruno Haible  <bruno@clisp.org>
67969
67970         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67971
67972 2006-10-24  Bruno Haible  <bruno@clisp.org>
67973
67974         * lib/gl_list.h: Use C comment style, not C++ comment style.
67975
67976 2006-10-23  Eric Blake  <ebb9@byu.net>
67977
67978         * lib/getaddrinfo.c (includes): Add missing include.
67979
67980 2006-10-23  Bruno Haible  <bruno@clisp.org>
67981             Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         Ability to rename obstack_free.
67984         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67985         obstack_free.
67986         (obstack_free): Invoke the __obstack_free macro.
67987         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67988
67989 2006-10-23  Bruno Haible  <bruno@clisp.org>
67990             Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67993         __argc, __argv from the declaration. (They are defined as macros on
67994         mingw.)
67995
67996 2006-10-22  Bruno Haible  <bruno@clisp.org>
67997
67998         * doc/gnulib-intro.texi: New file.
67999         * doc/gnulib.texi: Include it.
68000
68001 2006-10-21  Bruno Haible  <bruno@clisp.org>
68002
68003         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68004         "Introduction", "Miscellanous Notes", "Particular Modules".
68005
68006 2006-10-21  Bruno Haible  <bruno@clisp.org>
68007
68008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68009         Change mostlyclean-local rule to avoid sh syntax error from bash
68010         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68011
68012 2006-10-23  Jim Meyering  <jim@meyering.net>
68013
68014         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68015         in place of snprintf.
68016
68017         * modules/inttostr (Files): Add lib/uinttostr.c.
68018         * lib/uinttostr.c (inttostr): New file/function.
68019         * lib/inttostr.h (uinttostr): Declare.
68020         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68021         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68022         Add uinttostr.
68023         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68024
68025 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * lib/canonicalize.c (ELOOP): Define if not already defined.
68028         Problem reported by Bruno Haible in
68029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68030
68031 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68034         Problem reported by Perry Smith and Ville Laurikari.
68035
68036         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68037         uses.
68038
68039 2006-10-19  Bruno Haible  <bruno@clisp.org>
68040
68041         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68042         for mingw.
68043
68044 2006-10-19  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68047         Needed for mingw.
68048
68049 2006-10-19  Bruno Haible  <bruno@clisp.org>
68050
68051         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68052
68053 2006-10-19  Bruno Haible  <bruno@clisp.org>
68054
68055         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68056         it.
68057
68058 2006-10-19  Bruno Haible  <bruno@clisp.org>
68059
68060         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68061         invocation.
68062
68063 2006-10-19  Bruno Haible  <bruno@clisp.org>
68064
68065         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68066         mountlist by default.
68067
68068 2006-10-16  Bruno Haible  <bruno@clisp.org>
68069
68070         * lib/c-strstr.c: Include c-strstr.h.
68071
68072 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68073
68074         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68075         in a slash.
68076
68077 2006-10-18  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/lock.h [C++]: Wrap definitions in extern "C".
68080
68081 2006-10-18  Bruno Haible  <bruno@clisp.org>
68082
68083         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68084         gl_LIBOBJS list.
68085
68086 2006-10-18  Bruno Haible  <bruno@clisp.org>
68087
68088         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68089
68090 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * lib/xstrtol.h: Include gettext.h.
68093         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68094         Problem reported by Eric Blake.
68095         * modules/xstrtol (Depends-on): Add gettext-h.
68096
68097 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68098
68099         * lib/strftime.c (advance): New macro.
68100         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68101         incomplete type, so you can't add 0 to it.  Problem and patch
68102         reported by Eelco Dolstra for dietlibc.
68103
68104 2006-10-18  Jim Meyering  <jim@meyering.net>
68105
68106         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68107         type for a local, and rename it: s/up/user_proc/.
68108
68109 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68110
68111         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68112         READ_UTMP_USER_PROCESS.
68113         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68114
68115 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68118         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68119
68120 2006-10-17  Eric Blake  <ebb9@byu.net>
68121
68122         * lib/sigprocmask.c (sigprocmask): Fix typo.
68123
68124         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68125
68126         * modules/clean-temp (Makefile.am): Don't add to make output...
68127         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68128         config.h.
68129
68130 2006-10-17  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68133         differently if DEFAULT_TEXT_DOMAIN is set.
68134
68135 2006-10-16  Bruno Haible  <bruno@clisp.org>
68136
68137         * lib/clean-temp.c: Include fwriteerror.h.
68138
68139 2006-10-16  Bruno Haible  <bruno@clisp.org>
68140
68141         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68142
68143 2006-10-16  Bruno Haible  <bruno@clisp.org>
68144
68145         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68146         * lib/sigprocmask.h: Include <sys/types.h>.
68147         (sigset_t): Use the system's definition if present.
68148
68149 2006-10-17  Eric Blake  <ebb9@byu.net>
68150
68151         * lib/xvasprintf.c (includes): Assume config.h.
68152         * lib/xasprintf.c (includes): Likewise.
68153
68154 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68157         at least as wide as intmax_t.
68158
68159 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68160
68161         (Imported from Automake.)
68162         * build-aux/gnupload: Update to version 1.1 of directive file.
68163
68164 2006-10-16  Eric Blake  <ebb9@byu.net>
68165
68166         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68167         match Automake 1.10a.
68168
68169 2006-10-14  Bruno Haible  <bruno@clisp.org>
68170
68171         * modules/sigprocmask: New file.
68172         * lib/sigprocmask.h: New file.
68173         * lib/sigprocmask.c: New file.
68174         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68175         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68176         request sigprocmask.o.
68177         (gl_PREREQ_SIGPROCMASK): New macro.
68178         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68179         (Depends-on): Add sigprocmask.
68180         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68181         gt_SIGNALBLOCKING. Test for 'raise' only once.
68182         * lib/fatal-signal.c: Include sigprocmask.h.
68183         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68184         unblock_fatal_signals): Define always.
68185         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68186         sigprocmask.
68187
68188 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68189
68190         Sync from Automake.
68191         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68192         which incorrectly sets the mode of an existing destination
68193         directory.  In some cases the unpatched install-sh could do the
68194         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68195         system.  We hope this is rare in practice, but it's clearly worth
68196         fixing.  Problem reported by Alex Unleashed in
68197         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68198         Also, don't bother to check for -m bugs unless we're using -m;
68199         suggested by Stepan Kasal.
68200
68201 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68202
68203         Sync from Automake.
68204         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68205         `-c' flag, so they appear at the same position as in %FASTDEP%
68206         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68207         which ignores unknown options only after the first non-option.
68208         Bug report against M4 by Nelson H. F. Beebe.
68209
68210 2006-10-13  Jim Meyering  <jim@meyering.net>
68211
68212         Fix a bug in yesterday's change.
68213         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68214         p->fts_statp->st_dev would be used uninitialized.
68215         Ensures that we always call fts_stat on the very first entry.
68216         Miklos Szeredi reported that find -xdev stopped working.
68217
68218 2006-10-12  Bruno Haible  <bruno@clisp.org>
68219
68220         * gnulib-tool (func_get_automake_snippet): Append an automatically
68221         computed EXTRA_DIST augmentation.
68222         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68223         * modules/alloca-opt (Makefile.am): Likewise.
68224         * modules/allocsa (Makefile.am): Likewise.
68225         * modules/arcfour (Makefile.am): Likewise.
68226         * modules/arctwo (Makefile.am): Likewise.
68227         * modules/argmatch (Makefile.am): Likewise.
68228         * modules/argz (Makefile.am): Likewise.
68229         * modules/atexit (Makefile.am): Likewise.
68230         * modules/backupfile (Makefile.am): Likewise.
68231         * modules/byteswap (Makefile.am): Likewise.
68232         * modules/c-strtod (Makefile.am): Likewise.
68233         * modules/c-strtold (Makefile.am): Likewise.
68234         * modules/calloc (Makefile.am): Likewise.
68235         * modules/canon-host (Makefile.am): Likewise.
68236         * modules/canonicalize (Makefile.am): Likewise.
68237         * modules/chdir-long (Makefile.am): Likewise.
68238         * modules/chdir-safer (Makefile.am): Likewise.
68239         * modules/check-version (Makefile.am): Likewise.
68240         * modules/chown (Makefile.am): Likewise.
68241         * modules/cloexec (Makefile.am): Likewise.
68242         * modules/close-stream (Makefile.am): Likewise.
68243         * modules/closeout (Makefile.am): Likewise.
68244         * modules/crc (Makefile.am): Likewise.
68245         * modules/csharpexec (Makefile.am): Likewise.
68246         * modules/cycle-check (Makefile.am): Likewise.
68247         * modules/des (Makefile.am): Likewise.
68248         * modules/dev-ino (Makefile.am): Likewise.
68249         * modules/dirfd (Makefile.am): Likewise.
68250         * modules/dirname (Makefile.am): Likewise.
68251         * modules/dup2 (Makefile.am): Likewise.
68252         * modules/eealloc (Makefile.am): Likewise.
68253         * modules/error (Makefile.am): Likewise.
68254         * modules/euidaccess (Makefile.am): Likewise.
68255         * modules/exclude (Makefile.am): Likewise.
68256         * modules/exitfail (Makefile.am): Likewise.
68257         * modules/fcntl-safer (Makefile.am): Likewise.
68258         * modules/fcntl (Makefile.am): Likewise.
68259         * modules/file-type (Makefile.am): Likewise.
68260         * modules/fileblocks (Makefile.am): Likewise.
68261         * modules/filemode (Makefile.am): Likewise.
68262         * modules/filenamecat (Makefile.am): Likewise.
68263         * modules/fnmatch (Makefile.am): Likewise.
68264         * modules/fopen-safer (Makefile.am): Likewise.
68265         * modules/fpending (Makefile.am): Likewise.
68266         * modules/fprintftime (Makefile.am): Likewise.
68267         * modules/free (Makefile.am): Likewise.
68268         * modules/fsusage (Makefile.am): Likewise.
68269         * modules/ftruncate (Makefile.am): Likewise.
68270         * modules/fts (Makefile.am): Likewise.
68271         * modules/gc-arcfour (Makefile.am): Likewise.
68272         * modules/gc-des (Makefile.am): Likewise.
68273         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68274         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68275         * modules/gc-md4 (Makefile.am): Likewise.
68276         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68277         * modules/gc-sha1 (Makefile.am): Likewise.
68278         * modules/gc (Makefile.am): Likewise.
68279         * modules/getaddrinfo (Makefile.am): Likewise.
68280         * modules/getcwd (Makefile.am): Likewise.
68281         * modules/getdelim (Makefile.am): Likewise.
68282         * modules/getdomainname (Makefile.am): Likewise.
68283         * modules/getgroups (Makefile.am): Likewise.
68284         * modules/gethostname (Makefile.am): Likewise.
68285         * modules/gethrxtime (Makefile.am): Likewise.
68286         * modules/getline (Makefile.am): Likewise.
68287         * modules/getloadavg (Makefile.am): Likewise.
68288         * modules/getlogin_r (Makefile.am): Likewise.
68289         * modules/getndelim2 (Makefile.am): Likewise.
68290         * modules/getopt (Makefile.am): Likewise.
68291         * modules/getpagesize (Makefile.am): Likewise.
68292         * modules/getpass-gnu (Makefile.am): Likewise.
68293         * modules/getpass (Makefile.am): Likewise.
68294         * modules/getsubopt (Makefile.am): Likewise.
68295         * modules/gettime (Makefile.am): Likewise.
68296         * modules/gettimeofday (Makefile.am): Likewise.
68297         * modules/getugroups (Makefile.am): Likewise.
68298         * modules/getusershell (Makefile.am): Likewise.
68299         * modules/glob (Makefile.am): Likewise.
68300         * modules/group-member (Makefile.am): Likewise.
68301         * modules/hard-locale (Makefile.am): Likewise.
68302         * modules/hash (Makefile.am): Likewise.
68303         * modules/hmac-md5 (Makefile.am): Likewise.
68304         * modules/hmac-sha1 (Makefile.am): Likewise.
68305         * modules/human (Makefile.am): Likewise.
68306         * modules/idcache (Makefile.am): Likewise.
68307         * modules/imaxabs (Makefile.am): Likewise.
68308         * modules/imaxdiv (Makefile.am): Likewise.
68309         * modules/inet_ntop (Makefile.am): Likewise.
68310         * modules/inet_pton (Makefile.am): Likewise.
68311         * modules/intprops (Makefile.am): Likewise.
68312         * modules/inttostr (Makefile.am): Likewise.
68313         * modules/inttypes (Makefile.am): Likewise.
68314         * modules/isapipe (Makefile.am): Likewise.
68315         * modules/javaversion (Makefile.am): Likewise.
68316         * modules/lchmod (Makefile.am): Likewise.
68317         * modules/lchown (Makefile.am): Likewise.
68318         * modules/localcharset (Makefile.am): Likewise.
68319         * modules/long-options (Makefile.am): Likewise.
68320         * modules/lstat (Makefile.am): Likewise.
68321         * modules/malloc (Makefile.am): Likewise.
68322         * modules/mathl (Makefile.am): Likewise.
68323         * modules/mbchar (Makefile.am): Likewise.
68324         * modules/md2 (Makefile.am): Likewise.
68325         * modules/md4 (Makefile.am): Likewise.
68326         * modules/md5 (Makefile.am): Likewise.
68327         * modules/memcasecmp (Makefile.am): Likewise.
68328         * modules/memchr (Makefile.am): Likewise.
68329         * modules/memcmp (Makefile.am): Likewise.
68330         * modules/memcoll (Makefile.am): Likewise.
68331         * modules/memcpy (Makefile.am): Likewise.
68332         * modules/memmem (Makefile.am): Likewise.
68333         * modules/memmove (Makefile.am): Likewise.
68334         * modules/mempcpy (Makefile.am): Likewise.
68335         * modules/memrchr (Makefile.am): Likewise.
68336         * modules/memset (Makefile.am): Likewise.
68337         * modules/memxor (Makefile.am): Likewise.
68338         * modules/mkancesdirs (Makefile.am): Likewise.
68339         * modules/mkdir-p (Makefile.am): Likewise.
68340         * modules/mkdir (Makefile.am): Likewise.
68341         * modules/mkdtemp (Makefile.am): Likewise.
68342         * modules/mkstemp (Makefile.am): Likewise.
68343         * modules/mktime (Makefile.am): Likewise.
68344         * modules/modechange (Makefile.am): Likewise.
68345         * modules/mountlist (Makefile.am): Likewise.
68346         * modules/nanosleep (Makefile.am): Likewise.
68347         * modules/obstack (Makefile.am): Likewise.
68348         * modules/openat (Makefile.am): Likewise.
68349         * modules/pagealign_alloc (Makefile.am): Likewise.
68350         * modules/pathmax (Makefile.am): Likewise.
68351         * modules/physmem (Makefile.am): Likewise.
68352         * modules/poll (Makefile.am): Likewise.
68353         * modules/posixtm (Makefile.am): Likewise.
68354         * modules/posixver (Makefile.am): Likewise.
68355         * modules/putenv (Makefile.am): Likewise.
68356         * modules/quote (Makefile.am): Likewise.
68357         * modules/quotearg (Makefile.am): Likewise.
68358         * modules/raise (Makefile.am): Likewise.
68359         * modules/read-file (Makefile.am): Likewise.
68360         * modules/readline (Makefile.am): Likewise.
68361         * modules/readlink (Makefile.am): Likewise.
68362         * modules/readtokens (Makefile.am): Likewise.
68363         * modules/readutmp (Makefile.am): Likewise.
68364         * modules/realloc (Makefile.am): Likewise.
68365         * modules/regex (Makefile.am): Likewise.
68366         * modules/rename-dest-slash (Makefile.am): Likewise.
68367         * modules/rename (Makefile.am): Likewise.
68368         * modules/rijndael (Makefile.am): Likewise.
68369         * modules/rmdir (Makefile.am): Likewise.
68370         * modules/rpmatch (Makefile.am): Likewise.
68371         * modules/safe-read (Makefile.am): Likewise.
68372         * modules/safe-write (Makefile.am): Likewise.
68373         * modules/same-inode (Makefile.am): Likewise.
68374         * modules/same (Makefile.am): Likewise.
68375         * modules/save-cwd (Makefile.am): Likewise.
68376         * modules/savedir (Makefile.am): Likewise.
68377         * modules/setenv (Makefile.am): Likewise.
68378         * modules/settime (Makefile.am): Likewise.
68379         * modules/sha1 (Makefile.am): Likewise.
68380         * modules/sig2str (Makefile.am): Likewise.
68381         * modules/snprintf (Makefile.am): Likewise.
68382         * modules/stat-macros (Makefile.am): Likewise.
68383         * modules/stat-time (Makefile.am): Likewise.
68384         * modules/stdbool (Makefile.am): Likewise.
68385         * modules/stdint (Makefile.am): Likewise.
68386         * modules/stdlib-safer (Makefile.am): Likewise.
68387         * modules/stpcpy (Makefile.am): Likewise.
68388         * modules/stpncpy (Makefile.am): Likewise.
68389         * modules/strcase (Makefile.am): Likewise.
68390         * modules/strcasestr (Makefile.am): Likewise.
68391         * modules/strchrnul (Makefile.am): Likewise.
68392         * modules/strcspn (Makefile.am): Likewise.
68393         * modules/strdup (Makefile.am): Likewise.
68394         * modules/strerror (Makefile.am): Likewise.
68395         * modules/strftime (Makefile.am): Likewise.
68396         * modules/strndup (Makefile.am): Likewise.
68397         * modules/strnlen (Makefile.am): Likewise.
68398         * modules/strpbrk (Makefile.am): Likewise.
68399         * modules/strsep (Makefile.am): Likewise.
68400         * modules/strstr (Makefile.am): Likewise.
68401         * modules/strtod (Makefile.am): Likewise.
68402         * modules/strtoimax (Makefile.am): Likewise.
68403         * modules/strtok_r (Makefile.am): Likewise.
68404         * modules/strtol (Makefile.am): Likewise.
68405         * modules/strtoll (Makefile.am): Likewise.
68406         * modules/strtoul (Makefile.am): Likewise.
68407         * modules/strtoull (Makefile.am): Likewise.
68408         * modules/strtoumax (Makefile.am): Likewise.
68409         * modules/strverscmp (Makefile.am): Likewise.
68410         * modules/sys_socket (Makefile.am): Likewise.
68411         * modules/sys_stat (Makefile.am): Likewise.
68412         * modules/sysexits (Makefile.am): Likewise.
68413         * modules/time_r (Makefile.am): Likewise.
68414         * modules/timegm (Makefile.am): Likewise.
68415         * modules/timespec (Makefile.am): Likewise.
68416         * modules/tmpfile-safer (Makefile.am): Likewise.
68417         * modules/trim (Makefile.am): Likewise.
68418         * modules/unistd-safer (Makefile.am): Likewise.
68419         * modules/unlinkdir (Makefile.am): Likewise.
68420         * modules/unlocked-io (Makefile.am): Likewise.
68421         * modules/userspec (Makefile.am): Likewise.
68422         * modules/utime (Makefile.am): Likewise.
68423         * modules/utimecmp (Makefile.am): Likewise.
68424         * modules/utimens (Makefile.am): Likewise.
68425         * modules/vasnprintf (Makefile.am): Likewise.
68426         * modules/vasprintf (Makefile.am): Likewise.
68427         * modules/vsnprintf (Makefile.am): Likewise.
68428         * modules/xalloc (Makefile.am): Likewise.
68429         * modules/xgetcwd (Makefile.am): Likewise.
68430         * modules/xnanosleep (Makefile.am): Likewise.
68431         * modules/xreadlink (Makefile.am): Likewise.
68432         * modules/xstrtod (Makefile.am): Likewise.
68433         * modules/xstrtol (Makefile.am): Likewise.
68434         * modules/xstrtold (Makefile.am): Likewise.
68435         * modules/yesno (Makefile.am): Likewise.
68436         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68437
68438 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * modules/error (Makefile.am): Distribute files through
68441         EXTRA_DIST, not lib_SOURCES.
68442
68443 2006-10-12  Eric Blake  <ebb9@byu.net>
68444
68445         * modules/error (Makefile.am): Distribute files in /lib.
68446         * modules/obstack (Makefile.am): Likewise.
68447
68448 2006-10-12  Bruno Haible  <bruno@clisp.org>
68449
68450         * modules/acl (Makefile.am): Distribute all files in lib/ through
68451         EXTRA_DIST.
68452         * modules/arcfour (Makefile.am): Likewise.
68453         * modules/arctwo (Makefile.am): Likewise.
68454         * modules/argmatch (Makefile.am): Likewise.
68455         * modules/argz (Makefile.am): Likewise.
68456         * modules/atexit (Makefile.am): Likewise.
68457         * modules/backupfile (Makefile.am): Likewise.
68458         * modules/c-strtod (Makefile.am): Likewise.
68459         * modules/c-strtold (Makefile.am): Likewise.
68460         * modules/calloc (Makefile.am): Likewise.
68461         * modules/canon-host (Makefile.am): Likewise.
68462         * modules/canonicalize (Makefile.am): Likewise.
68463         * modules/chdir-long (Makefile.am): Likewise.
68464         * modules/chdir-safer (Makefile.am): Likewise.
68465         * modules/check-version (Makefile.am): Likewise.
68466         * modules/chown (Makefile.am): Likewise.
68467         * modules/cloexec (Makefile.am): Likewise.
68468         * modules/close-stream (Makefile.am): Likewise.
68469         * modules/closeout (Makefile.am): Likewise.
68470         * modules/crc (Makefile.am): Likewise.
68471         * modules/cycle-check (Makefile.am): Likewise.
68472         * modules/des (Makefile.am): Likewise.
68473         * modules/dirfd (Makefile.am): Likewise.
68474         * modules/dirname (Makefile.am): Likewise.
68475         * modules/dup2 (Makefile.am): Likewise.
68476         * modules/euidaccess (Makefile.am): Likewise.
68477         * modules/exclude (Makefile.am): Likewise.
68478         * modules/exitfail (Makefile.am): Likewise.
68479         * modules/fcntl-safer (Makefile.am): Likewise.
68480         * modules/file-type (Makefile.am): Likewise.
68481         * modules/fileblocks (Makefile.am): Likewise.
68482         * modules/filemode (Makefile.am): Likewise.
68483         * modules/filenamecat (Makefile.am): Likewise.
68484         * modules/fnmatch (Makefile.am): Likewise.
68485         * modules/fopen-safer (Makefile.am): Likewise.
68486         * modules/fpending (Makefile.am): Likewise.
68487         * modules/fprintftime (Makefile.am): Likewise.
68488         * modules/free (Makefile.am): Likewise.
68489         * modules/fsusage (Makefile.am): Likewise.
68490         * modules/ftruncate (Makefile.am): Likewise.
68491         * modules/fts (Makefile.am): Likewise.
68492         * modules/gc (Makefile.am): Likewise.
68493         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68494         * modules/getaddrinfo (Makefile.am): Likewise.
68495         * modules/getcwd (Makefile.am): Likewise.
68496         * modules/getdelim (Makefile.am): Likewise.
68497         * modules/getdomainname (Makefile.am): Likewise.
68498         * modules/getgroups (Makefile.am): Likewise.
68499         * modules/gethostname (Makefile.am): Likewise.
68500         * modules/gethrxtime (Makefile.am): Likewise.
68501         * modules/getline (Makefile.am): Likewise.
68502         * modules/getloadavg (Makefile.am): Likewise.
68503         * modules/getlogin_r (Makefile.am): Likewise.
68504         * modules/getopt (Makefile.am): Likewise.
68505         * modules/getpass (Makefile.am): Likewise.
68506         * modules/getpass-gnu (Makefile.am): Likewise.
68507         * modules/getsubopt (Makefile.am): Likewise.
68508         * modules/gettime (Makefile.am): Likewise.
68509         * modules/gettimeofday (Makefile.am): Likewise.
68510         * modules/getugroups (Makefile.am): Likewise.
68511         * modules/getusershell (Makefile.am): Likewise.
68512         * modules/glob (Makefile.am): Likewise.
68513         * modules/group-member (Makefile.am): Likewise.
68514         * modules/hard-locale (Makefile.am): Likewise.
68515         * modules/hash (Makefile.am): Likewise.
68516         * modules/hmac-md5 (Makefile.am): Likewise.
68517         * modules/hmac-sha1 (Makefile.am): Likewise.
68518         * modules/human (Makefile.am): Likewise.
68519         * modules/idcache (Makefile.am): Likewise.
68520         * modules/imaxabs (Makefile.am): Likewise.
68521         * modules/imaxdiv (Makefile.am): Likewise.
68522         * modules/inet_ntop (Makefile.am): Likewise.
68523         * modules/inet_pton (Makefile.am): Likewise.
68524         * modules/inttostr (Makefile.am): Likewise.
68525         * modules/isapipe (Makefile.am): Likewise.
68526         * modules/lchown (Makefile.am): Likewise.
68527         * modules/long-options (Makefile.am): Likewise.
68528         * modules/lstat (Makefile.am): Likewise.
68529         * modules/malloc (Makefile.am): Likewise.
68530         * modules/mathl (Makefile.am): Likewise.
68531         * modules/mbchar (Makefile.am): Likewise.
68532         * modules/md2 (Makefile.am): Likewise.
68533         * modules/md4 (Makefile.am): Likewise.
68534         * modules/md5 (Makefile.am): Likewise.
68535         * modules/memcasecmp (Makefile.am): Likewise.
68536         * modules/memchr (Makefile.am): Likewise.
68537         * modules/memcmp (Makefile.am): Likewise.
68538         * modules/memcoll (Makefile.am): Likewise.
68539         * modules/memcpy (Makefile.am): Likewise.
68540         * modules/memmem (Makefile.am): Likewise.
68541         * modules/memmove (Makefile.am): Likewise.
68542         * modules/mempcpy (Makefile.am): Likewise.
68543         * modules/memrchr (Makefile.am): Likewise.
68544         * modules/memset (Makefile.am): Likewise.
68545         * modules/memxor (Makefile.am): Likewise.
68546         * modules/mkancesdirs (Makefile.am): Likewise.
68547         * modules/mkdir (Makefile.am): Likewise.
68548         * modules/mkdir-p (Makefile.am): Likewise.
68549         * modules/mkdtemp (Makefile.am): Likewise.
68550         * modules/mkstemp (Makefile.am): Likewise.
68551         * modules/mktime (Makefile.am): Likewise.
68552         * modules/modechange (Makefile.am): Likewise.
68553         * modules/mountlist (Makefile.am): Likewise.
68554         * modules/nanosleep (Makefile.am): Likewise.
68555         * modules/openat (Makefile.am): Likewise.
68556         * modules/pagealign_alloc (Makefile.am): Likewise.
68557         * modules/physmem (Makefile.am): Likewise.
68558         * modules/poll (Makefile.am): Likewise.
68559         * modules/posixtm (Makefile.am): Likewise.
68560         * modules/posixver (Makefile.am): Likewise.
68561         * modules/putenv (Makefile.am): Likewise.
68562         * modules/quote (Makefile.am): Likewise.
68563         * modules/quotearg (Makefile.am): Likewise.
68564         * modules/raise (Makefile.am): Likewise.
68565         * modules/read-file (Makefile.am): Likewise.
68566         * modules/readline (Makefile.am): Likewise.
68567         * modules/readlink (Makefile.am): Likewise.
68568         * modules/readtokens (Makefile.am): Likewise.
68569         * modules/readutmp (Makefile.am): Likewise.
68570         * modules/realloc (Makefile.am): Likewise.
68571         * modules/regex (Makefile.am): Likewise.
68572         * modules/rename (Makefile.am): Likewise.
68573         * modules/rename-dest-slash (Makefile.am): Likewise.
68574         * modules/rijndael (Makefile.am): Likewise.
68575         * modules/rmdir (Makefile.am): Likewise.
68576         * modules/rpmatch (Makefile.am): Likewise.
68577         * modules/safe-read (Makefile.am): Likewise.
68578         * modules/safe-write (Makefile.am): Likewise.
68579         * modules/same (Makefile.am): Likewise.
68580         * modules/save-cwd (Makefile.am): Likewise.
68581         * modules/savedir (Makefile.am): Likewise.
68582         * modules/setenv (Makefile.am): Likewise.
68583         * modules/settime (Makefile.am): Likewise.
68584         * modules/sha1 (Makefile.am): Likewise.
68585         * modules/sig2str (Makefile.am): Likewise.
68586         * modules/snprintf (Makefile.am): Likewise.
68587         * modules/stdlib-safer (Makefile.am): Likewise.
68588         * modules/stpcpy (Makefile.am): Likewise.
68589         * modules/stpncpy (Makefile.am): Likewise.
68590         * modules/strcase (Makefile.am): Likewise.
68591         * modules/strcasestr (Makefile.am): Likewise.
68592         * modules/strchrnul (Makefile.am): Likewise.
68593         * modules/strcspn (Makefile.am): Likewise.
68594         * modules/strdup (Makefile.am): Likewise.
68595         * modules/strerror (Makefile.am): Likewise.
68596         * modules/strftime (Makefile.am): Likewise.
68597         * modules/strndup (Makefile.am): Likewise.
68598         * modules/strnlen (Makefile.am): Likewise.
68599         * modules/strpbrk (Makefile.am): Likewise.
68600         * modules/strsep (Makefile.am): Likewise.
68601         * modules/strstr (Makefile.am): Likewise.
68602         * modules/strtod (Makefile.am): Likewise.
68603         * modules/strtoimax (Makefile.am): Likewise.
68604         * modules/strtok_r (Makefile.am): Likewise.
68605         * modules/strtol (Makefile.am): Likewise.
68606         * modules/strtoll (Makefile.am): Likewise.
68607         * modules/strtoul (Makefile.am): Likewise.
68608         * modules/strtoull (Makefile.am): Likewise.
68609         * modules/strtoumax (Makefile.am): Likewise.
68610         * modules/strverscmp (Makefile.am): Likewise.
68611         * modules/time_r (Makefile.am): Likewise.
68612         * modules/timegm (Makefile.am): Likewise.
68613         * modules/tmpfile-safer (Makefile.am): Likewise.
68614         * modules/unistd-safer (Makefile.am): Likewise.
68615         * modules/unlinkdir (Makefile.am): Likewise.
68616         * modules/userspec (Makefile.am): Likewise.
68617         * modules/utime (Makefile.am): Likewise.
68618         * modules/utimecmp (Makefile.am): Likewise.
68619         * modules/utimens (Makefile.am): Likewise.
68620         * modules/vasnprintf (Makefile.am): Likewise.
68621         * modules/vasprintf (Makefile.am): Likewise.
68622         * modules/vsnprintf (Makefile.am): Likewise.
68623         * modules/xalloc (Makefile.am): Likewise.
68624         * modules/xgetcwd (Makefile.am): Likewise.
68625         * modules/xnanosleep (Makefile.am): Likewise.
68626         * modules/xreadlink (Makefile.am): Likewise.
68627         * modules/xstrtod (Makefile.am): Likewise.
68628         * modules/xstrtol (Makefile.am): Likewise.
68629         * modules/xstrtold (Makefile.am): Likewise.
68630         * modules/yesno (Makefile.am): Likewise.
68631
68632 2006-10-12  Jim Meyering  <jim@meyering.net>
68633
68634         * m4/getloadavg.m4: Revert the change below.
68635
68636         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68637         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68638         fail with a symlink, which is what coreutils' ./bootstrap now
68639         creates by default.
68640
68641 2006-10-12  Bruno Haible  <bruno@clisp.org>
68642
68643         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68644         mingw.
68645         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68646         MSVC and mingw explicitly.
68647
68648 2006-10-11  Simon Josefsson  <jas@extundo.com>
68649             Bruno Haible  <bruno@clisp.org>
68650
68651         Add support for multiple gnulib-tool invocations in the scope of a
68652         single configure.ac file.
68653         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68654         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68655         with the same contents as the _LIBADD variable.
68656         (func_emit_initmacro_start, func_emit_initmacro_end,
68657         func_emit_initmacro_done): New functions.
68658         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68659         gl_LIBOBJS and gl_LTLIBOBJS.
68660
68661 2006-10-11  Bruno Haible  <bruno@clisp.org>
68662
68663         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68664         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68665         autoreconf. Instead, invoke autopoint explicitly but move back the
68666         *.m4 files from gnulib.
68667
68668 2006-10-11  Bruno Haible  <bruno@clisp.org>
68669
68670         * gnulib-tool (func_usage): Make module names after --create-testdir
68671         optional.
68672         (func_create_testdir): If no module was specified, use nearly all
68673         modules.
68674
68675 2006-10-12  Jim Meyering  <jim@meyering.net>
68676
68677         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68678         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68679         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68680         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68681         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68682         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68683         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68684         (fts_set_stat_required): New function.
68685         (fts_open): Defer the calls to fts_stat, if possible or requested.
68686         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68687         into fts_stat itself.
68688         (fts_read): Perform any required (deferred) fts_stat call.
68689         (fts_build): Likewise, for the directory we're about to open and read.
68690         In the readdir loop, carefully decide whether each entry will require
68691         an eventual call to fts_stat, using dirent.d_type info if available.
68692         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68693         a command line argument into this function.  Update all callers.
68694         Map a return value of FTS_DOT to FTS_D for a command line argument.
68695         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68696         Thanks to Miklos Szeredi for his tenacity and for the initial
68697         bug report about "find" failing on a FUSE-based file system.
68698
68699         * lib/fts.c (fts_open): Use consistent indentation.
68700
68701 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68704         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68705         reported by Jim Meyering.  All uses of cache variables renamed
68706         to match Autoconf's.
68707         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68708         the other one.
68709
68710         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68711         Fix misspelling in diagnostic.
68712
68713 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68716         defined.  Problem reported by Matthew Woehlke.
68717
68718         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68719         Add support for Tandem NonStop R series.
68720         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68721         Use new macro.
68722
68723         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68724         (has_trailing_slash): Omit size arg; all callers changed.
68725         Omit 'inline', since it doesn't help performance and we'd
68726         need to configure it.
68727         Don't count //, ///, etc. as having a trailing slash.
68728         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68729         (rpl_rename_dest_slash): On failure, use rename's errno rather
68730         than (in some cases) an incorrect or junk errno.
68731         Simplify code by removing need to compute length; this does
68732         cause it to make two passes instead of one over the file name,
68733         but it's worth it.
68734
68735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68736         change, since Autoconf's version may no longer be appropriate now
68737         that we are using CVS Autoconf's version.  Add support for Tandem.
68738
68739 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68740             Bruno Haible  <bruno@clisp.org>
68741
68742         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68743         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68744         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68745         gl_AC_TYPE_LONG_LONG.
68746
68747         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68748         instead of HAVE_LONG_LONG.
68749         * lib/printf-args.c (printf_fetchargs): Likewise.
68750         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68751         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68752         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68753         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68754         gl_AC_TYPE_LONG_LONG.
68755
68756 2006-10-11  Bruno Haible  <bruno@clisp.org>
68757
68758         * m4/longlong.m4: Add comments.
68759         * m4/ulonglong.m4: Likewise.
68760
68761 2006-10-10  Bruno Haible  <bruno@clisp.org>
68762
68763         Make it possible to #define stpcpy, strdup to aliases.
68764         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68765         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68766
68767 2006-10-10  Bruno Haible  <bruno@clisp.org>
68768
68769         Make it possible to #define gcd to an alias.
68770         * lib/gcd.c: Include config.h.
68771
68772 2006-10-10  Bruno Haible  <bruno@clisp.org>
68773
68774         Make it possible to #define c_isascii to an alias.
68775         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68776         defined. Undefine the macros before defining them, to avoid gcc
68777         warnings.
68778         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68779         define NO_C_CTYPE_MACROS early.
68780
68781 2006-10-10  Bruno Haible  <bruno@clisp.org>
68782
68783         Make it possible to #define set_program_name to an alias.
68784         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68785         ENABLE_RELOCATABLE early.
68786
68787 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68790         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68791         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68792         More generally, don't assume that 64-bit signed int is available
68793         if unsigned int is, and vice versa.
68794         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68795         unsigned symbols, not on their signed counterparts.
68796         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68797         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68798         (UINT64_C, UINTMAX_C):
68799         Likewise.
68800         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68801         unsigned counterparts.
68802         (Have_long_long, Unsigned): New macros.
68803         (Int): Renamed from INT.
68804         (strtoimax): Use the new macros.
68805         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68806         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68807         * modules/inttypes (inttypes.h): Substitute
68808         HAVE_UNSIGNED_LONG_LONG_INT.
68809         * modules/stdint (stdint.h): Likewise.
68810         (Files): Add m4/ulonglong.m4.
68811
68812 2006-10-10  Bruno Haible  <bruno@clisp.org>
68813
68814         Fix a gcc -Wshadow warning.
68815         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68816         to 'bucket'.
68817         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68818         gl_linked_indexof_from_to): Likewise.
68819         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68820         Likewise.
68821         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68822         Likewise.
68823         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68824         Reported by Eric Blake.
68825
68826 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68829         for NetBSD.  Problem reported by Bruno Haible.
68830
68831 2006-10-09  Jim Meyering  <jim@meyering.net>
68832
68833         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68834         Patch from Bruno Haible.
68835
68836 2006-10-09  Jim Meyering  <jim@meyering.net>
68837
68838         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68839         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68840         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68841
68842 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         Don't include <config.h> twice; this doesn't work in some cases,
68845         e.g., when config.h has "#define intmax_t long long int" and
68846         we include <config.h>, <inttypes.h>, <config.h> in that order.
68847         Problem reported by Matthew Woehlke in:
68848         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68849         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68850         * lib/fts-cycle.c: Don't include config.h.
68851         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68852         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68853         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68854         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68855         inttypes.h.
68856         * lib/xstrtoumax.c: Likewise.
68857         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68858         __strtol and the like, so that this module is more like its siblings.
68859         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68860         Remove; no longer needed now that we assume gnulib inttypes.h.
68861
68862 2006-10-08  Bruno Haible  <bruno@clisp.org>
68863
68864         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68865         option.
68866
68867 2006-10-07  Jim Meyering  <jim@meyering.net>
68868
68869         * modules/inttypes (inttypes.h): Revert what seems to have been
68870         an inadvertent part of today's change: use "|", not "/" in the
68871         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68872
68873 2006-10-07  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/sublist: New file.
68876
68877 2006-10-07  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68880         * modules/argz (argz.h): Likewise.
68881         * modules/arpa_inet (arpa/inet.h): Likewise.
68882         * modules/byteswap (byteswap.h): Likewise.
68883         * modules/configmake (configmake.h): Likewise.
68884         * modules/fcntl (fcntl.h): Likewise.
68885         * modules/fnmatch (fnmatch.h): Likewise.
68886         * modules/getopt (getopt.h): Likewise.
68887         * modules/glob (glob.h): Likewise.
68888         * modules/inttypes (inttypes.h): Likewise.
68889         * modules/netinet_in (netinet/in.h): Likewise.
68890         * modules/poll (poll.h): Likewise.
68891         * modules/stdbool (stdbool.h): Likewise.
68892         * modules/stdint (stdint.h): Likewise.
68893         * modules/sys_select (sys/select.h): Likewise.
68894         * modules/sys_socket (sys/socket.h): Likewise.
68895         * modules/sys_stat (sys/stat.h): Likewise.
68896         * modules/sysexits (sysexits.h): Likewise.
68897         * modules/unistd (unistd.h): Likewise.
68898         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68899         Add a "DO NOT EDIT" comment to the generated file.
68900         (func_import): Likewise for gnulib-comp.m4.
68901
68902 2006-10-07  Bruno Haible  <bruno@clisp.org>
68903
68904         * lib/gl_sublist.h: New file.
68905         * lib/gl_sublist.c: New file.
68906
68907 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68910         name (relative to the original working directory) and the file
68911         name component (relative to the temporary working directory).  All
68912         callers changed.
68913         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68914         * lib/mkdir-p.c (make_dir_parents): Likewise.
68915         * lib/mkdir-p.h (make_dir_parents): Likewise.
68916
68917 2006-10-06  Eric Blake  <ebb9@byu.net>
68918
68919         Define several macros for use by the clean-temp module.
68920         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68921         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68922         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68923
68924         * lib/clean-temp.h (close_stream_temp): New declaration.
68925         * lib/clean-temp.c (includes): Pull in headers according to what
68926         other modules are in use.
68927         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68928
68929 2006-10-06  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68932         instead of fopen, fwriteerror.
68933
68934 2006-10-06  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68937         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68938         int.
68939         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68940         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68941         Return an error indicator.
68942         Suggested by Eric Blake.
68943
68944 2006-10-06  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68947         Reported by Eric Blake.
68948
68949 2006-10-06  Bruno Haible  <bruno@clisp.org>
68950
68951         * modules/closeout (Description): Mention stderr too.
68952
68953 2006-10-06  Bruno Haible  <bruno@clisp.org>
68954         and Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * lib/closeout.c (close_stdout): Also close stderr.
68957         * lib/closeout.h: Update comment.
68958
68959 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68962         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68963         * lib/dirchownmod.c: Include lchown.h.
68964         * lib/lchown.c: Don't include files that lchown.h now includes.
68965         Don't declare chown, since lchown.h now does that.
68966         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68967         (lchown): Define to rpl_chown if lchown is declared but
68968         does not exist.  Declare using a prototype if lchown is not
68969         declared.  Add a copyright notice.
68970         * lib/mkstemp.h: Include <unistd.h>.
68971         * lib/openat.c: Include lchown.h.
68972
68973         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68974         we now test for that separately.
68975         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68976         rather than O_NOFOLLOW, when testing whether it's possible to
68977         avoid a race condition reliably.
68978         * lib/savewd.c (savewd_chdir): Likewise.
68979
68980         Remove macros that are no longer needed now that stdint.h is
68981         reliable.
68982         * lib/fsusage.c (UINTMAX_MAX): Remove.
68983         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68984         * lib/utimecmp.c (SIZE_MAX): Remove.
68985
68986         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68987
68988         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68989         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68990         O_NOATIME works.
68991
68992 2006-10-05  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/gl_list.h (gl_sortedlist_search_from_to,
68995         gl_sortedlist_indexof_from_to): New declarations.
68996         (gl_list_implementation): New fields sortedlist_search_from_to,
68997         sortedlist_indexof_from_to.
68998         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68999         inline functions.
69000         * lib/gl_list.c (gl_sortedlist_search_from_to,
69001         gl_sortedlist_indexof_from_to): New functions.
69002         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69003         function.
69004         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69005         (gl_array_sortedlist_search_from_to): New function.
69006         (gl_array_list_implementation): Update.
69007         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69008         function.
69009         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69010         (gl_carray_sortedlist_search_from_to): New function.
69011         (gl_carray_list_implementation): Update.
69012         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69013         gl_linked_sortedlist_indexof_from_to): New functions.
69014         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69015         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69016         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69017         gl_tree_sortedlist_indexof_from_to): New functions.
69018         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69019         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69020         Update.
69021         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69022         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69023         Update.
69024
69025 2006-10-05  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69028         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69029         (struct gl_list_implementation): Add fields search_from_to,
69030         indexof_from_to. Remove fields search, indexof.
69031         (gl_list_search): Use the search_from_to method.
69032         (gl_list_search_from, gl_list_search_from_to): New functions.
69033         (gl_list_indexof): Use the indexof_from_to method.
69034         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69035         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69036         (gl_list_search_from, gl_list_search_from_to): New functions.
69037         (gl_list_indexof): Use the indexof_from_to method.
69038         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69039         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69040         gl_array_indexof. Add start_index, end_index arguments.
69041         (gl_array_search_from_to): Renamed from gl_array_search. Add
69042         start_index, end_index arguments.
69043         (gl_array_remove, gl_array_list_implementation): Update.
69044         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69045         gl_carray_indexof. Add start_index, end_index arguments.
69046         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69047         start_index, end_index arguments.
69048         (gl_carray_remove, gl_carray_list_implementation): Update.
69049         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69050         gl_linked_search. Add start_index, end_index arguments.
69051         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69052         start_index, end_index arguments.
69053         (gl_linked_remove): Update.
69054         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69055         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69056         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69057         field to 'size_t'.
69058         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69059         gl_tree_search. Add start_index, end_index arguments.
69060         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69061         start_index, end_index arguments.
69062         (gl_tree_remove): Update.
69063         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69064         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69065         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69066         function.
69067         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69068         gl_tree_search. Add start_index, end_index arguments.
69069         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69070         start_index, end_index arguments.
69071         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69072         Update.
69073         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69074
69075 2006-10-05  Bruno Haible  <bruno@clisp.org>
69076
69077         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69078
69079         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69080         fwriteerror_temp): New declarations.
69081         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69082         (descriptors): New variable.
69083         (cleanup): First, close the descriptors.
69084         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69085         fclose_temp, fwriteerror_temp): New functions.
69086
69087 2006-10-04  Jim Meyering  <jim@meyering.net>
69088
69089         * lib/fts.c (fts_open): Tiny comment change.
69090
69091 2006-10-04  Bruno Haible  <bruno@clisp.org>
69092
69093         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69094         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69095         gl_LOCK_BODY.
69096         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69097         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69098         gl_LOCK_EARLY_BODY.
69099         (gl_LOCK): Require gl_LOCK_BODY.
69100
69101 2006-10-04  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69104         (gl_oset_search_atleast): New declaration.
69105         (struct gl_oset_implementation): Add field 'search_atleast'.
69106         (gl_oset_search_atleast): New inline function.
69107         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69108         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69109         (gl_array_oset_implementation): Update.
69110         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69111         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69112         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69113
69114 2006-10-04  Bruno Haible  <bruno@clisp.org>
69115
69116         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69117
69118 2006-10-03  Bruno Haible  <bruno@clisp.org>
69119
69120         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69121         from gl_avltreehash_list_implementation.
69122
69123 2006-10-03  Bruno Haible  <bruno@clisp.org>
69124
69125         * lib/gl_oset.c (gl_oset_add): Fix return type.
69126
69127 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69128
69129         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69130
69131 2006-10-02  Eric Blake  <ebb9@byu.net>
69132
69133         * modules/strnlen (Depends-on): Add extensions.
69134
69135 2006-10-02  Eric Blake  <ebb9@byu.net>
69136
69137         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69138         definition in 2.60+.
69139
69140 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69141
69142         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69143         checks.
69144
69145 2006-10-02  Bruno Haible  <bruno@clisp.org>
69146
69147         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69148         to the AUTOMAKE_OPTIONS.
69149         Reported by Jim Meyering.
69150
69151 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         Work around bug in Solaris 10 /proc file system:
69154         /proc/self/fd/NNN/.. isn't the parent directory of
69155         the directory whose file descriptor is NNN.  This needs to
69156         be worked around at run time, not compile time, since a
69157         program might be built on Solaris 8, where things work, and
69158         run on Solaris 10.
69159         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69160         to use the following interface instead:
69161         (OPENAT_BUFFER_SIZE): New macro.
69162         (openat_proc_name): New function.
69163         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69164         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69165         Likewise.
69166         * lib/openat-proc.c: New file.
69167         * modules/openat (Files): Add lib/openat-proc.c.
69168         (Depends-on): Add same-inode, stdbool.
69169         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69170
69171 2006-09-29  Bruno Haible  <bruno@clisp.org>
69172
69173         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69174         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69175         argument. Set stdout_closed before testing for ferror, not after.
69176         (fwriteerror, fwriteerror_no_ebadf): New functions.
69177
69178 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69179
69180         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69181
69182 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69183
69184         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69185         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69186
69187 2006-09-28  Jim Meyering  <jim@meyering.net>
69188
69189         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69190         Include <unistd.h>.
69191
69192 2006-09-28  Bruno Haible  <bruno@clisp.org>
69193
69194         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69195         * modules/linkedhash-list (Depends-on): Likewise.
69196         * modules/rbtreehash-list (Depends-on): Likewise.
69197
69198 2006-09-28  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/strndup.h: Simplify the redefinition of strndup.
69201         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69202         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69203
69204 2006-09-28  Bruno Haible  <bruno@clisp.org>
69205
69206         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69207         * lib/gl_linkedhash_list.c: Likewise.
69208         * lib/gl_rbtreehash_list.c: Likewise.
69209
69210 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69211
69212         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69213         getaddrinfo.
69214
69215         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69216         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69217         it causes <stdio_ext.h> to cause a compile-time error.
69218         Problem reported by Nelson H. F. Beebe.
69219         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69220         of HAVE_DECL___PENDING.
69221
69222         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69223         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69224         declaration.
69225
69226 2006-09-27  Jim Meyering  <jim@meyering.net>
69227
69228         This file could end up with a definition for a function
69229         named __strndup, rather than rpl_strndup on a system with
69230         incomplete weak_alias support.
69231         * lib/strndup.c (strndup): Rename from __strndup.
69232         Remove #defines that used to map __strndup to strndup.
69233         Don't use K&R prototypes.
69234         Remove LIBC-related code, since this file is not sync'd with glibc.
69235         * lib/strndup.h: Revamp, accordingly.
69236         * m4/strndup.m4: Modernize.
69237
69238 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * modules/savewd (Depends-on): Add 'raise'.
69241         * lib/savewd.c: Include <signal.h>, for 'raise'.
69242
69243 2006-09-26  Jim Meyering  <jim@meyering.net>
69244
69245         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69246         when we detect Darwin 8.7.0's acl_get_file bug.
69247         Rearrange to perform the new (below) run-test while $LIBS
69248         contains any acl-related library.  Set USE_ACL at the end.
69249         (gl_ACL_GET_FILE): New function.
69250
69251 2006-09-26  Eric Blake  <ebb9@byu.net>
69252
69253         * lib/verror.c: Include <config.h> unconditionally.
69254
69255 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * modules/clock-time (Maintainer): Add self.
69258         * modules/getlogin_r (Depends-on): Add extensions.
69259
69260 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69261
69262         * modules/clock-time: New module.
69263         * modules/nanosleep (Depends-on): Add clock-time.
69264         * modules/gethrxtime (Depends-on): Likewise.
69265         * modules/gettime (Depends-on): Likewise.
69266         * modules/settime (Depends-on): Likewise.
69267
69268         * modules/fts-lgpl: Depend on openat.
69269         * modules/mkancesdirs: Depend on savewd.
69270         * modules/mkdir-p: Likewise.
69271
69272 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69273
69274         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69275
69276         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69277         `gl_have_arbitrary_file_name_length_limit' to
69278         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69279         actually works between configure runs.
69280
69281 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69282             Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69285
69286 2006-09-25  Jim Meyering  <jim@meyering.net>
69287
69288         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69289         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69290
69291 2006-09-25  Eric Blake  <ebb9@byu.net>
69292
69293         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69294         exec's in 2006-09-18 patch when shuffling fds.
69295
69296 2006-09-25  Bruno Haible  <bruno@clisp.org>
69297
69298         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69299         Reported by Jim Meyering.
69300
69301 2006-09-24  Jim Meyering  <jim@meyering.net>
69302
69303         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69304         compare a pointer against a literal "0".  That caused failures with
69305         at least HP-UX's hpcc.
69306
69307 2006-09-22  Simon Josefsson  <jas@extundo.com>
69308
69309         * modules/gc-sha1:
69310         * modules/gc-md4:
69311         * modules/gc-hmac-sha1:
69312         * modules/gc-hmac-md5:
69313         * modules/gc-des:
69314         * modules/gc-arcfour: Distribute more files.
69315
69316 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69317
69318         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69319         (gl_linked_iterator_from_to): Initialize struct completely.
69320         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69321         (gl_tree_iterator_from_to): Likewise
69322         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69323         * lib/gl_array_list.c [lint] (gl_array_iterator)
69324         (gl_array_iterator_from_to): Likewise.
69325         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69326         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69327         (gl_carray_iterator_from_to): Likewise.
69328
69329         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69330         * lib/md4.c (md4_process_block): Remove unused variable.
69331         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69332         parentheses for clarity.
69333
69334 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69335
69336         * modules/bison-i18n (Depends-on): Add gettext.
69337
69338 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69339
69340         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69341         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69342         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69343         also add missing comma that caused broken test.
69344         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69345         stdlib.h, for `abort'.
69346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69347         variables.
69348         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69349         include unistd.h if present, for `rmdir'.
69350         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69351         variables.
69352         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69353         in the process include standard headers for prototypes.
69354         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69355         gets declared on GNU/Linux.
69356         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69357         unistd.h, for `rmdir'.
69358         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69359
69360         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69361         always true.
69362         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69363
69364         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69365
69366 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69367
69368         * gnulib-tool (func_version): Create output all at once.  This
69369         may help avoid triggering unnecessary SIGPIPEs, and at any
69370         rate it doesn't hurt.
69371
69372 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69373             Bruno Haible  <bruno@clisp.org>
69374
69375         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69376         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69377         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69378
69379         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69380         (gl_FUNC_VASPRINTF): Invoke it.
69381
69382 2006-09-22  Bruno Haible  <bruno@clisp.org>
69383
69384         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69385         getloadavg.c as first argument.
69386
69387 2006-09-22  Bruno Haible  <bruno@clisp.org>
69388
69389         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69390         at the beginning of the gl_INIT macro.
69391         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69392         gl_GETLOADAVG.
69393
69394 2006-09-22  Bruno Haible  <bruno@clisp.org>
69395
69396         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69397         module.
69398         Suggested by Ralf Wildenhues.
69399
69400 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         Import this patch from libc:
69403
69404         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69405
69406         * lib/regex_internal.c (re_string_reconstruct): Handle
69407         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69408         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69409         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69410         re_string_context_at.
69411
69412         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69413         now requires it.
69414         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69415         gl_REGEX now does it for us.
69416         (gl_REGEX): Add test taken from
69417         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69418
69419         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69420         Check that large offsets work.  Modernize Autoconf usages.
69421         Prefer "yes" to mean a good thing rather than a bad.
69422         Don't put "#define mkstemp" in config.h, as this might interfere
69423         with standard system headers that "#define mkstemp mkstemp64".
69424
69425         * modules/mkstemp (Depends-on): Add extensions, so that
69426         mkstemp is visible on some platforms.
69427         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69428         (Include): Change to "mkstemp.h" from <stdlib.h>.
69429         (Files): Add mkstemp.h.
69430
69431         * lib/mkstemp.h: New file, since some standard headers
69432         #define mkstemp.
69433         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69434         Include "mkstemp.h".
69435         Make the _LIBC code resemble glibc original more,
69436         e.g., use K&R style.
69437         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69438         (mkstemp): Remove, since mkstemp.h does this for us.
69439         * lib/stdlib--.h: Include mkstemp.h.
69440
69441         Import this patch from libc:
69442
69443         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69444
69445         * lib/tempname.c (__gen_tempname): Change attempts_min
69446         into a macro.  Use preprocessor to decide how to initialize
69447         attempts [Coverity CID 67].
69448
69449 2006-09-20  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/mkdtemp.c: Import from libc.
69452         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69453                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69454                 attempts_min into a macro.  Use preprocessor to decide how to
69455                 initialize attempts [Coverity CID 67].
69456         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69457                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69458                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69459
69460 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69461
69462         * gnulib-tool (func_exit): New function, to allow to pass the
69463         exit status portably through the trap.  Use everywhere.
69464         (--help, --version): Signal a write error.
69465         (trap): catch SIGPIPE, for write errors.
69466         Exit at the end of the trap, with the correct exit status.
69467
69468 2006-09-19  Karl Berry  <karl@gnu.org>
69469
69470         * doc/gnulib.texi: note about the license texinfo files.
69471
69472 2006-09-19  Eric Blake  <ebb9@byu.net>
69473
69474         * gnulib-tool: Avoid space-tab.
69475
69476 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69479         that prevented coreutils 6.1 from building.  Problem reported
69480         by Petter Reinholdtsen.
69481
69482 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * gnulib-tool (avoidlist): Fix typo that broke options like
69485         --avoid=lock that are used by coreutils bootstrap.
69486
69487 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69488
69489         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69490         more systematically.
69491
69492 2006-09-18  Jim Meyering  <jim@meyering.net>
69493
69494         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69495
69496 2006-09-18  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69499
69500 2006-09-18  Bruno Haible  <bruno@clisp.org>
69501
69502         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69503         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69504         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69505         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69506         * m4/gettext.m4: Require autoconf >= 2.52.
69507         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69508         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69509         of gl_cv_header_inttypes_h.
69510
69511 2006-09-18  Bruno Haible  <bruno@clisp.org>
69512
69513         * lib/javaversion.c: Include configmake.h.
69514
69515 2006-09-18  Bruno Haible  <bruno@clisp.org>
69516
69517         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69518         avoid that the while loops be executed in a subshell.
69519
69520 2006-09-18  Bruno Haible  <bruno@clisp.org>
69521
69522         * MODULES.html.sh (func_module): Break long lines.
69523         Suggested by Bruce Korb <bkorb@gnu.org>.
69524
69525 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69526
69527         Speed up by a factor of 1.12.
69528         * gnulib-tool (nl): New variable.
69529         (func_import): Rewrite include directive extraction to only read each
69530         directive once.
69531
69532 2006-09-17  Bruno Haible  <bruno@clisp.org>
69533
69534         * modules/javaversion (Makefile.am): Remove DEFS setting.
69535         (Depends-on): Add configmake, for PKGDATADIR definition.
69536
69537 2006-09-17  Bruno Haible  <bruno@clisp.org>
69538
69539         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69540
69541 2006-09-17  Bruno Haible  <bruno@clisp.org>
69542
69543         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69544         (func_modules_transitive_closure, func_modules_add_dummy,
69545         func_modules_to_filelist, func_import, func_create_testdir,
69546         func_create_megatestdir, ...): Use it wherever possible.
69547         Suggested by Ralf Wildenhues.
69548
69549 2006-09-16  Karl Berry  <karl@gnu.org>
69550
69551         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69552         to avoid sectioning errors.
69553         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69554         [ifinfo]: blank line after @center-ed titles.
69555         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69556         Spell FSF address consistently with others.
69557         (These changes approved by rms.)
69558
69559 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69560
69561         Speed up by a factor of 1.61.
69562         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69563         already checked module names again.
69564
69565 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69566
69567         Speed up by a factor of 1.13.
69568         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69569         for new_files, and the input to func_add_or_update.
69570
69571 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69572
69573         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69574         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69575
69576 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69577
69578         * modules/mkancesdirs (Depends-on): Add fcntl.
69579         * modules/savewd: New file.
69580         * MODULES.html.sh (File system functions): Add savewd.
69581
69582         * modules/configmake (Makefile.am): Add support for the
69583         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69584
69585 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * m4/savewd.m4: New file.
69588
69589 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69592         (dirchownmod): New arg FD.  All callers changed.
69593         Use FD rather than opening the directory ourself, as opening is
69594         now the caller's responsibility.
69595         * lib/dirchownmod.h: Likewise.
69596         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69597         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69598         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69599         (test_dir): Remove.
69600         (mkancesdirs): Return length of prefix of FILE that has already
69601         been made, or -2 if there is a child doing the work.  Redo
69602         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69603         ".", and treat ".." specially since it might stray back into
69604         already-created areas.  Use a subprocess if necessary.  New arg
69605         WD; all users changed.  MAKE_DIR function should now return 1
69606         if it creates a directory that is not readable.  Return -2 if
69607         a child process is spun off.
69608         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69609         Adjust signature to match code.
69610         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69611         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69612         all users changed.
69613         * lib/savewd.c, lib/savewd.h: New files.
69614
69615 2006-09-15  Jim Meyering  <jim@meyering.net>
69616
69617         * modules/rename-dest-slash: New module.
69618         * MODULES.html.sh (posix_compat): Add it here.
69619
69620         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69621
69622 2006-09-15  Jim Meyering  <jim@meyering.net>
69623
69624         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69625         file.
69626
69627         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69628
69629 2006-09-15  Jim Meyering  <jim@meyering.net>
69630
69631         * lib/rename-dest-slash.c (has_trailing_slash): Use
69632         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69633         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69634         test before testing whether SRC is a directory.
69635         Suggestions from Bruno Haible.
69636
69637         Avoid a warning about an unused variable.
69638         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69639         into the #ifdef block where it's used.
69640
69641         * lib/rename-dest-slash.c: New file.
69642
69643 2006-09-14  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/allocsa.c: Include <config.h> unconditionally.
69646         * lib/asnprintf.c: Likewise.
69647         * lib/asprintf.c: Likewise.
69648         * lib/c-strcasecmp.c: Likewise.
69649         * lib/c-strcasestr.c: Likewise.
69650         * lib/c-strncasecmp.c: Likewise.
69651         * lib/c-strstr.c: Likewise.
69652         * lib/classpath.c: Likewise.
69653         * lib/clean-temp.c: Likewise.
69654         * lib/concatpath.c: Likewise.
69655         * lib/copy-file.c: Likewise.
69656         * lib/csharpcomp.c: Likewise.
69657         * lib/csharpexec.c: Likewise.
69658         * lib/execute.c: Likewise.
69659         * lib/fatal-signal.c: Likewise.
69660         * lib/findprog.c: Likewise.
69661         * lib/fwriteerror.c: Likewise.
69662         * lib/gl_array_list.c: Likewise.
69663         * lib/gl_array_oset.c: Likewise.
69664         * lib/gl_avltree_list.c: Likewise.
69665         * lib/gl_avltree_oset.c: Likewise.
69666         * lib/gl_avltreehash_list.c: Likewise.
69667         * lib/gl_carray_list.c: Likewise.
69668         * lib/gl_linked_list.c: Likewise.
69669         * lib/gl_linkedhash_list.c: Likewise.
69670         * lib/gl_list.c: Likewise.
69671         * lib/gl_oset.c: Likewise.
69672         * lib/gl_rbtree_list.c: Likewise.
69673         * lib/gl_rbtree_oset.c: Likewise.
69674         * lib/gl_rbtreehash_list.c: Likewise.
69675         * lib/imaxabs.c: Likewise.
69676         * lib/imaxdiv.c: Likewise.
69677         * lib/javacomp.c: Likewise.
69678         * lib/javaexec.c: Likewise.
69679         * lib/javaversion.c: Likewise.
69680         * lib/linebreak.c: Likewise.
69681         * lib/localcharset.c: Likewise.
69682         * lib/lock.c: Likewise.
69683         * lib/mbchar.c: Likewise.
69684         * lib/mbswidth.c: Likewise.
69685         * lib/mkdtemp.c: Likewise.
69686         * lib/pipe.c: Likewise.
69687         * lib/printf-args.c: Likewise.
69688         * lib/printf-parse.c: Likewise.
69689         * lib/progname.c: Likewise.
69690         * lib/progreloc.c: Likewise.
69691         * lib/readlink.c: Likewise.
69692         * lib/sh-quote.c: Likewise.
69693         * lib/stpcpy.c: Likewise.
69694         * lib/stpncpy.c: Likewise.
69695         * lib/strcasecmp.c: Likewise.
69696         * lib/strcasestr.c: Likewise.
69697         * lib/strcspn.c: Likewise.
69698         * lib/striconv.c: Likewise.
69699         * lib/strncasecmp.c: Likewise.
69700         * lib/strnlen1.c: Likewise.
69701         * lib/strstr.c: Likewise.
69702         * lib/strtok_r.c: Likewise.
69703         * lib/tls.c: Likewise.
69704         * lib/tmpdir.c: Likewise.
69705         * lib/unicodeio.c: Likewise.
69706         * lib/unsetenv.c: Likewise.
69707         * lib/vasnprintf.c: Likewise.
69708         * lib/vasprintf.c: Likewise.
69709         * lib/wait-process.c: Likewise.
69710         * lib/xallocsa.c: Likewise.
69711         * lib/xsetenv.c: Likewise.
69712         * lib/xstriconv.c: Likewise.
69713
69714 2006-09-13  Simon Josefsson  <jas@extundo.com>
69715
69716         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69717         that internally, suggested by Ralf Wildenhues
69718         <Ralf.Wildenhues@gmx.de>.
69719
69720 2006-09-13  Simon Josefsson  <jas@extundo.com>
69721
69722         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69723         @LIBOBJS@.
69724         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69725
69726 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69729         longer worry about uses that don't define HAVE_CONFIG_H.
69730         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69731         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69732         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69733         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69734         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69735         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69736         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69737         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69738         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69739         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69740         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69741         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69742         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69743         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69744         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69745         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69746         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69747         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69748         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69749         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69750         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69751         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69752         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69753         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69754         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69755         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69756         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69757         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69758         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69759         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69760         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69761         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69762         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69763         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69764         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69765         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69766         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69767         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69768         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69769         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69770         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69771         Likewise.
69772
69773 2006-09-13  Eric Blake  <ebb9@byu.net>
69774
69775         * lib/getopt.c: Fix typo in last commit.
69776
69777 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69778
69779         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69780         dgettext.
69781
69782 2006-09-12  Jim Meyering  <jim@meyering.net>
69783
69784         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69785         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69786         Reported by Nelson H. F. Beebe.
69787
69788 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69789
69790         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69791         program_invocation_name and program_invocation_short_name are
69792         initialized.
69793         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69794         and program_invocation_short_name to argp.h, so they are visible
69795         to user programs.
69796         * lib/argp.h: Likewise
69797
69798 2006-09-10  Bruno Haible  <bruno@clisp.org>
69799
69800         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69801         m4/inttypes_h.m4, m4/uintmax_t.m4.
69802
69803 2006-09-10  Bruno Haible  <bruno@clisp.org>
69804
69805         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69806         gl_AC_TYPE_UINTMAX_T.
69807
69808 2006-09-10  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69811
69812 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69813
69814         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69815         convention.  Text proposed by Bruno Haible.
69816         (struct argp_option): Document the use of N_() wrappers.
69817
69818         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69819         '\v', and translate the two parts separately, instead of feeding
69820         the whole string to gettext.  This allows to exclude
69821         '\v' from the strings visible to the translator by writing doc
69822         strings as N_("..") "\v" N_("..").
69823
69824 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * config/srclist.txt: Undo latest change; the bug was fixed.
69827
69828 2006-09-09  Bruno Haible  <bruno@clisp.org>
69829
69830         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69831         assignments if building a library without libtool.
69832         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69833         in func_emit_lib_Makefile_am.
69834         (func_import): When building a static library libfoo.a, arrange to
69835         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69836         (func_create_testdir): Likewise.
69837         * modules/gc (configure.ac, Makefile.am): If building statically,
69838         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69839         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69840         * modules/striconv (configure.ac, Makefile.am): Likewise.
69841         Based on a suggestion by Ralf Wildenhues.
69842
69843 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69846         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69847         Also:
69848
69849         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69850         Add year_2050_test to catch glibc bug 2821
69851         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69852
69853         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69854         Prefer #ifdef to #if.
69855
69856         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69857         Return from 'main' instead of calling 'exit'.
69858
69859 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69860
69861         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69862         returned the maximum time_t value rather than (time_t) -1.
69863         Problem originally reported by William Bardwell
69864         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69865
69866         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69867         Moved to here ...
69868         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69869         ... from here.
69870
69871 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69874         2821 is fixed.
69875
69876 2006-09-08  Jim Meyering  <jim@meyering.net>
69877
69878         Don't make generated files read-only.  That would bother too many
69879         people.  However, do retain the ability to work when targets are
69880         read-only: remove the destination and temporary files before writing
69881         them (when generated via sed or echo), or by using the -f option for
69882         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69883         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69884         * modules/byteswap, modules/configmake, modules/fcntl:
69885         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69886         * modules/localcharset, modules/netinet_in, modules/poll:
69887         * modules/stdbool, modules/stdint, modules/sys_select:
69888         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69889
69890 2006-09-08  Jim Meyering  <jim@meyering.net>
69891
69892         Avoid new build failure on FreeBSD 6.0.
69893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69894         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69895         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69896
69897 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69898
69899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69900
69901 2006-09-07  Jim Meyering  <jim@meyering.net>
69902
69903         Fix global typo in last change: use chmod u-w, not chmod u-x.
69904         Spotted by Paul Eggert and Bruce Korb.
69905         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69906         * modules/byteswap, modules/configmake, modules/fcntl:
69907         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69908         * modules/localcharset, modules/netinet_in, modules/poll:
69909         * modules/stdbool, modules/stdint, modules/sys_select:
69910         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69911
69912 2006-09-06  Jim Meyering  <jim@meyering.net>
69913
69914         Make generated files be read-only.
69915         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69916         Ensure that each generated file is now read-only.
69917         * modules/argz: Likewise.
69918         * modules/arpa_inet: Likewise.
69919         * modules/byteswap: Likewise.
69920         * modules/configmake: Likewise.
69921         * modules/fcntl: Likewise.
69922         * modules/fnmatch: Likewise.
69923         * modules/getopt: Likewise.
69924         * modules/glob: Likewise.
69925         * modules/inttypes: Likewise.
69926         * modules/netinet_in: Likewise.
69927         * modules/poll: Likewise.
69928         * modules/stdbool: Likewise.
69929         * modules/stdint: Likewise.
69930         * modules/sys_select: Likewise.
69931         * modules/sys_socket: Likewise.
69932         * modules/sys_stat: Likewise.
69933         * modules/sysexits: Likewise.
69934         * modules/localcharset: Same as above, but continue using temporary
69935         file named "t-$@" (why different?) rather than the "$@-t" used
69936         everywhere else.
69937
69938         * modules/sysexits (Makefile.am): Replace literal occurrences
69939         of "sysexit.h" more readable, and more consistent, "$@".
69940
69941 2006-09-06  Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/striconv: New file.
69944         * modules/xstriconv: New file.
69945         * MODULES.html.sh (Internationalization functions): Add striconv,
69946         xstriconv.
69947
69948 2006-09-06  Bruno Haible  <bruno@clisp.org>
69949
69950         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69951         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69952         not using libtool correctly.
69953
69954 2006-09-06  Bruno Haible  <bruno@clisp.org>
69955
69956         * lib/striconv.h: New file.
69957         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69958         iconvstring.c.
69959         * lib/xstriconv.h: New file.
69960         * lib/xstriconv.c: New file.
69961
69962 2006-09-06  Bruno Haible  <bruno@clisp.org>
69963
69964         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69965         lib_..._LDFLAGS.
69966
69967 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69968
69969         * lib/argz_.h: Sync from Libtool.
69970
69971         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69972                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69973
69974         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69975
69976 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69977
69978         * modules/trim: New file.
69979
69980 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69981
69982         * lib/trim.h: New file.
69983         * lib/trim.c: New file.
69984
69985 2006-09-05  Bruno Haible  <bruno@clisp.org>
69986
69987         * MODULES.html.sh (String handling): Add trim.
69988
69989 2006-09-04  Karl Berry  <karl@gnu.org>
69990
69991         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69992         until next release.
69993
69994 2006-09-03  Bruno Haible  <bruno@clisp.org>
69995
69996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69997         correctly.
69998
69999 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70002         not gl_GETLOADAVG.  Omit unneeded semicolons.
70003         Problems reported by Ralf Wildenhues in
70004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70005         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70006         at the end, which is the usual gnulib style.
70007
70008         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70009         of doing all the work ourselves.
70010         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70011         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70012
70013 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70016         Problem reported by Ralf Wildenhues in
70017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70018
70019         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70020         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70021
70022 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70023
70024         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70025         yesterday's patch by changing test -n to test -z.
70026
70027 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70030         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70031         the former is now obsolescent.
70032
70033         * modules/chdir-long (Depends-on): Add fcntl.
70034
70035 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70038         obsolescent, and programs should use gnulib instead.
70039         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70040         but with prefixes changed.
70041
70042 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70043
70044         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70045         or stdbool.h, because they might not exist while configuring.
70046
70047         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70048         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70049         does that for us.
70050         (O_DIRECTORY): Remove.
70051
70052 2006-08-31  Eric Blake  <ebb9@byu.net>
70053
70054         * gnulib-tool: Don't let emacs change spaces to TAB.
70055
70056 2006-08-31  Bruno Haible  <bruno@clisp.org>
70057
70058         * gnulib-tool: When calling func_import more than once, do it in a
70059         subshell.
70060         Reported by Eric Blake <ebb9@byu.net>.
70061
70062 2006-08-31  Bruno Haible  <bruno@clisp.org>
70063
70064         * gnulib-tool (nl): Remove variable.
70065         (sed_transform_lib_file): Use more robust test for config-h module.
70066         (func_import): Fix typo in 2006-08-25 patch.
70067
70068 2006-08-31  Bruno Haible  <bruno@clisp.org>
70069
70070         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70071         specified, augment Makefile.am variables instead of assigning them.
70072
70073 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         Work around a bug in both the Linux and SunOS 64-bit kernels:
70076         nanosleep mishandles sleeps for longer than 2**31 seconds.
70077         Problem reported by Frank v Waveren in
70078         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70080         Check for nanosleep bug.
70081         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70082
70083 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         Work around a bug in both the Linux and SunOS 64-bit kernels:
70086         nanosleep mishandles sleeps for longer than 2**31 seconds.
70087         Problem reported by Frank v Waveren in
70088         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70089         * lib/nanosleep.c (BILLION): New constant.
70090         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70091         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70092         implementation.
70093
70094 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         * modules/nanosleep (Depends-on): Add gettime.
70097
70098 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70099         and Simon Josefsson  <jas@extundo.com>
70100         and Oskar Liljeblad  <oskar@osk.mine.nu>
70101
70102         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70103         * gnulib-tool (func_import): New license type 'unmodifiable license
70104         text'.
70105         * modules/fdl: Use it.  Longer description.
70106         * module/gpl, module/lgpl: New files.
70107
70108 2006-08-30  Jim Meyering  <jim@meyering.net>
70109
70110         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70111         shadowing the parameter.
70112
70113 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70114
70115         Sync from Libtool:
70116
70117         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70118
70119         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70120         sharing with gnulib.  Report by Eric Blake.
70121
70122 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70123
70124         * modules/isapipe: New file.
70125         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70126
70127 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         * modules/configmake (Makefile.am): Add a comment, and omit
70130         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70131         by Bruno Haible.
70132
70133 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         * m4/isapipe.m4: New file.
70136
70137 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         * lib/isapipe.c, lib/isapipe.h: New files.
70140
70141 2006-08-29  Jim Meyering  <jim@meyering.net>
70142
70143         * modules/configmake (Makefile.am): Make configmake.h depend on
70144         Makefile.  Otherwise, a stale configmake.h could hang around.
70145
70146 2006-08-29  Eric Blake  <ebb9@byu.net>
70147
70148         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70149         resolution of upstream bug 3044.
70150
70151 2006-08-29  Bruno Haible  <bruno@clisp.org>
70152
70153         * modules/localcharset (Depends-on): Add configmake.
70154         (Makefile.am): Remove setting of LIBDIR through DEFS.
70155
70156 2006-08-29  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70159         defined.
70160
70161 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         * modules/fcntl: New file.
70164         * modules/chdir-safer (Depends-on): Add fcntl.
70165         * modules/fts: Likewise.
70166         * modules/mkdir-p: Likewise.
70167
70168         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70169         This undoes the most recent change, since we're now addressing the
70170         problem in a different way.
70171
70172         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70173         into output, since the output might be called Makefile.am even
70174         if $makefile_name is something different.
70175         (func_import): Use $makefile_am rather than
70176         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70177         empty.
70178
70179         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70180
70181 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70184         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70185         recent change to stdint.m4, since we're now addressing the problem in a
70186         different way.
70187
70188 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * m4/fcntl_h.m4: New file.
70191
70192 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * lib/fcntl_.h: New file.
70195         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70196         the fcntl module.
70197         * lib/dirchownmod.c: Likewise.
70198         * lib/fts.c: Likewise.
70199
70200         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70201         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70202         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70203         just before including <inttypes.h>, to avoid circular inclusion.
70204
70205 2006-08-28  Jim Meyering  <jim@meyering.net>
70206
70207         * doc/visibility.texi: Actually read and correct the grammar of the
70208         sentence affected by yesterday's change.
70209
70210 2006-08-28  Eric Blake  <ebb9@byu.net>
70211
70212         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70213         needs wrapper.
70214
70215 2006-08-28  Eric Blake  <ebb9@byu.net>
70216
70217         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70218
70219 2006-08-28  Eric Blake  <ebb9@byu.net>
70220
70221         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70222
70223 2006-08-28  Bruno Haible  <bruno@clisp.org>
70224
70225         * modules/c-strstr: New file, from GNU gettext.
70226         * MODULES.html.sh (String handling): Add c-strstr.
70227
70228 2006-08-28  Bruno Haible  <bruno@clisp.org>
70229
70230         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70231         macros.
70232         Reported by Eric Blake.
70233
70234 2006-08-28  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70237         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70238         * lib/vasprintf.c: Include errno.h, limits.h.
70239         (EOVERFLOW): New fallback definition.
70240         (vasprintf): Test here whether the string length is > INT_MAX.
70241         * lib/vsnprintf.c: Include errno.h, limits.h.
70242         (EOVERFLOW): New fallback definition.
70243         (vsnprintf): Fix bug when generated string was too long for the buffer.
70244         Test here whether the string length is > INT_MAX.
70245
70246 2006-08-28  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/inttypes_.h (SCNX*): Remove definitions.
70249         Reported by Eric Blake.
70250
70251 2006-08-28  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/c-strstr.h: New file, from GNU gettext.
70254         * lib/c-strstr.c: New file, from GNU gettext.
70255
70256 2006-08-28  Bruno Haible  <bruno@clisp.org>
70257
70258         * gnulib-tool: Reorder some statements.
70259
70260 2006-08-28  Bruno Haible  <bruno@clisp.org>
70261
70262         * gnulib-tool: New option --makefile-name.
70263         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70264         $makefile_name.
70265         (func_import): Write $makefile_name to the cache file, and read it from
70266         there unless explicitly specified. Use $makefile_name as file name
70267         instead of Makefile.am. Adjust the recommendations accordingly.
70268
70269 2006-08-28  Bruno Haible  <bruno@clisp.org>
70270
70271         * gnulib-tool (func_verify_module): Check against misapplying patch.
70272
70273 2006-08-28  Bruno Haible  <bruno@clisp.org>
70274
70275         * gnulib-tool (func_relativize, func_relconcat): New functions.
70276         Give an error if --local-dir is given with --update.
70277         Remove trailing slashes from $local_gnulib_dir.
70278         (func_import): Store the relativized $local_gnulib_dir in
70279         gnulib-cache.m4, and read it from there if not specified explicitly.
70280
70281 2006-08-28  Bruno Haible  <bruno@clisp.org>
70282
70283         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70284         is the current directory. Respect also $local_gnulib_dir.
70285
70286 2006-08-28  Bruno Haible  <bruno@clisp.org>
70287             Simon Josefsson  <jas@extundo.com>
70288
70289         BeOS portability.
70290         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70291
70292 2006-08-27  Jim Meyering  <jim@meyering.net>
70293
70294         * doc/visibility.texi: Remove duplicate word: "pointer".
70295
70296 2006-08-26  Bruno Haible  <bruno@clisp.org>
70297
70298         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70299         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70300         (Makefile.am): Create inttypes.h from inttypes_.h.
70301         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70302
70303         * modules/imaxabs: New file.
70304
70305         * modules/imaxdiv: New file.
70306
70307 2006-08-26  Bruno Haible  <bruno@clisp.org>
70308
70309         * m4/inttypes.m4: New file.
70310         * m4/_inttypes_h.m4: Remove file.
70311         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70312         PRI_MACROS_BROKEN.
70313         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70314
70315         * m4/imaxabs.m4: New file.
70316
70317         * m4/imaxdiv.m4: New file.
70318
70319 2006-08-26  Bruno Haible  <bruno@clisp.org>
70320
70321         * lib/inttypes_.h: New file.
70322         * lib/inttypes.h: Remove file.
70323         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70324
70325         * lib/imaxabs.c: New file.
70326
70327         * lib/imaxdiv.c: New file.
70328
70329 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         New config-h module, so that "make" output needn't be cluttered
70332         by -DHAVE_CONFIG_H.
70333         * MODULES.html.sh (Support for building libraries and executables):
70334         Add config-h.
70335         * modules/config-h: New file.
70336         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70337         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70338         the config-h module is used.
70339
70340         New configmake module, so that "make" output needn't be cluttered
70341         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70342         * MODULES.html.sh (Support for building libraries and executables):
70343         Add configmake.
70344         * modules/configmake: New file.
70345
70346 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * m4/config-h.m4: New file.
70349
70350 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         * config/srclist.txt: Add elisp-comp.
70353
70354 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70355
70356         * MODULES.html.sh (Support for building libraries and executables):
70357         Add elisp-comp.
70358         * build-aux/elisp-comp: New file.
70359         * modules/elisp-comp: New file.
70360
70361 2006-08-24  Bruno Haible  <bruno@clisp.org>
70362
70363         * gnulib-tool (func_create_testdir): Use non-default values of
70364         sourcebase and m4base.
70365
70366 2006-08-24  Bruno Haible  <bruno@clisp.org>
70367
70368         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70369         HTML structure.
70370
70371 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * modules/openat (Depends-on): Add lchown.
70374
70375 2006-08-23  Bruno Haible  <bruno@clisp.org>
70376
70377         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70378         of gl_LOCK_EARLY instead of gl_LOCK.
70379
70380 2006-08-23  Bruno Haible  <bruno@clisp.org>
70381
70382         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70383         on OSF/1 to no.
70384         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70385
70386 2006-08-23  Bruno Haible  <bruno@clisp.org>
70387
70388         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70389         as unusable.
70390
70391         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70392         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70393         (gl_LOCK): New macro.
70394
70395 2006-08-22  Simon Josefsson  <jas@extundo.com>
70396
70397         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70398         to md5 module.
70399
70400 2006-08-22  Simon Josefsson  <jas@extundo.com>
70401
70402         * MODULES.html.sh: Add "Support for maintaining and release
70403         projects".
70404
70405         * build-aux/gnupload: New file, from coreutils.
70406
70407 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         Avoid the need for AC_LIBSOURCES in m4 macros.
70410         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70411         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70412         * modules/check-version (EXTRA_DIST): Add check-version.h.
70413         * modules/crc (EXTRA_DIST): Add crc.h.
70414         * modules/des (EXTRA_DIST): Add des.h.
70415         * modules/gc (EXTRA_DIST): Add gc.h.
70416         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70417         * modules/getline (EXTRA_DIST): Add getline.h.
70418         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70419         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70420         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70421         * modules/md2 (EXTRA_DIST): Add md2.h.
70422         * modules/md4 (EXTRA_DIST): Add md4.h.
70423         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70424         * modules/read-file (EXTRA_DIST): Add read-file.h.
70425         * modules/readline (EXTRA_DIST): Add readline.h.
70426         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70427         rijndael-api-fst.h.
70428
70429 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * m4/rijndael.m4 (gl_ARCFOUR):
70432         * m4/arctwo.m4 (gl_ARCTWO):
70433         * m4/check-version.m4 (gl_CHECK_VERSION):
70434         * m4/crc.m4 (gl_CRC):
70435         * m4/des.m4 (gl_DES):
70436         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70437         * m4/gc.m4 (gl_GC):
70438         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70439         * m4/getline.m4 (gl_FUNC_GETLINE):
70440         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70441         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70442         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70443         * m4/md2.m4 (gl_MD2):
70444         * m4/md4.m4 (gl_MD4):
70445         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70446         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70447         * m4/readline.m4 (gl_FUNC_READLINE):
70448         * m4/rijndael.m4 (gl_RIJNDAEL):
70449         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70450         to get the necessary .h files and whatnot.
70451
70452 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70455         gnulib rather than the other way around.
70456         * config/srclistvars.sh (COREUTILS): Remove.
70457
70458 2006-08-22  Jim Meyering  <jim@meyering.net>
70459
70460         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70461
70462         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70463
70464 2006-08-22  Eric Blake  <ebb9@byu.net>
70465
70466         * modules/regexprops-generic: New file.
70467         * MODULES.html.sh (Support for building documentation): List it.
70468
70469 2006-08-22  Eric Blake  <ebb9@byu.net>
70470
70471         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70472         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70473         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70474         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70475
70476 2006-08-22  Bruno Haible  <bruno@clisp.org>
70477
70478         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70479         and lib_LTLIBRARIES like the other lib_* variables.
70480
70481 2006-08-22  Bruno Haible  <bruno@clisp.org>
70482
70483         * build-aux/x-to-1.in: New file, from GNU gettext.
70484
70485 2006-08-22  Bruno Haible  <bruno@clisp.org>
70486
70487         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70488         <utmpx.h> exists.
70489
70490 2006-08-22  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70493         <utmpx.h> exists.
70494
70495 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         BeOS portability.
70498         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70499         exist.
70500         Problem reported by Bruno Haible.
70501
70502 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         Avoid the need for AC_LIBSOURCES in m4 macros.
70505         * modules/acl (EXTRA_DIST): Add acl.h.
70506         * modules/argmatch (Files): Add m4/argmatch.m4.
70507         (configure.ac): Add gl_ARGMATCH.
70508         (EXTRA_DIST): Renamed from lib_SOURCES, for
70509         consistency with the other modules.  Remove argmatch.c.
70510         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70511         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70512         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70513         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70514         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70515         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70516         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70517         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70518         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70519         * modules/closeout (EXTRA_DIST): Add closeout.h.
70520         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70521         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70522         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70523         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70524         dirname.h; remove basename.c and stripslash.c.
70525         * modules/exclude (EXTRA_DIST): Add exclude.h.
70526         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70527         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70528         * modules/file-type (EXTRA_DIST): Add file-type.h.
70529         * modules/filemode (EXTRA_DIST): Add filemode.h.
70530         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70531         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70532         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70533         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70534         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70535         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70536         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70537         * modules/getdate (EXTRA_DIST): Add getdate.c.
70538         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70539         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70540         * modules/getpass (EXTRA_DIST): Add getpass.h.
70541         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70542         * modules/group-member (EXTRA_DIST): Add group-member.h.
70543         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70544         * modules/hash (EXTRA_DIST): Add hash.h.
70545         * modules/human (EXTRA_DIST): Add human.h.
70546         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70547         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70548         * modules/lchown (EXTRA_DIST): Add lchown.h.
70549         * modules/long-options (EXTRA_DIST): Add long-options.h.
70550         * modules/lstat (EXTRA_DIST): Add lstat.h.
70551         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70552         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70553         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70554         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70555         * modules/memxor (EXTRA_DIST): Add memxor.h.
70556         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70557         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70558         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70559         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70560         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70561         * modules/physmem (EXTRA_DIST): Add physmem.h.
70562         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70563         * modules/posixver (EXTRA_DIST): Add posixver.h.
70564         * modules/quote (EXTRA_DIST): Add quote.h.
70565         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70566         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70567         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70568         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70569         regex_internal.h regexec.c.
70570         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70571         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70572         * modules/same (EXTRA_DIST): Add same.h.
70573         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70574         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70575         * modules/savedir (EXTRA_DIST): Add savedir.h.
70576         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70577         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70578         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70579         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70580         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70581         * modules/strdup (EXTRA_DIST): Add strdup.h.
70582         * modules/strftime (EXTRA_DIST): Add strftime.h.
70583         * modules/strndup (EXTRA_DIST): Add strndup.h.
70584         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70585         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70586         * modules/time_r (EXTRA_DIST): Add time_r.h.
70587         * modules/timespec (EXTRA_DIST): Add timespec.h.
70588         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70589         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70590         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70591         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70592         * modules/userspec (EXTRA_DIST): Add userspec.h.
70593         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70594         * modules/utimens (EXTRA_DIST): Add utimens.h.
70595         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70596         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70597         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70598         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70599         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70600         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70601         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70602         * modules/yesno (EXTRA_DIST): Add yesno.h.
70603
70604 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70607
70608         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70609         * m4/dev-ino.m4, same-inode.m4: Remove.
70610
70611         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70612         * m4/acl.m4 (AC_FUNC_ACL):
70613         * m4/backupfile.m4 (gl_BACKUPFILE):
70614         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70615         * m4/canon-host.m4 (gl_CANON_HOST):
70616         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70617         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70618         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70619         * m4/cloexec.m4 (gl_CLOEXEC):
70620         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70621         * m4/closeout.m4 (gl_CLOSEOUT):
70622         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70623         * m4/dirname.m4 (gl_DIRNAME):
70624         * m4/exclude.m4 (gl_EXCLUDE):
70625         * m4/exitfail.m4 (gl_EXITFAIL):
70626         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70627         * m4/file-type.m4 (gl_FILE_TYPE):
70628         * m4/filemode.m4 (gl_FILEMODE):
70629         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70630         * m4/fpending.m4 (gl_FUNC_FPENDING):
70631         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70632         * m4/fts.m4 (gl_FUNC_FTS):
70633         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70634         * m4/getdate.m4 (gl_GETDATE):
70635         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70636         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70637         * m4/getpass.m4 (gl_FUNC_GETPASS):
70638         * m4/gettime.m4 (gl_GETTIME):
70639         * m4/getugroups.m4 (gl_GETUGROUPS):
70640         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70641         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70642         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70643         * m4/hash.m4 (gl_HASH):
70644         * m4/idcache.m4 (gl_IDCACHE):
70645         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70646         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70647         * m4/long-options.m4 (gl_LONG_OPTIONS):
70648         * m4/lstat.m4 (gl_FUNC_LSTAT):
70649         * m4/md5.m4 (gl_MD5):
70650         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70651         * m4/memcoll.m4 (gl_MEMCOLL):
70652         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70654         * m4/memxor.m4 (gl_MEMXOR):
70655         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70656         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70657         * m4/modechange.m4 (gl_MODECHANGE):
70658         * m4/mountlist.m4 (gl_MOUNTLIST):
70659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70660         * m4/openat.m4 (gl_FUNC_OPENAT):
70661         * m4/pathmax.m4 (gl_PATHMAX):
70662         * m4/physmem.m4 (gl_PHYSMEM):
70663         * m4/posixtm.m4 (gl_POSIXTM):
70664         * m4/posixver.m4 (gl_POSIXVER):
70665         * m4/quote.m4 (gl_QUOTE):
70666         * m4/quotearg.m4 (gl_QUOTEARG):
70667         * m4/readtokens.m4 (gl_READTOKENS):
70668         * m4/readutmp.m4 (gl_READUTMP):
70669         * m4/regex.m4 (gl_REGEX):
70670         * m4/safe-read.m4 (gl_SAFE_READ):
70671         * m4/safe-write.m4 (gl_SAFE_WRITE):
70672         * m4/same.m4 (gl_SAME):
70673         * m4/save-cwd.m4 (gl_SAVE_CWD):
70674         * m4/savedir.m4 (gl_SAVEDIR):
70675         * m4/settime.m4 (gl_SETTIME):
70676         * m4/sha1.m4 (gl_SHA1):
70677         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70678         * m4/stat-macros.m4 (gl_STAT_MACROS):
70679         * m4/stat-time.m4 (gl_STAT_TIME):
70680         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70681         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70682         * m4/strdup.m4 (gl_FUNC_STRDUP):
70683         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70684         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70685         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70686         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70687         * m4/time_r.m4 (gl_TIME_R):
70688         * m4/timespec.m4 (gl_TIMESPEC):
70689         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70690         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70691         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70692         * m4/userspec.m4 (gl_USERSPEC):
70693         * m4/utimecmp.m4 (gl_UTIMECMP):
70694         * m4/utimens.m4 (gl_UTIMENS):
70695         * m4/xalloc.m4 (gl_XALLOC):
70696         * m4/xgetcwd.m4 (gl_XGETCWD):
70697         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70698         * m4/xreadlink.m4 (gl_XREADLINK):
70699         * m4/xstrtod.m4 (gl_XSTRTOD):
70700         * m4/yesno.m4 (gl_YESNO):
70701         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70702         to get the necessary .h files and whatnot.
70703
70704 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70705             Bruno Haible  <bruno@clisp.org>
70706
70707         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70708         /bin/sh understanding of '!' conditional negation.
70709
70710 2006-08-21  Jim Meyering  <jim@meyering.net>
70711
70712         * modules/openat (Depends-on): Really alphabetize.
70713
70714         * modules/acl (Depends-on): Add error and quote.
70715
70716         * check-module (find_included_lib_files): Add at-func.c to the
70717         ok-to-include-more-than-once white list.
70718
70719         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70720
70721 2006-08-21  Bruno Haible  <bruno@clisp.org>
70722
70723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70724         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70725         Reported by Martin Lambers <marlam@marlam.de>.
70726
70727 2006-08-21  Bruno Haible  <bruno@clisp.org>
70728
70729         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70730         specify an installation location, don't emit a noinst_LIBRARIES or
70731         noinst_LTLIBRARIES assignment.
70732
70733 2006-08-21  Bruno Haible  <bruno@clisp.org>
70734
70735         BeOS portability.
70736         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70737         BeOS has mbrtowc() but no <wctype.h>.
70738
70739 2006-08-21  Bruno Haible  <bruno@clisp.org>
70740
70741         BeOS portability.
70742         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70743         exist.
70744
70745 2006-08-21  Bruno Haible  <bruno@clisp.org>
70746
70747         BeOS portability.
70748         * lib/mbchar.h: Include <wctype.h> only if it exists.
70749
70750 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         Remove files that are no longer needed by their respective modules.
70753         * m4/obstack.m4: Remove.
70754         * m4/strerror_r.m4: Remove.
70755         * m4/uint32_t.m4: Remove.
70756         * m4/uintptr_t.m4: Remove.
70757         * m4/ullong_max.m4: Remove.
70758         * m4/xstrtoimax.m4: Remove.
70759         * m4/xstrtoumax.m4: Remove.
70760
70761         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70762         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70763         dependencies now capture this.
70764
70765         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70766         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70767         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70768         * m4/human.m4 (gl_HUMAN): Likewise.
70769         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70770         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70771
70772         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70773
70774         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70775         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70776         stdint.
70777         * m4/human.m4 (gl_HUMAN): Likewise.
70778         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70779         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70780         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70782         * m4/xstrtol (gl_XSTRTOL): Likewise.
70783
70784         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70785         AC_TYPE_LONG_LONG_INT.
70786         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70787         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70788         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70789         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70790
70791         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70792         on stdbool.
70793
70794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70795         (gl_PREREQ_XSTRTOUL): Remove.
70796
70797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70798
70799         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70800         mode.
70801
70802 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         Add and change modules to make it easier for coreutils to use
70805         gnulib-tool.
70806         * modules/backupfile (Files): Remove m4/d-ino.m4.
70807         (Depends-on): Add d-ino.
70808         * modules/cycle-check (Depends-on): Add stdint.
70809         (lib_SOURCES): Add cycle-check.h.
70810         * modules/d-ino: New module.
70811         * modules/d-type: New module.
70812         * modules/error (Files): Remove m4/strerror_r.m4.
70813         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70814         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70815         m4/inttypes_h.m4, m4/uintmax_t.m4.
70816         (Depends-on): Add stdint.
70817         (lib_SOURCES): Add fsusage.h.
70818         * modules/getcwd (Files): Remove d-ino.m4.
70819         (Depends-on): Add d-ino.
70820         * modules/getndelim2 (Depends-on): Add stdint.
70821         * modules/glob (Files): Remove m4/d-type.m4.
70822         (Depends-on): Add d-type.
70823         * modules/host-os: New module.
70824         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70825         m4/inttypes_h.m4, m4/uintmax_t.m4.
70826         * Depends-on: Add stdint.
70827         (lib_SOURCES): Add human.h.
70828         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70829         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70830         m4/uintmax_t.m4, m4/ulonglong.m4.
70831         (Depends-on): Add stdint.
70832         (EXTRA_DIST): Add inttostr.h.
70833         * modules/lchmod: New module.
70834         * modules/link-follow: New module.
70835         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70836         (Depends-on): Add lchmod.
70837         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70838         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70839         (Depends-on): Add stdint.
70840         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70841         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70842         (Depends-on): Add stdint.
70843         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70844         * modules/perl: New module.
70845         * modules/regex (Depends-on): Add stdint.
70846         * modules/rmdir-errno: New module.
70847         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70848         m4/intmax_t.m4.
70849         (Depends-on): Add stdint.
70850         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70851         m4/uintmax_t.m4.
70852         (Depends-on): Add stdint.
70853         * modules/unlink-busy: New module.
70854         * modules/utimecmp (Depends-on): Add stdint.
70855         * modules/uptime: New module.
70856         * modules/winsz-ioctl: New module.
70857         * modules/winsz-termios: New module.
70858         * modules/xnanosleep (Depends-on): Add nanosleep.
70859         * modules/ullong_max: Remove.
70860         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70861         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70862         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70863         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70864         (Depends-on): Add inttypes.
70865         (lib_SOURCES): Add xstrtol.h.
70866         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70867         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70868         * MODULES.html.sh: Move 'assert' into the assert section.
70869         Move 'dummy' into the linking section.
70870         Remove ullong_max.
70871         Add section for compatibility checks for POSIX:2001 functions,
70872         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70873         winsz-ioctl, and winsz-termios into it.
70874         Add lchmod.
70875         Add top-level Misc section and put host-os, perl, and uptime
70876         into it.
70877
70878 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70881         now assume the stdint module.  Do not include inttypes.h.
70882         * lib/fsusage.h: Likewise.
70883         * lib/getndelim2.c: Likewise.
70884         * lib/human.h: Likewise.
70885         * lib/inttostr.h: Likewise.
70886         * lib/obstack.c: Likewise.
70887         * lib/regex_internal.h: Likewise.
70888         * lib/tempname.c: Likewise.
70889         * lib/utimecmp.c: Likewise.
70890         * lib/xstrtol.h: Likewise.
70891
70892         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70893
70894         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70895         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70896         * lib/xtime.h: Likewise.
70897
70898 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * modules/openat (Files): Add lib/fchmodat.c.
70901         Fixes problem reported by Jay Youngman.
70902
70903 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70906         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70907
70908 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70909             Bruno Haible  <bruno@clisp.org>
70910
70911         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70912         and is a script that invokes bison. Tighten the code. Add comments.
70913
70914 2006-08-18  Jim Meyering  <jim@meyering.net>
70915
70916         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70917         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70918         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70919         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70920
70921 2006-08-18  Bruno Haible  <bruno@clisp.org>
70922
70923         * modules/bison-i18n: New file.
70924         * MODULES.html.sh (Internationalization functions): Add it.
70925
70926 2006-08-18  Bruno Haible  <bruno@clisp.org>
70927
70928         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70929         sys/statvfs.h. When getmntinfo was found, check its declaration and
70930         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70931
70932 2006-08-18  Bruno Haible  <bruno@clisp.org>
70933
70934         * m4/bison-i18n.m4: New file, from bison.
70935
70936 2006-08-18  Bruno Haible  <bruno@clisp.org>
70937
70938         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70939         (ME_DUMMY): Treat "kernfs" as a dummy.
70940         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70941
70942 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         Update from coreutils.
70945
70946         2006-08-15  Jim Meyering  <jim@meyering.net>
70947
70948         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70949
70950         2006-01-17  Jim Meyering  <jim@meyering.net>
70951
70952         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70953
70954         2006-01-11  Jim Meyering  <jim@meyering.net>
70955
70956         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70957         Check for the lchmod function.
70958
70959 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         Update from coreutils.
70962
70963         * lib/__fpending.h: Add copyright notice.
70964         * lib/fprintftime.h: Likewise.
70965         * lib/savedir.c: Use (C) in copyright notice.
70966         * lib/savedir.h: Likewise.
70967
70968         2006-08-15  Jim Meyering  <jim@meyering.net>
70969
70970         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70971         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70972         in support of the EXPECTED_ERRNO macro.
70973         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70974         definitions.  Instead, define the appropriate symbols and include
70975         "at-func.c".
70976         * lib/mkdirat.c (mkdirat): Likewise.
70977         * lib/fchmodat.c (fchmodat): Likewise.
70978         (ENOSYS): Remove definition.
70979         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70980         it.  Don't include "unistd--.h" -- it wasn't ever used.
70981
70982         2006-01-17  Jim Meyering  <jim@meyering.net>
70983
70984         Rewrite fts.c not to change the current working directory,
70985         by using openat, fstatat, fdopendir, etc..
70986
70987         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70988         (HAVE_OPENAT_SUPPORT): Define.
70989         [_LIBC] (fchdir): Don't undef or define; no longer used.
70990         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70991         Now, this `function' always succeeds, and consumes its file descriptor
70992         parameter -- so callers must not close such FDs.  Update callers.
70993         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70994         (diropen): Add parameter, SP.  Adjust all callers.
70995         Implement using diropen_fd, rather than open.
70996         (fts_open): Initialize new member, fts_cwd_fd.
70997         Remove fts_rft-setting code.
70998         (fts_close): Close fts_cwd_fd, if necessary.
70999         (__opendir2): Define in terms of opendir or opendirat,
71000         depending on whether the FST_NOCHDIR flag is set.
71001         (fts_build): Since fts_safe_changedir consumes its FD, and since
71002         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71003         and close the dup'd file descriptor upon failure.
71004         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71005         (fts_safe_changedir): Tweak semantics to reflect that this function
71006         now calls cwd_advance_fd and hence consumes its FD argument.
71007         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71008         [struct FTS] (fts_rft): Remove now-unused member.
71009         [struct FTS] (fts_cycle.state): Improve comment.
71010
71011         * lib/openat.c (openat_needs_fchdir): New function.
71012         * lib/openat.h (openat_needs_fchdir): Declare it.
71013
71014 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71017         Problem and fix reported by Pádraig Brady in
71018         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71019
71020 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71021
71022         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71023
71024 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * lib/memcoll.c (memcoll): Optimize for the common case where the
71027         arguments are bytewise equal.
71028
71029 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * doc/regexprops-generic.texi: Add a copyright notice.
71032
71033 2006-08-15  Bruno Haible  <bruno@clisp.org>
71034
71035         * modules/tmpdir (License): Change to LGPL.
71036
71037 2006-08-15  Bruno Haible  <bruno@clisp.org>
71038
71039         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71040         module.
71041
71042 2006-08-14  Simon Josefsson  <jas@extundo.com>
71043
71044         * config/srclist.txt: Add gnupload.
71045
71046 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         Change copyright notice from LGPL 2 to GPL 2, since that's the
71049         standard form used in the gnulib repository.
71050         * tests/test-lock.c: Likewise.
71051         * tests/test-stdint.c: Likewise.
71052         * tests/test-tls.c: Likewise.
71053
71054         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71055         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71056         Add copyright notice.
71057
71058         * check-module: Add copyright notice.  Output a copyright
71059         notice if "--version" is specified.
71060         * modules/COPYING: New file.
71061         * tests/test-getaddrinfo.c: Add copyright notice.
71062         * tests/test-verify.c: Likewise.
71063
71064 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         Change copyright notice from LGPL 2 to GPL 2, since that's the
71067         standard form used in the gnulib repository.
71068         * lib/lock.c: LGPL -> GPL.
71069         * lib/lock.h: Likewise.
71070         * lib/strnlen1.c: Likewise.
71071         * lib/strnlen1.h: Likewise.
71072         * lib/tls.c: Likewise.
71073         * lib/tls.h: Likewise.
71074         * lib/tmpdir.c: Likewise.
71075
71076         * lib/TODO: Remove; this belongs only in coreutils.
71077
71078 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         Add copyright notices to long-enough files that lack them, since
71081         otherwise the files aren't clearly free.  Use the same notice that
71082         getdate.texi already uses.
71083         * doc/alloca-opt.texi: Add copyright notice.
71084         * doc/alloca.texi: Likewise.
71085         * doc/ctime.texi: Likewise.
71086         * doc/functions.texi: Likewise.
71087         * doc/gcd.texi: Likewise.
71088         * doc/gnulib-tool.texi: Likewise.
71089         * doc/inet_ntoa.texi: Likewise.
71090         * doc/visibility.texi: Likewise.
71091
71092         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71093         * doc/quote.texi: Add copyright notice.
71094
71095         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71096         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71097         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71098         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71099         is now obsolete, and give a pointer to the Sun list.
71100         Add copyright notice.
71101
71102 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * config/srclistvars.sh: Add copyright notice.
71105
71106 2006-08-14  Eric Blake  <ebb9@byu.net>
71107
71108         Import the following change from libc:
71109
71110         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71111
71112         Upstream bug 2997.
71113         * lib/misc/error.c: Add space between program name and message if file
71114         name is missing.
71115
71116 2006-08-12  Karl Berry  <karl@gnu.org>
71117
71118         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71119         remove, these originate in gnulib now.
71120
71121 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71122
71123         * doc/Makefile (standards.info standards.html standards.dvi):
71124         Also depend on make-stds.texi.
71125
71126 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71129         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71130
71131         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71132         in wchar_t.  Problem reported by Eric Blake.
71133
71134         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71135         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71136         Also, help the compiler to keep LEN in a register.
71137
71138 2006-08-11  Eric Blake  <ebb9@byu.net>
71139
71140         * users.txt: Sort.  Add tar.
71141
71142 2006-08-11  Bruno Haible  <bruno@clisp.org>
71143
71144         * users.txt: New file.
71145
71146 2006-08-11  Bruno Haible  <bruno@clisp.org>
71147
71148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71149         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71150
71151 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71152
71153         * modules/snprintf (Depends-on): Remove minmax.
71154         (Maintainer): Add self and Bruno.
71155
71156 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71159         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71160         (EOVERFLOW): Define if the system does not.
71161         Do not include "minmax.h"; it wasn't used.
71162         (snprintf): Don't assume size_t promotes to an unsigned type.
71163         Fix bug when generated string was too long for the buffer: the
71164         buffer's contents are supposed to be the initial prefix of the
71165         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71166         exceeds INT_MAX; do the check ourselves.
71167
71168         Import the following changes from libc:
71169
71170         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71171
71172         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71173         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71174         set wc to the byte which couldn't be converted.
71175         (re_string_reconstruct): Don't clear valid_raw_len before calling
71176         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71177         tip_context using re_string_context_at.
71178
71179         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71180
71181         * lib/posix/regex.h: g++ still cannot handled [restrict].
71182
71183         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71184
71185         * lib/posix/regex.h: Remove special handling for VMS.
71186
71187 2006-08-10  Jim Meyering  <jim@meyering.net>
71188
71189         * modules/same-inode: New module.
71190         * modules/dev-ino: New module.
71191         * modules/cycle-check: Depend on these modules, rather than simply
71192         including their .h files.
71193         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71194         required via m4/cycle-check.m4.
71195         * modules/same: Depend on new same-inode module, rather than
71196         including same-inode.h.
71197         * modules/chdir-safer: New file.
71198
71199         * modules/chown (Depends-on): Add stat-macros.
71200
71201 2006-08-10  Jim Meyering  <jim@meyering.net>
71202
71203         * m4/cycle-check.m4: New file.
71204         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71205         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71206
71207 2006-08-10  Eric Blake  <ebb9@byu.net>
71208
71209         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71210         in from original proposal.
71211
71212 2006-08-10  Eric Blake  <ebb9@byu.net>
71213         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71214
71215         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71216         namespace.
71217
71218 2006-08-10  Bruno Haible  <bruno@clisp.org>
71219
71220         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71221         as well.
71222
71223 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         Sync from coreutils.
71226
71227         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71228
71229         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71230         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71231
71232 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71233
71234         * modules/restrict: Remove; no longer needed now that we assume
71235         Autoconf 2.59 or later.
71236         * MODULES.html.sh: Remove 'restrict'.
71237         * modules/argp (Depends-on): Remove 'restrict'.
71238         * modules/base64 (Depends-on): Likewise.
71239         * modules/gc (Depends-on): Likewise.
71240         * modules/getaddrinfo (Depends-on): Likewise.
71241         * modules/glob (Depends-on): Likewise.
71242         * modules/inet_ntop (Depends-on): Likewise.
71243         * modules/inet_pton (Depends-on): Likewise.
71244         * modules/memxor (Depends-on): Likewise.
71245         * modules/regex (Depends-on): Likewise.
71246         * modules/strtok_r (Depends-on): Likewise.
71247         * modules/time_r (Depends-on): Likewise.
71248
71249 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71252         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71253         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71254         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71255         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71256         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71257         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71258         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71259
71260         Merge from coreutils.
71261         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71262         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71264         * m4/time_r.m4 (gl_TIME_R): Likewise.
71265
71266 2006-08-09  Karl Berry  <karl@gnu.org>
71267
71268         * config/srclist.txt: no more gettext-tools, per Bruno.
71269
71270 2006-08-08  Eric Blake  <ebb9@byu.net>
71271
71272         * modules/verror: New module.
71273         * MODULES.html.sh: Document it.
71274
71275 2006-08-08  Eric Blake  <ebb9@byu.net>
71276
71277         * lib/verror.h, lib/verror.c: New files.
71278
71279 2006-08-08  Eric Blake  <ebb9@byu.net>
71280
71281         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71282         verror_at_line output complies with GNU Coding Standards even when
71283         file is NULL.
71284
71285 2006-08-07  Bruno Haible  <bruno@clisp.org>
71286
71287         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71288         versions of AIX.
71289         Reported by Ralf Wildenhues.
71290
71291 2006-08-07  Bruno Haible  <bruno@clisp.org>
71292
71293         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71294         in an AC_DEFUN. Needed so that the autoconf snippets can use
71295         AC_REQUIRE.
71296
71297 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71298
71299         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71300         Initialize pkgdata_DATA.
71301         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71302         overriding it.
71303
71304 2006-08-06  Eric Blake  <ebb9@byu.net>
71305
71306         * lib/error.h: Fold in some upstream changes from glibc.
71307         * lib/error.c: Likewise.
71308
71309 2006-08-04  Bruno Haible  <bruno@clisp.org>
71310
71311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71312         Make the mostlyclean-local rule depend on mostlyclean-generic.
71313         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71314
71315 2006-07-31  Bruno Haible  <bruno@clisp.org>
71316
71317         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71318         <stdlib.h>, <string.h>.
71319
71320 2006-07-30  Bruno Haible  <bruno@clisp.org>
71321
71322         * modules/readlink (License): Change to LGPL.
71323
71324 2006-07-30  Bruno Haible  <bruno@clisp.org>
71325
71326         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71327         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71328         set PKGDATADIR to point to it.
71329
71330 2006-07-30  Bruno Haible  <bruno@clisp.org>
71331
71332         * modules/csharpexec (configure.ac): Comment out macro invocation.
71333         * modules/javaexec (configure.ac): Likewise.
71334         * modules/javacomp-script (configure.ac): Likewise.
71335
71336         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71337
71338 2006-07-30  Bruno Haible  <bruno@clisp.org>
71339
71340         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71341         linked-list.
71342
71343 2006-07-30  Bruno Haible  <bruno@clisp.org>
71344
71345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71346
71347 2006-07-30  Bruno Haible  <bruno@clisp.org>
71348
71349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71350         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71351         get removed.
71352
71353 2006-07-29  Bruno Haible  <bruno@clisp.org>
71354
71355         Make it possible for gnulib-tool to work with locally modified or
71356         augmented gnulib repositories.
71357         * gnulib-tool (func_usage): Document --local-dir option.
71358         (local_gnulib_dir): New variable.
71359         Handle --local-dir option.
71360         (func_lookup_file): New function.
71361         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71362         (func_get_description, func_get_filelist, func_get_description,
71363         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71364         func_get_automake_snippet, func_get_include_directive,
71365         func_get_license, func_get_maintainer): Use func_lookup_file.
71366         (func_import, func_create_testdir): Use func_lookup_file.
71367
71368 2006-07-29  Bruno Haible  <bruno@clisp.org>
71369
71370         * modules/setenv (Depends-on): Add unistd.
71371
71372 2006-07-29  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71375
71376 2006-07-29  Bruno Haible  <bruno@clisp.org>
71377
71378         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71379
71380 2006-07-29  Bruno Haible  <bruno@clisp.org>
71381
71382         * gnulib-tool (import, update): If there is no Makefile.am, look at
71383         aclocal.m4, instead of bailing out.
71384
71385 2006-07-29  Bruno Haible  <bruno@clisp.org>
71386
71387         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71388         Categorize the options by when they are useful.
71389
71390 2006-07-29  Bruno Haible  <bruno@clisp.org>
71391
71392         * gnulib-tool (func_usage): Document option --no-libtool.
71393         Handle option --no-libtool.
71394         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71395         for changed semantics of $libtool variable.
71396         (func_import): Likewise. If libtool is not used, show this through
71397         an option --no-libtool.
71398         (func_create_testdir): Update.
71399
71400 2006-07-29  Bruno Haible  <bruno@clisp.org>
71401
71402         * gnulib-tool (func_import): Extend error message about missing
71403         --doc-base.
71404
71405 2006-07-29  Bruno Haible  <bruno@clisp.org>
71406
71407         * gnulib-tool (func_import): Don't create the $docbase directory if
71408         there is no file to store there.
71409
71410 2006-07-29  Bruno Haible  <bruno@clisp.org>
71411
71412         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71413         relevant, look for configure.ac there, not in the current directory.
71414         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71415
71416 2006-07-29  Bruno Haible  <bruno@clisp.org>
71417
71418         * gnulib-tool (SORT): New variable.
71419         (func_usage): Undocument --assume-autoconf option.
71420         Remove --assume-autoconf option handling.
71421         (autoconf_minversion): Determine from the contents of configure.ac.
71422         (func_import): Remove autoconf_minversion handling.
71423         Suggested by Eric Blake.
71424
71425 2006-07-29  Bruno Haible  <bruno@clisp.org>
71426
71427         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71428
71429 2006-07-29  Bruno Haible  <bruno@clisp.org>
71430
71431         * config/srclist.txt (*setenv.[ch]): Remove rules.
71432
71433 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71434
71435         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71436
71437 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71438
71439         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71440         arpa/inet.h.
71441
71442 2006-07-28  Simon Josefsson  <jas@extundo.com>
71443
71444         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71445         * modules/inet_pton (Depends-on): Likewise.
71446
71447 2006-07-28  Simon Josefsson  <jas@extundo.com>
71448
71449         * m4/netinet_in_h.m4: New file.
71450
71451 2006-07-28  Simon Josefsson  <jas@extundo.com>
71452
71453         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71454         #include's.
71455
71456 2006-07-28  Simon Josefsson  <jas@extundo.com>
71457
71458         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71459         #include's.
71460
71461 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71464         setgid on directories only if they set these bits.
71465         * lib/modechange.h: Remove obsolete comment about masks.
71466
71467 2006-07-28  Eric Blake  <ebb9@byu.net>
71468
71469         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71470         macro expansion.
71471
71472 2006-07-28  Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71475
71476 2006-07-28  Bruno Haible  <bruno@clisp.org>
71477
71478         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71479
71480 2006-07-28  Bruno Haible  <bruno@clisp.org>
71481
71482         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71483         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71484         Define fallbacks.
71485         Avoids link error on FreeBSD 4.x.
71486         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71487
71488         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71489         encoding.
71490         * lib/mbswidth.c (iswcntrl): Likewise.
71491
71492 2006-07-27  Bruno Haible  <bruno@clisp.org>
71493
71494         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71495         test.
71496
71497 2006-07-27  Bruno Haible  <bruno@clisp.org>
71498
71499         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71500         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71501         defined.
71502
71503 2006-07-26  Eric Blake  <ebb9@byu.net>
71504
71505         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71506
71507 2006-07-26  Eric Blake  <ebb9@byu.net>
71508
71509         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71510         like mingw that lack mkstemp.
71511         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71512         avoid compilation warning on mingw.
71513
71514 2006-07-26  Bruno Haible  <bruno@clisp.org>
71515
71516         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71517         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71518         INT_FAST*_MIN, INTPTR_MIN.
71519
71520 2006-07-25  Bruno Haible  <bruno@clisp.org>
71521
71522         * modules/version-etc (Depends-on): Add stdarg.
71523
71524 2006-07-25  Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71527         complex commands.
71528
71529 2006-07-25  Bruno Haible  <bruno@clisp.org>
71530
71531         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71532         defined in <stdarg.h> or config.h.
71533
71534 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71537         (gl_STDIO_SAFER): Remove.
71538
71539 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         * MODULES.html.sh (File stream based Input/Output):
71542         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71543         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71544         * modules/fopen-safer, modules/tmpfile-safer: New files.
71545         * modules/stdio-safer: Remove.
71546
71547 2006-07-24  Bruno Haible  <bruno@clisp.org>
71548
71549         * modules/tmpdir: New file.
71550         * MODULES.html.sh (File system functions): Add it.
71551
71552 2006-07-24  Bruno Haible  <bruno@clisp.org>
71553
71554         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71555         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71556
71557 2006-07-24  Bruno Haible  <bruno@clisp.org>
71558
71559         * modules/clean-temp: New file.
71560
71561 2006-07-24  Bruno Haible  <bruno@clisp.org>
71562
71563         * m4/tmpdir.m4: New file, from GNU gettext.
71564
71565 2006-07-24  Bruno Haible  <bruno@clisp.org>
71566
71567         * lib/tmpdir.h: New file, from GNU gettext.
71568         * lib/tmpdir.c: New file, from GNU gettext.
71569
71570 2006-07-24  Bruno Haible  <bruno@clisp.org>
71571
71572         * lib/clean-temp.h: New file, from GNU gettext.
71573         * lib/clean-temp.c: New file, from GNU gettext.
71574
71575 2006-07-23  Eric Blake  <ebb9@byu.net>
71576
71577         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71578         (Depends-on): Add binary-io.
71579
71580 2006-07-23  Eric Blake  <ebb9@byu.net>
71581
71582         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71583
71584 2006-07-23  Eric Blake  <ebb9@byu.net>
71585
71586         * lib/tmpfile-safer.c: New file.
71587         * lib/stdio-safer.h (fopen_safer): Add prototype.
71588         * lib/stdio--.h (tmpfile): Make safer.
71589
71590 2006-07-23  Bruno Haible  <bruno@clisp.org>
71591
71592         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71593         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71594         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71595         gl_linked_remove_at): Use it.
71596
71597 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71598         and Simon Josefsson <jas@extundo.com>
71599
71600         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71601
71602         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71603
71604 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * modules/close-stream: New file.
71607         * modules/closeout (Description): Make it clear that it exits
71608         with a diagnostic on error.
71609         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71610         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71611
71612 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * m4/close-stream.m4: New file.
71615
71616 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * lib/close-stream.c, lib/close-stream.h: New files.
71619
71620 2006-07-22  Bruno Haible  <bruno@clisp.org>
71621
71622         Merge from GNU gettext 0.15.
71623
71624         2006-05-01  Bruno Haible  <bruno@clisp.org>
71625
71626                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71627
71628         2006-07-22  Bruno Haible  <bruno@clisp.org>
71629
71630                 * modules/javaversion: New file.
71631                 * MODULES.html.sh (Java): Add javaversion.
71632
71633         2006-03-12  Bruno Haible  <bruno@clisp.org>
71634
71635                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71636
71637         2005-12-04  Bruno Haible  <bruno@clisp.org>
71638
71639                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71640                 (untested).
71641
71642         2006-06-21  Bruno Haible  <bruno@clisp.org>
71643
71644                 Avoid warnings from recent versions of mcs.
71645                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71646                 -o, -L, -r any more. Use options documented since mcs-1.0
71647                 instead. Similarly for -g.
71648
71649         2005-12-04  Bruno Haible  <bruno@clisp.org>
71650
71651                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71652                 .resources, not .resource.
71653
71654         2005-07-09  Bruno Haible  <bruno@clisp.org>
71655
71656                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71657                 add a .dll suffix.
71658                 Reported by Mark Junker <mjscod@gmx.de>.
71659
71660         2006-07-22  Bruno Haible  <bruno@clisp.org>
71661
71662                 * modules/gettext: Upgrade to gettext-0.15.
71663                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71664                 m4/visibility.m4.
71665                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71666
71667 2006-07-22  Bruno Haible  <bruno@clisp.org>
71668
71669         Merge from GNU gettext 0.15.
71670
71671         2006-03-25  Bruno Haible  <bruno@clisp.org>
71672
71673                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71674
71675         2006-07-21  Bruno Haible  <bruno@clisp.org>
71676
71677                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71678                 "1.1".
71679
71680         2006-05-09  Bruno Haible  <bruno@clisp.org>
71681
71682                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71683                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71684                 for the conftestver execution.
71685
71686         2006-05-01  Bruno Haible  <bruno@clisp.org>
71687
71688                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71689                 optional target-version argument. Verify that the compiler
71690                 groks source of the specified source-version, or add -source
71691                 option as necessary. Verify that the compiler produces
71692                 bytecode in the specified target-version, or add -target and
71693                 -source options as necessary. Make the result of the test
71694                 available as variable CONF_JAVAC. Also log error output in
71695                 config.log.
71696
71697         2006-03-11  Bruno Haible  <bruno@clisp.org>
71698
71699                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71700
71701         2006-05-09  Bruno Haible  <bruno@clisp.org>
71702
71703                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71704                 CLASSPATH_SEPARATOR to a semicolon.
71705
71706         2006-03-12  Bruno Haible  <bruno@clisp.org>
71707
71708                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71709                 available as variable CONF_JAVA, for subsequent autoconf
71710                 tests. Also log error output in config.log.
71711
71712         2006-07-19  Bruno Haible  <bruno@clisp.org>
71713
71714                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71715                 that getline works on glibc2 systems. Needed to avoid trouble
71716                 in relocatable.c.
71717                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71718
71719         2005-12-04  Bruno Haible  <bruno@clisp.org>
71720
71721                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71722                 launcher (untested).
71723
71724         2005-12-04  Bruno Haible  <bruno@clisp.org>
71725
71726                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71727
71728         2006-07-22  Bruno Haible  <bruno@clisp.org>
71729
71730                 * gettext.m4: Update from GNU gettext-0.15.
71731                 * nls.m4: Likewise.
71732                 * po.m4: Likewise.
71733                 * inttypes-pri.m4: Likewise.
71734                 * inttypes-h.m4: Renamed from inttypes.m4.
71735                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71736
71737 2006-07-22  Bruno Haible  <bruno@clisp.org>
71738
71739         Merge from GNU gettext 0.15.
71740
71741         2005-07-05  Bruno Haible  <bruno@clisp.org>
71742
71743                 * printf-args.c (printf_fetchargs): Work around broken
71744                 definition of wint_t on mingw.
71745
71746         2005-02-12  Bruno Haible  <bruno@clisp.org>
71747
71748                 * xallocsa.h: Add extern "C" for C++.
71749
71750         2006-05-17  Bruno Haible  <bruno@clisp.org>
71751
71752                 Cygwin portability.
71753                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71754
71755         2006-04-30  Bruno Haible  <bruno@clisp.org>
71756
71757                 * progreloc.c: Include <mach-o/dyld.h> if available.
71758                 (find_executable): Use _NSGetExecutablePath when possible.
71759
71760         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71761
71762                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71763                 function.
71764
71765         2005-12-29  Bruno Haible  <bruno@clisp.org>
71766
71767                 * progreloc.c (set_program_name_and_installdir): Fix
71768                 compilation error.
71769
71770         2005-12-04  Bruno Haible  <bruno@clisp.org>
71771
71772                 Cygwin portability.
71773                 * progreloc.c: Include <windows.h> also on Cygwin.
71774                 (find_executable): Add support for Cygwin.
71775                 (set_program_name_and_installdir): Handle also platforms with
71776                 nonempty EXEEXT.
71777
71778         2006-07-11  Bruno Haible  <bruno@clisp.org>
71779
71780                 * javacomp.c: Fix a comment.
71781                 Reported by Jim Meyering.
71782
71783         2006-04-30  Bruno Haible  <bruno@clisp.org>
71784
71785                 * javacomp.h (compile_java_class): Add source_version,
71786                 target_version arguments.
71787                 * javacomp.c: Rewritten to choose only a compiler that
71788                 respects the specified source_version and target_version.
71789
71790         2006-06-27  Bruno Haible  <bruno@clisp.org>
71791
71792                 Assume correct S_ISDIR macro.
71793                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71794
71795         2006-07-22  Bruno Haible  <bruno@clisp.org>
71796
71797                 * javaversion.h: New file, from GNU gettext.
71798                 * javaversion.c: New file, from GNU gettext.
71799                 * javaversion.java: New file, from GNU gettext.
71800                 * javaversion.class: New file, from GNU gettext.
71801
71802         2006-05-17  Bruno Haible  <bruno@clisp.org>
71803
71804                 Cygwin portability.
71805                 * javaexec.c (execute_java_class): Test for jview program
71806                 also on Cygwin.
71807
71808         2006-04-09  Bruno Haible  <bruno@clisp.org>
71809
71810                 * fatal-signal.c: Don't include string.h.
71811                 (at_fatal_signal): Use a copying loop instead of memcpy.
71812
71813         2005-12-04  Bruno Haible  <bruno@clisp.org>
71814
71815                 * csharpexec.c: Add support for 'clix' launcher (untested).
71816                 (execute_csharp_using_sscli): New function.
71817                 (execute_csharp_program): Call it.
71818
71819         2006-06-21  Bruno Haible  <bruno@clisp.org>
71820
71821                 Avoid warnings from recent versions of mcs.
71822                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71823                 -o, -L, -r any more. Use options documented since mcs-1.0
71824                 instead. Similarly for -g.
71825
71826         2005-07-09  Bruno Haible  <bruno@clisp.org>
71827
71828                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71829                 add a .dll suffix.
71830                 Reported by Mark Junker <mjscod@gmx.de>.
71831
71832         2006-06-17  Bruno Haible  <bruno@clisp.org>
71833
71834                 * config.charset: Update for NetBSD 3.0.
71835
71836         2006-05-17  Bruno Haible  <bruno@clisp.org>
71837
71838                 Cygwin portability.
71839                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71840
71841         2006-05-16  Bruno Haible  <bruno@clisp.org>
71842
71843                 * localcharset.c [CYGWIN]: Include <windows.h>.
71844                 (get_charset_aliases): For Cygwin, return the same CPxxx
71845                 aliases list as under WIN32.
71846                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71847                 the environment variables. Fall back to GetACP().
71848
71849         2006-04-05  Bruno Haible  <bruno@clisp.org>
71850
71851                 * config.charset: Update Juan Manuel Guerrero's address.
71852
71853         2005-02-12  Bruno Haible  <bruno@clisp.org>
71854
71855                 * allocsa.h: Add extern "C" for C++.
71856
71857         2005-02-10  Bruno Haible  <bruno@clisp.org>
71858
71859                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71860                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71861
71862         2006-07-22  Bruno Haible  <bruno@clisp.org>
71863
71864                 * gettext.h: Update to GNU gettext-0.15.
71865
71866 2006-07-22  Bruno Haible  <bruno@clisp.org>
71867
71868         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71869         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71870         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71871
71872 2006-07-21  Eric Blake  <ebb9@byu.net>
71873
71874         * modules/stdlib-safer: New file.
71875         * MODULES.html.sh (File stream based Input/Output): Add
71876         stdlib-safer.
71877
71878 2006-07-21  Eric Blake  <ebb9@byu.net>
71879
71880         * lib/stdlib-safer.h: New file from coreutils, required by
71881         stdlib--.h.
71882
71883 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71886
71887 2006-07-20  Bruno Haible  <bruno@clisp.org>
71888
71889         * gnulib-tool: Recognize new option --assume-autoconf.
71890         (autoconf_minversion): New variable.
71891         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71892
71893 2006-07-20  Bruno Haible  <bruno@clisp.org>
71894
71895         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71896
71897 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71898
71899         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71900         Reindent and repaginate.
71901
71902 2006-07-19  Derek Price  <derek@ximbiot.com>
71903
71904         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71905         Correct grammar.
71906
71907 2006-07-17  Bruno Haible  <bruno@clisp.org>
71908
71909         * modules/list: New file.
71910         * modules/array-list: New file.
71911         * modules/carray-list, modules/carray-list-tests: New files.
71912         * modules/linked-list, modules/linked-list-tests: New files.
71913         * modules/avltree-list, modules/avltree-list-tests: New files.
71914         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71915         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71916         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71917         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71918         * modules/oset: New file.
71919         * modules/array-oset: New file.
71920         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71921         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71922         * tests/test-carray_list.c: New file.
71923         * tests/test-linked_list.c: New file.
71924         * tests/test-avltree_list.c: New file.
71925         * tests/test-rbtree_list.c: New file.
71926         * tests/test-linkedhash_list.c: New file.
71927         * tests/test-avltreehash_list.c: New file.
71928         * tests/test-rbtreehash_list.c: New file.
71929         * tests/test-avltree_oset.c: New file.
71930         * tests/test-rbtree_oset.c: New file.
71931         * MODULES.html.sh (Container data structures): New section.
71932
71933 2006-07-17  Bruno Haible  <bruno@clisp.org>
71934
71935         * m4/gl_list.m4: New file.
71936
71937 2006-07-17  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/gl_list.h: New file.
71940         * lib/gl_list.c: New file.
71941         * lib/gl_array_list.h: New file.
71942         * lib/gl_array_list.c: New file.
71943         * lib/gl_carray_list.h: New file.
71944         * lib/gl_carray_list.c: New file.
71945         * lib/gl_linked_list.h: New file.
71946         * lib/gl_linked_list.c: New file.
71947         * lib/gl_anylinked_list1.h: New file.
71948         * lib/gl_anylinked_list2.h: New file.
71949         * lib/gl_avltree_list.h: New file.
71950         * lib/gl_avltree_list.c: New file.
71951         * lib/gl_anyavltree_list1.h: New file.
71952         * lib/gl_anyavltree_list2.h: New file.
71953         * lib/gl_rbtree_list.h: New file.
71954         * lib/gl_rbtree_list.c: New file.
71955         * lib/gl_anyrbtree_list1.h: New file.
71956         * lib/gl_anyrbtree_list2.h: New file.
71957         * lib/gl_anytree_list1.h: New file.
71958         * lib/gl_anytree_list2.h: New file.
71959         * lib/gl_linkedhash_list.h: New file.
71960         * lib/gl_linkedhash_list.c: New file.
71961         * lib/gl_anyhash_list1.h: New file.
71962         * lib/gl_anyhash_list2.h: New file.
71963         * lib/gl_avltreehash_list.h: New file.
71964         * lib/gl_avltreehash_list.c: New file.
71965         * lib/gl_rbtreehash_list.h: New file.
71966         * lib/gl_rbtreehash_list.c: New file.
71967         * lib/gl_anytreehash_list1.h: New file.
71968         * lib/gl_anytreehash_list2.h: New file.
71969
71970         * lib/gl_oset.h: New file.
71971         * lib/gl_oset.c: New file.
71972         * lib/gl_array_oset.h: New file.
71973         * lib/gl_array_oset.c: New file.
71974         * lib/gl_avltree_oset.h: New file.
71975         * lib/gl_avltree_oset.c: New file.
71976         * lib/gl_rbtree_oset.h: New file.
71977         * lib/gl_rbtree_oset.c: New file.
71978         * lib/gl_anytree_oset.h: New file.
71979
71980 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         * m4/mkancesdirs.m4: New file.
71983         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71984         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71985         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71986         it.
71987
71988 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71991         * lib/mkancesdirs.h: New files.
71992         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71993         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71994         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71995         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71996         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71997         callers changed.  Revamp internals significantly, by not
71998         attempting to create directories that are temporarily more
71999         permissive than the final results.  Do not attempt to use
72000         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72001         This removes some race conditions, fixes some bugs, and simplifies
72002         things.  Use new dirchownmod function to do owner and mode changes.
72003         * lib/mkdir-p.h: Likewise.
72004         * lib/modechange.c (octal_to_mode): New function.
72005         (struct mode_change): New member mentioned.
72006         (make_node_op_equals): New arg mentioned.  All callers changed.
72007         (mode_compile): Keep track of which mode bits the user has explicitly
72008         mentioned.
72009         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72010         New arg PMODE_BITS, to keep track of which mode bits the user
72011         mentioned; it treats S_ISUID and S_ISGID speciall.
72012         All callers changed.
72013         * lib/modechange.h: Likewise.
72014
72015 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * MODULES.html.sh: Add mkancestors.
72018         * modules/mkancesdirs: New module.
72019         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72020         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72021         The chdir-safer and afs files are now orphans; I'll remove them
72022         unless someone speaks up.
72023         Add lib/dirchownmod.c, lib/dirchownmod.h.
72024         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72025         Add lchown, mkancesdirs.
72026         (Maintainer): Add self.
72027
72028 2006-07-15  Karl Berry  <karl@gnu.org>
72029
72030         * gnulib-tool: help message wording/arrangement.
72031
72032 2006-07-14  Simon Josefsson  <jas@extundo.com>
72033
72034         * doc/gnulib.texi (Libtool and Windows): New section.
72035
72036 2006-07-12  Simon Josefsson  <jas@extundo.com>
72037
72038         * modules/gendocs (License): Fix license, approved by Karl.
72039
72040 2006-07-12  Eric Blake  <ebb9@byu.net>
72041
72042         * MODULES.html.sh: Add gendocs.
72043
72044 2006-07-11  Eric Blake  <ebb9@byu.net>
72045
72046         * modules/fdl: New module, to install doc/fdl.texi.
72047         * MODULES.html.sh: Add new section for documentation modules.
72048         * gnulib-tool: Avoid space-tab.
72049         (--doc-base): New option, to manage files from doc.
72050
72051 2006-07-11  Eric Blake  <ebb9@byu.net>
72052
72053         * m4/absolute-header.m4: Fix comments to match recent change.
72054
72055 2006-07-11  Eric Blake  <ebb9@byu.net>
72056
72057         * gnulib-tool: List --doc-base before --tests-base.
72058
72059 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72060
72061         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72062
72063 2006-07-11  Bruno Haible  <bruno@clisp.org>
72064
72065         * README: Mention where to put documentation.
72066
72067 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72068
72069         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72070
72071 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72074         to stdint.m4.
72075
72076 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72079         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72080         "no/such/file/stdint.h" when there is no such file, so that
72081         the resulting C code can be parsed by dodgy compilers.
72082         Problems reported by Bob Proulx.
72083
72084 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72085
72086         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72087         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72088         macros into the GNU _D_EXACT_NAMLEN.
72089         * lib/savedir.c:  Likewise.
72090         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72091
72092 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72093         and Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72096         * m4/savedir.m4:
72097         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72098         macros into the GNU _D_EXACT_NAMLEN.
72099
72100 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72101
72102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72103         around the absolute name, to work around a problem with the HP-UX
72104         11.23 native C compiler, reported by Bob Proulx.
72105
72106 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * doc/maintain.texi, make-stds.texi: Sync from
72109         <http://savannah.gnu.org/projects/gnustandards>.
72110
72111 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72114
72115 2006-07-09  Jim Meyering  <jim@meyering.net>
72116
72117         * m4/glob.m4: Remove a doubled word in a comment.
72118
72119 2006-07-09  Jim Meyering  <jim@meyering.net>
72120
72121         * lib/argp-pv.c: Remove a doubled word in a comment.
72122         * lib/check-version.c (check_version): Likewise.
72123         * lib/javacomp.c (compile_java_class): Likewise.
72124
72125 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72128         for the benefit of people using Autoconf 2.60.  If you want to
72129         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72130         (or m4/onceonly.m4, if pre-2.57) manually.
72131
72132 2006-07-08  Jim Meyering  <jim@meyering.net>
72133
72134         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72135         comment.
72136         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72137         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72138         comment.
72139
72140 2006-07-08  Jim Meyering  <jim@meyering.net>
72141
72142         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72143
72144 2006-07-07  Simon Josefsson  <jas@extundo.com>
72145
72146         * tests/test-crc.c: Change expected crc value, the test vector
72147         were probably computed using the old broken crc.c?
72148
72149 2006-07-06  Simon Josefsson  <jas@extundo.com>
72150
72151         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72152         now the canonical place for the M4 file).
72153
72154         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72155         from the sys_socket dependency now.
72156
72157         * modules/inet_pton (Files): Ditto.
72158
72159         * modules/inet_ntop (Files): Ditto.
72160
72161 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72162
72163         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72164         not gl_PREREQ_GETUSERSHELL.
72165
72166 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72167
72168         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72169         with only one argument, for Autoconf 2.60.
72170         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72171         expand to nothing, so add a shell command to avoid syntax error.
72172         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72173
72174 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72175
72176         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72177
72178 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72181         no longer needed.  Check for isblank decl.
72182         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72183         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72184         of existence.
72185
72186 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/getloadavg.c: Use __VMS, not VMS.
72189         * lib/getopt.c: Likewise.
72190         * lib/getpagesize.h: Likewise.
72191         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72192         and probably does not work.
72193
72194 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * lib/.cppi-disable: Add wcwidth.
72197         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72198         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72199         (ISGRAPH): Remove.  All uses changed to isgraph.
72200         (FOLD) [!defined _LIBC]: Remove special case.
72201         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72202         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72203         HAVE_ISBLANK.
72204         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72205         case.
72206
72207 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72208
72209         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72210         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72211         brackets.  Other minor changes to suppress some compiler
72212         warnings.
72213
72214 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72215         and Paul Eggert  <eggert@cs.ucla.edu>
72216
72217         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72218         of invoking obsolescent AC_HEADER_DIRENT macro.
72219         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72220         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72221         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72223         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72224         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72225         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72226         * m4/readdir.m4: Remove; no longer needed.
72227
72228 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72229         and Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72232         Don't worry about this obsolete case any more.
72233         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72234         directories.
72235         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72236         worry about this obsolete case any more.
72237         * lib/fts.c: Likewise.
72238         * lib/getcwd.c: Likewise.
72239         * lib/glob.h: Likewise.
72240         * lib/savedir.c: Likewise.
72241
72242 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72245         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72246         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72247         needed.
72248         All uses removed.
72249         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72250         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72251         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72252         needed.
72253         * m4/getdate.m4 (gl_GETDATE): Likewise.
72254         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72255         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72256         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72257         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72258         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72259         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72260         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72261         needed.
72262
72263 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         * lib/memcasecmp.c: Include <limits.h>.
72266         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72267         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72268         Don't assume isdigit succeeds only on '0' through '9'.
72269
72270 2006-07-05  Eric Blake  <ebb9@byu.net>
72271
72272         * modules/getaddrinfo (Depends-on): Add snprintf.
72273
72274 2006-07-05  Eric Blake  <ebb9@byu.net>
72275
72276         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72277         to avoid 'header present but could not be compiled' on cygwin.
72278
72279 2006-07-05  Eric Blake  <ebb9@byu.net>
72280
72281         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72282         missing from netdb.h.
72283         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72284
72285 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72286
72287         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72288         no longer needed.
72289         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72290         * m4/getdate.m4 (gl_GETDATE): Likewise.
72291         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72292         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72293         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72294         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72295         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72296
72297 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72298
72299         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72300         All uses of is_space replaced by isspace.
72301         * lib/exit.h: Don't talk about STDC_HEADERS.
72302         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72303         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72304         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72305         replaced by isprint etc.
72306         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72307         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72308         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72309         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72310         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72311         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72312
72313 2006-07-05  Bruno Haible  <bruno@clisp.org>
72314
72315         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72316         the function exists, before testing against AIX.
72317         Reported by Martin Lambers <marlam@marlam.de>.
72318
72319 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72322         From Mark D. Baushke.
72323
72324 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72325
72326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72327         to the absolute name, not just one, to bypass Sun C 5.8's
72328         "warning: #include of /usr/include/... may be non-portable".
72329
72330 2006-07-04  Eric Blake  <ebb9@byu.net>
72331
72332         * modules/dirname-tests: New test module.
72333         * tests/test-dirname.c: New file, replacing dirname.c
72334         TEST_DIRNAME section that was recently deleted.
72335
72336 2006-07-04  Bruno Haible  <bruno@clisp.org>
72337
72338         Assume ANSI C header files and <ctype.h> functions.
72339         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72340         (mbsnwidth): Use isprint, iscntrl instead.
72341
72342 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         Merge from coreutils.
72345         * MODULES.html.sh: Add xstrtold.
72346         * modules/xstrtold: New file.
72347         * modules/cycle-check (Files): Add lib/same-inode.h.
72348         * modules/dirname (Files): Add m4/double-slash-root.m4.
72349         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72350         * modules/mkdir-p (Files): Add lib/same-inode.h.
72351         * modules/same (Files): Add lib/same-inode.h.
72352
72353 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72354
72355         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72356         This is to keep the terminology clean; POSIX talks about
72357         "absolute pathnames", not "full pathnames", but the GNU
72358         Coding Standards say to use "path" for something else;
72359         so use "absolute" to keep both sides happy.
72360         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72361         Set gl_absolute_header, not gl_full_header_path.
72362         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72363         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72364         All uses changed.
72365
72366         Merge from coreutils.
72367
72368         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72371         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72372         want to require the building of c-strtod.o.
72373         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72374         needs -lm directly.
72375         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72376
72377         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72380         --as-needed option if available.  Problem reported by Albert Chin in
72381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72382         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72383         cc merely issues a bunch of annoying warnings for --as-needed
72384         (this problem was reported by Bob Proulx).  Also, try linking with
72385         -lm to detect a bug in binutils 2.16 (this problem was reported
72386         by Ralf Wildenhues).
72387
72388         2006-06-18  Jim Meyering  <jim@meyering.net>
72389
72390         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72391         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72392         macro.
72393         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72394         also check for glibc-2.4's abort-inducing bug.
72395
72396         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72397         Low-probability clean-up should be to use rmdir to get rid of
72398         the just-created directory, not unlink.
72399
72400         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72401         configure fail, and request a bug report to inform us about it.
72402         Add a comment that, barring reports to the contrary, in 2007 we'll
72403         assume ftruncate is universally available.
72404
72405         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72406
72407         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72408
72409         2006-03-12  Jim Meyering  <jim@meyering.net>
72410
72411         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72412         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72413         * m4/same.m4 (gl_SAME): Likewise.
72414         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72415
72416         2006-03-11  Eric Blake  <ebb9@byu.net>
72417
72418         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72419         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72420         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72421         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72422
72423 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72426         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72427         reported by Mark D. Baushke, one in
72428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72429
72430         Merge from coreutils.
72431
72432         * lib/.cppi-disable: Add stdint_.h.
72433         * lib/.cvsignore: Add stdint.h.
72434
72435         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72438         both double and long double versions.
72439         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72440         * lib/xstrtold.c: New file.
72441         * lib/xstrtod.h (xstrtold): New decl.
72442
72443         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * lib/filemode.c (setst): Remove.
72446         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72447         (arguably) clearer, and the generated code is a bit smaller on my
72448         Debian GNU/Linux stable x86 host.
72449
72450         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72451
72452         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72453         Assume that filemode.h includes sys/types.h and sys/stat.h.
72454         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72455         (ftypelet): Reorder to put common cases first, for efficiency.
72456         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72457         to do 'M'.
72458         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72459         of 10, for compatibility with FreeBSD.  All callers changed.
72460         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72461         types that can't be deduced solely from st_mode.  First arg is now a
72462         const pointer.
72463         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72464         (strmode): Renamed from mode_string.
72465         (filemodestring): New decl.
72466         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72467         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72468         needed.
72469         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72470
72471         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72474         fsusage.h now does that.  Include fsusage.h first, to test interface.
72475         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72476         at most one method (the old code could have generated decls that
72477         didn't conform to C89, not that this was ever exercised).
72478         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72479
72480         2006-03-19  Jim Meyering  <jim@meyering.net>
72481
72482         Work even in a chroot where d_ino values for entries in "/"
72483         don't match the stat.st_ino values for the same names.
72484         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72485         number, iterate through all entries again, using lstat instead.
72486         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72487         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72488
72489         * lib/getcwd.c (__getcwd): Clarify a comment.
72490         Use memcpy in place of a call to strcpy.
72491
72492         2006-03-12  Jim Meyering  <jim@meyering.net>
72493
72494         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72495         matches that of the current directory (which we're about to chdir ".."
72496         out of), then save the dev-ino of the parent, instead.
72497
72498         * lib/same-inode.h (SAME_INODE): New file/macro.
72499         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72500         Include "same-inode.h", instead.
72501         * lib/same.c: Likewise.
72502         * lib/cycle-check.h: Include "same-inode.h".
72503         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72504         * lib/cycle-check.c (SAME_INODE): Remove definition.
72505         * lib/root-dev-ino.h: Include "same-inode.h".
72506
72507         2006-03-11  Eric Blake  <ebb9@byu.net>
72508
72509         * lib/same.c (same_name): s/base_name/last_component/
72510         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72511         * lib/filenamecat.c (file_name_concat): Likewise.
72512
72513         2006-03-11  Eric Blake  <ebb9@byu.net>,
72514                     Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72517         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72518         drive prefix.
72519         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72520         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72521         (last_component): New method.
72522         * lib/dirname.c (dir_len): Determine when drive letters need a
72523         subsequent slash.  Preserve // when it is special.
72524         (dir_name): Don't append dot when drive letter is absolute.
72525         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72526         * lib/basename.c (base_name): New semantics - malloc the result.
72527         Preserve // when it is special.  Preserve relative files that look
72528         like drive letters.
72529         (base_len): Preserve // when it is special.
72530         (last_component): New method, similar to old base_name semantics.
72531         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72532         base_name.  Strip redundant slashes from ///.
72533
72534 2006-07-03  Jim Meyering  <jim@meyering.net>
72535
72536         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72537         macro is used before the first cycle_check call.
72538
72539 2006-07-03  Eric Blake  <ebb9@byu.net>
72540
72541         * modules/dirname (Depends-on): Add xstrndup.
72542
72543 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72546         test cases, so that config.log is a bit easier to follow.
72547
72548 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72551         both are 64 bits, since this seems to be the tradition, and this
72552         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72553         we ever run into a host that prefers long long to long in this
72554         case, we'll need another configure-time test.  Problem reported by
72555         Jim Meyering.
72556
72557 2006-07-02  Eric Blake  <ebb9@byu.net>
72558
72559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72560
72561 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * modules/inttypes (Depends-on): No longer depends on stdint.
72564         * modules/stdint (Description): Say more about assumptions.
72565         Say that the fast types might differ.  Say macros are used.
72566         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72567         (Makefile.am): Revise list of substituted symbols to match
72568         new stdint.m4.
72569         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72570         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72571         * tests/test-stdint.c (verify_same_types)
72572         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72573         the code conforms to C99/C89.
72574         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72575         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72576
72577 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72580         but fix a bug, by requiring at least 64 bits.
72581         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72582         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72583         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72584         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72585
72586         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72587         changes.  Make 2.59 a prerequisite.  Check and substitute for
72588         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72589         inttypes.h.  Do not use special include files; just use the
72590         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72591         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72592         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72593         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72594         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72595         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72596         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72597         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72598         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72599         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72600         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72601         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72602         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72603         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72604         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72605         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72606         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72607         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72608         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72609         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72610         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72611         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72612         not check for things that C99 does not require, e.g., int8_t.  If
72613         a test isn't needed unless <stdint.h> isn't working, and is
72614         unlikely to be needed for any other reason, then don't do it
72615         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72616         size_t, since we assume C89 freestanding at least.  Do not check
72617         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72618         the right thing even if the types are not defined.  Instead use:
72619         (gl_STDINT_TYPE_PROPERTIES): New macro.
72620         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72621         testing whether <sys/types.h> clashes, as Autoconf does this for
72622         us now.  All uses removed.
72623         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72624         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72625         (gl_CHECK_TYPE_SAME):
72626         Remove; no longer needed.
72627         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72628         exists, since we'll return 0 anyway in that case.
72629         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72630
72631 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72634         possible collision with system files.
72635         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72636         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72637         WCHAR_MIN and WCHAR_MAX in this case.
72638         (<stddef.h>): Do not include; no longer needed.
72639         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72640         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72641         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72642         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72643         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72644         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72645         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72646         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72647         !defined(__c99))]: Include in this case too, since it's harmless
72648         now.
72649         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72650         dangerous to do so.
72651         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72652         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72653         (_STDINT_MIN, _STDINT_MAX): New macros.
72654         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72655         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72656         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72657         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72658         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72659         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72660         macros, not typedefs; this simplifies things quite a bit.
72661         Use long int for all types narrower than int64_t.
72662         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72663         Define in terms of long long int or int64_t or long int,
72664         not int64_t or int32_t.  This saves some compile-time testing.
72665         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72666         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72667         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72668         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72669         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72670         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72671         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72672         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72673         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72674         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72675         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72676         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72677         undef any previous version and define our own version, for
72678         simplicity and consistency with the new macros for types.
72679         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72680         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72681         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72682         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72683         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72684         @WINT_T_SUFFIX@ to keep things simple here.
72685         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72686         Simplify by assuming typical 8/16/32/64 host, since we're
72687         already doing that elsewhere anyway.
72688         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72689         and assume long long int is 64 bits if available.  This
72690         speeds up 'configure'.
72691
72692 2006-07-01  Eric Blake  <ebb9@byu.net>
72693
72694         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72695         Reported by Andreas Buening.
72696
72697 2006-07-01  Eric Blake  <ebb9@byu.net>
72698
72699         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72700
72701 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72702
72703         * lib/getaddrinfo.c: fixed typo
72704
72705 2006-06-29  Jim Meyering  <jim@meyering.net>
72706
72707         * modules/strftime (Maintainer): Add my name, since with the
72708         FPRINTFTIME changes strftime.c has forked from glibc.
72709
72710 2006-06-29  Eric Blake  <ebb9@byu.net>
72711
72712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72713
72714 2006-06-29  Eric Blake  <ebb9@byu.net>
72715
72716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72717
72718 2006-06-29  Eric Blake  <ebb9@byu.net>
72719
72720         * lib/stat_.h: New file.
72721
72722 2006-06-29  Eric Blake  <ebb9@byu.net>
72723
72724         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72725         unused static function.
72726
72727 2006-06-29  Eric Blake  <ebb9@byu.net>
72728
72729         * doc/functions.texi (Function Portability): Document missing lstat
72730         on mingw.
72731
72732 2006-06-29  Eric Blake  <ebb9@byu.net>
72733
72734         * MODULES.html.sh: Add sys_stat.
72735         * modules/sys_stat: New module.
72736         * modules/mkstemp (Depends-on): Add sys_stat.
72737
72738 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72739
72740         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72741
72742 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72743
72744         * m4/c-bs-a.m4: Removed.
72745
72746 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72747
72748         * lib/strftime.c: Assume strftime() exists.
72749
72750 2006-06-29  Derek Price  <derek@ximbiot.com>
72751
72752         * modules/c-bs-a: Removed - \a is C89.
72753         * MODULES.html.sh: Remove c-bs-a.
72754
72755 2006-06-29  Bruno Haible  <bruno@clisp.org>
72756
72757         * modules/wcwidth (License): Change to LGPL.
72758
72759 2006-06-28  Simon Josefsson  <jas@extundo.com>
72760
72761         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72762         on _WIN32.
72763
72764         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72765         getnameinfo.
72766
72767 2006-06-28  Simon Josefsson  <jas@extundo.com>
72768
72769         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72770
72771 2006-06-28  Simon Josefsson  <jas@extundo.com>
72772
72773         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72774         functions there.  It will succeed on Windows XP, but on Windows
72775         2000 and (presumably) earlier, it will fail, and use the internal
72776         re-implementation.
72777         (use_win32_p): New function.
72778         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72779         Support AI_NUMERICSERV to disable getservbyname.
72780         (getnameinfo): New function, only supports
72781         NI_NUMERICHOST|NI_NUMERICSERV for now.
72782
72783         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72784         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72785         getnameinfo.
72786
72787 2006-06-28  Eric Blake  <ebb9@byu.net>
72788
72789         * modules/wcwidth: New file.
72790         * modules/mbchar (Depends-on): Add wcwidth.
72791         * modules/mbswidth (Depends-on): Add wcwidth.
72792         * MODULES.html.sh: Add wcwidth.
72793
72794 2006-06-28  Eric Blake  <ebb9@byu.net>
72795
72796         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72798
72799 2006-06-28  Eric Blake  <ebb9@byu.net>
72800
72801         * lib/xvasprintf.h: Fix comments.
72802
72803 2006-06-28  Eric Blake  <ebb9@byu.net>
72804
72805         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72806         * lib/mbswidth.c (wcwidth): Move from here...
72807         * lib/wcwidth.h: ...to this new file.
72808
72809 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72810
72811         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72812
72813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72814         it's obsolete.
72815         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72816
72817 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72818
72819         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72820         Autoconf 2.60 says this stuff was obsolete.
72821
72822 2006-06-28  Bruno Haible  <bruno@clisp.org>
72823
72824         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72825
72826 2006-06-28  Bruno Haible  <bruno@clisp.org>
72827
72828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72829         gt_TYPE_WCHAR_T.
72830
72831 2006-06-28  Bruno Haible  <bruno@clisp.org>
72832
72833         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72834         declaration for wcwidth.
72835         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72836
72837 2006-06-28  Bruno Haible  <bruno@clisp.org>
72838
72839         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72840         (mkdir): Define using _mkdir.
72841
72842 2006-06-28  Bruno Haible  <bruno@clisp.org>
72843
72844         * lib/getaddrinfo.h: Fix POSIX URL.
72845         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72846         _WIN32.
72847         (use_win32_p): Make static.
72848         (getaddrinfo): Reject service name if it is empty or does not consist
72849         solely of decimal digits, or if its value is > 65535.
72850         (getnameinfo): Remove useless casts.
72851
72852 2006-06-27  Simon Josefsson  <jas@extundo.com>
72853
72854         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72855         Eggert and Martin Lambers.
72856
72857 2006-06-27  Simon Josefsson  <jas@extundo.com>
72858
72859         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72860         Eggert and Martin Lambers.
72861
72862 2006-06-27  Bruno Haible  <bruno@clisp.org>
72863
72864         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72865         result to 0, not to empty.
72866         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72867
72868 2006-06-27  Bruno Haible  <bruno@clisp.org>
72869
72870         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72871
72872 2006-06-26  Simon Josefsson  <jas@extundo.com>
72873
72874         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72875         present.
72876
72877 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72880         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72882
72883 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72884
72885         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72886
72887 2006-06-26  Bruno Haible  <bruno@clisp.org>
72888
72889         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72890
72891 2006-06-26  Bruno Haible  <bruno@clisp.org>
72892
72893         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72894
72895 2006-06-26  Bruno Haible  <bruno@clisp.org>
72896
72897         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72898         SGI C compiler in pre-C99 mode.
72899         Suggested by Mark D. Baushke and Larry Jones.
72900
72901 2006-06-26  Bruno Haible  <bruno@clisp.org>
72902
72903         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72904         WCHAR_MAX.
72905         Reported by Mark D. Baushke and Larry Jones.
72906
72907 2006-06-26  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72910         in pre-C99 mode.
72911         Suggested by Mark D. Baushke and Larry Jones.
72912
72913 2006-06-23  Simon Josefsson  <jas@extundo.com>
72914             Bruno Haible  <bruno@clisp.org>
72915
72916         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72917         Emit mostlyclean-local rule.
72918         (func_emit_tests_Makefile_am): Likewise.
72919         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72920
72921 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72922
72923         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72924
72925 2006-06-23  Bruno Haible  <bruno@clisp.org>
72926
72927         * tests/test-stdint.c: Update to match ISO C 99 Technical
72928         Corrigendum 1.
72929
72930 2006-06-23  Bruno Haible  <bruno@clisp.org>
72931
72932         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72933
72934 2006-06-23  Bruno Haible  <bruno@clisp.org>
72935
72936         * lib/stdint_.h: Treat IRIX like OpenBSD.
72937
72938 2006-06-23  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72941         ISO C 99 Technical Corrigendum 1.
72942
72943 2006-06-22  Simon Josefsson  <jas@extundo.com>
72944
72945         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72946         MinGW.
72947
72948 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72951         needed.  Some compiler complained about some of them.  Problem reported
72952         by Larry Jones in
72953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72954
72955 2006-06-21  Simon Josefsson  <jas@extundo.com>
72956
72957         * tests/test-getaddrinfo.c: New file.
72958
72959         * modules/getaddrinfo-tests: New file.
72960
72961         * MODULES.html.sh: Add inet_pton.
72962
72963         * modules/inet_pton: New file.
72964
72965 2006-06-21  Simon Josefsson  <jas@extundo.com>
72966
72967         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72968         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72969         of using the (limited) gnulib implementation on Windows XP.
72970
72971         * m4/inet_pton.m4: New file.
72972
72973 2006-06-21  Simon Josefsson  <jas@extundo.com>
72974
72975         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72976         variable.
72977
72978         * lib/socket_.h: Don't define WINVER.
72979
72980         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72981         slightly modified to work in gnulib.
72982
72983 2006-06-21  Simon Josefsson  <jas@extundo.com>
72984
72985         * doc/gnulib.texi (Windows sockets): Add.
72986
72987 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * lib/read-file.c (fread_file): Start with buffer allocation of
72990         0 bytes rather than 1 byte; this simplifies the code.
72991         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72992         code to free buffer and save/restore errno.
72993         (internal_read_file): Remove unused local.
72994
72995 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72996
72997         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72998         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72999         Problem reported by Denis Excoffier in
73000         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73001
73002 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73003
73004         * modules/sys_socket, modules/socklen: Include sys/types since
73005         FreeBSD 4.x's sys/socket.h needs it.
73006
73007 2006-06-19  Simon Josefsson  <jas@extundo.com>
73008
73009         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73010
73011 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73014
73015 2006-06-19  Bruno Haible  <bruno@clisp.org>
73016
73017         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73018         and FULL_PATH_INTTYPES_H in angle brackets.
73019         Reported by Mark D. Baushke <mdb@gnu.org>.
73020
73021 2006-06-17  Eric Blake  <ebb9@byu.net>
73022
73023         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73024         errno.
73025
73026 2006-06-17  Bruno Haible  <bruno@clisp.org>
73027
73028         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73029         <sys/inttypes.h>.
73030
73031 2006-06-17  Bruno Haible  <bruno@clisp.org>
73032
73033         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73034         whether errno is declared. Assume <errno.h> declares errno.
73035
73036 2006-06-17  Bruno Haible  <bruno@clisp.org>
73037
73038         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73039
73040 2006-06-17  Bruno Haible  <bruno@clisp.org>
73041
73042         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73043         problem on Solaris 2.5.1.
73044
73045 2006-06-16  Eric Blake  <ebb9@byu.net>
73046
73047         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73048         * lib/unicodeio.c [!defined errno]: Likewise.
73049         * lib/strtol.c [!defined errno]: Likewise.
73050         * lib/strtod.c [!defined errno]: Likewise.
73051
73052 2006-06-15  Eric Blake  <ebb9@byu.net>
73053
73054         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73055
73056 2006-06-15  Eric Blake  <ebb9@byu.net>
73057
73058         * config/srclist.txt (ssize_t.m4): Lose sync.
73059
73060 2006-06-15  Bruno Haible  <bruno@clisp.org>
73061
73062         * modules/stdint (Files): Include m4/full-header-path.m4,
73063         m4/size_max.m4, m4/wchar_t.m4.
73064         (Makefile.am): Many more substitutions.
73065         * modules/stdint-tests: New file.
73066         * tests/test-stdint.c: New file.
73067
73068 2006-06-15  Bruno Haible  <bruno@clisp.org>
73069
73070         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73071         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73072         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73073         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73074         gl_CHECK_TYPE_SAME): New macros.
73075
73076 2006-06-15  Bruno Haible  <bruno@clisp.org>
73077
73078         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73079
73080 2006-06-15  Bruno Haible  <bruno@clisp.org>
73081
73082         * lib/stdint_.h: Rewritten to be fully auto-configured.
73083         Fixes bug on HP-UX/IA64.
73084
73085 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * lib/getdate.y (__attribute__): Don't define if already defined.
73088         Problem reported by Larry Jones.
73089         * lib/utimens.c (__attribute__): Likewise.
73090
73091 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73094         reported by Andreas Schwab.
73095
73096 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73097             Bruno Haible  <bruno@clisp.org>
73098
73099         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73100         check for the declaration of strnlen and a run test that exposes the
73101         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73102         rpl_strndup.
73103
73104 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73105             Bruno Haible  <bruno@clisp.org>
73106
73107         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73108
73109 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73110
73111         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73112         compile test, for Tru64 4.0D.
73113
73114 2006-05-28  Karl Berry  <karl@gnu.org>
73115
73116         * config/srclist.txt (printf-args.c): lose sync.
73117
73118 2006-05-26  Martin Lambers  <marlam@marlam.de>
73119
73120         * lib/getpass.c: Updates the test for the native W32 API, and adds
73121         missing includes, thus fixing compilation warnings.
73122
73123 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73124
73125         * lib/exclude.c (exclude_fnmatch): New function.
73126         (excluded_file_name): Call exclude_fnmatch.
73127         * lib/exclude.h (excluded_file_name): New prototype
73128
73129 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         * lib/tempname.c (small_open, large_open): New macros.
73132         (__open, __open64) [!_LIBC]: Remove.
73133         (__gen_tempname): Use small_open and large_open instead of __open
73134         and __open64.  This fixes a portability bug on HP-UX 11.11i
73135         reported by Simon Wing-Tang in
73136         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73137
73138 2006-05-24  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73141         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73142         Reported by Thorsten Maerz <torte@netztorte.de> via
73143         Aaron Stone <aaron@serendipity.cx>.
73144
73145 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73148         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73149         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73150         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73151         not really conditional on the cache.
73152         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73153
73154 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73155
73156         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73157         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73158         (my_usleep): Don't mishandle maximum value.
73159
73160 2006-05-19  Jim Meyering  <jim@meyering.net>
73161
73162         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73163
73164 2006-05-17  Bruno Haible  <bruno@clisp.org>
73165
73166         Cygwin portability.
73167         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73168
73169 2006-05-17  Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/stdint_.h: Fix recognition of Cygwin.
73172
73173 2006-05-15  Bruno Haible  <bruno@clisp.org>
73174
73175         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73176         on libtool patch by Ralf Wildenhues.
73177
73178 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73181         test for C99 conformance; (bool) 0.5 is an integer constant
73182         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73183         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73184
73185 2006-05-11  Simon Josefsson  <jas@extundo.com>
73186
73187         * m4/xvasprintf.m4: Fix obvious typo.
73188
73189 2006-05-11  Jim Meyering  <jim@meyering.net>
73190
73191         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73192         James Lemley.
73193
73194 2006-05-10  Simon Josefsson  <jas@extundo.com>
73195
73196         * lib/md4.c: Typo fix, update copyright years.
73197         (K1, K2): Don't use L because it turn computations into 64-bit on
73198         64-bit platforms.
73199
73200 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73203         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73204         unwanted sign propagation, e.g., on hosts with 64-bit int.
73205         There still are some problems with reeelly weird theoretical hosts
73206         (e.g., 33-bit int) but it's not worth worrying about now.
73207         * lib/sha1.c (rol): Likewise.
73208         (K1, K2, K3, K4): Remove unnecessary L suffix.
73209
73210 2006-05-10  Bruno Haible  <bruno@clisp.org>
73211
73212         * lib/des.c: Cast to avoid warnings.
73213
73214 2006-05-09  Bruno Haible  <bruno@clisp.org>
73215
73216         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73217         (Depends-on): Depend also on xsize, stdarg.
73218         (configure.ac): Add gl_XVASPRINTF.
73219
73220 2006-05-09  Bruno Haible  <bruno@clisp.org>
73221
73222         * m4/xvasprintf.m4: New file.
73223
73224 2006-05-09  Bruno Haible  <bruno@clisp.org>
73225
73226         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73227         (EOVERFLOW): Define fallback value.
73228         (xstrcat): New function.
73229         (xvasprintf): Recognize the special case of a string concatenation.
73230
73231 2006-05-08  Eric Blake  <ebb9@byu.net>
73232
73233         * gnulib-tool (func_version): Base copyright year on CVS date.
73234         (func_emit_copyright_notice): New function.
73235         (func_emit_lib_Makefile_am): Use it.
73236         (func_emit_tests_Makefile_am): Likewise.
73237         (func_import): Likewise.
73238
73239 2006-05-08  Bruno Haible  <bruno@clisp.org>
73240
73241         * modules/stdarg: New file.
73242         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73243
73244 2006-05-08  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/stdarg.m4: New file, from GNU gettext.
73247
73248 2006-05-08  Bruno Haible  <bruno@clisp.org>
73249
73250         * config/srclist.txt (build-aux/config.rpath): different from latest
73251         release.
73252
73253 2006-05-08  Bruno Haible  <bruno@clisp.org>
73254
73255         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73256
73257 2006-05-05  Jim Meyering  <jim@meyering.net>
73258
73259         * m4/warning.m4: New file, derived from bison's file by the same name.
73260
73261 2006-05-03  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/stdint_.h: Shorter URL.
73264         * lib/inttypes.h: Likewise.
73265
73266 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73269
73270 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * lib/verify.h: Document the internals better.  Most of this change
73273         was written by Bruno Haible.
73274
73275 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * doc/verify.texi: New file, partly based on a proposal by
73278         Bruno Haible.
73279
73280 2006-05-02  Bruno Haible  <bruno@clisp.org>
73281
73282         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73283         test from here...
73284         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73285
73286 2006-04-29  Bruno Haible  <bruno@clisp.org>
73287
73288         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73289         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73290
73291 2006-04-29  Bruno Haible  <bruno@clisp.org>
73292
73293         * gnulib-tool: Make --update option actually work.
73294
73295 2006-04-29  Bruno Haible  <bruno@clisp.org>
73296
73297         * doc/gcd.texi: New file.
73298         * doc/gnulib.texi: Include it.
73299
73300 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73301
73302         * lib/getdate.y (get_date): When adding relative date, start with the
73303         initial time, not with the result of the first mktime call.
73304
73305 2006-04-25  Bruno Haible  <bruno@clisp.org>
73306
73307         * gnulib-tool (func_import): Output the include directives in three
73308         blocks, sorted separately.
73309         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73310
73311 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73314         to define main with arguments, for C++.  Reported by Eric Blake.
73315         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73316         Prefer 'int main ()' to 'int main (void)', for C++.
73317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73318         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73319         for 'main', for C99 and C++.
73320
73321 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73324         Don't assume that exit status -1 is valid.
73325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73326         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73327         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73328         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73329         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73330         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73331         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73332         functions can be used without declaring them, or that you can
73333         exit with status -1.
73334         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73335
73336 2006-04-24  Karl Berry  <karl@gnu.org>
73337
73338         * config/srclist.txt (longdouble.m4): sync lost.
73339
73340 2006-04-24  Eric Blake  <ebb9@byu.net>
73341
73342         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73343
73344 2006-04-24  Bruno Haible  <bruno@clisp.org>
73345
73346         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73347         poll() implementation in AIX.
73348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73349
73350 2006-04-24  Bruno Haible  <bruno@clisp.org>
73351
73352         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73353         assigned exactly once.
73354
73355 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73356             Bruno Haible  <bruno@clisp.org>
73357
73358         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73359         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73360         for AM_CPPFLAGS.
73361
73362 2006-04-23  Bruno Haible  <bruno@clisp.org>
73363
73364         * modules/copy-file: Depend on unistd.
73365         * modules/execute: Likewise.
73366         * modules/fatal-signal: Likewise.
73367         * modules/findprog: Likewise.
73368         * modules/mkdtemp : Likewise.
73369         * modules/pipe: Likewise.
73370         * modules/wait-process: Likewise.
73371
73372 2006-04-23  Bruno Haible  <bruno@clisp.org>
73373
73374         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73375         condition was already detected.
73376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73377
73378 2006-04-23  Bruno Haible  <bruno@clisp.org>
73379
73380         * lib/copy-file.c: Include <unistd.h> unconditionally.
73381         * lib/execute.c: Likewise.
73382         * lib/fatal-signal.c: Likewise.
73383         * lib/findprog.c: Likewise.
73384         * lib/mkdtemp.c: Likewise.
73385         * lib/pipe.h: Likewise.
73386         * lib/pipe.c: Likewise.
73387         * lib/wait-process.h: Likewise.
73388
73389 2006-04-23  Bruno Haible  <bruno@clisp.org>
73390
73391         * gnulib-tool (func_usage): Fix --import description. Document
73392         --update.
73393         (func_import): Create temporary file in a temporary directory, if
73394         --dry-run is specified. Silence errors from 'grep' when there are no
73395         m4 files in $m4dir.
73396         (func_create_testdir): Silence errors from 'grep' when there are no
73397         m4 files in $m4dir.
73398         Reported by Karl Berry <karl@freefriends.org>.
73399
73400 2006-04-20  Bruno Haible  <bruno@clisp.org>
73401
73402         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73403         one argument, so that the code will be portable to Autoconf 2.60.
73404         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73405         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73406         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73407
73408 2006-04-19  Derek Price  <derek@ximbiot.com>
73409             Eric Blake  <ebb9@byu.net>
73410
73411         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73412         rather than "/full/path.h".  Update comment to match.  Shorten &
73413         generalize m4_translit call via AS_TR_CPP.
73414
73415 2006-04-19  Derek Price  <derek@ximbiot.com>
73416             Eric Blake  <ebb9@byu.net>
73417
73418         * lib/inttypes.h: Correct grammar in comment.
73419
73420 2006-04-18  Derek Price  <derek@ximbiot.com>
73421             Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * modules/inttypes: New file.
73424         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73425
73426 2006-04-18  Derek Price  <derek@ximbiot.com>
73427             Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73430         New files.
73431
73432 2006-04-18  Derek Price  <derek@ximbiot.com>
73433             Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * lib/inttypes.h: New file.
73436         * lib/strtoimax.c: Assume <inttypes.h>.
73437
73438 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73441         isn't mounted.  Problem reported by Kir Kolyshkin.
73442
73443 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73444
73445         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73446         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73447         Derek R. Price.
73448         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73449         implementation.
73450
73451 2006-04-12  Eric Blake  <ebb9@byu.net>
73452
73453         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73454         is now done automatically by the corresponding Autoconf macro.
73455
73456 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73457
73458         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73459         time_r.h.
73460
73461 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         Merge regex changes from libc, removing some of our
73464         POSIX-conformance changes that were rejected and redoing them in a
73465         less-intrusive way.
73466
73467         * lib/regcomp.c (re_compile_internal, init_dfa):
73468         Length arg is now size_t, not Idx.  All uses changed.
73469         (peek_token): Forward decl now says internal_function.
73470         (__re_error_msgid, __re_error_msgid_idx):
73471         Now static rather than extern with attribute_hidden.
73472         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73473         For some reason libc prefers K&R style defns for external functions.
73474         (regerror) [!defined _LIBC]: Likewise.
73475         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73476         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73477         (build_range_exp, build_collating_symbol):
73478         Use K&R-style defn.
73479         (re_compile_fastmap): Use '\0' to memset, not 0.
73480         (utf8_sb_map): Make the calculations more obvious.
73481         (init_dfa, parse_bracket_exp, build_charclass_op):
73482         Call calloc and cast result, as glibc does.
73483         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73484         (build_range_exp, build_collating_symbol):
73485         Now internal functions.
73486
73487         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73488
73489         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73490         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73491         Don't depend on VMS; depend on __VMS instead, for POSIX
73492         namespace cleanness.
73493         (regoff_t): Define to ssize_t, not long int.
73494
73495         Remove the REG_ macros named below.  Instead, make the old names
73496         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73497         __USE_GNU_REGEX.
73498         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73499         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73500         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73501         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73502         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73503         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73504         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73505         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73506         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73507         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73508         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73509         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73510         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73511         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73512         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73513         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73514         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73515         (REG_NREGS):
73516         Remove.  All uses replaced by the old RE_* names.
73517         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73518         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73519         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73520         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73521         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73522         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73523         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73524         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73525         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73526         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73527         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73528         Don't bother having these macros be independent of each others'
73529         values, since they no longer exist in the POSIX name space.
73530
73531         Rename the following member names back to their old names,
73532         unless !__USE_GNU_REGEX.  All uses changed back.
73533         (buffer): Renamed from re_buffer.
73534         (allocated): Renamed from re_allocated.
73535         (used): Renamed from re_used.
73536         (syntax): Renamed from re_syntax.
73537         (fastmap): Renamed from re_fastmap.
73538         (translate): Renamed from re_translate.
73539         (can_be_null): Renamed from re_can_be_null.
73540         (regs_allocated): Renamed from re_regs_allocated.
73541         (fastmap_accurate): Renamed from re_fastmap_accurate.
73542         (no_sub): Renamed from re_no_sub.
73543         (not_bol): Renamed from re_not_bol.
73544         (not_eol): Renamed from re_not_eol.
73545         (newline_anchor): Renamed from re_newline_anchor.
73546         (num_regs): Renamed from rm_num_regs.
73547         (start): Renamed from rm_start.
73548         (end): Renamed from rm_end.
73549
73550         (free_state): Move up a bit.
73551
73552         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73553         #define to be empty.
73554         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73555         when that is what is intended.
73556         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73557         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73558         (MAX): New macro.
73559         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73560         All uses changed back to re_malloc, etc.  It's now the caller's
73561         responsibility to check for overflow; all callers changed.
73562         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73563         (re_x2nrealloc): Remove.
73564         (free_state): Remove decl.
73565
73566         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73567         (re_set_registers, re_exec):
73568         Use K&R-style defn.
73569
73570         2006-01-31  Roland McGrath  <roland@redhat.com>
73571
73572         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73573         Reported by Mike Frysinger <vapier@gentoo.org>.
73574
73575         2006-01-15  Andreas Jaeger  <aj@suse.de>
73576
73577         [BZ #1950]
73578         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73579         build_wcs_upper_buffer change.
73580         (build_wcs_upper_buffer): Change return type.
73581
73582         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73583
73584         * lib/regex_internal.h: Include <stdint.h> if available.
73585
73586         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73587
73588         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73589
73590         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73591
73592         * lib/regcomp.c: Adjust for changed secondary hash function.
73593
73594         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73595
73596         * lib/regex.h: Pretty printing.
73597         Clean up namespace a bit.
73598
73599         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73600
73601         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73602         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73603
73604         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73605                     Ulrich Drepper  <drepper@redhat.com>
73606
73607         [BZ #1302]
73608         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73609         changed.
73610         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73611
73612         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73613
73614         [BZ #281]
73615         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73616         * lib/regcomp.c: Remove unnecessary uses of
73617         unsigned RE_TRANSLATE_TYPE.
73618         * lib/regex_internal.h: Likewise.
73619         * lib/regex_internal.c: Likewise.
73620         * lib/regexec.c: Likewise.
73621         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73622
73623         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73624
73625         * lib/regexec.c (find_recover_state): Remove unnecessary
73626         initialization.
73627         (transit_state_bkref): Make DFA a const pointer.
73628         (get_subexp): Likewise.
73629         (check_arrival): Likewise.
73630         (update_cur_sifted_state): Likewise.
73631         (re_search_internal): Likewise.
73632         (prune_impossible_nodes): Likewise.
73633         (acquire_init_state_context): Likewise.
73634         (proceed_next_node): Likewise.
73635         (set_regs): Likewise.
73636         (free_fail_stack_return): Likewise.
73637         (check_arrival_expand_ecl): Mark DFA parameter as const.
73638         (check_arrival_expand_ecl_sub): Likewise.
73639         (check_subexp_limits): Likewise.
73640         (sub_epsilon_src_nodes):  Likewise.
73641         (add_epsilon_src_nodes):  Likewise.
73642         (merge_state_array): Likewise.
73643         (update_regs): Likewise.
73644         (build_trtable): Likewise.
73645         (sift_states_backward): Mark MCTX parameter as const.
73646         (build_sifted_states): Likewise.
73647         (update_cur_sifted_state): Likewise.
73648         (sift_states_mkref): Likewise.
73649         (check_arrival_expand_ecl): Mark eclosure as const.
73650         (check_dst_limits_calc_pos_1): Likewise.
73651         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73652         pointer.
73653
73654         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73655
73656         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73657         (transit_state_sb): Likewise.
73658         (transit_state_mb): Likewise.
73659         (sift_states_iter_mb): Likewise.
73660         (check_arrival_add_next_nodes): Likewise.
73661         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73662         [_LIBC] (re_search_2_stub): Use mempcpy.
73663
73664         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73665         mbrtowc for very simple UTF-8 case.
73666
73667         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73668         a pointer-to-const.
73669         (re_acquire_state_context): Likewise.
73670         * lib/regex_internal.h: Adjust prototypes.
73671
73672         * lib/regex.c: Prevent using C++ compilers.
73673
73674         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73675         (re_acquire_state_context): Likewise.
73676
73677 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73678
73679         * modules/regex (Depends-on): Add ssize_t.
73680
73681 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73684         translation table.
73685
73686 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73689
73690 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73691             Bruno Haible  <bruno@clisp.org>
73692
73693         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73694         <sys/types.h> and <inttypes.h>.
73695
73696 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73697
73698         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73699         `__error_t_defined', so argp.h will not typedef the former.
73700
73701 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73704         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73705         glibc names.  Even if glibc is changed to conform to POSIX, the
73706         traditional names will be available anyway, since regex depends on
73707         the extensions module.  Also, fix a longstanding typo in the
73708         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73709         reported by Emanuele Giaquinta.  Also, change sense of cached
73710         variable, so that the message makes sense.
73711
73712 2006-03-24  Simon Josefsson  <jas@extundo.com>
73713
73714         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73715         including some doc fixes.
73716         (base64_encode_alloc): Fix +1 bug on allocation failures.
73717
73718 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73719
73720         * lib/base64.c (base64_encode): Do not read past end of array with
73721         unsanitized input on systems with CHAR_BIT > 8.
73722
73723 2006-03-24  Eric Blake  <ebb9@byu.net>
73724
73725         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73726
73727 2006-03-22  Karl Berry  <karl@gnu.org>
73728
73729         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73730         * config/srclistvars.sh (COREUTILS): new var.
73731
73732 2006-03-17  Jim Meyering  <jim@meyering.net>
73733
73734         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73735         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73736
73737 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73740         no longer needs it.  Instead, check that regoff_t is as least
73741         as wide as ptrdiff_t.
73742
73743         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73744         so that our regex.h stays compatible with the installed regex.
73745         This is helpful for installers who configure --without-included-regex.
73746         Problem reported by Emanuele Giaquinta.
73747
73748 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73751         Typedef to long int, not to off_, as POSIX will likely change
73752         in that direction.
73753
73754 2006-03-15  Eric Blake  <ebb9@byu.net>
73755
73756         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73757
73758 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73759
73760         * lib/argp-help.c (validate_uparams): Fix typo
73761         * lib/argp-parse.c (argp_default_options): Consistently begin help
73762         messages with a lowercase letter.
73763
73764 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73767         overrun buffers and shouldn't be used (much as gets shouldn't be
73768         used).
73769         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73770
73771 2006-03-08  Simon Josefsson  <jas@extundo.com>
73772
73773         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73774         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73775
73776 2006-03-08  Simon Josefsson  <jas@extundo.com>
73777
73778         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73779         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73780
73781 2006-03-08  Simon Josefsson  <jas@extundo.com>
73782
73783         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73784         signal that configure disabled the device.
73785
73786 2006-03-08  Simon Josefsson  <jas@extundo.com>
73787
73788         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73789         languages.
73790
73791 2006-03-07  Simon Josefsson  <jas@extundo.com>
73792
73793         * modules/getopt (Depends-on): Add unistd.
73794
73795         * modules/unistd: New file.
73796
73797 2006-03-07  Simon Josefsson  <jas@extundo.com>
73798
73799         * modules/gc-random: New file.
73800
73801 2006-03-07  Simon Josefsson  <jas@extundo.com>
73802
73803         * m4/unistd_h.m4: New file.
73804
73805 2006-03-07  Simon Josefsson  <jas@extundo.com>
73806
73807         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73808         test to be side-effect free by storing the result in the cache
73809         variable gl_cv_lib_readline, and moving the assignment of
73810         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73811         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73812
73813 2006-03-07  Simon Josefsson  <jas@extundo.com>
73814
73815         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73816         error on missing devices (the functions will return an error).
73817
73818         * m4/gc.m4: Move random stuff to gc-random.m4
73819
73820 2006-03-07  Simon Josefsson  <jas@extundo.com>
73821
73822         * lib/unistd_.h: New file.
73823
73824 2006-03-07  Simon Josefsson  <jas@extundo.com>
73825
73826         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73827
73828 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73831         Problem reported by Juan Manuel Guerrero.
73832
73833 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73836         the unistd module.
73837         * lib/getlogin_r.c: Likewise.
73838         * lib/getlogin_r.h: Likewise.
73839         * lib/glob.c: Likewise.
73840         * lib/pagealign_alloc.c: Likewise.
73841         * lib/unistd_.h: Remove; no longer needed.
73842
73843 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73844
73845         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73846         Add unistd.
73847         * modules/c-stack (Depends-on): Add unistd.
73848         * modules/getlogin_r: Likewise.
73849         * modules/glob: Likewise.
73850         * modules/pagealign_alloc: Likewise.
73851         * modules/unistd (Files): Remove lib/unistd_.h.
73852         (EXTRA_DIST): Remove.
73853         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73854         need unistd_.h.
73855         (MOSTLYCLEANFILES): Remove unistd.h-t.
73856
73857 2006-03-03  Simon Josefsson  <jas@extundo.com>
73858
73859         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73860
73861 2006-03-03  Simon Josefsson  <jas@extundo.com>
73862
73863         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73864         libidn and bison.
73865
73866 2006-03-03  Simon Josefsson  <jas@extundo.com>
73867
73868         * build-aux/maint.mk: Add indent target.
73869
73870 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73871
73872         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73873         our replacement poll.h in any case, to avoid a differing
73874         declaration from a system header.  Seen on AIX.
73875
73876 2006-03-01  Simon Josefsson  <jas@extundo.com>
73877
73878         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73879         <kasal@ucw.cz>.
73880
73881 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * modules/gettime (Depends-on): Add extensions module.
73884         * modules/nanosleep (Depends-on): Likewise.
73885         * modules/settime (Depends-on): Likewise.
73886
73887 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73890         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73891         pedantically.
73892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73893         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73894
73895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73896         not "==".  Reported by Ralf Wildenhues.
73897
73898 2006-03-01  Karl Berry  <karl@gnu.org>
73899
73900         * doc/Copyright/request-*: new files, synced from gnuorg.
73901
73902 2006-03-01  Karl Berry  <karl@gnu.org>
73903
73904         * config/srclist.txt (Copyright/*): new entries.
73905
73906 2006-02-28  Simon Josefsson  <jas@extundo.com>
73907
73908         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73909
73910 2006-02-27  Simon Josefsson  <jas@extundo.com>
73911
73912         * lib/base64.h: Indent #define's.  From Jim Meyering
73913         <jim@meyering.net>.
73914
73915 2006-02-27  Jim Meyering  <jim@meyering.net>
73916
73917         Revert the change of 2006-02-24, so these files can continue
73918         to be sync'd from gettext.
73919         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73920         of `config.h'.
73921
73922 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * modules/intprops: New file.
73925         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73926         Add intprops.
73927         * modules/getloadavg (Files): Remove lib/intprops.h.
73928         (Depends-on): Add intprops.
73929         * modules/human: Likewise.
73930         * modules/inttostr: Likewise.
73931         * modules/openat: Likewise.
73932         * modules/sig2str: Likewise.
73933         * modules/userspec: Likewise.
73934         * modules/utimecmp: Likewise.
73935         * modules/xnanosleep: Likewise.
73936         * modules/xstrtol: Likewise.
73937
73938 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73939
73940         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73941         * modules/lock-tests (TESTS): Use $(EXEEXT).
73942         * modules/tls-tests: Likewise.
73943         * modules/argp-tests: Likewise.
73944         (check_PROGRAMS): New var, replacing...
73945         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73946
73947 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73948
73949         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73950         `config.h'.
73951
73952 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73955
73956 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73957
73958         Sync from coreutils.
73959         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73960         gl_CHDIR_SAFER.
73961
73962 2006-02-22  Jim Meyering  <jim@meyering.net>
73963
73964         Sync from coreutils.
73965         * m4/chdir-safer.m4: New file.
73966
73967 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73970         AT_FDCWD exceeds INT_MAX.
73971         * lib/openat.h (AT_FDCWD): Likewise.
73972
73973 2006-02-17  Eric Blake  <address@hidden>
73974
73975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73976
73977 2006-02-16  Simon Josefsson  <jas@extundo.com>
73978
73979         * modules/getaddrinfo (Depends-on): Add sys_socket.
73980
73981 2006-02-15  Simon Josefsson  <jas@extundo.com>
73982
73983         * build-aux/maint.mk: Add dsyntax-check rule.
73984
73985 2006-02-15  Eric Blake  <ebb9@byu.net>
73986
73987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73988         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73989         'present but cannot compile' warnings on cygwin.
73990         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73991         use ws2tcpip.h if sys/socket.h works.
73992         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73993         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73994
73995 2006-02-14  Simon Josefsson  <jas@extundo.com>
73996
73997         * modules/maintainer-makefile (Files): Rename.
73998
73999         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74000         and (the local) Makefile.cfg to maint-cfg.mk.
74001
74002         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74003         to the latter.
74004
74005         * modules/maintainer-makefile: New module.
74006
74007         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74008         severaly stripped to make it possible to build it up from scratch
74009         with reliable tests.
74010
74011         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74012         fixes to permit overriding the default actions when configure and
74013         makefile are not available.
74014
74015 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74016
74017         Sync from coreutils.
74018         * modules/lstat (Depends-on): Don't depend on xalloc.
74019         (License): Change from GPL to LGPL, since this is now simply a
74020         replacement for a libc function.
74021
74022 2006-02-14  Jim Meyering  <jim@meyering.net>
74023
74024         Sync from coreutils.
74025
74026         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74027         failure on deficient systems, and simplify gnulib lgpl dependencies.
74028         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74029         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74030
74031         * lib/xalloc-die.c: Remove unused definition of N_.
74032
74033 2006-02-14  Jim Meyering  <jim@meyering.net>
74034
74035         Sync from coreutils.
74036         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74037         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74038         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74039         double-quote uses of that variable, to accommodate the rare case in
74040         which getmntent is available in none of the libraries checked.  This
74041         happens at least on FreeBSD 5.0.
74042
74043 2006-02-13  Simon Josefsson  <jas@extundo.com>
74044
74045         * gnulib-tool (Usage): Fix --import, from
74046         karl@freefriends.org (Karl Berry).
74047
74048 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74049
74050         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74051
74052 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74053
74054         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74055         "autoupdate" on 2005-12-12.
74056
74057 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         * modules/closeout (Depends-on): Remove atexit.
74060
74061 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74064         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74065
74066 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74069         __EXTENSIONS__ if this causes compilation to fail.  Problem
74070         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74071         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74072
74073 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74074
74075         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74076         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74077         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74078         All uses changed.
74079
74080 2006-01-26  Simon Josefsson  <jas@extundo.com>
74081
74082         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74083         prototype is visible on mingw32.
74084
74085         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74086         for mingw32.
74087
74088         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74089         mingw32).
74090
74091 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74092
74093         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74094         attempt to open for write; this always fails, at least on POSIX
74095         hosts.  This reinstates the 2006-01-09 change, which was
74096         inadvertently removed.
74097
74098 2006-01-26  Bruno Haible  <bruno@clisp.org>
74099
74100         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74101         Reported by Paul Eggert.
74102
74103 2006-01-26  Bruno Haible  <bruno@clisp.org>
74104             Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * lib/stdbool_.h (_Bool)
74107         [(! (defined __cplusplus || defined __BEOS__)
74108           && !defined __GNUC__
74109           && !(defined __HP_cc || defined __xlc__
74110                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74111                || defined __sgi))]:
74112         #define to signed char in these cases too; this simplifies
74113         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74114         etc., separately) and makes it more conservative.
74115
74116 2006-01-25  Simon Josefsson  <jas@extundo.com>
74117
74118         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74119         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74120         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74121
74122 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74123
74124         * lib/argp-namefrob.h: Bugfix. Remove stray #
74125
74126 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74129         so that we test the test.
74130         Check for yet another HP-UX cc bug involving *bool |= bool.
74131
74132 2006-01-25  Karl Berry  <karl@gnu.org>
74133
74134         * config/srclist.txt (vasnprintf.c): sync lost.
74135
74136 2006-01-25  Jim Meyering  <jim@meyering.net>
74137
74138         Sync from the stable (b5) branch of coreutils:
74139
74140         * lib/fts.c (fts_children): Don't let close() clobber errno from
74141         failed fchdir().
74142
74143         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74144         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74145         a dangling symlink.  That can also happen at least for ELOOP.
74146         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74147         FYI, this bug predates the inclusion of fts.c in coreutils.
74148
74149         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74150         in their own block, so pre-c99 compilers don't object.
74151
74152         Avoid the double-free (first in fts_read, second in fts_close) that
74153         would occur when an `active' directory is made inaccessible (e.g.,
74154         via chmod a-x) during a traversal.
74155         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74156         before returning.  Reproduce this failure by
74157         mkdir -p a/b; cd a; chmod a-x . b
74158         Reported by Stavros Passas.
74159
74160 2006-01-25  Jim Meyering  <jim@meyering.net>
74161
74162         * lib/fileblocks.c: Remove more useless parentheses.
74163         * lib/readutmp.h: Likewise.
74164
74165 2006-01-25  Bruno Haible  <bruno@clisp.org>
74166
74167         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74168         warnings.
74169         Reported by Paul Eggert.
74170
74171 2006-01-25  Bruno Haible  <bruno@clisp.org>
74172
74173         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74174         rid of a trap command. For Solaris sh.
74175         Reported by Mark D. Baushke <mdb@gnu.org>.
74176
74177 2006-01-24  Simon Josefsson  <jas@extundo.com>
74178
74179         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74180         Bruno.
74181
74182 2006-01-24  Karl Berry  <karl@gnu.org>
74183
74184         * config/srclist.txt (argp-namefrob.h): sync lost.
74185
74186 2006-01-24  Jim Meyering  <jim@meyering.net>
74187
74188         * modules/openat (Files): Add lib/intprops.h.
74189         From Mark D. Baushke.
74190
74191 2006-01-24  Jim Meyering  <jim@meyering.net>
74192
74193         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74194         Reported by Mark D. Baushke.
74195
74196 2006-01-24  Jim Meyering  <jim@meyering.net>
74197
74198         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74199
74200 2006-01-24  Bruno Haible  <bruno@clisp.org>
74201
74202         * modules/strnlen (Maintainer): Change from glibc to all.
74203
74204 2006-01-24  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74207         Patch by Paul Eggert.
74208
74209 2006-01-24  Bruno Haible  <bruno@clisp.org>
74210
74211         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74212         already has it.
74213         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74214         2005-11-26.
74215
74216         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74217         'signed char' to avoid problems with the built-in _Bool type.
74218         Reported by Paul Eggert on 2005-11-26.
74219
74220 2006-01-24  Bruno Haible  <bruno@clisp.org>
74221
74222         * gnulib-tool (func_import): Avoid constructing complicated sed
74223         expressions inside backquote.
74224         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74225
74226 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74227
74228         These changes imported from libc.
74229         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74230         test and two separate function calls.
74231         * lib/strndup.c (__strndup): Add libc_hidden_def.
74232
74233 2006-01-23  Simon Josefsson  <jas@extundo.com>
74234
74235         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74236         Remove the test_*_SOURCES variable: automake infers it by default.
74237         * modules/tls-tests: Likewise.
74238
74239 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         Work around porting bugs reported by Dieter in
74242         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74243         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74244         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74245         Include "getopt.h" first, to check interface.
74246         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74247         !HAVE_DECL_GETENV.
74248         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74249         (__strndup): Revert to K&R-style function dfns, the glibc style.
74250         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74251         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74252         Include strnlen.h first, to get prototype properly.
74253         (strnlen): Renamed from __strnlen.
74254         Remove weak alias.
74255
74256 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74259
74260 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74261
74262         * config/srclist.txt: Adjust to reflect glibc reorganization.
74263         This affects only comments.
74264
74265 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74266
74267          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74268          Reported by Bruce Korb <bkorb@gnu.org>.
74269
74270 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74273         to pacify gcc -Wswitch-default.
74274
74275 2006-01-22  Bruno Haible  <bruno@clisp.org>
74276
74277         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74278         temporary buffer for sprintf, take into account the precision also
74279         for 'd', 'i', 'u', 'o', 'x', 'X'.
74280
74281 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74282
74283         * modules/argp-tests: New module
74284         * tests/test-argp.c: New file
74285         * tests/test-argp-2.sh: New file
74286
74287 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74288
74289         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74290         (__argp_base_name): Removed
74291         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74292         typo.
74293         (__argp_base_name): Provide macro definition or extern declaration
74294         depending on the configuration
74295
74296 2006-01-20  Simon Josefsson  <jas@extundo.com>
74297
74298         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74299
74300 2006-01-20  Simon Josefsson  <jas@extundo.com>
74301
74302         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74303
74304 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74307         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74308         Suggested by Bruno Haible.
74309
74310 2006-01-20  Karl Berry  <karl@gnu.org>
74311
74312         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74313         until changes propagate, I guess.
74314
74315 2006-01-19  Simon Josefsson  <jas@extundo.com>
74316
74317         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74318
74319 2006-01-19  Simon Josefsson  <jas@extundo.com>
74320
74321         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74322
74323 2006-01-19  Simon Josefsson  <jas@extundo.com>
74324
74325         * gnulib-tool: Set check_PROGRAMS.
74326
74327         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74328         modules/des-tests, modules/gc-arcfour-tests,
74329         modules/gc-arctwo-tests, modules/gc-des-tests,
74330         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74331         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74332         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74333         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74334         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74335         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74336         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74337         test_*_SOURCES.
74338
74339 2006-01-18  Simon Josefsson  <jas@extundo.com>
74340
74341         * modules/socklen (Depends-on): Depend on sys_socket.
74342
74343 2006-01-18  Simon Josefsson  <jas@extundo.com>
74344
74345         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74346         modules/des-tests, modules/gc-arcfour-tests,
74347         modules/gc-arctwo-tests, modules/gc-des-tests,
74348         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74349         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74350         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74351         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74352         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74353         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74354         $(EXEEXT) to automake TESTS variable, for mingw32.
74355
74356 2006-01-17  Simon Josefsson  <jas@extundo.com>
74357
74358         * modules/socklen (Include): Need sys/socket.h.
74359
74360 2006-01-17  Bruno Haible  <bruno@clisp.org>
74361
74362         * modules/ssize_t (Include): Add <sys/types.h>.
74363
74364 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74367         it's not portable and it doesn't work with cross-compiles.
74368         Problem reported by Bruno Haible.  Fix missing-$ typo in
74369         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74370         -zignore from being used with Sun's C compiler.
74371
74372 2006-01-12  Simon Josefsson  <jas@extundo.com>
74373
74374         * lib/base64.c: Fix warning, reported by Bruno Haible
74375         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74376
74377 2006-01-12  Bruno Haible  <bruno@clisp.org>
74378
74379         * modules/ldd: New file.
74380         * build-aux/ldd.sh.in: New file.
74381         * MODULES.html.sh (Support for building libraries and executables): Add
74382         ldd.
74383
74384 2006-01-12  Bruno Haible  <bruno@clisp.org>
74385
74386         * m4/ldd.m4: New file.
74387
74388 2006-01-12  Bruno Haible  <bruno@clisp.org>
74389
74390         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74391         endless loop while replacing $auxdir with build-aux.
74392
74393 2006-01-11  Simon Josefsson  <jas@extundo.com>
74394
74395         * lib/stdint_.h (SIZE_MAX): Add missing (.
74396
74397 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         Sync from coreutils.
74400         * lib/md5.c: Fix commentary typos.
74401         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74402         * lib/md5.h (__attribute__): Remove; unused.
74403         * lib/sha1.c: Fix commentary to match md5 better.
74404         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74405         so that we don't need to worry about alignment.  All uses changed.
74406         This merges the 2005-10-28 md5 change into sha1.
74407
74408 2006-01-11  Jim Meyering  <jim@meyering.net>
74409
74410         Sync from coreutils.
74411         * lib/md5.c (OP): Fix spacing.
74412
74413 2006-01-11  Bruno Haible  <bruno@clisp.org>
74414
74415         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74416         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74417         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74418
74419 2006-01-11  Bruno Haible  <bruno@clisp.org>
74420
74421         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74422         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74423         the "early" section as well.
74424
74425 2006-01-11  Bruno Haible  <bruno@clisp.org>
74426
74427         Avoid "ar: no archive members specified" error on MacOS X.
74428         * gnulib-tool (func_modules_add_dummy): New function.
74429         (func_import, func_create_testdir): Invoke it.
74430
74431 2006-01-11  Bruno Haible  <bruno@clisp.org>
74432
74433         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74434         with $auxdir in AC_CONFIG_FILES statements.
74435
74436 2006-01-11  Bruno Haible  <bruno@clisp.org>
74437
74438         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74439         Initialize also noinst_HEADERS to empty.
74440
74441 2006-01-11  Bruno Haible  <bruno@clisp.org>
74442
74443         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74444         variables.
74445         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74446         autoreconf.
74447
74448 2006-01-11  Bruno Haible  <bruno@clisp.org>
74449
74450         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74451         overridable by the user.
74452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74453
74454 2006-01-10  Simon Josefsson  <jas@extundo.com>
74455
74456         * modules/sys_socket: New file.
74457
74458 2006-01-10  Simon Josefsson  <jas@extundo.com>
74459
74460         * m4/sys_socket_h.m4: New file.
74461
74462 2006-01-10  Simon Josefsson  <jas@extundo.com>
74463
74464         * lib/socket_.h: New file.
74465
74466 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74467
74468         * modules/readutmp (Maintainer): Add myself.
74469
74470 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74473         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74474         People who are still concerned with buggy memcmp implementations
74475         can invoke gl_FUNC_MEMCMP themselves.
74476
74477 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * lib/regex_internal.h (BITSET_WORD_BITS):
74480         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74481         preprocessor mishandles large unsigned values as if they were signed.
74482         Problem reported by Claudio Fontana in
74483         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74484
74485 2006-01-10  Jim Meyering  <jim@meyering.net>
74486
74487         Avoid the double-free (first in fts_read, second in fts_close) that
74488         would occur when an `active' directory is made inaccessible (e.g.,
74489         via chmod a-x) during a traversal.
74490         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74491         before returning.  Reproduce this failure by
74492         mkdir -p a/b; cd a; chmod a-x . b
74493         Reported by Stavros Passas.
74494
74495         Sync from coreutils.
74496         * lib/sha1.c: Tweak grammar in a comment.
74497
74498 2006-01-10  Jim Meyering  <jim@meyering.net>
74499
74500         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74501         Patch by Joerg Sonnenberger.
74502
74503 2006-01-10  Bruno Haible  <bruno@clisp.org>
74504
74505         * modules/readutmp: Depend on module free.
74506         * modules/strtok_r: Depend on module restrict.
74507
74508 2006-01-10  Bruno Haible  <bruno@clisp.org>
74509
74510         * modules/gettext (configure.ac): Add an invocation of
74511         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74512
74513 2006-01-10  Bruno Haible  <bruno@clisp.org>
74514
74515         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74516         Reported by Werner Lemberg <wl@gnu.org>.
74517
74518 2006-01-10  Bruno Haible  <bruno@clisp.org>
74519
74520         * lib/localcharset.c: Update from GNU gettext.
74521
74522 2006-01-10  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/argp.h (__const): Remove macro. Use const instead.
74525         * lib/argp-fmtstream.h (__const): Likewise.
74526         * lib/glob_.h (__const): Remove macro.
74527         * lib/glob-libc.h: Use const instead of __const.
74528
74529 2006-01-10  Bruno Haible  <bruno@clisp.org>
74530
74531         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74532         variable.
74533         Needed to avoid an automake error regarding the 'gettext' module.
74534
74535 2006-01-09  Simon Josefsson  <jas@extundo.com>
74536
74537         * modules/inet_ntop (Depends-on): Add restrict.
74538
74539 2006-01-09  Simon Josefsson  <jas@extundo.com>
74540
74541         * modules/gc-rijndael-tests (License): Put under LGPL.
74542
74543         * modules/gc-des-tests (License): Likewise.
74544
74545         * modules/gc-arcfour-tests (License): Likewise.
74546
74547         * modules/gc-arctwo-tests (License): Likewise.
74548
74549         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74550
74551         * modules/gc-hmac-sha1-tests (Files): Likewise.
74552
74553         * modules/gc-hmac-md5-tests (License): Likewise.
74554
74555         * modules/gc-sha1-tests (License): Likewise.
74556
74557         * modules/gc-md5-tests (License): Likewise.
74558
74559         * modules/gc-md4-tests (License): Likewise.
74560
74561         * modules/gc-md2-tests (License): Likewise.
74562
74563         * modules/gc-tests (License): Likewise.
74564
74565         * modules/des-tests (License): Likewise.
74566
74567         * modules/md4-tests (License): Likewise.
74568
74569         * modules/md2-tests (License): Likewise.
74570
74571 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74572
74573         Sync from coreutils:
74574
74575         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74576         * modules/lib-ignore: New file.
74577         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74578         chdir-safer.m4, lchmod.m4.
74579         * modules/openat: Add mkdirat.c, openat-priv.h.
74580
74581 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         Sync from coreutils.
74584         * m4/lib-ignore.m4: New file.
74585         * m4/lchmod.m4: New file.
74586
74587 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         Sync from coreutils.
74590         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74591         for write access: POSIX says that must fail.
74592         * lib/fts.c (diropen): Likewise.
74593         * lib/save-cwd.c (save_cwd): Likewise.
74594         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74595         well, for minor improvements on hosts that lack O_DIRECTORY.
74596         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74597         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74598         Fall back on chown if open failed with EACCES.
74599
74600         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74601         Report an error at compile-time if only a 1-second nominal clock
74602         resolution is found.
74603
74604         * lib/lchmod.h: New file.
74605         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74606         (make_dir_parents): Use lchown rather than chown, and
74607         lchmod rather than chmod.
74608
74609         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74610         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74611         "proc" reported by n0dalus.
74612
74613         * lib/mountlist.c: Include <limits.h>.
74614         (dev_from_mount_options)
74615         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74616         New function.  It no longer assumes "dev=" has the System V meaning
74617         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74618         (read_file_system_list)
74619         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74620         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74621         dev= in that case.
74622
74623         * lib/posixtm.h (PDS_PRE_2000): New macro.
74624         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74625         allow_century.  All usages changed.  Reject dates outside the range
74626         1969-1999 if PDS_PRE_2000 is used.
74627
74628 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         Sync from coreutils.
74631         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74632         (Time of day items): Mention the possibility of leap seconds.
74633         Problem reported by Dr. David Alan Gilbert.
74634
74635 2006-01-09  Jim Meyering  <jim@meyering.net>
74636
74637         Sync from coreutils.
74638
74639         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74640
74641         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74642
74643         * lib/modechange.c (mode_compile): Reject an invalid mode string
74644         that starts with an octal digit.  From Andreas Gruenbacher.
74645
74646         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74647         and dup to open_safer and dup_safer, respectively.
74648         (openat_permissive): Fix typo in comment.
74649
74650         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74651         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74652         (_): Remove; no longer needed.
74653         (openat): Renamed from rpl_openat; no need for rpl_openat
74654         since openat.h renames openat for us.
74655         Replace most of the body with a call to openat_permissive,
74656         to avoid duplicate code.
74657         Port to (probably hypothetical) environments were mode_t is
74658         wider than int.
74659         (openat_permissive): Require mode arg, so that we can check
74660         types better.  Put it just after flags.  Change cwd failure
74661         indicator from pointer-to-bool to pointer-to-errno-value.
74662         All callers changed.
74663         Invoke openat_save_fail and/or openat_restore_fail if
74664         cwd_errno is null, so that openat can call us.
74665         (openat_permissive, fdopendir, fstatat, unlinkat):
74666         Simplify errno handling to avoid some duplicate code,
74667         as it's OK to set errno on success.
74668         * lib/openat.h: Revamp code so that function macros depend on
74669         __OPENAT_PREFIX only, not also on AT_FDCWD.
74670         (openat_ro): Remove.  Caller changed to use openat_permissive.
74671         (openat_permissive): Now a macro, if not a function.
74672         (openat_restore_fail, openat_save_fail): Now always functions,
74673         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74674
74675         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74676         and openat.c.
74677         * lib/mkdirat.c: Include openat-priv.h.
74678         Remove definitions of macros defined therein.
74679         * lib/openat.c: Likewise.
74680
74681         * lib/mkdirat.c (mkdirat): New file and function.
74682         * lib/openat.h (mkdirat): Declare.
74683
74684         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74685
74686         * lib/openat.h (openat_permissive): Declare.
74687         (openat_ro): Define.
74688
74689         * lib/openat.c (EXPECTED_ERRNO): New macro.
74690         (openat_permissive): New function -- used in remove.c rewrite.
74691         (all functions): Set errno just before returning, only if there
74692         was an actual failure.
74693         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74694
74695         Emulate openat-family functions using Linux's procfs, if possible.
74696         Idea and some code based on Ulrich Drepper's glibc changes.
74697
74698         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74699         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74700         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74701         before falling back on save_cwd and restore_cwd.
74702         (fdopendir, fstatat, unlinkat): Likewise.
74703
74704         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74705         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74706
74707         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74708         as second argument to va_arg.  Otherwise, some versions of gcc
74709         warn that `if this code is reached, the program will abort'.
74710
74711 2006-01-09  Jim Meyering  <jim@meyering.net>
74712
74713         Sync from coreutils.
74714         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74715         Require openat-priv.h.
74716
74717 2006-01-09  Bruno Haible  <bruno@clisp.org>
74718
74719         * modules/strnlen (Include): Use strnlen.h.
74720
74721 2006-01-09  Bruno Haible  <bruno@clisp.org>
74722
74723         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74724
74725 2006-01-09  Bruno Haible  <bruno@clisp.org>
74726
74727         * lib/sysexit_.h (EX_OK): New macro.
74728         Suggested by Martin Lambers <marlam@marlam.de>.
74729
74730 2006-01-09  Bruno Haible  <bruno@clisp.org>
74731
74732         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74733         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74734
74735 2006-01-09  Bruno Haible  <bruno@clisp.org>
74736
74737         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74738         numbers.
74739
74740 2006-01-09  Bruno Haible  <bruno@clisp.org>
74741
74742         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74743         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74744         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74745         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74746
74747 2006-01-09  Bruno Haible  <bruno@clisp.org>
74748
74749         * build-aux/javacomp.sh.in: New file, moved from lib/.
74750         * modules/javacomp-script (Files): Update.
74751         (configure.ac): Add AC_CONFIG_FILES invocation.
74752         (EXTRA_DIST): Remove variable.
74753
74754         * build-aux/javaexec.sh.in: New file, moved from lib/.
74755         * modules/javaexec (Files): Update.
74756         (configure.ac): Add AC_CONFIG_FILES invocation.
74757         (EXTRA_DIST): Remove javaexec.sh.in.
74758
74759         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74760         * modules/csharpcomp-script (Files): Update.
74761         (configure.ac): Add AC_CONFIG_FILES invocation.
74762         (EXTRA_DIST): Remove variable.
74763
74764         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74765         * modules/csharpexec (Files): Update.
74766         (configure.ac): Add AC_CONFIG_FILES invocation.
74767         (EXTRA_DIST): Remove csharpexec.sh.in.
74768
74769 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74770
74771         Sync from coreutils.
74772
74773         Add POSIX ACL support
74774         * lib/acl.h (copy_acl, set_acl): Add declarations.
74775         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74776         systems other than Linux.
74777         (chmod_or_fchmod): New function: use fchmod when possible,
74778         and chmod otherwise.
74779         (file_has_acl): Add a POSIX ACL implementation, with a
74780         Linux-specific subcase.
74781         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74782         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74783         acls are unsupported.
74784         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74785         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74786         are unsupported.
74787
74788 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74789
74790         Sync from coreutils.
74791         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74792
74793 2006-01-07  Bruno Haible  <bruno@clisp.org>
74794
74795         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74796         gl_EARLY.
74797
74798 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74801         Problem reported for Mingw by Mark Junker.
74802
74803 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * README: Gnulib normally doesn't generate a tarball.
74806
74807 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74810         long int, not int, for nanosecond counts, so that people who are
74811         used to POSIX struct timespec won't be surprised.  Reported by Jim
74812         Meyering.
74813
74814 2005-12-28  Bruno Haible  <bruno@clisp.org>
74815
74816         * build-aux/config.rpath: Update from GNU gettext.
74817
74818 2005-12-16  Jim Meyering  <jim@meyering.net>
74819
74820         * modules/fprintftime: New module.
74821         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74822
74823 2005-12-16  Jim Meyering  <jim@meyering.net>
74824
74825         * m4/fprintftime.m4: New file.
74826
74827 2005-12-16  Jim Meyering  <jim@meyering.net>
74828
74829         * lib/fprintftime.c, lib/fprintftime.h: New files.
74830
74831 2005-12-15  Simon Josefsson  <jas@extundo.com>
74832
74833         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74834         new m4/socklen.m4.
74835
74836 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74837
74838         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74839         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74840
74841 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74842
74843         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74844         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74845         struct uparams is valid. Fall back to the default values if it is
74846         not.
74847
74848 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74849
74850         * modules/argp (Files): Add argp-pin.c
74851         (Depends-on): dirname
74852         (lib_SOURCES): Add argp-pin.c
74853
74854 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74855
74856         * m4/argp.m4:  Check if program_invocation_name and
74857         program_invocation_short_name are declared and define appropriate
74858         macros if they are not.
74859
74860 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74861
74862         * lib/argp-help.c (__argp_base_name): New function
74863         (__argp_short_program_name): Rewrite using __argp_base_name
74864         * lib/argp-namefrob.h: Define program_invocation_name and
74865         program_invocation_short_name if requested
74866         (__argp_base_name): Add prototype
74867         * lib/argp-parse.c (argp_def): Use gettext wrappers
74868         (argp_default_parser): Use __argp_base_name
74869         * lib/argp-pin.c: New file. Defines program_invocation_name and
74870         program_invocation_short_name on systems that lack them.
74871
74872 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74875         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74876         porting problem reported by Georg Schwarz in
74877         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74878
74879 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74882         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74883         porting problem reported by Georg Schwarz in
74884         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74885
74886 2005-12-05  Bruno Haible  <bruno@clisp.org>
74887
74888         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74889         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74890         Reported by Mark Junker <mjscod@gmx.de>.
74891
74892 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74895         Use implementation from Albert Chin, with some
74896         comments/corrections by Stepan Kasal and myself.
74897
74898 2005-12-02  Bruno Haible  <bruno@clisp.org>
74899
74900         * gnulib-tool (func_import): Accept GPLed build tool modules when
74901         --lgpl is given.
74902         * modules/csharpcomp-script: New file.
74903         * modules/csharpcomp: Depend on it.
74904         * modules/javacomp-script: New file.
74905         * modules/javacomp: Depend on it.
74906         Suggested by Simon Josefsson.
74907
74908 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74911         statement, to work around an HP-UX 10.20 compiler bug reported by
74912         Peter O'Gorman.
74913
74914 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         * modules/savedir (Depends-on): Add openat.
74917
74918 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74921         (uintmax_t) [defined uintmax_t]: Do not declare.
74922         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74923         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74924         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74925         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74926         sake of portability to weird hosts that C allows (though we don't
74927         know of any practical examples).
74928
74929         * lib/savedir.h (fdsavedir): New decl.
74930         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74931         contains most of the former guts of savedir.
74932         (savedir): Use savedirstream.
74933         Include "openat.h".
74934
74935 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * modules/obstack (Files): Add m4/ulonglong.m4.
74938         Problem reported by Davide Angelocola.
74939
74940 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74941
74942         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74943         coreutils no longer futzes with rounding modes.
74944
74945 2005-11-14  Jim Meyering  <jim@meyering.net>
74946
74947         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74948         replacement of mkstemp.
74949
74950 2005-11-10  Simon Josefsson  <jas@extundo.com>
74951
74952         * lib/readline.c: Remove EOL.
74953
74954 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * modules/gethrxtime (Depends-on): Add gettime.
74957
74958 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74959
74960         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74961         or gettimeofday; no longer needed.
74962
74963 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74964
74965         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74966         time business.
74967         (gethrxtime) [! (HAVE_NANOUPTIME
74968         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74969         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74970         our own approximation.
74971
74972 2005-11-08  Eric Blake  <ebb9@byu.net>
74973
74974         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74975
74976 2005-11-08  Eric Blake  <ebb9@byu.net>
74977
74978         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74979
74980 2005-11-04  Bruno Haible  <bruno@clisp.org>
74981
74982         * gnulib-tool: Implement --update mode.
74983
74984 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         Fix porting problem reported by Theodoros V. Kalamatianos.
74987         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74988         Don't assume that futimes failing means we must fail.
74989
74990 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74991
74992         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74993         variables to suggest the intended function of the PATH_MAX check.
74994
74995 2005-10-30  Kean Johnston  <jkj@sco.com>
74996
74997         Trivial changes to support SCO systems.
74998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74999         as PATH_MAX.
75000         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75001         where __ptr is null when no I/O is pending.
75002
75003 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75006         leave errno alone.  Problem reported by Dmitry V. Levin.
75007
75008 2005-10-28  Simon Josefsson  <jas@extundo.com>
75009
75010         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75011         Test more.
75012
75013         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75014
75015         * modules/md2, modules/md2-tests: New files.
75016
75017 2005-10-28  Simon Josefsson  <jas@extundo.com>
75018
75019         * m4/inet_ntop.m4: More tests.
75020
75021         * m4/gc-md2.m4, md2.m4: New file.
75022
75023 2005-10-28  Simon Josefsson  <jas@extundo.com>
75024
75025         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75026         "restrict" keywords, as per POSIX.  Protect the function
75027         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75028         Don't use K&R prototypes.  Check the sprintf return values.
75029         Re-define EAFNOSUPPORT if not present.  Indent.
75030
75031         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75032         suggested by Bruno Haible <bruno@clisp.org>.
75033
75034         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75035
75036         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75037
75038         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75039         libgcrypt).
75040
75041         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75042
75043         * lib/md2.h, lib/md2.c: New files.
75044
75045 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75048         errno alone.  Problem reported by Frederic Jolliton.
75049
75050 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         * modules/verify (License): Change from GPL to LGPL.  This is a
75053         tiny module and there are apparently near-equivalents that are
75054         under the BSD license.
75055
75056 2005-10-24  Simon Josefsson  <jas@extundo.com>
75057
75058         * modules/sha1: Relicense to LGPL.
75059
75060 2005-10-24  Simon Josefsson  <jas@extundo.com>
75061
75062         * lib/md4.h: Shrink buffer size, now that we changed the type.
75063
75064 2005-10-23  Simon Josefsson  <jas@extundo.com>
75065
75066         * gnulib-tool (func_import): Fix --tests-base.
75067
75068 2005-10-22  Simon Josefsson  <jas@extundo.com>
75069
75070         * modules/arcfour (Depends-on): Need stdint.
75071
75072 2005-10-22  Simon Josefsson  <jas@extundo.com>
75073
75074         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75075         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75076
75077 2005-10-22  Simon Josefsson  <jas@extundo.com>
75078
75079         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75080         suggested by Bruno Haible <bruno@clisp.org>.
75081
75082 2005-10-22  Simon Josefsson  <jas@extundo.com>
75083
75084         * lib/crc.h: Include stddef.h, for size_t.
75085
75086 2005-10-22  Simon Josefsson  <jas@extundo.com>
75087
75088         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75089         arcfour_context struct (simplify test vector testing in GNU
75090         Shishi).
75091
75092 2005-10-21  Simon Josefsson  <jas@extundo.com>
75093
75094         * modules/des, modules/des-tests: New files.
75095
75096         * modules/gc-des, modules/gc-des-tests: New files.
75097
75098         * tests/test-des.c, tests/test-gc-des.c: New file.
75099
75100 2005-10-21  Simon Josefsson  <jas@extundo.com>
75101
75102         * modules/arctwo, modules/arctwo-tests: New files.
75103
75104         * tests/test-arctwo.c: New file.
75105
75106         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75107
75108         * tests/test-gc-arctwo.c: New file.
75109
75110 2005-10-21  Simon Josefsson  <jas@extundo.com>
75111
75112         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75113         Bruno Haible <bruno@clisp.org>.
75114
75115         * m4/gc-des.m4: New file.
75116
75117 2005-10-21  Simon Josefsson  <jas@extundo.com>
75118
75119         * m4/arctwo.m4: New file.
75120
75121         * m4/gc-arctwo.m4: New file.
75122
75123 2005-10-21  Simon Josefsson  <jas@extundo.com>
75124
75125         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75126         block.
75127
75128 2005-10-21  Simon Josefsson  <jas@extundo.com>
75129
75130         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75131         <bruno@clisp.org>.
75132
75133         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75134
75135         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75136         Bruno Haible <bruno@clisp.org>.
75137
75138         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75139         <bruno@clisp.org>.
75140
75141 2005-10-21  Simon Josefsson  <jas@extundo.com>
75142
75143         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75144
75145 2005-10-21  Simon Josefsson  <jas@extundo.com>
75146
75147         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75148
75149 2005-10-21  Simon Josefsson  <jas@extundo.com>
75150
75151         * lib/des.h, lib/des.c: New files.
75152
75153         * lib/gc-gnulib.c: Support DES.c
75154
75155 2005-10-21  Simon Josefsson  <jas@extundo.com>
75156
75157         * lib/arctwo.h, lib/arctwo.c: New files.
75158
75159         * lib/gc-gnulib.c: Support ARCTWO.
75160
75161 2005-10-21  Simon Josefsson  <jas@extundo.com>
75162
75163         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75164         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75165
75166 2005-10-21  Simon Josefsson  <jas@extundo.com>
75167
75168         * gnulib-tool (func_import, func_create_testdir): Define automake
75169         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75170         Makefile.am snippet),
75171         suggested by Bruno Haible <bruno@clisp.org>.
75172
75173         * modules/gc (Makefile.am): Use it.
75174
75175 2005-10-21  Bruno Haible  <bruno@clisp.org>
75176
75177         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75178         patch.
75179
75180 2005-10-19  Simon Josefsson  <jas@extundo.com>
75181
75182         * tests/test-gc-rijndael.c: New file.
75183
75184         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75185
75186 2005-10-19  Simon Josefsson  <jas@extundo.com>
75187
75188         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75189         interface too.
75190
75191 2005-10-19  Simon Josefsson  <jas@extundo.com>
75192
75193         * tests/test-gc-arcfour.c: New file.
75194
75195         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75196
75197 2005-10-19  Simon Josefsson  <jas@extundo.com>
75198
75199         * modules/gc-md4, modules/gc-md4-tests: New file.
75200
75201         * tests/test-gc-md4.c: New file.
75202
75203 2005-10-19  Simon Josefsson  <jas@extundo.com>
75204
75205         * m4/gc-md4.m4: New file.
75206
75207 2005-10-19  Simon Josefsson  <jas@extundo.com>
75208
75209         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75210         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75211         <kasal@ucw.cz>.
75212
75213 2005-10-19  Simon Josefsson  <jas@extundo.com>
75214
75215         * m4/gc-arcfour.m4: New file.
75216
75217         * m4/gc-rijndael.m4: New file.
75218
75219 2005-10-19  Simon Josefsson  <jas@extundo.com>
75220
75221         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75222
75223 2005-10-19  Simon Josefsson  <jas@extundo.com>
75224
75225         * lib/gc-gnulib.c: Support ARCFOUR.
75226
75227 2005-10-19  Simon Josefsson  <jas@extundo.com>
75228
75229         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75230         support.
75231
75232         * lib/gc.h: Add ECB enum type.
75233
75234         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75235
75236 2005-10-18  Simon Josefsson  <jas@extundo.com>
75237
75238         * tests/test-md5.c: New file.
75239
75240         * modules/md5-tests: New file.
75241
75242 2005-10-18  Simon Josefsson  <jas@extundo.com>
75243
75244         * tests/test-md4.c: New file.
75245
75246         * modules/md4, modules/md4-tests: New files.
75247
75248 2005-10-18  Simon Josefsson  <jas@extundo.com>
75249
75250         * m4/md4.m4: New file.
75251
75252 2005-10-18  Simon Josefsson  <jas@extundo.com>
75253
75254         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75255
75256 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75257
75258         * gnulib-tool (func_create_testdir): Omit the second check whether
75259         BUILT_SOURCES in nonempty.
75260
75261 2005-10-17  Simon Josefsson  <jas@extundo.com>
75262
75263         * tests/test-rijndael.c: New file.
75264
75265 2005-10-17  Simon Josefsson  <jas@extundo.com>
75266
75267         * modules/sha1: Depend on stdint instead of md5.
75268
75269         * modules/md5: Depend on stdint, remove uint32_t.
75270
75271 2005-10-17  Simon Josefsson  <jas@extundo.com>
75272
75273         * modules/gc-sha1-tests: New file.
75274
75275         * tests/test-gc-sha1.c: New file.
75276
75277 2005-10-17  Simon Josefsson  <jas@extundo.com>
75278
75279         * m4/md5.m4: Remove call to uint32_t.m4.
75280
75281 2005-10-17  Simon Josefsson  <jas@extundo.com>
75282
75283         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75284
75285         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75286         md5.h.
75287
75288         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75289
75290         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75291
75292 2005-10-17  Simon Josefsson  <jas@extundo.com>
75293
75294         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75295
75296 2005-10-17  Simon Josefsson  <jas@extundo.com>
75297
75298         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75299
75300 2005-10-17  Simon Josefsson  <jas@extundo.com>
75301
75302         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75303
75304         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75305
75306 2005-10-17  Bruno Haible  <bruno@clisp.org>
75307
75308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75309         that it can also be used in a test.
75310
75311 2005-10-16  Bruno Haible  <bruno@clisp.org>
75312
75313         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75314         TESTS_ENVIRONMENT, so that individual tests can augment it.
75315
75316         * gnulib-tool (func_create_testdir): Use an intermediate target for
75317         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75318         macros, like $(ALLOCA_H), which cannot be passed through the command
75319         line.
75320
75321 2005-10-15  Simon Josefsson  <jas@extundo.com>
75322
75323         * modules/rijndael-tests: New file.
75324
75325         * modules/rijndael: New file.
75326
75327 2005-10-15  Simon Josefsson  <jas@extundo.com>
75328
75329         * m4/rijndael.m4: New file.
75330
75331 2005-10-15  Simon Josefsson  <jas@extundo.com>
75332
75333         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75334
75335         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75336
75337 2005-10-14  Simon Josefsson  <jas@extundo.com>
75338
75339         * tests/test-arcfour.c: New file.
75340
75341         * modules/arcfour, modules/arcfour-tests: New files.
75342
75343 2005-10-14  Simon Josefsson  <jas@extundo.com>
75344
75345         * m4/arcfour.m4: New file.
75346
75347 2005-10-14  Simon Josefsson  <jas@extundo.com>
75348
75349         * lib/arcfour.h, lib/arcfour.c: New files.
75350
75351 2005-10-14  Roland McGrath  <roland@redhat.com>
75352
75353         Import from libc.  [BZ #1331]
75354         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75355         macro argument.
75356         Reported by Matej Vela <vela@debian.org>.
75357
75358 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75361         include <wchar.h>; no longer needed.
75362
75363 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75366
75367 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75368         and  Ulrich Drepper  <drepper@redhat.com>
75369
75370         Import from libc.
75371         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75372         instead of inline stream orientation test and two separate
75373         function calls.  Pay no attention to USE_IN_LIBIO.
75374
75375 2005-10-13  Simon Josefsson  <jas@extundo.com>
75376
75377         * modules/gc-hmac-md5-tests: New file.
75378
75379         * tests/test-gc-hmac-sha1.c: New file.
75380
75381         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75382
75383         * modules/gc-hmac-md5-tests: New file.
75384
75385         * tests/test-gc-md5.c: New file.
75386
75387         * modules/gc-md5-tests: New file.
75388
75389 2005-10-13  Simon Josefsson  <jas@extundo.com>
75390
75391         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75392         Move memory allocation outside of loop.
75393
75394 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75397         intermediate directory is in a read-only file system.  Problem
75398         reported by Eric Blake.
75399
75400 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75401
75402         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75403
75404 2005-10-12  Simon Josefsson  <jas@extundo.com>
75405
75406         * tests/test-hmac-sha1.c: New file.
75407
75408         * modules/hmac-sha1-tests: New file.
75409
75410         * modules/hmac-sha1: New file.
75411
75412 2005-10-12  Simon Josefsson  <jas@extundo.com>
75413
75414         * modules/gc-sha1: New file.
75415
75416 2005-10-12  Simon Josefsson  <jas@extundo.com>
75417
75418         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75419
75420         * tests/test-gc-pbkdf2-sha1.c: New file.
75421
75422 2005-10-12  Simon Josefsson  <jas@extundo.com>
75423
75424         * modules/gc-md5, modules/gc-hmac-md5: New files.
75425
75426         * modules/gc (Files): Remove md5, memxor and hmac files.
75427
75428 2005-10-12  Simon Josefsson  <jas@extundo.com>
75429
75430         * m4/gc-pbkdf2-sha1.m4: New file.
75431
75432         * m4/gc-hmac-sha1.m4: New file.
75433
75434         * m4/gc-sha1: New file.
75435
75436         * m4/hmac-sha1.m4: New file.
75437
75438 2005-10-12  Simon Josefsson  <jas@extundo.com>
75439
75440         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75441
75442         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75443
75444 2005-10-12  Simon Josefsson  <jas@extundo.com>
75445
75446         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75447         suggested by Bruno Haible <bruno@clisp.org>.
75448
75449 2005-10-12  Simon Josefsson  <jas@extundo.com>
75450
75451         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75452
75453 2005-10-12  Simon Josefsson  <jas@extundo.com>
75454
75455         * lib/gc-pbkdf2-sha1.c: New file.
75456
75457         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75458
75459 2005-10-12  Simon Josefsson  <jas@extundo.com>
75460
75461         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75462
75463         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75464
75465 2005-10-12  Simon Josefsson  <jas@extundo.com>
75466
75467         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75468         GC_USE_HMAC_MD5, respectively.
75469
75470         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75471         (gc_md5): Fix typo.
75472
75473         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75474
75475         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75476
75477         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75478
75479 2005-10-12  Bruno Haible  <bruno@clisp.org>
75480
75481         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75482         Reported by Stepan Kasal <kasal@ucw.cz>.
75483
75484 2005-10-11  Simon Josefsson  <jas@extundo.com>
75485
75486         * tests/test-crc.c: New file.
75487
75488         * modules/crc, modules/crc-tests: New files.
75489
75490 2005-10-11  Simon Josefsson  <jas@extundo.com>
75491
75492         * m4/crc.m4: New file.
75493
75494 2005-10-11  Simon Josefsson  <jas@extundo.com>
75495
75496         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75497
75498         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75499
75500         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75501
75502 2005-10-11  Simon Josefsson  <jas@extundo.com>
75503
75504         * lib/crc.h, lib/crc.c: New files.
75505
75506         * lib/gc.h (gc_hash_buffer): Add doc.
75507
75508 2005-10-11  Bruno Haible  <bruno@clisp.org>
75509
75510         * modules/c-strcasestr: New file.
75511         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75512
75513 2005-10-11  Bruno Haible  <bruno@clisp.org>
75514
75515         * modules/c-strcase: New file.
75516         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75517
75518 2005-10-11  Bruno Haible  <bruno@clisp.org>
75519
75520         * lib/strcasecmp.c: Include limits.h.
75521         (strcasecmp): Avoid integer overflow on exotic platforms.
75522         * lib/strncasecmp.c: Include limits.h.
75523         (strncasecmp): Avoid integer overflow on exotic platforms.
75524         Reported by Paul Eggert.
75525
75526 2005-10-11  Bruno Haible  <bruno@clisp.org>
75527
75528         * lib/c-strcasestr.h: New file, from GNU gettext.
75529         * lib/c-strcasestr.c: New file, from GNU gettext.
75530
75531 2005-10-11  Bruno Haible  <bruno@clisp.org>
75532
75533         * lib/c-strcase.h: New file, from GNU gettext.
75534         * lib/c-strcasecmp.c: New file, from GNU gettext.
75535         * lib/c-strncasecmp.c: New file, from GNU gettext.
75536
75537 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * modules/mempcpy (License): GPL -> LGPL.
75540         * modules/strchrnul (License): Likewise.
75541         * modules/sysexits (License): Likewise.
75542
75543 2005-10-08  Simon Josefsson  <jas@extundo.com>
75544
75545         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75546
75547 2005-10-07  Simon Josefsson  <jas@extundo.com>
75548
75549         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75550
75551 2005-10-06  Simon Josefsson  <jas@extundo.com>
75552
75553         * tests/test-hmac-md5.c: New file.
75554
75555         * modules/hmac-md5-tests: New file.
75556
75557         * modules/hmac-md5: New file.
75558
75559 2005-10-06  Simon Josefsson  <jas@extundo.com>
75560
75561         * m4/hmac-md5.m4: New file.
75562
75563         * m4/memxor.m4: Require gl_C_RESTRICT.
75564
75565 2005-10-06  Simon Josefsson  <jas@extundo.com>
75566
75567         * lib/memxor.c (memxor): Avoid casts and warnings.
75568
75569 2005-10-06  Simon Josefsson  <jas@extundo.com>
75570
75571         * lib/hmac-md5.c: New file.
75572
75573         * lib/hmac.h: New file.
75574
75575 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75578         promotes to int, not unsigned int, to catch the AIX 5.3
75579         compiler bug.
75580
75581 2005-10-05  Simon Josefsson  <jas@extundo.com>
75582
75583         * modules/memxor: New file.
75584
75585         * modules/iconv (Files): Move config.rpath to havelib, it is used
75586         there.
75587
75588         * modules/havelib (Files): Add config.rpath.
75589
75590 2005-10-05  Simon Josefsson  <jas@extundo.com>
75591
75592         * m4/memxor.m4: New file.
75593
75594 2005-10-05  Simon Josefsson  <jas@extundo.com>
75595
75596         * lib/memxor.c (memxor): Fix compiler error.
75597
75598         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75599         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75600
75601         * lib/memxor.h, lib/memxor.c: New files.
75602
75603         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75604         we assume all systems have it, suggested by Jim Meyering
75605         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75606         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75607         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75608         same reasons.
75609
75610 2005-10-05  Simon Josefsson  <jas@extundo.com>
75611
75612         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75613
75614 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75617         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75618         needed, since the source code now assumes these .h files.
75619
75620 2005-10-05  Derek Price  <derek@ximbiot.com>
75621
75622         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75623
75624 2005-10-05  Bruno Haible  <bruno@clisp.org>
75625
75626         * modules/stdint (License): Change to LGPL.
75627
75628 2005-10-04  Simon Josefsson  <jas@extundo.com>
75629
75630         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75631         D. Baushke" <mdb@gnu.org>.
75632
75633 2005-10-04  Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/verify.h (verify_true): Provide alternative definition for C++.
75636
75637 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75640         (SSIZE_MAX): New macro, if not already defined.
75641         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75642         than 2 GiB.
75643
75644 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         Sync from coreutils.
75647         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75648         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75649         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75650         ULLONG_MAX doesn't work with 2.7.2.1.
75651
75652 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75653
75654         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75655         From Ben Pfaff.
75656
75657         * modules/exclude (Depends-on): Depend on verify.
75658         * modules/strtoimax (Depends-on): Likewise.
75659         * modules/utimecmp (Depends-on): Likewise.
75660
75661 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         * lib/exclude.c: Include verify.h.
75664         (verify): Remove.  All callers changed to use verify.h's version.
75665         * lib/strtoimax.c: Likewise.
75666         * lib/utimecmp.c: Likewis.e
75667
75668         Sync from coreutils.
75669         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75670         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75671         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75672         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75673         bother returning ENOSYS if settimeofday or stime fails; just let
75674         them return whatever errno they want to return.
75675         * lib/utimens.c: Include unistd.h, for dup2.
75676         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75677         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75678
75679 2005-10-02  Jim Meyering  <jim@meyering.net>
75680
75681         Sync from coreutils.
75682         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75683         from glibc-2.2.5 that fails for read-only files.
75684
75685 2005-10-02  Jim Meyering  <jim@meyering.net>
75686
75687         Sync from coreutils.
75688         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75689         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75690         `#if HAVE_CONFIG_H'.
75691         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75692         Remove AT_FDCWD test.
75693         Do not consume the fd unless successful.
75694         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75695         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75696         block, so that we don't even try to compile it if settimeofday is
75697         available.  This works around a compilation failure on OSF1 V5.1,
75698         due to stime requiring a `long int*' while tv_sec is `int'.
75699
75700 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75701
75702         Sync from coreutils.
75703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75704         against `yes', rather than just testing for nonempty.
75705
75706 2005-10-01  Simon Josefsson  <jas@extundo.com>
75707
75708         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75709         and Darwin.
75710
75711         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75712         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75713         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75714         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75715         Check if struct addrinfo is declared.
75716
75717 2005-10-01  Simon Josefsson  <jas@extundo.com>
75718
75719         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75720         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75721         AI_* and EAI_* definitions.  Protect function declarations.
75722
75723 2005-10-01  Jim Meyering  <jim@meyering.net>
75724
75725         Sync from coreutils.
75726
75727         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75728         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75729         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75731         in the inet and nsl libraries.  Required on Solaris 5.7.
75732
75733 2005-10-01  Jim Meyering  <jim@meyering.net>
75734
75735         Sync from coreutils.
75736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75737         in the inet and nsl libraries.  Required on Solaris 5.7.
75738
75739 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75740
75741         * lib/getdelim.c (getdelim): Remove unused variables.
75742
75743 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75746         so that the code works even with ancient cpp.  Portability problem
75747         with GCC 2.7.2.1 reported by Thomas M.Ott.
75748
75749 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         * modules/regex (Depends-on): Add strcase.
75752
75753         * modules/gethostname (Licence): Change from GPL to LGPL, since
75754         gethostname.c is a trivial implementation of a standard library
75755         function.
75756         * modules/poll (License): Change from GPL to LGPL, since it's
75757         derived from LGPL code.
75758
75759 2005-09-27  Jim Meyering  <jim@meyering.net>
75760
75761         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75762         HAVE_CONFIG_H.
75763
75764         * lib/intprops.h (signed_type_or_expr__): Define.
75765         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75766         for unsigned types.
75767
75768 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * lib/verify.h (verify_expr): Remove, replacing with:
75771         (verify_true): New macro that returns true instead of void.
75772         (verify_type__): Remove.
75773         (verify): Use verify_true rather than verify_type__.
75774
75775 2005-09-26  Bruno Haible  <bruno@clisp.org>
75776
75777         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75778         is necessary.
75779         (lib_SOURCES): Remove mbchar.c.
75780         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75781         (Files): Add m4/mbrtowc.m4.
75782         * modules/mbiter: Likewise.
75783         * modules/mbuiter: Likewise.
75784
75785 2005-09-26  Bruno Haible  <bruno@clisp.org>
75786
75787         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75788         compile mbchar.c if they are not both present.
75789         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75790         * m4/mbiter.m4 (gl_MBITER): Likewise.
75791         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75792         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75793         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75794
75795 2005-09-25  Jim Meyering  <jim@meyering.net>
75796
75797         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75798         also uses socklen_t.
75799
75800 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * lib/utimens.c (ENOSYS): Define if not already defined.
75803         (futimens): Support having a null PATH if the file descriptor
75804         is nonnegative.
75805
75806         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75807         Remove.
75808         (__attribute): Define to empty unless GCC 3.1 or later.
75809         This works around a core dump on OpenBSD 3.4, which has GCC
75810         2.95.3, which dumps core when given __attribute__(()).  It also
75811         simplifies other tests, since we really don't want to bother with
75812         worrying about which ancient version of GCC supported what.
75813         Original problem reported by Yoann Vandoorselaere, with part of
75814         the fix suggested by Derek Price.
75815
75816 2005-09-24  Jim Meyering  <jim@meyering.net>
75817
75818         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75819         so we can once again use a positive bitfield width of 1 -- now we
75820         don't have to explain why we were using a bitfield width of 2.
75821
75822 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75825         and similarly for the other external symbols.  Problem reported
75826         by James Gallager.
75827
75828         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75829         bug reported by Jim Meyering.
75830
75831         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75833         not needed, since socklen is a prerequisite module.
75834
75835 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75838         Problem reported by Eric Blake.
75839         (getaddrinfo): Initialize se so that it's not garbage.
75840         Redo internal storage allocation so that it doesn't make unportable
75841         assumptions about alignment.
75842         Fix a memory leak.
75843
75844         * lib/utimens.c (futimens): Use futimesat if available.
75845         Prefer it to futimes since it doesn't have the futimes bug.
75846
75847         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75848         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75849         Instead, declare a function that returns a pointer to an array,
75850         and use verify_type__ to declare the size of the array.
75851         Problem and germ of a solution reported by Bruno Haible.
75852         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75853         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75854
75855 2005-09-23  Jim Meyering  <jim@meyering.net>
75856
75857         Sync from coreutils.
75858         Correct build failure (socklen_t not defined) on at least
75859         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75860         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75861
75862 2005-09-23  Jim Meyering  <jim@meyering.net>
75863
75864         * modules/getaddrinfo (Depends-on): Add socklen.
75865
75866 2005-09-23  Bruno Haible  <bruno@clisp.org>
75867
75868         * tests/test-verify.c: New file.
75869
75870 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         Sync from coreutils.
75873
75874         * modules/argmatch (Depends-on): Add verify.
75875         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75876         unistd-safer.
75877         * modules/save-cwd (Depends-on): Likewise.
75878
75879         * modules/openat (Files): Add lib/openat-die.c.
75880         (Depends-on): Remove error, exitfail.
75881         Add dirname.
75882
75883         * modules/verify: New file.
75884         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75885         with "verify" module.
75886
75887 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         Sync from coreutils.
75890
75891         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75892         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75893         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75894         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75895         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75896         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75897         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75898         Don't bother checking for string.h, stdlib.h, unistd.h.
75899         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75900         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75901         module's job.
75902         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75903         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75904
75905         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75906         (gl_GETDATE): Use it.
75907
75908         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75909
75910 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         Sync from coreutils.
75913
75914         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75915         stat-time.h.
75916         * lib/argmatch.h: Include verify.h
75917         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75918         (ARGMATCH_ASSERT): Remove; unused.
75919         * lib/canonicalize.c: Assume STDC_HEADERS.
75920         * lib/exclude.c: Include "strcase.h".
75921         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75922         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75923         and stdio-safer.h.
75924         (getusershell): Call fopen, not fopen_safer.
75925         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75926         Do not include unistd-safer.h.
75927         (save_cwd): Don't call fd_safer; no longer needed
75928         now that we include fcntl--.h.
75929
75930         * lib/getdate.y (relative_time): New type.
75931         (RELATIVE_TIME_0): New constant.
75932         (parser_control): Use relative_time instead of doing it ourselves.
75933         (%union): Add new relative_time rel member.
75934         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75935         Now typeless.
75936         (relunit, relunit_snumber): Now of type rel.
75937         (zone, rel, relunit, get_date): Adjust to above changes.
75938
75939         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75940         Do not include unistd-safer.h.
75941         (getloadavg): Don't call fd_safer; no longer needed
75942         now that we include fcntl--.h.
75943
75944         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75945         (make_dir_parents): Treat ENOSYS like EEXIST.
75946
75947         Improve quality of diagnostics on restore_cwd failure.
75948         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75949         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75950         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75951         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75952         each time through the loop.  Do not diagnose restore_cwd failure;
75953         that is the caller's job (and perhaps the caller does not care).
75954
75955         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75956         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75957         If the file already exists but is not a directory, don't bother
75958         to try to make its parents.
75959         Close potential file descriptor leak if we can't chdir("/") (!).
75960         Don't always return true if chdir($PWD) fails; return true only
75961         if the requested action was done successfully (except for the
75962         chdir($PWD)).
75963         Don't log final directory unless we actually made it.
75964         Refactor to avoid duplicate code to fix up permissions.
75965         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75966
75967         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75968         to make it a bit faster and (I hope) clearer.
75969         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75970         Fix bug in formats like %2N.
75971
75972         * lib/verify.h: New file.
75973
75974 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         Sync from coreutils.
75977         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75978
75979 2005-09-22  Jim Meyering  <jim@meyering.net>
75980
75981         Sync from coreutils.
75982
75983         * m4/lstat.m4 (gl_FUNC_LSTAT):
75984         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75985         Remove obsolete comment.
75986         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75987         * m4/xstrtod.m4: Likewise.
75988
75989         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75990
75991 2005-09-22  Jim Meyering  <jim@meyering.net>
75992
75993         Sync from coreutils.
75994
75995         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75996
75997         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75998         the .tm_year member, since otherwise gcc-4.0 would now warn about
75999         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76000
76001         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76002         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76003
76004         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76005         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76006         when run in a time zone for which daylight savings time is in effect
76007         for the starting date.
76008
76009         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76010         stop us from restricting permissions of just-created absolute-named
76011         directories.
76012         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76013         to restore initial working directory.
76014         * lib/mkdir-p.c (make_dir_parents): New parameter:
76015         different_working_dir, to tell caller if/when we change the working
76016         directory and are unable to return to the initial one.
76017         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76018         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76019         `return false'.  This fixes a bug introduced on 2004-07-30.
76020
76021         * lib/openat.c (fdopendir): Be sure to close the supplied
76022         file descriptor before returning.  This makes our replacement
76023         implementation a little closer to Solaris's, where fdopendir
76024         ties the file descriptor to the returned DIR* pointer.
76025         * lib/openat.c (unlinkat): New function.
76026         * lib/openat.h (unlinkat): Add prototype.
76027         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76028         (openat_restore_fail): Rename from openat_restore_die.
76029         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76030
76031         Provide an alternative to exiting immediately upon save_cwd or
76032         restore_cwd failure.  Now, an application can arrange e.g.,
76033         to perform a longjump in that case.
76034         * lib/openat.c: Include dirname.h.
76035         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76036         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76037         and openat_restore_die rather than calling error directly.
76038         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76039
76040         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76041         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76042         define.
76043
76044         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76045         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76046                             int utc, int nanoseconds);
76047         Background:
76048         date should not have to allocate a megabyte of virtual memory to
76049         handle a format argument like +%1048575T.  When implemented with
76050         strftime, it must allocate such a buffer, use strftime to fill it
76051         in, print it, then free it.
76052         With fprintftime, it simply prints everything and exits.
76053         With no need for memory allocation, that's one fewer way to fail.
76054         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76055         optional field width, not before, so we accept %9:z, not %:9z.
76056         (my_strftime): Be sure to use L_('x') for literals.
76057
76058         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76059         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76060         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76061         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76062         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76063         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76064         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76065         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76066         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76067         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76068         * lib/xgethostname.c, lib/xreadlink.c:
76069         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76070
76071         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76072         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76073         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76074         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76075         and don't include <sys/file.h>).
76076
76077 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76078
76079         Sync from coreutils.
76080
76081         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76082         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76083         [!LDAV_DONE]: Avoid unused variable warning.
76084
76085 2005-09-21  Bruno Haible  <bruno@clisp.org>
76086
76087         * lib/unicodeio.h (unicode_to_mb): New declaration.
76088
76089 2005-09-20  Derek Price  <derek@ximbiot.com>
76090
76091         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76092         getaddrinfo.h.
76093
76094 2005-09-20  Bruno Haible  <bruno@clisp.org>
76095
76096         * gnulib-tool: Remove trailing slashes from the values specified for
76097         --source-base, --m4-base, --tests-base, --aux-dir.
76098         Suggested by Simon Josefsson <jas@extundo.com>.
76099
76100 2005-09-20  Bruno Haible  <bruno@clisp.org>
76101
76102         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76103         func_modules_to_filelist, func_import, func_create_testdir): Make all
76104         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76105         change when gnulib-tool is invoked in a different locale.
76106
76107 2005-09-19  Simon Josefsson  <jas@extundo.com>
76108
76109         * m4/socklen.m4: Fix typo.
76110
76111 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76112
76113         Use a consistent style for including <config.h>.
76114         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76115         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76116         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76117         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76118         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76119         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76120         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76121         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76122         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76123         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76124         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76125         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76126         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76127         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76128         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76129         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76130         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76131         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76132         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76133         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76134         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76135         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76136         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76137         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76138         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76139         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76140         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76141         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76142         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76143         lib/xstrtoumax.c, lib/yesno.c:
76144         Standardize inclusion of config.h.
76145         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76146         lib/inttostr.h:  Removed inclusion of config.h from header files.
76147         * lib/inttostr.c:  Adjusted in-tree users.
76148         * lib/timespec.h: Remove superfluous warning to include config.h.
76149         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76150         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76151         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76152         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76153         config.h with HAVE_CONFIG_H.
76154
76155 2005-09-19  Jim Meyering  <jim@meyering.net>
76156
76157         * modules/pathmax (License): Change to LGPL.
76158
76159 2005-09-19  Derek Price  <derek@ximbiot.com>
76160
76161         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76162
76163 2005-09-19  Bruno Haible  <bruno@clisp.org>
76164
76165         * gnulib-tool (import): Provide default for --tests-base.
76166
76167 2005-09-19  Bruno Haible  <bruno@clisp.org>
76168
76169         * doc/quote.texi: New file, extracted from gnulib.texi.
76170         * doc/ctime.texi: New file, extracted from gnulib.texi.
76171         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76172         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76173         * doc/gnulib.texi: Include them.
76174
76175 2005-09-18  Bruno Haible  <bruno@clisp.org>
76176
76177         Portability fix.
76178         * gnulib-tool (func_readlink): New function.
76179         (func_ln_if_changed): Use it.
76180
76181 2005-09-18  Bruno Haible  <bruno@clisp.org>
76182
76183         * gnulib-tool: Support --with-tests also with --import.
76184         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76185         (func_import): Use variables $testsbase and $inctests. Emit a
76186         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76187         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76188         SUBDIRS += $testsdir.
76189         (func_create_testdir): Update.
76190
76191 2005-09-18  Bruno Haible  <bruno@clisp.org>
76192
76193         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76194         instead of $dry_run.
76195         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76196         (func_ln_if_changed): Don't handle dry-run here.
76197         (func_import): In dry-run mode, detect more precisely which actions
76198         would be performed, and don't use "...ing" verbs.
76199
76200 2005-09-18  Bruno Haible  <bruno@clisp.org>
76201
76202         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76203         (func_import): Use join on two temporary files instead of three nested
76204         loops, in order to determine which files are new or old.
76205
76206 2005-09-18  Bruno Haible  <bruno@clisp.org>
76207
76208         * gnulib-tool (func_import): Comment out code that spits out the
76209         new files with --dry-run.
76210
76211 2005-09-18  Bruno Haible  <bruno@clisp.org>
76212
76213         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76214
76215 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * lib/stat-time.h: New file.
76218         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76219         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76220         in a different way.
76221         (timespec_cmp): New function.
76222         * lib/utimecmp.c: Include stat-time.h.
76223         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76224         members exist, not on the obsolescent ST_MTIM_NSEC.
76225         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76226
76227 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76228
76229         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76230
76231 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76232
76233         * MODULES.html.sh (File system functions): Add stat-time.
76234         * modules/stat-time: New file.
76235         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76236         is now done in a different way, by the stat-time module.
76237         * modules/utimecmp (Depends-on): Add stat-time.
76238
76239 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         * m4/st_mtim.m4: Remove.  Superseded by...
76242         * m4/stat-time.m4: New file.
76243         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76244         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76245
76246 2005-09-15  Derek Price  <derek@ximbiot.com>
76247
76248         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76249
76250 2005-09-15  Derek Price  <derek@ximbiot.com>
76251
76252         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76253         * lib/regex_internal.c: Ditto, using this...
76254         (__GNUC_PREREQ): ...new macro.
76255         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76256         using...
76257         (__GNUC_PREREQ): ...this new macro.
76258
76259         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76260
76261 2005-09-15  Derek Price  <derek@ximbiot.com>
76262             Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76265         changes, consolidating in...
76266         * lib/regex_internal.h: ...this file.
76267
76268 2005-09-13  Jim Meyering  <jim@meyering.net>
76269
76270         * lib/canon-host.c: Filter through gnu indent and reword comments
76271         slightly.
76272         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76273
76274 2005-09-13  Derek Price  <derek@ximbiot.com>
76275
76276         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76277         failure.
76278         Reported by Jim Meyering  <jim@meyering.net>.
76279
76280 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76281
76282         * lib/base64.c: Typo.
76283         (base64_encode): Put b64str in initialized data section.
76284
76285 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         Merge glibc and coreutils changes into gnulib, plus a few
76288         extra fixes.
76289         * lib/md5.c: Use #error rather than a string.
76290         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76291         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76292         (__attribute__): Define to empty for non recent-GCC.
76293         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76294         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76295         Renamed from their non-__ counterparts, with new macros replacing
76296         them if not _LIBC.  Add __THROW attribute.
76297         (rol): Remove.
76298         (struct md5_ctx): Align buffer if using GCC.
76299         * lib/sha1.h (struct sha1_ctx): Likewise.
76300         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76301         The old name was backwards.
76302         (NOTSWAP): Remove; not used.
76303         (rol): New macro, moved here from md5.h.
76304         (sha1_process_block): Remove a FIXME that doesn't make sense.
76305
76306 2005-09-12  Derek Price  <derek@ximbiot.com>
76307
76308         Return usable errors from canon-host.
76309         * lib/canon-host.h: New file.
76310         * lib/canon-host.c (canon_host): Wrap...
76311         (canon_host_r): ...this new function, which now relies exclusively on
76312         getaddrinfo.
76313         (ch_strerror): New function.
76314         (last_cherror): New global.
76315         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76316         interface.
76317         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76318         void *.
76319         (freeaddrinfo): Free ai->ai_canonname when set.
76320
76321 2005-09-12  Derek Price  <derek@ximbiot.com>
76322
76323         Make canon-host require getaddrinfo.
76324         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76325         AC_LIBSOURCE canon-host.h.  Call...
76326         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76327         gl_GETADDRINFO.
76328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76329
76330 2005-09-12  Derek Price  <derek@ximbiot.com>
76331
76332         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76333         LGPL.
76334         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76335
76336 2005-09-12  Derek Price  <derek@ximbiot.com>
76337
76338         * lib/gai_strerror.c: Include config.h when available.  Include
76339         getaddrinfo.h before other headers to test interface.
76340         Reported by Larry Jones <lawrence.jones@ugs.com>.
76341
76342 2005-09-12  Derek Price  <derek@ximbiot.com>
76343             Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * modules/glob (Files): Add glob-libc.h.
76346
76347 2005-09-12  Derek Price  <derek@ximbiot.com>
76348             Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76351         glob_.h, glob-libc.h.
76352         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76353
76354 2005-09-12  Derek Price  <derek@ximbiot.com>
76355             Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76358         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76359         protecting things that should be done only in gnulib contexts.
76360         * lib/glob_.h: New file, containing only the glob things needed for
76361         gnulib.
76362         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76363         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76364         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76365         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76366         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76367         and to respect the namespace rules better.
76368
76369 2005-09-08  Simon Josefsson  <jas@extundo.com>
76370
76371         * modules/socklen: New file.
76372
76373 2005-09-08  Simon Josefsson  <jas@extundo.com>
76374
76375         * m4/socklen.m4: New file.
76376
76377 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * modules/utimens (Files): Add m4/utimbuf.m4, since
76380         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76381         Reported by Sergey Poznyakoff.
76382
76383 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76386         definitions, since that's the preferred style in glibc.
76387         Fix a minor spacing issue, and update copyright notice to match
76388         glibc's.
76389
76390 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76393
76394 2005-09-06  Simon Josefsson  <jas@extundo.com>
76395
76396         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76397         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76398
76399 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76402         warning.
76403
76404 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         * config/srclist.txt: Add glibc bug 1302.
76407
76408 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         Change bitset word type from unsigned int to unsigned long int,
76411         as this has better performance on typical 64-bit hosts.
76412         Port bitset code to hosts with unusual word sizes.
76413         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76414         (build_collating_symbol):
76415         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76416         argument is a bitset.  This is merely a style issue, but it makes
76417         it clearer that an entire array is expected.
76418         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76419         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76420         Port to the case where bitset_word is not the same as unsigned int.
76421         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76422         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76423         Likewise.
76424         * lib/regexec.c (check_dst_limits_calc_pos_1,
76425         check_subexp_matching_top):
76426         (build_trtable, group_nodes_into_DFAstates):
76427         Likewise.
76428         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76429         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76430         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76431         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76432         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76433         * lib/regcomp.c (optimize_subexps, lower_subexp):
76434         Work even if bitset_word has holes in its bitwise representation.
76435         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76436         * lib/regexec.c (check_dst_limits_calc_pos_1,
76437         check_subexp_matching_top):
76438         Likewise.
76439         * lib/regex_internal.c (re_string_reconstruct):
76440         Don't assume UCHAR_MAX == 255.
76441         * lib/regex_internal.h (bitset_set_all): Likewise.
76442         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76443         All uses changed.
76444         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76445         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76446         All uses changed.
76447         (BITSET_WORD_MAX): New macro.
76448         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76449         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76450         (bitset_empty, bitset_copy):
76451         Prefer sizeof (bitset) to multiplying it out ourselves.
76452         (bitset_not_merge): Remove; unused.
76453         (bitset_contain): Return bool, not unsigned int with one bit on.
76454         All callers changed.
76455         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76456         alignment than re_node_set; do this by defining a new internal
76457         type struct dests_alloc and using it to allocate memory.
76458
76459 2005-09-05  Bruno Haible  <bruno@clisp.org>
76460
76461         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76462         links.
76463
76464 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76465
76466         * modules/size_max (Makefile.am): Add size_max.h
76467
76468 2005-09-04  Derek Price  <derek@ximbiot.com>
76469
76470         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76471
76472 2005-09-03  Simon Josefsson  <jas@extundo.com>
76473
76474         * gnulib-tool: Fix typo.
76475
76476 2005-09-03  Simon Josefsson  <jas@extundo.com>
76477
76478         * config/srclist.txt: Add glibc bug 1293.
76479
76480 2005-09-03  Derek Price  <derek@ximbiot.com>
76481
76482         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76483         From Larry Jones <lawrence.jones@ugs.com>.
76484
76485 2005-09-02  Simon Josefsson  <jas@extundo.com>
76486
76487         * modules/socklen: New file.
76488
76489 2005-09-02  Simon Josefsson  <jas@extundo.com>
76490
76491         * modules/havelib: New module.
76492
76493         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76494         Use havelib.
76495
76496 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         Check for arithmetic overflow when calculating sizes, to prevent
76499         some buffer-overflow issues.  These patches are conservative, in the
76500         sense that when I couldn't determine whether an overflow was possible,
76501         I inserted a run-time check.
76502         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76503         macros.
76504         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76505         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76506         (re_xnrealloc, re_x2nrealloc): New inline functions.
76507         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76508         parse_bracket_exp):
76509         (build_equiv_class, build_charclass): Check for arithmetic overflow
76510         in size expression calculations.
76511         * lib/regex_internal.c (re_string_realloc_buffers):
76512         (build_wcs_upper_buffer, re_node_set_add_intersect):
76513         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76514         (re_dfa_add_node, register_state): Likewise.
76515         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76516         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76517         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76518         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76519
76520 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76523         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76524
76525 2005-09-02  Bruno Haible  <bruno@clisp.org>
76526
76527         Support for lib vs. lib64 distinction on biarch platforms.
76528         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76529         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76531
76532 2005-09-02  Bruno Haible  <bruno@clisp.org>
76533
76534         * gnulib-tool (import): In the other first-use case, provide defaults
76535         as well.
76536
76537 2005-09-02  Bruno Haible  <bruno@clisp.org>
76538
76539         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76540         patches not yet found in the latest gettext release.
76541
76542 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76545         to avoid a collision with bits/local_lim.h in glibc.
76546         All uses changed.  Problem reported by Dmitry V. Levin in
76547         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76548
76549         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76550         bugs in int versus size_t comparisons.
76551         (re_string_context_at): Fix bug where the code assumed that
76552         Idx is signed.
76553
76554         Use bool where appropriate.
76555         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76556         All callers changed.
76557         (calc_eclosure_iter): Likewise, for ROOT arg.
76558         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76559         (build_charclass_op): Likewise, for NON_MATCH arg.
76560         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76561         (re_string_construct_common): Likewise, for ICASE arg.
76562         * lib/regexec.c (re_search_2_stub, re_search_stub):
76563         Likewise, for RET_LEN arg.
76564         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76565         (set_regs): Likewise, for FL_BACKTRACK arg.
76566         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76567         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76568         (calc_eclosure_iter, parse_bracket_exp):
76569         Use bool for internal variables that are booleans.
76570         * lib/regexec.c (re_search_internal, check_matching,
76571         proceed_next_node):
76572         (set_regs, build_sifted_states, sift_states_bkref):
76573         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76574         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76575         (find_collation_sequence_value):
76576         Likewise.
76577         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76578         (re_node_set_compare):
76579         Return bool, not int. All callers changed.
76580         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76581         (build_trtable, check_node_accept): Likewise.
76582         * lib/regex_internal.h: Include stdbool.h.
76583
76584         Fix bugs uncovered when converting to bool.
76585         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76586         failure instead of charging ahead blindly.
76587         * lib/regex_internal.c (register_state): Likewise.
76588         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76589         for freeing internal storage.
76590         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76591         bitset pieces used as boolean, to avoid undefined behavior
76592         on hosts that do int overflow checking.
76593
76594 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         * config/srclist.txt: Add glibc bugs 1285-1287.
76597
76598 2005-09-01  Jim Meyering  <jim@meyering.net>
76599
76600         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76601         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76602         Require gl_STAT_MACROS, too.
76603
76604 2005-09-01  Bruno Haible  <bruno@clisp.org>
76605
76606         * gnulib-tool (import): In the first-use case, provide defaults.
76607
76608 2005-09-01  Bruno Haible  <bruno@clisp.org>
76609
76610         * gnulib-tool (func_import): Remove the .tmp files.
76611
76612 2005-09-01  Bruno Haible  <bruno@clisp.org>
76613
76614         * gnulib-tool (func_import): Fix handling of symbolic links.
76615
76616 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76617
76618         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76619         old glibc regex code mishandles strings longer than 2**31 bytes.
76620         This patch fixes this when the regex code is used in gnulib
76621         (i.e., outside glibc).
76622
76623         This patch should not affect the use of the regex code inside
76624         glibc.  No doubt this problem also needs to be handled for glibc
76625         as well, but the result will be an incompatible change to the
76626         glibc ABI, and the old ABI will have to be supported too.  That
76627         can be the the subject for another patch.
76628
76629         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76630         governing whether the rest of this patch is active.  By default,
76631         the macro is disabled and the patch has no effect.
76632         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76633         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76634         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76635         (re_match_2, re_set_registers): Use the new types.
76636         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76637         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76638         New macros.
76639         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76640         (re_string_context_at, bin_tree_t, re_dfastate_t):
76641         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76642         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76643         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76644         (re_string_char_size_at, re_string_wchar_at):
76645         (re_string_elem_size_at):
76646         Use the new types and macros to port to 64-bit hosts.
76647         Use unsigned types for internal values, so that the code
76648         mostly works even for arrays larger than SSIZE_MAX.
76649         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76650         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76651         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76652         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76653         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76654         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76655         (calc_inveclosure, parse_dup_op, build_range_exp):
76656         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76657         (fetch_number, create_token_tree, mark_opt_subexp):
76658         Likewise.
76659         * lib/regex_internal.c (re_string_construct_common,
76660         create_ci_newstate):
76661         (create_cd_newstate, re_string_allocate, re_string_construct):
76662         (re_string_realloc_buffers, build_wcs_upper_buffer):
76663         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76664         (re_string_reconstruct, re_string_peek_byte_case):
76665         (re_string_fetch_byte_case, re_string_context_at):
76666         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76667         (re_node_set_init_copy, re_node_set_add_intersect):
76668         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76669         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76670         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76671         (re_acquire_state, re_acquire_state_context, register_state):
76672         Likewise.
76673         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76674         search_cur_bkref_entry):
76675         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76676         (re_search_internal, re_search_2_stub, re_search_stub)
76677         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76678         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76679         (update_cur_sifted_state, check_dst_limits):
76680         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76681         (check_subexp_limits, sift_states_bkref, merge_state_array):
76682         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76683         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76684         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76685         (expand_bkref_cache, check_node_accept_bytes):
76686         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76687         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76688         (acquire_init_state_context, check_halt_node_context):
76689         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76690         (sift_states_backward, clean_state_log_if_needed):
76691         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76692         (find_recover_state, transit_state_sb, transit_state_mb):
76693         (transit_state_bkref, build_trtable, match_ctx_clean):
76694         Likewise.
76695         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76696         to work around an assumption that REG_MISSING is negative.
76697
76698         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76699         (seek_collating_symbol_entry) [defined _LIBC]:
76700         (lookup_collation_sequence_value) [defined _LIBC]:
76701         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76702         Use prototypes rather than old-style function definitions.
76703         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76704         (transit_state_sb) [0]:
76705         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76706
76707         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76708         rm_eo.
76709
76710         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76711         (optimize_subexps, lower_subexp):
76712         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76713         since the signed shift might overflow.  Use 1u<<31 instead.
76714         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76715         Likewise.
76716         * lib/regexec.c (check_dst_limits_calc_pos_1,
76717         check_subexp_matching_top): Likewise.
76718
76719         * lib/regcomp.c (optimize_subexps, lower_subexp):
76720         Use CHAR_BIT rather than 8, for clarity.
76721         * lib/regexec.c (check_dst_limits_calc_pos_1):
76722         (check_subexp_matching_top): Likewise.
76723         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76724         have to worry about portability issues when shifting it left.
76725         Remove no-longer-needed test for table_size > 0.
76726         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76727         in a word, as the resulting behavior is undefined.
76728         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76729         in one case, a <= should have been an <, and in another case the
76730         whole test was missing.
76731         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76732         the standard name CHAR_BIT.
76733         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76734         this is not true on one's complement and signed-magnitude hosts.
76735
76736         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76737         next_last_offset.
76738         (struct re_dfa_t): Remove unused member states_alloc.
76739         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76740
76741 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76744         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76745         and large-file glibc and in 32-bit large-file Solaris.
76746
76747 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76750         lengths fit in regoff_t; this isn't true if regoff_t is the same
76751         width as size_t.
76752         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76753         (= START + RANGE) instead of RANGE.  This avoids overflow
76754         problems when regoff_t is the same width as size_t.
76755         All callers changed.
76756         (re_search_2_stub): Check for overflow when adding the
76757         sizes of the two strings.
76758         (re_search_stub): Check for overflow when adding START
76759         to RANGE; if it occurs, substitute the extreme value.
76760
76761 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76764
76765 2005-08-31  Jim Meyering  <jim@meyering.net>
76766
76767         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76768         a pointer-to-const.
76769         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76770         (register_state): Likewise.
76771         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76772         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76773         (group_nodes_into_DFAstates): Likewise.
76774
76775 2005-08-31  Jim Meyering  <jim@meyering.net>
76776
76777         * check-module: Add a FIXME comment.
76778
76779 2005-08-31  Eric Blake  <ebb9@byu.net>
76780
76781         * modules/unistd-safer (Files): Add unistd--.h.
76782         * modules/stdio-safer (Files): Add stdio--.h.
76783
76784 2005-08-31  Derek Price  <derek@ximbiot.com>
76785
76786         * lib/getdelim.c (getdelim): Return EOF on EOF.
76787         Reported by Larry Jones <lawrence.jones@ugs.com>.
76788
76789 2005-08-31  Bruno Haible  <bruno@clisp.org>
76790
76791         Avoid unnecessary diffs in the generated lib/Makefile.am.
76792         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76793         the generated files.
76794         (func_import): Don't set cmd.
76795
76796 2005-08-31  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/strstr.c: Include <stddef.h>, for NULL.
76799         * lib/strcasestr.c: Likewise.
76800         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76801
76802 2005-08-31  Bruno Haible  <bruno@clisp.org>
76803
76804         * gnulib-tool: New option --macro-prefix.
76805         (func_import): Use macro_prefix.
76806         (import): Handle option --macro-prefix.
76807
76808 2005-08-31  Bruno Haible  <bruno@clisp.org>
76809
76810         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76811         Also use new variables cached_lgpl, cached_libtool.
76812
76813 2005-08-31  Bruno Haible  <bruno@clisp.org>
76814
76815         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76816         always instantiating them.
76817
76818 2005-08-31  Bruno Haible  <bruno@clisp.org>
76819
76820         * gnulib-tool (func_import): Read the previous cached settings
76821         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76822         earlier added by gnulib but are now dropped. Warn when a gnulib file
76823         overwrites a non-gnulib file.
76824
76825 2005-08-31  Bruno Haible  <bruno@clisp.org>
76826
76827         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76828         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76829         projects that don't keep autogenerated files in CVS. Put into
76830         actioncmd only the specified modules, not the transitive closure.
76831
76832 2005-08-31  Bruno Haible  <bruno@clisp.org>
76833
76834         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76835         Create directories that shall be filled.
76836         (import): Don't look for gl_* macros in configure.ac. Recurse across
76837         all directories containing a gnulib-cache.m4 files, if meaningful.
76838
76839 2005-08-31  Bruno Haible  <bruno@clisp.org>
76840
76841         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76842         (import): Set seen_libtool when we see gl_LIBTOOL.
76843
76844 2005-08-31  Bruno Haible  <bruno@clisp.org>
76845
76846         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76847         declaration macro definitions from generated gnulib.m4.
76848
76849 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76850
76851         * lib/iconvme.h: Add prototype for iconv_alloc.
76852
76853 2005-08-29  Simon Josefsson  <jas@extundo.com>
76854
76855         * lib/iconvme.c: Fix errno.
76856
76857 2005-08-29  Bruno Haible  <bruno@clisp.org>
76858
76859         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76860         that it works when the directory contains spaces.
76861
76862 2005-08-29  Bruno Haible  <bruno@clisp.org>
76863
76864         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76865
76866 2005-08-29  Bruno Haible  <bruno@clisp.org>
76867
76868         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76869         Emit more advice.
76870
76871 2005-08-29  Bruno Haible  <bruno@clisp.org>
76872         and Stepan Kasal  <kasal@ucw.cz>
76873
76874         * check-module: If more parameters are given, check each of them
76875         separately; add more exceptions, as noted by Jim Meyering.
76876         (check_module): New procedure.
76877         (%exempt_header): Now contains all exceptions.
76878
76879 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76880
76881         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76882
76883 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76884
76885         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76886
76887 2005-08-28  Bruno Haible  <bruno@clisp.org>
76888
76889         * m4/gnulib-tool.m4: New file.
76890
76891 2005-08-27  Jim Meyering  <jim@meyering.net>
76892
76893         * modules/unistd-safer (Files): Add pipe-safer.c.
76894         * modules/fcntl-safer (Files): Add creat-safer.c.
76895
76896 2005-08-27  Jim Meyering  <jim@meyering.net>
76897
76898         * m4/stdlib-safer.m4: New file.  From coreutils.
76899         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76900         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76901         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76902         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76903         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76904
76905 2005-08-27  Jim Meyering  <jim@meyering.net>
76906
76907         * lib/fopen-safer.c: Merge minor changes from coreutils.
76908         * lib/dup-safer.c: Likewise.
76909         * lib/fd-safer.c: Likewise.
76910
76911         Merge from coreutils.
76912         * lib/stdio--.h: New file.
76913         * lib/stdlib--.h: New file.
76914         * lib/mkstemp-safer.c: New file.
76915
76916         GNU tar needs these.
76917         * lib/pipe-safer.c: New file.
76918         * lib/creat-safer.c: New file.
76919         * lib/fcntl--.h (creat): Define to creat_safer.
76920         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76921         * lib/unistd--.h (pipe): Define to pipe_safer.
76922         * lib/unistd-safer.h: Declare pipe_safer.
76923
76924 2005-08-26  Simon Josefsson  <jas@extundo.com>
76925
76926         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76927         Haible <bruno@clisp.org>.
76928
76929 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * lib/regex_internal.h: Remove all references to
76932         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76933         or better.
76934         (bitset_not, bitset_merge, bitset_not_merge):
76935         (bitset_mask, re_string_allocate, re_string_construct):
76936         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76937         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76938         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76939         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76940         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76941         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76942         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76943         (re_acquire_state_context):
76944         Remove unnecessary forward decls.
76945         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76946         Put __attribute at function definition,
76947         now that the function decl has been removed.
76948         * lib/regex_internal.c (re_string_peek_byte_case):
76949         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76950         Likewise.
76951
76952 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76953
76954         * m4/regex.m4: Add AC_PREREQ(2.50).
76955         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76956
76957 2005-08-25  Simon Josefsson  <jas@extundo.com>
76958
76959         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76960         __fsetlocking.
76961
76962 2005-08-25  Simon Josefsson  <jas@extundo.com>
76963
76964         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76965         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76966         GLIBC specific code.
76967
76968 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         Make regex safe for g++.  This fixes one real bug (an "err"
76971         that should have been "*err").  g++ problem reported by
76972         Sam Steingold.
76973         * lib/regex_internal.h (re_calloc): New macro, consistent with
76974         re_malloc etc.  All callers of calloc changed to use re_calloc.
76975         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76976         not int.  All callers changed.
76977         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76978         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76979         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76980         (find_recover_state): Change "err" to "*err"; this fixes what
76981         appears to be a real bug.
76982         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76983         versus int.
76984
76985 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76986
76987         * modules/regex (Depends-on): Add malloc, since the code
76988         assumes that !malloc(0) means failure.
76989
76990 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76991
76992         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76993
76994         alloca modernization/simplification for regex.
76995         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76996         needs to be at the start of the file, and can be moved into
76997         regex_internal.h and simplified.
76998         * lib/regex_internal.h: Include <alloca.h>.
76999         (__libc_use_alloca) [!defined _LIBC]: New macro.
77000         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77001         now works outside glibc.
77002
77003 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         * config/srclist.txt: Add glibc bugs 1241, 1245.
77006
77007 2005-08-25  Jim Meyering  <jim@meyering.net>
77008
77009         * lib/open-safer.c: Include <config.h>.
77010         Otherwise, we'd lose LARGEFILE support in any file using
77011         e.g. "fcntl--.h"
77012
77013 2005-08-25  Bruno Haible  <bruno@clisp.org>
77014
77015         * m4/minmax.m4: Require autoconf 2.52.
77016         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77017         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77018         alternatives of translit over the alphabet.
77019         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77020
77021 2005-08-24  Simon Josefsson  <jas@extundo.com>
77022
77023         * tests/test-getpass.c: New file.
77024
77025 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77028         for GNU regex features.
77029
77030 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77033         * lib/regex.h (regerror): Likewise.
77034
77035         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77036         requires this.  (The code never needed it.)
77037
77038         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77039         All uses of recently-renamed identifiers changed to use the new,
77040         POSIX-compliant names.  The code will build and run just fine
77041         without these changes, but it's better to eat our own dog food
77042         and use the standard-conforming names.
77043
77044         * lib/regex.h: Fix a multitude of POSIX name space violations.
77045         These changes have an effect only for programs that define
77046         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77047         do not change anything for programs compiled in the normal way.
77048         Also, there is no effect on the ABI.
77049
77050         (_REGEX_SOURCE): New macro.
77051         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77052         defined and _GNU_SOURCE is not; this fixes a name space violation.
77053
77054         Rename the following macros to obey POSIX requirements.
77055         The old names are still visible as macros if _REGEX_SOURCE is defined.
77056         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77057         RE_BACKSLASH_ESCAPE_IN_LISTS.
77058         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77059         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77060         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77061         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77062         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77063         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77064         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77065         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77066         (REG_INTERVALS): renamed from RE_INTERVALS.
77067         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77068         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77069         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77070         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77071         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77072         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77073         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77074         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77075         RE_UNMATCHED_RIGHT_PAREN_ORD.
77076         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77077         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77078         (REG_DEBUG): renamed from RE_DEBUG.
77079         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77080         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77081         unusual, since we can't clash with the POSIX REG_ICASE.
77082         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77083         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77084         (REG_NO_SUB): renamed from RE_NO_SUB.
77085         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77086         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77087         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77088         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77089         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77090         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77091         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77092         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77093         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77094         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77095         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77096         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77097         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77098         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77099         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77100         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77101         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77102         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77103         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77104         (REG_FIXED): Renamed from REGS_FIXED.
77105         (REG_NREGS): Renamed from RE_NREGS.
77106
77107         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77108         of other REG_* macros, since POSIX says the user is allowed to
77109         #undef these macros selectively.
77110
77111         (reg_errcode_t): Update comment stating what other tables need
77112         to be consistent.
77113
77114         Rename the following enum values to obey POSIX requirements.
77115         The old names are still visible as macros.
77116         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77117         is not defined, since GNU is supposed to be a superset of POSIX as
77118         much as possible, and since we want reg_errcode_t to be a signed
77119         type for implementation consistency.
77120         (_REG_NOERROR): Renamed from REG_NOERROR.
77121         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77122         (_REG_BADPAT): Renamed from REG_BADPAT.
77123         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77124         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77125         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77126         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77127         (_REG_EBRACK): Renamed from REG_EBRACK.
77128         (_REG_EPAREN): Renamed from REG_EPAREN.
77129         (_REG_EBRACE): Renamed from REG_EBRACE.
77130         (_REG_BADBR): Renamed from REG_BADBR.
77131         (_REG_ERANGE): Renamed from REG_ERANGE.
77132         (_REG_ESPACE): Renamed from REG_ESPACE.
77133         (_REG_BADRPT): Renamed from REG_BADRPT.
77134         (_REG_EEND): Renamed from REG_EEND.
77135         (_REG_ESIZE): Renamed from REG_ESIZE.
77136         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77137         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77138         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77139         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77140         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77141
77142         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77143         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77144         changed.  But support the old name if the new one is not defined
77145         and if _REGEX_SOURCE.
77146
77147         Change the following member names in struct re_pattern_buffer.
77148         The old names are still supported if !_REGEX_SOURCE.
77149         The new names are always supported, regardless of _REGEX_SOURCE.
77150         (re_buffer): Renamed from buffer.
77151         (re_allocated): Renamed from allocated.
77152         (re_used): Renamed from used.
77153         (re_syntax): Renamed from syntax.
77154         (re_fastmap): Renamed from fastmap.
77155         (re_translate): Renamed from translate.
77156         (re_can_be_null): Renamed from can_be_null.
77157         (re_regs_allocated): Renamed from regs_allocated.
77158         (re_fastmap_accurate): Renamed from fastmap_accurate.
77159         (re_no_sub): Renamed from no_sub.
77160         (re_not_bol): Renamed from not_bol.
77161         (re_not_eol): Renamed from not_eol.
77162         (re_newline_anchor): Renamed from newline_anchor.
77163
77164         Change the following member names in struct re_registers.
77165         The old names are still supported if !_REGEX_SOURCE.
77166         The new names are always supported, regardless of _REGEX_SOURCE.
77167         (rm_num_regs): Renamed from num_regs.
77168         (rm_start): Renamed from start.
77169         (rm_end): Renamed from end.
77170
77171         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77172         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77173         Prepend __ to parameter names.
77174
77175         Undo yesterday's changes.
77176
77177 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77180         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77181         lib/regex.c.
77182
77183 2005-08-24  Jim Meyering  <jim@meyering.net>
77184
77185         Sync from coreutils.
77186         * m4/fcntl-safer.m4: New file.
77187
77188         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77189         and object files for this module.
77190
77191 2005-08-24  Jim Meyering  <jim@meyering.net>
77192
77193         Sync from coreutils.
77194         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77195
77196 2005-08-24  Jim Meyering  <jim@meyering.net>
77197
77198         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77199         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77200
77201 2005-08-24  Jim Meyering  <jim@meyering.net>
77202
77203         * modules/fcntl-safer: New module.
77204         * modules/fts (Depends-on): Add fcntl-safer.
77205         * MODULES.html.sh (File descriptor based Input/Output):
77206         Add fcntl-safer.
77207
77208 2005-08-24  Bruno Haible  <bruno@clisp.org>
77209
77210         Support for unit test modules.
77211         * modules/README: Mention tests modules.
77212         * modules/TEMPLATE-TESTS: New file.
77213         * gnulib-tool: New options --extract-tests-module, --with-tests and
77214         --tests-base (unused for the moment).
77215         (testsbase, inctests): New variables.
77216         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77217         (func_verify_module): Exclude TEMPLATE-TESTS.
77218         (func_verify_nontests_module, func_verify_tests_module): New functions.
77219         (func_get_dependencies): Add implicit dependency for tests modules.
77220         (func_get_tests_module): New function.
77221         (func_modules_transitive_closure): When --with-tests was specified,
77222         include the unit tests as well, unless explicitly avoided.
77223         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77224         (func_emit_tests_Makefile_am): New function.
77225         (func_create_testdir): When --with-tests was specified, emit a
77226         tests/ directory.
77227         * MODULES.html.sh (Future developments): Update.
77228
77229 2005-08-24  Bruno Haible  <bruno@clisp.org>
77230
77231         * modules/tls-tests: New file.
77232         * tests/test-tls.c: New file, from GNU gettext.
77233
77234 2005-08-24  Bruno Haible  <bruno@clisp.org>
77235
77236         * modules/lock-tests: New file.
77237         * tests/test-lock.c: New file, from GNU gettext.
77238
77239 2005-08-24  Bruno Haible  <bruno@clisp.org>
77240
77241         * lib/lock.h: Add multiple inclusion guard.
77242         * lib/tls.h: Add multiple inclusion guard.
77243
77244 2005-08-24  Bruno Haible  <bruno@clisp.org>
77245
77246         * gnulib-tool: Add support for the --aux-dir option to
77247         --create-testdir, --create-megatestdir, --test, --megatest.
77248         (func_create_testdir, func_create_megatestdir): Optionally emit a
77249         AC_CONFIG_AUX_DIR directive.
77250         (create-testdir, create-megatestdir, test, megatest): Provide a
77251         default value for $auxdir.
77252
77253 2005-08-24  Bruno Haible  <bruno@clisp.org>
77254
77255         * gnulib-tool (import): Use compound statement instead of subshell
77256         where possible.
77257
77258 2005-08-24  Bruno Haible  <bruno@clisp.org>
77259
77260         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77261
77262 2005-08-24  Bruno Haible  <bruno@clisp.org>
77263
77264         * gnulib-tool (func_version): Update.
77265
77266 2005-08-24  Bruno Haible  <bruno@clisp.org>
77267
77268         * gnulib-tool (func_import, func_create_testdir,
77269         func_create_megatestdir): Quote all autoconf macro arguments.
77270
77271 2005-08-24  Bruno Haible  <bruno@clisp.org>
77272
77273         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77274         option --force, because --force causes the aclocal.m4 of each
77275         subdirectory to be newer than the corresponding config.h.in.
77276
77277 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77278
77279         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77280         All contents moved to gl_REGEX.
77281         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77282         assume that it does.
77283
77284 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * lib/regex.h (REG_NOSYS)
77287         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77288         Define, since POSIX requires it as of 2001.
77289         (_REG_ENOSYS)
77290         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77291         New private symbol, used to keep the enum signed in all cases.
77292         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77293         Youngman in
77294         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77295
77296         * lib/regex_internal.c (re_string_skip_chars, register_state):
77297         (calc_state_hash):
77298         Remove forward decls; no longer needed now that we use prototypes.
77299         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77300         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77301         (clean_state_log_if_needed): Likewise.
77302
77303 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         * config/srclist.txt: Add glibc bugs 1231-1233.
77306
77307 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77308
77309         Fix problems reported by Sam Steingold in
77310         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77311         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77312         assumed that reg_errcode_t is a signed type, which is not
77313         necessarily true if _XOPEN_SOURCE is not defined.
77314         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77315         since some compilers warn about it otherwise.
77316
77317 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77320         (init_word_char, create_initial_state, duplicate_node_closure):
77321         (fetch_token, peek_token_bracket, build_range_exp):
77322         (build_collating_symbol): Remove forward decls; no longer needed
77323         now that we use prototypes.
77324
77325         * lib/regcomp.c:
77326         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77327         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77328         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77329         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77330         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77331         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77332         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77333         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77334         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77335         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77336         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77337         (build_charclass, build_charclass_op, fetch_number, create_tree):
77338         (create_token_tree, mark_opt_subexp, duplicate_tree):
77339         Use prototypes rather than old-style definitions.
77340
77341         * lib/regex_internal.c:
77342         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77343         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77344         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77345         (re_string_reconstruct, re_string_peek_byte_case):
77346         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77347         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77348         (re_node_set_init_copy, re_node_set_add_intersect):
77349         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77350         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77351         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77352         (re_acquire_state, re_acquire_state_context, register_state):
77353         (create_ci_newstate, create_cd_newstate, free_state):
77354         Likewise.
77355         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77356         re_search_2):
77357         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77358         (re_search_internal, prune_impossible_nodes):
77359         (acquire_init_state_context, check_matching, static):
77360         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77361         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77362         (update_regs, sift_states_backward, build_sifted_states):
77363         (clean_state_log_if_needed, merge_state_array):
77364         (update_cur_sifted_state, add_epsilon_src_nodes):
77365         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77366         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77367         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77368         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77369         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77370         (check_arrival, check_arrival_add_next_nodes):
77371         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77372         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77373         (check_node_accept_bytes, check_node_accept, extend_buffers):
77374         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77375         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77376         (sift_ctx_init):
77377         Likewise.
77378
77379         * lib/regex_internal.h:
77380         (re_string_allocate, re_string_construct, re_string_reconstruct):
77381         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77382         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77383         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77384         (re_string_context_at, re_string_peek_byte_case):
77385         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77386         is defined, since we now use prototypes always.
77387
77388         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77389         C89 or better.  All uses removed.
77390
77391 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * config/srclist.txt: Add glibc bugs 1220-1227.
77394
77395 2005-08-20  Jim Meyering  <jim@meyering.net>
77396
77397         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77398         of unused local, dfa.
77399
77400 2005-08-20  Bruno Haible  <bruno@clisp.org>
77401
77402         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77403
77404 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77407         (re_node_set_insert_last, re_dfa_add_node):
77408         Rename local variables to avoid GCC shadowing warnings.
77409
77410 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77411
77412         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77413         [defined lint]: Suppress bogus uninitialized-variable warnings.
77414
77415         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77416         and let the caller return REG_ESPACE if out of space.  This
77417         removes an uninitialied-variable warning with GCC 4.0.1, and also
77418         avoids taking the address of a local variable.  All callers
77419         changed.
77420
77421 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77424         $LIBCSRC/posix/regexec.c.
77425         Add glibc bug 1217 for regcomp.c.
77426
77427 2005-08-19  Jim Meyering  <jim@meyering.net>
77428
77429         * lib/regexec.c (proceed_next_node): Redo local variables to
77430         avoid GCC shadowing warnings.
77431
77432 2005-08-18  Bruno Haible  <bruno@clisp.org>
77433
77434         * lib/strstr.c (strstr): Fix return value in multibyte case.
77435         * lib/strcasestr.c (strcasestr): Likewise.
77436
77437 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77440
77441 2005-08-17  Jim Meyering  <jim@meyering.net>
77442
77443         Make the %s format (seconds since the epoch) work for a negative
77444         number and when used with a zero-padded field width, e.g. %015s.
77445
77446         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77447         label so that it precedes the code to set `digits'.  Otherwise,
77448         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77449         print `00-22'.  Now, it prints `-0022', as it should.
77450
77451 2005-08-17  Bruno Haible  <bruno@clisp.org>
77452
77453         * modules/strstr (Files): Add m4/mbrtowc.m4.
77454         (Depends-on): Add mbuiter.
77455
77456 2005-08-17  Bruno Haible  <bruno@clisp.org>
77457
77458         * modules/strcasestr: New file.
77459         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77460         strcasestr.
77461
77462 2005-08-17  Bruno Haible  <bruno@clisp.org>
77463
77464         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77465
77466 2005-08-17  Bruno Haible  <bruno@clisp.org>
77467
77468         * modules/mbuiter: New file.
77469         * MODULES.html.sh (Extended multibyte and wide character utilities):
77470         Add mbuiter.
77471
77472 2005-08-17  Bruno Haible  <bruno@clisp.org>
77473
77474         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77475         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77476
77477 2005-08-17  Bruno Haible  <bruno@clisp.org>
77478
77479         * m4/strcasestr.m4: New file.
77480
77481 2005-08-17  Bruno Haible  <bruno@clisp.org>
77482
77483         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77484         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77485
77486 2005-08-17  Bruno Haible  <bruno@clisp.org>
77487
77488         * lib/strcasestr.h: New file.
77489         * lib/strcasestr.c: New file.
77490
77491 2005-08-17  Bruno Haible  <bruno@clisp.org>
77492
77493         * lib/strcasecmp.c: Use mbuiter.h.
77494
77495 2005-08-17  Bruno Haible  <bruno@clisp.org>
77496
77497         * lib/mbuiter.h: New file.
77498
77499 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77502         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77503         and gl_GETOPT are both invoked via different paths (as happens
77504         with GNU tar CVS because it uses both argp and getopt), the former
77505         wins.
77506
77507 2005-08-16  Bruno Haible  <bruno@clisp.org>
77508
77509         * modules/tls: New file.
77510         * MODULES.html.sh (Multithreading): Add tls.
77511
77512 2005-08-16  Bruno Haible  <bruno@clisp.org>
77513
77514         * modules/strnlen1: New file.
77515         * MODULES.html.sh (String handling): Add strnlen1.
77516
77517 2005-08-16  Bruno Haible  <bruno@clisp.org>
77518
77519         * modules/strcase (Files): Add m4/mbrtowc.m4.
77520         (Depends-on): Add strnlen1, mbchar.
77521
77522 2005-08-16  Bruno Haible  <bruno@clisp.org>
77523
77524         * modules/mbiter: New file.
77525         * MODULES.html.sh (Extended multibyte and wide character utilities):
77526         Add mbiter.
77527
77528 2005-08-16  Bruno Haible  <bruno@clisp.org>
77529
77530         * modules/mbfile: New file.
77531         * MODULES.html.sh (Extended multibyte and wide character utilities):
77532         Add mbfile.
77533
77534 2005-08-16  Bruno Haible  <bruno@clisp.org>
77535
77536         * modules/mbchar: New file.
77537         * MODULES.html.sh (Extended multibyte and wide character utilities):
77538         New section.
77539
77540 2005-08-16  Bruno Haible  <bruno@clisp.org>
77541
77542         * m4/tls.m4: New file, from GNU gettext.
77543
77544 2005-08-16  Bruno Haible  <bruno@clisp.org>
77545
77546         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77547         always.
77548         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77549
77550 2005-08-16  Bruno Haible  <bruno@clisp.org>
77551
77552         * m4/mbiter.m4: New file.
77553
77554 2005-08-16  Bruno Haible  <bruno@clisp.org>
77555
77556         * m4/mbfile.m4: New file.
77557
77558 2005-08-16  Bruno Haible  <bruno@clisp.org>
77559
77560         * m4/mbchar.m4: New file.
77561
77562 2005-08-16  Bruno Haible  <bruno@clisp.org>
77563
77564         * lib/tls.h: New file, from GNU gettext.
77565         * lib/tls.c: New file, from GNU gettext.
77566
77567 2005-08-16  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/strnlen1.h: New file.
77570         * lib/strnlen1.c: New file.
77571
77572 2005-08-16  Bruno Haible  <bruno@clisp.org>
77573
77574         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77575         (mbi_init): Update.
77576         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77577         NUL byte, not after it.
77578
77579 2005-08-16  Bruno Haible  <bruno@clisp.org>
77580
77581         * lib/strcase.h (strcasecmp): Add note in comments.
77582         * lib/strncasecmp.c: Use code from strcasecmp.c.
77583         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77584         (strcasecmp): Work correctly in multibyte locales.
77585
77586 2005-08-16  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/mbiter.h: New file.
77589
77590 2005-08-16  Bruno Haible  <bruno@clisp.org>
77591
77592         * lib/mbfile.h: New file.
77593
77594 2005-08-16  Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/mbchar.h: New file.
77597         * lib/mbchar.c: New file.
77598
77599 2005-08-16  Bruno Haible  <bruno@clisp.org>
77600
77601         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77602         the valid ones. Makes the comparison operations transitive:
77603         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77604         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77605
77606 2005-08-15  Simon Josefsson  <jas@extundo.com>
77607
77608         * modules/ssize_t (License): Change to 'unlimited'.
77609
77610         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77611
77612 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77615         Add comments for each pending glibc patch.
77616
77617 2005-08-15  Bruno Haible  <bruno@clisp.org>
77618
77619         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77620         __cplusplus is defined.
77621
77622 2005-08-14  Jim Meyering  <jim@meyering.net>
77623
77624         Sync from coreutils.
77625
77626         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77627         Use the hash-table-based cycle-detection code not just when
77628         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77629         Reported by James Youngman in
77630         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77631         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77632         FTS_TIGHT_CYCLE_CHECK.
77633         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77634         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77635         once again.
77636         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77637         * lib/fts.c (fd_safer): Remove decl.
77638         Include fcntl--.h rather than unistd-safer.h
77639         (fts_safe_changedir): Don't call fd_safer; no longer needed
77640         now that we include fcntl--.h.
77641
77642 2005-08-12  Simon Josefsson  <jas@extundo.com>
77643
77644         * modules/getndelim2: Use ssize_t module.
77645         * modules/getnline: Likewise.
77646         * modules/safe-read: Likewise.
77647         * modules/xreadlink: Likewise.
77648
77649         * modules/ssize_t: New file.
77650
77651 2005-08-12  Simon Josefsson  <jas@extundo.com>
77652
77653         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77654
77655 2005-08-12  Simon Josefsson  <jas@extundo.com>
77656
77657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77658         ssize_t.
77659
77660 2005-08-12  Simon Josefsson  <jas@extundo.com>
77661
77662         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77663         readline, getdelim and check_version.
77664         (Support for systems lacking ISO C 99: Sizes of integer types):
77665         Add size_max.
77666
77667 2005-08-12  Bruno Haible  <bruno@clisp.org>
77668
77669         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77670
77671 2005-08-11  Simon Josefsson  <jas@extundo.com>
77672
77673         * modules/readline: New file.
77674
77675         * modules/strnlen (Files): Add strnlen.h.
77676
77677 2005-08-11  Simon Josefsson  <jas@extundo.com>
77678
77679         * m4/readline.m4: New file.
77680
77681 2005-08-11  Simon Josefsson  <jas@extundo.com>
77682
77683         * lib/readline.h, readline.c: New file.
77684
77685 2005-08-11  Simon Josefsson  <jas@extundo.com>
77686
77687         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77688         gl_AVOID.
77689
77690 2005-08-11  Bruno Haible  <bruno@clisp.org>
77691
77692         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77693
77694 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77695
77696         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77697
77698 2005-08-10  Simon Josefsson  <jas@extundo.com>
77699
77700         * tests/test-iconvme.c: New file.
77701
77702 2005-08-10  Simon Josefsson  <jas@extundo.com>
77703
77704         * m4/strnlen.m4: New file.
77705
77706         * m4/strndup.m4: Don't check for strnlen declaration, done in
77707         strnlen.m4.
77708
77709 2005-08-10  Simon Josefsson  <jas@extundo.com>
77710
77711         * lib/strndup.c: Use strnlen.h.
77712
77713         * lib/strnlen.h: New file.
77714
77715 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77716
77717         * README: Typos.
77718
77719 2005-08-02  Simon Josefsson  <jas@extundo.com>
77720
77721         * modules/readline: New file.
77722
77723 2005-08-02  Simon Josefsson  <jas@extundo.com>
77724
77725         * modules/getdelim: New file.
77726
77727         * modules/getline: Rewrite, don't use getndelim2.
77728
77729 2005-08-02  Simon Josefsson  <jas@extundo.com>
77730
77731         * m4/getline.m4: Separate out getdelim stuff into separate module.
77732
77733         * m4/getdelim.m4: New file.
77734
77735 2005-08-02  Simon Josefsson  <jas@extundo.com>
77736
77737         * lib/getline.h, getline.c: Rewrite.
77738
77739         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77740
77741 2005-07-31  Bruno Haible  <bruno@clisp.org>
77742
77743         * lib/lock.h (gl_lock_initializer): New macro.
77744         (gl_lock_define_initialized): Use it.
77745         (gl_rwlock_initializer): New macro.
77746         (gl_rwlock_define_initialized): Use it.
77747         (gl_recursive_lock_initializer): New macro.
77748         (gl_recursive_lock_define_initialized): Use it.
77749
77750 2005-07-30  Karl Berry  <karl@gnu.org>
77751
77752         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77753         Report from Ben Pfaff, regarding getopt.
77754
77755 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77756
77757         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77758         normal way.
77759         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77760         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77761         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77762         (gl_GETOPT): Use the new macros.  Most of the implementation
77763         is moved to the new macros.  This is for programs like Emacs
77764         that don't want all the functionality of gl_GETOPT.
77765
77766 2005-07-26  Bruno Haible  <bruno@clisp.org>
77767
77768         * m4/lock.m4: Update from GNU gettext.
77769
77770 2005-07-26  Bruno Haible  <bruno@clisp.org>
77771
77772         * lib/lock.h: Update from GNU gettext.
77773         * lib/lock.c: Update from GNU gettext.
77774
77775 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77778         obsolescent AC_TRY_RUN.  Include the default includes files, for
77779         'exit'.
77780
77781 2005-07-24  Bruno Haible  <bruno@clisp.org>
77782
77783         * modules/visibility: New file.
77784         * MODULES.html.sh (Misc): Add visibility.
77785
77786 2005-07-24  Bruno Haible  <bruno@clisp.org>
77787
77788         * m4/visibility.m4: New file.
77789
77790 2005-07-24  Bruno Haible  <bruno@clisp.org>
77791
77792         * doc/visibility.texi: New file.
77793
77794 2005-07-22  Bruno Haible  <bruno@clisp.org>
77795
77796         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77797         $(ALLOCA_H), redundant through BUILT_SOURCES.
77798         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77799         redundant through BUILT_SOURCES.
77800         * modules/byteswap (Makefile.am): Remove explicit dependency on
77801         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77802         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77803         $(FNMATCH_H), redundant through BUILT_SOURCES.
77804         * modules/getopt (Makefile.am): Remove explicit dependency on
77805         $(GETOPT_H), redundant through BUILT_SOURCES.
77806         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77807         redundant through BUILT_SOURCES.
77808         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77809         redundant through BUILT_SOURCES.
77810         * modules/stdbool (Makefile.am): Remove explicit dependency on
77811         $(STDBOOL_H), redundant through BUILT_SOURCES.
77812         * modules/stdint (Makefile.am): Remove explicit dependency on
77813         $(STDINT_H), redundant through BUILT_SOURCES.
77814         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77815         Remove explicit dependency on $(SYSEXITS_H).
77816         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77817
77818 2005-07-18  Simon Josefsson  <jas@extundo.com>
77819
77820         * lib/check-version.c (check_version): Accept identical versions too.
77821
77822 2005-07-18  Bruno Haible  <bruno@clisp.org>
77823
77824         * modules/lock: New file.
77825         * MODULES.html.sh (Multithreading): New section.
77826
77827 2005-07-18  Bruno Haible  <bruno@clisp.org>
77828
77829         * m4/lock.m4: New file, from GNU gettext.
77830
77831 2005-07-18  Bruno Haible  <bruno@clisp.org>
77832
77833         * lib/lock.h: New file, from GNU gettext.
77834         * lib/lock.c: New file, from GNU gettext.
77835
77836 2005-07-18  Bruno Haible  <bruno@clisp.org>
77837
77838         * lib/lock.h (gl_once_t): New type.
77839         (gl_once_define, gl_once): New macros.
77840         * lib/lock.c (fresh_once): New variable.
77841         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77842         functions.
77843
77844 2005-07-16  Simon Josefsson  <jas@extundo.com>
77845
77846         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77847         workaround, suggested by Bruno.
77848
77849 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * modules/xalloc (Depends-on): Add xalloc-die.
77852         * modules/xvasprintf (Depends-on): Add xalloc-die.
77853
77854 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77857         with a minor change.
77858
77859 2005-07-15  Bruno Haible  <bruno@clisp.org>
77860
77861         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77862         When using lib/poll.c, define poll as rpl_poll.
77863
77864 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * modules/argp (Depends-on): Remove unlocked-io.
77867
77868 2005-07-14  Derek Price  <derek@ximbiot.com>
77869
77870         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77871         for glob symlink bug.
77872
77873 2005-07-14  Bruno Haible  <bruno@clisp.org>
77874
77875         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77876         Instead, test for *_unlocked function declarations directly.
77877
77878 2005-07-11  Simon Josefsson  <jas@extundo.com>
77879
77880         * modules/size_max: New file.
77881
77882         * modules/xsize: Depend on size_max module for size_max.m4.
77883
77884 2005-07-11  Simon Josefsson  <jas@extundo.com>
77885
77886         * lib/size_max.h: New file.
77887
77888 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77891         copyright symbol and the year.
77892         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77893         (version_etc_va): Use parameterized copyright notice.
77894         Reword to conform to the current GNU coding standards.
77895
77896 2005-07-11  Karl Berry  <karl@gnu.org>
77897
77898         * doc/gnulib.texi (Quoting): new node.
77899         (Initial import): more info, from Patrice.
77900
77901 2005-07-11  Bruno Haible  <bruno@clisp.org>
77902
77903         * gnulib-tool (func_usage): Document option --avoid.
77904         (Command line options): Handle --avoid.
77905         (func_acceptable): New function.
77906         (func_modules_transitive_closure): Use it.
77907
77908 2005-07-11  Bruno Haible  <bruno@clisp.org>
77909
77910         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77911         Reported by Jim Meyering.
77912
77913 2005-07-10  Bruno Haible  <bruno@clisp.org>
77914
77915         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77916         Needed when size_t is smaller than 'unsigned int'.
77917         Reported by Paul Eggert.
77918
77919 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77920
77921         * modules/argp (Depends-on): Add unlocked-io
77922
77923 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77924
77925         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77926         block of defines.
77927
77928 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77931         fix now.
77932
77933 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77934         and Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77937         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77938
77939 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * modules/regex (Files): Add lib/regex_internal.c,
77942         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77943         (Depends-on): Add extensions.
77944         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77945
77946 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77947
77948         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77949         pathconf.
77950         * m4/same.m4 (gl_SAME): Likewise.
77951         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77952
77953         * m4/regex.m4: Adjust to new libc regex implementation.
77954         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77955         all the .c and .h parts of (the new) regex.
77956         Quote the m4 stuff better.
77957         Check for RE_ICASE bug of old gnulib.
77958         Check for REG_STARTEND of recent libc.
77959         Rename local variables from jm_* to gl_*.
77960         Quote operand of "test -f".
77961         Say "recent enough" version of libc, not "version 2".
77962         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77963         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77964         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77965         Remove check for btowc, isascii.
77966         Require AM_LANGINFO_CODESET.
77967
77968 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * lib/regex.c, regex.h: Sync from libc.
77971         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77972         * lib/regexec.c:
77973         New files, synced from libc, except that regex_internal.h
77974         currently has a small porting fix.
77975
77976 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77979         regex_internal.c, regexec.c.
77980         Add regex_internal.h too, but as a comment, since the libc version
77981         is currently broken in gnulib mode.
77982
77983 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77984
77985         Support programs like Emacs that use gnulib but not gettext.
77986         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77987         * modules/gettext-h: New file.
77988         * modules/gettext (Files): Remove lib/gettext.h.
77989         (Depends-on): Add gettext-h.
77990         (Makefile.am): Remove lib_SOURCES.
77991         * modules/argmatch, modules/c-stack, modules/closeout:
77992         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77993         * modules/execute, modules/file-type, modules/getaddrinfo:
77994         * modules/getopt, modules/human, modules/javacomp:
77995         * modules/javaexec, modules/mkdir-p, modules/obstack:
77996         * modules/openat, modules/pagealign_alloc, modules/pipe:
77997         * modules/quotearg, modules/regex, modules/rpmatch:
77998         * modules/unicodeio, modules/userspec, modules/version-etc:
77999         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78000         * modules/xsetenv:
78001         Depend on gettext-h, not gettext.
78002
78003 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * gnulib-tool (func_import): Add support for 'public domain' license.
78006         * modules/alloca, modules/atexit, modules/memmove:
78007         Now public domain, not GPL.
78008         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78009         * modules/realloc, modules/strerror, modules/strtod:
78010         Now LGPL, not GPL.
78011
78012 2005-07-05  Bruno Haible  <bruno@clisp.org>
78013
78014         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78015         autoconf CVS. Needed for mingw.
78016
78017 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         Remove the dependency of the strftime module on the tzset module.
78020         * modules/strftime (Depends-on): Remove dependency on tzset.
78021
78022 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         Remove the dependency of the strftime module on the tzset module.
78025         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78026         gl_FUNC_TZSET_CLOBBER.
78027
78028 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         Remove the dependency of the strftime module on the tzset module.
78031         * lib/strftime.c (my_strftime)
78032         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78033         Copy the input structure, to work around some of the bug with
78034         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78035         Solaris releases, you should also use the tzset module, but we won't
78036         require it as a dependency any more since we don't want LGPLed code
78037         to depend on GPLed code.
78038
78039 2005-07-02  Jim Meyering  <jim@meyering.net>
78040
78041         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78042         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78043         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78044         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78045
78046 2005-07-02  Jim Meyering  <jim@meyering.net>
78047
78048         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78049
78050 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78053         declares only 'struct timespec;' (!).
78054
78055 2005-07-01  Jim Meyering  <jim@meyering.net>
78056
78057         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78058         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78059         * lib/save-cwd.c, tempname.c:
78060         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78061         and don't include <sys/file.h>).
78062
78063 2005-06-29  Jim Meyering  <jim@meyering.net>
78064
78065         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78066         type name.  Use the variable name instead.
78067         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78068         Likewise.
78069
78070 2005-06-28  Simon Josefsson  <jas@extundo.com>
78071
78072         * modules/check-version (Files): Add check-version.m4.
78073
78074 2005-06-28  Simon Josefsson  <jas@extundo.com>
78075
78076         * m4/check-version.m4: New file, suggested by Jim Meyering
78077         <jim@meyering.net>.
78078
78079 2005-06-28  Simon Josefsson  <jas@extundo.com>
78080
78081         * lib/check-version.h, lib/check-version.c: New files.
78082
78083 2005-06-28  Simon Josefsson  <jas@extundo.com>
78084
78085         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78086         collision with global variable.  Better indentation.  Don't
78087         increment buffer pointer beyond buffer end.  Based on comments
78088         from Paul Eggert <eggert@cs.ucla.edu>.
78089
78090         * lib/base64.h: Indent.
78091
78092 2005-06-28  Simon Josefsson  <jas@extundo.com>
78093
78094         * doc/gnulib.texi (Library version handling): New section.
78095
78096 2005-06-28  Jim Meyering  <jim@meyering.net>
78097
78098         * check-module (find_included_lib_files): Hard-code another
78099         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78100         but modules/fts-lgpl (correctly) does not list those files.
78101
78102         * modules/canonicalize (Files): Add lib/pathmax.h.
78103
78104 2005-06-25  Simon Josefsson  <jas@extundo.com>
78105
78106         * modules/check-version: New file.
78107
78108 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78111         initializer of struct addrinfo, as an indication that we don't
78112         care how many members the structure has.
78113
78114 2005-06-24  Derek Price  <derek@ximbiot.com>
78115         and Bruno Haible  <bruno@clisp.org>
78116
78117         Remove stat module & update lstat.
78118         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78119         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78120         * m4/stat.m4: Remove this file.
78121
78122 2005-06-24  Derek Price  <derek@ximbiot.com>
78123         and Bruno Haible  <bruno@clisp.org>
78124
78125         Remove stat module & update lstat.
78126         * lib/stat.c: Remove this file...
78127         (slash_aware_lstat): ...moving this content and its support...
78128         * lib/lstat.c (rpl_lstat): ...into here.
78129         * lib/lstat.h: New file.
78130
78131 2005-06-24  Derek Price  <derek@ximbiot.com>
78132         and Bruno Haible  <bruno@clisp.org>
78133
78134         Remove stat module & update lstat.
78135         * config/srclist.txt (libc sources): Remove stat.
78136
78137 2005-06-24  Derek Price  <derek@ximbiot.com>
78138         and Bruno Haible  <bruno@clisp.org>
78139
78140         Remove stat module & update lstat.
78141         * MODULES.html.sh (stat): Remove.
78142         * MODULES.html: Regenerated.
78143         * modules/lstat (Description): Correct function name.
78144         (Files): Add "lstat.h".
78145         (Depends-on): Remove stat, add xalloc, stat-macros.
78146         * modules/stat: Remove this file.
78147         (Include): Add "lstat.h", remove <sys/stat.h>.
78148
78149 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78152         (ranged_convert): Don't save conversion in a temporary struct.
78153         This causes a warning with GCC 4.0.0, and anyway in the typical
78154         case it's not worth the extra 100 bytes or so of code.
78155         (ranged_convert, __mktime_internal): When calling a function via a
78156         pointer P, use P () rather than (*P) (), as we now assume C89 or
78157         better.
78158
78159 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78162         "who -r" failed to give output.  Problem reported by Tim Waugh.
78163
78164         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78165         (xcalloc): Use it to avoid needless tests.
78166         Problem reported by Jim Meyering.
78167
78168 2005-06-20  Derek Price  <derek@ximbiot.com>
78169
78170         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78171         unnecessary for Autoconfs > 2.59c.
78172
78173 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78174
78175         * lib/argp.h (__option_is_short): Check upper limit of
78176         __key. Isprint() requires its argument to have the value
78177         of an unsigned char or EOF.
78178
78179 2005-06-16  Jim Meyering  <jim@meyering.net>
78180
78181         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78182         when either N or S is zero.
78183
78184 2005-06-16  Derek Price  <derek@ximbiot.com>
78185
78186         * m4/bison.m4: Declare YACC & YFLAGS precious.
78187
78188 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78191         multibyte string or pattern, fall back on unibyte matching.
78192         Problem reported by James Youngman.
78193
78194 2005-06-08  Bruno Haible  <bruno@clisp.org>
78195
78196         * modules/csharpcomp: New file.
78197         * MODULES.html.sh (C#): Add csharpcomp.
78198
78199 2005-06-08  Bruno Haible  <bruno@clisp.org>
78200
78201         * m4/csharpcomp.m4: New file, from GNU gettext.
78202
78203 2005-06-08  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/csharpcomp.h: New file, from GNU gettext.
78206         * lib/csharpcomp.c: New file, from GNU gettext.
78207         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78208
78209 2005-06-08  Bruno Haible  <bruno@clisp.org>
78210
78211         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78212         warning on mingw.
78213
78214 2005-06-07  Derek Price  <derek@ximbiot.com>
78215
78216         Sync from CVS.
78217         * lib/glob_.h: Indent nested #ifdef.
78218
78219 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         Sync from coreutils.
78222         Use "file name" when talking about file names, instead of "filename"
78223         or "path", as per the GNU coding standards.
78224         * lib/mkdir-p.c: Renamed from makepath.c.
78225         (make_dir_parents): Renamed from make_path.  All callers changed.
78226         * lib/mkdir-p.h: Likewise.  All includers changed.
78227         * lib/filenamecat.c: Renamed from path-concat.c.
78228         (file_name_concat): Renamed from path_concat.  All callers changed.
78229         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78230         * lib/filenamecat.h: Likewise.  All includers changed.
78231         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78232         in comments or local variable names.
78233         * lib/basename.c: Likewise.
78234         * lib/canonicalize.c, canonicalize.h: Likewise.
78235         * lib/dirname.c, dirname.h: Likewise.
78236         * lib/euidaccess.c: Likewise.
78237         * lib/exclude.c: Likewise
78238         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78239         * lib/fsusage.c, fsuage.h: Likewise.
78240         * lib/fts.c, fts_.h: Likewise.
78241         * lib/getcwd.c: Likewise.
78242         * lib/getloadavg.c: Likewise.
78243         * lib/mkstemp.c: Likewise.
78244         * lib/mountlist.c, mountlist.h: Likewise.
78245         * lib/openat.c, openat.h: Likewise.
78246         * lib/readlink-stub.c: Likewise.
78247         * lib/readutmp.c, readutmp.h: Likewise.
78248         * lib/rename.c: Likewise.
78249         * lib/rmdir.c: Likewise.
78250         * lib/same.c: Likewise.
78251         * lib/savedir.c: Likewise.
78252         * lib/stripslash.c: Likewise.
78253         * lib/tempname.c: Likewise.
78254         * lib/xreadlink.c: Likewise.
78255         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78256         All uses changed.
78257         * lib/exclude.h: Likewise.
78258
78259         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78260         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78261         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78262         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78263         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78264         files have been getting away with it for years (MORE/BSD 4.3
78265         is extinct now).
78266         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78267         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78268
78269         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78270         Define to 256, not 255, as per modern POSIX.
78271
78272 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         Sync from coreutils.
78275         Use "file name" when talking about file names, instead of "filename"
78276         or "path", as per the GNU coding standards.
78277         * MODULES.html.sh: mkdir-p renamed from makepath.
78278         filenamecat renamed from path-concat.
78279         * modules/filenamecat: Renamed from modules/path-concat.
78280         (Files): filenamecat.h and filenamecat.c renamed from
78281         path-concat.h and path-concat.c.
78282         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78283         (Include): filenamecat.h, not path-concat.h.
78284         * modules/mkdir-p: Renamed from modules/makepath.
78285         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78286         makepath.c.
78287         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78288         (Include): mkdir-p.h, not makepath.h.
78289
78290 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         Sync from coreutils.
78293         * m4/mkdir-p.m4: Renamed from makepath.m4.
78294         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78295         Rename files from makepath.c to mkdir-p.c, and from
78296         makepath.h to mkdir-p.h.
78297         * m4/filenamecat.m4: Renamed from path-concat.m4.
78298         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78299         Rename files from path-concat.c to filenamecat.c,
78300         and from path-concat.h to filenamecat.h.
78301         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78302         "file name" in local variables or comments.
78303         * m4/rename.m4: Likewise.
78304
78305 2005-06-01  Bruno Haible  <bruno@clisp.org>
78306
78307         * modules/csharpexec: New file.
78308         * MODULES.html.sh (C#): New section.
78309
78310 2005-06-01  Bruno Haible  <bruno@clisp.org>
78311
78312         * m4/csharp.m4: New file, from GNU gettext.
78313         * m4/csharpexec.m4: New file, from GNU gettext.
78314
78315 2005-06-01  Bruno Haible  <bruno@clisp.org>
78316
78317         * lib/csharpexec.h: New file, from GNU gettext.
78318         * lib/csharpexec.c: New file, from GNU gettext.
78319         * lib/csharpexec.sh.in: New file, from GNU gettext.
78320
78321 2005-05-31  Derek Price  <derek@ximbiot.com>
78322             Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         Sync from cvs.
78325         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78326
78327 2005-05-31  Derek Price  <derek@ximbiot.com>
78328             Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         Sync from cvs.
78331         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78332
78333 2005-05-29  Derek Price  <derek@ximbiot.com>
78334
78335         * config/srclist.txt (glob_.h, glob.c): Add these files.
78336
78337 2005-05-29  Derek Price  <derek@ximbiot.com>
78338
78339         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78340         * modules/glob: New file.
78341         * modules/getlogin_r: Add link to POSIX spec in description.
78342
78343 2005-05-29  Derek Price  <derek@ximbiot.com>
78344             Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * m4/glob.m4: New file.
78347
78348 2005-05-29  Derek Price  <derek@ximbiot.com>
78349             Paul Eggert  <eggert@cs.ucla.edu>
78350
78351         * lib/glob_.h, lib/glob.c: New files.
78352
78353 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78356         * modules/fts-lgpl (Depends-on): Remove gettext.
78357
78358 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78361         and don't require gt_INTTYPES_PRI.
78362
78363 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78366
78367         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78368         the configuration hassle isn't worth it.
78369         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78370         (LONGEST_MODIFIER, PRIuMAX): Remove.
78371
78372 2005-05-27  Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78375
78376 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78379         _POSIX_PTHREAD_SEMANTICS for Solaris.
78380
78381 2005-05-25  Derek Price  <derek@ximbiot.com>
78382
78383         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78384
78385 2005-05-25  Derek Price  <derek@ximbiot.com>
78386             Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78389         * lib/getlogin_r.c, getlogin_r.h: New files.
78390
78391 2005-05-25  Bruno Haible  <bruno@clisp.org>
78392             Derek Price  <derek@ximbiot.com>
78393
78394         * lib/getlogin_r.h: Simplify API documentation.
78395
78396 2005-05-23  Derek Price  <derek@ximbiot.com>
78397
78398         * modules/minmax (Files): Add m4/minmax.m4.
78399         (configure.ac): Add gl_MINMAX.
78400
78401 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78402
78403         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78404         so that unistd-safer.h (GPL'ed code) need not be included.
78405
78406 2005-05-22  Bruno Haible  <bruno@clisp.org>
78407
78408         * m4/minmax.m4: New file.
78409         Based on a patch by Derek Price <derek@ximbiot.com>.
78410
78411 2005-05-22  Bruno Haible  <bruno@clisp.org>
78412
78413         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78414         (INT64_MIN): Fix definition.
78415         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78416
78417         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78418         NEED_SIGNED_INT_TYPES.
78419
78420         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78421         HAVE_SYSTEM_INTTYPES.
78422
78423 2005-05-22  Bruno Haible  <bruno@clisp.org>
78424
78425         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78426         Also include <sys/param.h> if it defines MIN, MAX.
78427         Based on a patch by Derek Price <derek@ximbiot.com>.
78428
78429 2005-05-21  Jim Meyering  <jim@meyering.net>
78430
78431         * modules/fts (Files): Add m4/inttypes-pri.m4.
78432         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78433
78434 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         New fts module.
78437         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78438         (setup_dir, free_dir): New functions.
78439         (enter_dir, leave_dir): Define trivial
78440         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78441         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78442         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78443         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78444         Move to fts-cycle.c.
78445         (fts_open): Use setup_dir.
78446         (fts_close): Use free_dir.
78447         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78448         This adds a label and some gotos, but the alternatives were messier.
78449         Check for memory allocation failure when entering a dir.
78450         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78451         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78452         (FTS): New member fts_cycle, that is a union that contains the
78453         old active_dir_ht and cycle_state.  All uses changed to mention
78454         fts_cycle.ht and fts_cycle.state.
78455         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78456         fts.c, with the following changes:
78457         (setup_dir, free_dir): New functions.
78458         (enter_dir): Now returns bool.  Return true if successful, false
78459         if memory exhausted.  All callers changed.
78460         Do not bother partly cleaning up on
78461         memory allocation failure; that is free_dir's job.
78462         However, free ad if hash_insert fails, to avoid memory leak.
78463         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78464         fts->fts_options to see which union member to use.
78465
78466 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78469         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78470
78471 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78472
78473         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78474
78475 2005-05-20  Jim Meyering  <jim@meyering.net>
78476
78477         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78478         Now a macro, to pacify GCC.
78479
78480 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78481
78482         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78483         of -1.
78484
78485 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78486
78487         * lib/chown.c (rpl_chown): Return -1 on failure.
78488
78489 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78492         Don't check for stddef.h.
78493         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78494         don't use its results.
78495         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78496         since we include them unconditionally.  Don't require
78497         AM_STDBOOL_H, since stdbool is a prerequisite.
78498         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78499         since we assume C89 or better.
78500         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78501         as we don't use their results.
78502         Don't check for fchdir, memmove, memset, strrchr, as we use
78503         them unconditionally.
78504         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78505         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78506
78507 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78508
78509         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78510         Include <stddef.h> unconditionally, since we assume C89 now.
78511         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78512         * lib/fts.c: Include fts_.h first, to check interface.
78513         Do not include intprops.h; no longer needed.
78514         Include cycle-check.h and hash.h, since fts_.h no longer does.
78515         Remove unnecessary casts of closedir to void.
78516         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78517         decide whether to decrement nlinks.
78518         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78519         (FTS): Use struct hash_table * instead of Hash_table, so that
78520         we no longer need to include hash.h here.
78521
78522 2005-05-18  Jim Meyering  <jim@meyering.net>
78523
78524         * modules/dirfd (License): Change to LGPL.  Most of the code
78525         is already in the public domain.
78526
78527 2005-05-18  Jim Meyering  <jim@meyering.net>
78528
78529         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78530         Reported by Yoann Vandoorselaere.
78531
78532 2005-05-17  Jim Meyering  <jim@meyering.net>
78533
78534         * m4/fts.m4: New file, from coreutils.
78535
78536 2005-05-17  Jim Meyering  <jim@meyering.net>
78537
78538         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78539
78540 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         Sync from coreutils.
78543         * m4/unlinkdir.m4: New file.
78544
78545 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         Sync from coreutils.
78548         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78549         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78550         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78551         White space changes only.
78552         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78553         special.
78554         * lib/yesno.c: Include getline.h, not ctype.h.
78555         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78556         Use getline to remove arbitrary restriction on response length.
78557
78558 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * config/srclist-update: Spell out "Street" in FSF postal
78561         mail address; this is the style the FSF seems to prefer.
78562
78563         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78564         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78565         this updates FSF postal mail address.
78566
78567         Sync from coreutils.
78568         * modules/unlinkdir: New file.
78569         * modules/yesno (Depends-on): Add getline.
78570         * MODULES.html.sh (File system functions): Add unlinkdir.
78571
78572 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78575         lib/strsep.h:
78576         Change the initial comment to refer to GPL, not LGPL.
78577         gnulib-tool will change it to LGPL as needed.
78578
78579         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78580         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78581         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78582         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78583         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78584         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78585         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78586         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78587         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78588         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78589         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78590         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78591         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78592         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78593         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78594         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78595         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78596         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78597         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78598         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78599         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78600         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78601         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78602         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78603         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78604         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78605         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78606         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78607         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78608         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78609         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78610         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78611         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78612         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78613         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78614         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78615         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78616         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78617         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78618         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78619         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78620         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78621         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78622         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78623         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78624         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78625         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78626         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78627         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78628         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78629         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78630         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78631         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78632         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78633         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78634         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78635         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78636         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78637         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78638         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78639         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78640         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78641         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78642         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78643         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78644         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78645         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78646         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78647         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78648         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78649         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78650         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78651         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78652         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78653         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78654         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78655         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78656         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78657         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78658         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78659         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78660         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78661         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78662         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78663         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78664         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78665         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78666         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78667         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78668         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78669         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78670         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78671         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78672         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78673         lib/yesno.c, lib/yesno.h:
78674         Update FSF postal mail address.
78675
78676 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78679         tests/test-memmem.c, tests/test-stpncpy.c:
78680         Update FSF postal mail address.
78681
78682 2005-05-13  Bruno Haible  <bruno@clisp.org>
78683
78684         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78685         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78686         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78687         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78688         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78689         Add support for 64-bit integers in the MSVC compiler.
78690
78691 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78692
78693         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78694
78695 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78696
78697         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78698
78699 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * doc/getdate.texi (General date syntax): Don't say that date
78702         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78703         Problem reported by Nic Ferrier.
78704
78705 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78706
78707         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78708         specified in ai_socktype. Fix invalid ai_protocol
78709         check. ai_protocol is usually set to 0 or depending on
78710         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78711         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78712         ai_socktype / ai_protocol in the returned addrinfo structure.
78713
78714 2005-05-10  Simon Josefsson  <jas@extundo.com>
78715
78716         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78717         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78718
78719 2005-05-10  Karl Berry  <karl@gnu.org>
78720
78721         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78722         (from http://www.gnu.org/licenses).
78723         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78724         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78725         fdl.texi suffices.
78726
78727 2005-05-10  Karl Berry  <karl@gnu.org>
78728
78729         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78730         (COPYING.DOC): remove.
78731
78732         * config/srclist-update: new FSF address.
78733
78734 2005-05-10  Derek Price  <derek@ximbiot.com>
78735
78736         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78737         possible.
78738
78739 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78740             Bruno Haible  <bruno@clisp.org>
78741
78742         * modules/inet_ntop: New file.
78743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78744         inet_ntop.
78745
78746 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78747             Bruno Haible  <bruno@clisp.org>
78748
78749         * m4/inet_ntop.m4: New file.
78750
78751 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78752             Bruno Haible  <bruno@clisp.org>
78753
78754         * lib/inet_ntop.h: New file.
78755         * lib/inet_ntop.c: New file, from glibc with modifications.
78756
78757 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * modules/time_r (License): Change to LGPL.
78760         * modules/extensions (License): Change to LGPL.  Actually,
78761         the license is more permissive than that, but currently gnulib-tool
78762         doesn't know how to handle more-permissive licenses.
78763
78764         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78765         Problem reported by Dave Love.
78766
78767 2005-05-08  Jim Meyering  <jim@meyering.net>
78768
78769         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78770         blank.
78771
78772 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78773
78774         * modules/argmatch (Depends-on): Add stdbool.
78775         * modules/backupfile (Depends-on): Likewise.
78776         * modules/chdir-long (Depends-on): Likewise.
78777         * modules/closeout (Depends-on): Likewise.
78778         * modules/cycle-check (Depends-on): Likewise.
78779         * modules/dirname (Depends-on): Likewise.
78780         * modules/fnmatch (Depends-on): Likewise.
78781         * modules/fsusage (Depends-on): Likewise.
78782         * modules/fwriteerror (Depends-on): Likewise.
78783         * modules/getcwd (Depends-on): Likewise.
78784         * modules/getloadavg (Depends-on): Likewise.
78785         * modules/hard-locale (Depends-on): Likewise.
78786         * modules/makepath (Depends-on): Likewise.
78787         * modules/mountlist (Depends-on): Likewise.
78788         * modules/nanosleep (Depends-on): Likewise.
78789         * modules/posixtm (Depends-on): Likewise.
78790         * modules/quotearg (Depends-on): Likewise.
78791         * modules/readtokens (Depends-on): Likewise.
78792         * modules/readtokens0 (Depends-on): Likewise.
78793         * modules/readutmp (Depends-on): Likewise.
78794         * modules/save-cwd (Depends-on): Likewise.
78795         * modules/strftime (Depends-on): Likewise.
78796         * modules/userspec (Depends-on): Likewise.
78797         * modules/utimecmp (Depends-on): Likewise.
78798         * modules/xgetcwd (Depends-on): Likewise.
78799         * modules/xnanosleep (Depends-on): Likewise.
78800         * modules/xstrtod (Depends-on): Likewise.
78801         * modules/yesno (Depends-on): Likewise.
78802
78803 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78806         needless checks.
78807
78808 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78809
78810         Merge from coreutils.  Among other things,
78811         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78812         * lib/fd-safer.c: New file.
78813         * lib/fcntl-safer.h, open-safer.c: Remove.
78814         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78815         * lib/dup-safer.c: Include unistd-safer.h first.
78816         Don't include errno.h.
78817         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78818         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78819         * lib/file-type.c: Rely on file-type.h change.
78820         * lib/getloadavg.c: Include unistd-safer.h.
78821         (getloadavg): Use safer open.
78822         * lib/getusershell.c: Include "stdio-safer.h".
78823         (getusershell): Use safer fopen.
78824         * lib/long-options.c (long_options): Use NULL rather than 0.
78825         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78826         'free'.
78827         * lib/modechange.c: Likewise.
78828         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78829         (MODE_DONE): New constant.
78830         (struct mode_change): Remove 'next' member.
78831         (make_node_op_equals): New function; like the old one of the
78832         same name, except it allocates an array.
78833         (mode_compile, mode_create_from_ref): Use it.
78834         (mode_compile): Allocate result as an array, not a linked list.
78835         Parse octal string ourself, so that we catch mistakes like "+0".
78836         (mode_adjust): Arg is an array, not a linked list.
78837         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78838         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78839         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78840         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78841         Remove.  This is now stat-macros.h's job.
78842         (talloc): Remove.  All callers replaced by xalloc, so that
78843         our invokers don't have to worry about reporting memory failures.
78844         (make_node_op_equals): Remove.
78845         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78846         New constants.
78847         (struct mode_change): Moved here from modechange.h.
78848         (mode_append_entry): Remove.
78849         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78850         apps to have incorrect behavior.  Use simpler algorithm for head
78851         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78852         Detect more invalid usages rather than having somewhat-random behavior.
78853         Don't insert an "a=" action, as that leads to incorrect behavior.
78854         (mode_compile, mode_create_from_ref): Return NULL on error instead
78855         of an enum, since now there's only one way to have an error.  All
78856         callers changed.
78857         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78858         at the correct time.  Simplify calculation of "+u" and its ilk.
78859         Don't mishandle "+X".
78860         (mode_free): Remove "register" and localize decls.
78861         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78862         (struct mode_change): Move to modechange.c; callers don't
78863         need to see this stuff.
78864         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78865         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78866         (mode_change, mode_adjust): Reflect the new signatures noted above.
78867         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78868         that might redefine system include files.
78869         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78870         (my_usleep): Use NULL rather than (void *) 0.
78871         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78872         Use siginterrupt to specify that system calls should be interrupted.
78873         (rpl_nanosleep): Move initialization of suspended closer to call of
78874         my_usleep.
78875         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78876         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78877         (desirable_utmp_entry): New function.
78878         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78879         using x2nrealloc, to simplify logic.
78880         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78881         size calculation.  Do not assume utmp file is a regular file.
78882         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78883         (READ_UTMP_CHECK_PIDS): New constant.
78884         * lib/save-cwd.c: Include unistd-safer.h.
78885         (save_cwd): Use fd_safer.
78886         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78887         [!_LIBC] Include "stat-macros.h" instead.
78888         * lib/unistd-safer.h (fd_safer): New decl.
78889
78890 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * modules/getloadavg (Depends-on): Add unistd-safer.
78893         * modules/getusershell (Depends-on): Add stdio-safer.
78894         * modules/lstat (Depends-on): Remove xalloc.
78895         * modules/mkstemp (Depends-on): Add stat-macros.
78896         * modules/modechange (Depends-on): Remove xstrtol.
78897         Add stat-macros, xalloc.
78898         * modules/save-cwd (Depends-on): Add unistd-safer.
78899         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78900         * modules/unistd-safer (Files): Add lib/fd-safer.c
78901         (Makefile.am): Remove lib_SOURCES.
78902
78903         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78904         Remove fcntl-safer; unistd-safer supersedes it.
78905
78906 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78909         AC_HEADER_STAT.
78910         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78911         (gl_PREREQ_CHOWN): Remove.
78912         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78913         it.  Don't require AC_HEADER_STAT.
78914         (gl_PREREQ_LSTAT): Remove.
78915         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78916         Don't require AC_HEADER_STAT.
78917         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78918         (gl_PREREQ_RMDIR): Remove.
78919         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78920         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78921         the stat-macros module a prerequisite.
78922         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78923         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78924         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78925         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78926         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78927         variable names.
78928         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78929         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78930         variable prefixes.
78931         * m4/fcntl-safer.m4: Remove.
78932         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78933         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78934         Invoke gl_PREREQ_FD_SAFER.
78935         (gl_PREREQ_FD_SAFER): New macro.
78936         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78937         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78938         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78939         Remove duplicate call to AC_LIBOBJ(readutmp).
78940         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78941
78942         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78943         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78944
78945 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * MODULES.html.sh (Misc): Add byteswap.
78948
78949 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78950
78951         * modules/getcwd (Depends-on): Add extensions.
78952         * modules/openat (Depends-on): Likewise.
78953
78954 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78955
78956         * modules/byteswap: New file.
78957
78958 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78959
78960         * m4/byteswap.m4: New file.
78961
78962 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78963
78964         * lib/byteswap_.h: New file.
78965
78966 2005-04-25  Karl Berry  <karl@gnu.org>
78967
78968         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78969
78970 2005-04-25  Albert Chin  <china@thewrittenword.com>
78971
78972         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78973         Toolkit C bug.
78974
78975 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78976
78977         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78978         (func_ln_if_changed): Remove forcibly for no error message
78979         in case file does not exist.
78980
78981 2005-04-19  Simon Josefsson  <jas@extundo.com>
78982
78983         * gnulib-tool (Options): Make --symlink mean --symbolic.
78984
78985 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78986
78987         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78988
78989 2005-04-16  Simon Josefsson  <jas@extundo.com>
78990
78991         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78992
78993 2005-04-15  Simon Josefsson  <jas@extundo.com>
78994
78995         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78996
78997 2005-04-15  Simon Josefsson  <jas@extundo.com>
78998
78999         * gnulib-tool: Rename --symlink to --symbolic.
79000
79001 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79002
79003         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79004         symbolic links to files instead of copying/moving.  Add --aux-dir,
79005         specifying directory relative --dir where auxiliary build tools
79006         are placed.
79007
79008 2005-04-14  Bruno Haible  <bruno@clisp.org>
79009
79010         * modules/allocsa (License): Change to LGPL.
79011         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79012
79013 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79016         that "UTC +1 second" continues to work.  Problem reported
79017         by Dmitry V. Levin.
79018         (relunit_snumber): New rule.
79019         (relunit): Use it.
79020
79021 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * lib/getdate.y (universal_time_zone_table): New constant.
79024         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79025         universal_time_zone_table.
79026         (lookup_zone): Prefer universal_time_zone_table to
79027         local_time_zone_table, so that "GMT" time stamps are allowed in
79028         London during the summer.  Problem reported by Ian Abbott.
79029
79030 2005-04-12  Jim Meyering  <jim@meyering.net>
79031
79032         * lib/human.c (humblock): Set *options even when returning due to
79033         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79034         warning from gcc-4.
79035
79036 2005-04-09  Jim Meyering  <jim@meyering.net>
79037
79038         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79039         -Wuninitialized: initialize tm0.tm_year.
79040
79041 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79044         count, since there's no maximum.  All uses changed.
79045         Add member dsts_seen.
79046         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79047         not being INT_MAX.
79048         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79049         Use pc_rels_seen to decide whther a date is absolute.
79050
79051         * lib/getdate.y (number): Don't overwrite year.
79052         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79053         check.
79054
79055 2005-04-02  Simon Josefsson  <jas@extundo.com>
79056
79057         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79058         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79059
79060 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79061
79062         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79063         where no absolute path name can be longer than PATH_MAX.
79064
79065 2005-03-27  Jim Meyering  <jim@meyering.net>
79066
79067         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79068
79069 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79070
79071         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79072         "one's complement" -> "ones' complement" in comment, as per Knuth.
79073         "value of type" -> "type or expression" in comment.
79074         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79075
79076 2005-03-26  Jim Meyering  <jim@meyering.net>
79077
79078         Comment nits.
79079         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79080         Correct typos: s/or/of/.
79081
79082 2005-03-26  Jim Meyering  <jim@meyering.net>
79083
79084         * modules/check-include-files: Move to ../ and rename to...
79085         * check-module: ...this.
79086
79087 2005-03-25  Jim Meyering  <jim@meyering.net>
79088
79089         * modules/xvasprintf (Files): Add xalloc.h.
79090
79091 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         * modules/gettext (Files): config/config.rpath ->
79094         build-aux/config.rpath
79095         * modules/iconv (Files): Likewise.
79096         Problem reported by Oskar Liljeblad.
79097
79098 2005-03-23  Jim Meyering  <jim@meyering.net>
79099
79100         * modules/check-include-files: New script to check for
79101         missing dependencies, multiple includes, etc.
79102
79103         * modules/c-strtold (Depends-on): Add xalloc.
79104         * modules/c-strtod (Depends-on): Add xalloc.
79105         * modules/hash (Depends-on): Add xalloc.
79106         (Files): Remove lib/xalloc.h.
79107
79108         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79109         * modules/userspec (Files): Add lib/inttostr.h.
79110
79111 2005-03-23  Jim Meyering  <jim@meyering.net>
79112
79113         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79114
79115 2005-03-22  Jim Meyering  <jim@meyering.net>
79116
79117         * modules/stat-macros: New module.
79118         * modules/canonicalize, modules/euidaccess, modules/file-type,
79119         * modules/filemode, modules/lchown, modules/makepath,
79120         * modules/rmdir, modules/stat: Depend on new stat-macros module
79121         rather than listing lib/stat-macros.h manually.
79122         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79123
79124 2005-03-22  Jim Meyering  <jim@meyering.net>
79125
79126         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79127
79128 2005-03-22  Bruno Haible  <bruno@clisp.org>
79129
79130         * config/srclist.txt: Replace target directory 'config' with
79131         'build-aux'.
79132         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79133         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79134         ../build-aux/.
79135
79136 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79137
79138         * modules/chdir-long (Depends-on): Add mempcpy.
79139
79140         * modules/acl, modules/backupfile, modules/c-strtod,
79141         modules/c-strtold, modules/canon-host, modules/canonicalize,
79142         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79143         modules/exclude, modules/exitfail, modules/file-type,
79144         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79145         modules/getdate, modules/getline, modules/getpagesize,
79146         modules/getpass, modules/getugroups, modules/group-member,
79147         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79148         modules/inttostr, modules/long-options, modules/makepath,
79149         modules/md5, modules/memcasecmp, modules/memcoll,
79150         modules/modechange, modules/mountlist, modules/path-concat,
79151         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79152         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79153         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79154         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79155         modules/strftime, modules/strndup, modules/strverscmp,
79156         modules/timespec, modules/unlocked-io, modules/userspec,
79157         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79158         modules/yesno:
79159         Remove lib_SOURCES line from Makefile.am section, as this is now
79160         done automatically by the corresponding Autoconf macro.
79161
79162 2005-03-21  Jim Meyering  <jim@meyering.net>
79163
79164         Changes imported from coreutils.
79165
79166         * lib/cycle-check.c: Don't include xalloc.h.
79167
79168         * lib/path-concat.c: Don't include assert.h.
79169         (path_concat): Remove assertion that would have triggered
79170         for ABASE starting with more than one slash.
79171         Reported by Andreas Schwab.
79172
79173         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79174         properly when ABASE is an absolute file name.
79175         Correct the description of this function.
79176         Include <assert.h>.
79177         Add an assertion and a test driver.
79178         This fixes a bug introduced on 2004-07-02.
79179         Andreas Schwab reported the resulting failure of cp --parents:
79180         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79181
79182 2005-03-21  Jim Meyering  <jim@meyering.net>
79183
79184         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79185         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79186
79187 2005-03-21  Jim Meyering  <jim@meyering.net>
79188         and  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79191         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79192         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79193         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79194         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79195         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79196         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79197         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79198         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79199         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79200         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79201         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79202         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79203         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79204         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79205         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79206         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79207         for these modules.
79208
79209 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79212         (which shouldn't happen), generate nothing instead of returning 0
79213         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79214
79215 2005-03-16  Bruno Haible  <bruno@clisp.org>
79216
79217         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79218         HAVE_LONGLONG_64BIT.
79219
79220 2005-03-16  Bruno Haible  <bruno@clisp.org>
79221
79222         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79223         HAVE_LONGLONG_64BIT.
79224
79225 2005-03-16  Bruno Haible  <bruno@clisp.org>
79226
79227         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79228         HAVE_LONGLONG_64BIT.
79229
79230 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79231
79232         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79233         reliably distinguish strftime failure from empty output on POSIX
79234         hosts.
79235
79236 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79239         (iconv_string): Don't guess a size-zero buffer, as that might cause
79240         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79241         result would be 'too large', where 'too large' is (heuristically)
79242         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79243         overflow concerns.  This will prevent some unwanted malloc failures
79244         when the inputs are very large.
79245
79246 2005-03-15  Karl Berry  <karl@gnu.org>
79247
79248         * config/srclist.txt (config.rpath): from gettext.
79249         * config/config.rpath: update.
79250
79251 2005-03-15  Bruno Haible  <bruno@clisp.org>
79252
79253         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79254         to 'negate'.
79255
79256         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79257         variable.
79258
79259         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79260         results.
79261
79262 2005-03-14  Simon Josefsson  <jas@extundo.com>
79263
79264         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79265         <fx@gnu.org>.
79266
79267 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79268
79269         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79270         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79271         intprops.h.
79272         * lib/strtol.c: Likewise.
79273
79274 2005-03-14  Jim Meyering  <jim@meyering.net>
79275
79276         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79277         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79278         to be nonzero so that we (and caller) can detect the difference
79279         between a valid zero-length expansion and an error return, even
79280         when the underlying strftime fails before writing anything into
79281         that location.
79282
79283 2005-03-14  Bruno Haible  <bruno@clisp.org>
79284
79285         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79286         Update from GNU gettext 0.14.3.
79287
79288 2005-03-10  Jim Meyering  <jim@meyering.net>
79289
79290         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79291
79292 2005-03-10  Jim Meyering  <jim@meyering.net>
79293
79294         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79295         so that this module works on systems without fchdir.
79296
79297 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         Factor int-properties macros into a single file, except for
79300         glibc-related files.
79301         * lib/intprops.h: New file.
79302         * lib/getloadavg.c: Include it instead of limits.h.
79303         (INT_STRLEN_BOUND): Remove.
79304         * lib/human.c: Include intprops.h.
79305         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79306         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79307         302/1000.
79308         * lib/inttostr.h: Include intprops.h instead of limits.h.
79309         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79310         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79311         for consistency with intprops.h.
79312         (time_t_is_integer, twos_complement_arithmetic): Use them.
79313         * lib/sig2str.h: Include <signal.h>, intprops.h.
79314         (INT_STRLEN_BOUND): Remove.
79315         * lib/strftime.c (TYPE_SIGNED): Remove.
79316         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79317         * lib/strtol.c: Adjust comments to match intprops.h.
79318         * lib/userspec.c: Include intprops.h.
79319         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79320         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79321         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79322         instead of rolling our own expressions.
79323         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79324
79325         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79326         instead of int.
79327         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79328         the right thing even if adding 1900 would overflow.  Similarly
79329         for tm_mon + 1 and tm_yday + 1.
79330         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79331         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79332         (DO_SIGNED_NUMBER): New macro.
79333         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79334
79335 2005-03-07  Bruno Haible  <bruno@clisp.org>
79336
79337         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79338
79339 2005-03-07  Bruno Haible  <bruno@clisp.org>
79340
79341         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79342
79343 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79344
79345         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79346         (func_import): Only replace files via --import when they have actually
79347         changed.
79348
79349 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79350
79351         * m4/mmap-anon.m4: New file.
79352         * m4/pagealign_alloc.m4: New file.
79353
79354 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79355             Bruno Haible  <bruno@clisp.org>
79356
79357         * modules/pagealign_alloc: New file.
79358         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79359
79360 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79361             Bruno Haible  <bruno@clisp.org>
79362
79363         * lib/pagealign_alloc.h: New file.
79364         * lib/pagealign_alloc.c: New file.
79365
79366 2005-03-03  Bruno Haible  <bruno@clisp.org>
79367
79368         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79369         Use an all-permissive copyright notice, recommended by RMS.
79370
79371 2005-03-02  Bruno Haible  <bruno@clisp.org>
79372
79373         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79374         of AIX, the replacement has to be done only after <string.h> is
79375         included, therefore not in config.h. stpncpy.h does the replacement,
79376         and stpncpy.c uses it.
79377
79378 2005-03-02  Bruno Haible  <bruno@clisp.org>
79379
79380         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79381         stpncpy.c uses it.
79382
79383 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79384
79385         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79386         The workaround isn't strictly needed for POSIX conformance, and
79387         it's too much of a pain to configure and maintain.  We'll ask
79388         people to fix their kernels instead.
79389         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79390         (NANOSLEEP_BUG_WORKAROUND): Remove.
79391         (xnanosleep): Remove the workaround.
79392
79393 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79396         Reported by Derek Price.
79397         (Include): Add "timespec.h".
79398
79399         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79400
79401 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79404         to detect nanosleep bug.
79405
79406 2005-03-01  Bruno Haible  <bruno@clisp.org>
79407
79408         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79409
79410 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * modules/gethrxtime: New file.
79413         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79414         (Depends-on): Add gethrxtime.
79415         (configure.ac): Add gl_XNANOSLEEP.
79416         (Makefile.am): Remove lib_SOURCES line.
79417
79418 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79421         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79422
79423 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79426         * lib/timespec.h (gettime): Return void, since it always
79427         succeeds now.  All uses changed.
79428         * lib/gettime.c (gettime): Likewise.
79429         [HAVE_NANOTIME]: Prefer nanotime.
79430         Assume gettimeofday succeeds, as POSIX requires.
79431         Assime time () succeeds, since other code already does.
79432         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79433         (timespec_subtract): Remove.
79434         (NANOSLEEP_BUG_WORKAROUND): New constant.
79435         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79436         things considerably.  Use it only on GNU/Linux hosts, since the
79437         workaround shouldn't be needed elsewhere.
79438
79439 2005-02-24  Bruno Haible  <bruno@clisp.org>
79440
79441         * modules/gettext (Files): Add m4/glibc2.m4.
79442
79443 2005-02-24  Bruno Haible  <bruno@clisp.org>
79444
79445         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79446         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79447         * m4/progtest.m4:
79448         Update from GNU gettext 0.14.2.
79449         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79450
79451 2005-02-24  Bruno Haible  <bruno@clisp.org>
79452
79453         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79454         * lib/config.charset: Update from GNU gettext 0.14.2.
79455
79456 2005-02-24  Bruno Haible  <bruno@clisp.org>
79457
79458         * lib/gettext.h: Update from GNU gettext 0.14.2.
79459
79460 2005-02-23  Simon Josefsson  <jas@extundo.com>
79461
79462         * m4/iconvme.m4: New file.
79463
79464 2005-02-23  Jim Meyering  <jim@meyering.net>
79465
79466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79467         change.
79468         Thanks to Bruno Haible for catching it.
79469
79470 2005-02-22  Simon Josefsson  <jas@extundo.com>
79471
79472         * modules/iconvme: New file.
79473
79474         * MODULES.html.sh: Add iconvme.
79475
79476 2005-02-22  Simon Josefsson  <jas@extundo.com>
79477
79478         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79479
79480 2005-02-22  Simon Josefsson  <jas@extundo.com>
79481
79482         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79483
79484 2005-02-22  Jim Meyering  <jim@meyering.net>
79485
79486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79487         s/ifndef/ifdef/.
79488
79489 2005-02-20  Neil Conway  <neilc@samurai.com>
79490
79491         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79492         returned by OSX/Darwin if the specified buffer is not large
79493         enough for the hostname.
79494
79495 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79496
79497         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79498         pass it to _help, otherwise the latter coredumps trying to
79499         dereference state.root_argp.
79500
79501 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * modules/chdir-long (Depends-on): Add memrchr.
79504         * modules/memrchr (Files): Add lib/memrchr.h.
79505         (Include): "memrchr.h".
79506
79507 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79510
79511 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * lib/memrchr.h: New file.
79514         * lib/chdir-long.c: Include it.
79515         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79516         Don't bother including stddef.h.
79517
79518 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79521         inclusion.
79522         Include <sys/types.h>, for dev_t.
79523         (ME_DUMMY, ME_REMOTE): Move from here....
79524         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79525         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79526         Dmitry V. Levin.
79527         Include mountlist.h first, to test the interface.
79528
79529 2005-01-29  Bruno Haible  <bruno@clisp.org>
79530
79531         * lib/progname.c (program_name): Initialize.
79532         Needed when linking statically on MacOS X.
79533
79534 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         Sync from coreutils.
79537         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79538         (Depends-on): Add c-strtod.
79539         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79540
79541 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79542
79543         Sync from coreutils.
79544         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79545
79546         Remove files that are specific to coreutils.
79547         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79548
79549 2005-01-28  Bruno Haible  <bruno@clisp.org>
79550
79551         * modules/javacomp: New file.
79552         * MODULES.html.sh (Java): Add javacomp.
79553
79554 2005-01-28  Bruno Haible  <bruno@clisp.org>
79555
79556         * m4/javacomp.m4: New file, from GNU gettext.
79557
79558 2005-01-28  Bruno Haible  <bruno@clisp.org>
79559
79560         * lib/javacomp.sh.in: New file, from GNU gettext.
79561         * lib/javacomp.h: New file, from GNU gettext.
79562         * lib/javacomp.c: New file, from GNU gettext.
79563
79564 2005-01-26  Simon Josefsson  <jas@extundo.com>
79565
79566         * lib/gai_strerror.c: Use GPL in header.
79567
79568 2005-01-26  Bruno Haible  <bruno@clisp.org>
79569
79570         * modules/javaexec: New file.
79571         * MODULES.html.sh (Java): Add javaexec.
79572
79573 2005-01-26  Bruno Haible  <bruno@clisp.org>
79574
79575         * m4/javaexec.m4: New file, from GNU gettext.
79576
79577 2005-01-26  Bruno Haible  <bruno@clisp.org>
79578
79579         * lib/javaexec.sh.in: New file, from GNU gettext.
79580         * lib/javaexec.h: New file, from GNU gettext.
79581         * lib/javaexec.c: New file, from GNU gettext.
79582
79583 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79584
79585         * modules/lchown (Depends-on): Remove lchown.h
79586
79587 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79588
79589         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79590         must be defined if the header file was not found, in order
79591         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79592
79593 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79594
79595         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79596         initializers for struct pentry_state.
79597         (__argp_error): Check return value of __asprintf
79598         (__argp_failure): Translate error message
79599
79600         * lib/argp-parse.c: Removed braces around the expansion of N_()
79601
79602 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79605         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79606         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79607         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79608         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79609         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79610         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79611         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79612         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79613         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79614         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79615         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79616         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79617         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79618         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79619         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79620         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79621         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79622         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79623         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79624         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79625         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79626         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79627         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79628         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79629         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79630         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79631         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79632         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79633         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79634         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79635         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79636         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79637         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79638         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79639         Use an all-permissive copyright notice, recommended by RMS.
79640
79641 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         * modules/chdir-long (Depends-on): Remove mempcpy.
79644
79645 2005-01-21  Jim Meyering  <jim@meyering.net>
79646
79647         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79648         same value as for Solaris 9.
79649
79650         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79651         component length.  This included changing the parameter to be
79652         of type `char *' rather than `char const *'.
79653         * lib/chdir-long.h (chdir_long): Update prototype.
79654
79655         * lib/openat.c (fdopendir, fstatat): New functions.
79656         * lib/openat.h: Include headers required for use of DIR and struct
79657         stat.
79658         [AT_SYMLINK_NOFOLLOW]: Define.
79659         (fdopendir, fstatat): Add prototypes.
79660
79661 2005-01-21  Bruno Haible  <bruno@clisp.org>
79662
79663         * modules/classpath: New file.
79664         * MODULES.html.sh (Java): Add classpath.
79665
79666 2005-01-21  Bruno Haible  <bruno@clisp.org>
79667
79668         * lib/classpath.h: New file, from GNU gettext.
79669         * lib/classpath.c: New file, from GNU gettext.
79670
79671 2005-01-20  Simon Josefsson  <jas@extundo.com>
79672
79673         * modules/version-etc-fsf: New file.
79674
79675 2005-01-20  Simon Josefsson  <jas@extundo.com>
79676
79677         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79678         * lib/version-etc.c: Remove version_etc_copyright.
79679         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79680         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79681
79682 2005-01-20  Simon Josefsson  <jas@extundo.com>
79683
79684         * lib/base64.h (isbase64): Add.
79685
79686         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79687         using a unsigned prototype, don't inline.
79688         (base64_decode): Use it.
79689
79690 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79693         it.
79694
79695 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * lib/save-cwd.c (save_cwd): Remove code to support the case
79698         where fchdir is missing or flaky.
79699
79700 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79703
79704 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79707         AC_LIBSOURCES now does this.
79708         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79709         with new ullong_max module.
79710
79711 2005-01-19  Bruno Haible  <bruno@clisp.org>
79712
79713         * modules/sh-quote: New file.
79714         * MODULES.html.sh (Executing programs): Add sh-quote.
79715
79716 2005-01-19  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/sh-quote.h: New file, from GNU gettext.
79719         * lib/sh-quote.c: New file, from GNU gettext.
79720
79721 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         Merge from coreutils.
79724         * m4/ullong_max.m4: New file.
79725         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79726         (gl_MACROS): Assume localeconv exists.
79727
79728 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79729
79730         Merge changes from coreutils, as described below in several
79731         changelogs dated today.
79732
79733         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79734         (O_DIRECTORY): Remove; not needed here, since "." must be
79735         a directory.  All uses removed.
79736         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79737         universal on Suns, and we also need to test for IRIX.
79738         Revamp code to use 'if' rather than '#if'.
79739         Avoid unnecessary comparison of cwd->desc to 0.
79740
79741         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79742         for known valid error numbers rather than observed invalid ones.
79743
79744 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * modules/ullong_max: New file.
79747
79748         * modules/chdir-long, modules/openat: New files.
79749         * modules/save-cwd (Depends-on): Depend on chdir-long.
79750         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79751
79752 2005-01-18  Jim Meyering  <jim@meyering.net>
79753
79754         Merge from coreutils.
79755         * m4/chdir-long.m4, m4/openat.m4: New files.
79756         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79757         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79758         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79759         is sane and DOES follow symlinks.  Besides, testing 20 different
79760         systems found no broken chown implementations.
79761         Prompted by a change in rsync's copy of this macro.
79762         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79763
79764         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79765
79766         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79767         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79768         NULL-means-set-to-current-time semantics.
79769         Remove temporary file immediately, rather than waiting
79770         for configure's at-exit trap code to do it.
79771
79772 2005-01-18  Jim Meyering  <jim@meyering.net>
79773
79774         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79775
79776         * lib/utimens.c (futimens): Account for the fact that futimes
79777         can also fail with errno == ENOSYS or errno == ENOENT.
79778         Patch from Dmitry V. Levin.
79779
79780         Change the name of the robust chdir function from chdir to chdir_long.
79781         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79782         (restore_cwd): Use chdir_long, not chdir.
79783         * lib/chdir-long.c: Renamed from chdir.c.
79784         * lib/chdir-long.h: Renamed from chdir.h.
79785         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79786         Hurd.
79787
79788 2005-01-18  Bruno Haible  <bruno@clisp.org>
79789
79790         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79791         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79792         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79793         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79794         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79795         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79796         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79797         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79798         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79799         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79800         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79801         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79802         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79803         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79804         Use an all-permissive copyright notice, recommended by RMS.
79805
79806 2005-01-18  Bob Proulx  <bob@proulx.com>
79807
79808         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79809         simplify offsetof() macro construct to avoid compile failure with
79810         native HP-UX 11.0 ANSI C compiler.
79811
79812 2005-01-17  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79815         redundant because stpncpy.m4 takes care of it.
79816
79817 2005-01-17  Bruno Haible  <bruno@clisp.org>
79818
79819         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79820
79821 2005-01-17  Bruno Haible  <bruno@clisp.org>
79822
79823         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79824         used.
79825
79826 2005-01-17  Bruno Haible  <bruno@clisp.org>
79827
79828         * lib/fwriteerror.h (fwriteerror): Change specification to include
79829         fclose.
79830         * lib/fwriteerror.c: Include <stdbool.h>.
79831         (fwriteerror): At the end, close the file stream. Record whether
79832         stdout was already closed.
79833
79834 2005-01-17  Bruno Haible  <bruno@clisp.org>
79835
79836         * lib/execute.c (environ): Declare if needed.
79837         * lib/pipe.c (environ): Likewise.
79838         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79839
79840 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79841
79842         * modules/argp: Depend on vsnprintf
79843
79844 2005-01-10  Jim Meyering  <jim@meyering.net>
79845
79846         * modules/closeout (Depends-on): Add atexit.
79847
79848 2005-01-06  Bruno Haible  <bruno@clisp.org>
79849
79850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79851
79852 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79853
79854         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79855         definitions to be after all include files, to avoid collisions.
79856         Problem reported by Bob Proulx.
79857
79858 2005-01-04  Jim Meyering  <jim@meyering.net>
79859
79860         Changes imported from coreutils.
79861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79862         as the mkstemp template, use a temporary directory and an
79863         8.3-friendly template to avoid trouble on systems like DJGPP.
79864         Reported by Juan M. Guerrero via Stepan Kasal.
79865         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79866         close. Remove the temporary directory right away, rather than waiting
79867         for configure's at-exit trap code to do it.
79868         Suggestion from Stepan Kasal.
79869
79870 2005-01-01  Simon Josefsson  <jas@extundo.com>
79871
79872         * gnulib-tool: Print #include directives when --import'ing.
79873
79874 2004-12-28  Simon Josefsson  <jas@extundo.com>
79875
79876         * tests/test-base64.c: Include required header files.  Remove
79877         unused variables.
79878
79879 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * modules/error (Depends-on): Remove gettext.
79882
79883 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79886         not needed.  This removes a dependency on the gettext module.
79887         [defined _LIBC]: Do not include <libintl.h>; not needed.
79888
79889 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79892         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79893
79894 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79897         HAVE_DECL_STRTOLD.
79898
79899 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79900
79901         * modules/getdate (Depends-on): Remove alloca-opt.
79902
79903 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79904
79905         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79906
79907 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * lib/argp-parse.c: Include <stddef.h>.
79910         (alignof, alignto): New macros.
79911         (parser_init): Don't assume that void * is aligned sufficiently
79912         for struct option.
79913
79914         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79915         need to extend the stack.
79916         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79917         large.
79918
79919 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79920
79921         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79922
79923 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79926         (2004-10-24) change.  Apparently this was a false alarm.
79927
79928         * modules/getdate: Depend on alloca-opt, not alloca.
79929
79930 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79931
79932         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79933         Remove now-obsolete comment about AIX.
79934         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79935         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79936         (YYMAXDEPTH): New macro.
79937
79938 2004-12-18  Simon Josefsson  <jas@extundo.com>
79939
79940         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79941
79942 2004-12-18  Bruno Haible  <bruno@clisp.org>
79943
79944         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79945
79946 2004-12-18  Bruno Haible  <bruno@clisp.org>
79947
79948         * lib/fatal-signal.c (fatal_signals): Make non-const.
79949         (init_fatal_signals): New function.
79950         (uninstall_handlers, install_handlers): Ignore signals that were set to
79951         SIG_IGN.
79952         (at_fatal_signal): Call init_fatal_signals.
79953         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79954         SIG_IGN.
79955         Reported by Paul Eggert.
79956
79957 2004-12-18  Bruno Haible  <bruno@clisp.org>
79958
79959         * doc/alloca.texi: New file.
79960         * doc/alloca-opt.texi: New file.
79961
79962 2004-12-17  Jim Meyering  <jim@meyering.net>
79963
79964         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79965         Otherwise, install-sh could exit with improper exit status when
79966         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79967
79968 2004-12-16  Simon Josefsson  <jas@extundo.com>
79969
79970         * tests/test-base64.c: Add license.
79971
79972 2004-12-15  Stepan Kasal  <address@hidden>
79973
79974         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79975
79976 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * modules/getcwd (Files): Add m4/d-ino.m4.
79979         Suggested by Mark D. Baushke.
79980
79981 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         * lib/getdate.y (textint): New member "negative".
79984         (time_zone_hhmm): New function.
79985         Expect 14 shift-reduce conflicts, not 13.
79986         (o_colon_minutes): New rule.
79987         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79988         (yylex): Set the "negative" member of signed numbers.
79989
79990 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * doc/getdate.texi (Time of day items, Time zone items):
79993         Describe new formats +00:00, UTC+00:00.
79994
79995 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79998         spurious "-l"s.  Problem reported by Stepan Kasal.
79999
80000 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80003         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80004
80005 2004-12-04  Simon Josefsson  <jas@extundo.com>
80006
80007         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80008         Vandoorselaere <yoann@prelude-ids.org>.
80009
80010 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         Changes imported from coreutils.
80013         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80014         exist.
80015         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80016
80017 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         Changes imported from coreutils.
80020         * lib/hard-locale.c: Assume <locale.h> exists.
80021         Include "strdup.h".
80022         (GLIBC_VERSION): New macro.
80023         (hard_locale): Assume setlocale exists.
80024         Rewrite to avoid #ifdef.
80025         Use strdup rather than malloc + strcpy.
80026         * lib/human.c: Assume <locale.h> exists.
80027         (human_readable): Assume localeconv exists.
80028
80029 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80030
80031         * modules/hard-locale (Depends-on): Add strdup.
80032
80033 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80034
80035         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80036         convert T2, not T.  (Imported from libc.)
80037
80038 2004-11-30  Simon Josefsson  <jas@extundo.com>
80039
80040         * modules/restrict (License): Change to LGPL.
80041
80042 2004-11-30  Simon Josefsson  <jas@extundo.com>
80043
80044         * m4/restrict.m4: Add copyright and copying conditions.
80045
80046 2004-11-30  Simon Josefsson  <jas@extundo.com>
80047
80048         * m4/base64.m4: New file.
80049
80050 2004-11-30  Simon Josefsson  <jas@extundo.com>
80051
80052         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80053         base64.
80054
80055         * tests/test-base64.c: New file.
80056
80057         * modules/base64: New file.
80058
80059 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80062         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80063
80064         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80065
80066 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80069         (__getcwd.c): Don't restore errno; glibc doesn't.
80070         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80071         first, falling back to our code only if its results look suspicious.
80072         Ensure that the resulting buffer is only as large as necessary.
80073
80074         * lib/readutmp.c: Include readutmp.h first.
80075         Include <errno.h>, since readutmp.h no longer does that.
80076         * lib/readutmp.h: Don't include <errno.h>,
80077         <sys/param.h>, <time.h>; not needed to establish interface.
80078         (errno): Remove decl.
80079         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80080         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80081         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80082
80083 2004-11-28  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/base64.h, base64.c: New file.
80086
80087 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80090
80091 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80094         (Depends-on): Remove pathmax, same.  Add mempcpy.
80095         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80096         (Makefile.am): Append getcwd.h to lib_SOURCES.
80097         (Include): Add getcwd.h.
80098         (Maintainer): Change from Jim Meyering to "all, glibc",
80099         since getdate now uses intended-for-glibc code.
80100         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80101         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80102
80103 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80106         HP's ANSI C compiler.
80107         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80108         Declaring int functions causes warnings on some modern systems and
80109         shouldn't be needed to compile on ancient ones.
80110         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80111         defined.
80112
80113         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80114         with the following changes.
80115         (__set_errno): Parenthesize properly.
80116         Include <stdbool.h>.
80117         (MIN, MAX, MATCHING_INO): New macros.
80118         (__getcwd): Define with prototype, not K&R form.
80119         Use heuristics to allocate default buffer on stack if possible.
80120         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80121         behavior, and to avoid the PATH_MAX limit when computing
80122         ../../../../...
80123         Use MATCHING_INO to compare inode number to file.
80124         Check for arithmetic overflow in size calculations.
80125         Fix bug in reallocation of dot array that caused getcwd to fail
80126         on directories nested deeper than 75.
80127         Be more careful about saving errno on error.
80128         Do not use realloc; use only free+malloc, as this is a bit
80129         more flexible and avoids a needless copy operation.
80130         Do not inspect st_dev and st_ino for symbolic links; POSIX
80131         doesn't specify the latter.
80132         Check for closedir errors.
80133         Avoid needless casts.
80134         Use "#ifdef weak_alias" around weak_alias, to be like other
80135         glibc code.
80136         The following changes to getcwd.c have effect only when used in
80137         gnulib; they have no effect inside glibc proper.
80138         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80139         as alloca isn't used.
80140         (alloca, __alloca): Likewise.
80141         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80142         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80143         unconditionally, as gnulib assumes C89 or better.
80144         Do not include <sys/param.h>.
80145         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80146         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80147         better.
80148         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80149         Include <dirent.h> in a way that is compatible with modern Autoconf.
80150         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80151         New macros, if not already defined.
80152         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80153         Use "_LIBC", not "defined _LIBC", for consistency.
80154         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80155         a mempcpy module.
80156         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80157         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80158         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80159         credit only to Jim Meyering and adjust the copyright dates.
80160         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80161         <stdlib.h>, <unistd.h>, "pathmax.h".
80162         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80163         (INITIAL_BUFFER_SIZE): Remove.
80164         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80165
80166 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80169         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80170         Use the _ONCE methods, for efficiency.
80171         Check for fcntl.h.  In test program, include <errno.h>
80172         and <fcntl.h> if available.  Remove old K&R cruft from
80173         test program.  Check for common errors in GNU/Linux,
80174         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80175         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80176         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80177         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80178         name accordingly.
80179         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80180         accommodate new getcwd.c.
80181         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80182         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80183         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80184         that's all we need now.
80185
80186 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80187
80188         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80189         argp-parse.c depends on getopt internals, that means we should
80190         always use our getopt, to be on the safe side.
80191         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80192         order not to spoil the result of an eventual previous invocation
80193         of gl_GETOPT_SUBSTITUTE.
80194
80195 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80196
80197         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80198         redefinition warnings. To avoid them, include the defines
80199         in `#if !defined __need_getopt ... #endif'. The only place
80200         where __getopt_argv_const is used is in definitions
80201         of getopt_long and getopt_long_only below, which are as well
80202         protected by `#ifndef __need_getopt'.
80203         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80204         __need_getopt after including <stdio.h> and <unistd.h> These
80205         headers might have defined it.
80206
80207 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80210
80211 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80214         (futimens): New function, which uses futimes if available.
80215         (futimens, utimens): Support timespec==NULL, with same semantics
80216         as utime and utimens.
80217         * lib/utimens.h (futimens): New decl.
80218
80219 2004-11-23  Jim Meyering  <jim@meyering.net>
80220
80221         * lib/getopt_.h: Remove trailing blanks.
80222
80223 2004-11-23  Jim Meyering  <jim@meyering.net>
80224
80225         * lib/__fpending.c: Add comment.
80226
80227 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         * modules/canonicalize (Depends-on): Add xreadlink.
80230         Problem reported by James Youngman.
80231
80232 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80235         New macros.
80236         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80237         optopt): Use them instead of invoking ## directly; otherwise, the
80238         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80239
80240 2004-11-19  Bruno Haible  <bruno@clisp.org>
80241
80242         * lib/strtok_r.c: Move comments from here...
80243         * lib/strtok_r.h: ... to here.
80244
80245 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80246
80247         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80248         implementations that mishandle size_t overflow.
80249
80250 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80253         might fail.  Problem reported by Yoann Vandoorselaere.
80254         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80255         implementations that mishandle size_t overflow.
80256
80257 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * modules/canon-host (Depends-on): Add strdup.
80260
80261 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80264
80265 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * lib/canon-host.c: Include "strdup.h".
80268         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80269         Use strdup instead of malloc/strcpy to duplicate strings.
80270
80271         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80272         (human_space_before_unit): New constant.
80273         * lib/human.c (human_readable): Support it.
80274
80275         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80276         (xgetcwd): Set errno correctly when failing.
80277         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80278         the failure is actually due to a PATH_MAX problem.
80279
80280         Further getopt changes to make it more likely that glibc will
80281         buy the changes back.
80282         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80283         (getopt): Use it, so to preserve glibc semantic
80284         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80285         when compiling for libc.
80286         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80287         (getopt_long, getopt_long_only): Use it.
80288
80289         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80290         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80291         (getopt): Argv is now char * const *, as per standard.
80292         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80293         not char *__getopt_argv_const *.
80294         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80295         _getopt_long_only_r): Likewise.
80296         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80297         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80298         _getopt_long_r, _getopt_long_only_r): Likewise.
80299         * lib/getopt_.h (__getopt_argv_const): Remove.
80300         (getopt): Argv is now char * const *, as per standard.
80301
80302         * lib/getdate.y (tORDINAL): New token.
80303         (day, relunit): Allow it for relative times.
80304         (relative_time_table): Use tORDINAL for ordinals.
80305
80306 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80307
80308         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80309         Document that "second" isn't allowed as an ordinal number.
80310
80311 2004-11-16  Jim Meyering  <jim@meyering.net>
80312
80313         * modules/closeout (Depends-on): Add fpending.
80314
80315 2004-11-15  Jim Meyering  <jim@meyering.net>
80316
80317         * lib/closeout.c: Include "__fpending.h" once again.
80318         Include <stdbool.h>.
80319         (close_stdout): Don't fail just because stdout was closed initially,
80320         since some programs don't write to stdout in the normal course of
80321         operation (other than --version and --help), and we don't want this
80322         function to make e.g. `touch file >&-' fail.
80323         But do fail if it was closed and someone has tried to write to it.
80324         E.g., `printf foo >&-' must fail.
80325
80326 2004-11-13  Jim Meyering  <jim@meyering.net>
80327
80328         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80329
80330 2004-11-12  Simon Josefsson  <jas@extundo.com>
80331
80332         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80333         small doc fix is still pending.
80334
80335 2004-11-11  Simon Josefsson  <jas@extundo.com>
80336
80337         * modules/strtok_r: New file.
80338
80339         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80340         strtok_r.
80341
80342 2004-11-11  Simon Josefsson  <jas@extundo.com>
80343
80344         * m4/strtok_r.m4: New file.
80345
80346         * m4/getopt.m4: Replace opterr.
80347
80348 2004-11-11  Simon Josefsson  <jas@extundo.com>
80349
80350         * lib/strtok_r.h, strtok_r.c: New file.
80351
80352 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80355         of replacing opterr, getopt, etc.  This should handle the
80356         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80357
80358 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80361         we can stop lying to compilers about the constness of argv when we
80362         are compiled outside glibc.
80363         (getopt, getopt_long, getopt_long_only): Use it.
80364         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80365         _getopt_internal, getopt): Likewise.
80366         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80367         _getopt_long_only_r): Likewise.
80368         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80369         _getopt_long_r, _getopt_long_only_r): Likewise.
80370
80371         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80372         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80373         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80374         the other external symbols.
80375         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80376         declaration, since the above renaming now works around collisions.
80377
80378 2004-11-11  Jim Meyering  <jim@meyering.net>
80379
80380         * lib/linebreak.c: Remove trailing blanks.
80381         * lib/alloca_.h: Likewise.
80382         * lib/acosl.c: Likewise.
80383         * lib/euidaccess.c: Likewise.
80384         * lib/allocsa.h: Likewise.
80385
80386 2004-11-10  Simon Josefsson  <jas@extundo.com>
80387
80388         * m4/getaddrinfo.m4: New file.
80389
80390 2004-11-10  Simon Josefsson  <jas@extundo.com>
80391
80392         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80393
80394 2004-11-10  Simon Josefsson  <jas@extundo.com>
80395
80396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80397         getaddrinfo.
80398
80399         * modules/getaddrinfo: New file.
80400
80401 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80404
80405 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * lib/mktime.c (SHR): New macro, which is a portable
80408         substitute for >> that should work even on Crays.
80409         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80410         Problem reported by Mark D. Baushke in
80411         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80412         * lib/getdate.y (SHR): Likewise.
80413         (tm_diff): Use it.
80414         * lib/strftime.c (SHR): Likewise.
80415         (tm_diff): Use it.
80416         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80417         quote_these_too, so that right shifts are well defined.  All uses
80418         changed.
80419
80420 2004-11-10  Jim Meyering  <jim@meyering.net>
80421
80422         Ensure that no close failure goes unreported.
80423         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80424         return early when it seems there's nothing to flush.
80425         Don't include __fpending.h.
80426
80427 2004-11-10  Jim Meyering  <jim@meyering.net>
80428
80429         * modules/closeout (Depends-on): Remove fpending.
80430
80431 2004-11-10  Jim Meyering  <jim@meyering.net>
80432
80433         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80434
80435 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80436
80437         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80438         gl_FUNC_STRFTIME.
80439         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80440         and AC_REQUIRE when possible, to avoid duplicate checks.
80441         Check for <wchar.h>.
80442
80443 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80446
80447 2004-11-09  Bruno Haible  <bruno@clisp.org>
80448
80449         * m4/sockpfaf.m4: New file.
80450
80451 2004-11-05  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80454         Reported by Mark D. Baushke <mdb@cvshome.org>.
80455
80456 2004-11-04  Bruno Haible  <bruno@clisp.org>
80457
80458         2004-09-11  Bruno Haible  <bruno@clisp.org>
80459                 * allocsa.valgrind: New file.
80460         2004-02-06  Bruno Haible  <bruno@clisp.org>
80461                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80462                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80463                 Reported by Christopher Seip <chris.seip@hp.com>.
80464
80465 2004-11-04  Bruno Haible  <bruno@clisp.org>
80466
80467         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80468         (Makefile.am): Distribute it.
80469
80470 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80473         with errno == ERANGE if the buffer is too small.
80474         Problem reported by Mark D. Baushke.
80475
80476 2004-11-03  Albert Chin  <china@thewrittenword.com>
80477             Paul Eggert  <eggert@cs.ucla.edu>
80478
80479         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80480         equivalent, substitute $ac_type for equivalent type rather than
80481         blindly using uint32_t *always* which won't work if uint32_t is not
80482         available.  Define _UINT32_T to work around typedef of uint32_t if
80483         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80484         2.5.1.
80485
80486 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * m4/jm-macros.m4: Sync from coreutils.
80489         (gl_MACROS): Check for mbrlen, for pathchk.
80490         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80491
80492 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80493
80494         * lib/xreadlink.c (MAXSIZE): New macro.
80495         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80496         size does not exceed MAXSIZE.  Avoid cast.
80497         As suggested by Mark D. Baushke in
80498         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80499         if readlink fails with buffer size just under MAXSIZE, try again
80500         with MAXSIZE.
80501
80502 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80503
80504         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80505
80506 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80507         and  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80510         (get_date): Overparenthesize to avoid GCC warning.
80511
80512 2004-11-02  Bruno Haible  <bruno@clisp.org>
80513
80514         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80515         returns void.
80516
80517 2004-11-02  Bruno Haible  <bruno@clisp.org>
80518
80519         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80520         function returns void.
80521
80522 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80525         fflush_unlocked, flockfile, funlockfile, funlockfile,
80526         fputs_unlocked, putc_unlocked.
80527
80528 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80531         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80532         already declared.
80533
80534 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * modules/getdate (Files): Add doc/getdate.texi.
80537         (Depends-on): Add setenv, xalloc.
80538
80539 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         * lib/getdate.y: Add support for TZ="foo" within a date string.
80542         Fix some bugs near time_t boundaries.  Reject dates with
80543         out-of-range components, e.g., "Sept 31".
80544         Include <stdlib.h>, "setenv.h", "xalloc.h".
80545         (ISDIGIT_LOCALE): Remove; unused.
80546         Note that the TZ and time functions used here are not reentrant.
80547         (mktime_ok, get_tz): New functions.
80548         (TZBUFSIZE): New constant.
80549         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80550         This requires that we sometimes generate our own TZ="XXX..." setting.
80551
80552 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80553
80554         * doc/getdate.texi: New file, from coreutils with modifications for
80555         the new TZ parsing.
80556
80557 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80558
80559         * lib/mktime.c (not_equal_tm): Remove redundant check.
80560
80561 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * modules/regex (lib_SOURCES): Add regex.c.
80564         Reported by James Youngman in
80565         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80566
80567 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80568
80569         * lib/getdate.y: Use Bison 1.875 features, and some minor
80570         code cleanups.  This change does not affect semantics.
80571         Don't include <stdlib.h>; no longer needed.
80572         Don't include unlocked-io.h; only the "#if TEST" code uses
80573         stdio, and performance isn't crucial there.
80574         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80575         Bison 1.875 features as described below.
80576         All uses of "PC." replaced by "pc->".
80577         (YYSTYPE): Add a forward declaration.
80578         (yylex, yyerror): Use full prototypes in forward decls.
80579         Use "%pure-parser" rather than obsolescent "%pure_parser".
80580         Use %parse-param and %lex-param instead of obsolescent
80581         YYPARSE_PARAM and YYLEX_PARAM.
80582         (meridian_table, month_and_day_table, time_units_table,
80583         relative_time_table, time_zone_table, military_table,
80584         lookup_zone, lookup_word, get_date):
80585         Use NULL instead of 0 where appropriate.
80586         (to_hour): Avoid abort (), to avoid a dependency on
80587         stdlib.h.
80588         (yyerror, yylex): Now accepts parser_control * arg.
80589         (main) [TEST]: Use '\0' rather than 0 for char.
80590
80591 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80594
80595 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80598         It's now the caller's responsibility to handle the case where
80599         !HAVE_GETPAGESIZE && !defined getpagesize.
80600
80601         * lib/mktime.c (leapyear): Arg is long int, not int.
80602
80603 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80606
80607 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80610         missing.  Problem reported by James Youngman.
80611
80612 2004-10-16  Simon Josefsson  <jas@extundo.com>
80613
80614         * gnulib-tool: Fix comments.  Fix parse problem.
80615         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80616
80617 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80620         implementation of getopt_long.  Problem reported by Alexander Taler in:
80621         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80622
80623 2004-10-15  Bruno Haible  <bruno@clisp.org>
80624
80625         * gnulib-tool: Untabify. Initialize supplied_libname.
80626         (func_usage): More homogenous output.
80627         (func_modules_transitive_closure, func_modules_to_filelist,
80628         func_emit_lib_Makefile_am): New functions.
80629         (func_import): New function, extracted from big case statement. Use
80630         func_get_license, func_modules_transitive_closure,
80631         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80632         opt_lgpl. Don't use test -a, as it's not portable.
80633         (func_create_testdir): Use func_modules_transitive_closure,
80634         func_modules_to_filelist, func_emit_lib_Makefile_am.
80635
80636 2004-10-15  Bruno Haible  <bruno@clisp.org>
80637
80638         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80639
80640 2004-10-15  Bruno Haible  <bruno@clisp.org>
80641
80642         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80643         the portions belonging to each module.
80644         Suggested by Derek Robert Price <derek@ximbiot.com>.
80645
80646 2004-10-12  Simon Josefsson  <jas@extundo.com>
80647
80648         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80649         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80650         to real functions.
80651
80652 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80653
80654         * modules/vsnprintf: New file.
80655
80656 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80657
80658         * m4/vsnprintf.m4: New file.
80659
80660 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80661
80662         * lib/vsnprintf.h: New file.
80663         * lib/vsnprintf.c: New file.
80664
80665 2004-10-11  Bruno Haible  <bruno@clisp.org>
80666
80667         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80668         vsnprintf.
80669
80670 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80673
80674 2004-10-07  Bruno Haible  <bruno@clisp.org>
80675
80676         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80677         fits into the provided buffer.
80678
80679 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         * lib/diacrit.c, diacrit.h: Add GPL notice.
80682
80683         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80684         notice.
80685         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80686         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80687         This avoids a potential constant-folding bug.
80688
80689 2004-10-05  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80692         for the declaration of strsep.
80693
80694 2004-10-05  Bruno Haible  <bruno@clisp.org>
80695
80696         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80697
80698 2004-10-04  Simon Josefsson  <jas@extundo.com>
80699
80700         * modules/memmem: New file.
80701         * tests/test-memmem.c: New file.
80702         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80703
80704 2004-10-04  Simon Josefsson  <jas@extundo.com>
80705
80706         * m4/memmem.m4: New file.
80707
80708 2004-10-04  Simon Josefsson  <jas@extundo.com>
80709
80710         * lib/memmem.h: New file.
80711         * lib/memmem.c: New file, taken from glibc.
80712
80713 2004-10-04  Simon Josefsson  <jas@extundo.com>
80714
80715         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80716         '#ifdef USE_UNLOCKED_IO'.
80717
80718 2004-10-04  Simon Josefsson  <jas@extundo.com>
80719
80720         * config/srclist.txt: Add memmem from glibc.
80721
80722 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80723
80724         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80725
80726         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80727         modules/exclude, modules/getdate, modules/getline,
80728         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80729         modules/getusershell, modules/linebuffer, modules/md5,
80730         modules/mountlist, modules/posixtm, modules/readtokens,
80731         modules/readutmp, modules/regex, modules/sha1,
80732         modules/version-etc, modules/yesno:
80733         Remove dependency on unlocked-io.
80734
80735 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80738
80739         * m4/unlocked-io.m4: Add copyright notice.
80740         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80741
80742 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80745         * lib/xmalloc.c (xmemdup): Likewise.
80746         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80747         XFREE): Remove these long-obsolescent macros.
80748         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80749         * lib/xstrdup.c: Remove.
80750
80751         * lib/regex.c (re_comp): Cast gettext return value to char *,
80752         Problem reported by Martin Neitzel via Mark D. Baushke.
80753
80754 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80755
80756         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80757         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80758         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80759         regex.c, sha1.c, version-etc.c, yesno.c:
80760         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80761         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80762         the includer's responsibility.
80763
80764         Sync from coreutils.
80765
80766         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80767         points to the start of a string, as the C Standard says the
80768         resulting behavior is undefined.
80769
80770         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80771         simple -> simple_backups, numbered_existing ->
80772         numbered_existing_backups, numbered -> numbered_backups
80773         to avoid shadowing problems.  All uses changed.
80774         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80775         * lib/backupfile.c (check_extension, numbered_backup):
80776         Rename locals to avoid shadowing 'basename'.
80777         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80778         once.
80779
80780         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80781         * lib/.cvsignore: Add getopt.h.
80782
80783 2004-10-04  Bruno Haible  <bruno@clisp.org>
80784
80785         * modules/README: New file.
80786         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80787         not a module.
80788
80789 2004-10-02  Jim Meyering  <jim@meyering.net>
80790
80791         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80792
80793 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80794
80795         * modules/strsep: New file.
80796
80797 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80798
80799         * m4/strsep.m4: New file.
80800
80801 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80802
80803         * lib/strsep.h: New file.
80804         * lib/strsep.c: New file.
80805
80806 2004-10-01  Simon Josefsson  <jas@extundo.com>
80807
80808         * lib/snprintf.c (snprintf): Handle size==0.
80809
80810 2004-10-01  Simon Josefsson  <jas@extundo.com>
80811             Bruno Haible  <bruno@clisp.org>
80812
80813         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80814         (snprintf): Declare 'args'.
80815
80816 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80817
80818         * lib/snprintf.c: Remove comments as to why each header is needed.
80819
80820 2004-10-01  Bruno Haible  <bruno@clisp.org>
80821
80822         * MODULES.html.sh: Add strsep.
80823
80824 2004-09-30  Simon Josefsson  <jas@extundo.com>
80825
80826         * modules/snprintf: New file.
80827
80828 2004-09-30  Simon Josefsson  <jas@extundo.com>
80829
80830         * m4/snprintf.m4: New file.
80831
80832 2004-09-30  Simon Josefsson  <jas@extundo.com>
80833
80834         * lib/snprintf.h, lib/snprintf.c: New files.
80835
80836 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80837
80838         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80839         (hol_entry_help): Never translate an empty string.
80840         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80841         * lib/argp.h (OPTION_NO_TRANS): New option.
80842
80843 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80844
80845         * modules/argp (Maintainer): Replace Simon Josefsson
80846         by Sergey Poznyakoff.
80847
80848 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80851         changes merged back into glibc.
80852
80853 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80854
80855         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80856
80857 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80858
80859         * lib/xvasprintf.c: Include xalloc.h.
80860         (xvasprintf): Use xalloc_die, not xmalloc_die.
80861
80862 2004-09-29  Bruno Haible  <bruno@clisp.org>
80863
80864         * modules/alloca-opt: New file, derived from modules/alloca.
80865         * modules/allocsa: Depend on alloca-opt instead of alloca.
80866         * modules/setenv: Likewise.
80867         * modules/vasnprintf: Likewise.
80868         * MODULES.html.sh: Add alloca-opt.
80869
80870 2004-09-28  Simon Josefsson  <jas@extundo.com>
80871
80872         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80873         LGPL, and to replace license template from GPL to LGPL.
80874
80875 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80876
80877         * modules/dummy: Change license to LGPL.
80878
80879 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80882
80883 2004-09-24  Simon Josefsson  <jas@extundo.com>
80884
80885         * modules/minmax (License): Change from GPL to LGPL.
80886
80887 2004-09-23  Simon Josefsson  <jas@extundo.com>
80888
80889         * gnulib-tool (--import): Typo.
80890
80891 2004-09-23  Simon Josefsson  <jas@extundo.com>
80892
80893         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80894
80895 2004-09-22  Bruno Haible  <bruno@clisp.org>
80896
80897         * modules/*: Add 'License' field.
80898         * gnulib-tool: Accept --extract-license option.
80899         (func_get_license): New function.
80900
80901 2004-09-21  Bruno Haible  <bruno@clisp.org>
80902
80903         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80904         Reported by Simon Josefsson.
80905
80906 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80909         gl_AC_TYPE_LONG_LONG.
80910
80911 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80914
80915 2004-09-18  Simon Josefsson  <jas@extundo.com>
80916         and  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80919         calls with autoreconf.  Define GL_LIB.
80920
80921 2004-09-14  Karl Berry  <karl@gnu.org>
80922
80923         * config/srclist.txt: unsync setenv.c, sigh.
80924
80925 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80928         Problem reported by Bruno Haible in:
80929         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80930
80931 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80932
80933         * config/srclist.txt: Comment out argp-pvh.c.
80934
80935 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80936
80937         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80938         in case some system header has #define'd it.  Problem reported by
80939         Soeren D. Schulze in
80940         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80941
80942 2004-09-09  Karl Berry  <karl@gnu.org>
80943
80944         * regex.[ch]: delete from the root.  These were supposed to be
80945                 synced with emacs cvs, but this has not happened for about
80946                 a year, and anyway nothing else uses emacs regex.[ch].
80947                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80948                 lib/regex[.ch] is untouched.
80949
80950 2004-09-09  Bruno Haible  <bruno@clisp.org>
80951
80952         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80953
80954 2004-09-09  Bruno Haible  <bruno@clisp.org>
80955
80956         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80957         modifications.
80958         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80959
80960 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80961
80962         * modules/xvasprintf: New file.
80963         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80964
80965 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80966
80967         * lib/xvasprintf.h: New file.
80968         * lib/xvasprintf.c: New file.
80969         * lib/xasprintf.c: New file.
80970
80971 2004-09-08  Bruno Haible  <bruno@clisp.org>
80972
80973         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80974
80975 2004-09-08  Bruno Haible  <bruno@clisp.org>
80976
80977         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80978         length is > INT_MAX.
80979         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80980         more.
80981
80982 2004-09-08  Bruno Haible  <bruno@clisp.org>
80983
80984         * lib/stdint_.h: New file, taken from GNU clisp.
80985
80986 2004-09-08  Bruno Haible  <bruno@clisp.org>
80987             Oskar Liljeblad  <oskar@osk.mine.nu>
80988
80989         * modules/stdint: New file.
80990         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80991
80992 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         Import from coreutils.
80995         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80996         strings on unbounded length.  alloca's performance benefits aren't
80997         that important here.
80998         (V_STRDUP): Remove.
80999         (parse_with_separator): New function, with most of the internals
81000         of the old parse_user_spec.  Allow user to omit both user and group,
81001         for compatibility with FreeBSD.
81002         Clone only the user name, not the entire spec.
81003         Do not set *uid, *gid unless entirely successful.
81004         Avoid memory leak in some failing cases.
81005         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81006         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81007         (parse_user_spec): Rewrite to use parse_with_separator.
81008
81009 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         * modules/userspec: Don't depend on alloca.
81012
81013 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81014
81015         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81016
81017 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81020         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81021         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81022
81023 2004-08-16  Simon Josefsson  <jas@extundo.com>
81024
81025         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81026         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81027         Add --dry-run for --import.
81028         Let user provided command line parameters override configure.ac
81029         settings.
81030
81031 2004-08-12  Simon Josefsson  <jas@extundo.com>
81032
81033         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81034         as discussed with Paul Eggert in threads rooted at
81035         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81036         and
81037         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81038         Before, the test was empty, and relied on ELIDE_CODE in source
81039         code.)
81040         (gl_PREREQ_GETOPT): New macro.
81041         (gl_GETOPT): Use them.
81042
81043 2004-08-12  Simon Josefsson  <jas@extundo.com>
81044
81045         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81046         * lib/getopt_.h: Renamed from getopt.h.
81047
81048 2004-08-12  Simon Josefsson  <jas@extundo.com>
81049
81050         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81051         Change default library name from libfoo to libgnu.
81052         Now, if you have a configure.ac that says:
81053                 gl_SOURCE_BASE(gl)
81054                 gl_M4_BASE(gl/m4)
81055                 gl_MODULES(error getopt etcetera)
81056                 gl_INIT
81057         you can import all you need by running:
81058                 ../gnulib/gnulib-tool --import
81059
81060         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81061         (Makefile.am): Rewrite, use logic from argz.
81062         (Include): Use <getopt.h> instead of "getopt.h".
81063
81064 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81065
81066         * modules/argp (Files): Add m4/unlocked-io.m4.
81067         (Depends-on): Add extensions.
81068
81069 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81070
81071         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81072         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81073         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81074         Check for program_invocation_name, program_invocation_short_name,
81075         flockfile, funlockfile, features.h, _getopt_long_only_r.
81076
81077 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81080         its complicated substitute.
81081         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81082         and program_invocation_name.
81083         (__argp_basename) [!_LIBC]: Remove; the only use was
81084         replaced by its body.
81085         (__argp_short_program_name): Change condition from
81086         !defined __argp_short_program_name to
81087         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81088         to match argp-namefrob.h.
81089         (__argp_failure): Don't assume strerror_r returns char *.
81090         * lib/argp-parse.c (N_): Define unconditionally.
81091         (argp_default_options): Fill out initializers with 0 to avoid
81092         gcc warnings.
81093
81094 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81095
81096         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81097         getopt1.c.
81098
81099 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81100
81101         Merge from coreutils.
81102
81103         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81104
81105         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81106         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81107
81108 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81109
81110         Merge from coreutils.
81111
81112         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81113         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81114         for Reliant Unix 5.43.
81115
81116         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81117         (union fooround): Use uintmax_t, not long int.
81118         The rest is a merge from libc:
81119         [defined _LIBC]: Include <shlib-compat.h>.
81120         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81121
81122         * lib/settime.c (settime): Recode to avoid warning with
81123         Sun Forte C 6U2.
81124
81125         * lib/strverscmp.c: Convert to UTF-8.
81126
81127 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81128
81129         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81130         m4/uintmax_t.m4.
81131
81132 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81133
81134         * modules/xalloc-die: New file.
81135         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81136
81137         * modules/md5 (Files): Add m4/uint32_t.m4.
81138         * modules/sha1: Renamed from modules/sha.
81139         (Files):
81140         Rename lib/sha.h to lib/sha1.h.
81141         Rename lib/sha.c to lib/sha1.c.
81142         Rename m4/sha.m4 to m4/sha1.m4.
81143         (lib_SOURCES): Likewise.
81144         (configure.ac): Rename gl_SHA to gl_SHA1.
81145         (Include): sha.h -> sha1.h.
81146
81147 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81150         * m4/sha1.m4: Renamed from sha.m4.
81151         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81152
81153 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81154
81155         * lib/obstack.h (obstack_empty_p):
81156         Don't assume that chunk->contents is suitably aligned.
81157         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81158         Likewise. Problem reported by Benno in
81159         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81160
81161         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81162         readable.  This could be improved further but it'd take some work.
81163
81164 2004-08-08  Simon Josefsson  <jas@extundo.com>
81165
81166         * modules/xgethostname (Depends-on): Remove exit and error (not
81167         used).
81168
81169         * modules/getpass-gnu: Add getpass.h.
81170         (Depends-on): Add stdbool.
81171         * modules/getpass: Add getpass.h.
81172
81173 2004-08-08  Simon Josefsson  <jas@extundo.com>
81174
81175         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81176         Check getpass declaration.
81177
81178 2004-08-08  Simon Josefsson  <jas@extundo.com>
81179
81180         * lib/xgethostname.c: Don't include error.h (not used).
81181
81182         * lib/getpass.h: Add.
81183         * lib/getpass.c: Include getpass.h first.
81184
81185 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         * lib/xalloc-die.c: New file.
81188         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81189         All uses removed.
81190         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81191         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81192         xalloc-die.c.
81193         (_, N_, xalloc_die): Move to xalloc-die.c.
81194         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81195         so that we needn't mess with xalloc_msg_memory_exhausted.
81196
81197         * lib/sha1.h: Renamed from sha.h.
81198         (SHA1_H): Renamed from _SHA_H.
81199         (sha1_ctx): Renamed from sha_ctx.
81200         (sha1_init_ctx): Renamed from sha_init_ctx.
81201         (sha1_process_block): Renamed from sha_process_block.
81202         (sha1_process_bytes): Renamed from sha_process_bytes.
81203         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81204         (sha1_read_ctx): Renamed from sha_read_ctx.
81205         (sha1_stream): Renamed from sha_stream.
81206         (sha1_buffer): Renamed from sha_buffer.
81207         * lib/sha1.c: Likewise; renamed from sha.c.
81208         Do not include <sys/types.h>.
81209         Include <stddef.h> rather than <stdlib.h>.
81210
81211 2004-08-08  Bruno Haible  <bruno@clisp.org>
81212
81213         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81214         FILESYSTEM_PREFIX_LEN.
81215         * lib/progreloc.c: Likewise.
81216         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81217
81218 2004-08-06  Simon Josefsson  <jas@extundo.com>
81219
81220         * modules/progname (Depends-on): Don't depend on stdbool.
81221
81222 2004-08-06  Simon Josefsson  <jas@extundo.com>
81223
81224         * modules/getsubopt: New file.
81225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81226         getsubopt.
81227
81228 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81229
81230         More merge from coreutils.
81231
81232         * m4/utimens.m4, m4/utimecmp.m4: New files.
81233         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81234         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81235         prereq.m4, sha.m4: Import changes from coreutils.
81236
81237 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         More merge from coreutils.
81240         * modules/raise, modules/readtokens0, modules/utimens:
81241         * modules/utimecmp, module/xnanosleep: New files.
81242         * modules/strftime: Add lib/strftime.h.
81243         Change include from <time.h> to "strftime.h".
81244         * modules/yesno: Add lib/yesno.h.
81245         * modules/backupfile: Remove lib/addext.c.
81246         * modules/euidaccess: Add stat-macros.h.
81247         * modules/canonicalize, modules/euidaccess,
81248         modules/filemode, modules/lchown, modules/makepath,
81249         modules/rmdir, modules/stat: Likewise.
81250
81251 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         Merge from tar.
81254         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81255         SIZE_MAX is a valid preprocessor constant.
81256         (__argp_basename): Change from "#ifndef _LIBC"
81257         to "#ifndef __argp_short_program_name", so that
81258         we don't compile these functions for tar.
81259
81260         More merges from coreutils.
81261         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81262         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81263         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81264         * lib/addext.c: Remove; no longer needed.
81265         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81266         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81267         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81268         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81269         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81270         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81271         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81272         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81273         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81274         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81275         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81276         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81277         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81278         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81279         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81280         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81281         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81282         Import changes from coreutils.
81283
81284 2004-08-05  Simon Josefsson  <jas@extundo.com>
81285
81286         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81287
81288 2004-08-05  Simon Josefsson  <jas@extundo.com>
81289
81290         * m4/getsubopt.m4: New file.
81291
81292 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         Merge from coreutils.
81295
81296         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81297         * m4/getcwd-path-max.m4: New files.
81298
81299         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81300         FILESYSTEM_PREFIX_LEN ->
81301         FILE_SYSTEM_PREFIX_LEN.
81302         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81303         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81304         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81305         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81306
81307         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81308         prerequisite modules now handle the DOS stuff.
81309         Don't check for unistd.h.
81310
81311 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         Merge from coreutils.
81314
81315         * lib/.gdb-history: Remove; this doesn't belong here.
81316
81317         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81318         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81319         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81320         * lib/getcwd.c: New files.
81321
81322         * lib/dirname.h: Include <stdbool.h>.
81323         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81324         for consistency with POSIX terminology.  All uses changed.
81325         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81326         (strip_trailing_slashes): Use bool for booleans.
81327         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81328
81329         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81330         sometimes returns a positive errno value even when it succeeds.
81331         (print_errno_message) [!LIBC]: Fall back on strerror if
81332         __strerror_r fails.
81333
81334         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81335         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81336         (longest_relative_suffix): New function.
81337         (path_concat): Use it.  Assume first argument is not NULL.
81338         Port to DOS.  Omit redundant separators.
81339         Report an error instead of returning NULL.
81340         Use mempcpy instead of memcpy.
81341         (xpath_concat): Remove: not declared or used.
81342
81343         * lib/same.h: Include <stdbool.h>
81344         (same_name): Return bool, not int.
81345         * lib/same.c (same_name): Likewise.
81346         (errno): Don't declare; we assume C89 or better now.
81347
81348         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81349         if not already defined.
81350
81351         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81352         * lib/dup-safer.c (errno): Likewise.
81353
81354 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81355
81356         Merge from coreutils.
81357         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81358         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81359         * modules/path-concat: Don't depend on strdup.
81360
81361 2004-08-03  Simon Josefsson  <jas@extundo.com>
81362
81363         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81364         * lib/progname.h: Don't include stdbool.h.
81365
81366 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81367
81368         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81369         * MODULES.html.sh (func_all_modules): Remove fatal.
81370
81371 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81372
81373         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81374
81375 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81378         working.
81379
81380 2004-08-02  Simon Josefsson  <jas@extundo.com>
81381
81382         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81383         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81384         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81385
81386 2004-08-01  Simon Josefsson  <jas@extundo.com>
81387
81388         * lib/xgetdomainname.c: Include stdlib.h, for free().
81389
81390 2004-07-19  Bruno Haible  <bruno@clisp.org>
81391
81392         * MODULES.html.sh (func_all_modules): Add dummy.
81393
81394 2004-07-16  Simon Josefsson  <jas@extundo.com>
81395
81396         * modules/dummy: New file.
81397
81398 2004-07-16  Simon Josefsson  <jas@extundo.com>
81399
81400         * lib/dummy.c: New file.
81401
81402 2004-07-16  Bruno Haible  <bruno@clisp.org>
81403
81404         * lib/backupfile.h: Add extern "C" for C++.
81405         * lib/closeout.h: Likewise.
81406         * lib/copy-file.h: Likewise.
81407         * lib/findprog.h: Likewise.
81408         * lib/full-write.h: Likewise.
81409         * lib/pathname.h: Likewise.
81410         * lib/progname.h: Likewise.
81411         * lib/stpcpy.h: Likewise.
81412         * lib/stpncpy.h: Likewise.
81413         * lib/strcase.h: Likewise.
81414         * lib/strstr.h: Likewise.
81415         * lib/xalloc.h: Likewise.
81416
81417         * lib/mbswidth.h: Add extern "C" for C++.
81418         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81419
81420 2004-07-13  Robert Millan  <robertmh@gnu.org>
81421
81422         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81423
81424 2004-07-09  Simon Josefsson  <jas@extundo.com>
81425
81426         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81427         failed without this.)
81428
81429 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         * modules/chown (Files): Add lib/fchown-stub.c, since
81432         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81433
81434 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81435
81436         * lib/fchown-stub.c: New file.
81437
81438 2004-06-24  Jim Meyering  <jim@meyering.net>
81439
81440         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81441
81442 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81443
81444         * modules/argz: Omit "#include".
81445
81446         * MODULES.html.sh (func_all_modules): Add calloc, to match
81447         2004-06-01 addition of calloc module.
81448
81449 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81450
81451         * m4/argz.m4: New file, which is autoupdated from libtool.
81452
81453 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81456         libtool.
81457
81458 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         * config/srclist-update: Don't insist on "USA." before the
81461         close-comment, as libtool omits the period and puts the */ on a
81462         separate line.
81463         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81464         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81465
81466 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81467
81468         * modules/argz: New file.
81469         * MODULES.html.sh (func_all_modules): Add argz.
81470
81471 2004-06-12  Jim Meyering  <jim@meyering.net>
81472         and  Paul Eggert  <eggert@cs.ucla.edu>
81473
81474         * modules/hash (Files): Add lib/xalloc.h.
81475         * modules/pipe (Depends-on): Add wait-process.
81476         * modules/stat (Depends-on): Add xalloc.
81477         * modules/userspec (Files): Add lib/userspec.h.
81478         * modules/xstrto
81479
81480         Upgrade from gettext-0.13.
81481         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81482         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81483         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81484
81485 2004-06-10  Jim Meyering  <jim@meyering.net>
81486
81487         * lib/calloc.c: New file.
81488
81489 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * lib/getdate.y (yylex): Allow space between sign and number.
81492         Problem reported by Dan Jacobson.
81493
81494 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         Merge from coreutils CVS.
81497
81498         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81499         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81500         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81501         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81502         xstrtol.m4: Fix copyright date and/or serial number.
81503
81504         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81505         See if we need an fchown replacement.
81506         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81507         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81508         and use the replacement function if we detect either defect.
81509
81510         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81511         gl_UTIMECMP.
81512
81513 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81514         and  Jim Meyering  <jim@meyering.net>
81515
81516         Merge from coreutils CVS.
81517
81518         * lib/stat-macros.h: New file, with contents from file-type.h
81519         and coreutils' system.h.
81520         * lib/file-type.c: Include "stat-macros.h".
81521         * lib/file-type.h (file_type): Move all macro definitions to new file,
81522         stat-macros.h.
81523
81524         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81525         Wrap old code with this conditional.
81526         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81527         function that does not dereference symlinks.
81528         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81529
81530         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81531         dependency problems.
81532         (xreadlink): Accept new arg SIZE, for efficiency.
81533         All decls and uses changed.
81534         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81535
81536         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81537         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81538
81539         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81540         sysexits.h.
81541
81542 2004-06-01  Jim Meyering  <jim@meyering.net>
81543
81544         * m4/calloc.m4: New file.
81545
81546 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81547
81548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81549         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81550         Also, fix a typo in a diagnostic.
81551
81552 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81553
81554         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81555         or AC_FUNC_REALLOC.
81556
81557 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81560         macros to be defined.
81561         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81562         the allocator returns NULL because the requested size is zero.
81563
81564 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81565
81566         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81567         var.  Add comment explaining why libc still defines it.  This
81568         merges the following patch from glibc:
81569         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81570
81571 2004-05-20  Andreas Schwab  <schwab@suse.de>
81572
81573         * m4/free.m4: Replace free if it not known to work, not the other
81574         way round.
81575
81576 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81579         present in glibc since revision 1.1 of this file.
81580         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81581         obstack_alignment_mask, obstack_alloc, obstack_base,
81582         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81583         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81584         obstack_grow0, obstack_init, obstack_int_grow,
81585         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81586         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81587         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81588         nonexistent functions.
81589
81590 2004-05-18  Karl Berry  <karl@gnu.org>
81591
81592         * config/srclist.txt: break link for vasnprintf.c.
81593
81594 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81595
81596         Port obstack to the AS/400, where pointers are 16 bytes wide and
81597         you cannot cast an integer to a valid pointer.  This patch is
81598         currently waiting to be integrated into glibc; see
81599         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81600
81601         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81602         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81603         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81604         (struct obstack): temp member is now a union of a pointer and
81605         an integer, instead of an integer.  All integer uses changed.
81606         This does not affect the physical layout of struct obstack,
81607         except on hosts (like the AS/400) where the size or alignment of
81608         void * is greater than that of ptrdiff_t.
81609         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81610         __STDC__)]: Store temporary in pointer member of union, not
81611         integer member.
81612         * lib/obstack.c: Include <stddef.h>, for offsetof.
81613         (struct fooalign): Remove; it doesn't need a name.
81614         (union fooround): Change double to long double, and add void *.
81615         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81616         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81617         not a macro.  Hence the values are always int; so remove all
81618         casts-to-int in uses.
81619
81620 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81621
81622         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81623         we can get this patch merged into glibc.
81624
81625 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81626             Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         * m4/argp: Depend on alloca.
81629
81630 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81631             Paul Eggert  <eggert@cs.ucla.edu>
81632
81633         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81634         freecoding.
81635
81636 2004-05-17  Bruno Haible  <bruno@clisp.org>
81637
81638         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81639         precision that consists of a '.' followed by an empty digit string.
81640         Patch by Tor Lillqvist <tml@iki.fi>.
81641
81642 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81645         for backward compatibility with older code.  We need our own
81646         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81647         it under some other name, and our alloca.h will define it.
81648
81649 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81650             Derek Price  <derek@ximbiot.com>
81651
81652         * lib/alloca.c: Include <alloca.h>, to get our interface.
81653         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81654         include <alloca.h> first.  Use C89 prototype for alloca; this
81655         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81656         Use #elif for simplicity, since we can assume C89 now.
81657         Don't try to source the system alloca.h since it will not be found
81658         and to prevent recursively including its replacement.
81659         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81660         * lib/regex.c: Likewise.
81661
81662 2004-05-16  Derek Price  <derek@ximbiot.com>
81663             Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         getline cleanup.  This changes the getndelim2 API: both order of
81666         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81667         no delimiter).
81668
81669         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81670         interface does that.
81671         (getline): Always use getdelim, so that we don't have two
81672         copies of this code.
81673         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81674         if available.
81675         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81676         (GETNDELIM2_MAXIMUM): New macro.
81677         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81678         instead of the old practice of delim2==0.  All callers changed.
81679         Return -1 on overflow, instead of returning junk.
81680         Do not set *linesize unless allocation succeeds.
81681         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81682         that we include sys/types.h.
81683         * lib/getnline.h: Likewise.
81684         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81685         (getndelim2): Reorder arguments.
81686         * lib/getnline.c (getnline, getndelim):
81687         Don't discard the NMAX argument.
81688         (getnline): Invoke getndelim, to avoid code duplication.
81689         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81690         of (size_t) -1 by callers of the getnline family.
81691
81692 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81695         Check for gettimeofday.
81696         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81697         Check for settimeofday, stime.
81698
81699 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81700
81701         * lib/nanosleep.c (suspended): Change its type from int to
81702         sig_atomic_t volatile.
81703         (first_call): Make it private to rpl_nanosleep, and have it
81704         be zero initially as that's a bit faster.
81705         (my_usleep): Round up fractional times instead of truncating them,
81706         as this is the usual meaning for 'sleep'.
81707
81708         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81709         doesn't work.
81710         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81711         (ENOSYS): Define if not defined.
81712         (settime): Fall back on stime if it exists and settimeofday fails.
81713         But don't bother with fallbacks if a method fails with errno == EPERM.
81714
81715 2004-05-11  Jim Meyering  <jim@meyering.net>
81716
81717         Prior to this change, the save_cwd caller required read access to the
81718         current directory on most systems (ones with the fchdir function).
81719
81720         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81721         fails, try write-only, and finally, resort to using xgetcwd.
81722
81723 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81724
81725         * lib/obstack.c, obstack.h: Import changes from libc.
81726
81727 2004-04-28  Bruno Haible  <bruno@clisp.org>
81728
81729         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81730         also implicitly appends .exe to executables.
81731         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81732         accepts Windows pathnames.
81733         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81734         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81735         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81736         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81737         Reported by Derek Robert Price <derek@ximbiot.com>.
81738
81739 2004-04-21  Karl Berry  <karl@gnu.org>
81740
81741         * config/srclist.txt (localcharset.c): break sync.
81742
81743 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81744
81745         * m4/host-os.m4: Add a copyright notice.
81746
81747 2004-04-20  Jim Meyering  <jim@meyering.net>
81748
81749         Change UTILS_ to gl_ in AC_DEFINE'd names.
81750         Change utils_- and jm_-prefixed variables, too.
81751         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81752         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81754
81755         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81756         Don't emit trailing blanks.
81757         Also rename jm_-prefixed variables to have gl_ prefix.
81758
81759         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81760         Also rename jm_-prefixed variables to have gl_ prefix.
81761
81762         * m4/jm-macros.m4: Reflect the renamings.
81763         * m4/prereq.m4: Likewise.
81764
81765 2004-04-20  Jim Meyering  <jim@meyering.net>
81766
81767         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81768         memory.
81769
81770 2004-04-20  Jim Meyering  <jim@meyering.net>
81771             Bruno Haible  <bruno@clisp.org>
81772
81773         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81774         memory when realloc fails.
81775
81776 2004-04-19  Jim Meyering  <jim@meyering.net>
81777
81778         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81779         now that readutmp.c may call `free (0)'.
81780
81781 2004-04-19  Bruno Haible  <bruno@clisp.org>
81782
81783         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81784         * m4/inttypes_h.m4: Likewise.
81785         * m4/stdint_h.m4: Likewise.
81786         * m4/intmax_t.m4: Likewise.
81787         * m4/uintmax_t.m4: Likewise.
81788
81789 2004-04-18  Jim Meyering  <jim@meyering.net>
81790
81791         * m4/prereq.m4: Don't forbid jm_ prefix.
81792
81793         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81794         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81795         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81796         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81797         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81798         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81799         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81800         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81801         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81802         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81803         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81804         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81805         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81806         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81807         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81808         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81809         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81810         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81811         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81812
81813 2004-04-18  Jim Meyering  <jim@meyering.net>
81814
81815         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81816         failure, don't leak memory and do call END_UTMP_ENT.
81817
81818 2004-04-16  Jim Meyering  <jim@meyering.net>
81819
81820         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81821         coreutils' stat program.
81822         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81823
81824 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81825
81826         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81827         C89.
81828         (CHAR_BIT): Remove, since we assume C89.
81829         Include <stdint.h> if available, as per current Autoconf CVS advice.
81830
81831 2004-03-31  Jim Meyering  <jim@meyering.net>
81832
81833         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81834         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81835         * m4/xalloc.m4: Likewise.
81836
81837 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81838
81839         Merge from coreutils.
81840
81841         * m4/inttostr.m4: New file.
81842         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81843         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81844         Require gl_CLOCK_TIME.
81845         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81846
81847 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81848
81849         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81850         not bool, to be more consistent with Unix conventions.
81851         Suggested by Bruno Haible.
81852
81853         Merge from coreutils.
81854
81855         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81856         * lib/umaxtostr.c: New files.
81857
81858         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81859         the usual <time.h> dance.
81860         (get_date): Change signature to support fractional time stamps.
81861         All callers changed.
81862         * lib/getdate.y: Include "getdate.h" first, as we can now
81863         assume C89 and don't need to worry about 'const'.
81864         Similarly, include "unlocked-io.h" near start, not in middle.
81865         Include <limits.h>.
81866         (textint.value): Use long int rather than int.
81867         (textint.digits): Use size_t rather than int.
81868         (BILLION, LOG10_BILLION): New constants.
81869         (parser_control): New member rel_ns.  Members day_ordinal,
81870         time_zone, month, day, hour, minutes, rel_year, rel_month,
81871         rel_day, rel_hour, rel_minutes, rel_seconds
81872         are now long int, not int.  Member seconds is now struct timespec,
81873         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81874         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81875         not int.
81876         (%union.intval): Now long int, not int.
81877         New member timespec.
81878         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81879         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81880         (spec): Now is a timespec or an item list.
81881         (timespec, items): New nonterminals.
81882         (time, rel, relunit, number, get_date):
81883         Add support for fractional seconds.
81884         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81885         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81886         (to_hour): First arg is now long int, not int.
81887         (to_year): Returns long int, not int.
81888         Don't treat year -70 like 70.
81889         (tm_diff): Returns long int, not int.
81890         (lookup_word): Use bool instead of int when appropriate.
81891         (yylex): Use size_t for count, not int.
81892         Detect overflow when parsing large integer constants.
81893         Add support for fractions.
81894         (get_date): Make pointers 'const' if possible.
81895         Use more-portable code to detect integer overflow.
81896         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81897         Don't use ctime; it's not reliable if the year has >4 digits.
81898
81899         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81900         This is for compatibility with BSD.
81901
81902         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81903         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81904         From coreutils' system.h.
81905
81906         * lib/userspec.c: Don't include "posixver.h".
81907         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81908         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81909         compatible extension.  Simplify code by removing a boolean int
81910         that was always nonzero if a string was nonnull.
81911
81912 2004-03-30  Jim Meyering  <jim@meyering.net>
81913
81914         Merge from coreutils.
81915
81916         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81917         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81918         on some systems one must include <grp.h> before it.
81919         Reported by Christian Krackowizer.
81920
81921 2004-03-30  Jim Meyering  <jim@meyering.net>
81922
81923         Merge from coreutils.
81924
81925         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81926
81927         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81928         an empty input stream.
81929
81930         * lib/readtokens.c: Include <stdbool.h>.
81931         (readtoken): Use `size_t' rather than int/long.
81932         All callers adjusted.
81933         Use `bool' rather than `int' where appropriate.
81934         Use memset rather than an explicit loop.
81935         Use x2nrealloc rather than xrealloc.
81936         Allow the use of `\0' as a delimiter.
81937         (readtokens): Likewise.
81938         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81939
81940 2004-03-30  Jim Meyering  <jim@meyering.net>
81941
81942         * m4/realloc.m4: Remove file, since now it does no more than
81943         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81944         the `configure.ac' section of module/realloc.
81945         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81946
81947 2004-03-30  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81950         nonnull.
81951
81952 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81953
81954         Merge changes to getloadavg.c from coreutils and Emacs.
81955
81956         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81957         Define to an expression, not to the empty string.
81958         Include cloexec.h and xalloc.h.
81959         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81960         Use set_cloexec_flag rather than rolling our own.
81961         * lib/cloexec.c, lib/cloexec.h: New files.
81962
81963 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81964
81965         * m4/cloexec.m4: New file.
81966
81967 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81968
81969         * lib/getopt.h: Sync with libc CVS.
81970
81971 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81972             Bruno Haible  <bruno@clisp.org>
81973
81974         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81975         mbswidth.
81976
81977 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81978             Bruno Haible  <bruno@clisp.org>
81979
81980         * lib/mbswidth.h: Include <wchar.h> only if
81981         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81982         <wchar.h>.
81983         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81984
81985 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81986
81987         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81988         Sync with libc CVS.
81989         * lib/getopt_int.h: New file, also synced from libc.
81990
81991 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81992
81993         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81994         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81995         Bring back getopt.c, getopt.h, getopt1.c.
81996
81997 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81998
81999         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82000         All uses changed.  Check for sa_sigaction member; this fixes
82001         a bug first reported by Jason Andrade in
82002         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82003
82004 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82005
82006         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82007         '#if' expressions.  Unlike the code it replaces, it does not
82008         depend on (defined _SC_PAGESIZE).  However, it does depend on
82009         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82010         first reported by Jason Andrade in
82011         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82012
82013 2004-02-25  Simon Josefsson  <jas@extundo.com>
82014
82015         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82016
82017 2004-02-25  Simon Josefsson  <jas@extundo.com>
82018
82019         * lib/strdup.h: New file.
82020         * lib/strdup.c: Include it.
82021         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82022         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82023
82024 2004-02-23  Karl Berry  <karl@gnu.org>
82025
82026         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82027         (from fencepost.gnu.org:/gd/gnuorg).
82028
82029 2004-02-23  Karl Berry  <karl@gnu.org>
82030
82031         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82032         * config/srclist.txt: add maintain/standards documents.
82033
82034 2004-02-18  Bruno Haible  <bruno@clisp.org>
82035
82036         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82037         Reported by Derek Robert Price <derek@ximbiot.com>.
82038
82039 2004-02-16  Karl Berry  <karl@gnu.org>
82040
82041         * config/mkinstalldirs, install-sh: update from automake.
82042
82043 2004-02-06  Karl Berry  <karl@gnu.org>
82044
82045         * m4/po.m4: update from gettext 0.14.1.
82046
82047 2004-02-06  Karl Berry  <karl@gnu.org>
82048
82049         * lib/config.charset: update from gettext 0.14.1.
82050
82051 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82052
82053         Add comments and code, prompted by suggestions from Bruno Haible
82054         for sh-quote.
82055         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82056         describing the enum quoting_style values.
82057         * lib/quotearg.c (quotearg_alloc): New function.
82058         (quotearg_buffer_restyled): Treat lone { and } as special.
82059         Treat = as special.  Work around bug with older shells
82060         that "see" a '\' that is really the 2nd byte of a multibyte char.
82061         Quote empty string with shell_quoting_style.
82062
82063 2004-02-03  Bruno Haible  <bruno@clisp.org>
82064
82065         * m4/pipe.m4: New file, from GNU gettext.
82066
82067 2004-02-03  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/pipe.h: New file, from GNU gettext.
82070         * lib/pipe.c: New file, from GNU gettext.
82071
82072 2004-01-27  Bruno Haible  <bruno@clisp.org>
82073
82074         * m4/execute.m4: New file, from GNU gettext.
82075
82076 2004-01-27  Bruno Haible  <bruno@clisp.org>
82077
82078         * lib/execute.h: New file, from GNU gettext.
82079         * lib/execute.c: New file, from GNU gettext.
82080         * lib/w32spawn.h: New file, from GNU gettext.
82081
82082 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82083
82084         Merge from diffutils.
82085
82086         * lib/file-type.c (file_type): Add typed memory objects.
82087         * lib/file-type.h (S_TYPEISTMO): New macro.
82088
82089         * lib/c-stack.h (c_stack_action): Remove argv argument.
82090         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82091         (die): Don't calculate message unless segv_action returns.
82092         (get_stack_location, min_address_from_argv, max_address_from_argv,
82093         volatile stack_base, volatile_stack_size): Remove.
82094         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82095         that every segmentation violation is a stack overflow.  (Ouch!)
82096         See Debian bug 136249 (still outstanding) for more info about why
82097         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82098
82099 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82100
82101         Exit-status fix from coreutils.
82102
82103         Use exit_failure consistently in place of EXIT_FAILURE,
82104         so that program exit statuses are consistent on failure.
82105
82106         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82107         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82108         * lib/argmatch.h: Comment fix to match the above.
82109         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82110         Now a macro referring to exit_failure, instead of a separate
82111         variable.  Include "exitfail.h" to get it.
82112         * lib/xstrtol.h: Include "exitfail.h".
82113         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82114
82115         * lib/long-options.c (parse_long_options): Use prototype
82116         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82117         for clarity.
82118
82119 2004-01-21  Jim Meyering  <jim@meyering.net>
82120
82121         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82122         so as not to conflict with a different-sized __mktime_internal
82123         function in GNU libc.
82124         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82125         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82126
82127 2004-01-20  Karl Berry  <karl@gnu.org>
82128
82129         * config/config.guess: update from config.
82130
82131         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82132
82133 2004-01-20  Bruno Haible  <bruno@clisp.org>
82134
82135         Safer stack allocation.
82136         * lib/setenv.c: Include allocsa.h.
82137         (alloca): Remove fallback definition.
82138         (freea): Remove macro.
82139         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82140         instead of freea.
82141
82142 2004-01-20  Bruno Haible  <bruno@clisp.org>
82143
82144         * m4/eealloc.m4: New file, from GNU gettext.
82145
82146 2004-01-20  Bruno Haible  <bruno@clisp.org>
82147
82148         * m4/allocsa.m4: New file, from GNU gettext.
82149
82150 2004-01-20  Bruno Haible  <bruno@clisp.org>
82151
82152         * lib/xallocsa.h: New file, from GNU gettext.
82153         * lib/xallocsa.c: New file, from GNU gettext.
82154
82155 2004-01-20  Bruno Haible  <bruno@clisp.org>
82156
82157         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82158
82159 2004-01-20  Bruno Haible  <bruno@clisp.org>
82160
82161         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82162         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82163         specially.
82164
82165 2004-01-20  Bruno Haible  <bruno@clisp.org>
82166
82167         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82168         patch.
82169
82170 2004-01-20  Bruno Haible  <bruno@clisp.org>
82171
82172         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82173
82174 2004-01-20  Bruno Haible  <bruno@clisp.org>
82175
82176         * lib/eealloc.h: New file.
82177
82178 2004-01-20  Bruno Haible  <bruno@clisp.org>
82179
82180         * lib/binary-io.h: Avoid warnings on Cygwin.
82181
82182 2004-01-20  Bruno Haible  <bruno@clisp.org>
82183
82184         * lib/allocsa.h: New file, from GNU gettext.
82185         * lib/allocsa.c: New file, from GNU gettext.
82186
82187 2004-01-18  Karl Berry  <karl@gnu.org>
82188
82189         * doc/gpl.texi, doc/lgpl.texi: new files.
82190
82191 2004-01-18  Karl Berry  <karl@gnu.org>
82192
82193         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82194         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82195
82196 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82197
82198         Merge from coreutils.
82199
82200         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82201         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82202         (gl_DEFAULT_POSIX2_VERSION): Move
82203         the documentation from 'configure' into 'config.hin',
82204         so that 'configure --help' isn't burdened by it and
82205         we don't have to worry about its formatting there.
82206         Reword the documentation so that it's more succinct
82207         and can be run together into a single paragraph.
82208         * m4/same.m4 (gl_SAME): Check for pathconf.
82209
82210 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82211
82212         Merge from coreutils.
82213
82214         * lib/posixver.c: Include posixver.h.
82215
82216         * lib/same.c: Include <stdbool.h>, <limits.h>.
82217         (_POSIX_NAME_MAX): Define if not defined.
82218         (MIN): New macro.
82219         (same_name): If file names are silently truncated, report
82220         that the file names are the same if they are the same after
82221         the silent truncation.
82222
82223         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82224         conversion function.
82225         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82226         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82227         longer needed.
82228
82229 2004-01-15  Jim Meyering  <jim@meyering.net>
82230
82231         Merge from coreutils.
82232
82233         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82234         if no library is required.
82235         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82236         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82237         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82238         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82239         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82240         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82241         value, $ac_cv_search_crypt, if it's "none required".
82242         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82243         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82244         not gl_FUNC_GETLOADAVG.
82245         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82246         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82247
82248 2004-01-15  Jim Meyering  <jim@meyering.net>
82249
82250         Merge from coreutils.
82251
82252         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82253         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82254         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82255
82256         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82257         optional configure-time default.
82258
82259         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82260
82261         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82262
82263 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82264
82265         Merge from coreutils.
82266
82267         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82268         value, $ac_cv_search_nanosleep, if it's "none required".
82269
82270 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82271
82272         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82273         with like-named macro in fnmatch.c.
82274         (EXT): Use an internal constant instead.
82275
82276         Merge fnmatch patches from glibc.
82277         * lib/fnmatch.c (mbsinit): Remove define.
82278         Add libc_hidden_ver (__fnmatch, fnmatch).
82279         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82280         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82281
82282 2004-01-14  Karl Berry  <karl@gnu.org>
82283
82284         * config/install-sh: update from automake.
82285
82286 2004-01-13  Karl Berry  <karl@gnu.org>
82287
82288         * config/install-sh: update from automake.
82289
82290 2004-01-09  Karl Berry  <karl@gnu.org>
82291
82292         * config/install-sh: update from automake.
82293
82294 2004-01-05  Karl Berry  <karl@gnu.org>
82295
82296         * config/config.{sub,guess}: update from config.
82297
82298 2003-12-31  Karl Berry  <karl@gnu.org>
82299
82300         * config/depcomp: update from automake.
82301
82302 2003-12-14  Karl Berry  <karl@gnu.org>
82303
82304         * lib/config.charset: update from gettext-runtime.
82305
82306 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82307
82308         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82309         Bug reported by Alfred M. Szmidt.
82310
82311 2003-12-03  Bruno Haible  <bruno@clisp.org>
82312
82313         * m4/gettext.m4: Upgrade from gettext-0.13.
82314         * m4/po.m4: Upgrade from gettext-0.13.
82315         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82316         * m4/intmax.m4: New file, from gettext-0.13.
82317         * m4/printf-posix.m4: New file, from gettext-0.13.
82318
82319 2003-11-29  Karl Berry  <karl@gnu.org>
82320
82321         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82322
82323 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82324             Bruno Haible  <bruno@clisp.org>
82325
82326         * lib/printf-parse.h: Don't include sys/types.h.
82327         (ARG_NONE): New macro.
82328         (char_directive): Change type of *arg_index fields to size_t.
82329         * lib/printf-parse.c: Don't include sys/types.h.
82330         (SSIZE_MAX): Remove macro.
82331         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82332         Remove unnecessary overflow check.
82333         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82334         fields.
82335
82336 2003-11-25  Bruno Haible  <bruno@clisp.org>
82337
82338         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82339
82340 2003-11-25  Bruno Haible  <bruno@clisp.org>
82341
82342         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82343         gt_TYPE_SSIZE_T.
82344
82345 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82346
82347         * modules/alloca: Remove dependency on xalloc.
82348
82349 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82350
82351         * lib/alloca.c: Remove dependency on xalloc module.
82352         (xalloc_die): Remove.
82353         (memory_full) [!defined emacs]: New macro.
82354         [!defined emacs]: Don't include xalloc.h.
82355         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82356         address arithmetic overflows.  Change datatypes a bit to avoid
82357         unnecessary casts.
82358
82359 2003-11-22  Jim Meyering  <jim@meyering.net>
82360
82361         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82362         s/size/size_t/.
82363
82364 2003-11-21  Karl Berry  <karl@gnu.org>
82365
82366         * config/config.{sub,guess}: update from config.
82367
82368 2003-11-18  Karl Berry  <karl@gnu.org>
82369
82370         * config/config.{sub,guess}: update from config.
82371
82372         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82373
82374 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82375
82376         * README: Mention that S+T cannot overflow if S is the size of
82377         an existing object and T is sufficiently small.
82378
82379 2003-11-17  Jim Meyering  <jim@meyering.net>
82380
82381         On systems without utime and without a utimes function capable of
82382         dealing with a NULL struct utimbuf* argument, this utime replacement
82383         could -- in unusual circumstances -- leak a file descriptor.
82384         * lib/utime.c: Include <unistd.h> and <errno.h>.
82385         (utime_null): Be sure to close `fd' and to preserve errno.
82386         Reported by Geoff Collyer via Arnold Robbins.
82387
82388 2003-11-17  Bruno Haible  <bruno@clisp.org>
82389
82390         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82391         (Depends-on): Add xsize.
82392
82393 2003-11-17  Bruno Haible  <bruno@clisp.org>
82394
82395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82396
82397 2003-11-17  Bruno Haible  <bruno@clisp.org>
82398
82399         * lib/vasnprintf.c (alloca): Remove fallback definition.
82400         (freea): Remove definition.
82401         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82402         Reported by Paul Eggert.
82403
82404 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82405             Bruno Haible  <bruno@clisp.org>
82406
82407         Protect against address arithmetic overflow.
82408         * lib/printf-args.h: Include stddef.h.
82409         (arguments): Change type of field 'count' to size_t.
82410         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82411         'unsigned int' where appropriate.
82412         * lib/printf-parse.h: Include sys/types.h.
82413         (char_directive): Change type of *arg_index fields to ssize_t.
82414         (char_directives): Change type of fields 'count', max_*_length to
82415         size_t.
82416         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82417         (SSIZE_MAX): Define fallback value.
82418         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82419         instead of 'int' where appropriate. Check a_allocated, d_allocated
82420         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82421         * lib/vasnprintf.c: Include xsize.h.
82422         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82423         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82424         overflow. Avoid wraparound when converting a width or precision from
82425         decimal to binary.
82426
82427 2003-11-16  Bruno Haible  <bruno@clisp.org>
82428
82429         Update from GNU gettext.
82430         * lib/printf-parse.c: Generalize to it can be compiled for wide
82431         strings.
82432         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82433         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82434         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82435         SNPRINTF): New macros.
82436         Don't include <alloca.h> if the file is used inside libintl.
82437         (local_wcslen): New function, for Solaris 2.5.1.
82438         (VASNPRINTF): Use it instead of wcslen.
82439
82440 2003-11-16  Bruno Haible  <bruno@clisp.org>
82441
82442         * lib/xsize.h (xmax): New function.
82443         (xsum, xsum3, xsum4): Declare as "pure" functions.
82444
82445 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82446
82447         * modules/xalloc (Files): Undo latest change, since xalloc.h
82448         no longer needs SIZE_MAX or PTRDIFF_MAX.
82449
82450 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82451
82452         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82453         gl_PTRDIFF_MAX.
82454
82455 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82456
82457         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82458         "return", to pacify some unknown compiler.  Problem reported
82459         by Joerg Schilling.
82460
82461 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82462
82463         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82464         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82465         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82466         heuristic is just as accurate as far as we know, and it removes a
82467         dependency on size_max.m4 and ptrdiff_max.m4.
82468
82469 2003-11-11  Bruno Haible  <bruno@clisp.org>
82470
82471         * modules/xsize (Files): Add m4/size_max.m4.
82472         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82473
82474 2003-11-11  Bruno Haible  <bruno@clisp.org>
82475
82476         * m4/size_max.m4: New file.
82477         * m4/ptrdiff_max.m4: New file.
82478         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82479         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82480         (gl_XALLOC): Invoke it.
82481
82482 2003-11-11  Bruno Haible  <bruno@clisp.org>
82483
82484         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82485         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82486         defined.
82487
82488 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82489
82490         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82491         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82492         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82493         From Bruno Haible.
82494         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82495         not (size_t) -1, since it's defined here.
82496
82497 2003-11-09  Karl Berry  <karl@gnu.org>
82498
82499         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82500
82501 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82502
82503         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82504         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82505         Reject sizes of exactly SIZE_MAX bytes.
82506         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82507         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82508
82509 2003-11-05  Bruno Haible  <bruno@clisp.org>
82510
82511         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82512         SIZE_MAX defined in <limits.h> on Solaris.
82513
82514 2003-11-04  Jim Meyering  <jim@meyering.net>
82515
82516         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82517         variable names, rather than @VAR@.
82518         * modules/poll: Likewise.
82519
82520 2003-11-04  Bruno Haible  <bruno@clisp.org>
82521
82522         * modules/xsize: New file.
82523         * modules/linebreak: Depend on xsize.
82524         * MODULES.html.sh (func_all_modules): Add xsize.
82525
82526 2003-11-04  Bruno Haible  <bruno@clisp.org>
82527
82528         * m4/xsize.m4: New file.
82529
82530 2003-11-04  Bruno Haible  <bruno@clisp.org>
82531
82532         * lib/xsize.h: New file.
82533         * lib/linebreak.c: Include xsize.h.
82534         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82535         argument for overflow.
82536         Suggested by Paul Eggert.
82537
82538 2003-11-03  Karl Berry  <karl@gnu.org>
82539
82540         * config/config.{guess,sub}: update from config.
82541
82542 2003-11-03  Jim Meyering  <jim@meyering.net>
82543
82544         * modules/userspec (lib_SOURCES): Add userspec.h.
82545         (Include): Add "userspec.h".
82546         Improve description.
82547
82548 2003-11-03  Jim Meyering  <jim@meyering.net>
82549
82550         * lib/userspec.c: Include "userspec.h".
82551         * lib/userspec.h: New file.
82552
82553 2003-11-03  Bruno Haible  <bruno@clisp.org>
82554
82555         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82556
82557 2003-11-03  Bruno Haible  <bruno@clisp.org>
82558
82559         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82560         available, to avoid (extremely rare) race condition.
82561         Suggested by Paul Eggert.
82562
82563 2003-11-02  Karl Berry  <karl@gnu.org>
82564
82565         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82566
82567 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82568
82569         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82570         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82571         (read_filesystem_list): Set and use me_type_malloced.
82572         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82573         whatever the type happens to be), for brevity and consistency.
82574         Check for size calculation overflow on Alphas running OSF/1.
82575
82576 2003-10-31  Jim Meyering  <jim@meyering.net>
82577
82578         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82579
82580         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82581
82582 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82583             Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82586         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82587
82588 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82589
82590         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82591         netbsd*-gnu*.  Suggested by Robert Millan.
82592
82593 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82594
82595         * modules/group-member: Depend on stdbool.
82596
82597 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82598
82599         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82600
82601 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82602
82603         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82604         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82605         after the 'gnu' in these cases.  This fixes some bugs in the
82606         previous change, and is based on suggestions by Robert Millan.
82607
82608 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82609
82610         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82611         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82612         no longer needed.
82613         * lib/quotearg.c (quotearg_n_options): Use it.
82614         * lib/group-member.c: Include <stdbool.h>.
82615         (free_group_info): Arg is now const *; don't free arg.
82616         (get_group_info): Now returns bool and accepts struct group_info *,
82617         rather than returning a malloc'ed struct group_info *.
82618         All uses changed.  Check for overflow in internal size calculation.
82619
82620         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82621         rather than xmalloc/xrealloc.
82622         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82623         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82624         conformance bug: the old code used a pointer after freeing the
82625         storage that it addressed.
82626         * lib/hash.c (hash_initialize): Simplify the code by using
82627         xalloc_oversized rather than doing it by hand.
82628         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82629         the buffer preserved.  Use free and xmalloc instead.
82630         * lib/quotearg.c (quotearg_n_options): Likewise.
82631         Use a simpler test for size overflow.  Don't use xalloc_oversized
82632         because unsigned int might be wider than size_t (!); this suggests
82633         that we should switch from unsigned int to size_t for slot numbers.
82634
82635 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82636
82637         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82638         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82639         NetBSD kernels.  Requested by Richard Stallman.
82640
82641 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82642
82643         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82644         to allocate the returned structure.  Do not allocate a subarray,
82645         as x2nrealloc will do that.
82646         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82647         instead of xnrealloc.
82648         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82649
82650 2003-10-27  Bruno Haible  <bruno@clisp.org>
82651
82652         * lib/stdbool_.h: Better support for BeOS.
82653
82654 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82655
82656         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82657         now uses inline.
82658
82659 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82660
82661         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82662         callers that want to do their own size-overflow checking.  Include
82663         <stdbool.h>, since xalloc_oversized returns bool.
82664         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82665         to use xalloc_oversized.
82666
82667         Add two functions x2realloc, x2nrealloc, for programs that grow
82668         arrays dynamically by doubling their sizes.
82669         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82670         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82671         New functions.
82672
82673         Port to C99 semantics for 'inline' of external functions.
82674         Bug reported by Bruno Haible.
82675         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82676         with the old contents of xnmalloc.
82677         (xnmalloc, xmalloc): Use it.
82678         (xnrealloc_inline): New static inline function,
82679         with the old contents of xnrealloc.
82680         (xnrealloc, xrealloc): Use it.
82681
82682         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82683         that.
82684
82685 2003-10-26  Karl Berry  <karl@gnu.org>
82686
82687         * config/srclist.txt (COPYING.DOC): no longer available from
82688         /gd/gnuorg; don't know where the ultimate source is.
82689
82690 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82691
82692         Fix several address-calculation bugs in the hash modules,
82693         plus some minor code cleanup.
82694
82695         * lib/hash.h: Include <stdbool.h>, for bool.
82696         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82697         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82698         hash_get_n_entries, hash_get_max_bucket_length,
82699         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82700         hash_rehash): Use size_t rather than unsigned.
82701         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82702         hash_get_n_buckets_used, hash_get_n_entries,
82703         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82704         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82705         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82706         Likewise.
82707         (SIZE_MAX): Define if not defined.
82708         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82709         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82710         hash_print):
82711         Use const * when possible.
82712         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82713         (check_tuning): Fix bug: if tuning parameters were very close to
82714         0 or 1, rounding errors could have caused subscript violations.
82715         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82716         (hash_initialize): Add 'fail:' label
82717         to free table and return NULL, and use it to simplify code.
82718         Use calloc rather than clearing the storage ourself.
82719         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82720         buffer size calculations.
82721         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82722         Include <stddef.h>, for size_t.
82723         * lib/hash-pjw.c (hash_pjw): Likewise.
82724         Switch to method described by Bruno Haible.
82725         Include <limits.h>, for CHAR_BIT.
82726         (SIZE_BITS): New macro.
82727
82728 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82729
82730         * m4/getline.m4 (AM_FUNC_GETLINE):
82731         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82732         hosts.  Problem reported by Derek Robert Price in
82733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82734         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82735         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82736
82737 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82738
82739         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82740         ceiling the allocation at NMAX bytes rather than silently
82741         discarding input bytes before NMAX is reached.  This makes
82742         a difference only if NMAX exceeds SIZE_MAX / 2.
82743
82744         * lib/obstack.c: Merge from glibc.
82745         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82746         Add libc_hidden_def (_obstack_newchunk).
82747         (_obstack_free) [! defined _LIBC]: Remove.
82748         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82749         a clone of the function body.
82750         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82751         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82752
82753         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82754         glibc.
82755         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82756         arg to memcpy.
82757
82758         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82759         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82760         Don't use lvalue casts, as GCC plans to remove support for them
82761         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82762         was also present in the non-GCC version, indicating that this
82763         code had always been buggy and had never been widely used.
82764         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82765         Use the fast variant of each macro, rather than copying the
82766         definiens of the fast variant; that way, we'll be more likely to
82767         catch future bugs in the fast variants.
82768
82769 2003-10-20  Bruno Haible  <bruno@clisp.org>
82770
82771         * modules/wait-process: New file.
82772         * MODULES.html.sh (func_all_modules): Add wait-process.
82773
82774 2003-10-20  Bruno Haible  <bruno@clisp.org>
82775
82776         * m4/wait-process.m4: New file.
82777
82778 2003-10-20  Bruno Haible  <bruno@clisp.org>
82779
82780         * lib/wait-process.h: New file, from GNU gettext.
82781         * lib/wait-process.c: New file, from GNU gettext.
82782
82783 2003-10-19  Jim Meyering  <jim@meyering.net>
82784
82785         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82786         HPUX 10.20.
82787
82788 2003-10-18  Karl Berry  <karl@gnu.org>
82789
82790         * config/config.guess: update from config.
82791
82792 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82793
82794         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82795         (getgroups): First arg is int, not size_t.
82796         Don't let 'free' mangle errno.
82797
82798 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82799
82800         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82801
82802 2003-10-16  Karl Berry  <karl@gnu.org>
82803
82804         * config/config.{guess,sub}: update from config.
82805
82806 2003-10-16  Jim Meyering  <jim@meyering.net>
82807
82808         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82809         memcpy.
82810
82811 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82812
82813         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82814         (SIZE_MAX): Remove.
82815         (new_exclude, add_exclude_file): Initial size no longer needs to
82816         be a power of 2.
82817         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82818         our own address arithmetic overflow checking.
82819
82820         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82821         (fnmatch): Do not alloca more than 2000 wide characters;
82822         instead, use malloc for large buffers.
82823         Check for address arithmetic overflow, and return -1
82824         with errno set to ENOMEM in that case.
82825         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82826         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82827         instead, return -1.  Check for address arithmetic overflow.
82828
82829 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82830
82831         Handle invalid suffixes and overflow independently, so that
82832         callers can treat them independently as needed.  Fix some bugs in
82833         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82834         suffix for a human-readable blocksize.  The major caller-visible
82835         change is the addition of a new
82836         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82837         that both overflow and suffix chars were found.
82838
82839         * lib/human.c (humblock): Don't check separately for invalid suffix
82840         char; that is xstrtoumax's job (now that its bug is fixed).
82841         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82842         INTMAX_MAX]: New macros.
82843         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82844         TYPE_MAXIMUM): New macros.
82845         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82846         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82847         if overflow occurs, as it's what __strtol does and it's more useful
82848         in practice.
82849         (__xstrtol): If __strtol reports some error other than ERANGE,
82850         reflect it to the caller as LONGINT_INVALID.  If it reports
82851         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82852         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82853         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82854         value.
82855         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82856         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82857         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82858         [defined UINTMAX_MAX]: New macros.
82859
82860 2003-10-14  Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82863
82864 2003-10-14  Bruno Haible  <bruno@clisp.org>
82865
82866         * m4/sig_atomic_t: New file, from GNU gettext.
82867         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82868
82869 2003-10-14  Bruno Haible  <bruno@clisp.org>
82870
82871         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82872         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82873         Also use volatile where needed.
82874
82875 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82876
82877         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82878         Change maintainer from Bruno Haible to 'all'.
82879
82880 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82881
82882         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82883
82884 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82885
82886         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82887         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82888         and define in terms of the other primitives.
82889         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82890         (SIZE_MAX): Define if not already defined.
82891         (array_size_overflow): New function.
82892         (xalloc_die): Abort instead of exiting if 'error' returns.
82893         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82894         (xmalloc, xrealloc): Use them.
82895         (xcalloc): Check for address arithmetic overflow.
82896         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82897         a bit faster than strcpy.
82898
82899 2003-10-10  Simon Josefsson  <jas@extundo.com>
82900
82901         * modules/argp (Depends-on): Add restrict and strcase.
82902
82903 2003-10-10  Simon Josefsson  <jas@extundo.com>
82904
82905         * m4/argp.m4: Add AC_C_INLINE.
82906
82907 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82908
82909         Merge getpass from libc, plus a few fixes.
82910
82911         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82912         Include <stdbool.h>.
82913         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82914         __fsetlocking to empty.
82915         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82916         do include <bits/libc-lock.h>.
82917         Do not include <fcntl.h>; not needed.
82918         [_LIBC]: Include <wchar.h>.
82919         (NOTCANCEL_MODE): New macro.
82920         (flockfile, funlockfile) [_LIBC]: New macros.
82921         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82922         [!_LIBC]: New macros.
82923         (call_fclose): New function.
82924         (getpass): Use it.  Save tty stream separately; this simplifies the
82925         code and makes it more reliable if stdin happens to equal stdout.
82926         Invoke __fsetlocking on tty.
82927         Handle thread cancellation if needed.
82928         Namespace cleanup (use __tcgetattr, __getline).
82929         Use bool for Booleans.
82930         [USE_IN_LIBIO]: Handle wide streams.
82931         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82932         stream might go where.
82933
82934         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82935         doesn't have to include <stdio.h> before us.
82936         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82937         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82938         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82939         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82940         if not declared, so that we can use getpass.c code from libc without
82941         rewriting it.
82942         (flockfile, ftrylockfile, funlockfile): New macros.
82943
82944 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82945
82946         * modules/getpass: Depend on stdbool.
82947
82948 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82949
82950         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82951
82952 2003-10-07  Karl Berry  <karl@gnu.org>
82953
82954         * config/config.{guess,sub}: update from config.
82955
82956 2003-10-06  Jim Meyering  <jim@meyering.net>
82957             Bruno Haible  <bruno@clisp.org>
82958
82959         This lets translators provide better translations for the
82960         "Written by ..." part of --version output.
82961         * lib/version-etc.h: Include stdarg.h.
82962         (version_etc_copyright): Declare as readonly.
82963         (version_etc): Make this function variadic with a NULL-terminated list
82964         of author name strings.
82965         (version_etc_va): New declaration.
82966         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82967         (version_etc_copyright): Declare as readonly.
82968         (version_etc_va): New function. Provide a different translatable string
82969         for each possible number of authors < 10. Abbreviate when there are 10
82970         authors or more.
82971         (version_etc): Make this function variadic. Call version_etc_va.
82972         Suggestion from Gary V. Vaughan.
82973
82974         * lib/long-options.h (parse_long_options): Change prototype: the
82975         authors string is moved to the end and becomes variadic.
82976         * lib/long-options.c: Include stdarg.h.
82977         (parse_long_options): Make this function variadic, too.
82978         Call version_etc_va, not version_etc.
82979
82980 2003-10-06  Bruno Haible  <bruno@clisp.org>
82981
82982         * modules/version-etc-2: Remove file.
82983         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82984
82985 2003-10-06  Bruno Haible  <bruno@clisp.org>
82986
82987         * modules/fatal-signal: New file.
82988         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82989
82990 2003-10-06  Bruno Haible  <bruno@clisp.org>
82991
82992         * m4/fatal-signal.m4: New file.
82993         * m4/signalblocking.m4: New file, from GNU gettext.
82994
82995 2003-10-06  Bruno Haible  <bruno@clisp.org>
82996
82997         * lib/version-etc-2.h: Remove file.
82998         * lib/version-etc-2.c: Remove file.
82999
83000 2003-10-06  Bruno Haible  <bruno@clisp.org>
83001
83002         * lib/fatal-signal.h: New file, from GNU gettext.
83003         * lib/fatal-signal.c: New file, from GNU gettext.
83004
83005 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83006
83007         * README: Rework advice for preventing empty .o files.
83008         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83009         not <sys/types.h>.
83010
83011 2003-10-04  Karl Berry  <karl@gnu.org>
83012
83013         * lib/argp*: update from libc.
83014
83015 2003-10-04  Karl Berry  <karl@gnu.org>
83016
83017         * config/config.{guess,sub}: update from config.
83018
83019 2003-10-02  Bruno Haible  <bruno@clisp.org>
83020
83021         * modules/lchown (Include): Add lchown.h.
83022         * modules/time_r (Include): Use "..." syntax.
83023         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83024
83025 2003-10-01  Simon Josefsson  <jas@extundo.com>
83026
83027         * MODULES.html.sh (func_all_modules): Move gethostname from section
83028         'based on' to section 'lacking' POSIX:2001.
83029
83030 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83031
83032         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83033         to output mode on the same stream.
83034
83035 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83036
83037         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83038         Fix arg typo in previous patch.
83039
83040 2003-09-28  Jim Meyering  <jim@meyering.net>
83041
83042         * lib/error.c: Correct cpp indentation.
83043
83044 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83045
83046         * modules/free: New file.
83047
83048 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83049
83050         * m4/free.m4: New file.
83051
83052 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83053
83054         * lib/minmax.h (MIN, MAX)
83055         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83056         Omit the special code that used __typeof__, since we worry that
83057         it could be more trouble than it's worth.  See:
83058         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83059         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83060
83061         * lib/free.c: New file.
83062
83063 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83064
83065         Trivial fixes to Makefile.am parts of module listings.
83066         * modules/strstr: Append strstr.h to lib_SOURCES.
83067         * modules/strcase: Likewise, for strcase.h.
83068
83069 2003-09-27  Karl Berry  <karl@gnu.org>
83070
83071         * config/mkinstalldirs: update from automake.
83072
83073 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83074
83075         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83076         (error_tail): Do not loop, reallocating temporary buffer, since
83077         the output cannot contain more wide characters than the input
83078         contains bytes, the size must be big enough already.  This avoids
83079         one potential size overflow calculation.  Check for size overflow
83080         when calculating temporary buffer size.  Free temporary buffer
83081         when done, if it was allocated with malloc; this plugs a memory
83082         leak.  Remove casts from void * to pointers, that are no longer
83083         needed now that we're assuming C89 or better.
83084
83085         Merge error changes from glibc.
83086
83087         * lib/error.c, error.h: Update copyright notice header to match glibc.
83088         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83089         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83090         Disable cancellation while printing error.
83091         * lib/error.h: Prepend __ to parameter names.
83092
83093 2003-09-26  Jim Meyering  <jim@meyering.net>
83094
83095         * lib/error.c (error_tail): Move some declarations
83096         into inner scope where the local variables are used.
83097
83098 2003-09-26  Bruno Haible  <bruno@clisp.org>
83099
83100         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83101         stpncpy().
83102         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83103
83104 2003-09-26  Bruno Haible  <bruno@clisp.org>
83105
83106         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83107         (stpncpy): Define as alias for gnu_stpncpy.
83108         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83109
83110 2003-09-25  Simon Josefsson  <jas@extundo.com>
83111
83112         * lib/xgetdomainname.h: New file.
83113         * lib/xgetdomainname.c: New file.
83114
83115 2003-09-25  Simon Josefsson  <jas@extundo.com>
83116             Bruno Haible  <bruno@clisp.org>
83117
83118         * modules/getdomainname: New file.
83119         * modules/xgetdomainname: New file.
83120         * MODULES.html.sh (func_all_modules): Add getdomainname,
83121         xgetdomainname.
83122
83123 2003-09-25  Simon Josefsson  <jas@extundo.com>
83124             Bruno Haible  <bruno@clisp.org>
83125
83126         * m4/getdomainname.m4: New file.
83127
83128 2003-09-25  Simon Josefsson  <jas@extundo.com>
83129             Bruno Haible  <bruno@clisp.org>
83130
83131         * lib/getdomainname.h: New file.
83132         * lib/getdomainname.c: New file.
83133
83134 2003-09-25  Karl Berry  <karl@gnu.org>
83135
83136         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83137
83138 2003-09-25  Karl Berry  <karl@gnu.org>
83139
83140         * config/install-sh: update from automake.
83141
83142 2003-09-25  Bruno Haible  <bruno@clisp.org>
83143
83144         * modules/version-etc-2: New file, from modules/version-etc with
83145         modifications.
83146         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83147
83148 2003-09-25  Bruno Haible  <bruno@clisp.org>
83149
83150         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83151         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83152
83153 2003-09-24  Simon Josefsson  <jas@extundo.com>
83154
83155         * modules/xgethostname: Add xgethostname.h.
83156
83157 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83158
83159         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83160         the buffer associated with the argument.  Bug reported by
83161         Simon Josefsson.
83162
83163 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83164
83165         * README: Document assumptions that 'int' is at least 32 bits
83166         wide, that integer arithmetic is 2's complement without overflow,
83167         that there are no holes in integer values, that adding sizes of
83168         two nonoverlapping objects can't overflow, and that all-bits-zero
83169         yields scalar zero.  Fix spelling and capitalization typos.
83170
83171 2003-09-19  Karl Berry  <karl@gnu.org>
83172
83173         * lib/argp.h: update from libc.
83174
83175 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83176
83177         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83178         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83179         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83180
83181 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83182
83183         * gnulib-tool: Use "test -h", not "test -L", for portability
83184         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83185         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83186         (sed_extract_prog): Issue s commands one-by-one, rather than
83187         using \| in one s command.
83188
83189 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83190
83191         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83192         input error, instead of returning NULL the next time we are called
83193         (and therefore losing track of errno).
83194
83195 2003-09-16  Bruno Haible  <bruno@clisp.org>
83196
83197         * gnulib-tool (func_create_testdir): Warn about duplicated
83198         dependencies.
83199
83200 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83201
83202         * modules/argmatch, modules/fatal, modules/obstack,
83203         modules/xalloc, modules/xgethostname: Sort dependencies by
83204         importance, not alphabetically.
83205
83206 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83207
83208         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83209         fails, so that the caller gets the proper errno.
83210
83211         * lib/readutmp.c (read_utmp): Likewise.
83212         Check for fstat error.  Close stream and free storage
83213         when failing.
83214
83215 2003-09-14  Karl Berry  <karl@gnu.org>
83216
83217         * config/srclist.txt (strdup.c): disable for c89 changes.
83218
83219 2003-09-14  Jim Meyering  <jim@meyering.net>
83220
83221         * lib/getloadavg.c: Correct cpp indentation.
83222         * lib/strdup.c: Likewise.
83223         * lib/vasnprintf.c: Likewise.
83224
83225 2003-09-14  Bruno Haible  <bruno@clisp.org>
83226
83227         * modules/fwriteerror: New file.
83228         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83229
83230 2003-09-14  Bruno Haible  <bruno@clisp.org>
83231
83232         * lib/fwriteerror.h: New file.
83233         * lib/fwriteerror.c: New file.
83234
83235 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83236
83237         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83238         modules/xgethostname, modules/xalloc: Depend on exit.
83239
83240 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83241
83242         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83243
83244         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83245         and AC_MINIX, too, so that their extensions are available.
83246
83247         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83248         This macro has been superseded by gl_BACKUPFILE.
83249
83250         More patches to assume C89 or better.
83251
83252         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83253
83254         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83255         unconditionally.
83256         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83257         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83258         Include <string.h>, <stdlib.h> unconditionally.
83259         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83260         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83261         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83262         headers or for string.h.
83263         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83264         or strtoul.
83265
83266         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83267         headers.
83268         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83269         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83270         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83271         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83272         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83274         memcpy, memset.
83275         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83276         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83277         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83278         strtol.
83279         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83280         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83281         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83282         strtoul.
83283
83284 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83285
83286         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83287         * lib/obstack.c [!defined _LIBC]: Likewise.
83288         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83289         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83290         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83291
83292         More changes to assume C89 or better.
83293
83294         * lib/error.c (error_tail): Assume vprintf.
83295
83296         * lib/argmatch.c (getenv): Remove decl.
83297         * lib/progreloc.c (get_full_program_name): Define via prototype.
83298         * lib/setenv.c (clearenv): Likewise.
83299         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83300         needed.
83301         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83302         (malloc, memcpy): Remove decls.
83303         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83304         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83305         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83306         (memcpy): Remove macro.
83307         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83308         (__P): Remove.  All uses removed.
83309         (PTR): Remove.  All uses changed to void *.
83310         (CHAR_BIT, NULL): Remove.
83311         (spaces, zeros, memset_space, memset_zero)
83312         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83313         Remove.
83314         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83315         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83316         Define with prototype.
83317         Remove now-unnecessary prototype decl.
83318         (extra_args_spec): Assume ANSI C.  All uses changed.
83319         (extra_args_spec_iso): Remove.
83320         (my_strftime, emacs_strftimeu): Define via prototype.
83321         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83322         unconditionally.
83323         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83324         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83325         (strtoul, strtol): Remove decls.
83326         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83327         LONG_MAX): Remove.
83328         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83329         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83330         (LOCALE_PARAM_PROTO): New macro.
83331         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83332         (INTERNAL (strtol), strtol): Define with a prototype.
83333         (PARAMS): Remove.  All uses removed.
83334         * lib/tempname.c: Include <string.h> unconditionally.
83335         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83336         * lib/xgethostname.c (main): Define with a prototype.
83337         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83338         Include <stdlib.h> unconditionally.
83339         (calloc, malloc, realloc, free): Remove decls.
83340         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83341         Include <stdlib.h> unconditionally.  Sort include file names.
83342         (strtod): Remove.
83343         (xstrtod): Define with a prototype.
83344         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83345         (strtol, strtoul): Remove decls.
83346
83347 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83348
83349         More patches to assume C89 or better.
83350         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83351         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83352         string.h, memchr, STDC_HEADERS.
83353
83354 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83355
83356         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83357         Include <stdlib.h>, <string.h> unconditionally.
83358         Remove now-unnecessary cast to char *.
83359         * lib/strnlen.c: Include <string.h> unconditionally.
83360         * lib/yesno.c (yesno): Define with a prototype.
83361
83362 2003-09-11  Bruno Haible  <bruno@clisp.org>
83363
83364         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83365
83366 2003-09-10  Jim Meyering  <jim@meyering.net>
83367
83368         * lib/error.c: Correct indentation of cpp directives.
83369
83370 2003-09-10  Bruno Haible  <bruno@clisp.org>
83371
83372         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83373         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83374         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83375         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83376         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83377         <stdlib.h> and <string.h> checks.
83378         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83379         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83380
83381 2003-09-10  Bruno Haible  <bruno@clisp.org>
83382
83383         * lib/strcspn.c: Include <string.h> unconditionally.
83384         * lib/strpbrk.c: Include <string.h> unconditionally.
83385         * lib/strstr.c: Include <string.h> unconditionally.
83386         * lib/unicodeio.c: Include <string.h> unconditionally.
83387         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83388         * lib/unsetenv.c: Likewise.
83389         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83390         * lib/yesno.c: Include <stdlib.h> unconditionally.
83391         (rpmatch): Add prototype.
83392
83393 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83394
83395         More patches to assume C89 or better.
83396         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83397         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83398         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83399         or for string.h.
83400         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83401         stdlib.h.
83402         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83403         C headers.
83404         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83405         string.h.
83406         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83407         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83408         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83409         or for string.h.
83410         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83411         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83412         C headers.
83413         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83414         memcpy.
83415         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83416         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83417         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83418         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83419         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83420         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83421         string.h, free.
83422         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83423         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83424         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83425         C headers, or for string.h.
83426         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83427         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83428         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83429         headers, memory.h, stdlib.h, string.h, strings.h.
83430         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83431         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83432         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83433         strchr.
83434         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83435         headers, memory.h, string.h.
83436         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83437         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83438         free.
83439         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83440         headers.
83441         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83442         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83443         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83444         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83445         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83446
83447 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83448
83449         More K&R removal.
83450
83451         * lib/acosl.c (main): Use a prototype.
83452         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83453         tanl.c: Likewise.
83454
83455         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83456
83457         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83458         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83459         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83460         with a prototype.
83461         * lib/getopt.c (const): Remove macro.
83462         Include <string.h> unconditionally.
83463         (my_index): Remove; all uses changed to strchr.
83464         (strlen): Remove decl.
83465         (exchange): Remove forward decl; no longer needed.
83466         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83467         Define with prototype.
83468         * lib/getopt1.c (const): Remove macro.
83469         (getopt_long, getopt_long_only, main): Define with prototype.
83470
83471         * lib/getugroups.c: Include <string.h> unconditionally.
83472
83473         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83474         (getusershell, setusershell, endusershell, readname, main):
83475         Define with prototypes.
83476
83477         * lib/group-member.c: Include group-member.h first.
83478         Include <stdlib.h> unconditionally.
83479
83480         * lib/hard-locale.c: Include hard-locale.h first.
83481         Include <stdlib.h>, <string.h> unconditionally.
83482
83483         * lib/hash.c (free, malloc): Remove decls.
83484         Include <stdlib.h> unconditionally.
83485
83486         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83487         (getenv): Do not declare.
83488
83489         * lib/idcache.c: Include <string.h> unconditionally.
83490
83491         * lib/long-options.c: Include long-options.h first, to test interface.
83492         Include <stdlib.h> unconditionally.
83493
83494         * lib/makepath.c: Include makepath.h first, to test interface.
83495         Include <stdlib.h> and <string.h> unconditionally.
83496
83497         * lib/linebuffer.c: Include <stdlib.h>.
83498         (free): Remove decl.
83499
83500         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83501         stddef.h. rpl_malloc returns void *, not char *.
83502         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83503         prototype.
83504
83505         * lib/md5.h: Include <limits.h> unconditionally.
83506         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83507         (__P): Remove; all uses removed.
83508         * lib/md5.c: Include "md5.h" first.
83509         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83510         md5_buffer, md5_process_bytes, md5_process_block):
83511         Define with prototypes.
83512         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83513         * lib/sha.c: Include "sha.h" first.
83514         Include <stdlib.h>, <string.h> unconditionally.
83515
83516         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83517         * lib/memcmp.c (__ptr_t): Likewise.
83518         * lib/memrchr.c (__ptr_t): Likewise.
83519         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83520         Include <string.h> unconditionally.
83521         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83522         * lib/memchr.c: Include <stdlib.h> unconditionally.
83523         * lib/memchr.c (LONG_MAX): Remove.
83524         * lib/memrchr.c (LONG_MAX): Likewise.
83525         * lib/memchr.c (__memchr): Define via a prototype.
83526         * lib/memrchr.c (__memrchr): Likewise.
83527         * lib/memcmp.c (__P): Remove, and remove all uses.
83528         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83529         Remove forward decls; no longer needed.
83530         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83531         Use types required by C89 in prototype.
83532
83533         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83534         * lib/savedir.c: Likewise.
83535         * lib/mkdir.c (free): Remove decl.
83536         * lib/rmdir.c (rmdir): Define with a prototype.
83537         * lib/savedir.c: Include savedir.h first, to test interface.
83538
83539         * lib/mktime.c (STDC_HEADERS): Remove.
83540         Include <stdlib.h>, <string.h> unconditionally.
83541
83542         * lib/modechange.c: Include <stdlib.h> unconditionally.
83543         (malloc): Remove decl.
83544
83545         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83546         (free): Remove decl.
83547
83548         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83549         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83550         (This type really should be intptr_t, but that's a C99ism.)
83551         (_obstack_memcpy): Remove: all uses changed to memcpy.
83552         Include <string.h> unconditionally.
83553         (struct obstack): Assume __STDC__ for types of members
83554         chunkfun, freefun, extra_arg.
83555         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83556         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83557         obstack_begin, obstack_specify_allocation,
83558         obstack_specify_allocation_with_arg, obstack_chunkfun,
83559         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83560         Remove unprototyped decls and the macros that use them.
83561         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83562         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83563         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83564         (defined __STDC__ && __STDC__)]:
83565         Remove nonprototyped code.
83566         Include <stdlib.h> unconditionally.
83567         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83568         _obstack_allocated_p, _obstack_free, obstack_free,
83569         _obstack_memory_used, print_and_abort):
83570         Define using prototypes.
83571         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83572         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83573         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83574         obstack_next_free, obstack_object_size, obstack_room) [0]:
83575         Remove unused, unprototyped code.
83576
83577         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83578
83579         * lib/physmem.c (physmem_total, physmem_available, main): Define
83580         with prototypes.
83581
83582         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83583         (main): Define with a prototype.
83584
83585         * lib/posixver.c (getenv): Remove decl.
83586
83587         * lib/putenv.c (malloc): Returns void *, not char *.
83588         Include <string.h> unconditionally.
83589         (strchr, memcpy, NULL): Do not define.
83590
83591         * lib/readtokens.c: Include readtokens.h first, to test interface.
83592         Include <stdlib.h>, <string.h> unconditionally.
83593         (init_tokenbuffer): Define with a prototype.
83594
83595         * lib/regex.c (PARAMS): Remove.  All uses removed.
83596         All uses of _RE_ARGS removed, too.
83597         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83598         unconditionally.
83599         (bzero): Assume memset exists.
83600         (memcmp, memcpy, NULL): Remove.
83601         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83602         char, or assignments to local vars of type signed char.
83603         (init_syntax_once, PREFIX(extract_number_and_incr),
83604         PREFIX(print_partial_compiled_pattern),
83605         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83606         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83607         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83608         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83609         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83610         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83611         wcs_compile_range, byte_compile_range, truncate_wchar,
83612         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83613         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83614         count_mbs_length, wcs_re_match_2_internal,
83615         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83616         PREFIX(alt_match_null_string_p),
83617         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83618         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83619         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83620         now-unnecessary declaration, if any.
83621         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83622         regcomp, regexec):
83623         Remove now-unnecessary casts among pointer types.
83624         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83625
83626         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83627         (free): Remove decl.
83628
83629         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83630
83631         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83632         (free): Remove decl.
83633
83634         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83635         * lib/xgetcwd.c: Likewise.
83636
83637         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83638         (free): Remove decl.
83639
83640         * lib/strchrnul.c (strchrnul): Define with a prototype.
83641         Fix bug: c_in was not converted to char before searching.
83642
83643         The following changes are not K&R related:
83644
83645         * lib/group-member.h: Include <sys/types.h>, so that this file is
83646         self-contained.
83647         * lib/makepath.h: Likewise.
83648
83649         * lib/getusershell.c (readname, default_index, line_size, readname):
83650         Use size_t, not int, for sizes.
83651         (readname): If the size overflows, report an error instead of
83652         looping forever.
83653
83654 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83655
83656         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83657         libc.
83658
83659 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83660
83661         * README: New section: portability guidelines.
83662
83663 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83664
83665         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83666         C89 spec.
83667
83668 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83669
83670         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83671
83672 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83673
83674         Assume C89 or better; remove K&R cruft.
83675         A few of these changes were first proposed by Derek Robert Price
83676         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83677
83678         * lib/addext.c: Include <string.h> unconditionally.
83679         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83680         Don't declare getenv or malloc.
83681
83682         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83683         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83684         (NULL): Remove.
83685         (find_stack_direction, alloca): Use prototypes.
83686
83687         * lib/atexit.c (atexit): Define using a prototype.
83688
83689         * lib/basename.c, dirname.c, stripslash.c:
83690         Include <string.h> unconditionally.
83691
83692         * lib/bcopy.c: Include <stddef.h>.
83693         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83694
83695         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83696
83697         * lib/error.h (error, error_at_line, error_print_progname)
83698         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83699         * lib/error.c: Include error.h first, to check interface.
83700         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83701         (VA_START): Remove; all uses changeed to va_start.
83702         (exit, strerror): Remove decls.
83703         (error_print_progname): Prototype uncondionally.
83704         Don't include <errno.h>; no longer needed.
83705         (private_strerror): Remove.
83706         (error_tail): Always define.
83707         (error, error_at_line): Assume C89 or better; always use prototypes.
83708         * lib/fatal.c: Include "fatal.h" first, to test interface.
83709         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83710         (VA_START): Remove; all uses changed to va_start.
83711         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83712         this case.
83713         (exit): Remove decl.
83714         (fatal): Prototype unconditionally.  Assume va_start works.
83715         Abort at end, to pacify gcc.
83716
83717         * lib/euidaccess.c (main): Define with a prototype.
83718
83719         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83720
83721         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83722
83723         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83724         prototypes.
83725         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83726         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83727         (getenv): Remove decl.
83728         (fnmatch): Define using a prototype.
83729         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83730         (FCT): Define using a prototype.
83731
83732         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83733
83734         * lib/gethostname.c: Include <stddef.h>.
83735         (gethostname): Define with prototype.  Length is size_t, not int.
83736
83737 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83738
83739         Assume C89 or better; remove K&R cruft.
83740         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83741         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83742         string.h, getenv, malloc.
83743         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83744         headers.
83745         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83746         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83747         do not check for strerror.
83748         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83749         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83750         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83751         do not check for doprnt or vprintf.
83752         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83753         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83754
83755 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83756
83757         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83758         getversion.c should have been removed then, but was accidentally
83759         preserved.
83760
83761         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83762         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83763
83764 2003-09-08  Karl Berry  <karl@gnu.org>
83765
83766         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83767                 config, forget about prep.
83768
83769         * config/depcomp, missing: update from automake.
83770
83771 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83772
83773         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83774         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83775
83776 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83777
83778         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83779         copy_tm_result.  Bug reported by Simon Josefsson in
83780         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83781
83782 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83783
83784         * m4/time_r.m4: New file.
83785         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83786         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83787         is. Check for timegm declaration.
83788         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83789         Do not check for gmtime_r.
83790         Replace mktime if __mktime_internal does not exist and if mktime
83791         hasn't been replaced already.
83792
83793 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83794
83795         * lib/time_r.c, lib/time_r.h: New files.
83796
83797         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83798         __localtime_r.
83799         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83800         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83801
83802         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83803         __gmtime_r.
83804         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83805         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83806         Include <time_r.h>.
83807
83808         * lib/timegm.c: Switch to glibc implementation, with the following
83809         changes:
83810         [defined HAVE_CONFIG_H]: Include <config.h>.
83811         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83812         (__mktime_internal) [!defined _LIBC]: New decl.
83813         (__gmtime_r) [!defined _LIBC]: New macro and function.
83814         (timegm): Use a prototype, since gnulib assumes C89.
83815         Do not bother declaring tmp to be const, as it's not really usefu.
83816         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83817         (timegm): Declare only if HAVE_DECL_TIMEGM.
83818
83819 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83820
83821         * MODULES.html.sh (func_all_modules): Add time_r.
83822         * modules/time_r: New file.
83823         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83824         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83825
83826 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83827
83828         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83829         Bug reported by Lute Kamstra in
83830         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83831
83832         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83833         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83834         course with correspondingly smaller numbers for tomorrow and
83835         yesterday.  From Tadayoshi Funaba.  Originally installed into
83836         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83837         coreutils merge?).
83838
83839 2003-08-31  Simon Josefsson  <jas@extundo.com>
83840
83841         * modules/timegm: New file.
83842         * MODULES.html.sh (func_all_modules): Add timegm.
83843
83844 2003-08-31  Simon Josefsson  <jas@extundo.com>
83845
83846         * m4/timegm.m4: New file.
83847
83848 2003-08-31  Simon Josefsson  <jas@extundo.com>
83849
83850         * lib/timegm.h: New file.
83851         * lib/timegm.c: New file.  Based on
83852         wget-1.8.2/src/http.c:mktime_from_utc.
83853
83854 2003-08-31  Karl Berry  <karl@gnu.org>
83855
83856         * lib/argp.h: update from libc.
83857
83858 2003-08-28  Bruno Haible  <bruno@clisp.org>
83859
83860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83861         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83862         followed by '#define fnmatch fnmatch_posix' gives an error.
83863
83864 2003-08-28  Bruno Haible  <bruno@clisp.org>
83865
83866         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83867         warning on QNX, which defines O_BINARY to 000000.
83868
83869 2003-08-27  Jim Meyering  <jim@meyering.net>
83870
83871         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83872         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83873         would fail after 32.  Reported by Danny Levinson.  Details here:
83874         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83875
83876 2003-08-24  Bruno Haible  <bruno@clisp.org>
83877
83878         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83879         MSVC7 <stdio.h> is included later.
83880
83881 2003-08-22  Simon Josefsson  <jas@extundo.com>
83882
83883         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83884
83885 2003-08-20  Karl Berry  <karl@gnu.org>
83886
83887         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83888
83889 2003-08-20  Bruno Haible  <bruno@clisp.org>
83890
83891         * modules/progname: New file.
83892         * MODULES.html.sh (func_all_modules): Add progname.
83893
83894 2003-08-20  Bruno Haible  <bruno@clisp.org>
83895
83896         * lib/progname.h: New file, from GNU gettext.
83897         * lib/progname.c: New file, from GNU gettext.
83898         * lib/progreloc.c: New file, from GNU gettext.
83899
83900 2003-08-19  Jim Meyering  <jim@meyering.net>
83901
83902         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83903         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83904
83905 2003-08-19  Bruno Haible  <bruno@clisp.org>
83906
83907         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83908         more.
83909
83910 2003-08-19  Bruno Haible  <bruno@clisp.org>
83911
83912         * lib/xstrdup.c: Assume <string.h> exists.
83913
83914 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83915
83916         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83917         in makefile rules.
83918
83919 2003-08-18  Jim Meyering  <jim@meyering.net>
83920
83921         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83922         * m4/lib-ld.m4: Likewise.
83923
83924 2003-08-18  Jim Meyering  <jim@meyering.net>
83925
83926         * lib/setenv.h: Indent nested cpp directive.
83927         * lib/vasnprintf.c: Remove trailing blanks.
83928
83929 2003-08-17  Simon Josefsson  <jas@extundo.com>
83930
83931         * modules/xstrndup: New file.
83932         * MODULES.html.sh (func_all_modules): Add xstrndup.
83933
83934 2003-08-17  Simon Josefsson  <jas@extundo.com>
83935
83936         * modules/argp: Fix autoconf macro name. Add more dependencies.
83937
83938 2003-08-17  Simon Josefsson  <jas@extundo.com>
83939
83940         * m4/xstrndup.m4: New file.
83941
83942 2003-08-17  Simon Josefsson  <jas@extundo.com>
83943
83944         * m4/argp.m4: New file.
83945
83946 2003-08-17  Simon Josefsson  <jas@extundo.com>
83947             Bruno Haible  <bruno@clisp.org>
83948
83949         * lib/xstrndup.h: New file.
83950         * lib/xstrndup.c: New file.
83951
83952 2003-08-17  Bruno Haible  <bruno@clisp.org>
83953
83954         * modules/strndup (Files, Include): Add lib/strndup.h.
83955
83956 2003-08-17  Bruno Haible  <bruno@clisp.org>
83957
83958         * modules/euidaccess (Files): Add lib/euidaccess.h.
83959
83960 2003-08-17  Bruno Haible  <bruno@clisp.org>
83961
83962         * lib/strndup.h: New file.
83963
83964 2003-08-17  Bruno Haible  <bruno@clisp.org>
83965
83966         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83967         like AC_GNU_SOURCE.
83968         * modules/extensions (configure.ac): Comment out the invocation of
83969         gl_USE_SYSTEM_EXTENSIONS.
83970
83971 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83972
83973         Merges from coreutils, etc.
83974         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83975         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83976         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83977         fixing a typo.
83978         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83979         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83980
83981 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83982
83983         Document merge from coreutils.
83984         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83985         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83986         * modules/utime: Add m4/utimes-null.m4.
83987
83988 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83989
83990         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83991         space, undoing this 2003-08-12 change:
83992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83993
83994 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83995
83996         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83997         strtoul.c from libc, undoing this 2003-08-12 change:
83998         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83999
84000 2003-08-16  Jim Meyering  <jim@meyering.net>
84001
84002         Merges from coreutils.
84003         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84004         prefix.  Adjust cache variables similarly.  Create 500 rather than
84005         just 300 files, to exercise bug on Darwin6.5, too.
84006         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84007         $missing_dir.
84008         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84009         AM_SYS_POSIX_TERMIOS.
84010         Reported by mkc@mathdogs.com.
84011         Also change use of $am_cv_sys_posix_termios
84012         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84013         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84014         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84015         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84016         in /proc/mounts until it finds one with matching device number.  This
84017         is unnecessary when the FILE argument *is* a mount point.  No stat call
84018         is necessary in that case.  So, disable the statvfs-testing code on
84019         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84020         as RedHat bug# 84846.
84021         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84022         to 1MB, so as not to render systems with no stack size limit (e.g.,
84023         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84024         Include <unistd.h>.  On some systems,
84025         it is required for the definition of _SC_PAGESIZE.
84026
84027 2003-08-16  Jim Meyering  <jim@meyering.net>
84028
84029         Merge from coreutils.
84030         * lib/xstrtoimax.c: #else #if -> #elif.
84031         * lib/xstrtoumax.c: Likewise.
84032
84033 2003-08-16  Jim Meyering  <jim@meyering.net>
84034
84035         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84036         * m4/utimes.m4: Removed.
84037         * m4/utimes-null.m4: Renamed from utimes.m4.
84038
84039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84040         to 1MB, so as not to render systems with no stack size limit (e.g.,
84041         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84042         Include <unistd.h>.  On some systems,
84043         it is required for the definition of _SC_PAGESIZE.
84044
84045 2003-08-16  Jim Meyering  <jim@meyering.net>
84046         and Paul Eggert  <eggert@cs.ucla.edu>
84047
84048         Merges from coreutils, etc.
84049
84050         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84051         using the latest version from cvs.  This avoids problems with #line
84052         directives using a vendor (Sun) compiler.
84053         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84054         Don't set GETGROUPS_LIB here; now it's
84055         done via getgroups.m4's wrapper function.
84056         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84057         rather than just in sh-util/configure.in, so that the
84058         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84059         same.
84060         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84061         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84062         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84063         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84064         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84065         Remove code that is now done by the newly-required macros.
84066         Append $(EXEEXT) to DF_PROG.
84067         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84068         Do not invoke or require the following here,
84069         since prereq.m4 or some gnulib .m4 now does this for us:
84070         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84071         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84072         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84073         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84074         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84075         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84076         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84077         AC_FUNC_OBSTACK.
84078         Do not replace the following functions, as this is now the job
84079         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84080         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84081         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84082         atexit getpass, strdup, getpagesize.
84083         Replace 'raise'.
84084         Do not check for the following functions, as this is now the job
84085         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84086         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84087         setregid.
84088         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84089         Check for sys/sysctl.h.
84090         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84091         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84092         of checking for ssize_t ourselves.
84093
84094         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84095         Require every macro that gnulib/modules/* suggests for us.
84096         (jm_PREREQ_ADDEXT): New macro.
84097         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84098         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84099
84100         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84101         (gl_PHYSMEM): Use it.
84102         Also check for `table' function.
84103         Check for new headers and functions.
84104         Add check for sys/sysmp.h.
84105         With suggestions from Kaveh Ghazi.
84106         Ignore headers that are present but cannot be compiled.  This
84107         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84108         C 5.4.
84109
84110 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84111
84112         Document merge from coreutils.
84113         * modules/userspec: Depend on posixver.
84114         * modules/strftime: Depend on tzset.
84115
84116 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84117
84118         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84119         rather than tab, after '#' in shell-script copyright notices.
84120         Suggested by Bruno Haible.
84121
84122 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84123
84124         * config/srclist-update: Use three spaces, rather than tab, after '#'
84125         in shell-script copyright notices.  Suggested by Bruno Haible.
84126         Remove unnecessary parenthesization in regular expression.
84127
84128 2003-08-15  Jim Meyering  <jim@meyering.net>
84129
84130         Merge from coreutils.
84131         * lib/xgethostname.c: Include <stdlib.h>.
84132         (xghostname): Don't exit for anything other than memory-related
84133         failure; just return NULL.
84134         * lib/userspec.c: Include "posixver.h".
84135         (parse_user_spec): Accept `.' as a separator only
84136         in pre-POSIX-200112 mode.
84137         * lib/strtoimax.c: Use #elif rather than #else #if.
84138         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84139         Remove function, now that we can rely on a working tzset function.
84140         [!_LIBC]: Ensure that the required autoconf test has been run.
84141         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84142         Use underlying_strftime for %r.
84143         * lib/sha.c: Merge in some clean-up and optimization changes from
84144         glibc.
84145         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84146         Ensure that it is a multiple of 64.
84147         Rearrange loop exit tests so as to avoid performing an
84148         additional fread after encountering an error or EOF.
84149         * lib/realloc.c: Update copyright date.
84150
84151 2003-08-15  Jim Meyering  <jim@meyering.net>
84152         and Paul Eggert  <eggert@twinsun.com>
84153
84154         Merge from coreutils.
84155         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84156         member but strut utmpx does not.  Needed for AIX 4.3.3.
84157         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84158
84159 2003-08-15  Jim Meyering  <jim@meyering.net>
84160         and Paul Eggert  <eggert@cs.ucla.edu>
84161
84162         Merges from coreutils, etc.
84163         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84164         Require gl_FUNC_TZSET_CLOBBER.
84165         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84166         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84167         members.
84168
84169 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84170
84171         Help the merge from coreutils.
84172         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84173         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84174         * m4/tzset.m4: Use it too.
84175
84176 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84177
84178         * modules/tzset: New file.
84179
84180 2003-08-14  Jim Meyering  <jim@meyering.net>
84181
84182         Merges from coreutils.
84183         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84184         variable names, rather than @FNMATCH_H@.
84185         * modules/alloca: Likewise for $(ALLOCA_H).
84186
84187         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84188         the three copies of the literal target, `fnmatch.h'.
84189         * modules/alloca (alloca.h): Likewise.
84190
84191 2003-08-14  Jim Meyering  <jim@meyering.net>
84192
84193         Merge from coreutils.
84194         * m4/tzset.m4: New file.
84195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84196         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84197         otherwise, AIX 5.1 systems would end up using the latter.
84198         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84199         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84200         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84201         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84202
84203 2003-08-14  Jim Meyering  <jim@meyering.net>
84204
84205         Merge from coreutils.
84206         * lib/obstack.h: Whitespace changes.
84207         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84208         and xcalloc return values.
84209         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84210         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84211         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84212         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84213         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84214         error from mntctl.
84215         Use mntctl's return value to drive the entry-processing loop, since
84216         we can't rely on the value of the vmt_length member in the last
84217         entry.  On some systems doing so could result in exhausting
84218         virtual memory.  Based in part on a patch from Mike Jetzer.
84219
84220 2003-08-14  Jim Meyering  <jim@meyering.net>
84221         and Paul Eggert  <eggert@twinsun.com>
84222
84223         Merges from coreutils, plus other fixes.
84224         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84225         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84226         for credits and details.  Thanks to Kaveh Ghazi for helping
84227         to keep these files in sync.
84228         (ARRAY_SIZE): Define it.
84229         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84230         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84231         (memcasecmp): Don't assume size_t fits in unsigned int.
84232         Remove casts and duplicate code.
84233         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84234         (memcpy): Remove definition.
84235         Merge in some clean-up and optimization changes from glibc.
84236         [BLOCKSIZE]: Move definition to top of file.
84237         Ensure that it is a multiple of 64.
84238         Rearrange loop exit tests so as to avoid performing an
84239         additional fread after encountering an error or EOF.
84240         * lib/md5.h (md5_uintptr): Define.
84241         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84242         return to the initial working directory.  Preserve errno
84243         for caller.
84244         * lib/idcache.c: Include "xalloc.h".
84245         (xmalloc, xrealloc): Remove decls.
84246         (getuser): Remove casts no longer required in C89.
84247         * lib/human.c: Include stdio.h, for sprintf.
84248         * lib/group-member.c: Include "xalloc.h".
84249         (xmalloc, xrealloc): Remove decls.
84250         (get_group_info): Remove casts no longer required in C89.
84251         * lib/getusershell.c (readname): Remove casts no longer required in
84252         C89.
84253         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84254         * lib/getline.c: Whitespace fix, from coreutils.
84255
84256 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84257
84258         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84259         Check for isascii.
84260
84261         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84262         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84263         Undo previous (whitespace-only) change.
84264
84265 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84266
84267         * lib/exclude.c: Include <ctype.h>
84268         (IN_CTYPE_DOMAIN): New macro.
84269         (is_space): New fn.
84270         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84271         and empty lines.
84272
84273         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84274         Undo previous (whitespace-only) change.
84275
84276 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84277
84278         * config/srclist-update: Change update back to the old behavior,
84279         leaving whitespace alone.  Use one 'sed' command rather than a
84280         pipeline.
84281         (fixlicense): Now a variable, not a function.
84282         (remove_trailing_blanks): Remove.
84283         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84284         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84285         Undo previous (whitespace-only) change.
84286
84287 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84288
84289         Merge from coreutils.
84290         * modules/euidaccess: Add lib_SOURCES, include for new
84291         file euidaccess.h
84292
84293 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84294
84295         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84296         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84297         Normalize leading white space and remove trailing white space.
84298
84299         Merge from coreutils
84300         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84301
84302         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84303         0.12.1.  These files are now being upgraded automatically by
84304         ../config/srclist-update.
84305
84306 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84307
84308         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84309         Normalize leading white space and remove trailing white space.
84310         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84311         notice, as per ../config/srclist-update.
84312
84313         Merge from coreutils.
84314         * lib/euidaccess.h: New file.
84315         * lib/euidaccess.c: Include it.
84316         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84317         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84318         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84319
84320 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84321
84322         * config/srclist-update: Add copyright notice.
84323         (remove_id_lines, remove_trailing_blanks): New constants.
84324         (fixfile): Use them to normalize spacing a bit in copied files.
84325         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84326         Normalize leading white space and remove trailing white space.
84327
84328         * config/texinfo.tex: Sync with texinfo.
84329
84330         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84331         strtoul.c from libc, to merge coreutils whitespace changes.
84332
84333         * config/srclist.txt: Get the following m4 files from gettext:
84334         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84335         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84336         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84337         wint_t.m4.
84338
84339 2003-08-12  Karl Berry  <karl@gnu.org>
84340
84341         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84342         been made.
84343
84344 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84345
84346         * modules/gnu-source, m4/gnu-source.m4:
84347         Remove; we're assuming Autoconf 2.54 or later now.
84348         Suggested by Bruno Haible.
84349         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84350
84351 2003-08-11  Bruno Haible  <bruno@clisp.org>
84352
84353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84354
84355 2003-08-11  Bruno Haible  <bruno@clisp.org>
84356
84357         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84358         (vasnprintf): Use it instead of wcslen.
84359
84360 2003-08-11  Bruno Haible  <bruno@clisp.org>
84361
84362         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84363         value to ensure that _Bool promotes to int. Use #define for _Bool when
84364         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84365
84366 2003-08-10  Karl Berry  <karl@gnu.org>
84367
84368         * lib/regex.h: update from libc (whitespace fix).
84369
84370 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84371
84372         Merge some files from coreutils.  These changes were
84373         originally made by Jim Meyering.
84374         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84375         many older Unixes require this.
84376         * lib/alloca.c (alloca): Remove cast to argument of free;
84377         no longer needed in C89.
84378         * lib/alloca_.h, regex.h: Fix white space to match
84379         what GNU indent does.
84380
84381 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84382
84383         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84384         apparently Emacs's Unicode mode got confused before my 2003-08-05
84385         checkin.
84386
84387 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84388
84389         * m4/extensions.m4: New file.
84390         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84391         Require gl_USE_SYSTEM_EXTENSIONS.
84392         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84393         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84394
84395 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84396
84397         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84398         * modules/extensions, modules/gnu-source: New files.
84399         * modules/timespec, modules/unlocked-io: Depend on extensions.
84400
84401 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84402
84403         * modules/restrict: New file.
84404         * MODULES.html.sh (func_all_modules): Add restrict.
84405         * modules/regex: Depend on restrict.
84406
84407 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84408
84409         * m4/restrict.m4: New file.
84410         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84411
84412 2003-08-07  Bruno Haible  <bruno@clisp.org>
84413
84414         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84415         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84416
84417 2003-08-07  Bruno Haible  <bruno@clisp.org>
84418
84419         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84420         makes the module 'getndelim2' compatible with the module 'getline'.
84421
84422 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84423
84424         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84425         byte with "\201" to avoid glitches when editing that source file
84426         with multi-gnome-terminal.
84427
84428 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84429
84430         * lib/bumpalloc.h: Remove.
84431
84432 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84433
84434         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84435         * modules/bumpalloc: Remove.
84436
84437 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84438
84439         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84440         GNU coding style.
84441
84442         Merge from coreutils.
84443         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84444         1. From glibc.
84445         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84446         from Karl Berry, implemented by Jim Meyering.
84447         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84448         from Dmitry V. Levin.
84449         Remove anachronistic cast of xrealloc.
84450         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84451         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84452         type. Otherwise, it wouldn't compile with at least /bin/cc on
84453         ymp-cray-unicos9.0.2.X.
84454         Combine two mostly-identical uses of alloca into one.
84455         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84456
84457 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84458
84459         [From Emacs.]
84460
84461         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84462         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84463         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84464         obsolete NLIST_NAME_UNION.
84465         [__GNU__]: Undef BSD and FSCALE.
84466         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84467
84468 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84469
84470         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84471         an enum type, so that it's guaranteed to promote to int.  See:
84472         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84473
84474 2003-08-03  Karl Berry  <karl@gnu.org>
84475
84476         * config/depcomp: update from automake.
84477
84478 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84479
84480         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84481         (strerror): Don't assume that a printable int fits in 14 bytes.
84482
84483 2003-07-31  Bruno Haible  <bruno@clisp.org>
84484
84485         * modules/getpass-gnu: New file.
84486         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84487
84488 2003-07-31  Bruno Haible  <bruno@clisp.org>
84489
84490         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84491
84492 2003-07-24  Karl Berry  <karl@gnu.org>
84493
84494         * config/missing: update from automake.
84495
84496 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84497             Bruno Haible  <bruno@clisp.org>
84498
84499         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84500         * lib/getline.c (getline, getdelim): Likewise.
84501         Remove _GNU_SOURCE define; now it's defined in config.h through
84502         m4/getline.m4.
84503
84504 2003-07-23  Karl Berry  <karl@gnu.org>
84505
84506         * config/config.sub: update from prep.
84507
84508 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84509
84510         * modules/xalloc (Depends-on): Add exitfail.
84511         * modules/xmemcoll: Likewise.
84512
84513 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84514
84515         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84516         over-parenthesization in macros.
84517
84518         Sync with coreutils.
84519
84520         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84521         required by C99.
84522
84523         Use `exit_failure' for xalloc and xmemcoll instead of their own
84524         private exit-failure variables.
84525         * lib/xalloc.h (xalloc_exit_failure): Remove.
84526         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84527         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84528         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84529         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84530         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84531
84532 2003-07-20  Jim Meyering  <jim@meyering.net>
84533
84534         * modules/closeout (Depends-on): Add exitfail.
84535         Suggestion from Bruno Haible.
84536
84537 2003-07-19  Karl Berry  <karl@gnu.org>
84538
84539         * config/config.sub: update from prep.
84540
84541 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84542
84543         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84544         Remove.
84545         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84546         to test that it can stand by itself.  Include "exitfail.h".
84547         Clients should set exit_failure instead.
84548         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84549
84550 2003-07-18  Bruno Haible  <bruno@clisp.org>
84551
84552         * modules/getndelim2: New file.
84553         * modules/getline: Share files with module getndelim2.
84554         * modules/getnline: Depend on getndelim2 instead of sharing files with
84555         it. Add getnline.c to lib_SOURCES.
84556         * MODULES.html.sh (func_all_modules): Add getndelim2.
84557
84558 2003-07-18  Bruno Haible  <bruno@clisp.org>
84559
84560         * m4/getndelim2.m4: New file.
84561         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84562         invoke gl_PREREQ_GETNDELIM2.
84563         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84564         gl_PREREQ_GETNDELIM2.
84565         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84566         gl_GETNDELIM2.
84567
84568 2003-07-18  Bruno Haible  <bruno@clisp.org>
84569
84570         * lib/getndelim2.h: New file.
84571         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84572         getndelim2.h.
84573         (getndelim2): Make non-static. Change return type to ssize_t.
84574         * lib/getline.h: Change argument names.
84575         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84576         * lib/getnline.c: Include getndelim2.h.
84577
84578 2003-07-18  Andreas Schwab  <schwab@suse.de>
84579
84580         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84581
84582 2003-07-17  Karl Berry  <karl@gnu.org>
84583
84584         * config/config.sub: update from prep.
84585
84586 2003-07-17  Bruno Haible  <bruno@clisp.org>
84587
84588         * modules/getnline: New file.
84589         * modules/getline: Add lib/getndelim2.c to source file list.
84590         * MODULES.html.sh (func_all_modules): Add getnline.
84591
84592 2003-07-17  Bruno Haible  <bruno@clisp.org>
84593
84594         * m4/getnline.m4: New file.
84595
84596 2003-07-17  Bruno Haible  <bruno@clisp.org>
84597
84598         * m4/Makefile.am.in: Remove file.
84599         * m4/Makefile.am: Remove file.
84600         * m4/Makefile.in: Remove file.
84601
84602 2003-07-17  Bruno Haible  <bruno@clisp.org>
84603
84604         * lib/getnline.h: New file.
84605         * lib/getnline.c: New file.
84606         * lib/getndelim2.c: New file, extracted from getline.c.
84607         (getndelim2): Renamed from getdelim2, with added nmax argument.
84608         * lib/getline.c: Include getndelim2.c.
84609         (getdelim2): Moved out to getndelim2.c.
84610         (getline, getdelim): Update.
84611
84612 2003-07-17  Bruno Haible  <bruno@clisp.org>
84613
84614         * lib/Makefile.am: Remove file.
84615         * lib/Makefile.in: Remove file.
84616
84617 2003-07-17  Bruno Haible  <bruno@clisp.org>
84618
84619         * configure.in: Remove file.
84620         * Makefile.in: Remove file.
84621
84622 2003-07-17  Bruno Haible  <bruno@clisp.org>
84623
84624         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84625
84626 2003-07-16  Karl Berry  <karl@gnu.org>
84627
84628         * config/srclist-update: was running fixlicense twice, which caused
84629                 texinfo.tex to be nullified for some reason.  Simplify,
84630                 $gplsrc is no longer needed as far as I can see?
84631
84632 2003-07-16  Jim Meyering  <jim@meyering.net>
84633
84634         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84635
84636 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84637
84638         * config/srclist.txt: Get the following files from gettext-runtime/intl
84639         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84640         ref-del.sin.  From Bruno Haible.
84641         * config/srclist-update (fixfile): Change grep pattern again, since the
84642         previous fix didn't work (there was another trailing $).  Use
84643         '[$]' to escape the $s.
84644
84645 2003-07-15  Karl Berry  <karl@gnu.org>
84646
84647         * lib/vasnprintf.c: update from gettext.
84648
84649 2003-07-15  Karl Berry  <karl@gnu.org>
84650
84651         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84652         gets expanded when surrounded by '$'.
84653
84654 2003-07-15  Jim Meyering  <jim@meyering.net>
84655
84656         * modules/save-cwd: Don't depend on error.  From Derek Price.
84657
84658 2003-07-15  Jim Meyering  <jim@meyering.net>
84659
84660         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84661
84662 2003-07-14  Simon Josefsson  <jas@extundo.com>
84663
84664         * modules/mempcpy: New file.
84665         * MODULES.html.sh (func_all_modules): Add mempcpy.
84666
84667 2003-07-14  Simon Josefsson  <jas@extundo.com>
84668
84669         * m4/mempcpy.m4: New file.
84670
84671 2003-07-14  Simon Josefsson  <jas@extundo.com>
84672
84673         * lib/mempcpy.h: New file.
84674         * lib/mempcpy.c: New file.
84675
84676 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84677
84678         * modules/getdate, modules/posixtm: Depend on mktime.
84679
84680 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84681
84682         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84683         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84684         unicodeio.c, unicodeio.h, unlocked-io.h:
84685         Switch from LGPL to GPL.
84686
84687 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84688
84689         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84690         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84691         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84692         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84693         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84694         updated automatically by ../config/srclist-update.  This changes
84695         their license from LPGL to GPL.
84696
84697 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84698
84699         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84700         assumed to refer to the root of the most recent stable gettext version.
84701         * config/srclistvars.sh: Add defaults for eggert.
84702         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84703         Match "This program" as well as "The program".  This is needed
84704         for gettext.
84705
84706 2003-07-14  Jim Meyering  <jim@meyering.net>
84707
84708         Don't emit diagnostics.  Let callers do that.
84709         * lib/save-cwd.c: Don't include "error.h".
84710         (save_cwd): Don't call error.  Ensure that errno is valid
84711         when returning nonzero.
84712
84713         * lib/save-cwd.h (restore_cwd): Update prototype.
84714         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84715         Simplify.  Don't call error upon failure.  Let callers do that.
84716         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84717         when auditing is enabled.  But don't bother updating the #if.
84718
84719 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84720
84721         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84722         it breaks C++ compilation.
84723         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84724
84725 2003-07-10  Simon Josefsson  <jas@extundo.com>
84726
84727         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84728
84729 2003-07-10  Jim Meyering  <jim@meyering.net>
84730
84731         * m4/clock_time.m4: Remove trailing blank.
84732         * m4/intmax_t.m4: Likewise.
84733
84734 2003-07-10  Jim Meyering  <jim@meyering.net>
84735
84736         * lib/vasnprintf.c: Remove trailing blanks.
84737         Make cpp indentation consistent.
84738
84739 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84740
84741         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84742         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84743         Switch from LGPL to GPL.
84744
84745 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84746
84747         * config/srclist.txt: Sort sublists.  Add
84748         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84749         that differ from gnulib for one reason or another; we'd like this list
84750         to be smaller but for now let's document what we have.
84751
84752 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84753
84754         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84755         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84756         and sweeter "eval x=$x".
84757         * config/srclist.txt: Get lib/argp* from glibc.
84758
84759 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84760
84761         * lib/mktime.c: Fix some boundary cases and remove need for floating
84762         point.
84763
84764         Issue a compile-time diagnostic if time_t is floating point, or if
84765         two's complement arithmetic is not in effect, or if arithmetic
84766         right shift does not propagate the sign.  These assumptions were
84767         all in the original code but they weren't checked.
84768
84769         (TIME_T_MIDPOINT, verify): New macros.
84770         (__isleap): Remove; it has integer overflow problems.
84771         (leapyear): New function, without those problems.
84772         (ydhms_tm_diff): Remove; splitting into two parts.
84773         (ydhms_diff): New function, containing the arithmetic part of
84774         the old ydhms_tm_diff function.  Issue a compile-time
84775         diagnostic if we are not using C99 integer division.
84776         Avoid casts when possible.
84777         (guess_time_tm): New function, containing the checking part of
84778         the old ydhms_tm_diff function.  Return the new value, rather than
84779         the difference between it and the old.  Accept a new argument T
84780         so that *T specifies the old value.  Check for overflow in the result.
84781
84782         (__mktime_internal): Use a time_t offset, not a long int offset.
84783         This undoes the 2003-06-04 change, which is no longer needed now
84784         that we have better overflow checking.
84785         (localtime_offset): Likewise.
84786
84787         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84788         and long are 64-bit but int is only 32-bit.
84789         (ydhms_diff): Use long int to store year1 and yday1.
84790         Issue a compile-time diagnostic if long int is not wide enough.
84791
84792         (__mktime_internal): Use long int to store adjusted year and yday.
84793         Use plain C rather than preprocessor commands, if that doesn't
84794         affect efficiency.
84795         Check for overflow (and try to repair) after each probe
84796         rather than checking only at the very end.  This avoids some bugs
84797         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84798         does not equal GMT offset at maximum time).
84799         Use integer to check for overflow rather than floating point; this
84800         is more portable to non-IEEE hosts, and is a tad faster.
84801         When we detect that we are oscillating between two values,
84802         don't check whether tm_isdst has the requested value, since
84803         we already know the answer.  When tm_isdst has the wrong value,
84804         use a different heuristic to find the right one, based on the
84805         extreme values actually observed in practice in tz2003a,
84806         rather than the (overly optimistic) "previous 3 calendar quarters".
84807
84808         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84809         "T const" to accommodate glibc style.
84810         (check_result): Use less-confusing report format.  "long" -> "long int.
84811         (main): Likewise.
84812         Don't loop if the iteration overflows time_t.
84813         Allow a negative step in the iteration.
84814
84815 2003-07-06  Karl Berry  <karl@gnu.org>
84816
84817         * config/depcomp: update from automake.
84818         * config/config.sub: update from prep.
84819
84820 2003-07-03  Karl Berry  <karl@gnu.org>
84821
84822         * config/config.guess: update from prep.
84823
84824 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84825
84826         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84827         xreadlink.c now includes it unconditionally.
84828
84829 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84830
84831         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84832         having it depend on HAVE_SYS_TYPES_H.
84833
84834 2003-07-01  Bruno Haible  <bruno@clisp.org>
84835
84836         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84837         <sys/types.h> should be sufficient.
84838         Reported by Paul Eggert.
84839
84840 2003-06-26  Karl Berry  <karl@gnu.org>
84841
84842         * config/depcomp: update from automake.
84843
84844 2003-06-26  Bruno Haible  <bruno@clisp.org>
84845
84846         * modules/human: Depend on module stdbool.
84847
84848 2003-06-25  Bruno Haible  <bruno@clisp.org>
84849
84850         * modules/readlink: New file.
84851         * modules/xreadlink: Depend on it.
84852         * MODULES.html.sh (func_all_modules): Add readlink.
84853
84854 2003-06-25  Bruno Haible  <bruno@clisp.org>
84855
84856         * m4/readlink.m4: New file.
84857
84858 2003-06-25  Bruno Haible  <bruno@clisp.org>
84859
84860         * lib/readlink.c: New file.
84861
84862 2003-06-22  Karl Berry  <karl@gnu.org>
84863
84864         * config/srclist.txt: update mkinstalldirs from automake.
84865         * config/mkinstalldirs: update.
84866
84867 2003-06-22  Bruno Haible  <bruno@clisp.org>
84868
84869         Portability to mingw32.
84870         * m4/ssize_t.m4: New file, from GNU gettext.
84871         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84872         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84873
84874 2003-06-22  Bruno Haible  <bruno@clisp.org>
84875
84876         * modules/safe-read: Add m4/ssize_t.m4.
84877         * modules/xreadlink: Add m4/ssize_t.m4.
84878
84879 2003-06-20  Bruno Haible  <bruno@clisp.org>
84880
84881         Assume C89, so PARAMS isn't needed.
84882         * lib/unicodeio.h (PARAMS): Remove.
84883         * lib/unicodeio.c: Don't use PARAMS.
84884
84885 2003-06-18  Karl Berry  <karl@gnu.org>
84886
84887         * config/config.{guess,sub}: update from prep.
84888
84889 2003-06-18  Jim Meyering  <jim@meyering.net>
84890
84891         Merge changes from coreutils.
84892         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84893         Remove explicit declarations of xmalloc and realloc.
84894         Include xalloc.h.
84895         (read_utmp): Remove anachronistic cast of xmalloc.
84896
84897 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84898
84899         Assume C89, so PARAMS isn't needed.
84900         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84901         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84902         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84903         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84904         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84905         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84906         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84907         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84908         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84909         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84910         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84911         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84912         no longer needed. Anyway, config.h should always be included before any
84913         other file.
84914
84915 2003-06-11  Simon Josefsson  <jas@extundo.com>
84916
84917         * modules/sysexits: New file.
84918         * MODULES.html.sh (func_all_modules): Add sysexits.
84919
84920 2003-06-11  Simon Josefsson  <jas@extundo.com>
84921
84922         * lib/sysexit_.h: New file.
84923
84924 2003-06-11  Derek Price  <derek@ximbiot.com>
84925
84926         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84927         necessary.
84928
84929 2003-06-11  Bruno Haible  <bruno@clisp.org>
84930
84931         * m4/sysexits.m4: New file.
84932
84933 2003-06-10  Simon Josefsson  <jas@extundo.com>
84934
84935         * lib/argp.h: New file, from glibc.
84936         * lib/argp-ba.c: New file, from glibc.
84937         * lib/argp-eexst.c: New file, from glibc.
84938         * lib/argp-fmtstream.c: New file, from glibc.
84939         * lib/argp-fmtstream.h: New file, from glibc.
84940         * lib/argp-fs-xinl.c: New file, from glibc.
84941         * lib/argp-help.c: New file, from glibc.
84942         * lib/argp-namefrob.h: New file, from glibc.
84943         * lib/argp-parse.c: New file, from glibc.
84944         * lib/argp-pv.c: New file, from glibc.
84945         * lib/argp-pvh.c: New file, from glibc.
84946         * lib/argp-xinl.c: New file, from glibc.
84947
84948 2003-06-10  Simon Josefsson  <jas@extundo.com>
84949
84950         * modules/strchrnul: New file.
84951
84952 2003-06-10  Simon Josefsson  <jas@extundo.com>
84953
84954         * modules/argp: New file.
84955
84956 2003-06-10  Simon Josefsson  <jas@extundo.com>
84957
84958         * m4/strchrnul.m4: New file.
84959
84960 2003-06-10  Simon Josefsson  <jas@extundo.com>
84961
84962         * lib/strchrnul.h: New file.
84963         * lib/strchrnul.c: New file.
84964
84965 2003-06-10  Bruno Haible  <bruno@clisp.org>
84966
84967         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84968
84969 2003-06-07  Karl Berry  <karl@gnu.org>
84970
84971         * config/config.{guess,sub}: update from prep.
84972
84973 2003-06-07  Jim Meyering  <jim@meyering.net>
84974
84975         * modules/strtod: Use $(...) notation, not @...@ for
84976         AC_REPLACE'd variables.
84977         * modules/localcharset: Likewise.
84978
84979 2003-06-07  Jim Meyering  <jim@meyering.net>
84980
84981         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84982         in place of my name in the copyright comment.
84983         Remove definition and uses of __P.
84984
84985         From coreutils.
84986         * lib/stat.c: Don't declare xmalloc explicitly.
84987         Instead, include "xalloc.h".
84988         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84989         xrealloc, and xcalloc return values.
84990         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84991         Improve comment.
84992         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84993
84994 2003-06-07  Bruno Haible  <bruno@clisp.org>
84995
84996         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84997         avoid AC_CONFIG_LINKS.
84998         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84999         fnmatch.h, to avoid AC_CONFIG_LINKS.
85000         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85001
85002 2003-06-07  Bruno Haible  <bruno@clisp.org>
85003
85004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85005         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85006         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85007         directory.
85008         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85009         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85010         directory.
85011
85012 2003-06-06  Jim Meyering  <jim@meyering.net>
85013
85014         Merge from coreutils.
85015         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85016         Consolidate declarations and initializations of *_base* locals.
85017
85018         Merge from coreutils.
85019         This avoids a core dump on systems without GNU putenv,
85020         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85021         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85022         (unsetenv): New static function, from GNU libc.
85023         (rpl_putenv): Use it.
85024
85025         * lib/modechange.c: Remove trailing blanks.
85026
85027         Merge from coreutils.
85028         * lib/fsusage.c: Remove declaration of statfs.
85029         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85030
85031         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85032
85033 2003-06-06  Jim Meyering  <jim@meyering.net>
85034
85035         * lib/stdbool_.h: Renamed from stdbool.h.in.
85036
85037 2003-06-06  Jim Meyering  <jim@meyering.net>
85038             Bruno Haible  <bruno@clisp.org>
85039
85040         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85041         Adjust Makefile.am snippet not to redirect directly to target.
85042         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85043
85044 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85045
85046         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85047         mismatch, look in future quarters as well as past.  This fixes a
85048         bug when processing fall-backwards gaps immediately after a long
85049         period of daylight-saving time.
85050
85051         * lib/mktime.c: Assume freestanding C89 or better.
85052         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85053         (__P): Remove; not used.
85054         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85055         (mktime, not_equal_tm, print_tm, check_result,
85056         main): Use prototypes.  Use const * where appropriate.
85057         (main): Fix typo in testing code that uncovered by above changes.
85058         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85059
85060 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85061
85062         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85063         locale.h, localeconv.  This merges changes from coreutils.
85064
85065         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85066         It can be removed after the next Autoconf is released.
85067         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85068         needed.
85069
85070 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85071
85072         * lib/mktime.c: Fix Debian bug 177940
85073         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85074         (localtime_offset): Now long int, not time_t, because we want it
85075         to be guaranteed to be signed.  All uses changed.
85076         (__mktime_internal): If overflow would occur when adding offset,
85077         don't add it.
85078
85079         Merge 'human' changes from coreutils.  Rewrite to support
85080         locale-specific notations like thousands separators.
85081         * lib/human.c: Simplify authorship notice.
85082         Include human.h immediately after config.h.
85083         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85084         <limits.h>: Do not include, since human.h does.
85085         (SIZE_MAX, UINTMAX_MAX): New macros.
85086         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85087         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85088         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85089         (power_letter): Renamed from suffixes.
85090         (generate_suffix_backwards): Remove.
85091         (adjust_value): Now takes int style (because of human.h changes)
85092         and long double value (for greater precision on some platforms).
85093         (group_number): New function.
85094         (human_readable): Use it.  Use integer options, not enum.
85095         Put the options before the sizes in the arg list.
85096         Support all the new options.
85097         The old human_readable function has been removed;
85098         use inttostr.h instead.
85099         (human_readable, default_block_size, humblock):
85100         Use uintmax_t, not int, for block sizes.
85101         (human_readable_inexact, block_size_types): Remove.
85102         (block_size_opts): New constant.
85103         (human_options): Renamed from human_block_size, with new signature
85104         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85105         * lib/human.h: Add copyright and authorship notice.
85106         Include <limits.h> and <stdbool.h> unconditionally.
85107         (PARAMS): Remove.  All uses removed.
85108         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85109         (enum human_inexact_style): Remove tag; now a nameless enum.
85110         (human_floor, human_ceiling, human_round_to_even): Now have
85111         values 2, 0, 1 rather than -1, 1, 0.
85112         (human_group_digits, human_suppress_point_zero, human_autoscale,
85113         human_base_1024, human_SI, human_B): New constants.
85114         (human_readable_inexact, human_block_size): Remove.
85115         (human_readable): Size args are now uintmax_t, not int.
85116         (human_options): New decl.
85117
85118         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85119         unnecessary now that we assume C89 or better.  This change
85120         imported from coreutils.
85121
85122         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85123         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85124         in the 2003-05-30 sync from glibc.
85125
85126         .h files should stand alone, but we shouldn't include <sys/types.h>
85127         if we can get away with just <stddef.h>.
85128
85129         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85130         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85131         rather than <sys/types.h>, as we merely need size_t.
85132         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85133         to get size_t.
85134         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85135         Include <stdio.h>, to get FILE.
85136         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85137         memcasecmp.h has included <stddef.h> and all we need is size_t.
85138         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85139         our interface, instead of including <sys/types.h>
85140
85141 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85142
85143         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85144         now, as glibc mktime is buggy on non-glibc systems.
85145
85146 2003-06-03  Karl Berry  <karl@gnu.org>
85147
85148         * config/config.sub: update from prep.
85149
85150 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85151
85152         [from coreutils]
85153         Fix some minor time-related bugs with POSIX time arguments.
85154         Some valid time stamps were being rejected (notably -1, and
85155         time stamps before 1900 on 64-bit hosts).  And some invalid
85156         time stamps were being accepted, e.g. September 31.
85157
85158         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85159         that we can return (time_t) -1 successfully.
85160         * lib/posixtm.c: Likewise.
85161         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85162         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85163         (t): Remove static var.
85164         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85165         of static var.  All uses changed.
85166         (year): Do not reject years before 1900; they can occur with
85167         64-bit time_t.
85168         (posix_time_parse): Do not check for out-of-range components;
85169         that is now the caller's responsibility, since our checks were
85170         only approximations.
85171         (posixtime): Use mktime to check for out-of-range components,
85172         since it knows them exactly.
85173         If mktime returns (time_t) -1, check whether an error actually occurred
85174         by invoking localtime on -1.
85175         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85176         posixtime failures better.
85177         Improve the test data (in comments only).
85178
85179 2003-06-02  Karl Berry  <karl@gnu.org>
85180
85181         * config/mkinstalldirs (version): new variable.
85182         (--version): new option.
85183         (usage): improve message.
85184
85185 2003-05-30  Karl Berry  <karl@gnu.org>
85186
85187         * lib/mktime.c: update from libc.
85188
85189 2003-05-30  Bruno Haible  <bruno@clisp.org>
85190
85191         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85192         * config/config.rpath: Upgrade to gettext-0.12.1.
85193
85194 2003-05-30  Bruno Haible  <bruno@clisp.org>
85195
85196         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85197         * m4/nls.m4: New file, from gettext-0.12.1.
85198         * m4/po.m4: New file, from gettext-0.12.1.
85199         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85200
85201 2003-05-30  Bruno Haible  <bruno@clisp.org>
85202
85203         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85204         * lib/localcharset.h: Likewise.
85205         * lib/localcharset.c: Likewise.
85206
85207 2003-05-29  Karl Berry  <karl@gnu.org>
85208
85209         * config/config.rpath: update from gettext.
85210
85211 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85212
85213         Assume the headers required for C89 freestanding compilers.
85214         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85215         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85216         * m4/human.m4 (gl_HUMAN): Likewise.
85217         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85218         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85219         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85220         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85221         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85222         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85223
85224 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85225
85226         Assume the headers required for C89 freestanding compilers.
85227         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85228         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85229         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85230         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85231         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85232         define, since <limits.h> is guaranteed to do that.
85233         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85234         * lib/exclude.c: Include <stdbool.h> unconditionally.
85235         * lib/tempname.c: Include <stddef.h> unconditionally.
85236         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85237         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85238         <stddef.h> does that.
85239         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85240         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85241         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85242         needed.
85243         * lib/xstrtol.c: Likewise.
85244         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85245         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85246
85247         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85248         warnings on some platforms.
85249
85250         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85251         arbitrarily.
85252
85253 2003-05-26  Jim Meyering  <jim@meyering.net>
85254
85255         Merge in a change from coreutils:
85256         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85257         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85258         that condition, rather than `-1' which is slightly misleading.
85259         Change the name of the cache variable to have the gl_ prefix.
85260         Prompted by a patch from Richard Dawe for DJGPP.
85261
85262 2003-05-24  Karl Berry  <karl@gnu.org>
85263
85264         * config/config.guess: update from prep.
85265
85266 2003-05-22  Karl Berry  <karl@gnu.org>
85267
85268         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85269
85270 2003-05-20  Karl Berry  <karl@gnu.org>
85271
85272         * config/config.guess: update from prep.
85273
85274 2003-05-18  Karl Berry  <karl@gnu.org>
85275
85276         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85277         might actually be set by the user.
85278
85279         * config/depcomp, install-sh, mdate-sh: update from automake.
85280
85281 2003-05-17  Bruno Haible  <bruno@clisp.org>
85282
85283         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85284         invalid expansion for AC_EGREP_CPP.
85285         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85286         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85287         Suggested by Akim Demaille <akim@epita.fr> in
85288         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85289
85290 2003-05-12  Jim Meyering  <jim@meyering.net>
85291
85292         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85293         the space-padded-by-default conversion specifiers, %e, %k, %l.
85294
85295 2003-05-12  Bruno Haible  <bruno@clisp.org>
85296
85297         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85298         the string is longer than 4 KB.
85299
85300 2003-05-11  Karl Berry  <karl@gnu.org>
85301
85302         * config/config.{guess,sub}: update from prep.
85303
85304 2003-05-09  Bruno Haible  <bruno@clisp.org>
85305
85306         * modules/error: Add m4/strerror_r.m4 to file list.
85307
85308 2003-05-03  Bruno Haible  <bruno@clisp.org>
85309
85310         Upgrade to Unicode-4.0.
85311         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85312         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85313         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85314         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85315         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85316         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85317         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85318         Change width of U+E0100..U+E01EF from 1 to 0.
85319
85320 2003-04-25  Jim Meyering  <jim@meyering.net>
85321
85322         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85323         of type size_t, not int.
85324
85325 2003-04-25  Bruno Haible  <bruno@clisp.org>
85326
85327         * lib/copy-file.c: Include <stddef.h>, for size_t.
85328
85329 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85330
85331         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85332         code which expansion is under static control.  Patch imported from
85333         Akim Demaille's patch to Bison; see
85334         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85335
85336 2003-04-14  Bruno Haible  <bruno@clisp.org>
85337
85338         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85339
85340 2003-04-11  Jim Meyering  <jim@meyering.net>
85341
85342         Merge changes from Coreutils.
85343
85344         2003-03-22  Jim Meyering  <jim@meyering.net>
85345
85346         * lib/strftime.c (widen): Cast alloca return value to proper type.
85347
85348         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85349
85350         From GNU libc.
85351         * lib/strftime.c (my_strftime): Handle very large width
85352         specifications for numeric values correctly.  Improve checks for
85353         overflow.
85354
85355         2003-01-19  Jim Meyering  <jim@meyering.net>
85356
85357         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85358         definitions.
85359         (nl_get_alt_digit) [! defined my_strftime]: Define.
85360         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85361         _nl_get_alt_digit and _nl_get_walt_digit.
85362
85363         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85364         libc. These changes have no effect outside of _LIBC.
85365
85366 2003-04-10  Bruno Haible  <bruno@clisp.org>
85367
85368         * modules/findprog: New file.
85369         * MODULES.html.sh (func_all_modules): Add it.
85370
85371 2003-04-10  Bruno Haible  <bruno@clisp.org>
85372
85373         * m4/findprog.m4: New file.
85374         * m4/eaccess.m4: New file.
85375
85376 2003-04-10  Bruno Haible  <bruno@clisp.org>
85377
85378         * lib/findprog.h: New file, from GNU gettext.
85379         * lib/findprog.c: New file, from GNU gettext.
85380
85381 2003-04-05  Jim Meyering  <jim@meyering.net>
85382
85383         Merge changes from Coreutils.
85384
85385         * lib/exclude.h (PARAMS): Remove definition and uses.
85386         * lib/exclude.c: Remove uses of `PARAMS'.
85387
85388         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85389         Add test-cases for DOS filenames. Declare program_name.
85390         (main): Set up program_name.  Patch by Rich Dawe.
85391
85392         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85393         error from mntctl.
85394         Use mntctl's return value to drive the entry-processing loop, since
85395         we can't rely on the value of the vmt_length member in the last
85396         entry.  On some systems doing so could result in exhausting
85397         virtual memory.  Based in part on a patch from Mike Jetzer.
85398
85399 2003-04-04  Bruno Haible  <bruno@clisp.org>
85400
85401         * modules/linebreak: New file.
85402         * MODULES.html.sh (func_all_modules): Add it.
85403
85404 2003-04-04  Bruno Haible  <bruno@clisp.org>
85405
85406         * m4/linebreak.m4: New file.
85407
85408 2003-04-04  Bruno Haible  <bruno@clisp.org>
85409
85410         * lib/linebreak.h: New file, from GNU gettext.
85411         * lib/linebreak.c: New file, from GNU gettext with slight
85412         modifications.
85413         * lib/lbrkprop.h: New file, from GNU gettext.
85414
85415 2003-04-03  Bruno Haible  <bruno@clisp.org>
85416
85417         * modules/utf8-ucs4: New file.
85418         * modules/utf16-ucs4: New file.
85419         * modules/ucs4-utf8: New file.
85420         * modules/ucs4-utf16: New file.
85421         * MODULES.html.sh (func_all_modules): Add them.
85422
85423 2003-04-03  Bruno Haible  <bruno@clisp.org>
85424
85425         * m4/utf-ucs4.m4: New file.
85426         * m4/ucs4-utf.m4: New file.
85427
85428 2003-04-03  Bruno Haible  <bruno@clisp.org>
85429
85430         * lib/utf8-ucs4.h: New file, from GNU gettext.
85431         * lib/utf16-ucs4.h: New file, from GNU gettext.
85432         * lib/ucs4-utf8.h: New file, from GNU gettext.
85433         * lib/ucs4-utf16.h: New file, from GNU gettext.
85434
85435 2003-04-02  Bruno Haible  <bruno@clisp.org>
85436
85437         * modules/binary-io: New file.
85438         * MODULES.html.sh (func_all_modules): Add it.
85439
85440 2003-04-02  Bruno Haible  <bruno@clisp.org>
85441
85442         * lib/binary-io.h: New file, from GNU gettext.
85443
85444 2003-04-01  Bruno Haible  <bruno@clisp.org>
85445
85446         * modules/pathname: New file.
85447         * MODULES.html.sh (func_all_modules): Add it.
85448
85449 2003-04-01  Bruno Haible  <bruno@clisp.org>
85450
85451         * lib/pathname.h: New file, from GNU gettext.
85452         * lib/concatpath.c: New file, from GNU gettext.
85453
85454 2003-03-30  Bruno Haible  <bruno@clisp.org>
85455
85456         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85457
85458 2003-03-30  Bruno Haible  <bruno@clisp.org>
85459
85460         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85461         function chown() doesn't exist.
85462
85463 2003-03-28  Bruno Haible  <bruno@clisp.org>
85464
85465         * modules/copy-file: New file.
85466         * MODULES.html.sh (func_all_modules): Add it.
85467
85468 2003-03-28  Bruno Haible  <bruno@clisp.org>
85469
85470         * m4/copy-file.m4: New file.
85471
85472 2003-03-28  Bruno Haible  <bruno@clisp.org>
85473
85474         * lib/copy-file.h: New file, from GNU gettext.
85475         * lib/copy-file.c: New file, from GNU gettext.
85476
85477 2003-03-18  Jim Meyering  <jim@meyering.net>
85478
85479         * lib/quote.c (quote_n): Fix typo in comment.
85480
85481 2003-03-18  Bruno Haible  <bruno@clisp.org>
85482
85483         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85484         checking.
85485         * m4/onceonly_2_57.m4: Likewise.
85486
85487 2003-03-17  Bruno Haible  <bruno@clisp.org>
85488
85489         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85490         (m4_quote): Remove macro.
85491         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85492
85493 2003-03-14  Jim Meyering  <jim@meyering.net>
85494
85495         Merge changes from Coreutils.
85496         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85497         to be const, in order to avoid warnings.
85498         (obstack_room): Likewise.
85499         (obstack_empty_p): Likewise.
85500
85501 2003-03-14  Bruno Haible  <bruno@clisp.org>
85502
85503         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85504         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85505
85506 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85507
85508         Merge changes from Bison.
85509         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85510         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85511         when compiling Bison 1.875's `bitset bset = obstack_alloc
85512         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85513         * lib/hash.c: Include <stdbool.h> unconditionally.
85514
85515 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85516
85517         * m4/onceonly.m4 (m4_quote): New macro.
85518         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85519         Quote AC_FOREACH variable-expansions properly.
85520
85521 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85522
85523         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85524
85525 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85526
85527         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85528         Reported by Bruce Becker; see:
85529         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85530
85531 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85532             Bruno Haible  <bruno@clisp.org>
85533
85534         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85535         Reported by John Hughes, see
85536         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85537
85538 2003-02-20  Bruno Haible  <bruno@clisp.org>
85539
85540         * MODULES.html.sh (func_all_modules): Add poll.
85541
85542 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85543
85544         * modules/poll: New file.
85545
85546 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85547
85548         * lib/poll_.h: New file.
85549         * lib/poll.c: New file.
85550
85551 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85552
85553         * m4/poll.m4: New file.
85554
85555 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85556
85557         * modules/mathl: New file.
85558
85559 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85560
85561         * lib/mathl.h: New file.
85562         * lib/acosl.c: New file.
85563         * lib/asinl.c: New file.
85564         * lib/atanl.c: New file.
85565         * lib/ceill.c: New file.
85566         * lib/cosl.c: New file.
85567         * lib/expl.c: New file.
85568         * lib/floorl.c: New file.
85569         * lib/frexpl.c: New file.
85570         * lib/ldexpl.c: New file.
85571         * lib/logl.c: New file.
85572         * lib/sincosl.c: New file.
85573         * lib/sinl.c: New file.
85574         * lib/sqrtl.c: New file.
85575         * lib/tanl.c: New file.
85576         * lib/trigl.c: New file.
85577         * lib/trigl.h: New file.
85578
85579 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85580
85581         * m4/mathl.m4: New file.
85582
85583 2003-02-18  Bruno Haible  <bruno@clisp.org>
85584
85585         * MODULES.html.sh (func_all_modules): Add mathl.
85586
85587 2003-02-17  Bruno Haible  <bruno@clisp.org>
85588
85589         * modules/mkdtemp: New module.
85590         * MODULES.html.sh (func_all_modules): Add it.
85591
85592 2003-02-17  Bruno Haible  <bruno@clisp.org>
85593
85594         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85595
85596 2003-02-17  Bruno Haible  <bruno@clisp.org>
85597
85598         * lib/mkdtemp.h: New file, from GNU gettext.
85599         * lib/mkdtemp.c: New file, from GNU gettext.
85600
85601 2003-02-02  Jim Meyering  <jim@meyering.net>
85602
85603         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85604         e.g. glibc-2.2.93.
85605
85606 2003-01-31  Bruno Haible  <bruno@clisp.org>
85607
85608         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85609         'rpl_rename'.
85610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85611         'rpl_strnlen'.
85612         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85613         'rpl_strtod'.
85614         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85615         'rpl_utime'.
85616
85617 2003-01-31  Bruno Haible  <bruno@clisp.org>
85618
85619         * lib/rename.c: #undef rename before defining rpl_rename.
85620         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85621
85622 2003-01-30  Bruno Haible  <bruno@clisp.org>
85623
85624         * modules/vasnprintf, modules/vasprintf: New modules.
85625         * MODULES.html.sh (func_all_modules): Add them.
85626
85627 2003-01-30  Bruno Haible  <bruno@clisp.org>
85628
85629         * m4/signed.m4: New file, from GNU gettext.
85630         * m4/longdouble.m4: New file, from GNU gettext.
85631         * m4/wchar_t.m4: New file, from GNU gettext.
85632         * m4/wint_t.m4: New file, from GNU gettext.
85633         * m4/vasnprintf.m4: New file.
85634         * m4/vasprintf.m4: New file.
85635
85636 2003-01-30  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/printf-args.h: New file, from GNU gettext.
85639         * lib/printf-args.c: New file, from GNU gettext.
85640         * lib/printf-parse.h: New file, from GNU gettext.
85641         * lib/printf-parse.c: New file, from GNU gettext.
85642         * lib/vasnprintf.h: New file, from GNU gettext.
85643         * lib/vasnprintf.c: New file, from GNU gettext.
85644         * lib/asnprintf.c: New file, from GNU gettext.
85645         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85646         * lib/vasprintf.c: New file, from GNU gettext.
85647         * lib/asprintf.c: New file, from GNU gettext.
85648
85649 2003-01-29  Bruno Haible  <bruno@clisp.org>
85650
85651         * modules/stpncpy: New module.
85652         * MODULES.html.sh (func_all_modules): Add it.
85653
85654 2003-01-29  Bruno Haible  <bruno@clisp.org>
85655
85656         * m4/stpncpy.m4: New file.
85657
85658 2003-01-29  Bruno Haible  <bruno@clisp.org>
85659
85660         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85661         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85662
85663 2003-01-28  Bruno Haible  <bruno@clisp.org>
85664
85665         * modules/c-ctype: New module.
85666         * MODULES.html.sh (func_all_modules): Add it.
85667
85668 2003-01-28  Bruno Haible  <bruno@clisp.org>
85669
85670         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85671         Paul Eggert.
85672         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85673         Paul Eggert.
85674
85675 2003-01-27  Bruno Haible  <bruno@clisp.org>
85676
85677         * modules/xsetenv: New module.
85678         * MODULES.html.sh (func_all_modules): Add it.
85679
85680 2003-01-27  Bruno Haible  <bruno@clisp.org>
85681
85682         * lib/xsetenv.h: New file, from GNU gettext.
85683         * lib/xsetenv.c: New file, from GNU gettext.
85684
85685 2003-01-23  Jim Meyering  <jim@meyering.net>
85686
85687         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85688         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85689
85690 2003-01-23  Bruno Haible  <bruno@clisp.org>
85691
85692         * modules/minmax: New module.
85693         * MODULES.html.sh (func_all_modules): Add it.
85694
85695 2003-01-23  Bruno Haible  <bruno@clisp.org>
85696
85697         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85698         Eggert.
85699
85700 2003-01-22  Bruno Haible  <bruno@clisp.org>
85701
85702         * modules/exit: New module.
85703         * MODULES.html.sh (func_all_modules): Add it.
85704
85705 2003-01-22  Bruno Haible  <bruno@clisp.org>
85706
85707         * lib/exit.h: New file, from GNU gettext.
85708
85709 2003-01-19  Bruno Haible  <bruno@clisp.org>
85710
85711         * gnulib-tool: Recognize option --extract-maintainer.
85712         (func_get_maintainer): New function.
85713         * modules/*: Add Maintainer entry.
85714
85715 2003-01-16  Jim Meyering  <jim@meyering.net>
85716
85717         * m4/regex.m4: The `regex' struct is both input and output.
85718         Initialize it before each use.  Patch by Tim Waugh.
85719
85720 2003-01-16  Bruno Haible  <bruno@clisp.org>
85721
85722         * MODULES.html.sh: Add a table of contents. Add the module name as
85723         leftmost column. Add hyperlinks.
85724
85725 2003-01-15  Bruno Haible  <bruno@clisp.org>
85726
85727         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85728
85729 2003-01-15  Bruno Haible  <bruno@clisp.org>
85730
85731         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85732         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85733         suffix.
85734
85735 2003-01-15  Bruno Haible  <bruno@clisp.org>
85736
85737         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85738
85739 2003-01-15  Bruno Haible  <bruno@clisp.org>
85740
85741         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85742         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85743
85744 2003-01-14  Jim Meyering  <jim@meyering.net>
85745
85746         * lib/same.c (same_name): Tweak a comment.
85747
85748 2003-01-14  Bruno Haible  <bruno@clisp.org>
85749
85750         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85751         when a string comparison is sufficient.
85752
85753 2003-01-14  Bruno Haible  <bruno@clisp.org>
85754
85755         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85756         'unsigned int'.
85757
85758 2003-01-14  Bruno Haible  <bruno@clisp.org>
85759
85760         * lib/hash-pjw.c: Add comment about low quality of this function.
85761
85762 2003-01-13  Bruno Haible  <bruno@clisp.org>
85763
85764         * modules/stpcpy: Distribute lib/stpcpy.h.
85765         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85766
85767 2003-01-13  Bruno Haible  <bruno@clisp.org>
85768
85769         * modules/*: Add a description.
85770         * modules/strpbrk: Fix Makefile.am snippet.
85771         * modules/strtoimax: Fix dependencies.
85772         * modules/strtoumax: Likewise.
85773
85774 2003-01-13  Bruno Haible  <bruno@clisp.org>
85775
85776         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85777         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85778         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85779
85780 2003-01-13  Bruno Haible  <bruno@clisp.org>
85781
85782         * gnulib-tool (func_create_testdir): Store config/* files in the main
85783         directory.
85784         * config.rpath: Move to ...
85785         * config/config.rpath: ... here.
85786         * modules/gettext: Contains config/config.rpath, not config.rpath.
85787         * modules/iconv: Likewise.
85788
85789 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85790
85791         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85792         to avoid collisions with libcurses and libreadline.
85793
85794         * m4/getstr.m4: Remove.
85795         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85796
85797 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85798
85799         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85800         to avoid collisions with libcurses and libreadline.
85801
85802         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85803         * lib/getstr.h, getstr.c: Remove.
85804         * lib/getline.c: Include "getline.h", to check interface.
85805         Move body of old getstr.c here: this defines MIN_CHUNK and
85806         declares getdelim2, which is renamed from getstr.
85807         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85808
85809         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85810         All uses changed.
85811         * lib/linebuffer.h: Likewise.
85812         (readline): Remove backward-compatibility macro.
85813
85814 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85815
85816         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85817         to avoid collisions with libcurses and libreadline.
85818         * getstr: Remove.
85819         * MODULES.html.sh: Remove getstr.
85820         * modules/getline: Depend on unlocked-io, not getstr.
85821
85822 2003-01-12  Jim Meyering  <jim@meyering.net>
85823
85824         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85825
85826 2003-01-10  Bruno Haible  <bruno@clisp.org>
85827
85828         * modules/alloca: Change Makefile.am requirements. Simplify Include
85829         requirements. Add lib/alloca_.h to file list.
85830
85831 2003-01-10  Bruno Haible  <bruno@clisp.org>
85832
85833         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85834
85835 2003-01-10  Bruno Haible  <bruno@clisp.org>
85836
85837         * lib/alloca_.h: New file.
85838         * lib/getdate.y: Unconditionally include alloca.h.
85839         * lib/makepath.c: Likewise.
85840         * lib/setenv.c: Likewise.
85841         * lib/userspec.c: Likewise.
85842
85843 2003-01-09  Karl Berry  <karl@gnu.org>
85844
85845         * MODULES.html.sh: include `dirname $0` in PATH, to find
85846         gnulib-tool.
85847
85848 2003-01-09  Bruno Haible  <bruno@clisp.org>
85849
85850         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85851         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85852
85853 2003-01-09  Bruno Haible  <bruno@clisp.org>
85854
85855         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85856
85857 2003-01-09  Bruno Haible  <bruno@clisp.org>
85858
85859         * lib/stdbool.h.in: New file.
85860
85861 2003-01-09  Bruno Haible  <bruno@clisp.org>
85862
85863         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85864         * MODULES.html.sh: Likewise.
85865
85866 2003-01-08  Jim Meyering  <jim@meyering.net>
85867
85868         * lib/full-write.c: Undefine and define-away `const' after inclusion
85869         of errno.h, not before.  Suggestion from Bruno Haible.
85870
85871 2003-01-08  Bruno Haible  <bruno@clisp.org>
85872
85873         * modules/full-read: Depend on full-write.
85874
85875 2003-01-08  Bruno Haible  <bruno@clisp.org>
85876
85877         * lib/safe-read.c: Include specification header first, to ensure its
85878         selfcontainedness.
85879         * lib/full-write.c: Likewise.
85880
85881 2003-01-07  Jim Meyering  <jim@meyering.net>
85882
85883         * lib/full-write.c: Rework so that it may serve to define full_read,
85884         too.
85885         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85886
85887 2003-01-07  Bruno Haible  <bruno@clisp.org>
85888
85889         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85890         <inttypes.h>.
85891         * lib/xstrtol.h: Likewise.
85892         * lib/xstrtoimax.c: Likewise.
85893         * lib/xstrtoumax.c: Likewise.
85894         * lib/human.h: Likewise.
85895
85896         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85897         on systems that have <inttypes.h> but not <stdint.h>.
85898
85899 2003-01-07  Bruno Haible  <bruno@clisp.org>
85900
85901         * MODULES.html.sh: Add copyright notice.
85902         (missed_files): Omit CVS directory entries.
85903         (func_module): Make it work with sed-3.02.
85904         * MODULES.txt: Remove file.
85905
85906 2003-01-06  Jim Meyering  <jim@meyering.net>
85907
85908         * lib/version-etc.c: Update year in translatable copyright string.
85909
85910 2003-01-03  Karl Berry  <karl@gnu.org>
85911
85912         * config/config.{guess,sub}: update from prep.
85913
85914 2003-01-02  Karl Berry  <karl@gnu.org>
85915
85916         * doc/COPYING.DOC: belatedly updated to 1.2.
85917
85918 2003-01-01  Karl Berry  <karl@gnu.org>
85919
85920         * gnulib-tool (func_verify_module): report module name $module in
85921         error message, not $1.
85922         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85923         be created, only if it doesn't exist.
85924         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85925
85926 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85927
85928         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85929
85930 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85931
85932         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85933         memcmp if strcoll doesn't work.
85934
85935 2002-12-31  Bruno Haible  <bruno@clisp.org>
85936
85937         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85938         nonempty.
85939
85940 2002-12-31  Bruno Haible  <bruno@clisp.org>
85941
85942         * lib/memcoll.c (STRCOLL): New macro.
85943         (memcoll): Use it.
85944
85945 2002-12-31  Bruno Haible  <bruno@clisp.org>
85946
85947         * lib/localcharset.h: New file.
85948         * lib/localcharset.c: Include it.
85949         * lib/unicodeio.c: Likewise.
85950
85951 2002-12-31  Bruno Haible  <bruno@clisp.org>
85952
85953         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85954         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85955
85956 2002-12-31  Bruno Haible  <bruno@clisp.org>
85957
85958         * lib/getline.h: Include <stddef.h>, for size_t.
85959
85960         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85961         * lib/unicodeio.c: Don't include <stddef.h>.
85962
85963 2002-12-31  Bruno Haible  <bruno@clisp.org>
85964
85965         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85966         HAVE_TM_ZONE.
85967
85968 2002-12-24  Karl Berry  <karl@gnu.org>
85969
85970         * config/config.guess: update from prep.
85971
85972 2002-12-24  Bruno Haible  <bruno@clisp.org>
85973
85974         General infrasructure.
85975         * m4/README: Rewritten.
85976         * m4/onceonly.m4: New file.
85977         * m4/onceonly_2_57.m4: New file.
85978
85979         Module atexit.
85980         * m4/atexit.m4: New file.
85981
85982         Module strtod.
85983         * m4/strtod.m4: New file.
85984
85985         Module strtol.
85986         * m4/strtol.m4: New file.
85987
85988         Module strtoul.
85989         * m4/strtoul.m4: New file.
85990
85991         Module memchr.
85992         * m4/memchr.m4: New file.
85993
85994         Module memcmp.
85995         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85996         (jm_FUNC_MEMCMP): Invoke it.
85997
85998         Module memcpy.
85999         * m4/memcpy.m4: New file.
86000
86001         Module memmove.
86002         * m4/memmove.m4: New file.
86003
86004         Module memset.
86005         * m4/memset.m4: New file.
86006
86007         Module strcspn.
86008         * m4/strcspn.m4: New file.
86009
86010         Module strpbrk.
86011         * m4/strpbrk.m4: New file.
86012
86013         Module strstr.
86014         * m4/strstr.m4: New file.
86015
86016         Module strerror.
86017         * m4/strerror.m4: New file.
86018
86019         Module mktime.
86020         * m4/mktime.m4: Renamed from jm-mktime.m4.
86021         (gl_PREREQ_MKTIME): New macro.
86022         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86023
86024         Module malloc.
86025         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86026         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86027         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86028
86029         Module realloc.
86030         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86031         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86032         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86033
86034         Module strftime.
86035         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86036         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86037         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86038         gl_TM_GMTOFF.
86039         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86040
86041         Module xalloc.
86042         * m4/xalloc.m4: New file.
86043
86044         Module alloca.
86045         * m4/alloca.m4: New file.
86046
86047         Module putenv.
86048         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86049         (jm_FUNC_PUTENV): Invoke it.
86050
86051         Module setenv.
86052         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86053         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86054         when invoked twice.
86055         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86056         gt_FUNC_SETENV.
86057
86058         Module memrchr.
86059         * m4/memrchr.m4: New file.
86060
86061         Module stpcpy.
86062         * m4/stpcpy.m4: New file.
86063
86064         Module strcase.
86065         * m4/strcase.m4: New file.
86066
86067         Module strdup.
86068         * m4/strdup.m4: New file.
86069
86070         Module strnlen.
86071         * m4/strnlen.m4: New file.
86072
86073         Module strndup.
86074         * m4/strndup.m4: New file.
86075
86076         Module xstrtod.
86077         * m4/xstrtod.m4: New file.
86078
86079         Module xstrtol.
86080         * m4/xstrtol.m4: New file.
86081
86082         Module getdate.
86083         * m4/getdate.m4: New file.
86084
86085         Module unlocked-io.
86086         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86087         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86088         * m4/jm-glibc-io.m4n: Remove file.
86089
86090         Module long-options.
86091         * m4/long-options.m4: New file.
86092
86093         Module md5.
86094         * m4/md5.m4: New file.
86095
86096         Module sha.
86097         * m4/sha.m4: New file.
86098
86099         Module getstr.
86100         * m4/getstr.m4: New file.
86101
86102         Module getline.
86103         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86104         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86105         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86106         simply getline. Infoke gl_PREREQ_GETLINE.
86107
86108         Module obstack.
86109         * m4/obstack.m4: New file.
86110
86111         Module hash.
86112         * m4/hash.m4: New file.
86113
86114         Module readtokens.
86115         * m4/readtokens.m4: New file.
86116
86117         Module strverscmp.
86118         * m4/strverscmp.m4: New file.
86119
86120         Module stdbool.
86121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86122         OSF/1.
86123
86124         Module strtoll.
86125         * m4/strtoll.m4: New file.
86126
86127         Module strtoull.
86128         * m4/strtoull.m4: New file.
86129
86130         Module strtoimax.
86131         * m4/strtoimax.m4: New file.
86132
86133         Module strtoumax.
86134         * m4/strtoumax.m4: New file.
86135
86136         Module xstrtoimax.
86137         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86138         jm_AC_PREREQ_XSTRTOIMAX.
86139         Moved the strtol prerequisites to strtol.m4.
86140         Moved the strtoll prerequisites to strtoll.m4.
86141         Moved the strtoimax prerequisites to strtoimax.m4.
86142
86143         Module xstrtoumax.
86144         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86145         jm_AC_PREREQ_XSTRTOUMAX.
86146         Moved the strtoul prerequisites to strtoul.m4.
86147         Moved the strtoull prerequisites to strtoull.m4.
86148         Moved the strtoumax prerequisites to strtoumax.m4.
86149
86150         Module chown.
86151         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86152         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86153
86154         Module dup2.
86155         * m4/dup2.m4: New file.
86156
86157         Module ftruncate.
86158         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86159         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86160
86161         Module getgroups.
86162         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86163         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86164
86165         Module gettimeofday.
86166         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86167         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86168         gl_PREREQ_GETTIMEOFDAY.
86169
86170         Module mkdir.
86171         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86172         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86173
86174         Module mkstemp.
86175         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86176         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86177         jm_AC_TYPE_UINTMAX_T.
86178         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86179
86180         Module stat.
86181         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86182         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86183
86184         Module lstat.
86185         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86186         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86187
86188         Module timespec.
86189         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86190         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86191         * m4/st_mtim.m4: Indentation.
86192
86193         Module nanosleep.
86194         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86195         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86196         gl_PREREQ_NANOSLEEP.
86197
86198         Module regex.
86199         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86200         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86201         (gl_REGEX): New macro.
86202
86203         Module rename.
86204         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86205         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86206
86207         Module rmdir.
86208         * m4/rmdir.m4: New file.
86209
86210         Module utime.
86211         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86212         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86213         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86214
86215         Module dirname.
86216         * m4/dirname.m4: New file.
86217
86218         Module getopt.
86219         * m4/getopt.m4: New file.
86220
86221         Module unistd-safer.
86222         * m4/unistd-safer.m4: New file.
86223
86224         Module fnmatch.
86225         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86226         declaration.
86227         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86228         (gl_FUNC_FNMATCH_POSIX): New macro.
86229         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86230         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86231         simply fnmatch.
86232
86233         Module exclude.
86234         * m4/exclude.m4: New file.
86235
86236         Module human.
86237         * m4/human.m4: New file.
86238
86239         Module acl.
86240         * m4/acl.m4: Nop.
86241
86242         Module backupfile.
86243         * m4/backupfile.m4: New file.
86244         * m4/d-ino.m4: Indentation.
86245
86246         Module fsusage.
86247         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86248         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86249         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86250
86251         Module dirfd.
86252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86253         requirements.
86254
86255         Module euidaccess.
86256         * m4/euidaccess.m4: New file.
86257
86258         Module file-type.
86259         * m4/file-type.m4: New file.
86260
86261         Module fileblocks.
86262         * m4/fileblocks.m4: New file.
86263
86264         Module filemode.
86265         * m4/filemode.m4: New file.
86266
86267         Module isdir.
86268         * m4/isdir.m4: New file.
86269
86270         Module lchown.
86271         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86272         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86273
86274         Module makepath.
86275         * m4/makepath.m4: New file.
86276
86277         Module modechange.
86278         * m4/modechange.m4: New file.
86279
86280         Module mountlist.
86281         * m4/mountlist.m4: New file.
86282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86283         Indentation.
86284
86285         Module path-concat.
86286         * m4/path-concat.m4: New file.
86287
86288         Module pathmax.
86289         * m4/pathmax.m4: New file.
86290
86291         Module same.
86292         * m4/same.m4: New file.
86293
86294         Module save-cwd.
86295         * m4/save-cwd.m4: New file.
86296
86297         Module savedir.
86298         * m4/savedir.m4: New file.
86299
86300         Module xgetcwd.
86301         * m4/xgetcwd.m4: New file.
86302         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86303
86304         Module xreadlink.
86305         * m4/xreadlink.m4: New file.
86306
86307         Module safe-read.
86308         * m4/safe-read.m4: New file.
86309
86310         Module safe-write.
86311         * m4/safe-write.m4: New file.
86312
86313         Module closeout.
86314         * m4/closeout.m4: New file.
86315
86316         Module stdio-safer.
86317         * m4/stdio-safer.m4: New file.
86318
86319         Module getpass.
86320         * m4/getpass.m4: New file.
86321
86322         Module getugroups.
86323         * m4/getugroups.m4: New file.
86324
86325         Module group-member.
86326         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86327         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86328
86329         Module idcache.
86330         * m4/idcache.m4: New file.
86331
86332         Module userspec.
86333         * m4/userspec.m4: New file.
86334
86335         Module gettime.
86336         * m4/clock_time.m4: New file.
86337         * m4/gettime.m4: New file.
86338
86339         Module settime.
86340         * m4/settime.m4: New file.
86341
86342         Module posixtm.
86343         * m4/posixtm.m4: New file.
86344
86345         Module gethostname.
86346         * m4/gethostname.m4: New file.
86347
86348         Module canon-host.
86349         * m4/canon-host.m4: New file.
86350
86351         Module gettext.
86352         * m4/codeset.m4: New file, from gettext-0.11.5.
86353         * m4/gettext.m4: New file, from gettext-0.11.5.
86354         * m4/glibc21.m4: New file, from gettext-0.11.5.
86355         * m4/iconv.m4: New file, from gettext-0.11.5.
86356         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86357         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86358         * m4/inttypes.m4: New file, from gettext-0.11.5.
86359         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86360         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86361         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86362         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86363         * m4/lib-link.m4: New file, from gettext-0.11.5.
86364         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86365         * m4/progtest.m4: New file, from gettext-0.11.5.
86366         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86367         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86368         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86369
86370         Module localcharset.
86371         * m4/localcharset.m4: New file.
86372
86373         Module hard-locale.
86374         * m4/hard-locale.m4: New file.
86375
86376         Module mbswidth.
86377         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86378         onceonly macros.
86379         * m4/mbrtowc.m4: Add comment.
86380
86381         Module memcasecmp.
86382         * m4/memcasecmp.m4: New file.
86383
86384         Module memcoll.
86385         * m4/memcoll.m4: New file.
86386
86387         Module unicodeio.
86388         * m4/unicodeio.m4: New file.
86389
86390         Module rpmatch.
86391         * m4/rpmatch.m4: New file.
86392
86393         Module yesno.
86394         * m4/yesno.m4: New file.
86395
86396         Module exitfail.
86397         * m4/exitfail.m4: New file.
86398
86399         Module c-stack.
86400         * m4/c-stack.m4 (gl_C_STACK): New macro.
86401         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86402
86403         Module error.
86404         * m4/error.m4 (gl_ERROR): New macro.
86405         (jm_PREREQ_ERROR): Use onceonly macros.
86406
86407         Module fatal.
86408         * m4/fatal.m4: New file.
86409
86410         Module getloadavg.
86411         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86412         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86413
86414         Module getpagesize.
86415         * m4/getpagesize.m4: New file.
86416
86417         Module getusershell.
86418         * m4/getusershell.m4: New file.
86419
86420         Module physmem.
86421         * m4/physmem.m4: New file.
86422
86423         Module posixver.
86424         * m4/posixver.m4: New file.
86425
86426         Module quotearg.
86427         * m4/quotearg.m4: New file.
86428
86429         Module quote.
86430         * m4/quote.m4: New file.
86431
86432         Module readutmp.
86433         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86434
86435         Module sig2str.
86436         * m4/sig2str.m4: New file.
86437
86438         Other.
86439         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86440         ulonglong.m4.
86441         * m4/intmax_t.m4: New file.
86442         * m4/d-type.m4: Indentation.
86443         * m4/jm-macros.m4: Update.
86444         * m4/prereq.m4 (jm_PREREQ): Update.
86445         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86446         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86447         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86448         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86449         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86450         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86451         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86452         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86453         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86454         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86455         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86456         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86457         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86458         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86459         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86460         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86461         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86462         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86463         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86464
86465 2002-12-24  Bruno Haible  <bruno@clisp.org>
86466
86467         * MODULES.txt: Update according to m4/ changes.
86468
86469         Module gettext.
86470         * config.rpath: New file, from gettext-0.11.5.
86471
86472         * modules/*: New module descriptions.
86473         * gnulib-tool: New file.
86474         * MODULES.html.sh: New file.
86475
86476 2002-12-21  Karl Berry  <karl@gnu.org>
86477
86478         * doc/fdl.texi: update to version 1.2.
86479
86480 2002-12-19  Karl Berry  <karl@gnu.org>
86481
86482         * config/config.guess: update from prep.
86483
86484 2002-12-18  Bruno Haible  <bruno@clisp.org>
86485
86486         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86487         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86488
86489 2002-12-17  Bruno Haible  <bruno@clisp.org>
86490
86491         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86492         stdlib.h, string.h.
86493
86494 2002-12-17  Bruno Haible  <bruno@clisp.org>
86495
86496         * lib/canon-host.c (strdup): Remove unused declaration.
86497
86498         * lib/fsusage.c: Include full_read.h.
86499         (get_fs_usage): Use full_read instead of safe_read.
86500
86501         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86502
86503 2002-12-12  Karl Berry  <karl@gnu.org>
86504
86505         * config/config.guess: update from prep.
86506
86507 2002-12-11  Bruno Haible  <bruno@clisp.org>
86508
86509         * m4/setenv.m4: New file, from gettext-0.11.5.
86510
86511 2002-12-11  Bruno Haible  <bruno@clisp.org>
86512
86513         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86514         not unsetenv().
86515         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86516         modifications:
86517
86518         2002-12-11  Bruno Haible  <bruno@clisp.org>
86519
86520                 * setenv.c (alloca): Fall back to malloc.
86521                 (freea): New macro.
86522                 (setenv): Use freea() to free memory allocated with alloca().
86523
86524         2002-11-13  Bruno Haible  <bruno@clisp.org>
86525
86526                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86527                 function declarations.
86528                 * unsetenv.c (unsetenv): Likewise.
86529
86530         2002-03-04  Bruno Haible  <bruno@clisp.org>
86531
86532                 Portability to AIX 4.3.3.
86533                 * unsetenv.c: New file, extracted from setenv.c.
86534                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86535
86536         2001-12-20  Bruno Haible  <bruno@clisp.org>
86537
86538                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86539                 use malloc instead. For SunOS 4.
86540
86541         2001-12-11  Bruno Haible  <bruno@clisp.org>
86542
86543                 * setenv.c: Declare alloca.
86544                 (compar_fn_t): New typedef.
86545                 (KNOWN_VALUE, STORE_VALUE): Use it.
86546
86547         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86548         setenv.h.
86549
86550 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86551
86552         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86553         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86554         Choose values that are less likely to collide with system fnmatch
86555         options.
86556         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86557         defined (e.g., a pure POSIX system).
86558         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86559         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86560
86561 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86562
86563         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86564         a pain in practice to deal with generated m4 files.  This change
86565         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86566
86567         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86568         and jm-glibc-io.m4, as they are no longer a special case.
86569         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86570         kludge and the auto-generation stuff.  Check only whether the
86571         functions are declared, not whether they exist, since older hosts
86572         that don't declare the functions can't use the optimization anyway.
86573
86574 2002-12-06  Jim Meyering  <jim@meyering.net>
86575
86576         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86577
86578         Merge in changes from libc's misc/error.c, in preparation
86579         for the merge of gnulib's changes back into libc.
86580
86581         * lib/error.c (_): Define only if not already defined.
86582         Move definition to follow all #include directives.
86583         Include unlocked-io.h only if !_LIBC.
86584         [_LIBC]: Include <libio/libioP.h>.
86585         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86586         (fflush): Tweak definition to use INTUSE.
86587         (putc): Define.
86588
86589 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86590
86591         * lib/alloca.c [defined emacs]: Include "lisp.h".
86592         (xalloc_die) [defined emacs]: New macro.
86593         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86594         [! defined emacs]: Include <xalloc.h>.
86595         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86596         (pointer): Typedef to POINTER_TYPE *.
86597         (malloc): Remove decl; we now always use xmalloc.
86598         (alloca): Use old-style definition, since Emacs needs this.
86599         Check for arithmetic overflow when computing combined size.
86600
86601 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86602
86603         Do not generate unlocked-io.h automatically, since it's easier to
86604         maintain it by hand.
86605
86606         * lib/unlocked-io.h: New file, from GNU diffutils,
86607         but with proper copyright notice and attribution.
86608         * lib/gen-uio: Remove.
86609         * lib/Makefile.am: Add copyright notice.
86610         (libfetish_a_SOURCES): Add unlocked-io.h.
86611         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86612         (DISTCLEANFILES, io_functions): Remove macros.
86613         (EXTRA_DIST): Remove gen_uio.
86614         (unlocked-io.h): Remove rule.
86615
86616 2002-12-04  Jim Meyering  <jim@meyering.net>
86617
86618         Reflect the fact that stat.c and lstat.c are no longer generated.
86619         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86620         (DISTCLEANFILES): Likewise.
86621         (EXTRA_DIST): Likewise.
86622         (all_local): Don't depend on stat.c or lstat.c.
86623         (stat.c, lstat.c): Remove rules.
86624         (EXTRA_DIST): Remove xstat.in.
86625
86626         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86627         * lib/stat.c: New file.  Contents mostly from xstat.in.
86628         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86629         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86630
86631         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86632         too.
86633         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86634
86635 2002-12-03  Jim Meyering  <jim@meyering.net>
86636
86637         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86638         but not semantics, to minimize the differences between these two files.
86639         (safe_read): Change comment to mention SAFE_READ_ERROR.
86640
86641         * lib/safe-read.c (IS_EINTR): Define.
86642         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86643
86644 2002-12-02  Jim Meyering  <jim@meyering.net>
86645
86646         * lib/safe-read.c (EINTR): Define.
86647         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86648         (INT_MAX): Provide fallback.
86649         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86650
86651         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86652
86653 2002-12-02  Bruno Haible  <bruno@clisp.org>
86654
86655         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86656         Define, taken from safe-read.c.
86657         (INT_MAX): Provide fallback.
86658         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86659         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86660
86661         * lib/safe-read.c (EINTR): Remove definition.
86662         (safe_read): Don't use EINTR if it is absent.
86663
86664 2002-12-01  Jim Meyering  <jim@meyering.net>
86665
86666         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86667         zero.
86668         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86669
86670 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86671
86672         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86673         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86674         with `if (! (value < limit)) abort ();', for readability.
86675
86676 2002-11-26  Karl Berry  <karl@gnu.org>
86677
86678         * lib/strdup.c: copy from libc again, with jim's ok.
86679         * lib/.cppi-disable: re-add strdup.c
86680
86681 2002-11-25  Karl Berry  <karl@gnu.org>
86682
86683         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86684         instead of "strtol.c".
86685
86686 2002-11-25  Karl Berry  <karl@gnu.org>
86687
86688         * config/install-sh: update from automake for variable quoting, $0 in
86689         error msgs, etc.
86690
86691         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86692         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86693         entry.
86694
86695 2002-11-25  Jim Meyering  <jim@meyering.net>
86696
86697         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86698
86699 2002-11-24  Karl Berry  <karl@gnu.org>
86700
86701         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86702         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86703
86704 2002-11-24  Jim Meyering  <jim@meyering.net>
86705
86706         Update from coreutils:
86707
86708         * lib/mktime.c: Merge in changes from libc.
86709
86710         Avoid a link-time failure on some Linux systems.
86711         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86712         (otherwise).
86713         (__mon_yday): Declare with the STATIC attribute.
86714         (__mktime_internal): Likewise.
86715         Based on a report from Greg Schafer.
86716
86717 2002-11-23  Jim Meyering  <jim@meyering.net>
86718
86719         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86720         Use `unsigned', not `int', as type of index.
86721
86722         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86723
86724         * lib/fsusage.c: Remove unneeded parentheses around operands of
86725         `defined'.
86726
86727 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86728
86729         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86730         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86731         so that we can be included first.
86732         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86733         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86734         No need to include stddef.h or sys/types.h any more.
86735         Surround local include files with "", not "<>".
86736         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86737         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86738         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86739         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86740         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86741         (ISPRINT): Remove; no longer needed now that we assume C89.
86742
86743         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86744         Preserve errno.
86745
86746         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86747         quotearg_char): Use SIZE_MAX rather than
86748         (size_t) -1 when we are talking about "infinity".
86749
86750         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86751
86752 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86753
86754         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86755         hint that one should use `if (! x) abort ();' rather than `assert
86756         (x);', and anyway it's one less thing to worry about configuring.
86757         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86758         hash_rehash, hash_insert): Use abort rather than assert.
86759
86760 2002-11-22  Bruno Haible  <bruno@clisp.org>
86761
86762         * lib/safe-read.h: Assume C89. Add comments.
86763         (safe_read): Change return type to size_t.
86764         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86765         byte counts > SSIZE_MAX correctly.
86766         * lib/safe-write.h: New file.
86767         * lib/safe-write.c: New file.
86768         * lib/full-read.h: New file.
86769         * lib/full-read.c: New file.
86770         * lib/full-write.h: Assume C89. Add comments.
86771         * lib/full-write.c: Include safe-write.h.
86772         (full_write): Rewritten to use safe_write.
86773         Suggested by Jim Meyering and Paul Eggert.
86774
86775 2002-11-21  Jim Meyering  <jim@meyering.net>
86776
86777         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86778
86779         Merge in changes from the coreutils.
86780
86781         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86782         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86783         <stdint.h>.
86784         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86785         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86786         int.  Work more efficiently if X is the same width as uintmax_t.
86787         Do not compare X to -1, to avoid bogus compiler warning.
86788         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86789         Don't assume that f_frsize and f_bsize are the same type.
86790
86791         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86792         warning on FreeBSD.
86793
86794         * lib/makepath.c (make_path): Restore umask *before* creating the final
86795         component.
86796         (make_path): Minor reformatting.
86797
86798         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86799         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86800         HAVE_MALLOC/HAVE_REALLOC.
86801
86802         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86803         dummy ones.  At least on GNU/Linux systems, `auto' means something
86804         else.
86805         From Michael Stone.
86806
86807 2002-11-21  Bruno Haible  <bruno@clisp.org>
86808
86809         Remove case insensitive option matching.
86810         * lib/argmatch.h (argcasematch): Remove declaration.
86811         (ARGCASEMATCH): Remove macro.
86812         (__xargmatch_internal): Remove case_sensitive argument.
86813         (XARGMATCH): Update.
86814         (XARGCASEMATCH): Remove macro.
86815         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86816         case_sensitive argument.
86817         (argcasematch): Remove function.
86818         (__xargmatch_internal): Remove case_sensitive argument.
86819         (main): Use XARGMATCH instead of XARGCASEMATCH.
86820
86821         * lib/xmalloc.c: Change compile-time error message. Add comment about
86822         required autoconf version.
86823
86824 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86825
86826         Merge argmatch cleanups from Bison.  Assume C89.
86827
86828         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86829         Include stdlib.h, for EXIT_FAILURE.
86830         Always include <string.h>, since we assume C89.
86831         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86832         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86833         Include <stddef.h> instead, since it's all we need for size_t.
86834         (PARAMS): Remove.  All uses removed.
86835         (ARRAY_CARDINALITY): Do not bother to #undef.
86836         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86837         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86838         Remove unnecessary parentheses.
86839         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86840         Insert necessary parentheses.
86841         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86842         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86843
86844 2002-11-19  Bruno Haible  <bruno@clisp.org>
86845
86846         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86847         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86848
86849         * lib/mbswidth.h (PARAMS): Remove macro.
86850         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86851         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86852
86853         * lib/gcd.h (PARAMS): Remove macro.
86854         (gcd): Use ANSI C function declarations.
86855         * lib/gcd.c (gcd): Likewise.
86856
86857 2002-11-15  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/strcspn.c: Include <stddef.h>.
86860         (strcspn): Use ANSI C function declaration. Change return type to
86861         size_t. Use NULL.
86862         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86863         (strpbrk): Use NULL.
86864         * lib/strpbrk.h (PARAMS): Remove macro.
86865         (strpbrk): Use ANSI C function declaration.
86866         * lib/strstr.c: Don't include <sys/types.h>.
86867         * lib/strstr.h (PARAMS): Remove macro.
86868         (strstr): Use ANSI C function declarations.
86869
86870 2002-11-14  Karl Berry  <karl@gnu.org>
86871
86872         * config/mkinstalldirs: `do' on separate line, instead of
86873         `for var; do'.
86874
86875 2002-11-06  Bruno Haible  <bruno@clisp.org>
86876
86877         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86878         * lib/gcd.c (gcd): Likewise.
86879
86880 2002-11-05  Bruno Haible  <bruno@clisp.org>
86881
86882         * lib/gcd.h: New file, from gettext-0.11.5.
86883         * lib/gcd.c: New file, from gettext-0.11.5.
86884
86885 2002-11-05  Bruno Haible  <bruno@clisp.org>
86886
86887         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86888         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86889         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86890         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86891
86892         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86893         <libintl.h>.
86894         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86895         <libintl.h>.
86896
86897         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86898         * lib/human.c: Include gettext.h instead of <libintl.h>.
86899         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86900         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86901         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86902         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86903         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86904         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86905         (textdomain): Remove definition.
86906         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86907
86908         * lib/long-options.c: Remove include of <libintl.h> and definition of
86909         _.
86910         * lib/same.c: Remove include of <libintl.h> and definition of _.
86911
86912 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86913
86914         * lib/config.charset: A few additions for Solaris.
86915
86916 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86917
86918         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86919         * lib/localcharset.c (locale_charset): Declare as extern "C".
86920
86921 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86922
86923         * lib/config.charset: msdos in uk_UA uses CP1125.
86924
86925 2002-11-04  Bruno Haible  <bruno@clisp.org>
86926
86927         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86928         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86929         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86930         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86931         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86932
86933 2002-11-04  Bruno Haible  <bruno@clisp.org>
86934
86935         * lib/localcharset.c (locale_charset): Don't return an empty string.
86936
86937 2002-11-04  Bruno Haible  <bruno@clisp.org>
86938
86939         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86940         aliases.
86941
86942 2002-11-04  Bruno Haible  <bruno@clisp.org>
86943
86944         * lib/config.charset: Update for newest glibc. Add canonical names
86945         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86946
86947 2002-11-04  Bruno Haible  <bruno@clisp.org>
86948
86949         * lib/config.charset: Add support for NetBSD.
86950
86951 2002-11-04  Bruno Haible  <bruno@clisp.org>
86952
86953         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86954
86955 2002-11-01  Bruno Haible  <bruno@clisp.org>
86956
86957         * configure.in: Add AC_CONFIG_AUX_DIR call.
86958         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86959         test/Makefile.
86960         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86961
86962 2002-09-28  Karl Berry  <karl@gnu.org>
86963
86964         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86965         installed automake until the next release, since changes have been
86966         made.
86967
86968 2002-09-25  Karl Berry  <karl@gnu.org>
86969
86970         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86971         * lib/getopt*: copy from libc/posix.
86972         * lib/gettext.h: copy from gettext.
86973         * lib/.cppi-disable: add strdup.c, gettext.h.
86974
86975 2002-09-25  Karl Berry  <karl@gnu.org>
86976
86977         * config/srclist.txt: enable gettext.h check.
86978         * config/config.{guess,sub}: update from prep.
86979         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86980                 from automake 1.6.3.
86981         See srclist*.
86982
86983 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86984
86985         * regex.c (PATFETCH): Remove the translating fetch.
86986         (PATFETCH_RAW): Rename to PATFETCH.
86987         (set_image_of_range): New fun.
86988         (SET_RANGE_TABLE_WORK_AREA): Use it.
86989         (regex_compile): Don't translate the pattern chars so eagerly.
86990         Only do it when inserting an `exactn' bytecode or when handling
86991         a char-range.
86992         (mutually_exclusive_p): Avoid empty statement.
86993
86994 2002-07-06  Jim Meyering  <meyering@lucent.com>
86995
86996         * m4/README: Don't mention Makefile.am.in.
86997         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86998
86999 2002-07-01  Jim Meyering  <meyering@lucent.com>
87000
87001         * lib/c-stack.c: Include sys/time.h.
87002         From Volker Borchert.
87003
87004 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87005
87006         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87007
87008 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87009
87010         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87011         New macro.  Use it uniformly instead of
87012         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87013         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87014         reported by Vin Shelton.
87015
87016 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87017
87018         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87019         Do not assume SA_SIGINFO behavior.
87020         Bug reported by Jim Meyering on NetBSD 1.5.2.
87021
87022 2002-06-22  Jim Meyering  <meyering@lucent.com>
87023
87024         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87026
87027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87028         now that configure.ac uses AC_GNU_SOURCE.
87029         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87030         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87031
87032         Update to latest tools.  Suggestions from Paul Eggert.
87033         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87034         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87035         * m4/fnmatch.m4: Likewise.
87036         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87037         to AC_HEADER_STDBOOL
87038
87039 2002-06-22  Jim Meyering  <meyering@lucent.com>
87040
87041         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87042         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87043
87044 2002-06-22  Jim Meyering  <meyering@lucent.com>
87045
87046         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87047
87048         * lib/exitfail.c, exitfail.h: Likewise.
87049         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87050
87051         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87052         of fnmatch.h.
87053         (EXTRA_DIST): Add fnmatch_loop.c.
87054         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87055
87056         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87057         * lib/fnmatch.c: Update from diffutils-2.8.2.
87058         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87059         * lib/fnmatch.h: Remove file.
87060
87061 2002-06-21  Jim Meyering  <meyering@lucent.com>
87062
87063         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87064         * m4/mbrtowc.m4: Likewise.
87065
87066         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87067         * m4/mbswidth.m4: Reflect name change:
87068         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87069         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87070
87071         * m4/lib-link.m4: Update from gettext-0.11.2.
87072         * m4/gettext.m4: Likewise.
87073
87074         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87075         From Alfred M. Szmidt.
87076
87077 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87078
87079         * lib/file-type.h: Report an error if neither S_ISREG nor
87080         S_IFREG is defined, instead of using a test specific to glibc
87081         2.2.  This should be safe, since POSIX requires S_ISREG and
87082         Unix Version 7 had S_IFREG.  We don't need to check for
87083         <sys/types.h> since we don't use any symbols that it defines.
87084
87085 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87086
87087         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87088         $@-t, so that each temporary file name is unique and valid in the first
87089         8 characters, for operation under DOS.
87090
87091 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87092
87093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87094
87095 2002-06-15  Jim Meyering  <meyering@lucent.com>
87096
87097         Work even with DJGPP 2.03, which lacks support for symlinks.
87098         From Richard Dawe.
87099         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87100         is defined.
87101         * lib/lchown.c (S_ISLNK): Likewise.
87102
87103 2002-06-15  Jim Meyering  <meyering@lucent.com>
87104
87105         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87106         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87107         have been included before this file.
87108
87109 2002-06-14  Jim Meyering  <meyering@lucent.com>
87110
87111         * lib/file-type.h: Use the version from diffutils-2.8.2.
87112         * lib/file-type.c: Likewise.
87113
87114 2002-06-07  Jim Meyering  <meyering@lucent.com>
87115
87116         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87117         They're needed at least for NetBSD 1.5.2.
87118         ($statxfs_includes): Include those same headers.
87119         ($statxfs_includes): Include sys/vfs.h if available.
87120         ($statxfs_includes): Likewise for sys/statvfs.h.
87121         Check for the following members in both structs statfs and statvfs:
87122         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87123
87124 2002-06-01  Jim Meyering  <meyering@lucent.com>
87125
87126         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87127         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87128
87129 2002-05-28  Jim Meyering  <meyering@lucent.com>
87130
87131         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87132         Reported by Volker Borchert.
87133
87134 2002-05-27  Jim Meyering  <meyering@lucent.com>
87135
87136         Fix a problem seen only on nonconforming systems whereby ls.c's
87137         use of localtime, and then of gettimeofday would cause trouble:
87138         the localtime call used to initialize rpl_gettimeofday's save
87139         mechanism would clobber ls's current local time information so
87140         that in any long listing the first file would always be listed
87141         with date 1970-01-01.  Analysis by Volker Borchert.
87142
87143         * lib/gettimeofday.c (localtime): Undefine.
87144         (rpl_localtime): New function.
87145
87146 2002-05-27  Jim Meyering  <meyering@lucent.com>
87147
87148         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87149         localtime.
87150
87151         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87152         use the replacement function; it wouldn't resolve at link time.
87153         Reported by Volker Borchert.
87154
87155 2002-05-22  Jim Meyering  <meyering@lucent.com>
87156
87157         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87158         file-type.h.
87159         * lib/file-type.h: New file.
87160         * lib/file-type.c (file_type): New file/function.  Extracted from
87161         diffutils.
87162
87163 2002-04-30  Jim Meyering  <meyering@lucent.com>
87164
87165         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87166
87167 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87168
87169         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87170
87171 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87172
87173         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87174         Do not check for alloca.h (no longer used) or stdbool.h (was never
87175         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87176
87177 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87178
87179         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87180
87181 2002-04-29  Jim Meyering  <meyering@lucent.com>
87182
87183         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87184         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87185         Use AC_FUNC_STRNLEN here instead.
87186
87187         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87188         With autoconf-2.53a, it's part of AC_PROG_CC.
87189
87190 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87191
87192         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87194
87195 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87196
87197         * lib/sig2str.h, lib/sig2str.c: New files.
87198         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87199
87200 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87201
87202         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87203         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87204         of 127, since 64 is the largest conceivable number for ancient
87205         nonstandard hosts.
87206         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87207
87208 2002-04-28  Jim Meyering  <meyering@lucent.com>
87209
87210         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87211
87212 2002-04-24  Jim Meyering  <meyering@lucent.com>
87213
87214         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87215         (jm_PREREQ): Use it.
87216
87217         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87218         mach/mach.h fcntl.h.
87219         Check for this function: setlocale.
87220
87221 2002-04-24  Jim Meyering  <meyering@lucent.com>
87222
87223         * lib/gettext.h: New file, from Gettext.
87224         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87225         (libfetish_a_SOURCES): Add gettext.h.
87226
87227 2002-04-16  Jim Meyering  <meyering@lucent.com>
87228
87229         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87230         ut_pid, ut_id, ut_exit.
87231
87232 2002-04-16  Jim Meyering  <meyering@lucent.com>
87233
87234         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87235         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87236         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87237
87238 2002-04-12  Jim Meyering  <meyering@lucent.com>
87239
87240         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87241         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87242         existence of the getmntinfo function.  Needed for Darwin 5.3.
87243
87244         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87245         This is necessary at least on Darwin 5.3.
87246
87247         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87248         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87249         strnlen.o in the library, and that makes some versions of ranlib
87250         object.
87251
87252 2002-04-12  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87255
87256 2002-04-09  Jim Meyering  <meyering@lucent.com>
87257
87258         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87259         to be more precise.  Rather than saying we're checking whether the
87260         function `works', say what we're testing.
87261         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87262         Reported by Bruno Haible.
87263
87264 2002-03-10  Jim Meyering  <meyering@lucent.com>
87265
87266         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87267         Suggestion from Santiago Vila.
87268
87269 2002-03-08  Jim Meyering  <meyering@lucent.com>
87270
87271         * lib/rename.c: Mention that this wrapper is needed also on
87272         mips-dec-ultrix4.4 systems.
87273
87274 2002-03-02  Jim Meyering  <meyering@lucent.com>
87275
87276         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87277         not HAVE_CLOCK_SETTIME.
87278
87279 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87280
87281         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87282         Check for clock_settime.
87283
87284 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87285
87286         * lib/nanosleep.h: Rename to....
87287         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87288
87289         * lib/gettime.c: New file.
87290         * lib/settime.c: New file.
87291         * lib/stime.c: Remove.
87292
87293         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87294         timespec.h.  Remove nanosleep.h.
87295
87296 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87297
87298         * m4/acl.m4: New file.
87299         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87300         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87301
87302 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87303
87304         * lib/acl.c, lib/acl.h: New files.
87305         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87306
87307 2002-02-24  Jim Meyering  <meyering@lucent.com>
87308
87309         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87310         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87311         cause trouble.  Reported by Nelson Beebe.
87312
87313 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87314
87315         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87316         compilers that don't know that xalloc_die never returns.
87317
87318 2002-02-20  Jim Meyering  <meyering@lucent.com>
87319
87320         * lib/getdate.c: Regenerate using bison-1.33.
87321
87322 2002-02-17  Jim Meyering  <meyering@lucent.com>
87323
87324         * config/config.guess (main): Don't use `head -1'; it's no longer
87325         portable. Use `sed 1q' instead.
87326
87327 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87328
87329         * m4/codeset.m4: Upgrade to gettext-0.11.
87330         * m4/gettext.m4: Upgrade to gettext-0.11.
87331         * m4/glibc21.m4: Upgrade to gettext-0.11.
87332         * m4/iconv.m4: Upgrade to gettext-0.11.
87333         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87334         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87335         * m4/lib-ld.m4: New file, from gettext-0.11.
87336         * m4/lib-link.m4: New file, from gettext-0.11.
87337         * m4/lib-prefix.m4: New file, from gettext-0.11.
87338         * m4/progtest.m4: Upgrade to gettext-0.11.
87339
87340 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87341
87342         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87343         (jm_PREREQ): Use it.
87344
87345 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87346
87347         * lib/posixver.c, lib/posixver.h: New files.
87348         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87349
87350 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87351             Bruno Haible  <bruno@clisp.org>
87352
87353         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87354         (fwrite_success_callback): New declaration.
87355         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87356         print_unicode_char. Call failure callback instead of error.
87357         (fwrite_success_callback): New function.
87358         (exit_failure_callback): New function.
87359         (fallback_failure_callback): New function.
87360         (print_unicode_char): Call unicode_to_mb.
87361
87362 2002-01-26  Jim Meyering  <meyering@lucent.com>
87363
87364         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87365         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87366
87367 2002-01-26  Jim Meyering  <meyering@lucent.com>
87368
87369         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87370
87371 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87372
87373         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87374
87375 2002-01-22  Jim Meyering  <meyering@lucent.com>
87376
87377         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87378         Otherwise, some versions of automake would omit the rule that makes
87379         Makefile from Makefile.in.
87380
87381 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87382
87383         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87384         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87385         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87386         (memcoll): Set errno to zero if there is no error.
87387
87388         * lib/quotearg.c (quotearg_buffer_restyled):
87389         Fix bug with quoting buffers containing NUL when backslashing escapes.
87390         This bug was exposed by the other changes in this patch.
87391         (quotearg_n_options): New arg ARGSIZE.
87392         All callers changed.
87393         (quoting_options_from_style): New function.
87394         (quotearg_n_style): Use it.
87395         (quotearg_n_style_mem): New function.
87396
87397         * lib/quotearg.h (quotearg_n_style_mem): New function.
87398
87399 2002-01-19  Jim Meyering  <meyering@lucent.com>
87400
87401         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87402         Remove useless quotes: DF_PROG="df".
87403         * m4/strnlen.m4: New file.
87404
87405 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87406
87407         * lib/backupfile.c (ISDIGIT): Comment fix.
87408         * lib/getdate.y (ISDIGIT): Likewise.
87409         * lib/posixtm.c (ISDIGIT, year): Likewise.
87410         * lib/strverscmp.c (ISDIGIT): Likewise.
87411         * lib/userspec.c (ISDIGIT): Likewise.
87412
87413 2002-01-16  Jim Meyering  <meyering@lucent.com>
87414
87415         * lib/getdate.y: Add three semicolons, each just before a closing
87416         brace. Bison (as of version 1.31) no longer papers over that mistake.
87417
87418 2002-01-05  Jim Meyering  <meyering@lucent.com>
87419
87420         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87421
87422 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87423
87424         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87425         not silently exit merely because the output buffer happens to
87426         have nothing pending.
87427
87428 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87429
87430         See the big note in ../ChangeLog.
87431         * lib/human.c (suffixes): Prefer K to k for 1024.
87432         (generate_suffix_backwards): New function.
87433         (human_readable_inexact): Use it.
87434         * lib/xstrtol.c (__xstrtol): If there is no number but there
87435         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87436         Accept 'K' as well as 'k'.
87437
87438 2001-12-15  Jim Meyering  <meyering@lucent.com>
87439
87440         * lib/regex.h (__restrict_arr): Update from libc.
87441
87442         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87443         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87444         (STREQ): Define.
87445
87446 2001-12-14  Jim Meyering  <meyering@lucent.com>
87447
87448         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87449         Suggestion from Bruno Haible.
87450
87451 2001-12-10  Jim Meyering  <meyering@lucent.com>
87452
87453         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87454         xrealloc, Instead, include "xalloc.h".
87455         (initbuffer): Don't cast xmalloc return value to char*.
87456         (readline): Reword comment.
87457         Don't cast xrealloc return value to char*
87458         Return NULL, not 0.
87459
87460 2001-12-09  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87463         about `signed and unsigned type in conditional expression'.
87464         * lib/posixtm.c (posix_time_parse): Likewise.
87465
87466         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87467
87468         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87469         to avoid a pedantic warning.
87470
87471         * lib/getstr.c: Don't include assert.h.
87472         (getstr): Remove warning-evoking assertions.
87473         Return -1 if offset parameter is out of bounds.
87474         Change the type of a local from int to size_t.
87475
87476         * lib/strftime.c (my_strftime_localtime_r): Include this function
87477         definition in the `#if ! HAVE_TM_GMTOFF' block.
87478
87479         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87480         Include xalloc.h instead.
87481
87482 2001-12-02  Jim Meyering  <meyering@lucent.com>
87483
87484         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87485         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87486         included.
87487
87488         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87489         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87490
87491 2001-11-30  Akim Demaille  <akim@epita.fr>
87492
87493         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87494         before being defined.
87495
87496 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87497
87498         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87499         First arg is int, not unsigned.
87500         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87501         (SIZE_MAX, UINT_MAX): New macros.
87502         (quotearg_n_options): Abort if N is negative.
87503         Avoid overflow check on hosts where size_t is 64 bits and int
87504         is 32 bits, as overflow is impossible there.
87505         Fix off-by-one typo that caused unnecessary reallocation.
87506
87507 2001-11-27  Jim Meyering  <meyering@lucent.com>
87508
87509         * lib/tempname.c: Merge with version from libc.
87510         * lib/regex.c: Likewise.
87511
87512         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87513         systems for which STDC_HEADERS is 0, it was not included, resulting in
87514         a warning about an integer-to-pointer conversion problem with getenv.
87515         Reported by Volker Borchert.
87516
87517 2001-11-26  Jim Meyering  <meyering@lucent.com>
87518
87519         * lib/gtod.h: Remove file.
87520         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87521         * lib/gettimeofday.c: Don't include gtod.h.
87522         (GTOD_init): Remove function.
87523         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87524         Suggestion from Volker Borchert.
87525
87526 2001-11-23  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87529         it.
87530         * lib/hash.c (struct hash_table): Define it here instead.
87531
87532 2001-11-22  Jim Meyering  <meyering@lucent.com>
87533
87534         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87535
87536 2001-11-20  Jim Meyering  <meyering@lucent.com>
87537
87538         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87539         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87540
87541 2001-11-19  Jim Meyering  <meyering@lucent.com>
87542
87543         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87544         directory.  Use "conftestXXXXXX" as the template.
87545         Suggestion from Paul Eggert.
87546
87547         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87548         immediately, so the test doesn't mistakenly hit the max-open-files
87549         limit.
87550
87551 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87552
87553         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87554         (TEMPORARIES): New macro.
87555         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87556         removes an artificial limitation (e.g. HP-UX 10.20, where
87557         TMP_MAX is 17576).
87558
87559 2001-11-18  Jim Meyering  <meyering@lucent.com>
87560
87561         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87562
87563 2001-11-18  Jim Meyering  <meyering@lucent.com>
87564
87565         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87566         on SunOS 4.
87567
87568         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87569         files will be created before anything else.
87570
87571 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87572
87573         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87574         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87575
87576 2001-11-17  Jim Meyering  <meyering@lucent.com>
87577
87578         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87579         Prompted by a report from Bob Proulx.
87580
87581         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87582         Instead, require UTILS_FUNC_MKSTEMP.
87583
87584 2001-11-17  Jim Meyering  <meyering@lucent.com>
87585
87586         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87587         Now, that's done as part of AC_FUNC_STRTOD.
87588
87589 2001-11-17  Jim Meyering  <meyering@lucent.com>
87590
87591         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87592         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87593         rather than group writable.  Patch by Juan F. Codagnone.
87594
87595         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87596         xrealloc, Instead, include "xalloc.h".
87597
87598         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87599         Remove explicit declarations of xmalloc, xrealloc,
87600         and xstrdup.  Instead, include "xalloc.h".
87601
87602         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87603         unlocked-io.h.
87604         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87605         Likewise.
87606         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87607
87608         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87609         Reported by Padraig Brady.
87610
87611         * lib/mkstemp.c: #undef mkstemp.
87612         Include config.h.
87613         (rpl_mkstemp): Rename from mkstemp.
87614         Protoize.
87615
87616 2001-11-16  Jim Meyering  <meyering@lucent.com>
87617
87618         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87619         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87620         determine the amount of total physical memory, use pstat_getstatic.
87621         HPUX-11 doesn't define _SC_PHYS_PAGES.
87622         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87623         If sysconf couldn't be used to determine the amount of available
87624         physical memory, use both pstat_getstatic and pstat_getdynamic.
87625         Based on a patch from Bob Proulx.
87626
87627 2001-11-10  Jim Meyering  <meyering@lucent.com>
87628
87629         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87630         (jm_PREREQ): Use it.
87631
87632 2001-11-09  Jim Meyering  <meyering@lucent.com>
87633
87634         * m4/jm-macros.m4: Require autoconf-2.52f.
87635         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87636         Use these AC_-prefixed names, not the AM_-prefixed ones.
87637
87638         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87639
87640 2001-11-05  Jim Meyering  <meyering@lucent.com>
87641
87642         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87643
87644 2001-11-04  Jim Meyering  <meyering@lucent.com>
87645
87646         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87647         $DEFS.
87648
87649 2001-11-03  Jim Meyering  <meyering@lucent.com>
87650
87651         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87652         of AC_DEFUN.
87653
87654         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87655         know the name of the variable in the macro definition.
87656
87657 2001-11-03  Jim Meyering  <meyering@lucent.com>
87658
87659         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87660         in argmatch_to_argument call.
87661
87662         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87663         argument.
87664
87665         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87666         e.g., a fault due to an attempt to free a NULL pointer.
87667
87668 2001-11-01  Jim Meyering  <meyering@lucent.com>
87669
87670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87671         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87672
87673 2001-11-01  Jim Meyering  <meyering@lucent.com>
87674
87675         * lib/dirfd.c, lib/dirfd.h: New files.
87676         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87677
87678         * lib/hash.c (hash_print) [TESTING]: Clean up.
87679
87680 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87681
87682         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87683         to avoid a warning if -Wall.
87684
87685 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87686
87687         * README: New file
87688         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87689         (per RMS's instructions, this is now the canonical source)
87690         * lgpl/, gpl/: New directories.
87691
87692 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87693
87694         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87695
87696 2001-10-21  Jim Meyering  <meyering@lucent.com>
87697
87698         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87699         this code would end up calling gettext even in packages built
87700         with --disable-nls.
87701         * lib/getopt.c (_): Likewise.
87702         * lib/regex.c (_): Likewise.
87703
87704 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87705
87706         * m4/error.m4 (jm_PREREQ_ERROR):
87707         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87708         AC_FUNC_STRERROR_R does that.
87709         Check for strerror declaration.
87710
87711         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87712         are supposed to have them these days.
87713         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87714         Merge changes from latest Autoconf CVS.
87715         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87716         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87717         POSIX decided to standardize on the int flavor of strerror_r.
87718
87719 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87720
87721         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87722         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87723         Use strerror_r that is only a macro, even if it is not a function.
87724         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87725         (private_strerror): Use prototypes, not old-style function definition.
87726         (print_errno_message): New function.
87727         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87728         char*-flavored one.
87729         (error_tail, error, error_at_line): Use it.
87730
87731 2001-10-11  Jim Meyering  <meyering@lucent.com>
87732
87733         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87734         and quote_n (1, ... to avoid clobbering a buffer.
87735
87736 2001-10-05  Jim Meyering  <meyering@lucent.com>
87737
87738         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87739         hash-pjw.h.
87740         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87741         * lib/hash-pjw.h: New file.
87742
87743 2001-09-30  Jim Meyering  <meyering@lucent.com>
87744
87745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87746         `struct fsstat' has the `f_fstypename' member.
87747         Use that to define FS_TYPE, which is now used to make
87748         the getfsstat link test tighter.
87749
87750 2001-09-30  Jim Meyering  <meyering@lucent.com>
87751
87752         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87753         Include <sys/ucred.h>, for Apple Darwin.
87754         Include sys/mount.h and sys/fs_types.h only if available.
87755         (FS_TYPE): Define.
87756         (read_filesystem_list): Use FS_TYPE.
87757
87758 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87759
87760         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87761         a boolean context.
87762
87763 2001-09-29  Jim Meyering  <meyering@lucent.com>
87764
87765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87766         [one-argument getmntent function]): Include stdio.h before mntent.h.
87767         SunOS 4.1.x needs it for the declaration of `FILE'.
87768         Patch by Volker Borchert.
87769
87770         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87771         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87772         sys/fs_types.h, and make the link-test for getfsstat guard #include
87773         directives with appropriate #if HAVE_*_H tests so that we can
87774         detect getfsstat on Apple Darwin1.3.7 systems.
87775         Reported by Nelson Beebe.
87776         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87777
87778 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87779
87780         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87781         #defines strtoimax.  Also treat the other strto* functions
87782         like strtoimax.
87783
87784         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87785         Check for strtoul and strtoumax,
87786         as those declarations are made even in the signed case.
87787         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87788         Likewise, for strtol and strtoimax.
87789
87790 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87791
87792         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87793         #defines strtoimax.  Also treat the other strto* functions
87794         like strtoimax.
87795
87796         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87797         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87798         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87799
87800 2001-09-26  Jim Meyering  <meyering@lucent.com>
87801
87802         Most macros in unlocked-io.h had the wrong number of arguments.
87803         * lib/gen-uio: New script.
87804         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87805         * lib/unlocked-io.hin: Remove file.
87806         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87807         rather than trying to embed it here.
87808         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87809         Reported by Padraig Brady.
87810
87811 2001-09-25  Volker Borchert  <bt@teknon.de>
87812
87813         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87814         `result'.
87815
87816 2001-09-24  Jim Meyering  <meyering@lucent.com>
87817
87818         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87819
87820 2001-09-23  Jim Meyering  <meyering@lucent.com>
87821
87822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87823         instead of the mere test for existence of mntent.h.  The latter
87824         would get a false-positive on AIX 3.4 systems.
87825         In the outer getmntent if-block, don't die if neither of the getmntent
87826         tests succeeds.  Instead, just fall through and continue with the
87827         remaining tests.
87828
87829 2001-09-23  Jim Meyering  <meyering@lucent.com>
87830
87831         * lib/mountlist.c: Remove useless parentheses in #if directives.
87832         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87833         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87834
87835 2001-09-22  Jim Meyering  <meyering@lucent.com>
87836
87837         * m4/gettext.m4: New file.  From gettext.
87838         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87839         * m4/progtest.m4: Likewise
87840         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87841         * m4/glibc21.m4: Likewise.
87842
87843         * m4/libintl.m4: Remove.  No longer used.
87844
87845 2001-09-22  Jim Meyering  <meyering@lucent.com>
87846
87847         * lib/localcharset.c: Update from latest gettext.
87848         * lib/config.charset: Likewise.
87849
87850 2001-09-20  Jim Meyering  <meyering@lucent.com>
87851
87852         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87853         strtoimax.
87854         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87855         strtoumax.
87856
87857 2001-09-20  Jim Meyering  <meyering@lucent.com>
87858
87859         * lib/xstrtol.c (strtoimax): Guard declaration with
87860         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87861         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87862         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87863         (strtoumax): Likewise, for completeness (it wasn't necessary).
87864
87865 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87866
87867         * lib/strtoimax.c (HAVE_LONG_LONG):
87868         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87869         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87870         to work around bug in IBM C compiler.
87871
87872 2001-09-17  Jim Meyering  <meyering@lucent.com>
87873
87874         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87875         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87876         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87877         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87878         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87879         whenever the right hand side need not be expanded by the shell.
87880
87881 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87882
87883         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87884         library.  It's not correct, as some older glibcs are buggy.
87885         fnmatch wasn't fixed until glibc 2.2.
87886
87887         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87888         special shell magic here.
87889
87890 2001-09-16  Jim Meyering  <meyering@lucent.com>
87891
87892         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87893         * m4/jm-macros.m4: Require it.
87894
87895 2001-09-16  Jim Meyering  <meyering@lucent.com>
87896
87897         * lib/mkdir.c: New file.
87898
87899 2001-09-15  Jim Meyering  <meyering@lucent.com>
87900
87901         * m4/jm-macros.m4: Check for help2man.
87902
87903 2001-09-11  Jim Meyering  <meyering@lucent.com>
87904
87905         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87906         The body, by Paul Eggert, was moved here from configure.in.
87907         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87908
87909 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87910
87911         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87912         (jm_PREREQ): Use it.
87913
87914 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87915
87916         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87917         Use ssize_t, not int, to store result of readlink.
87918         Check for ssize_t overflow as well as size_t overflow,
87919         as POSIX says the result of readlink is implementation-defined
87920         when ssize_t overflows.
87921         Remove unnecessary cast to char*.
87922         Use free+malloc instead of realloc, as the storage doesn't need
87923         to be preserved and it's clearer and can be more efficient that way.
87924         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87925         * lib/xreadlink.h (xreadlink): Update prototype.
87926
87927 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87928
87929         * lib/xgetcwd.c: Revert some of the previous change; intead,
87930         fix the HAVE_GETCWD_NULL code to behave more like the
87931         !HAVE_GETCWD_NULL code used to.
87932
87933         Include "xalloc.h".
87934         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87935         invoke xalloc_die.
87936
87937 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87938
87939         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87940         sys/param.h, as pathmax.h includes them.
87941
87942 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87943
87944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87945         (jm_PREREQ_XGETCWD): New macro.
87946
87947         * m4/getcwd.m4: New file.
87948
87949 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87950
87951         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87952         like the HAVE_GETCWD_NULL code.
87953         Include pathmax.h if not HAVE_GETCWD.
87954         Do not include xalloc.h.
87955         (INITIAL_BUFFER_SIZE): New symbol.
87956         Do not use xmalloc / xrealloc, since the caller is responsible for
87957         handling errors.  Preserve errno around `free' during failure.
87958         Do not overrun buffer when using getwd.
87959
87960 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87961
87962         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87963         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87964         getcwd (NULL, 0).
87965
87966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87967
87968         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87969         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87970         spotted by Jim Meyering.
87971
87972 2001-09-03  Jim Meyering  <meyering@lucent.com>
87973
87974         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87975         failure.
87976
87977 2001-09-02  Jim Meyering  <meyering@lucent.com>
87978
87979         * lib/error.c: Update from GNU libc.
87980
87981 2001-09-01  Jim Meyering  <meyering@lucent.com>
87982
87983         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87984         Used by df.
87985
87986 2001-09-01  Jim Meyering  <meyering@lucent.com>
87987
87988         * lib/xreadlink.c: New file.
87989         * lib/xreadlink.h: New file.
87990         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87991         xreadlink.h.
87992
87993         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87994         doesn't conflict with sparc Solaris 7's definition in
87995         /usr/include/sys/int_types.h.
87996
87997         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87998         files.
87999         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88000         and strncasecmp as r-values.  Unixware didn't have declarations.
88001
88002 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88003
88004         * lib/xstrtol.h: Add copyright notice.
88005         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88006         LONGINT_INVALID_SUFFIX_CHAR.
88007
88008 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88009
88010         * lib/xstrtol.c (strtoimax): New decl.
88011
88012 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88013
88014         * lib/xgetcwd.c: Don't include pathmax.h.
88015         Include stdlib.h and unistd.h if available.
88016         Include xalloc.h.
88017         (xmalloc, xstrdup, free): Remove decls.
88018         (xgetcwd): Don't assume sizes fit in unsigned.
88019         Check for overflow when computing sizes.
88020         Simplify reallocation code.
88021
88022 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88023
88024         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88025         a directory's st_size can have an arbitrary value, so the old
88026         usage could waste an arbitrary amount of memory.  All uses
88027         changed.
88028         * lib/savedir.h: Update prototype.
88029
88030 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88031
88032         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88033
88034         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88035         old strtoimax.c.
88036
88037         Also, make the following further changes to make this file's
88038         configuration more similar to that of strtol.c:
88039         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88040         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88041         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88042         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88043         changed to signed values.
88044
88045         And make the following changes as well:
88046         Fix copyright notice, as 1999 was missing.
88047         (verify): New macro.
88048         (strtoimax): Check sizes at compile-time, not run-time.
88049         Prefer strtol to strtoll if both work.
88050         (main): Remove; it was not that useful and was a pain to maintain.
88051
88052         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88053
88054 2001-08-31  Jim Meyering  <meyering@lucent.com>
88055
88056         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88057         Use an initial, malloc'd, buffer of length 128 rather than
88058         a statically allocated one of length 1024.
88059
88060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88061
88062         Simplify code, partly by assuming autoconf 2.52 semantics.
88063
88064         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88065
88066         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88067         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88068         All uses removed.
88069         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88070         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88071         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88072         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88073         jm_AC_HEADER_INTTYPES_H.
88074         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88075
88076         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88077
88078         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88079         Quote first arg of AC_DEFUN.
88080         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88081         since they are needed to parse the include file even if we need
88082         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88083         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88084         but with opposite signedness.
88085
88086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88087
88088         Merge 'exclude' changes from tar 1.13.22.
88089         This fixes one or two unlikely storage allocation overflow bugs,
88090         but doesn't change user-visible behavior otherwise.
88091
88092 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88093
88094         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88095         (jm_PREREQ_EXCLUDE): New macro.
88096
88097 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88098
88099         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88100         tm to be declared.
88101
88102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88103
88104         * lib/hash.c: Remove '2001' from copyright notice.
88105
88106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88107
88108         * lib/full-write.h: New file.
88109         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88110         * lib/full-write.c: Correct credits, as cccp.c no longer
88111         exists and anyway it was so heavily changed from the old cccp
88112         code as to be unrecognizable.  Include full-write.h.
88113         (full_write): Return size_t, with short writes meaning failure.
88114         All callers changed.  This fixes a bug with large buffers
88115         on 64-bit hosts.
88116         * lib/utime.c: Include full-write.h.
88117
88118 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88119
88120         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88121         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88122         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88123         Include if available.
88124         (<xalloc.h>): Include
88125         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88126         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88127         collide with FNM macros.
88128         (struct patopts): New struct.
88129         (struct exclude): Use it, as exclude patterns now come with options.
88130         (new_exclude): Support above changes.
88131         (new_exclude, add_exclude_file):
88132         Initial size must now be a power of two to simplify overflow checking.
88133         (free_exclude, fnmatch_no_wildcards): New function.
88134         (excluded_filename): No longer requires options arg, as the options
88135         are determined by add_exclude.  Now returns bool, not int.
88136         (excluded_filename, add_exclude):
88137         Add support for the fancy new exclusion options.
88138         (add_exclude, add_exclude_file): Now takes int options arg.
88139         Check for arithmetic overflow when computing sizes.
88140         (add_exclude_file): xrealloc might modify errno, so don't
88141         realloc until after errno might be used.
88142
88143         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88144         New macros.
88145         (free_exclude): New decl.
88146         (add_exclude, add_exclude_file): Now takes int options arg.
88147         (excluded_filename): No longer requires options arg, as the options
88148         are determined by add_exclude.  Now returns bool, not int.
88149
88150 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88151
88152         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88153
88154 2001-08-27  Jim Meyering  <meyering@lucent.com>
88155
88156         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88157
88158         * lib/version-etc.c (N_): Remove definition.
88159         Revert most of last change.
88160         Instead, simply don't mark the `Copyright...' string for translation.
88161         Based on advice from Paul Eggert.
88162
88163         * lib/strtoxmax.c: Tweak comment.
88164
88165 2001-08-26  Jim Meyering  <meyering@lucent.com>
88166
88167         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88168
88169         * m4/xstrtoimax.m4: New file.
88170         * m4/xstrtoumax.m4: Add comments explaining why we
88171         AC_REPLACE_FUNCS(strtol).
88172
88173 2001-08-26  Jim Meyering  <meyering@lucent.com>
88174
88175         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88176         of copyright with `%s' so translators don't get an untranslated
88177         message in 2002.
88178         (COPYRIGHT_YEAR): Define.
88179         (version_etc): Use fprintf rather than fputs.
88180         Suggestion from Ulrich Drepper.
88181
88182         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88183
88184         * lib/strtoll.c: New file, from GNU libc.
88185         * lib/xstrtoimax.c: New file.
88186
88187         * lib/xstrtol.h: Add xstrtoimax.
88188         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88189         * lib/strtoimax.c: New file.  Likewise, but first define
88190         STRTOUXMAX_SIGNED.
88191
88192         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88193         ...
88194         * lib/strtoxmax.c: ... then renamed to this.
88195
88196 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88197
88198         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88199         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88200         (jm_AC_TYPE_INTMAX_T): New macro.
88201         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88202
88203         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88204
88205         * m4/longlong.m4: Renamed from ulonglong.m4.
88206         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88207         * m4/uintmax_t.m4: Removed.
88208
88209 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88210
88211         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88212         Port to Solaris 8, where 'sed' requires a space after the 'r'
88213         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88214         Redirect output to $tmp just once.
88215
88216 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88217
88218         * lib/addext.c (<errno.h>): Include.
88219         (errno): Declare if not defined.
88220         (addext): Work correctly when pathconf returns -1 and leaves
88221         errno alone because there is no limit.  Also, work even if
88222         pathconf returns a value greater than SIZE_MAX.
88223
88224 2001-08-12  Jim Meyering  <meyering@lucent.com>
88225
88226         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88227         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88228         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88229         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88230         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88231         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88232         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88233         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88234         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88235         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88236         utime.m4, utimes.m4, xstrtoumax.m4:
88237         Quote the first argument in each use of AC_DEFUN.
88238
88239 2001-08-12  Jim Meyering  <meyering@lucent.com>
88240
88241         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88242         Simply `return getcwd (NULL, 0);'.
88243         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88244         Use 1300 as initial value for length, not PATH_MAX.
88245
88246         * lib/pathmax.h: Clean up cpp syntax.
88247
88248 2001-08-12  Jim Meyering  <meyering@lucent.com>
88249
88250         * lib/gettimeofday.c: New file.
88251         * lib/gtod.h: New file.
88252         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88253
88254 2001-08-05  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/jm-macros.m4: Require autoconf-2.52.
88257
88258 2001-08-04  Jim Meyering  <meyering@lucent.com>
88259
88260         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88261         stmt, to get in sync with glibc.
88262
88263 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88264
88265         The following changes are from gettext 0.10.39 as maintained by
88266         Bruno Haible.
88267
88268         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88269         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88270         with inverted sense.  All uses changed.
88271
88272         * lib/mbswidth.c: Don't include <limits.h>.
88273         Include <stdlib.h> and <string.h> unconditionally.
88274         (iswcntrl, mbsinit, ISCNTRL): New macros.
88275         (mbsnwidth): Use K&R style function declarations.
88276         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88277         can optimize it when MB_CUR_MAX == 1.
88278         The width of control characters is zero, not 1.
88279
88280 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88281
88282         The following changes are from gettext 0.10.39 as maintained by
88283         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88284
88285         * m4/codeset.m4: Upgrade to serial AM1.
88286         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88287         all uses changed.  Quote first arg of AC_DEFUN.
88288         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88289
88290         * m4/iconv.m4: Upgrade to serial AM2.
88291         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88292         Add --with-libconv-prefix.
88293         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88294         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88295         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88296         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88297         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88298
88299         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88300         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88301         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88302         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88303         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88304         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88305         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88306         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88307         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88308
88309         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88310         string.h any more.
88311
88312         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88313         not the default value.
88314
88315         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88316         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88317         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88318         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88319         Also check for iswcntrl, used for wcwidth fallback.
88320         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88321         to Autoconf 2.13.
88322
88323 2001-08-03  Jim Meyering  <meyering@lucent.com>
88324
88325         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88326         as it was in the original.  Reported by Paul Eggert.
88327
88328 2001-07-16  Jim Meyering  <meyering@lucent.com>
88329
88330         * m4/gettimeofday.m4: New file.
88331         Prompted by a report from Bernhard Baehr.
88332
88333 2001-07-15  Jim Meyering  <meyering@lucent.com>
88334
88335         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88336         stuff. Now it's in ../Makefile.cfg.
88337
88338 2001-07-15  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88341         (BUILT_SOURCES): Add unlocked-io.h.
88342         (io_functions): Define.
88343         (unlocked-io.h): New rule.
88344         (DISTCLEANFILES): Add unlocked-io.h.
88345         (all-local): Depend on unlocked-io.h, to ensure it is created.
88346
88347         * lib/unlocked-io.hin: New file
88348
88349         * lib/regex.c: Update from glibc.
88350
88351 2001-07-05  Jim Meyering  <meyering@lucent.com>
88352
88353         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88354         recommendation.
88355         (libfetish_a_SOURCES): Put all .h files here instead.
88356         Remove a thus-exposed (better checks in automake) duplicate and
88357         two unnecessary .h files.
88358
88359 2001-07-04  Jim Meyering  <meyering@lucent.com>
88360
88361         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88362         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88363         distcheck failure.
88364
88365 2001-07-02  Jim Meyering  <meyering@lucent.com>
88366
88367         The following changes were prompted by suggestions from Bruno Haible.
88368
88369         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88370         is now generated.
88371         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88372         definition of EXTRA_DIST.
88373         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88374         ensure that the generated file is created/updated whenever the list
88375         of $(unlocked_functions) is changed.
88376         (jm-glibc-io.m4): New rule.
88377         (unlocked-io.h): New rule -- currently unused.
88378
88379 2001-06-24  Jim Meyering  <meyering@lucent.com>
88380
88381         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88382         unmatched right bracket, rather than kludging it with an extra,
88383         falsely-matching quote in a comment.  Patch by Akim Demaille.
88384
88385 2001-06-11  Jim Meyering  <meyering@lucent.com>
88386
88387         * lib/regex.c: Update from GNU libc.
88388
88389 2001-05-27  Jim Meyering  <meyering@lucent.com>
88390
88391         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88392         Check for ut_type in struct utmp.
88393
88394 2001-05-27  Jim Meyering  <meyering@lucent.com>
88395
88396         * lib/readutmp.h (UT_TYPE): Define.
88397
88398 2001-05-24  Jim Meyering  <meyering@lucent.com>
88399
88400         * lib/argmatch.c: Include "quote.h".
88401         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88402         quote function.  Reported by Göran Uddeborg.
88403
88404 2001-05-22  Jim Meyering  <meyering@lucent.com>
88405
88406         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88407         now that we use the package-supplied version unconditionally.
88408         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88409
88410 2001-05-21  Jim Meyering  <meyering@lucent.com>
88411
88412         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88413         shell syntax errors.
88414
88415 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88416
88417         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88418
88419 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88420
88421         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88422         Don't bother to check library strftime, since
88423         we'll be using our own my_strftime function anyway.
88424         Define my_strftime instead of strftime.
88425
88426 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88427
88428         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88429         which is not yet declared.
88430
88431 2001-05-15  Jim Meyering  <meyering@lucent.com>
88432
88433         * m4/regex.m4: Use proper quoting so brackets appear in the test
88434         program.
88435         Reported by, and with help from, Bruno Haible.
88436
88437 2001-05-13  Jim Meyering  <meyering@lucent.com>
88438
88439         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88440         undefined.
88441
88442 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88443
88444         dirname code cleanup.  base_name now behaves more compatibly
88445         with POSIX basename when given file names that have trailing
88446         slashes, and similarly for dir_name.  Add new primitives
88447         base_len and dir_len.  Put the directory-name-related decls
88448         into dirname.h.
88449
88450         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88451         * lib/backupfile.c (base_name): Likewise.
88452         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88453         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88454         * lib/makepath.c (strip_trailing_slashes): Likewise.
88455         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88456         ISSLASH): Likewise.
88457         * lib/rename.c (strip_trailing_slashes): Likewise.
88458         * lib/same.c (base_name): Likewise.
88459         * lib/stripslash.c (ISSLASH): Likewise.
88460
88461         * lib/addext.c: Include <dirname.h> after size_t is defined.
88462         * lib/backupfile.c: Likewise.
88463
88464         * lib/addext.c (addext): Use base_len to trim redundant
88465         trailing slashes instead of doing it ourselves.
88466         But do not trim the last slash if it is not redundant.
88467
88468         * lib/backupfile.c (find_backup_file_name,
88469         max_backup_version): Use base_len instead of rolling it ourselves.
88470         Handle the case of "" and (on DOS) "C:" correctly.
88471
88472         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88473         needed. Include <string.h>, <dirname.h>.
88474         (base_name): Allow file names ending in slashes, other than names
88475         that are all slashes.  In this case, return the basename followed
88476         by the slashes.  This is more general, and can be used in places
88477         where the original base_name purposely had an assertion failure.
88478         (base_len): New function.
88479
88480         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88481         Do not include <assert.h>; no longer needed.
88482         Include xalloc.h.
88483         (memrchr): Remove decl.
88484         (dir_name_r): Remove.
88485         (dir_len): Renamed from dirlen.  All callers changed.
88486         Rewrite in terms of base_name, for simplicity and consistency.
88487         (dir_name): Never return NULL.  All callers changed.
88488         Do not include <stdlib.h> in test program; no longer needed.
88489         return 0; is fine for test program.
88490
88491         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88492         New macros.
88493         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88494
88495         * lib/path-concat.c (path_concat): Use base_len to compute
88496         base length, not strlen; this means we cannot rely on memcpy
88497         to null-terminate.
88498
88499         * lib/same.c (STREQ): Remove.
88500         (same_name): Handle the case where the basename ends in trailing '/'.
88501
88502         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88503         a slash was stripped.  Do not strip the last slash after a
88504         file system prefix.
88505
88506 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88507
88508         * lib/Makefile.am (libfetish_a_SOURCES):
88509         Add strftime.c, since we now compile it on all hosts.
88510
88511         * lib/strftime.c (my_strftime):
88512         Define to nstrftime if emacs, but only if my_strftime is not defined.
88513         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88514         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88515         Add one more extra argument: a nanoseconds value.
88516         All uses changed.
88517         (ns): New macro.
88518         (my_strftime function): Add %N format.
88519         (emacs_strftimeu): Renamed from emacs_strftime,
88520         with extra ut argument.
88521
88522 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88523
88524         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88525
88526 2001-04-21  Jim Meyering  <meyering@lucent.com>
88527
88528         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88529         doesn't interfere.
88530
88531 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88532
88533         * m4/ftruncate.m4: Check for chsize.
88534         Link with ftruncate.o unconditionally if ftruncate is missing.
88535         This was required when cross-compiling to i586-mingw32msvc.
88536
88537 2001-04-08  Jim Meyering  <meyering@lucent.com>
88538
88539         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88540         recomputed; that's necessary when the offset spans a DST transition.
88541         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88542
88543 2001-04-02  Jim Meyering  <meyering@lucent.com>
88544
88545         * lib/regex.h, regex.c: Update from GNU libc.
88546
88547 2001-03-24  Jim Meyering  <meyering@lucent.com>
88548
88549         * m4/jm-macros.m4: Require autoconf-2.49d.
88550
88551 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88552
88553         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88554
88555 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88556
88557         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88558
88559 2001-03-17  Jim Meyering  <meyering@lucent.com>
88560
88561         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88562         now that the version in autoconf is equivalent.
88563         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88564
88565         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88566         Suggestion from Akim Demaille.
88567
88568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88569         (jm_PREREQ_TEMPNAME): New function.
88570
88571 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88572
88573         * lib/tempname.c (uint64_t): Define to uintmax_t if
88574         not defined, and if UINT64_MAX is not defined.
88575         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88576         Reported by John David Anglin.
88577
88578 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88579
88580         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88581         resolve alias if codeset is empty.
88582         * lib/config.charset (BeOS): Use wildcard syntax.
88583
88584 2001-03-13  Jim Meyering  <meyering@lucent.com>
88585
88586         * lib/path-concat.c (path_concat)
88587         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88588         concatenating e.g., `C:' and `foo'.
88589         From Bruno Haible.
88590
88591 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88592
88593         * lib/localcharset.c (locale_charset): Don't use
88594         setlocale(LC_CTYPE,NULL). Don't return NULL.
88595         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88596
88597 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88598
88599         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88600         support for DOS/DJGPP.
88601
88602 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88603
88604         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88605         lacks mkstemp.  Compile our own tempname.c if we compile our own
88606         mkstemp.c, as mkstemp relies on tempname.
88607
88608 2001-03-01  Jim Meyering  <meyering@lucent.com>
88609
88610         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88611         AH_VERBATIM really does output its argument verbatim.
88612
88613 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88614
88615         * lib/Makefile.am (libfetish_a_SOURCES):
88616         Add dup-safer.c, fopen-safer.c.
88617         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88618
88619         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88620         * lib/unistd-safer.h: New files.
88621
88622 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88623
88624         The mkstemp replacement is taken from glibc 2.2.2, with some
88625         portability fixes for use outside glibc, as follows:
88626
88627         * lib/tempname.c (struct_stat64): New macro.
88628         (direxists, __gen_tempname): Use it.
88629         This avoids a portability problem with Solaris 8.
88630
88631         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88632         (<stddef.h>, <stdint.h>, <string.h>):
88633         Include only if STDC_HEADERS || _LIBC.
88634         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88635         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88636         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88637         (__set_errno): Define this macro if <errno.h> doesn't.
88638         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88639         Define these macros if <stdio.h> doesn't.
88640         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88641         Define these macros if <sys/stat.h>
88642         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88643         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88644         __xstat64): Define if not _LIBC.
88645         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88646         (__gen_tempname): Invoke gettimeofday only if
88647         HAVE_GETTIMEOFDAY || _LIBC;
88648         otherwise, fall back on plain "time".
88649         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88650
88651         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88652
88653         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88654
88655 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88656
88657         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88658
88659 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88660
88661         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88662         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88663         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88664         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88665
88666 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88667
88668         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88669         Remove workaround macros for hosts that have mbrtowc but not
88670         mbstate_t, as we now insist on proper declarations for both
88671         before using mbrtowc.
88672
88673 2001-02-17  Jim Meyering  <meyering@lucent.com>
88674
88675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88676         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88677         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88678         UnixWare 7.1.1.
88679
88680         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88681         rather than AC_CACHE_VAL.
88682
88683 2001-02-17  Jim Meyering  <meyering@lucent.com>
88684
88685         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88686         around included file name.
88687
88688         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88689
88690         * lib/strftime.c: Update from GNU libc (the only changes were to
88691         comments).
88692
88693 2001-02-17  Jim Meyering  <meyering@lucent.com>
88694
88695         * lib/regex.c: Update from libc.
88696
88697 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88698
88699         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88700         clash.
88701
88702 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88703
88704         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88705         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88706         Reported by Mark Hounschell via Paul Eggert.
88707
88708 2001-02-07  Jim Meyering  <meyering@lucent.com>
88709
88710         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88711
88712 2001-02-05  Jim Meyering  <meyering@lucent.com>
88713
88714         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88715         it includes the patch required for `large file' support with at least
88716         HP-UX's 10.20 /bin/cc.
88717
88718 2001-02-03  Jim Meyering  <meyering@lucent.com>
88719
88720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88721         AS_IF, now that it works once again (mysteriously).
88722         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88723
88724 2001-01-30  Jim Meyering  <meyering@lucent.com>
88725
88726         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88727         * m4/chown.m4: Rename conftestchown to conftest.chown.
88728         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88729         s/conftestdir2/conftest.d2/.
88730         * m4/utimes.m4: s/conftestdata/conftest.data/
88731         Inspired by Pavel Roskin's change in autoconf.
88732
88733 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88734
88735         * lib/config.charset: Update for FreeBSD 4.2.
88736
88737 2001-01-27  Jim Meyering  <meyering@lucent.com>
88738
88739         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88740         a use of AS_IF.
88741         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88742
88743 2001-01-26  Jim Meyering  <meyering@lucent.com>
88744
88745         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88746         quotearg.c includes it.
88747
88748 2001-01-26  Jim Meyering  <meyering@lucent.com>
88749
88750         * lib/quotearg.c: Include stddef.h.
88751         * lib/quote.c: Include stddef.h.
88752         Reported by Axel Kittenberger.
88753
88754         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88755         line in double quotes so that it evokes a better diagnostic.
88756         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88757         Reported by Axel Kittenberger.
88758
88759 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88760
88761         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88762         as if it was a `charset'.
88763
88764 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88765
88766         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88767         has const.
88768
88769 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88770
88771         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88772         to avoid a warning.  Add back 'const' to inptr.
88773
88774 2001-01-20  Jim Meyering  <meyering@lucent.com>
88775
88776         Be sure that headers are checked before used in code compiled
88777         for the type checks.
88778         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88779         In place of that, invoke jm_CHECK_ALL_TYPES.
88780         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88781         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88782         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88783         The check for ssize_t was mistakenly run before the test for unistd.h.
88784
88785         The configure-time check for stdbool.h was missing.
88786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88787         (jm_PREREQ_HASH): New function.
88788
88789 2001-01-17  Jim Meyering  <meyering@lucent.com>
88790
88791         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88792         for autoconf-2.49c.
88793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88794
88795 2001-01-16  Jim Meyering  <meyering@lucent.com>
88796
88797         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88798         From Bruno Haible.
88799
88800 2001-01-14  Jim Meyering  <meyering@lucent.com>
88801
88802         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88803         foo and bar.  Create conftestdir/ in the script, not in the C code.
88804         Remove directories in the script, not in the C code.
88805         Remove conftestdir{,2} before trying to create the directory.
88806         Make the entire configure script fail if the mkdir fails.
88807
88808 2001-01-14  Jim Meyering  <meyering@lucent.com>
88809
88810         * lib/rename.c: New file.  From Volker Borchert.
88811         Include stdlib.h, string.h or strings.h, and xalloc.h.
88812         Use strip_trailing_slashes rather than open-coding it.
88813
88814 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88815
88816         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88817
88818 2001-01-03  Jim Meyering  <meyering@lucent.com>
88819
88820         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88821         of local `inptr' to avoid warning with some system declarations of
88822         iconv.
88823
88824 2001-01-02  Volker Borchert  <bt@teknon.de>
88825
88826         * m4/rename.m4: New file.
88827         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88828
88829 2001-01-01  Jim Meyering  <meyering@lucent.com>
88830
88831         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88832         even on systems with utmpx.h.  It's necessary for the declaration of
88833         utmp's ut_user member.  Reported by Andreas Jaeger.
88834
88835         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88836         available. They are required for the declarations of getgrgid and
88837         getpwuid resp.
88838         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88839         Reported by Andreas Jaeger.
88840
88841 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88842
88843         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88844         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88845         so `make install' also works in VPATH builds.
88846
88847 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88848
88849         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88850         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88851         can be used in subdirectories.
88852
88853 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/modechange.c: Do not assume that mode_t uses the
88856         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88857         the other-execute bit of FOO even if S_IXOTH != 1.
88858
88859         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88860         WOTH, XOTH, ALLM): New macros.
88861         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88862          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88863         Use them.
88864         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88865         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88866         (mode_compile):
88867         No need to use uintmax_t; unsigned long is long enough.
88868         Don't bother to get suffix since we don't use it.
88869
88870 2000-12-26  Jim Meyering  <meyering@lucent.com>
88871
88872         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88873         better with autoheader.
88874
88875 2000-12-24  Jim Meyering  <meyering@lucent.com>
88876
88877         * lib/hash.c (is_prime): Return explicit boolean values.
88878         (hash_get_first): Return NULL to appease Irix5.6's 89.
88879         Reported by Nelson Beebe.
88880
88881 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88882
88883         * lib/localcharset.c (locale_charset): Add support for Win32.
88884
88885 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88886
88887         * lib/physmem.h, lib/physmem.c: New files.
88888
88889         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88890         (noinst_HEADERS): Add physmem.h.
88891
88892         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88893         't' for compatibility with Solaris 8 sort.
88894
88895 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88896
88897         * lib/config.charset: Add support for BeOS.
88898
88899 2000-12-17  Jim Meyering  <meyering@lucent.com>
88900
88901         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88902         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88903
88904 2000-12-16  Jim Meyering  <meyering@lucent.com>
88905
88906         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88907         N and M) would have treated it like `chown N:N FILE'.
88908
88909         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88910
88911 2000-12-16  Jim Meyering  <meyering@lucent.com>
88912
88913         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88914         SHELLS_FILE to a file name that's useful on djgpp systems.
88915         Include stdlib.h.
88916         (ADDITIONAL_DEFAULT_SHELLS): Define.
88917         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88918         Based mostly on a patch from Prashant TR.
88919
88920 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88921
88922         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88923         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88924         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88925
88926 2000-12-08  Andreas Schwab  <schwab@suse.de>
88927
88928         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88929         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88930
88931 2000-12-07  Jim Meyering  <meyering@lucent.com>
88932
88933         * lib/stripslash.c (ISSLASH): Define.
88934         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88935         `/'.
88936         From Prashant TR.
88937
88938         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88939         (dir_name_r): Declare this function as static.
88940         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88941         manifest itself on a name containing a mix of slashes and
88942         backslashes.
88943         Make this function work with names starting with a DOS-style
88944         drive letter and colon prefix.
88945         (dir_name): Append `.' if necessary.
88946         Based mostly on patches from Prashant TR and Eli Zaretskii.
88947
88948         * lib/dirname.h (dir_name_r): Remove prototype.
88949
88950 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88951
88952         * m4/off_t-format.m4: Remove this file.
88953         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88954
88955 2000-12-06  Jim Meyering  <meyering@lucent.com>
88956
88957         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88958         replacement strtoull, we may well need the replacement strtoul, too.
88959         Check for declarations of strtoul and strtoull.
88960         Check for strtol.  Mainly as a cue to cause automake to include
88961         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88962         Check for limits.h -- strtol.c needs it.
88963
88964 2000-12-05  Jim Meyering  <meyering@lucent.com>
88965
88966         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88967
88968 2000-12-04  Jim Meyering  <meyering@lucent.com>
88969
88970         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88971         Also include memory.h, stdlib.h, unistd.h if appropriate.
88972         Reported by Andreas Jaeger (conflicting declaration of malloc).
88973
88974 2000-12-02  Jim Meyering  <meyering@lucent.com>
88975
88976         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88977         * m4/jm-macros.m4 (jm_MACROS): require it.
88978
88979 2000-12-02  Jim Meyering  <meyering@lucent.com>
88980
88981         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88982
88983 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88984
88985         * lib/memrchr.c: Include <config.h> before any system include file.
88986
88987 2000-11-30  Jim Meyering  <meyering@lucent.com>
88988
88989         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88990
88991 2000-11-30  Jim Meyering  <meyering@lucent.com>
88992
88993         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88994
88995 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88996
88997         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88998
88999 2000-11-26  Jim Meyering  <meyering@lucent.com>
89000
89001         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89002
89003 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89004
89005         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89006         size of (size_t) -1; it's not portable.
89007
89008 2000-11-17  Jim Meyering  <meyering@lucent.com>
89009
89010         * lib/strstr.c: Update from GNU libc.
89011
89012 2000-11-17  Akim Demaille  <akim@epita.fr>
89013
89014         * lib/obstack.h: Formatting changes.
89015         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89016         prevent type checking.
89017         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89018         cast the value to (void *): assigning a `foo *' to a `void *'
89019         variable is valid.
89020         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89021
89022 2000-11-16  Jim Meyering  <meyering@lucent.com>
89023
89024         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89025
89026 2000-11-11  Jim Meyering  <meyering@lucent.com>
89027
89028         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89029
89030 2000-11-10  Jim Meyering  <meyering@lucent.com>
89031
89032         * lib/obstack.h: Update from GNU libc.
89033         * lib/obstack.c: Likewise.
89034
89035 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89036
89037         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89038
89039 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89040
89041         * lib/getusershell.c (setusershell): Use rewind rather than
89042         fseek/fseeko, to avoid configuration hassles with fseeko.
89043         Don't bother opening SHELLS_FILE if shellstream is NULL;
89044         it's not necessary.
89045
89046 2000-11-05  Jim Meyering  <meyering@lucent.com>
89047
89048         * lib/makepath.h (make_dir): Declare.
89049         * lib/makepath.c (make_dir): Remove `static' attribute.
89050         Tweak a comment.
89051
89052 2000-11-04  Jim Meyering  <meyering@lucent.com>
89053
89054         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89055
89056 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89057
89058         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89059         last one in a bucket, advance to the next bucket.
89060
89061 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89062
89063         * lib/fnmatch.c: Do not comment out all the code if we are using
89064         the GNU C library, because in some cases we are replacing buggy
89065         code in the GNU C library itself.
89066
89067 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89068
89069         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89070         (regex_compile): Catch bogus \(\1\).
89071
89072 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89073
89074         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89075         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89076         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89077
89078 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89079
89080         * lib/error.h, getline.h, modechange.h:
89081         Remove "2000" from Copyright line, as the file hasn't been
89082         changed this year other than in the copyright notice.
89083
89084         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89085         was changed this year.
89086
89087 2000-10-29  Jim Meyering  <meyering@lucent.com>
89088
89089         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89090         renaming.
89091         * m4/ls-mntd-fs.m4: Likewise
89092
89093 2000-10-29  Jim Meyering  <meyering@lucent.com>
89094
89095         * lib/xstat.in: Fix grammar in comment.
89096
89097 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89098
89099         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89100         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89101         doesn't define __restrict_arr.
89102
89103 2000-10-28  Jim Meyering  <meyering@lucent.com>
89104
89105         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89106         (jm_PREREQ_MEMCHR): New function.
89107
89108 2000-10-28  Jim Meyering  <meyering@lucent.com>
89109
89110         * lib/memchr.c: Update from libc.
89111         Adjust for portability:
89112         [HAVE_STDLIB_H]: Include stdlib.h.
89113         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89114         Undef __memchr, too.
89115         [!weak_alias]: Define __memchr to memchr.
89116
89117         * lib/regex.c: Update from libc.
89118         * lib/regex.h: Likewise.
89119         * lib/getopt1.c: Likewise.
89120         * lib/memcmp.c: Likewise.
89121
89122         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89123         Avoid using fseek, when possible -- it's broken by design.
89124         Patch by Ulrich Drepper.
89125
89126 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89127
89128         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89129         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89130         Giving in to popular pressure to shut up the compiler with casts.
89131
89132 2000-10-26  Jim Meyering  <meyering@lucent.com>
89133
89134         * lib/strftime.c: Update from libc.
89135
89136 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89137
89138         * regex.c: More `unsigned char' -> `re_char' changes.
89139         Also change several `int' into `re_wchar_t'.
89140         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89141         (PUSH_FAILURE_POINTER): Don't cast any more.
89142         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89143         We want GCC to complain, since this piece of code makes
89144         re_match non-reentrant, which *should* be fixed.
89145         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89146         (EXTEND_BUFFER): Use RETALLOC.
89147         (SET_LIST_BIT): Don't cast.
89148         (re_wchar_t): New type.
89149         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89150         that those two functions will always properly return.
89151         (IMMEDIATE_QUIT_CHECK): Cast to void.
89152         (analyse_first): Use recursion rather than an explicit stack.
89153         (re_compile_fastmap): Can't fail anymore.
89154         (re_search_2): Don't check re_compile_fastmap for failure.
89155         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89156         Now also sets the new value (passed in a new argument).
89157         (re_match_2_internal): Use it.
89158         Also, use a new var `reg' of type size_t when looping through regs
89159         rather than reuse the inappropriate `mcnt'.
89160
89161 2000-10-25  Jim Meyering  <meyering@lucent.com>
89162
89163         * lib/obstack.c: Update from libc.
89164
89165 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89166
89167         * regex.c (regex_compile): Change the way of handling a range from
89168         a char less than 256 to a char not less than 256.
89169
89170 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89171
89172         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89173         NT-Emacs only.
89174         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89175         so that re_search functions only quit when callers expect them to.
89176
89177 2000-10-23  Jim Meyering  <meyering@lucent.com>
89178
89179         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89180         wrong.  That set_locale call must not have any side effects.
89181         From Paul Eggert.
89182
89183 2000-10-22  Jim Meyering  <meyering@lucent.com>
89184
89185         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89186         [CYCLIC]: Remove now-unused definition.
89187
89188         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89189         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89190         Suggestion from Ulrich Drepper.
89191
89192 2000-10-21  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89195         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89196         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89197
89198 2000-10-21  Jim Meyering  <meyering@lucent.com>
89199
89200         * lib/dirname.c (memrchr): Declare if necessary.
89201         (dir_name): Remove the restriction that there be no
89202         trailing slashes.  Now, this code skips past them, effectively
89203         ignoring them.
89204         [TEST_DIRNAME] (main): New unit tests.
89205
89206         * lib/memrchr.c: New file from GNU libc.
89207         Undef __memrchr, too.
89208         [!weak_alias]: Define __memrchr to memrchr.
89209         Guard weak_alias use with `#ifdef weak_alias'.
89210
89211 2000-10-21  Jim Meyering  <meyering@lucent.com>
89212
89213         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89214         (dir_name): Use dir_name_r.
89215         * lib/dirname.h (dir_name_r): Declare it.
89216
89217 2000-10-17  Jim Meyering  <meyering@lucent.com>
89218
89219         * lib/quote.h (PARAMS): Define and use.
89220         Reported by Akim Demaille.
89221
89222         * lib/getopt.c: Update from libc.
89223
89224 2000-10-16  Jim Meyering  <meyering@lucent.com>
89225
89226         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89227         setlocale.
89228         From Jan Fedak.
89229
89230 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89231
89232         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89233
89234 2000-09-25  Jim Meyering  <meyering@lucent.com>
89235
89236         * lib/md5.h (rol): Define (from GnuPG).
89237
89238         * lib/sha.c: Give credit (GnuPG) where due.
89239         (M): Use rol rather than open-coding it.
89240         Add a FIXME comment.
89241
89242 2000-09-21  Jim Meyering  <meyering@lucent.com>
89243
89244         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89245         Reported by Michael Stone.
89246
89247 2000-09-20  Jim Meyering  <meyering@lucent.com>
89248
89249         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89250         (noinst_HEADERS): Add sha.h.
89251         Based on code from Scott G. Miller and from GnuPG.
89252
89253 2000-09-18  Jim Meyering  <meyering@lucent.com>
89254
89255         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89256         LIBS. Otherwise, everyone ends up linking with -lelf for some
89257         configurations.
89258         Reported by Mike Stone.
89259
89260 2000-09-15  Jim Meyering  <meyering@lucent.com>
89261
89262         * lib/regex.c: Update from libc.
89263
89264 2000-09-10  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/getopt.c (_getopt_internal): Update from glibc.
89267
89268 2000-09-09  Jim Meyering  <meyering@lucent.com>
89269
89270         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89271         think it should be used as a general replacement for isascii.
89272         * lib/fnmatch.c: Likewise.
89273         * lib/mbswidth.c: Likewise
89274         * lib/regex.c: Likewise.
89275
89276         Don't use atoi.
89277         * lib/userspec.c: Include sys/param.h and limits.h.
89278         Include xstrtol.h.
89279         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89280         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89281         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89282         UID, GID.  Check range.
89283
89284 2000-09-06  Jim Meyering  <meyering@lucent.com>
89285
89286         * lib/getopt.c (_getopt_internal): Update from glibc.
89287
89288 2000-08-30  Jim Meyering  <meyering@lucent.com>
89289
89290         * lib/strftime.c: Merge in changes from GNU libc.
89291
89292 2000-08-26  Jim Meyering  <meyering@lucent.com>
89293
89294         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89295         * m4/fpending.m4: New file.
89296
89297 2000-08-26  Jim Meyering  <meyering@lucent.com>
89298
89299         * lib/closeout.c: Include "__fpending.h".
89300         (close_stdout_status): Return right away if there's nothing to flush.
89301
89302         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89303         * lib/__fpending.c: New file.
89304         * lib/__fpending.h: New file.
89305
89306 2000-08-20  Jim Meyering  <meyering@lucent.com>
89307
89308         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89309         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89310         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89311
89312 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89313
89314         Improve fileutils installation on systems where running
89315         programs (like install) can't be unlinked.
89316         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89317         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89318
89319 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89320
89321         Standardize on "memory exhausted" instead of "Memory exhausted"
89322         or "virtual memory exhausted".
89323         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89324         "virtual memory exhausted".
89325         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89326         our own message.
89327         * lib/userspec.c (parse_user_spec): Likewise.
89328         * lib/bumpalloc.h: comment fix
89329         * lib/same.c, userspec.c: Include xalloc.h.
89330
89331         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89332         not char *const and pointing to a constant array.
89333         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89334         (xrealloc): Comment fix.
89335
89336         * lib/userspec.c (parse_user_spec):
89337         Don't translate a message until just before returning,
89338         to avoid unnecessary translation.
89339
89340 2000-08-07  Jim Meyering  <meyering@lucent.com>
89341
89342         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89343         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89344         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89345         getgroups.c, gethostname.c, getopt.h, group-member.c,
89346         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89347         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89348         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89349         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89350         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89351         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89352         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89353         yesno.c: Back out Copyright date changes for each file with no change
89354         this year.  This eases coordination with other programs using the same
89355         source code modules.  From Paul Eggert.
89356
89357 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89358
89359         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89360         not char, for compatibility with glibc 2.1.3 strftime.c.
89361
89362 2000-08-03  Greg McGary  <greg@mcgary.org>
89363
89364         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89365         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89366         (EXTEND_BUFFER): Use them.
89367
89368 2000-08-01  Jim Meyering  <meyering@lucent.com>
89369
89370         * lib/dirname.c (ISSLASH): Define.
89371         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89372         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89373         both `\' and `/' may be use as path separators.
89374         Based on a patch from Prashant TR.
89375
89376 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89379         slot vector a constant, since it might get modified.
89380
89381 2000-07-31  Jim Meyering  <meyering@lucent.com>
89382
89383         * lib/xmalloc.c: Use `virtual memory exhausted', not
89384         `Memory exhausted'.
89385         * lib/obstack.c (print_and_abort): Likewise.
89386
89387 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89388
89389         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89390         buffer, so that the caller can always quote one small
89391         component of a "memory exhausted" message in slot 0.
89392         From a suggestion by Jim Meyering.
89393
89394 2000-07-30  Jim Meyering  <meyering@lucent.com>
89395
89396         * lib/makepath.c (make_path): Quote the other instance, too.
89397
89398         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89399         (STATIC_BUF_SIZE): Define.
89400         (quotearg_n_options): Use only statically allocated storage when
89401         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89402         than STATIC_BUF_SIZE.
89403
89404 2000-07-29  Jim Meyering  <meyering@lucent.com>
89405
89406         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89407         * lib/dirname.c (dir_name): Likewise.
89408
89409         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89410         `/'.
89411
89412         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89413         (dir_name): Assert that there are no trailing slashes.
89414
89415 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89416
89417         * lib/mbswidth.h (mbswidth): Add a flags argument.
89418         (mbswidth): New declaration.
89419         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89420         * lib/mbswidth.c (mbswidth): Add a flags argument.
89421         (mbsnwidth): New function.
89422
89423 2000-07-24  Jim Meyering  <meyering@lucent.com>
89424
89425         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89426
89427 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89428
89429         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89430
89431 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89434         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89435         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89436         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89437         invoke multibyte primitives.
89438
89439 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89440
89441         * lib/quotearg.c:
89442         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89443         so that mbstate_t is always defined.
89444
89445         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89446         be 1 in at least one GCC installation, and this configuration
89447         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89448         performance on hosts that have mbrtowc but have only unibyte
89449         locales, but I assume these hosts are rare.
89450
89451 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89452
89453         * lib/mbswidth.c (_XOPEN_SOURCE):
89454         Don't define; this causes problems on Solaris 7.
89455         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89456
89457 2000-07-23  Jim Meyering  <meyering@lucent.com>
89458
89459         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89460         too: getgrgid, getpwuid, getuid.
89461
89462 2000-07-23  Jim Meyering  <meyering@lucent.com>
89463
89464         * lib/basename.c (base_name): Add an assertion.
89465
89466 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89467
89468         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89469         shadow its mbsinit function.
89470
89471 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89472
89473         * lib/mbswidth.h: New file.
89474         * lib/mbswidth.c: New file.
89475         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89476         (noinst_HEADERS): Add mbswidth.h.
89477
89478 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89479
89480         * lib/config.charset: Add support for FreeBSD. Improve support for
89481         HP-UX and IRIX 6.
89482
89483 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89484
89485         * m4/mbswidth.m4: New file.
89486         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89487
89488 2000-07-15  Jim Meyering  <meyering@lucent.com>
89489
89490         * lib/makepath.c: Include quote.h.
89491         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89492         corresponding argument in a `quote (...)' call.
89493         Give better diagnostics.
89494
89495         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89496         (noinst_HEADERS): Add quote.h.
89497
89498         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89499         from tar's src/misc.c.
89500         * lib/quote.h: New file.  Prototypes for same.
89501
89502 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89503
89504         From a suggestion by Bruno Haible.
89505         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89506         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89507         to decide whether to define the BeOS workaround macro;
89508         this adjusts to the change to AC_MBSTATE_T.
89509
89510 2000-07-14  Jim Meyering  <meyering@lucent.com>
89511
89512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89513         jm_AC_TYPE_UINTMAX_T.
89514
89515 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89516
89517         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89518
89519         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89520         quotearg_buffer_restyled): Add support for
89521         clocale_quoting_style.  Undo previous change to
89522         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89523         and "{RIGHT QUOTATION MARK}" msgids.
89524
89525 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89526
89527         From a suggestion by Bruno Haible.
89528         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89529         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89530         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89531         and mbstate_t, to a single-part test that simply defines mbstate_t.
89532         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89533         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89534
89535 2000-07-10  Jim Meyering  <meyering@lucent.com>
89536
89537         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89538
89539         * m4/gnu-source.m4: Output to confdefs.h directly.
89540         Suggestion from Akim Demaille.
89541
89542 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89543
89544         The old behavior of quoting `like this' doesn't look good with
89545         newer, ISO-style fonts.  See:
89546         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89547
89548         Instead, quote "like this" by default.  Let the translator
89549         tailor the locale-specific quoting behavior by providing
89550         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89551
89552         * lib/quotearg.c (N_): New macro.
89553         (gettext_default): New function.
89554         (quotearg_buffer_restyled): Use
89555         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89556         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89557
89558 2000-07-09  Jim Meyering  <meyering@lucent.com>
89559
89560         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89561         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89562
89563         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89565
89566 2000-07-09  Jim Meyering  <meyering@lucent.com>
89567
89568         * lib/Most files: Update copyright dates to include 2000.
89569
89570 2000-07-08  Jim Meyering  <meyering@lucent.com>
89571
89572         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89573         if not defined.
89574         (xgethostname): Remove now-unnecessary #ifdef.
89575         Move declaration of `err' into loop where it's used.
89576
89577 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89578         and Bruno Haible  <haible@clisp.cons.org>
89579
89580         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89581         only if the test for an object-type mbstate_t fails.  This
89582         prevents us from mistakenly reporting that mbstate_t is a
89583         system object type after we "#define mbstate_t int" to work
89584         around its lack.
89585
89586 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89587         and Bruno Haible  <haible@clisp.cons.org>
89588
89589         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89590
89591 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89592
89593         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89594         to strerror_r.
89595         Include <ctype.h> for use of isalpha.
89596
89597 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89598
89599         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89600         by allocating a larger buffer. Test the gethostname return value for
89601         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89602         returns an error and ENAMETOOLONG isn't defined.
89603
89604 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89605
89606         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89607         dimension.
89608
89609 2000-07-04  Jim Meyering  <meyering@lucent.com>
89610
89611         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89612         of the deprecated AC_CHECKING.
89613
89614 2000-07-04  Jim Meyering  <meyering@lucent.com>
89615
89616         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89617         Reported by Bruno Haible.
89618
89619 2000-07-04  Jim Meyering  <meyering@lucent.com>
89620
89621         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89622         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89623         lacks mbrtowc.
89624
89625 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89626
89627         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89628         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89629
89630 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89631         and Bruno Haible  <haible@clisp.cons.org>
89632
89633         * lib/quotearg.c (mbrtowc):
89634         Assign to *pwc, and return 1 only if result is nonzero.
89635         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89636
89637 2000-07-03  Jim Meyering  <meyering@lucent.com>
89638
89639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89640
89641 2000-07-03  Jim Meyering  <meyering@lucent.com>
89642
89643         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89644         This is necessary to get a definition of e.g., UTMP_FILE on
89645         HP-UX 10.20.
89646         From Bob Proulx.
89647
89648 2000-07-02  Jim Meyering  <meyering@lucent.com>
89649
89650         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89651
89652         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89653         AC_LIBOBJ(function_name).
89654         * m4/chown.m4: Likewise.
89655         * m4/fnmatch.m4: Likewise.
89656         * m4/ftruncate.m4: Likewise.
89657         * m4/getgroups.m4: Likewise.
89658         * m4/getline.m4: Likewise.
89659         * m4/group-member.m4: Likewise.
89660         * m4/jm-macros.m4: Likewise.
89661         * m4/lstat.m4: Likewise.
89662         * m4/malloc.m4: Likewise.
89663         * m4/memcmp.m4: Likewise.
89664         * m4/nanosleep.m4: Likewise.
89665         * m4/putenv.m4: Likewise.
89666         * m4/realloc.m4: Likewise.
89667         * m4/regex.m4: Likewise.
89668         * m4/stat.m4: Likewise.
89669         * m4/strftime.m4: Likewise.
89670
89671 2000-07-02  Jim Meyering  <meyering@lucent.com>
89672
89673         * lib/quotearg.c (mbstate_t): Don't define here.
89674
89675 2000-07-02  Jim Meyering  <meyering@lucent.com>
89676
89677         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89678
89679 2000-07-01  Jim Meyering  <meyering@lucent.com>
89680
89681         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89682
89683 2000-07-01  Jim Meyering  <meyering@lucent.com>
89684
89685         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89686         problem.
89687
89688 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89689
89690         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89691         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89692
89693 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89694
89695         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89696         per change in ../m4/ls-mntd-fs.m4.
89697         (read_filesystem_list): Ignore symbolic links.
89698
89699 2000-06-29  Jim Meyering  <meyering@lucent.com>
89700
89701         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89702         for declaration of strcmp.
89703
89704         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89705
89706         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89707         Avoid warning by casting result to `char *' to remove `const'.
89708
89709 2000-06-28  Jim Meyering  <meyering@lucent.com>
89710
89711         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89712         included by quotearg.c, for which we perform this test.  From
89713         Bruno Haible.
89714
89715 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89716
89717         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89718         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89719         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89720
89721 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89722
89723         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89724
89725 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89726
89727         savedir now sets errno on failure and invokes xmalloc to get memory.
89728         Fix a couple of other minor bugs while we're at it.
89729
89730         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89731         (NAMLEN): Remove macro.
89732         (malloc, realloc): Remove decls.
89733         (stpcpy): Likewise.
89734         ("xalloc.h"): Include.
89735         (NAME_SIZE_DEFAULT): New macro.
89736         (savedir): Use xmalloc / xrealloc to allocate memory.
89737         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89738         Skip "" directory entries.
89739         Use strlen to calculate directory entry length, since the old method
89740         is rarely used these days and isn't worth supporting.
89741         Don't use a pointer after freeing it.
89742         Check for integer overflow when calculating allocation size.
89743         Use memcpy to copy entries, instead of stpcpy.
89744         Set errno properly when returning NULL.
89745         Check for readdir error.
89746
89747 2000-06-26  Jim Meyering  <meyering@lucent.com>
89748
89749         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89750
89751 2000-06-25  Jim Meyering  <meyering@lucent.com>
89752
89753         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89754         Linux header bug when _XOPEN_SOURCE is defined to 500.
89755
89756 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89757
89758         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89759         deficiency.
89760
89761 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89762
89763         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89764         Include xalloc.h.
89765         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89766
89767 2000-06-24  Jim Meyering  <meyering@lucent.com>
89768
89769         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89770         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89771         for which strerror does return char*, but which lacks a conveniently
89772         accessible declaration of the function.  If the compile-test says
89773         strerror_r doesn't work, then resort to a `run'-test that works on
89774         BeOS and segfaults on DEC Unix.
89775
89776 2000-06-24  Jim Meyering  <meyering@lucent.com>
89777
89778         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89779
89780 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89781
89782         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89784
89785 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89786
89787         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89788         (mbrtowc, mbstate_t): Define substitutes if
89789         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89790         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89791         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89792
89793 2000-06-23  Jim Meyering  <meyering@lucent.com>
89794
89795         * m4/afs.m4: Add missing AC_MSG_RESULT.
89796         Reported by Bruno Haible.
89797
89798         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89799         Suggestion from Bruno Haible.
89800
89801 2000-06-23  Jim Meyering  <meyering@lucent.com>
89802
89803         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89804
89805 2000-06-21  Jim Meyering  <meyering@lucent.com>
89806
89807         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89808
89809 2000-06-21  Jim Meyering  <meyering@lucent.com>
89810
89811         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89812         (noinst_HEADERS): Add getstr.h.
89813
89814         * lib/getline.c (getstr): Move into a separate file.
89815         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89816         the following changes: new parameter, delim2; both delim[12]
89817         parameters have type `int', not `char'.  The latter would lose
89818         with 8-bit delimiters.
89819         * lib/getstr.h: New file.
89820
89821 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89822
89823         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89824         than 1024, return a memory chunk of least possible size, instead
89825         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89826         Use free/xmalloc instead of xrealloc to avoid copying for very long
89827         paths.
89828
89829 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89830
89831         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89832         the empty string.
89833
89834 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89835
89836         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89837         address, not strdup.  Include <stdlib.h> and don't declare free().
89838
89839 2000-06-19  Jim Meyering  <meyering@lucent.com>
89840
89841         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89842
89843 2000-06-18  Jim Meyering  <meyering@lucent.com>
89844
89845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89846
89847         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89848         `checking whether...' message to be consistent with that of the
89849         lstat test.
89850
89851 2000-06-18  Jim Meyering  <meyering@lucent.com>
89852
89853         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89854         Besides, these days every porting target provides a mkdir function.
89855
89856         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89857         needed. (this snippet comes from src/system.h).
89858
89859 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89860
89861         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89862
89863 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89864
89865         * lib/human.c (adjust_value): New function.
89866         (human_readable_inexact): Apply rounding style even when
89867         printing approximate values.
89868
89869 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89870
89871         * lib/human.c (human_readable_inexact): Allow an input block
89872         size that is not a multiple of the output block size, and vice versa.
89873         Reported by Piergiorgio Sartor.
89874
89875 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89876
89877         * lib/getdate.y (get_date): Apply relative times after time
89878         zone indicator, not before.  Reported by Todd A. Jacobs.
89879
89880 2000-06-13  Jim Meyering  <meyering@lucent.com>
89881
89882         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89883
89884         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89885
89886 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89887
89888         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89889
89890 2000-06-12  Jim Meyering  <meyering@lucent.com>
89891
89892         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89893         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89894         optional argument.
89895         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89896         the optional argument, `lib'.
89897
89898 2000-06-08  Jim Meyering  <meyering@lucent.com>
89899
89900         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89901
89902 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89903
89904         Rewrite largefile configuration so that we don't need to run
89905         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89906         AC_CANONICAL_HOST in configure.in -- jmm]
89907
89908         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89909         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89910         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89911         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89912         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89913         All uses changed.
89914         Instead of inspecting the output of getconf, try to compile the
89915         test program without and with the macro definition.
89916         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89917         for getconf.  Instead, check for the needed flags by compiling
89918         test programs.
89919
89920 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89921
89922         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89923
89924 2000-06-04  Jim Meyering  <meyering@lucent.com>
89925
89926         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89927         SunOS 4.1.4 for which gid_t is an unsigned type.
89928
89929 2000-06-03  Jim Meyering  <meyering@lucent.com>
89930
89931         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89932         now that autoconf requires that.
89933
89934         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89935         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89936         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89937
89938 2000-06-03  Jim Meyering  <meyering@lucent.com>
89939
89940         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89941
89942 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89943
89944         * m4/glibc21.m4: New file.
89945         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89946
89947 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89948
89949         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89950         newer, don't install charset.alias.
89951         * lib/config.charset: Change the Linux/glibc rules so they become empty
89952         on glibc-2.1 or newer.
89953
89954 2000-06-02  Jim Meyering  <meyering@lucent.com>
89955
89956         * lib/mountlist.c: Back out last change.  Instead, do this...
89957         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89958         me_dummy member using the same `ignore'-testing code.
89959         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89960         fs_type strings.
89961         From Mark D. Roth.
89962
89963 2000-05-29  Jim Meyering  <meyering@lucent.com>
89964
89965         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89966         mounts with the `ignore' attribute.  Based on a patch from
89967         Mark D. Roth.
89968
89969 2000-05-28  Jim Meyering  <meyering@lucent.com>
89970
89971         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89972         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89973         * m4/stat.m4: Likewise.
89974         * m4/lstat.m4: Likewise.
89975         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89976
89977         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89978         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89979
89980 2000-05-26  Jim Meyering  <meyering@lucent.com>
89981
89982         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89983
89984 2000-05-24  Jim Meyering  <meyering@lucent.com>
89985
89986         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89987         autoconf requires that.
89988         * m4/lib-check.m4: Likewise.
89989         * m4/jm-macros.m4: Likewise.
89990         * m4/strftime.m4: Likewise.
89991
89992         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89993         AC_CHECK_DECLS, now that autoconf requires that.
89994
89995 2000-05-22  Jim Meyering  <meyering@lucent.com>
89996
89997         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89998         * m4/lstat.m4: Likewise.
89999
90000 2000-05-22  Jim Meyering  <meyering@lucent.com>
90001
90002         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90003
90004 2000-05-20  Jim Meyering  <meyering@lucent.com>
90005
90006         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90007         (jm_PREREQ): Use it.
90008
90009 2000-05-18  Jim Meyering  <meyering@lucent.com>
90010
90011         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90012         back, too, since it may have been modified by allocate_entry.
90013         (hash_delete): Rewrite to use neither the assignment operator
90014         nor the comma operator in an if-expression.
90015
90016 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90017
90018         * lib/closeout.c:
90019         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90020         Remove; no longer needed.
90021         "quotearg.h": Add include.
90022         (file_name): Do not bother to explicitly initialize to NULL; it's less
90023         efficient on some hosts.
90024         (close_stdout_status): Remove test as to whether stdout was already
90025         closed; it breaks for the case "echo x | sort >&-".
90026         Quote file name colons.
90027         Do not assume that _("write error") lacks format strings.
90028
90029 2000-05-15  Jim Meyering  <meyering@lucent.com>
90030
90031         * lib/version-etc.c (version_etc_copyright): Update the copyright
90032         string used in all --version output.
90033
90034 2000-05-14  Jim Meyering  <meyering@lucent.com>
90035
90036         * lib/closeout.c (close_stdout_set_file_name): New function.
90037         (close_stdout_status): Use new file-scoped global.
90038         Return right away if fstat says the stdout file descriptor is invalid.
90039         * lib/closeout.h (close_stdout_set_file_name): Declare.
90040
90041 2000-05-10  Jim Meyering  <meyering@lucent.com>
90042
90043         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90044         (close_stdout_set_status): New function.
90045         * lib/closeout.h (close_stdout_set_status): Declare.
90046
90047 2000-05-09  Jim Meyering  <meyering@lucent.com>
90048
90049         * m4/gettext.m4: Rename this...
90050         * m4/libintl.m4: ...to this.
90051
90052 2000-05-08  Jim Meyering  <meyering@lucent.com>
90053
90054         * lib/long-options.c: Don't include closeout.h.
90055         (parse_long_options): Don't call close_stdout for --version.
90056
90057 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90058
90059         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90060         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90061         2.1.3 bug.  This avoids a clash when files like regex.c define
90062         _GNU_SOURCE.
90063
90064 2000-05-06  Jim Meyering  <meyering@lucent.com>
90065
90066         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90067         (AC_REPLACE_FUNCS): Add strnlen.
90068
90069         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90070         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90071
90072         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90073         AC_SEARCH_LIBS call for nanosleep.
90074         (LIB_NANOSLEEP): Set and AC_SUBST.
90075
90076 2000-05-06  Jim Meyering  <meyering@lucent.com>
90077
90078         * lib/strnlen.c: Undefine __strnlen and strnlen.
90079         [!weak_alias]: Define __strnlen to strnlen.
90080
90081         * lib/atexit.c: New file, from libiberty.
90082
90083 2000-05-06  Jim Meyering  <meyering@lucent.com>
90084
90085         * lib/closeout.c (close_stdout_status): Also check for errors on the
90086         stderr stream.
90087
90088 2000-05-05  Jim Meyering  <meyering@lucent.com>
90089
90090         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90091         AC_SEARCH_LIBS call for clock_gettime.
90092         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90093
90094         * m4/search-libs.m4: Update from autoconf.
90095
90096         su doesn't work on Solaris 2.6.
90097         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90098         <shadow.h>.  Reported by Dragos Harabor.
90099
90100 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90101
90102         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90103         memcpy instead of xmalloc, xrealloc, path_concat.
90104         (locale_charset): Treat empty environment variables as absent.
90105         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90106
90107 2000-05-04  Jim Meyering  <meyering@lucent.com>
90108
90109         * lib/getopt.c: Update from glibc.
90110         * lib/obstack.c: Likewise.
90111         * lib/obstack.h: Likewise.
90112         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90113         file
90114
90115         * lib/regex.h: Likewise.
90116         * lib/strndup.c: Likewise.
90117         * lib/strnlen.c: New file, from glibc.
90118
90119 2000-05-03  Jim Meyering  <meyering@lucent.com>
90120
90121         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90122
90123 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90124
90125         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90126         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90127         compile-time test, rather than inspecting host and OS, to
90128         decide whether to define _LARGEFILE_SOURCE.
90129
90130 2000-05-01  Jim Meyering  <meyering@lucent.com>
90131
90132         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90133
90134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90135         Based on a patch from Bruno Haible.
90136
90137 2000-05-01  Jim Meyering  <meyering@lucent.com>
90138
90139         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90140
90141 2000-04-29  Jim Meyering  <meyering@lucent.com>
90142
90143         * lib/path-concat.c: Declare strdup only if it's not defined.
90144         * lib/canon-host.c: Likewise.
90145
90146 2000-04-28  Jim Meyering  <meyering@lucent.com>
90147
90148         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90149         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90150         is included first, then limits.h is included by locale.h by libintl.h.
90151         From John David Anglin.
90152
90153 2000-04-25  Jim Meyering  <meyering@lucent.com>
90154
90155         * lib/makepath.c (S_IRWXUGO): Define.
90156         (make_path): Always perform explicit chmod if MODE specifies any
90157         of the `special' permission bits.  Prompted by a bug report against
90158         install from Mate Wierdl and Joost van Baal.
90159
90160 2000-04-18  Jim Meyering  <meyering@lucent.com>
90161
90162         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90163         (jm_PREREQ): Use it.
90164
90165 2000-04-18  Jim Meyering  <meyering@lucent.com>
90166
90167         * lib/README: New file.
90168
90169         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90170         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90171
90172 2000-04-17  Jim Meyering  <meyering@lucent.com>
90173
90174         Get it right :-)
90175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90176         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90177         Suggestion from Akim Demaille.
90178
90179 2000-04-17  Jim Meyering  <meyering@lucent.com>
90180
90181         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90182         the definition of it to rpl_strftime also defined-away the system's
90183         declaration.
90184
90185 2000-04-15  Jim Meyering  <meyering@lucent.com>
90186
90187         Use `C' to denote so-called `contiguous' files, the same way
90188         that tar does.
90189         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90190         (ftypelet): Use S_ISCTG.
90191         From Michael Deutschmann.
90192
90193 2000-04-14  Jim Meyering  <meyering@lucent.com>
90194
90195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90196         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90197         clobbered.
90198
90199 2000-04-14  Jim Meyering  <meyering@lucent.com>
90200
90201         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90202
90203 2000-04-13  Jim Meyering  <meyering@lucent.com>
90204
90205         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90206         AH_VERBATIM to insert required #ifndef into config.h.in.
90207         Suggestion from Akim Demaille.
90208
90209 2000-04-12  Jim Meyering  <meyering@lucent.com>
90210
90211         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90212         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90213         Christian Krackowizer.
90214
90215         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90216         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90217         (AC_SYS_LARGEFILE): Require.
90218         (AM_C_PROTOTYPES): Require.
90219
90220 2000-04-08  Jim Meyering  <meyering@lucent.com>
90221
90222         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90223         names don't conflict.  Reported by Eli Zaretskii.
90224
90225 2000-04-07  Jim Meyering  <meyering@lucent.com>
90226
90227         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90228         sys/types.h, to work around system header problems on AIX 3.2.5.
90229         From Bruno Haible.
90230
90231 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90232
90233         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90234         bug.  Deal with the different error behavior of Irix iconv.
90235
90236 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90237
90238         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90239         IRIX if the installer said otherwise.
90240
90241 2000-04-05  Jim Meyering  <meyering@lucent.com>
90242
90243         Portability tweaks required for ultrix4.3.
90244         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90245         (jm_CHECK_DECLS): Add getutent to the list of functions.
90246         (_jm_DECL_HEADERS): Add utmpx.h.
90247         From John David Anglin.
90248
90249         * m4/strftime.m4: Back out the 2000-04-02 change.
90250         Instead of that change, simply undefine putenv in the test program.
90251
90252 2000-04-05  Jim Meyering  <meyering@lucent.com>
90253
90254         Portability tweaks required for ultrix4.3.
90255         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90256         getutent.
90257         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90258         * lib/canon-host.c: Declare strdup.
90259         * lib/path-concat.c: Likewise.
90260         From John David Anglin.
90261
90262 2000-04-04  Jim Meyering  <meyering@lucent.com>
90263
90264         Be more DOS 8.3-friendly.
90265         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90266         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90267         * lib/Makefile.am: Reflect renaming.
90268         Reported by Eli Zaretskii.
90269
90270         Use a temporary file name that won't clash with `charset.alias'
90271         in the DOS 8.3 name space.
90272         * lib/Makefile.am (charset_tmp): Define.
90273         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90274         (uninstall-local): Likewise.
90275         Reported by Eli Zaretskii.
90276
90277 2000-04-03  Jim Meyering  <meyering@lucent.com>
90278
90279         * m4/gettext.m4: Fix typo in comment.
90280
90281         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90282         textutils/configure.in).  Suggestion from Paul Eggert.
90283         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90284
90285 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90286
90287         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90288         variable in the shell rather than using putenv, which isn't
90289         portable.  This avoids the configure-time inter-test dependency
90290         on the potentially-renamed putenv function.
90291
90292 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90293
90294         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90295         before checking struct stat.st_blksize, so that
90296         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90297
90298 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90299
90300         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90301         since strftime.c uses HAVE_STRFTIME to decide whether to use
90302         the underlying strftime.
90303
90304 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90305
90306         * lib/time/strftime.c (my_strftime): Make sure we call the system
90307         strftime, not ourselves, when invoking the underlying strftime.
90308
90309 2000-03-24  Jim Meyering  <meyering@lucent.com>
90310
90311         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90312         (charset_alias): Define.
90313         (install-exec-local): Factor out common code.
90314         (uninstall-local): Split lines longer than 80.
90315         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90316         (SUFFIXES): Define.
90317         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90318         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90319
90320 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90321
90322         * lib/config.charset: Output a line containing "Packages using this
90323         file".
90324         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90325         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90326         ref-del.sed): New rules.
90327
90328 2000-03-17  Jim Meyering  <meyering@lucent.com>
90329
90330         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90331         Otherwise, include <strings.h>
90332
90333 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90334
90335         * lib/unicodeio.c (utf8_wctomb): New function.
90336         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90337         format instead of in UCS-4 with platform dependent endianness.
90338
90339 2000-03-10  Jim Meyering  <meyering@lucent.com>
90340
90341         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90342         From Marco Franzen.
90343
90344 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90345
90346         * lib/savedir.c (savedir): Work even if directory size is
90347         negative; this can happen with some screwy NFS configurations.
90348
90349 2000-03-06  Jim Meyering  <meyering@lucent.com>
90350
90351         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90352         if it's NULL (because we ran out of memory).  From Bruno Haible.
90353
90354 2000-03-05  Jim Meyering  <meyering@lucent.com>
90355
90356         * lib/localcharset.c ("path-concat.h"): Include.
90357         (get_charset_aliases): Use path_concat instead of ANSI string
90358         concatenation.
90359
90360         * lib/unicodeio.h (PARAMS): Define.
90361         Use it to guard prototype.
90362
90363 2000-03-04  Jim Meyering  <meyering@lucent.com>
90364
90365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90366         for lib/localcharset.c.
90367
90368 2000-03-04  Jim Meyering  <meyering@lucent.com>
90369
90370         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90371         installing into it.
90372         (uninstall-local): Uncomment this rule so `make distcheck' works
90373         once again.
90374
90375         * lib/unicodeio.c (<errno.h>): Include it.
90376         (errno): Declare if not defined.
90377
90378         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90379
90380         * lib/config.charset: New version, incorporating remarks from a linux
90381         i18n mailing list.  From Bruno Haible.
90382
90383 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90384
90385         * m4/codeset.m4: New file.
90386         * m4/iconv.m4: New file.
90387         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90388
90389 2000-03-03  Jim Meyering  <meyering@lucent.com>
90390
90391         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90392
90393 2000-03-02  Jim Meyering  <meyering@lucent.com>
90394
90395         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90396         the messages come out on separate lines.
90397
90398         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90399         rather than jm_CHECK_DECLARATIONS.
90400         * m4/decl.m4: Remove now-unused file.
90401
90402         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90403         geteuid.
90404
90405 2000-03-02  Jim Meyering  <meyering@lucent.com>
90406
90407         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90408
90409 2000-03-01  Jim Meyering  <meyering@lucent.com>
90410
90411         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90412         * lib/unicodeio.c: Likewise.
90413
90414 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90415
90416         * lib/config.charset: New file.
90417         * lib/localcharset.c: New file.
90418         * lib/unicodeio.h, lib/unicodeio.c: New files.
90419         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90420         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90421         (noinst_HEADERS): Add unicodeio.h.
90422         (all-local, install-exec-local, charset.alias): New targets.
90423
90424 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90425
90426         * lib/quotearg.c (ALERT_CHAR): New macro.
90427         (quotearg_buffer_restyled): Use it.
90428
90429 2000-02-27  Jim Meyering  <meyering@lucent.com>
90430
90431         * m4/check-decl.m4: Add getenv to the list.
90432
90433 2000-02-27  Jim Meyering  <meyering@lucent.com>
90434
90435         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90436         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90437
90438         * lib/backupfile.c: Guard inclusion of stdlib.h with
90439         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90440         Declare malloc if needed.
90441
90442         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90443         `#ifndef HAVE_DECL..'
90444         now that autoconf always defines the HAVE_DECL_ symbols.
90445         * lib/human.c: Likewise.
90446         * lib/same.c: Likewise.
90447         * lib/strtoumax.c: Likewise.
90448
90449         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90450         declaration check was not run.
90451         * lib/hash.c: Likewise.
90452         * lib/human.c: Likewise.
90453         * lib/same.c: Likewise.
90454         * lib/strtoumax.c: Likewise.
90455
90456         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90457         `.', then first look up the entire `.'-containing string as a login
90458         name.
90459
90460 2000-02-23  Jim Meyering  <meyering@lucent.com>
90461
90462         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90463         in place of my hack.
90464
90465 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90466
90467         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90468         (textint): New typedef.
90469         (parser_control): Member year changed from int to textint.
90470         All uses changed.
90471         (YYSTYPE): Removed; replaced by %union with int and textint members.
90472         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90473         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90474         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90475         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90476         (date, number, to_year): Use width of number in digits, not its value,
90477         to determine whether it's a 2-digit year, or a 2-digit time.
90478         (yylex): Store number of digits of numeric tokens.
90479         Reported by John Kendall.
90480
90481         (parser_control): Changed from struct parser_control to typedef (for
90482         consistency).  All uses changed.
90483
90484         (tID): Removed; not used.
90485         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90486
90487 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90488
90489         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90490         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90491
90492 2000-02-12  Jim Meyering  <meyering@lucent.com>
90493
90494         * lib/userspec.c (ISDIGIT): Define it.
90495         (isdigit): Remove definition.
90496         (is_number): Use ISDIGIT, not isdigit.
90497         <libintl.h>: Include.
90498         (_ and N_): Define.
90499         (parse_user_spec): Mark translatable strings.
90500
90501 2000-02-10  Jim Meyering  <meyering@lucent.com>
90502
90503         With these changes, nanosleep.[ch] are finally enough like the other
90504         lib/* replacement files to compile on a few more losing systems.
90505
90506         * lib/nanosleep.h: Don't include config.h.
90507         Remove prototype from declaration of nanosleep.
90508         (PARAMS): Remove now-unneeded definition.
90509         * lib/nanosleep.c: #undef nanosleep.
90510         (rpl_nanosleep): Rename from nanosleep.
90511
90512 2000-02-10  Jim Meyering  <meyering@lucent.com>
90513
90514         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90515         gnu_nanosleep to rpl_nanosleep.
90516
90517 2000-02-09  Jim Meyering  <meyering@lucent.com>
90518
90519         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90520         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90521
90522 2000-02-08  Akim Demaille  <akim@epita.fr>
90523
90524         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90525         `[' and `]' and remove uses of `changequote'.
90526         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90527         (AC_SYS_LARGEFILE): Likewise.
90528         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90529         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90530         of changequote.
90531         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90532         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90533         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90534         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90535
90536 2000-02-05  Jim Meyering  <meyering@lucent.com>
90537
90538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90539         Remove explicit use of AC_HEADER_TIME.  It is required by
90540         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90541         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90542         in autoconf whereby the expansion of the latter ended up preceding
90543         the expansion of its prerequisite, AC_HEADER_TIME.
90544         Reported by Volker Borchert.
90545
90546 2000-02-03  Jim Meyering  <meyering@lucent.com>
90547
90548         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90549
90550 2000-02-03  Jim Meyering  <meyering@lucent.com>
90551
90552         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90553         rather than with `#if HAVE_UTMPNAME'.
90554
90555 2000-02-02  Jim Meyering  <meyering@lucent.com>
90556
90557         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90558         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90559         Reported by Eli Zaretskii.
90560
90561 2000-02-01  Jim Meyering  <meyering@lucent.com>
90562
90563         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90564
90565 2000-01-31  Jim Meyering  <meyering@lucent.com>
90566
90567         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90568         functions.  Add the time.h and sys/time.h headers along with the
90569         AC_REQUIRE'ment of AC_HEADER_TIME.
90570
90571 2000-01-31  Jim Meyering  <meyering@lucent.com>
90572
90573         * lib/nanosleep.h (nanosleep): Guard declaration with
90574         `#if ! HAVE_DECL_NANOSLEEP'.
90575         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90576         the declaration in that vendor's sys/timers.h.
90577         Reported by Christian Krackowizer.
90578
90579         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90580         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90581         (ISPRINT): Likewise.
90582         Reported by Tom Tromey.
90583
90584 2000-01-30  Jim Meyering  <meyering@lucent.com>
90585
90586         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90587
90588         * m4/prereq.m4 (utmp_includes): Define.
90589         Check for ut_user and ut_name members in both struct utmpx
90590         and struct utmp.
90591
90592 2000-01-30  Jim Meyering  <meyering@lucent.com>
90593
90594         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90595         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90596         header files where only utmpx.ut_user is declared.
90597
90598         * lib/readutmp.h (UT_USER): Define.
90599
90600 2000-01-29  Jim Meyering  <meyering@lucent.com>
90601
90602         * m4/lib-check.m4: New file containing library-related checks from
90603         fileutils and sh-utils (textutils had none).
90604
90605 2000-01-28  Jim Meyering  <meyering@lucent.com>
90606
90607         * m4/perl.m4: Change format of warning message to look more like that
90608         from the missing script.  Suggestion from François Pinard.
90609
90610 2000-01-25  Jim Meyering  <meyering@lucent.com>
90611
90612         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90613         well as time.h in the compile check.
90614         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90615         Fix typo in cross-compiling case: s/yes/no/.
90616
90617 2000-01-23  Jim Meyering  <meyering@lucent.com>
90618
90619         * m4/jm-macros.m4: Move df-related tests here from
90620         fileutils/configure.in
90621
90622         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90623         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90624
90625         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90626         s/space/ac_fsusage_space/.
90627         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90628
90629         * m4/ftruncate.m4: New file (derived from part of
90630         fileutils/configure.in).
90631         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90632         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90633
90634         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90635         AC_SUBST these here, rather than just in sh-util/configure.in, so
90636         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90637         all the same.
90638         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90639         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90640         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90641         (AC_SUBST(POW_LIBM)): Likewise.
90642         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90643
90644 2000-01-23  Jim Meyering  <meyering@lucent.com>
90645
90646         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90647         obstack.c.
90648
90649 2000-01-22  Jim Meyering  <meyering@lucent.com>
90650
90651         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90652
90653         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90654
90655         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90656         configure.in
90657         (AC_CHECK_HEADERS): Likewise for sh-utils.
90658         (AC_CHECK_HEADERS): Likewise for textutils.
90659         Merge the three lists of headers.
90660
90661         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90662         from fileutils' configure.in.
90663
90664         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90665         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90666         check-decl.m4.
90667
90668         * m4/check-decl.m4: Use #if rather than #ifdef.
90669         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90670         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90671         (_jm_DECL_HEADERS): Define new function.
90672         (jm_CHECK_DECLARATIONS): Require it.
90673
90674 2000-01-22  Jim Meyering  <meyering@lucent.com>
90675
90676         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90677         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90678         Required for some AIX systems.  Reported by Christian Krackowizer.
90679         [TESTING] (main): New function.
90680
90681         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90682         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90683         letters.
90684
90685         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90686         iswprint.
90687
90688         * lib/strverscmp.c (ISDIGIT): Define.
90689         (strverscmp): Use ISDIGIT, not isdigit.
90690
90691 2000-01-19  Jim Meyering  <meyering@lucent.com>
90692
90693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90694         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90695         defines `struct timespec' in <sys/time.h>
90696
90697         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90698         Thanks to Akim for explaining.
90699
90700 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90701
90702         * lib/nanosleep.c (nanosleep):
90703         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90704         POSIX.1 doesn't require SA_INTERRUPT and some systems
90705         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90706         it's been part of POSIX.1 since day 1 (in 1988).
90707
90708 2000-01-17  Jim Meyering  <meyering@lucent.com>
90709
90710         * lib/interlock: Remove unused file.  Reported by François Pinard.
90711
90712 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90713
90714         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90715         alert, backslash, formfeed, and vertical tab unnecessarily in
90716         shell quoting style.
90717
90718 2000-01-16  Jim Meyering  <meyering@lucent.com>
90719
90720         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90721         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90722         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90723         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90724
90725 2000-01-16  Jim Meyering  <meyering@lucent.com>
90726
90727         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90728         because the latter didn't work.
90729
90730 2000-01-15  Jim Meyering  <meyering@lucent.com>
90731
90732         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90733         (AC_REPLACE_FUNCS): Add memcpy and memset.
90734         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90735         Add strpbrk.
90736         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90737
90738 2000-01-12  Jim Meyering  <meyering@lucent.com>
90739
90740         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90741         (jm_PREREQ): Use it.
90742         (jm_PREREQ_READUTMP): New macro.
90743         (jm_PREREQ): Use it.
90744
90745 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90746
90747         Quote multibyte characters correctly.
90748         * m4/c-bs-a.m4: New file.
90749         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90750         (jm_PREREQ): Use it.
90751
90752 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90753
90754         * m4/uintmax_t.m4: Port to autoconf 2.13.
90755
90756 2000-01-08  Jim Meyering  <meyering@ascend.com>
90757
90758         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90759         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90760
90761 2000-01-04  Jim Meyering  <meyering@ascend.com>
90762
90763         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90764         jm_STRUCT_DIRENT_D_TYPE.
90765         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90766         jm_STRUCT_DIRENT_D_INO.
90767         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90768         jm_STRUCT_UTIMBUF.
90769         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90770         renamings.
90771         * m4/utime.m4: Likewise.
90772
90773         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90774         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90775
90776 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90777
90778         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90779         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90780
90781 2000-01-02  Jim Meyering  <meyering@ascend.com>
90782
90783         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90784         remember if this is necessary.
90785
90786 1999-12-26  Jim Meyering  <meyering@ascend.com>
90787
90788         * m4/jm-macros.m4: Use it here.
90789         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90790
90791 1999-12-23  Jim Meyering  <meyering@ascend.com>
90792
90793         * m4/jm-macros.m4: Check for clock_gettime (moved from
90794         fileutils/configure.in)
90795         Check for gettimeofday.
90796
90797 1999-12-20  Jim Meyering  <meyering@ascend.com>
90798
90799         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90800         autoconf-2.14a-1999-12-20.
90801
90802 1999-12-19  Jim Meyering  <meyering@ascend.com>
90803
90804         * m4/lstat-slash.m4: New file.
90805         * m4/jm-macros.m4: Use the new macro:
90806         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90807
90808 1999-12-07  Jim Meyering  <meyering@ascend.com>
90809
90810         * m4/perl.m4: Require that File::Compare be available, too.
90811         Too many systems seem to lack it.
90812
90813         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90814         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90815
90816 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90817
90818         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90819         problem with the QNX 4.25 shell, which doesn't propagate exit
90820         status of failed commands inside shell assignments.
90821
90822 1999-11-17  Jim Meyering  <meyering@ascend.com>
90823
90824         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90825
90826 1999-11-07  Jim Meyering  <meyering@ascend.com>
90827
90828         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90829
90830 1999-11-06  Jim Meyering  <meyering@ascend.com>
90831
90832         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90833         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90834
90835 1999-11-05  Jim Meyering  <meyering@ascend.com>
90836
90837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90838         configure.in of textutils, fileutils, and sh-utils into this one
90839         (shared between those packages) file.
90840         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90841         AC_STRUCT_ST_BLKSIZE.
90842
90843 1999-11-03  Jim Meyering  <meyering@ascend.com>
90844
90845         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90846         of AC_CHECK_TYPE checks includes unistd.h.
90847         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90848         Suggestion from Akim Demaille.
90849
90850 1999-10-30  Jim Meyering  <meyering@ascend.com>
90851
90852         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90853         m4-quoted string.
90854         * m4/ls-mntd-fs.m4: Likewise.
90855         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90856         * m4/jm-winsz1.m4: Likewise.
90857
90858         * m4/const.m4: Remove file, since the fix made it into the experimental
90859         version of autoconf.
90860         * m4/mktime.m4: Likewise.
90861
90862         * m4/check-type.m4: Remove file, now that the latest version of
90863         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90864
90865         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90866         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90867         AC_CHECK_TYPE.
90868
90869 1999-10-04  Jim Meyering  <meyering@ascend.com>
90870
90871         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90872
90873 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90874
90875         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90876         2.95.1 bug with HP-UX 10.20.
90877
90878 1999-09-17  Jim Meyering  <meyering@ascend.com>
90879
90880         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90881         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90882         due to missing strdup (against sh-utils-2.0).
90883
90884 1999-08-29  Jim Meyering  <meyering@ascend.com>
90885
90886         * m4/jm-macros.m4: Require jm_BISON.
90887         * m4/bison.m4: New file.
90888
90889 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90890
90891         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90892         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90893
90894 1999-08-05  Jim Meyering  <meyering@ascend.com>
90895
90896         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90897         to avoid conflicts with `conftest' on 8+3 filesystems.
90898         Suggestion from Eli Zaretskii.
90899
90900 1999-08-04  Jim Meyering  <meyering@ascend.com>
90901
90902         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90903         fileutils and sh-utils (textutils's getline test was inadequate).
90904         (AM_FUNC_GETLINE): Run this test.
90905         (AC_CHECK_FUNCS): Check for getdelim.
90906         Reported by Bob Proulx.
90907
90908 1999-08-02  Jim Meyering  <meyering@ascend.com>
90909
90910         * m4/jm-macros.m4: Add a comment.
90911
90912 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90913
90914         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90915         <inttypes.h> defines strtoumax as a macro (and not as a
90916         function).
90917
90918 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90919
90920         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90921         that we can shift, multiply and divide unsigned long long
90922         values; Ultrix cc can't do it.
90923
90924 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90925
90926         * m4/mktime.m4: New file, which is a preview of what should appear
90927         in the next public autoconf release.
90928
90929 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90930
90931         * m4/lfs.m4: Remove this file.
90932         * m4/largefile.m4: New file.  It contains the old contents of
90933         lfs.m4, except that all names with prefix AC_LFS have been
90934         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90935         compatible with future autoconf versions.  Also, some minor m4
90936         quoting problems have been fixed.
90937
90938 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90939
90940         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90941         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90942         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90943         and simplify the shell code.
90944
90945 1999-08-01  Jim Meyering  <meyering@ascend.com>
90946
90947         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90948         m4.
90949
90950 1999-07-20  Jim Meyering  <meyering@ascend.com>
90951
90952         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90953
90954 1999-07-15  Jim Meyering  <meyering@ascend.com>
90955
90956         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90957
90958 1999-05-22  Jim Meyering  <meyering@ascend.com>
90959
90960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90961
90962 1999-05-20  Jim Meyering  <meyering@ascend.com>
90963
90964         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90965         Add a colon after each `then' in case $4 is empty.
90966
90967 1999-05-16  Jim Meyering  <meyering@ascend.com>
90968
90969         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90970
90971 1999-05-10  Jim Meyering  <meyering@ascend.com>
90972
90973         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90974
90975         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90976         AC_FUNC_MKTIME.
90977
90978 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90979
90980         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90981
90982 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90983
90984         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90985         not CPPFLAGS, so that linking works correctly in IRIX.
90986
90987 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90988
90989         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90990
90991 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90992
90993         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90994         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90995         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90996         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90997         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90998
90999         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91000
91001 1999-04-20  Jim Meyering  <meyering@ascend.com>
91002
91003         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91004         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91005         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91006
91007 1999-04-18  Jim Meyering  <meyering@ascend.com>
91008
91009         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91010         * m4/jm-macros.m4: Use it.
91011
91012 1999-04-06  Jim Meyering  <meyering@ascend.com>
91013
91014         * m4/strftime.m4: Remove test for %f.
91015
91016 1999-03-29  Jim Meyering  <meyering@ascend.com>
91017
91018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91019         superset of the AC_TYPE_* checks in the textutils, fileutils,
91020         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91021         AC_TYPE_PID_T.
91022
91023 1999-03-28  Jim Meyering  <meyering@ascend.com>
91024
91025         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91026         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91027         replaced e.g., in the *.sh files of the sh-utils.
91028
91029 1999-03-20  Jim Meyering  <meyering@ascend.com>
91030
91031         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91032         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91033         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91034
91035 1999-03-19  Jim Meyering  <meyering@ascend.com>
91036
91037         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91038
91039 1999-03-12  Jim Meyering  <meyering@ascend.com>
91040
91041         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91042
91043 1999-03-07  Jim Meyering  <meyering@ascend.com>
91044
91045         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91046         declared.
91047
91048 1999-02-17  Jim Meyering  <meyering@ascend.com>
91049
91050         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91051         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91052
91053 1999-02-07  Jim Meyering  <meyering@ascend.com>
91054
91055         * m4/group-member.m4: New file -- extracted from sh-utils'
91056         configure.in.
91057
91058         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91059         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91060
91061 1999-02-06  Jim Meyering  <meyering@ascend.com>
91062
91063         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91064         * m4/fnmatch.m4: Likewise.
91065         * m4/getgroups.m4: Likewise.
91066         * m4/lstat.m4: Likewise.
91067         * m4/malloc.m4: Likewise.
91068         * m4/putenv.m4: Likewise.
91069         * m4/realloc.m4: Likewise.
91070         * m4/regex.m4: Likewise.
91071         * m4/stat.m4: Likewise.
91072         * m4/strftime.m4: Likewise.
91073         Suggestion from Alain Magloire.
91074
91075         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91076         * m4/fnmatch.m4: Likewise.
91077         * m4/getgroups.m4: Likewise.
91078         * m4/getline.m4: Likewise.
91079         * m4/lstat.m4: Likewise.
91080         * m4/malloc.m4: Likewise.
91081         * m4/memcmp.m4: Likewise.
91082         * m4/putenv.m4: Likewise.
91083         * m4/realloc.m4: Likewise.
91084         * m4/regex.m4: Likewise.
91085         * m4/stat.m4: Likewise.
91086         * m4/strftime.m4: Likewise.
91087         Suggestion from Alain Magloire.
91088
91089         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91090         an argument.
91091
91092         * m4/regex.m4: Add a run-time Test for proper operation of
91093         re_compile_pattern.
91094
91095 1999-01-31  Jim Meyering  <meyering@ascend.com>
91096
91097         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91098
91099 1999-01-30  Jim Meyering  <meyering@ascend.com>
91100
91101         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91102
91103         * m4/jm-mktime.m4: Make this a wrapper around the official
91104         AM_FUNC_MKTIME rather than my private copy, now that the official one
91105         is up to date.
91106         * m4/mktime.m4: Remove file.
91107
91108         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91109         * m4/uptime.m4: Likewise.
91110         * m4/uintmax_t.m4: Likewise.
91111
91112 1999-01-28  Jim Meyering  <meyering@ascend.com>
91113
91114         * m4/jm-macros.m4: Use jm_AFS.
91115         * m4/afs.m4: New file (from fileutils' configure.in).
91116
91117         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91118         * m4/chown.m4: Likewise.
91119         * m4/d-ino.m4: Likewise.
91120         * m4/d-type.m4: Likewise.
91121         * m4/fnmatch.m4: Likewise.
91122         * m4/getgroups.m4: Likewise.
91123         * m4/gettext.m4: Likewise.
91124         * m4/jm-mktime.m4: Likewise.
91125         * m4/jm-winsz2.m4: Likewise.
91126         * m4/lcmessage.m4: Likewise.
91127         * m4/ls-mntd-fs.m4: Likewise.
91128         * m4/malloc.m4: Likewise.
91129         * m4/memcmp.m4: Likewise.
91130         * m4/putenv.m4: Likewise.
91131         * m4/realloc.m4: Likewise.
91132         * m4/st_mtim.m4: Likewise.
91133         * m4/strftime.m4: Likewise.
91134
91135 1999-01-16  Jim Meyering  <meyering@ascend.com>
91136
91137         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91138         (ARGMATCH_DIE_DECL): Define.
91139
91140 1999-01-12  Jim Meyering  <meyering@ascend.com>
91141
91142         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91143         Reported by Lars Hecking.
91144
91145 1999-01-10  Jim Meyering  <meyering@ascend.com>
91146
91147         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91148         gross kludge.
91149         * m4/inttypes_h.m4: Likewise.
91150         * m4/lstat.m4: Likewise.
91151         * m4/malloc.m4: Likewise.
91152         * m4/readdir.m4: Likewise.
91153         * m4/realloc.m4: Likewise.
91154         * m4/st_dm_mode.m4: Likewise.
91155         * m4/stat.m4: Likewise.
91156         * m4/utimbuf.m4: Likewise.
91157         * m4/utimes.m4: Likewise.
91158
91159         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91160         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91161         comments in config.h.in are meaningful.
91162
91163         * m4/jm-macros.m4: Require autoconf-2.13 here.
91164
91165         * m4/regex.m4: By default, don't use the included regex.c on systems
91166         with glibc 2.  Suggestion from Uli Drepper.
91167
91168 1999-01-02  Jim Meyering  <meyering@ascend.com>
91169
91170         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91171
91172 1998-12-18  Jim Meyering  <meyering@ascend.com>
91173
91174         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91175         Based on a suggestion from Lars Hecking.
91176
91177 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91178
91179         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91180
91181 1998-11-16  Jim Meyering  <meyering@ascend.com>
91182
91183         * m4/lfs.m4: Double-quote the `uname...` expression.
91184
91185 1998-11-14  Jim Meyering  <meyering@ascend.com>
91186
91187         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91188         * m4/stat.m4: Likewise.
91189
91190 1998-11-03  Jim Meyering  <meyering@ascend.com>
91191
91192         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91193         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91194
91195 1998-10-18  Jim Meyering  <meyering@ascend.com>
91196
91197         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91198
91199 1998-10-17  Jim Meyering  <meyering@ascend.com>
91200
91201         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91202         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91203         calls for those previously hard-coded headers.  Instead, take a new
91204         parameter.
91205         (jm_CHECK_DECLARATIONS): Reflect interface change.
91206         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91207         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91208
91209         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91210
91211 1998-10-14  Jim Meyering  <meyering@ascend.com>
91212
91213         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91214         instead of "TZ=America/Vancouver".  From Paul Eggert.
91215
91216 1998-10-11  Jim Meyering  <meyering@ascend.com>
91217
91218         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91219         This adds a test for a recently added compatibility fix for mktime.c.
91220         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91221
91222 1998-09-27  Jim Meyering  <meyering@ascend.com>
91223
91224         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91225
91226         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91227         ../configure.in, including a change from Gordon Matzigkeit to allow
91228         cross-compiling for the Hurd.
91229
91230         * m4/glibc.m4: New file/macro to test for the GNU C Library
91231         versions 1 and 2.  From Gordon Matzigkeit.
91232         Indent.
91233
91234 1998-09-21  Jim Meyering  <meyering@ascend.com>
91235
91236         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91237
91238 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91239
91240         Port nanosecond-resolution times to UnixWare 2.1.2 and
91241         pedantic Solaris 2.6.
91242
91243         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91244         AC_STRUCT_ST_MTIM.
91245         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91246         Generate name of ns member, instead of just 1 or undef.
91247         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91248
91249 1998-08-15  Jim Meyering  <meyering@ascend.com>
91250
91251         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91252         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91253         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91254         instead of jm_TYPE_SSIZE_T.
91255
91256 1998-08-12  Jim Meyering  <meyering@ascend.com>
91257
91258         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91259
91260 1998-08-02  Jim Meyering  <meyering@ascend.com>
91261
91262         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91263         in acconfig.h manually.
91264
91265 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91266
91267         * m4/st_mtim.m4: New file.
91268
91269 1998-07-28  Jim Meyering  <meyering@ascend.com>
91270
91271         * m4/utimes.m4: Undef stat.
91272
91273 1998-07-25  Jim Meyering  <meyering@ascend.com>
91274
91275         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91276         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91277
91278 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91279
91280         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91281         uid and gid actually remain unchanged.
91282
91283 1998-07-07  Jim Meyering  <meyering@ascend.com>
91284
91285         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91286
91287 1998-07-04  Jim Meyering  <meyering@ascend.com>
91288
91289         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91290         to prove that this macro can be used in packages without regex.c.
91291
91292 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91293
91294         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91295         is to be used.
91296
91297 1998-07-03  Jim Meyering  <meyering@ascend.com>
91298
91299         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91300
91301         * m4/gettext.m4: New file -- from gettext-0.10.35.
91302         * m4/lcmessage.m4: Likewise.
91303         * m4/progtest.m4: Likewise.
91304
91305         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91306         * m4/jm-macros.m4: Require the new macro.
91307
91308 1998-06-29  Jim Meyering  <meyering@ascend.com>
91309
91310         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91311         for the definition of NGROUPS (used in a system header included
91312         by sys/mount.h).
91313
91314 1998-06-28  Jim Meyering  <meyering@ascend.com>
91315
91316         * m4/ls-mntd-fs.m4: New file.
91317         * m4/fstypename.m4: New file.
91318
91319         * m4/jm-macros.m4: Require the new macro.
91320         * m4/jm-glibc-io.m4: New file.
91321
91322 1998-05-19  Jim Meyering  <meyering@ascend.com>
91323
91324         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91325         * m4/lchown.m4: New file.
91326
91327         * m4/Makefile.am.in: New file.
91328         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91329
91330 1998-05-14  Jim Meyering  <meyering@ascend.com>
91331
91332         * m4/Makefile.am (EXTRA_DIST): Add them.
91333         * m4/jm-macros.m4: New file.
91334         * m4/utimbuf.m4: New file.
91335
91336 1998-05-12  Jim Meyering  <meyering@ascend.com>
91337
91338         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91339
91340 1998-05-11  Jim Meyering  <meyering@ascend.com>
91341
91342         * m4/isc-posix.m4: New file.
91343
91344 1998-05-10  Jim Meyering  <meyering@ascend.com>
91345
91346         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91347
91348 1998-05-09  Jim Meyering  <meyering@ascend.com>
91349
91350         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91351         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91352         with automake.
91353
91354         * m4/ssize_t.m4: New file.
91355         * m4/mktime.m4: Remove file -- the new automake has this now.
91356
91357 1998-04-26  Jim Meyering  <meyering@ascend.com>
91358
91359         * m4/assert.m4: New file.
91360         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91361
91362 1998-04-05  Jim Meyering  <meyering@ascend.com>
91363
91364         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91365         (jm_PREREQ): Use it here.
91366
91367 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91368
91369         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91370         in acconfig.h.
91371
91372 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91373
91374         * m4/prereq.m4: New file.
91375         * m4/error.m4: New file.
91376         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91377
91378 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91379
91380         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91381         cache-check for the same variable -- that defeated the purpose of
91382         the test; the test program was never run.  This was a problem only
91383         on systems with losing getline functions -- HP-UX 10.20 is one.
91384         Reported by Bjorn Helgaas.
91385
91386 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91387
91388         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91389
91390 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91391
91392         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91393
91394         * m4/const.m4: New file.  Use an initializer in this declaration
91395         typedef int charset[2]; const charset x;
91396         Reported by Bob Glickstein.
91397
91398 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91399
91400         * m4/chown.m4: Fix reversed types on -1 args to chown.
91401         From Kaveh Ghazi.
91402
91403 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91404
91405         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91406         Add lseek and memchr.
91407
91408         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91409         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91410         have a 20-character limit on names.
91411
91412 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91413
91414         * m4/inttypes_h.m4: New file.
91415         * m4/uintmax_t.m4: New file.
91416         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91417
91418
91419         -----
91420
91421         Local Variables:
91422         coding: utf-8
91423         End:
91424
91425         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91426
91427         Copying and distribution of this file, with or without
91428         modification, are permitted provided the copyright notice
91429         and this notice are preserved.