malloca: Avoid warnings on x86_64 mingw64.
[gnulib.git] / ChangeLog
1 2012-01-24  Marc-AndrĂ© Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2             Bruno Haible  <bruno@clisp.org>
3
4         malloca: Avoid warnings on x86_64 mingw64.
5         * lib/malloca.c: Include <stdint.h>.
6         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7         * modules/malloca (Depends-on): Add stdint.
8         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9
10 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
11
12         obstack: remove __STDC__ conditionals
13         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
14         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
15         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
16         m4/include_next.m4 as the only gnulib-maintained places that still
17         refer to __STDC__.
18
19 2012-01-24  Bruno Haible  <bruno@clisp.org>
20
21         havelib: Modern quoting.
22         * build-aux/config.rpath: Quote 'like this', not `like this', as per
23         the recent change to the GNU coding standards.
24
25 2012-01-24  Bruno Haible  <bruno@clisp.org>
26
27         stdint: Improve support for Android.
28         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
29         Reported by Simon Josefsson <simon@josefsson.org>.
30
31 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32
33         doc: omit trailing empty lines from INSTALL etc.
34         * doc/Makefile (INSTALL): Omit trailing empty lines.
35         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
36         omit trailing empty lines.  This simplifies the build procedure.
37
38 2012-01-23  Jim Meyering  <meyering@redhat.com>
39
40         tests: avoid spurious warnings about gl_sockets_startup
41         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43         reporting a "statement with no effect".
44         * tests/test-accept.c (main): Mark as "(void)".
45         * tests/test-accept4.c (main): Likewise.
46         * tests/test-bind.c (main): Likewise.
47         * tests/test-connect.c (main): Likewise.
48         * tests/test-getpeername.c (main): Likewise.
49         * tests/test-getsockname.c (main): Likewise.
50         * tests/test-getsockopt.c (main): Likewise.
51         * tests/test-listen.c (main): Likewise.
52         * tests/test-recv.c (main): Likewise.
53         * tests/test-recvfrom.c (main): Likewise.
54         * tests/test-send.c (main): Likewise.
55         * tests/test-sendto.c (main): Likewise.
56         * tests/test-setsockopt.c (main): Likewise.
57         * tests/test-shutdown.c (main): Likewise.
58
59 2012-01-21  Bruno Haible  <bruno@clisp.org>
60
61         locale-fr.m4: Fix for Android.
62         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
63         failure of the test program on Bionic libc.
64
65 2012-01-21  Jim Meyering  <meyering@redhat.com>
66
67         bootstrap: fail when bootstrap_post_import_hook fails
68         Otherwise, it's far too easy to miss diagnostics emitted
69         between gnulib-tool's output and that of running configure.
70         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
71
72 2012-01-17  Jim Meyering  <meyering@redhat.com>
73
74         maint: enable sc_trailing_blank
75         * build-aux/pmccabe.css: Remove trailing blanks.
76         * doc/acl-cygwin.txt: Likewise.
77         * doc/gnu-oids.texi: Likewise
78         * cfg.mk: Enable sc_trailing_blank.
79         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
80
81 2012-01-17  Jim Meyering  <meyering@redhat.com>
82
83         maint: enable sc_prohibit_openat_without_use
84         * cfg.mk: Enable sc_prohibit_openat_without_use.
85         Exempt lib/selinux-at.c.
86
87 2012-01-17  Jim Meyering  <meyering@redhat.com>
88
89         maint: enable sc_prohibit_cloexec_without_use
90         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
91         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
92
93 2012-01-17  Jim Meyering  <meyering@redhat.com>
94
95         maint: enable sc_prohibit_intprops_without_use
96         * cfg.mk: Enable sc_prohibit_intprops_without_use
97         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
98
99 2012-01-17  Jim Meyering  <meyering@redhat.com>
100
101         maint: enable sc_prohibit_hash_pjw_without_use
102         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
103         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
104         to match any use of \<hash_pjw\>, i.e., not necessarily with a
105         following " (".
106
107 2012-01-17  Jim Meyering  <meyering@redhat.com>
108
109         maint: enable double-word-prohibiting rule
110         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
111         Exempt three files.
112
113 2012-01-17  Jim Meyering  <meyering@redhat.com>
114
115         maint: remove empty lines at EOF, but excluding modules/*
116         Apply syntax rules at home as well as abroad.  Most changes
117         were induced by running this:
118           make srcdir=. _build-aux=build-aux -f top/maint.mk \
119             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
120             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
121         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
122         Exempt modules/* and two binary files.
123         Also exempt doc/INSTALL*, per request from Bruno Haible.
124         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
125         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
126         * doc/Copyright/request-assign.future: Likewise.
127         * doc/Copyright/request-disclaim.changes: Likewise.
128         * doc/INSTALL: Likewise.
129         * doc/INSTALL.ISO: Likewise.
130         * doc/INSTALL.UTF-8: Likewise.
131         * doc/acl-cygwin.txt: Likewise.
132         * doc/acl-resources.txt: Likewise.
133         * doc/fdl-1.2.texi: Likewise.
134         * doc/fdl-1.3.texi: Likewise.
135         * doc/fdl.texi: Likewise.
136         * lib/argp-pin.c: Likewise.
137         * lib/round.c: Likewise.
138         * lib/unicase/u16-totitle.c: Likewise.
139         * lib/unictype/block_test.c: Likewise.
140         * lib/uninorm/canonical-decomposition.c: Likewise.
141         * m4/README: Likewise.
142         * m4/relocatable-lib.m4: Likewise.
143         * tests/test-isnand-nolibm.c: Likewise.
144         * tests/test-isnand.c: Likewise.
145         * tests/uninorm/NormalizationTest.txt: Likewise.
146
147 2012-01-17  Jim Meyering  <meyering@redhat.com>
148
149         maint: add framework to run syntax-check rules against gnulib sources
150         * cfg.mk: New file, to disable all currently-failing tests.
151         We'll enable them one by one, as they are made to pass.
152         * Makefile (sc_maint): New rule.
153
154 2012-01-21  Bruno Haible  <bruno@clisp.org>
155
156         stdint: Add support for Android.
157         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
158         include the system's <stdint.h>.
159         Reported by Simon Josefsson <simon@josefsson.org>.
160
161 2012-01-19  Jim Meyering  <meyering@redhat.com>
162
163         bootstrap: add bootstrap_post_import_hook
164         Bison does still need something like the gnulib_mk_hook whose
165         invocation I had to remove along with slurp in commit 767ccd40.
166         Technically, we could get along without it, but doing so would
167         have required living with a warning and a mandatory post-bootstrap
168         automake rerun.
169         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
170         (bootstrap_post_import_hook): New function.
171         Invoke it after gnulib-tool --import and before autoreconf.
172
173 2012-01-18  Jim Meyering  <meyering@redhat.com>
174
175         gitlog-to-changelog: don't use "no_"-prefixed variable name
176         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
177         to enable both --cluster and --no-cluster.  Change variable name,
178         s/\$no_cluster/$cluster/, and reverse usage to match.
179
180         gitlog-to-changelog: use "||", not "or" in expressions
181         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
182         expressions.
183
184 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
185
186         gitlog-to-changelog: new option --no-cluster
187         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
188         clustering of adjacent commit messages.
189
190 2012-01-17  Jim Meyering  <meyering@redhat.com>
191
192         maint: spell file systems with two words, not one
193         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
194         two words, not one.
195
196 2012-01-16  Jim Meyering  <meyering@redhat.com>
197
198         bootstrap: add a FIXME comment to ensure we eventually remove the hack
199         * build-aux/bootstrap (gnulib_tool_options): Add comment.
200
201 2012-01-16  Eric Blake  <eblake@redhat.com>
202
203         bootstrap: cater to autoconf 2.59
204         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
205         is not available.
206
207         bootstrap: properly check for libtool
208         * build-aux/bootstrap (libtoolize): Also run libtool when older
209         usage is detected.
210
211 2012-01-15  Bruno Haible  <bruno@clisp.org>
212
213         Improve support for MSVC 9.
214         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
215         clashes on MSVC.
216         * lib/fcntl.in.h: Likewise.
217         * lib/stdlib.in.h: Likewise.
218         * lib/sys_stat.in.h: Likewise.
219
220 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
221
222         gnupload: we hold the master copy of this script now
223         For motivation and more information, see:
224         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
225         * build-aux/gnupload: Make it clear in the heading comments that the
226         master copy of this file is maintained by gnulib.  Since we are at
227         it, bump its copyright year and ...
228         ($scriptversion): ... the date in its version.
229         ($usage): Patches and bug reports should be sent to the gnulib list,
230         not the automake one.
231         * config/srclist.txt: Don't try to sync 'gnupload' from automake
232         anymore.
233
234 2012-01-15  Bruno Haible  <bruno@clisp.org>
235
236         Fix module 'random'.
237         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
238         initstate, setstate are declared.
239
240 2012-01-14  Bruno Haible  <bruno@clisp.org>
241
242         Tests for module 'random'.
243         * modules/random-tests: New file.
244         * tests/test-random.c: New file, based on tests/test-random_r.c.
245
246         New module 'random'.
247         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
248         declarations.
249         * lib/random.c: New file, based on glibc/stdlib/random.c.
250         * m4/random.m4: New file.
251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
252         HAVE_RANDOM.
253         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
254         * modules/random: New file.
255         * config/srclist.txt: Add an entry for random.c.
256         * doc/posix-functions/random.texi: Mention the 'random' module.
257         * doc/posix-functions/initstate.texi: Likewise.
258         * doc/posix-functions/setstate.texi: Likewise.
259         * doc/posix-functions/srandom.texi: Likewise.
260
261 2012-01-12  Bruno Haible  <bruno@clisp.org>
262
263         random_r: Use common idioms.
264         * lib/random_r.c: Include <stdlib.h> first.
265
266         random_r: Override incompatible API on AIX, OSF/1.
267         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
268         Override the system function if REPLACE_RANDOM_R is 1.
269         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
270         and OSF/1, set REPLACE_RANDOM_R.
271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
272         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
273         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
274         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
275         * doc/glibc-functions/random_r.texi: Likewise.
276         * doc/glibc-functions/setstate_r.texi: Likewise.
277
278         random_r: Support for MSVC 9.
279         * lib/random_r.c: Include stdint.h, not inttypes.h.
280
281 2012-01-12  Eric Blake  <eblake@redhat.com>
282
283         inet_ntop: guard extra work by IF_LINT
284         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
285         better code generation when not checking for warnings.
286         Suggested by Paul Eggert and Jim Meyering.
287
288         strptime: fix regression on mingw
289         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
290         Fix regression.  Reported by Bruno Haible.
291
292 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
293             Bruno Haible  <bruno@clisp.org>
294
295         copy-file: add error-code-returning variant.
296         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
297         (qcopy_file_preserving): New declaration.
298         * lib/copy-file.c (qcopy_file_preserving): Renamed from
299         copy_file_preserving. Change return type to 'int'. Don't emit an error
300         message here.
301         (copy_file_preserving): New function.
302         * tests/test-copy-file.c: Include <stdlib.h>.
303         (main): Test qcopy_file_preserving if the environment variable
304         NO_STDERR_OUTPUT is set.
305         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
306         with NO_STDERR_OUTPUT
307         * tests/test-copy-file-2.sh: Likewise.
308
309 2012-01-10  Bruno Haible  <bruno@clisp.org>
310
311         copy-file: Use 'quote' module consistently.
312         * lib/copy-file.c (copy_file_preserving): Use quote().
313
314         copy-file: Refactor.
315         * lib/copy-file.c: Include quote.h.
316         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
317         message here.
318         * modules/copy-file (Depends-on): Add quote.
319
320         acl: Export qcopy_acl.
321         * lib/acl.h (qcopy_acl): New declaration.
322         * lib/copy-acl.c (qcopy_acl): Make non-static.
323
324         acl: Rename a local variable.
325         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
326
327         acl: Align return values of copy_acl and qcopy_acl.
328         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
329         maybe < -1.
330
331 2012-01-11  Eric Blake  <eblake@redhat.com>
332
333         strptime: silence gcc warnings
334         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
335         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
336         Reported by Daniel P. Berrange.
337
338         inet_ntop: silence gcc warning
339         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
340         Reported by Daniel P. Berrange.
341
342 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
343
344         getloadavg test: skip the test on GNU/Linux without /proc mounted
345         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
346         file.  When /proc is not mounted, it always fails with ENOENT.
347         * tests/test-getloadavg.c (main): Treat ENOENT return code from
348         getloadavg(3) the same way as ENOSYS and ENOTSUP.
349
350 2012-01-10  Bruno Haible  <bruno@clisp.org>
351
352         regex: Avoid link error on MSVC 9.
353         * modules/regex (Depends-on): Add wctype.
354
355 2012-01-10  Bruno Haible  <bruno@clisp.org>
356
357         doc: Mention --with-tests option.
358         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
359         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
360         --with-tests.
361         Reported by Reuben Thomas.
362
363 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
364
365         users.txt: order package names lexicographically.
366         * users.txt: Order package names lexicographically.
367
368 2012-01-10  Jim Meyering  <meyering@redhat.com>
369
370         maint.mk: fix description in comment
371         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
372
373         ignore-value: remove deprecated ignore_ptr function
374         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
375         * NEWS: Note this.
376
377 2012-01-09  Jim Meyering  <meyering@redhat.com>
378
379         test-init.sh: avoid a subshell
380         * tests/test-init.sh: Remove protective subshell.
381         Suggested by Bernhard Voelker.  While a subshell is normally
382         required to protect against older shells (Solaris, FreeBSD) that
383         warn about a missing program before performing redirection, the
384         shell-selection tests performed by init.sh probably exclude any
385         offending shell.
386
387 2012-01-08  Bruno Haible  <bruno@clisp.org>
388
389         setlocale tests: Avoid test failure on Solaris 11 2011-11.
390         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
391         variable.
392
393 2012-01-08  Bruno Haible  <bruno@clisp.org>
394
395         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
396         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
397         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
398         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
399         macro.
400         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
401         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
402         * lib/spawn_faction_addopen.c: Add workaround implementation if
403         HAVE_WORKING_POSIX_SPAWN.
404         * modules/spawn (Makefile): Substitute
405         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
406         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
407         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
408         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
409         (Depends-on): Update conditions.
410         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
411         the Solaris 11 bug.
412
413 2012-01-08  Bruno Haible  <bruno@clisp.org>
414
415         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
416         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
417         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
418         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
419         macro.
420         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
421         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
422         * lib/spawn_faction_adddup2.c: Add workaround implementation if
423         HAVE_WORKING_POSIX_SPAWN.
424         * modules/spawn (Makefile): Substitute
425         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
426         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
427         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
428         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
429         (Depends-on): Update conditions.
430         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
431         the Solaris 11 bug.
432
433 2012-01-08  Bruno Haible  <bruno@clisp.org>
434
435         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
436         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
437         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
438         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
439         HAVE_WORKING_POSIX_SPAWN.
440         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
441         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
442         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
443         * lib/spawn_faction_addclose.c: Add workaround implementation if
444         HAVE_WORKING_POSIX_SPAWN.
445         * modules/spawn (Makefile): Substitute
446         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
447         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
448         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
449         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
450         (Depends-on): Update conditions.
451         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
452         the Solaris 11 bug.
453
454 2012-01-08  Bruno Haible  <bruno@clisp.org>
455
456         doc: Update for Solaris 11 2011-11.
457         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
458         * m4/printf.m4: Update comments.
459
460 2012-01-08  Bruno Haible  <bruno@clisp.org>
461
462         mktime: Avoid compilation error on Solaris 11.
463         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
464
465 2012-01-08  Bruno Haible  <bruno@clisp.org>
466
467         doc: Small fix.
468         * doc/posix-headers/nl_types.texi: Correct platforms list.
469
470 2012-01-08  Simon Josefsson  <simon@josefsson.org>
471
472         Add lgpl-3.0 module.
473         * MODULES.html.sh (Support for building documentation): Add
474         lgpl-3.0.
475         * modules/lgpl-3.0: New file.
476
477 2012-01-08  Jim Meyering  <meyering@redhat.com>
478
479         select.c: indent with spaces, not TABs
480         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
481
482 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
483
484         quotearg: do not use grave accent for left quote
485         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
486         locale_quoting_style.
487         (quotearg_buffer_restyled): Fix example.
488         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
489
490 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
491
492         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
493         Most programs do not have translation catalogs for English and much
494         less separate catalogs for British and American English.  Drop the
495         suggestion to translators about these two, and provide it
496         automatically for Unicode locales.  Like most programs, even those
497         using American English, we use single quotation marks.  This conflicts
498         with the American typographic convention, but works better when you
499         cite the entire error message within double quotes.  It also tries not
500         to clash with established practice and with what non-gnulib programs
501         will usually do.
502         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
503         using an UTF-8 or GB-18030 locale.  The list of other locales with
504         quotes was provided by Bruno Haible.
505         (quotearg_buffer_restyled): Adjust instructions to translators.
506         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
507         text, since this would be wrong when using Unicode.
508         * modules/quotearg: Depend on c-strcaseeq.
509
510 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
511
512         quotearg: fix Wikipedia link
513         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
514
515 2012-01-07  Simon Josefsson  <simon@josefsson.org>
516
517         Fix for mingw with MSVC9.
518         * m4/ld-version-script.m4: Check that compiler rejects version
519         scripts with syntax errors.  Reported by Bruno Haible
520         <bruno@clisp.org>.
521
522 2012-01-06  Bruno Haible  <bruno@clisp.org>
523
524         Talk about "native Windows API", not "Woe32".
525         * lib/accept4.c: Update comments to mention native Windows.
526         * lib/execute.c: Likewise.
527         * lib/fatal-signal.c: Likewise.
528         * lib/localcharset.c: Likewise.
529         * lib/nanosleep.c: Likewise.
530         * lib/nl_langinfo.c: Likewise.
531         * lib/pclose.c: Likewise.
532         * lib/pipe-filter-gi.c: Likewise.
533         * lib/pipe-filter-ii.c: Likewise.
534         * lib/pipe.c: Likewise.
535         * lib/pipe2.c: Likewise.
536         * lib/popen.c: Likewise.
537         * lib/progreloc.c: Likewise.
538         * lib/relocatable.c: Likewise.
539         * lib/sigaction.c: Likewise.
540         * lib/sigprocmask.c: Likewise.
541         * lib/spawn-pipe.h: Likewise.
542         * lib/spawn-pipe.c: Likewise.
543         * lib/spawni.c: Likewise.
544         * lib/stat-time.h: Likewise.
545         * lib/w32spawn.h: Likewise.
546         * tests/test-isatty.c: Likewise.
547         * lib/config.charset: More comments.
548         * doc/gnulib-intro.texi: Mention native Windows.
549         * doc/posix-functions/_Exit_C99.texi: Likewise.
550         * doc/posix-headers/fcntl.texi: Likewise.
551
552 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
553
554         argp: Avoid crash if translator uses % characters in a translation.
555         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
556         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
557
558 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
559
560         doc: C11 and C++11 are now official
561         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
562         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
563         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
564         * modules/stdalign:
565         Replace references to draft C1X to C11, and to draft C++0X to C++11.
566
567 2012-01-06  Bruno Haible  <bruno@clisp.org>
568
569         uc-is-grapheme-break tests: Tweak.
570         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
571         message.
572
573 2012-01-06  Bruno Haible  <bruno@clisp.org>
574
575         test-init.sh: correct the test for diff -u
576         * tests/test-init.sh: Also redirect stdout to /dev/null.
577
578 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
579
580         Use ', not `, for quoting output.
581         * build-aux/announce-gen (usage, sizes, print_news_deltas)
582         (print_changelog_deltas, get_tool_versions, main program):
583         * build-aux/git-version-gen:
584         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
585         * build-aux/move-if-change (help):
586         * build-aux/useless-if-before-free (usage, main program):
587         * check-module (parse_module_file, usage)
588         (find_included_lib_files, check_module):
589         * lib/argmatch.c (main) [TEST]:
590         * lib/argp-help.c (_help):
591         * lib/getopt1.c (main) [TEST]:
592         * lib/git-merge-changelog.c (usage):
593         * lib/xstrtol-error.c (xstrtol_error):
594         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
595         * m4/argz.m4 (gl_FUNC_ARGZ):
596         * m4/bison.m4 (gl_BISON):
597         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
598         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
599         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
600         * m4/fpending.m4 (gl_PREREQ_FPENDING):
601         * m4/gc-random.m4 (gl_GC_RANDOM):
602         * m4/intl.m4 (gt_CHECK_DECL):
603         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
604         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
605         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
606         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
607         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
608         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
609         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
610         * tests/test-dirname.c (main):
611         * tests/test-getpass.c (main):
612         * tests/test-iconvme.c (main):
613         * tests/test-parse-datetime.c (LOG):
614         * tests/test-xstrtoimax.sh:
615         * tests/test-xstrtol.sh:
616         * tests/test-xstrtoll.sh:
617         * tests/test-xstrtoumax.sh:
618         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
619         * top/GNUmakefile (abort-due-to-no-makefile):
620         Quote 'like this', not `like this', as per the recent change to
621         the GNU coding standards.
622
623 2012-01-05  Bruno Haible  <bruno@clisp.org>
624
625         strtoimax: Don't force a replacement on systems where intmax_t is int.
626         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
627         'intmax_t' is not larger than 'int'.
628         Reported by PĂ¡draig Brady <P@draigBrady.com>.
629
630 2012-01-05  Bruno Haible  <bruno@clisp.org>
631
632         doc: Mention NetBSD bugs.
633         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
634         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
635
636 2012-01-05  Bruno Haible  <bruno@clisp.org>
637
638         strtoumax tests: Enhance tests.
639         * tests/test-strtoumax.c (main): Add tests for large values.
640
641 2012-01-05  Bruno Haible  <bruno@clisp.org>
642
643         strtoimax: Work around AIX 5.1 bug.
644         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
645         definition.
646         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
647         Set HAVE_STRTOIMAX.
648         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
649         REPLACE_STRTOIMAX.
650         * modules/inttypes-incomplete (Makefile.am): Substitute
651         REPLACE_STRTOIMAX.
652         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
653         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
654         (Depends-on): Update conditions.
655         * tests/test-strtoimax.c (main): Add tests for large values.
656         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
657
658 2012-01-05  Bruno Haible  <bruno@clisp.org>
659
660         inttypes: Modernize.
661         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
662         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
663         (Makefile.am): Update inttypes.h rule.
664
665 2012-01-05  Jim Meyering  <meyering@redhat.com>
666
667         init.sh: don't waste a subshell just to redirect stderr
668         * tests/init.sh: In testing for diff -u and diff -c, use a
669         stderr-redirecting exec inside `...` rather than a subshell.
670
671         test-init.sh: avoid failure on HP-UX 11.00
672         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
673         resolves to diff -c or cmp.  Reported by Bruno Haible.
674
675 2012-01-05  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'strtoull'.
678         * modules/strtoull-tests: New file.
679         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
680
681 2012-01-05  Bruno Haible  <bruno@clisp.org>
682
683         Tests for module 'strtoll'.
684         * modules/strtoll-tests: New file.
685         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
686
687 2012-01-05  Bruno Haible  <bruno@clisp.org>
688
689         Tests for module 'strtoul'.
690         * modules/strtoul-tests: New file.
691         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
692
693 2012-01-05  Bruno Haible  <bruno@clisp.org>
694
695         Tests for module 'strtol'.
696         * modules/strtol-tests: New file.
697         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
698
699 2012-01-04  Jim Meyering  <meyering@redhat.com>
700
701         test-init.sh: accommodate Solaris 5.10's different diff -u output
702         * tests/test-init.sh: Also exempt @@ lines from the comparison
703         of diff output, since Solaris 5.10 and GNU diff formats differ.
704         Reported by Stefano Lattarini.
705
706 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
707
708         test-posixtm: don't assume signed integer wraparound
709         * tests/test-posixtm.c (main): Don't assume wraparound semantics
710         after signed integer overflow.  Inspired by (though it may not
711         fix) Bruno Haible's bug report in
712         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
713
714         Spell out "Windows 9x" and "Windows XP".
715         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
716         "Windows 9x" and "WinXP" with "Windows XP".
717
718 2012-01-04  Jim Meyering  <meyering@redhat.com>
719
720         test-vc-list-files-cvs.sh: remove obsolete comment
721         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
722         double exit.  Now that's all encapsulated via skip_ and Exit.
723
724 2012-01-04  Bruno Haible  <bruno@clisp.org>
725
726         Talk about "native Windows API", not "Win32".
727         * lib/classpath.c: Update comments to mention native Windows.
728         * lib/csharpexec.c: Likewise.
729         * lib/dup2.c: Likewise.
730         * lib/error.c: Likewise.
731         * lib/fcntl.c: Likewise.
732         * lib/filename.h: Likewise.
733         * lib/findprog.c: Likewise.
734         * lib/get-rusage-as.c: Likewise.
735         * lib/get-rusage-data.c: Likewise.
736         * lib/getpagesize.c: Likewise.
737         * lib/javaexec.c: Likewise.
738         * lib/msvc-inval.c: Likewise.
739         * lib/msvc-nothrow.c: Likewise.
740         * lib/nanosleep.c: Likewise.
741         * lib/nonblocking.c: Likewise.
742         * lib/printf-parse.c: Likewise.
743         * lib/setlocale.c: Likewise.
744         * lib/sigaction.c: Likewise.
745         * lib/strerror_r.c: Likewise.
746         * lib/tmpdir.c: Likewise.
747         * lib/vasnprintf.c: Likewise.
748         * lib/w32spawn.h: Likewise.
749         * lib/waitpid.c: Likewise.
750         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
751         * m4/locale-ar.m4: Likewise.
752         * m4/locale-fr.m4: Likewise.
753         * m4/locale-ja.m4: Likewise.
754         * m4/locale-tr.m4: Likewise.
755         * m4/locale-zh.m4: Likewise.
756         * m4/printf.m4: Likewise.
757         * tests/test-cloexec.c: Likewise.
758         * tests/test-copy-acl.sh: Likewise.
759         * tests/test-copy-file.sh: Likewise.
760         * tests/test-file-has-acl.sh: Likewise.
761         * tests/test-set-mode-acl.sh: Likewise.
762         * tests/test-dup-safer.c: Likewise.
763         * tests/test-dup2.c: Likewise.
764         * tests/test-dup3.c: Likewise.
765         * tests/test-fcntl.c: Likewise.
766         * tests/test-nonblocking-pipe.h: Likewise.
767         * tests/test-nonblocking-socket.h: Likewise.
768         * tests/test-pipe.c: Likewise.
769         * tests/test-pipe2.c: Likewise.
770         * tests/test-spawn-pipe-child.c: Likewise.
771         * doc/acl-resources.txt: Likewise.
772         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
773         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
774         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
775         * lib/localcharset.c: Update comments to mention native Windows.
776         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
777         * lib/localename.c: Likewise.
778         * lib/progreloc.c: Likewise.
779         * lib/relocatable.c: Likewise.
780         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
781         (windows_compute_revents): Renamed from win32_compute_revents.
782         (windows_compute_revents_socket): Renamed from
783         win32_compute_revents_socket.
784         * lib/select.c: Update comments to mention native Windows.
785         (windows_poll_handle): Renamed from win32_poll_handle.
786         * m4/threadlib.m4: Update comments to mention native Windows.
787         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
788         --enable-threads=windows instead of --enable-threads=win32. Set
789         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
790         * lib/glthread/lock.h: Update comments to mention native Windows.
791         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
792         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
793         USE_WIN32_THREADS.
794         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
795         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
796         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
797         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
798         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
799         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
800         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
801         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
802         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
803         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
804         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
805         * tests/test-tls.c: Likewise.
806         Rationale:
807         Microsoft renamed the "Win32 API" to "Windows API", as it is available
808         on both 32-bit and 64-bit Windows systems.
809         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
810         line of distinction is between "native Windows" on one side and Unix/
811         POSIX systems on the other side. More details in
812         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
813         Suggested by Paul Eggert.
814
815 2012-01-03  Bruno Haible  <bruno@clisp.org>
816
817         isatty: Support for MSVC 9.
818         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
819         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
820         (_isatty_nothrow): New function.
821         (isatty): Use it instead of _isatty.
822         (IsConsoleHandle): Add comment, from Paolo Bonzini.
823         * lib/poll.c (IsConsoleHandle): Likewise.
824         * lib/select.c (IsConsoleHandle): Likewise.
825         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
826         (gl_PREREQ_ISATTY): New macro.
827         * modules/isatty (Depends-on): Add msvc-inval.
828         (configure.ac): Invoke gl_PREREQ_ISATTY.
829
830 2012-01-03  Jim Meyering  <meyering@redhat.com>
831
832         maint.mk: remove temporary transition aid from over 1.5 years ago
833         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
834         purpose was to aid in the transition (avoiding silent malfunction)
835         from that old name to the new _sc_search_regexp.  This shim was
836         added by commit 219c504b.
837
838         init.sh: do not try to accommodate compare arguments starting with "-"
839         * tests/init.sh (compare_dev_null_): Do not try to accommodate
840         compare arguments that start with "-".  Besides, we do not worry
841         about this when invoking diff or cmp; why start now with sed?
842         Using "--" to separate options from argument would trigger sed
843         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
844         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
845
846 2012-01-02  Bruno Haible  <bruno@clisp.org>
847
848         Enhance tests for module 'isatty'.
849         * modules/isatty-tests (Depends-on): Add pipe-posix.
850         * tests/test-isatty.c: Include <fcntl.h>.
851         (DEV_NULL): New macro.
852         (main): Test the resut of isatty() also on regular files, pipes, and
853         /dev/null.
854
855         New module 'isatty'.
856         * lib/unistd.in.h (isatty): New declaration.
857         * lib/isatty.c: New file, based on an idea of
858         Bastien Roucariès <roucaries.bastien@gmail.com>.
859         * m4/isatty.m4: New file.
860         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
861         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
862         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
863         REPLACE_ISATTY.
864         * modules/isatty: New file.
865         * doc/posix-functions/isatty.texi: Mention the new module.
866         Suggested by Paolo Bonzini.
867
868 2012-01-02  Bruno Haible  <bruno@clisp.org>
869
870         canonicalize: Tweak 2011-12-29 commit.
871         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
872         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
873
874 2012-01-02  Jim Meyering  <meyering@redhat.com>
875
876         gitlog-to-changelog: describe input syntax in --help output
877         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
878
879         gitlog-to-changelog: fix typo in --help: show backslash before email @
880         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
881         in sources, but not in actual output.
882
883 2011-12-30  Jim Meyering  <meyering@redhat.com>
884
885         gitlog-to-changelog: don't malfunction when name contains %-directive
886         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
887         in a name string cause trouble.  E.g., with a user name of "%s",
888         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
889
890 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
891
892         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
893         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
894         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
895         the "  (tiny change)" notation that is appended to the standard
896         ChangeLog "date  name  email" header line.
897
898 2012-01-01  Jim Meyering  <meyering@redhat.com>
899
900         test-framework-sh: init.sh: fix "make dist" failure
901         When using gnulib-tool's --with-tests option and any module that
902         depends on test-framework-sh, "make dist" would fail due to the
903         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
904         in the gltests directory, and not in the gllib/ directory.
905         One way to work around that is to move the EXTRA_DIST += init.sh
906         from the primary module to the -tests one:
907         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
908         * modules/test-framework-sh (Makefile.am): ...not here.
909         Reported by Tom G. Christensen in
910         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
911
912         version-etc: update copyright year reported by --version
913         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
914
915 2011-12-31  PĂ¡draig Brady  <P@draigBrady.com>
916
917         canonicalize: only stat() if required
918         * lib/canonicalize.c (canonicalize_filename_mode):
919         Avoid calling l?stat() when both CAN_MISSING,
920         and CAN_NOLINKS are set, as we neither need
921         to resolve symlinks or test component existence.
922
923 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
924
925         doc: cover st_ino issues once; add OpenVMS etc.
926         * doc/posix-functions/stat.texi (stat):
927         * doc/posix-functions/lstat.texi (lstat):
928         * doc/posix-functions/fstatat.texi (fstatat):
929         * doc/posix-functions/fstat.texi (fstat):
930         Move general 'struct stat' stuff to sys_stat.texi,
931         leaving behind a pointer.
932         * doc/posix-headers/sys_stat.texi (sys/stat.h):
933         Merge duplicate info about 'struct stat' problems into here.
934         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
935         and suggest partial workarounds.
936
937         same-inode: port to OpenVMS
938         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
939         three st_ino values.
940
941 2011-12-30  PĂ¡draig Brady  <P@draigBrady.com>
942
943         canonicalize: fix references to stat() and lstat()
944         * lib/canonicalize.c (canonicalize_filename_mode):
945         Ensure references always resolve to a replacement
946         function if required (even via a macro).
947
948 2011-12-30  Jim Meyering  <meyering@redhat.com>
949
950         gitlog-to-changelog: remove a little duplication
951         * build-aux/gitlog-to-changelog (main): Grep @lines once,
952         rather than twice.
953
954 2011-12-29  PĂ¡draig Brady  <P@draigBrady.com>
955
956         canonicalize: add support for not resolving symlinks
957         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
958         indicate we don't want to follow symlinks.  Also
959         provide CAN_MODE_MASK to aid setting these existing
960         mutually exclusive values.
961         * lib/canonicalize.c (canonicalize_filename_mode):
962         Extract the flags from can_mode parameter, which
963         are currently just used to select between stat()
964         and lstat().  Also ensure that mutually exclusive
965         values are flagged immediately as invalid.
966         * tests/test-canonicalize.c: Verify symlinks are
967         not followed, and that invalid flag combinations
968         are diagnosed.
969
970 2011-12-25  Jim Meyering  <meyering@redhat.com>
971
972         gitlog-to-changelog: do not clump multi-paragraph entries
973         Identical header lines (date,name,email+coauthors) are suppressed,
974         thus putting all entries with those same characteristics under
975         a single header.  However, when a log entry consists of two or
976         more paragraphs, it may not be clear where it starts and ends.
977         This change makes it so that such an entry is always separated
978         from others by a header line, even when that header would
979         otherwise be suppressed.
980         * build-aux/gitlog-to-changelog: Implement the above.
981         Inspired by a related request from Stefano Lattarini in
982         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
983
984 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
985
986         announce-gen: fix `cmd' typo in diagnostic
987         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
988         diagnostic: a missing '$' meant that the command was not output.
989
990 2011-12-23  Jim Meyering  <meyering@redhat.com>
991
992         test-framework-sh: distribute init.sh
993         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
994         Otherwise, "make -C gnulib-tests check" (at least in grep) would
995         fail due to the lack of init.sh.
996
997         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
998         * modules/atexit-tests: Rather than listing tests/init.sh,
999         now that there's a module for it, simply depend on that new module.
1000         * modules/closein-tests: Likewise.
1001         * modules/exclude-tests: Likewise.
1002         * modules/getcwd-tests: Likewise.
1003         * modules/perror-tests: Likewise.
1004         * modules/pread-tests: Likewise.
1005         * modules/pwrite-tests: Likewise.
1006         * modules/vc-list-files-tests: Likewise.
1007         * modules/verify-tests: Likewise.
1008         * modules/xalloc-die-tests: Likewise.
1009         * modules/xstrtoimax-tests: Likewise.
1010         * modules/xstrtol-tests: Likewise.
1011         * modules/xstrtoll-tests: Likewise.
1012         * modules/xstrtoumax-tests: Likewise.
1013         * modules/yesno-tests: Likewise.
1014
1015 2011-12-22  Jim Meyering  <meyering@redhat.com>
1016
1017         test-framework-sh: add minimal tests of init.sh's compare function
1018         * modules/test-framework-sh-tests: New file.
1019         * tests/test-init.sh: New file.
1020
1021         test-framework-sh: new module
1022         * modules/test-framework-sh: New file.
1023         * MODULES.html.sh (Support for maintaining and releasing projects):
1024         List it.
1025
1026         init.sh: do not emit simulated diff output to stderr
1027         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1028
1029 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1030
1031         .gitignore: ignore gnulib.dvi and regex.info
1032         * doc/.gitignore:add gnulib.dvi and regex.info
1033
1034 2011-12-22  Jim Meyering  <meyering@redhat.com>
1035
1036         init.sh: correct previous change
1037         * tests/init.sh (compare): My previous change was wrong.
1038         Don't clobber "$?".  Spotted by Stefano Lattarini and PĂ¡draig Brady.
1039
1040         init.sh: avoid unwarranted test failure when using "set -e"
1041         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1042         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1043         a use like "compare exp out" would get evoke an unconditional failure.
1044
1045 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1046
1047         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1048         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1049         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1050         autoreconf that did not.
1051         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1052         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1053
1054 2011-12-17  Jim Meyering  <meyering@redhat.com>
1055
1056         bootstrap: remove some now-unneeded code
1057         This script arose back when gnulib-tool was young.
1058         Since then, it has seen improvements that render much of this
1059         script unnecessary.  In particular, it can now make symlinks
1060         to the files it uses.  Also, I no longer see as much value in
1061         marking files as read-only via comments.
1062         If you relied on the symlink-creation feature of the preceding
1063         version of this script, you can get most of that functionality
1064         by adding the --symlink option to the definition of
1065         gnulib_tool_option_extras in your bootstrap.conf file.
1066         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1067         Run autopoint and libtoolize *before* gnulib-tool.
1068         After it, run an abbreviated autoreconf, rather than a loop around
1069         all tools.
1070         (slirp, bt_mark_as_generated): Remove functions.
1071
1072 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1073
1074         ftoastr: fix typo
1075         * lib/ftoastr.h: Fix misspelling in comment.
1076
1077 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1078
1079         * top/README-release: fix punctuation.
1080
1081 2011-12-17  Jim Meyering  <meyering@redhat.com>
1082
1083         bootstrap: correct the recent buildreq change
1084         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1085         had no effect.
1086         * build-aux/bootstrap (buildreq): Bracket each search term with
1087         "*...*", so that the shell "case" statement works as intended.
1088         Add comments.
1089
1090 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1091
1092         build: let bootstrap resort to wget when downloading .po files
1093         * build-aux/bootstrap (download_po_files): Fallback to wget when
1094         downloading the .po files via rsync fails.  This is necessary to
1095         bootstrap from behind a strict firewall.
1096
1097 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1098
1099         stdint: don't assume C++11 when compiling with g++
1100         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1102         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1103         work also in C++ before C++11, as that improperly inhibits
1104         generating a substitute stdint.h for that case.
1105
1106 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         alloca: protect comment from gnulib-tool
1109         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1110         that gnulib-tool doesn't think it's a license, and munge it to
1111         say "GCC version 3".
1112
1113 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1114
1115         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1116         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1117         $(abs_top_builddir) instead of $(top_builddir).
1118
1119 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1120
1121         strftime-tests: also test nanoseconds
1122         * tests/test-strftime.c (T): Add a test of %N.
1123
1124 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         inttypes, stdint: add C++11 support
1127         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1128         when including inttypes.h and stdint.h.  Support this change to
1129         the standard.
1130         * doc/posix-headers/inttypes.texi (inttypes.h):
1131         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1132         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1133         Define if not defined already, for the benefit of pre-C++11 hosts.
1134         Define the standard format macros (e.g., PRId8) always.
1135         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1136         Likewise, if __cpluspus.  Define the standard constant and limit
1137         macros (e.g., INT8_C, INT8_MAX) always.
1138         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1139         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1140         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1141         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1142         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1143         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1144         Likewise.
1145
1146 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1147
1148         nonblocking tests: Fix test failure on Linux/PPC.
1149         Suggested by Prerna Saxena in
1150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1151         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1152         Set to 1100000.
1153
1154 2011-12-12  Jim Meyering  <meyering@redhat.com>
1155
1156         argmatch: don't hard-code `' when listing valid option arguments
1157         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1158         use the quote function to add quotes.  Use fputs rather than
1159         fprintf for the format string with no format directive.
1160
1161 2011-12-07  Eric Blake  <eblake@redhat.com>
1162
1163         bootstrap: detect tools required by gnulib-tool
1164         * build-aux/bootstrap (buildreq): Provide minimum implicit
1165         dependencies.
1166         * DEPENDENCIES: Mention patch as a prereq.
1167
1168 2011-12-04  Bruno Haible  <bruno@clisp.org>
1169
1170         sethostname: Port to Windows platforms.
1171         * lib/sethostname.c: Provide an alternate implementation for Windows
1172         platforms.
1173         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1174         (main): Skip the test if sethostname() fails with EPERM. On Windows
1175         platforms, don't check the result of gethostname().
1176
1177 2011-12-04  Bruno Haible  <bruno@clisp.org>
1178             Jim Meyering  <meyering@redhat.com>
1179
1180         tests: Avoid spurious error message on platforms without mktemp program.
1181         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1182
1183 2011-12-04  Bruno Haible  <bruno@clisp.org>
1184
1185         sethostname: Fix documentation.
1186         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1187         "not fixed" section.
1188
1189 2011-12-03  Bruno Haible  <bruno@clisp.org>
1190
1191         gnulib-tool: Verify that the License field is present and non-empty.
1192         * gnulib-tool (func_get_license_raw): New function, extracted from
1193         func_get_license.
1194         (func_get_license): Use it. Warn if the module is not a test module and
1195         has no license.
1196         Suggested by Jim Meyering.
1197
1198 2011-12-03  Bruno Haible  <bruno@clisp.org>
1199
1200         sethostname tests: Fix link error on mingw.
1201         * tests/test-sethostname1.c: New file, extracted from
1202         tests/test-sethostname.c.
1203         * tests/test-sethostname2.c: New file, extracted from
1204         tests/test-sethostname.c.
1205         * tests/test-sethostname.c: Remove file.
1206         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1207         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1208         (Depends-on): Add gethostname.
1209         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1210         Link the latter with $(GETHOSTNAME_LIB).
1211
1212         sethostname tests: Fix compilation error on mingw.
1213         * tests/test-sethostname.c: Don't include <sys/types.h>.
1214         (geteuid): Use a dummy value without uid_t.
1215         * modules/sethostname-tests (Depends-on): Remove sys_types.
1216
1217         sethostname tests: Avoid a gcc warning.
1218         * tests/test-sethostname.c (main): Remove an unused variable.
1219
1220         Tweak last commit.
1221         * modules/sethostname-tests (Files): Sort by decreasing importance.
1222         (configure.ac): Check for geteuid.
1223         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1224         the test when there's nothing to test. Drop an unnecessary cast.
1225         Improve an error message. Verify that the final sethostname() call
1226         succeeds.
1227
1228 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1229
1230         Add a test suite for the sethostname module.
1231         * modules/sethostname-tests: New file.  A test program
1232         for the sethostname module.
1233         * tests/test-sethostname.c: Likewise.
1234
1235 2011-12-03  Bruno Haible  <bruno@clisp.org>
1236
1237         Tweak last commit.
1238         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1239         Fix preprocessor directives indentation. Fix typos.
1240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1241         * modules/unistd (Makefile): Likewise.
1242
1243 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1244
1245         Integrate the sethostname module into unistd.
1246         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1247         into the unistd.h header.
1248         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1249         preprocessor directives.
1250         * modules/unistd: Setup the Makefile substitutions of the
1251         SETHOSTNAME preprocessor directives.
1252
1253 2011-12-03  Bruno Haible  <bruno@clisp.org>
1254
1255         Tweak last commit.
1256         * lib/sethostname.c: Don't include <string.h>.
1257         (sethostname): No need to copy the argument string to the stack. Don't
1258         call clearerr. Preserve errno when fprintf failed.
1259         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1260         Don't invoke AC_REPLACE_FUNCS.
1261         * modules/sethostname (Link): Remove empty section.
1262         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1263         failure problem.
1264
1265 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1266
1267         New module 'sethostname'.
1268         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1269         for systems that lack it.
1270         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1271         sethostname declaration and function.
1272         * modules/sethostname: New file.  Define the sethostname module.
1273
1274 2011-12-03  Bruno Haible  <bruno@clisp.org>
1275
1276         Tweak last commit.
1277         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1278
1279 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1280
1281         Split the HOST_NAME_MAX detection into a separate m4 macro.
1282         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1283         macro so it can be used by the pending sethostname module.
1284
1285 2011-12-03  Bruno Haible  <bruno@clisp.org>
1286
1287         Fix module descriptions syntax.
1288         * modules/argv-iter (License): Fix syntax.
1289         * modules/di-set (License): Likewise.
1290         * modules/ino-map (License): Likewise.
1291         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1292
1293 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1294
1295         stdalign: port to Clang 3.0
1296         Problem reported by Simon Josefsson in
1297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1298         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1299         which has <stdalign.h> but which does not define alignof.
1300         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1301
1302 2011-12-01  Eric Blake  <eblake@redhat.com>
1303
1304         mktempd: silence dd usage
1305         * build-aux/mktempd (rand_bytes): Silence dd.
1306
1307 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1308
1309         manywarnings: Don't mention gcc version in docstring.
1310         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1311         Jim Meyering <meyering@redhat.com>.
1312
1313 2011-11-30  Jim Meyering  <meyering@redhat.com>
1314
1315         hash: mark a few floating point constants with "f" suffix
1316         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1317         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1318         floating point constants with "f", since they're destined to be
1319         saved/used as "float"s.
1320
1321 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1322
1323         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1324         * tests/test-float.c (test_long_double): Correct and re-enable the
1325         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1326
1327 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1328
1329         Avoid subtracting two pointers that don't point into the same block.
1330         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1331         only pointers into the same memory block are subtracted. We cannot
1332         assume that sizeof (ptrdiff_t) == sizeof (void *).
1333
1334 2011-11-29  Eric Blake  <eblake@redhat.com>
1335
1336         maint.mk: add syntax check for use of compare from init.sh
1337         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1338         moved here from coreutils.
1339
1340         manywarnings: drop -Wunsuffixed-float-constants
1341         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1342         '1.0D', which is the only way to silence this warning for 'double'.
1343
1344 2011-11-29  Jim Meyering  <meyering@redhat.com>
1345
1346         hash: mark compute_bucket_size with the pure attribute
1347         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1348
1349         quotearg, propername: correct pragma guard expression
1350         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1351         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1352
1353 2011-11-28  Jim Meyering  <meyering@redhat.com>
1354
1355         propername: do not mark proper_name with the const attribute
1356         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1357         since it examines data pointed to by its parameter.
1358         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1359         the suggestion from -Wsuggest-attribute=const.
1360
1361         propername: mark one more function as const
1362         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1363
1364 2011-11-27  Jim Meyering  <meyering@redhat.com>
1365
1366         mark functions with const and pure attributes
1367
1368         Mark functions per suggestions from gcc-4.6 when using these options:
1369         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1370         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1371         Follow these guidelines: when possible, apply the attribute to
1372         an extern declaration, not to its definition.  Apply it to the
1373         definition only when the definition is static.
1374         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1375         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1376         * lib/base64.h (isbase64): Likewise.
1377         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1378         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1379         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1380         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1381         (c_tolower, c_toupper): Likewise.
1382         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1383         * lib/chdir-long.c (find_non_slash): Likewise.
1384         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1385         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1386         * lib/file-type.h (file_type): Likewise.
1387         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1388         * lib/filevercmp.c (verrevcmp): Likewise.
1389         * lib/freadahead.h (freadahead): Likewise.
1390         * lib/fts.c (fts_maxarglen): Likewise.
1391         * lib/hash-pjw.h (hash_pjw): Likewise.
1392         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1393         * lib/hash.c (is_prime, next_prime): Likewise.
1394         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1395         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1396         (hash_table_ok, hash_get_first, hash_string): Likewise.
1397         (compute_bucket_size): Likewise.
1398         * lib/i-ring.h (i_ring_empty): Likewise.
1399         * lib/isnan.c (isnanl): Likewise.
1400         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1401         * lib/memcasecmp.h (memcasecmp): Likewise.
1402         * lib/memchr2.h (memchr2): Likewise.
1403         * lib/memcmp2.h (memcmp2): Likewise.
1404         * lib/parse-datetime.y (lookup_zone): Likewise.
1405         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1406         [!WINDOWS_SOCKETS]: Likewise.
1407         * lib/strnlen1.h (strnlen1): Likewise.
1408         * lib/uniwidth.in.h (uc_width): Likewise.
1409         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1410         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1411         (quoting_options_from_style): Add a comment.
1412         * lib/propername.h (proper_name): Add a comment.
1413
1414 2011-11-27  Bruno Haible  <bruno@clisp.org>
1415
1416         Remove unused macros from !_LIBC code in glibc-borrowed files.
1417         * lib/fnmatch.c (STRCOLL): Remove macro.
1418         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1419         * lib/glob.c (__stat, __readdir64): Remove macros.
1420         * lib/tempname.c (__open64, __xstat64): Remove macros.
1421         Suggested by Paul Eggert.
1422
1423 2011-11-27  Bruno Haible  <bruno@clisp.org>
1424
1425         getcwd: Fix link error on MSVC 9.
1426         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1427
1428 2011-11-27  Bruno Haible  <bruno@clisp.org>
1429
1430         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1431         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1432         HAVE_OPENDIR is 0.
1433         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1434         HAVE_CLOSEDIR is 0.
1435         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1436         is 0.
1437         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1438
1439 2011-11-27  Bruno Haible  <bruno@clisp.org>
1440
1441         getcwd: Fix bug from 2011-08-17.
1442         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1443         platforms that need it.
1444         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1445         code of 4 to be a failure, not a success. This ensures that
1446         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1447
1448 2011-11-27  Bruno Haible  <bruno@clisp.org>
1449
1450         binary-io tests: Avoid test failure on mingw when libtool is used.
1451         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1452         Don't verify the size of t-bin-out1.tmp here.
1453         * tests/test-binary-io.sh: Verify it here.
1454         Reported by Simon Josefsson.
1455
1456 2011-11-26  Bruno Haible  <bruno@clisp.org>
1457
1458         Fix conflict between two instantiations of module 'unistd'.
1459         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1460         ${include_guard_prefix} also in the autoconf snippet.
1461         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1463         GNULIB_UNISTD_H_GETOPT.
1464         * modules/getopt-posix (configure.ac): Set the
1465         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1466         * modules/getopt-gnu (configure.ac): Likewise.
1467         * modules/unistd (Makefile.am): Change the substitution value of
1468         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1469         Reported by Simon Josefsson.
1470
1471 2011-11-25  Bruno Haible  <bruno@clisp.org>
1472
1473         pagealign_alloc: Doc and comments.
1474         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1475         module.
1476         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1477
1478 2011-11-25  Jim Meyering  <meyering@redhat.com>
1479
1480         test-update-copyright.sh: avoid false-positive failure
1481         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1482         around false positive failure on Cygwin/Windows.  The latter was
1483         matching erroneously-created files with names like
1484         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1485
1486 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1487
1488         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1489         * m4/valgrind-tests.m4: Check that the parameters that will be
1490         used works, not just a subset of them.  Reported by Bruno Haible
1491         <bruno@clisp.org>.
1492
1493 2011-11-24  Jim Meyering  <meyering@redhat.com>
1494
1495         test-stdalign.c: comment out long double tests
1496         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1497         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1498         error: '_Alignas' specifiers cannot reduce alignment of \
1499         'static_longdouble_alignas'.
1500
1501 2011-11-22  Jim Meyering  <meyering@redhat.com>
1502
1503         init.sh: make "compare /dev/null FILE" output more readable
1504         * tests/init.sh (compare_): Document the preferred order of arguments.
1505         (emit_diff_u_header_): New function.
1506         (compare_dev_null_): Emit a simulated diff, rather than just the
1507         contents of the unexpected file.  Suggestion from Bruno Haible.
1508
1509 2011-11-21  Jim Meyering  <meyering@redhat.com>
1510             Eric Blake  <eblake@redhat.com>
1511
1512         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1513         * tests/init.sh: Make our compare function slightly more portable.
1514         Reported by Bruno Haible in
1515         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1516
1517 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1518
1519         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1520         before using it, in code that ends up in config.h.
1521
1522 2011-11-20  Bruno Haible  <bruno@clisp.org>
1523
1524         getcwd: Work around getcwd bug on AIX 5..7.
1525         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1526         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1527         Use a different value for gl_cv_func_getcwd_path_max. Move the
1528         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1529         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1530         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1531         Define HAVE_MINIMALLY_WORKING_GETCWD.
1532         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1533         where it is not even minimally working, that is, on AIX.
1534         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1535         m4/getcwd-path-max.m4.
1536         (main): Update exit code computation.
1537         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1538         getcwd does not handle long file names.
1539
1540 2011-11-20  Bruno Haible  <bruno@clisp.org>
1541
1542         getcwd: Fix bug from 2009-09-10.
1543         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1544         like "no".
1545
1546 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1547
1548         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1549
1550 2011-11-20  Bruno Haible  <bruno@clisp.org>
1551
1552         fma tests: Avoid shadowing local variables.
1553         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1554         expected.
1555
1556 2011-11-20  Bruno Haible  <bruno@clisp.org>
1557
1558         copysignf tests: Fix.
1559         * tests/test-copysignf.c: Fix signature check.
1560
1561 2011-11-20  Bruno Haible  <bruno@clisp.org>
1562
1563         fma: Remove unused code.
1564         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1565         unused macros.
1566
1567 2011-11-20  Bruno Haible  <bruno@clisp.org>
1568
1569         sethostname: Fix doc about AIX.
1570         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1571         sethostname; it has it.
1572
1573         sethostname: Mention more portability problems.
1574         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1575         problem.
1576         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1577
1578 2011-11-19  Bruno Haible  <bruno@clisp.org>
1579
1580         Depend on module fcntl-h when AT_FDCWD is used.
1581         * modules/utimens (Depends-on): Add fcntl-h.
1582         * modules/areadlinkat (Depends-on): Likewise.
1583         * modules/areadlinkat-with-size (Depends-on): Likewise.
1584         * modules/faccessat (Depends-on): Likewise.
1585         * modules/fchmodat (Depends-on): Likewise.
1586         * modules/fchownat (Depends-on): Likewise.
1587         * modules/getcwd (Depends-on): Likewise.
1588         * modules/mkdirat (Depends-on): Likewise.
1589         * modules/mkfifoat (Depends-on): Likewise.
1590         * modules/readlinkat (Depends-on): Likewise.
1591         * modules/symlinkat (Depends-on): Likewise.
1592         * modules/dup2-tests (Depends-on): Likewise.
1593         * modules/fdutimensat-tests (Depends-on): Likewise.
1594         * modules/futimens-tests (Depends-on): Likewise.
1595
1596 2011-11-19  Bruno Haible  <bruno@clisp.org>
1597
1598         euidaccess: Update a comment.
1599         * lib/euidaccess.c: Update comment about platforms with faccessat.
1600
1601 2011-11-19  Bruno Haible  <bruno@clisp.org>
1602
1603         openat: Fix file list.
1604         * modules/openat (Files): Remove lib/at-func.c.
1605
1606 2011-11-19  Bruno Haible  <bruno@clisp.org>
1607
1608         fstatat: Simplify.
1609         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1610         gnulib should define rpl_fstatat, there is a
1611         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1612
1613 2011-11-19  Bruno Haible  <bruno@clisp.org>
1614
1615         Ensure 'inline' can be used in tests/test-utimens-common.h.
1616         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1617         * modules/futimens-tests (configure.ac): Likewise.
1618         * modules/utimens-tests (configure.ac): Likewise.
1619         * modules/utimensat-tests (configure.ac): Likewise.
1620
1621 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1622
1623         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1624         not hash_insert0.
1625         (hash_insert_if_absent): Doc fix.
1626
1627 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1628
1629         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1630
1631 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         test-getcwd: disambiguate exit status
1634         * tests/test-getcwd.c (test_long_name): Return 0..7.
1635         (main): Exit with an unambiguous exit status.  The old
1636         code yielded a mysterious mixture of two failure codes.
1637
1638         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1639         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1640         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1641         rpl_fstatat or fstatat.  This should fix the other problem
1642         reported by Kai Habel in
1643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1644         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1646         and I reproduced it on a Solaris 8 host we still have in production.
1647
1648 2011-11-18  Jim Meyering  <meyering@redhat.com>
1649
1650         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1651         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1652         Add a sentence to the comment.
1653         (hash_insert0): New function that simply calls hash_insert_if_absent.
1654         * lib/hash.h (hash_insert_if_absent): Declare it.
1655         (hash_insert0): Add deprecation attribute.
1656         (_GL_ATTRIBUTE_DEPRECATED): Define.
1657         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1658         not hash_insert0.
1659         * NEWS: Mention it, even though it's not really an incompatible change.
1660
1661 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1662
1663         openat: avoid compilation failure due to lack of <errno.h> inclusion
1664         * lib/openat.c: Include <errno.h>.
1665
1666 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1667
1668         * modules/getcwd (Depends-on): Add fdopendir.
1669         This fixes one of the two problems reported by Kai Habel in
1670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1671
1672         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1673         stdalign problem reported by Ian Beckwith in
1674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1675         * modules/crypto/gc-arcfour (Depends-on):
1676         Depend conditionally on crypto/arcfour.
1677         * modules/crypto/gc-arctwo (Depends-on):
1678         Depend conditionally on crypto/arctwo.
1679         * modules/crypto/gc-des (Depends-on):
1680         Depend conditionally on crypto/des.
1681         * modules/crypto/gc-hmac-md5 (Depends-on):
1682         Depend conditionally on crypto/hmac-md5.
1683         * modules/crypto/gc-hmac-sha1 (Depends-on):
1684         Depend conditionally on crypto/hmac-sha1.
1685         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1686         * modules/crypto/gc-md4 (Depends-on):
1687         Depend conditionally on crypto/md4.
1688         * modules/crypto/gc-md5 (Depends-on):
1689         Depend conditionally on crypto/md5.
1690         * modules/crypto/gc-rijndael (Depends-on):
1691         Depend conditionally on crypto/rijndael.
1692         * modules/crypto/gc-sha1 (Depends-on):
1693         Depend conditionally on crypto/sha1.
1694         * modules/crypto/gc-arcfour:
1695         * modules/crypto/gc-arctwo:
1696         * modules/crypto/gc-des:
1697         * modules/crypto/gc-hmac-md5:
1698         * modules/crypto/gc-hmac-sha1:
1699         * modules/crypto/gc-md2:
1700         * modules/crypto/gc-md4:
1701         * modules/crypto/gc-md5:
1702         * modules/crypto/gc-rijndael:
1703         * modules/crypto/gc-sha1:
1704         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1705         now that the conditional dependencies do the work for us.
1706
1707 2011-11-17  Jim Meyering  <meyering@redhat.com>
1708
1709         tests: factor st_ctime-comparison out of two headers
1710         * tests/test-utimens-common.h (ctime_compare): Define.
1711         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1712         * tests/test-lutimens.h (test_lutimens): Likewise.
1713         * tests/test-utimens.h (test_utimens): Likewise.
1714
1715         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1716         Invoke the test program via an init.sh-using wrapper.
1717         * tests/test-getcwd.sh: New file.
1718         * modules/getcwd-tests (Files): Add it.
1719         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1720
1721 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1722
1723         gitlog-to-changelog: support multi-author commits.
1724         The FSF cares about keeping track of all authors of patches to its
1725         projects, but Git doesn't provide obvious support for multi-author
1726         changesets. Consensus seems to be forming around the use of extra
1727         Signed-off-by inspired lines in the log message formatted as
1728         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1729         multi-author commits between version control systems.
1730         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1731         log message and output in standard ChangeLog multi-author format.
1732         Reported by Peter Rosin <peda@lysator.liu.se>
1733
1734 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1735             Bruno Haible  <bruno@clisp.org>
1736
1737         Fix some modules' file list.
1738         * modules/fstatat (Files): Add m4/lstat.m4.
1739         * modules/openat (Files): Likewise.
1740         * modules/unlinkat (Files): Likewise.
1741
1742 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1743
1744         maint.mk: fix tight-scope.mk generation in VPATH builds.
1745         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1746         reference with $(srcdir) so that the file is found correctly even
1747         when running `make syntax-check' in a VPATH build.
1748
1749 2011-11-13  Bruno Haible  <bruno@clisp.org>
1750             Jim Meyering  <meyering@redhat.com>
1751
1752         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1753         * tests/init.sh (compare): Remove "No differences encountered" or
1754         synonymous output from the 'diff' program.
1755
1756 2011-11-13  Bruno Haible  <bruno@clisp.org>
1757
1758         Makefile: Tweak indentation.
1759         * Makefile: Use tab as first character in every line that contains rule
1760         commands.
1761
1762 2011-11-13  Bruno Haible  <bruno@clisp.org>
1763
1764         Syntax check for copyright statements.
1765         * check-copyright: New file.
1766         * Makefile (sc_check_copyright): New rule.
1767
1768 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1769
1770         * build-aux/git-version-gen: Add --prefix to configure the tag
1771         match string.
1772
1773 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1774
1775         * build-aux/git-version-gen: Add --help and --version.
1776
1777 2011-11-12  Jim Meyering  <meyering@redhat.com>
1778
1779         revamp the other test-exclude?.sh scripts to use init.sh, too
1780         * tests/test-exclude1.sh: Use init.sh.
1781         * tests/test-exclude2.sh: Likewise.
1782         * tests/test-exclude3.sh: Likewise.
1783         * tests/test-exclude4.sh: Likewise.
1784         * tests/test-exclude5.sh: Likewise.
1785         * tests/test-exclude6.sh: Likewise.
1786         * tests/test-exclude7.sh: Likewise.
1787         * tests/test-exclude8.sh: Likewise.
1788         * modules/exclude-tests (Files): List init.sh.
1789
1790         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1791         These shell scripts ignored failure of the binary test-exclude,
1792         so making the latter return 77 didn't cause them to be skipped.
1793         * tests/test-exclude5.sh: Exit with test-exclude's error status
1794         when that program fails.  Revamp to use init.sh.
1795         * tests/test-exclude2.sh: Likewise.
1796
1797         test-exclude: fix a typo
1798         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1799
1800 2011-11-11  Bruno Haible  <bruno@clisp.org>
1801
1802         obstack: Fix compilation error on MSVC 9.
1803         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1804
1805 2011-11-11  Jim Meyering  <meyering@redhat.com>
1806
1807         test-exclude: skip tests rather than failing on deficient systems
1808         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1809         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1810         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1811         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1812
1813 2011-11-10  Bruno Haible  <bruno@clisp.org>
1814
1815         ptsname_r test: Avoid gcc warning on glibc systems.
1816         * tests/test-ptsname_r.c (null_ptr): New function.
1817         (test_errors): Use it.
1818
1819 2011-11-10  Bruno Haible  <bruno@clisp.org>
1820
1821         ptsname_r: Avoid compilation error on OSF/1 5.1.
1822         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1824         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1825         function is not declared or incompatibly declared.
1826         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1827         * modules/ptsname_r (Depends-on, configure.ac): Update.
1828         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1829
1830 2011-11-10  Bruno Haible  <bruno@clisp.org>
1831
1832         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1833         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1834         When cross-compiling, guess yes on all platforms except AIX.
1835         Reported by Ludovic Courtès <ludo@gnu.org>.
1836
1837 2011-11-09  Bruno Haible  <bruno@clisp.org>
1838
1839         ptsname_r tests: Fix bugs.
1840         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1841         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1842
1843 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1844
1845         fstatat: work with cross-compilation
1846         Problem reported by Ludovic Courtès in
1847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1848         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1849         "cross-compiling" and assume the bug is present.  Replace
1850         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1851         an inverted sense, to be more conservative about our assumptions.
1852         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1853
1854 2011-11-09  Bruno Haible  <bruno@clisp.org>
1855
1856         Improve MODULES.html output.
1857         * modules/mkfifoat (Description): Use the word "function".
1858         * modules/readlinkat (Description): Likewise.
1859         * modules/symlinkat (Description): Likewise.
1860
1861 2011-11-09  Eric Blake  <eblake@redhat.com>
1862
1863         ptsname_r-tests: new test module
1864         * modules/ptsname_r-tests: New module.
1865         * tests/test-ptsname_r.c: New file.
1866
1867         ptsname_r: new module
1868         * modules/ptsname_r: New module.
1869         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1870         * lib/ptsname.c (__ptsname_r): Split...
1871         * lib/ptsname_r.c: ...into new file.
1872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1873         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1874         * modules/stdlib (Makefile.am): Substitute witnesses.
1875         * lib/stdlib.in.h (ptsname_r): Declare it.
1876         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1877         * MODULES.html.sh (Misc): Likewise.
1878         * modules/ptsname (Depends-on): Alter dependency.
1879         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1880
1881 2011-11-09  Jim Meyering  <meyering@redhat.com>
1882
1883         announce-gen: be more concise when there's only one URL+tarball
1884         * build-aux/announce-gen (get_tool_versions): When you distribute
1885         only one type of tarball, combine the first two "Here are..."
1886         sections and make the key-checking grammar independent of
1887         how many tarballs there are.
1888
1889 2011-11-09  Eric Blake  <eblake@redhat.com>
1890
1891         openpty: provide a stub on mingw
1892         * lib/pty.in.h (includes): Provide forward declarations.
1893         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1894
1895         raise: fix mingw handling of SIGPIPE
1896         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1897
1898 2011-11-08  Bruno Haible  <bruno@clisp.org>
1899
1900         More conditional dependencies.
1901         * modules/faccessat (Depends-on): Add conditions.
1902         * modules/fchmodat (Depends-on): Likewise.
1903         * modules/fchownat (Depends-on): Likewise.
1904         * modules/fstatat (Depends-on): Likewise.
1905         * modules/mkfifoat (Depends-on): Likewise.
1906         * modules/readlinkat (Depends-on): Likewise.
1907         * modules/symlinkat (Depends-on): Likewise.
1908         * modules/unlinkat (Depends-on): Likewise.
1909         * modules/utimensat (Depends-on): Likewise.
1910         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1911         * modules/linkat (Depends-on): Refine the conditions.
1912         * modules/renameat (Depends-on): Likewise.
1913
1914 2011-11-08  Bruno Haible  <bruno@clisp.org>
1915
1916         faccessat: Move AC_LIBOBJ invocation to module description.
1917         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1918         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1919         invocation from here...
1920         * modules/faccessat (configure.ac): ... to here. Invoke
1921         gl_PREREQ_FACCESSAT.
1922
1923 2011-11-08  Bruno Haible  <bruno@clisp.org>
1924
1925         faccessat: Simplify autoconf macro.
1926         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1927         gl_FUNC_EUIDACCESS.
1928
1929 2011-11-08  Bruno Haible  <bruno@clisp.org>
1930
1931         renameat: Fix dependencies.
1932         * modules/renameat (Depends-on): Add stdbool.
1933
1934 2011-11-08  Bruno Haible  <bruno@clisp.org>
1935
1936         mkfifoat: Fix module description.
1937         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1938         not gl_UNISTD_MODULE_INDICATOR.
1939
1940 2011-11-08  Bruno Haible  <bruno@clisp.org>
1941
1942         fstatat: Remove unused dependency.
1943         * modules/fstatat (Depends-on): Remove fstat.
1944
1945 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1946
1947         GNUmakefile: behave when Makefile is missing.
1948         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1949
1950 2011-11-08  Bruno Haible  <bruno@clisp.org>
1951
1952         openat: Conditionalize dependencies.
1953         * lib/openat.c: Reduce the scope of some #includes.
1954         * modules/openat (Depends-on): Add conditions.
1955
1956 2011-11-07  Jim Meyering  <meyering@redhat.com>
1957
1958         maint.mk: extract GPG key ID without using a temporary file
1959         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1960         without using a temporary file.  Based on a suggestion from Werner Koch
1961         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1962
1963 2011-11-07  Eric Blake  <eblake@redhat.com>
1964
1965         grantpt: fix typo
1966         * lib/stdlib.in.h (grantpt): Check correct function.
1967
1968         maint.mk: silence new syntax check
1969         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1970
1971 2011-11-06  Bruno Haible  <bruno@clisp.org>
1972
1973         Doc about floating-point and math API.
1974         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1975         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1976
1977 2011-11-06  Bruno Haible  <bruno@clisp.org>
1978
1979         stdalign tests: Skip the test when compiled by Sun C.
1980         * tests/test-stdalign.c (main): Skip the test on Sun C.
1981
1982 2011-11-06  Bruno Haible  <bruno@clisp.org>
1983
1984         ansi-c++-opt: Complete the 2011-06-05 change.
1985         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1986         does not support namespaces, set the variable to "no", not to ":".
1987
1988 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1989
1990         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1991
1992 2011-11-06  Bruno Haible  <bruno@clisp.org>
1993
1994         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1995         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1996         (minus_zerol) [HP-UX]: New macro.
1997         (unary_minus) [HP-UX]: New function.
1998         (copysignl) [HP-UX]: Use unary_minus function.
1999
2000 2011-11-06  Bruno Haible  <bruno@clisp.org>
2001
2002         ldexp, ldexpf, ldexpl: Enhance tests.
2003         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2004         and tests/test-ldexpl.c.
2005         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2006         LDEXP, MIN_EXP, MAX_EXP): New macros.
2007         Include test-ldexp.h.
2008         (main): Just call test_function.
2009         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2010         infinity.h, nan.h.
2011         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2012         MAX_EXP): New macros.
2013         Include test-ldexp.h.
2014         (x, y): Remove variables.
2015         (main): Just call test_function.
2016         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2017         infinity.h, nan.h.
2018         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2019         MAX_EXP): New macros.
2020         Include test-ldexp.h.
2021         (x, y): Remove variables.
2022         (main): Just call test_function.
2023         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2024         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2025         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2026         (Depends-on): Add isnand-nolibm, signbit, float.
2027         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2028         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2029         (Depends-on): Add isnanf-nolibm, signbit, float.
2030
2031 2011-11-06  Bruno Haible  <bruno@clisp.org>
2032
2033         math tests: Cosmetics.
2034         * tests/test-math-c++.cc: Reorder declarations.
2035
2036 2011-11-05  Bruno Haible  <bruno@clisp.org>
2037
2038         fma*: Simplify test.
2039         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2040         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2041
2042         Tests for module 'fmal'.
2043         * modules/fmal-tests: New file.
2044         * tests/test-fmal1.c: New file.
2045         * tests/test-fmal2.c: New file.
2046
2047         New module 'fmal'.
2048         * lib/math.in.h (fmal): New declaration.
2049         * lib/fmal.c: New file.
2050         * m4/fmal.m4: New file.
2051         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2053         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2054         REPLACE_FMAL.
2055         * modules/fmal: New file.
2056         * doc/posix-functions/fmal.texi: Mention the new module and the various
2057         bugs.
2058
2059         Tests for module 'fmaf'.
2060         * modules/fmaf-tests: New file.
2061         * tests/test-fmaf1.c: New file.
2062         * tests/test-fmaf2.c: New file.
2063
2064         New module 'fmaf'.
2065         * lib/math.in.h (fmaf): New declaration.
2066         * lib/fmaf.c: New file.
2067         * m4/fmaf.m4: New file.
2068         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2070         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2071         REPLACE_FMAF.
2072         * modules/fmaf: New file.
2073         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2074         bugs.
2075
2076         Tests for module 'fma'.
2077         * modules/fma-tests: New file.
2078         * tests/test-fma1.c: New file.
2079         * tests/test-fma1.h: New file.
2080         * tests/test-fma2.c: New file.
2081         * tests/test-fma2.h: New file.
2082
2083         New module 'fma'.
2084         * lib/math.in.h (fma): New declaration.
2085         * lib/fma.c: New file.
2086         * m4/fma.m4: New file.
2087         * m4/fegetround.m4: New file.
2088         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2090         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2091         REPLACE_FMA.
2092         * modules/fma: New file.
2093         * doc/posix-functions/fma.texi: Mention the new module and the various
2094         bugs.
2095
2096         Extend gl_MATHFUNC.
2097         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2098         Support 'void' as argument type.
2099         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2100
2101 2011-11-05  Jim Meyering  <meyering@redhat.com>
2102
2103         maint.mk: also prohibit inclusion of dirent.h without use
2104         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2105
2106 2011-11-05  Bruno Haible  <bruno@clisp.org>
2107
2108         ldexpl tests: Avoid test failure on MSVC 9.
2109         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2110         value. Needed in order to enforce the conversion from a value greater
2111         than LDBL_MAX to Infinity.
2112
2113 2011-11-05  Bruno Haible  <bruno@clisp.org>
2114
2115         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2116         * modules/at-internal: New file, extracted from modules/openat.
2117         * modules/openat-h: New file.
2118         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2119         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2120         * modules/openat (Description): Add reference to POSIX function.
2121         (Files): Remove lib/openat.h, lib/openat-proc.c.
2122         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2123         intprops, unistd.
2124         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2125         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2126         gl_FCNTL_MODULE_INDICATOR.
2127         (Include): Remove unistd.h, openat.h.
2128         * modules/areadlinkat (Files): Add lib/at-func.c.
2129         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2130         openat-die, openat-h, save-cwd.
2131         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2132         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2133         openat-die, openat-h, save-cwd, unistd.
2134         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2135         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2136         openat-h, save-cwd. Remove fcntl-h, openat.
2137         * modules/fchmodat (Files): Remove lib/openat.h.
2138         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2139         openat, stdbool, unistd.
2140         * modules/fchownat (Files): Remove lib/openat.h.
2141         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2142         openat, stdbool, sys_stat.
2143         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2144         lib/openat-proc.c.
2145         (Depends-on): Add at-internal.
2146         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2147         * modules/fstatat (Files): Remove lib/openat.h.
2148         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2149         stdbool, unistd.
2150         * modules/fts (Depends-on): Add openat-h.
2151         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2152         openat.
2153         * modules/mkdirat (Files): Remove lib/openat.h.
2154         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2155         openat, stdbool, sys_stat.
2156         * modules/mkfifoat (Files): Add lib/at-func.c.
2157         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2158         openat-h, save-cwd. Remove fcntl-h, openat.
2159         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2160         * modules/readlinkat (Files): Add lib/at-func.c.
2161         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2162         openat-h, save-cwd. Remove fcntl-h, openat.
2163         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2164         openat.
2165         * modules/selinux-at (Files): Add lib/at-func.c.
2166         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2167         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2168         * modules/symlinkat (Files): Add lib/at-func.c.
2169         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2170         openat-h, save-cwd. Remove fcntl-h, openat.
2171         * modules/unlinkat (Files): Remove lib/openat.h.
2172         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2173         stdbool.
2174         * modules/utimensat (Files): Add lib/at-func.c.
2175         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2176         openat-die, openat-h, save-cwd.
2177         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2178         * modules/fdutimensat-tests (Depends-on): Add openat.
2179         * modules/fstatat-tests (Depends-on): Add openat-h.
2180         * modules/readlinkat-tests (Depends-on): Add openat.
2181         * modules/symlinkat-tests (Depends-on): Add openat.
2182
2183 2011-11-05  Bruno Haible  <bruno@clisp.org>
2184
2185         openat: Include <stdbool.h>.
2186         * lib/openat.c: Include <stdbool.h>.
2187
2188 2011-11-04  Bruno Haible  <bruno@clisp.org>
2189
2190         fchownat, renameat, unlinkat: Fix dependencies.
2191         * modules/fchownat (Depends-on): Add fstatat.
2192         * modules/renameat (Depends-on): Likewise.
2193         * modules/unlinkat (Depends-on): Likewise.
2194
2195 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         openat: remove direct dependency on dirent
2198         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2199         and hasn't been needed ever since fdopendir was split into its own
2200         module on 2009-08-31.
2201         * modules/openat (Depends-on): Remove dirent.
2202
2203 2011-11-04  Bruno Haible  <bruno@clisp.org>
2204
2205         renameat: Optimize code size.
2206         * modules/renameat (configure.ac): Don't compile at-func2.c if
2207         REPLACE_RENAMEAT is 1.
2208
2209 2011-11-04  Bruno Haible  <bruno@clisp.org>
2210
2211         openat tests: Fix file list.
2212         * modules/openat-tests (Files): Add tests/test-open.h.
2213
2214 2011-11-04  Bruno Haible  <bruno@clisp.org>
2215
2216         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2217         * modules/fchmodat (Depends-on): Add openat-die.
2218         * modules/fchownat (Depends-on): Likewise.
2219         * modules/linkat (Depends-on): Likewise.
2220         * modules/renameat (Depends-on): Likewise.
2221         * modules/openat (Depends-on): Add dirent.
2222
2223 2011-11-04  Jim Meyering  <meyering@redhat.com>
2224
2225         at-func*.c: fix comments
2226         * lib/at-func2.c: Correct/improve first-line comment.
2227         * lib/at-func.c: Correct grammar in first-line comment.
2228
2229 2011-11-04  Bruno Haible  <bruno@clisp.org>
2230
2231         New module 'mkdirat', split off from module 'openat'.
2232         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2233         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2234         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2235         * modules/mkdirat: New file, extracted from modules/openat.
2236         * modules/openat (Files): Remove lib/mkdirat.c.
2237         (Depends-on): Remove mkdir.
2238         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2239         (Include): Remove <sys/stat.h>.
2240         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2241         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2242         tests/test-mkdir.h.
2243         (Depends-on): Remove ignore-value.
2244         (Makefile.am): Remove rules for test-mkdirat.
2245         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2246         of module 'openat'.
2247         * NEWS: Mention the change.
2248
2249 2011-11-04  Bruno Haible  <bruno@clisp.org>
2250
2251         closedir: Avoid warning on mingw.
2252         * lib/closedir.c: Include <unistd.h>.
2253
2254 2011-11-04  Bruno Haible  <bruno@clisp.org>
2255
2256         New module 'fstatat', split off from module 'openat'.
2257         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2258         defined.
2259         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2260         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2261         gl_FUNC_FSTATAT.
2262         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2263         * modules/fstatat: New file, extracted from modules/openat.
2264         * modules/openat (Files): Remove lib/fstatat.c.
2265         (Depends-on): Remove lstat.
2266         (configure.ac): Remove AC_LIBOBJ of fstatat.
2267         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2268         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2269         tests/test-lstat.h, tests/test-stat.h.
2270         (Depends-on): Remove getcwd-lgpl.
2271         (Makefile.am): Remove rules for test-fstatat.
2272         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2273         of module 'openat'.
2274         * NEWS: Mention the change.
2275         * modules/getcwd (Depends-on): Add fstatat.
2276         * modules/linkat (Depends-on): Likewise.
2277         * modules/mkfifoat-tests (Depends-on): Likewise.
2278         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2279
2280 2011-11-03  Bruno Haible  <bruno@clisp.org>
2281
2282         New module 'unlinkat', split off from module 'openat'.
2283         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2284         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2285         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2286         * modules/unlinkat: New file, extracted from modules/openat. Correct
2287         the dependency conditions.
2288         * modules/openat (Files): Remove lib/unlinkat.c.
2289         (Depends-on): Remove rmdir, unlink.
2290         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2291         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2292         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2293         tests/test-rmdir.h, tests/test-unlink.h.
2294         (Depends-on): Remove unlinkdir.
2295         (Makefile.am): Remove rules for test-unlinkat.
2296         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2297         of module 'openat'.
2298         * NEWS: Mention the change.
2299         * modules/linkat-tests (Depends-on): Add unlinkat.
2300         * modules/mkfifoat-tests (Depends-on): Likewise.
2301         * modules/readlinkat-tests (Depends-on): Likewise.
2302
2303 2011-11-02  Bruno Haible  <bruno@clisp.org>
2304
2305         New module 'fchmodat', split off from module 'openat'.
2306         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2307         defined.
2308         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2309         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2310         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2311         * modules/fchmodat: New file, extracted from modules/openat.
2312         * modules/openat (Files): Remove lib/fchmodat.c.
2313         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2314         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2315         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2316         (Makefile.am): Remove rules for test-fchmodat.
2317         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2318         of module 'openat'.
2319         * NEWS: Mention the change.
2320
2321 2011-11-02  Jim Meyering  <meyering@redhat.com>
2322
2323         putenv: indent #definition of "environ" to placate cppi
2324         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2325
2326         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2327         Git logs are often treated as immutable, because editing them
2328         changes the SHA1 checksums of all descendants.  Thus, errors in
2329         git logs tend to stay there forever.  However, when we generate
2330         a ChangeLog file -- typically for distribution -- from that git log,
2331         we can actually make corrections in the generated file.  The key
2332         lies in recording in machine-readable/applicable form the desired
2333         corrections.  See --help for description and an example.
2334         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2335         (usage): Describe it; alphabetize option descriptions.
2336         (main): Honor the new option, carefully.
2337
2338 2011-11-01  Jim Meyering  <meyering@redhat.com>
2339
2340         gitlog-to-changelog: avoid an infloop
2341         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2342         that ends up being empty.
2343
2344 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2347         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2348         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2349         contains (possibly-quoted) backslashes.  This should avoid
2350         all-too-common shell bugs if COMPLICATED contains backslashes in
2351         the "wrong" places.  Reported by David Evans in
2352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2353         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2354         because we want ASCII ranges.  Is there some reason we don't use
2355         the C locale everywhere in this script?
2356         (func_module, top level): Avoid unwanted pathname expansion when
2357         $repo_url_prefix or $repo_url_suffix_repl contain shell
2358         metacharacters like '?' and '*'.
2359
2360 2011-11-01  Bruno Haible  <bruno@clisp.org>
2361
2362         fchownat: Improve description.
2363         * modules/fchownat (Description): Add link to function.
2364
2365 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2366
2367         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2368         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2370         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2371
2372 2011-11-01  Bruno Haible  <bruno@clisp.org>
2373
2374         alignof: Avoid collision with stdalign module.
2375         * lib/alignof.h (alignof): Remove macro.
2376         * NEWS: Mention the change.
2377         Reported by Paul Eggert.
2378
2379 2011-11-01  Bruno Haible  <bruno@clisp.org>
2380
2381         New module 'fchownat', split off from module 'openat'.
2382         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2383         defined.
2384         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2385         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2386         invoke gl_FUNC_FCHOWNAT.
2387         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2388         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2389         * modules/fchownat: New file, extracted from modules/openat.
2390         * modules/openat (Files): Remove lib/fchownat.c.
2391         (Depends-on): Remove lchown.
2392         (configure.ac): Remove AC_LIBOBJ of fchownat.
2393         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2394         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2395         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2396         (Depends-on): Remove mgetgroups, usleep, stat-time.
2397         (configure.ac): Remove test for getegid.
2398         (Makefile.am): Remove rules for test-fchownat.
2399         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2400         of module 'openat'.
2401         * NEWS: Mention the change.
2402
2403 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2404
2405         stdalign: port better to MSVC and to Sun C 5.11
2406         This fixes some of the problems reported by Bruno Haible in
2407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2408         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2409         shortcomings of MSVC and of Sun C 5.11.
2410         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2411         around __declspec arg.
2412         * modules/stdalign-tests (Files): Add tests/macros.h.
2413         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2414         Include macros.h, for ASSERT.
2415         (DECLARE_ALIGNED): Remove.
2416         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2417         to catch bug), and to 1 if not (simplifies the rest of the code).
2418         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2419         (CHECK_AUTO): Remove.
2420         (CHECK_ALIGNED): Check only the alignment of the static vars,
2421         since auto var alignment isn't supported by Sun C 5.11.
2422         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2423         ASSERT failures are easier to diagnose.
2424
2425 2011-10-31  Bruno Haible  <bruno@clisp.org>
2426
2427         doc about some IRIX 5.3 problems.
2428         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2429         on IRIX 5.3.
2430         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2431         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2432         5.3.
2433         * doc/posix-functions/grantpt.texi: Likewise.
2434         * doc/posix-functions/unlockpt.texi: Likewise.
2435         * doc/posix-functions/lgamma.texi: Likewise.
2436         * doc/posix-functions/nextafter.texi: Likewise.
2437         * doc/posix-functions/remainder.texi: Likewise.
2438         * doc/posix-functions/select.texi: Mention misplaced declaration on
2439         IRIX 5.3.
2440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2441
2442 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2443
2444         gitlog-to-changelog: fix git-log invocation.
2445         git-log mishandles date strings before 1970-01-01 UTC, and there is
2446         no use to specify --since=1970-01-01 by default anyway.
2447         * build-aux/gitlog-to-changelog: By default, when no --since option
2448         was given, do not specify explicit --since option to git-log.
2449
2450 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2451
2452         gitlog-to-changelog: new option --append-dot.
2453         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2454         first non-blank line of each commit message terminated with a dot.
2455
2456 2011-10-30  Bruno Haible  <bruno@clisp.org>
2457
2458         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2459         * lib/ffsl.h: Include <config.h>.
2460         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2461
2462 2011-10-30  Jim Meyering  <meyering@redhat.com>
2463
2464         GNUmakefile: reenable "make syntax-check" for most projects
2465         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2466         build-aux variable", "syntax-check" would do nothing but succeed with
2467         the "No version control files detected..." diagnostic (unless you
2468         happened to override _build-aux via cfg.mk).
2469         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2470         to precede inclusion of maint.mk.  Otherwise, these variables would
2471         be used undefined in any project that does not override the default.
2472
2473 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2474
2475         gitlog-to-changelog: treat a message with only blank lines as empty.
2476         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2477         trailing blank lines before the code that issues a warning about an
2478         empty commit message.
2479
2480 2011-10-30  Jim Meyering  <meyering@redhat.com>
2481
2482         test-parse-datetime.c: avoid new DST-related false positive test failure
2483         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2484         based on the time/date we'll convert, not the current time.
2485         Otherwise, the moment we cross a DST boundary like today's in
2486         Europe, (CEST to CET), that offset ends up being one hour off.
2487
2488 2011-10-27  Bruno Haible  <bruno@clisp.org>
2489
2490         fstat: Tweak documentation.
2491         * modules/fstat (Description): More precise description.
2492
2493 2011-10-27  Bruno Haible  <bruno@clisp.org>
2494
2495         Update documentation regarding 'largefile' module.
2496         * doc/posix-functions/fstat.texi: Tweak wording.
2497         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2498         problems with huge directories and/or small ino_t types.
2499         * doc/posix-functions/readdir.texi: Likewise.
2500         * doc/posix-functions/rewinddir.texi: Likewise.
2501
2502 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2503
2504         maint.mk: don't maintain a second build-aux variable.
2505         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2506         depends on GNUmakefile, which already maintains a cfg.mk
2507         overridable $(_build-aux) for projects with a non-standard
2508         build-aux directory location, although without the $(srcdir)
2509         prefix.  Use that variable consistently instead of introducing a
2510         second one.  Adjust all call sites.
2511
2512 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2513
2514         Add stdalign module and use it in other modules.
2515         This is based on a previous proposal by Bruno Haible
2516         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2517
2518         stdalign: new module
2519         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2520         * modules/stdalign: New files.
2521         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2522         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2523
2524         stdalign-tests: new module
2525         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2526
2527         argp: use stdalign
2528         * lib/argp-parse.c: Include <stdalign.h>.
2529         (alignof): Remove.
2530         * modules/argp (Depends-on): Add stdalign.
2531
2532         crypto libraries: use stdalign
2533         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2534         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2535         Do not include <stdlib.h> twice, in md4.c.
2536         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2537         because we are accessing a pointer's bit-pattern, not a size.
2538         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2539         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2540         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2541         * modules/crypto/sha512: Likewise.
2542
2543         sys_socket: use stdalign, not alignof
2544         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2545         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2546
2547 2011-10-27  Bruno Haible  <bruno@clisp.org>
2548
2549         raise test: Avoid a test failure on Linux/MIPS.
2550         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2551         because 99 is a valid signal on Linux/MIPS.
2552
2553 2011-10-27  Bruno Haible  <bruno@clisp.org>
2554
2555         nonblocking tests: Fix test failure on Linux/MIPS.
2556         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2557         Set to 270000.
2558
2559 2011-10-27  Bruno Haible  <bruno@clisp.org>
2560
2561         utimensat: Work around problem on Linux/hppa.
2562         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2563         values.
2564         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2565
2566 2011-10-25  Jim Meyering  <meyering@redhat.com>
2567
2568         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2569         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2570         after symbols like NULL, size_t, etc.
2571         Reported by Alfred M. Szmidt.
2572
2573         maint.mk: exempt ENODATA from a syntax-check rule
2574         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2575         from the sc_prohibit_always-defined_macros syntax-check rule.
2576         Add a comment.  See this for more details:
2577         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2578
2579 2011-10-23  Jim Meyering  <meyering@redhat.com>
2580
2581         fts: close parent dir FD before returning from post-traversal fts_read
2582         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2583         unlink A, even though an FD open on A remained.  This is suboptimal
2584         (holding a file descriptor open longer than needed), but otherwise not
2585         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2586         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2587         that represents a real problem: it causes the removal of A to fail
2588         with e.g., "rm: cannot remove `A': Device or resource busy"
2589
2590         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2591         directory file descriptors.  After completing the final, FTS_DP,
2592         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2593         cache, but then proceeded to add a new FD to it via the subsequent
2594         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2595         final file descriptor would be closed only via fts_close's call to
2596         fd_ring_clear.  Now, it is usually closed earlier, via the final
2597         FTS_DP-returning fts_read call.
2598         * lib/fts.c (restore_initial_cwd): New function, converted from
2599         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2600         Update callers.
2601         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2602         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2603
2604 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2605             Bruno Haible  <bruno@clisp.org>
2606             Jim Meyering  <jim@meyering.net>
2607
2608         readme-release: improve safety of release prep instructions.
2609         * README-release: Don't git pull all branches when only master
2610         is needed for the release process.
2611         Run make maintainer-clean before changing trees and merging.
2612         Don't try to run ./configure right after git pull in case files
2613         that influence the bootstrap process have changed, move the
2614         ./configure step to after running ./bootstrap.
2615         Don't bootstrap "one last time"... it's the first time!
2616
2617 2011-10-22  Bruno Haible  <bruno@clisp.org>
2618
2619         errno, strerror-override: Support for MSVC 10.
2620         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2621         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2622         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2623         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2624         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2625         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2626         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2627         Assign values compatible with MSVC 10.
2628         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2629         New macros.
2630         (GNULIB_defined_EWINSOCK): New macro.
2631         * lib/strerror-override.c (strerror_override): Update accordingly.
2632         * lib/strerror-override.h: Likewise.
2633         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2634         longer equal to the corresponding errno value.
2635         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2636
2637 2011-10-22  Bruno Haible  <bruno@clisp.org>
2638
2639         perror: Recognize when test program crashes.
2640         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2641         strerror, set gl_cv_func_perror_works to no.
2642         Reported by Daniel Richard G. <skunk@iskunk.org>.
2643
2644         perror: Fix indentation.
2645         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2646
2647 2011-10-22  Bruno Haible  <bruno@clisp.org>
2648
2649         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2650         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2651         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2652         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2653         functions, not as a macro.
2654         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2655         macros.
2656         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2657         absence of macro.
2658         Suggested by Eric Blake.
2659         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2660
2661 2011-10-21  Bruno Haible  <bruno@clisp.org>
2662
2663         relocatable-prog-wrapper: Don't leave object files behind.
2664         * build-aux/install-reloc: Re-synchronize list of .o files to be
2665         removed with list of compilation units.
2666
2667 2011-10-20  Bruno Haible  <bruno@clisp.org>
2668
2669         openpty, posix_openpt: Remove code duplication.
2670         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2671         * lib/openpty.c: Include <stdlib.h>.
2672         (openpty): Use posix_openpt on all platforms except IRIX.
2673         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2674
2675 2011-10-20  Bruno Haible  <bruno@clisp.org>
2676
2677         unlockpt: Detect invalid argument.
2678         * lib/unlockpt.c: Include <fcntl.h>.
2679         (unlockpt): Check whether fd is valid, using fcntl().
2680         * modules/unlockpt (Depends-on): Add fcntl-h.
2681
2682 2011-10-20  Bruno Haible  <bruno@clisp.org>
2683
2684         openpty: Avoid compilation error on AIX 6.1.
2685         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2686
2687 2011-10-20  Bruno Haible  <bruno@clisp.org>
2688
2689         posix_openpt: Support for OpenBSD.
2690         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2691         (posix_openpt) [OpenBSD]: New code.
2692         * lib/grantpt.c: Include <fcntl.h>.
2693         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2694         * modules/grantpt (Depends-on): Add fcntl-h.
2695
2696 2011-10-20  Bruno Haible  <bruno@clisp.org>
2697
2698         posix_openpt test: Coding style.
2699         * tests/test-posix_openpt.c: Use GNU coding style.
2700
2701 2011-10-20  Bruno Haible  <bruno@clisp.org>
2702
2703         grantpt: Support --avoid=pt_chown.
2704         * modules/grantpt (Files): Add lib/pty-private.h.
2705
2706 2011-10-20  Bruno Haible  <bruno@clisp.org>
2707
2708         posix_openpt: Fix autoconf macro.
2709         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2710         unneeded check for _getpty.
2711
2712 2011-10-20  Bruno Haible  <bruno@clisp.org>
2713
2714         openpty: Update comments.
2715         * lib/openpty.c: Add comments about Minix.
2716
2717 2011-10-19  Eric Blake  <eblake@redhat.com>
2718
2719         openpty: relax license
2720         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2721
2722         pt_chown: use configmake to simplify build
2723         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2724
2725         ptsname and others: relax license
2726         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2727         * modules/unlockpt (License): Likewise.
2728         * modules/pt_chown (License): Likewise.
2729         * modules/ptsname (License): Likewise.
2730         * modules/ttyname_r (License): Likewise.
2731
2732 2011-10-19  Jim Meyering  <meyering@redhat.com>
2733
2734         posix_openpt: remove spurious #endif
2735         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2736
2737 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2738
2739         maint.mk: Respect $(build_aux) in web-manual rule.
2740         * top/maint.mk (web-manual): Find gen-announce script in user's
2741         $(build_aux) directory instead of hard-coding 'build-aux'.
2742
2743 2011-10-19  Bruno Haible  <bruno@clisp.org>
2744
2745         posix_openpt: Fix compilation error.
2746         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2747         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2748         Mention the openpty module as an alternative.
2749
2750 2011-10-19  Bruno Haible  <bruno@clisp.org>
2751
2752         Support for old NeXTstep 3.3 frexp().
2753         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2754         execution time of the test to 5 seconds.
2755         Reported by Daniel Richard G. <skunk@iskunk.org>.
2756
2757 2011-10-19  Bruno Haible  <bruno@clisp.org>
2758
2759         Support for old NeXTstep 3.3 sed.
2760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2761         part, use /.../, not \|...|. Escape periods in the header file name.
2762         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2763         Reported by Daniel Richard G. <skunk@iskunk.org>.
2764
2765 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2766
2767         Support for old NeXTstep 3.3 gcc.
2768         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2769         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2770         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2771         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2772         * lib/regex.h (_Restrict_arr_): Likewise.
2773         * lib/regex_internal.h (re_token_t): Likewise.
2774         * lib/regexec.c (check_node_accept_bytes): Likewise.
2775         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2776
2777 2011-10-18  Eric Blake  <eblake@redhat.com>
2778
2779         posix_openpt: new module
2780         * modules/posix_openpt: New module.
2781         * m4/posix_openpt.m4: New file.
2782         * lib/posix_openpt.c: Likewise.
2783         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2784         (gl_STDLIB_H_DEFAULTS): Set defaults.
2785         * modules/stdlib (Makefile.am): Substitute macros.
2786         * lib/stdlib.in.h (posix_openpt): Declare.
2787         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2788         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2789         * modules/posix_openpt-tests: New test module.
2790         * tests/test-posix_openpt.c: New test.
2791
2792 2011-10-15  Bruno Haible  <bruno@clisp.org>
2793
2794         xstrtoll: Fix compilation failure.
2795         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2796         from lib/strtol.c.
2797         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2798         some platforms.
2799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2800
2801 2011-10-15  Bruno Haible  <bruno@clisp.org>
2802
2803         vasnprintf: Optimize bit search operation.
2804         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2806         gl_DOUBLE_EXPONENT_LOCATION.
2807         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2808         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2809         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2810         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2811         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2812         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2813         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2814         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2815         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2816
2817 2011-10-15  Bruno Haible  <bruno@clisp.org>
2818
2819         vasnprintf: Fix comments.
2820         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2821
2822 2011-10-14  Bruno Haible  <bruno@clisp.org>
2823
2824         Tests for module 'integer_length_ll'.
2825         * modules/integer_length_ll-tests: New file.
2826         * tests/test-integer_length_ll.c: New file.
2827
2828         New module 'integer_length_ll'.
2829         * lib/integer_length_ll.c: New file.
2830         * modules/integer_length_ll: New file.
2831
2832 2011-10-14  Bruno Haible  <bruno@clisp.org>
2833
2834         Tests for module 'integer_length_l'.
2835         * modules/integer_length_l-tests: New file.
2836         * tests/test-integer_length_l.c: New file.
2837
2838         New module 'integer_length_l'.
2839         * lib/integer_length_l.c: New file.
2840         * modules/integer_length_l: New file.
2841
2842 2011-10-14  Bruno Haible  <bruno@clisp.org>
2843
2844         Tests for module 'integer_length'.
2845         * modules/integer_length-tests: New file.
2846         * tests/test-integer_length.c: New file.
2847
2848         New module 'integer_length'.
2849         * lib/integer_length.h: New file.
2850         * lib/integer_length.c: New file.
2851         * modules/integer_length: New file.
2852
2853 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2854
2855         popen: Fix dependency conditions.
2856         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2857
2858 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2859
2860         perror: Fix autoconf test.
2861         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2862         <stdlib.h> and <string.h>.
2863
2864 2011-10-14  Bruno Haible  <bruno@clisp.org>
2865
2866         ffsl: Optimize on 64-bit platforms.
2867         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2868         unrolling.
2869
2870 2011-10-13  Bruno Haible  <bruno@clisp.org>
2871
2872         ffsl: Optimize on 32-bit platforms.
2873         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2874         use ffs() without a loop.
2875
2876         ffsl, ffsll: Optimize for GCC.
2877         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2878         * lib/ffsl.c (GCC_BUILTIN): New macro.
2879         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2880
2881 2011-10-13  Bruno Haible  <bruno@clisp.org>
2882
2883         ffs, bcopy, memset: Support symbol renaming via config.h.
2884         * lib/ffs.c: Include <config.h>.
2885         * lib/bcopy.c: Likewise.
2886         * lib/memset.c: Likewise.
2887
2888 2011-10-10  Bruno Haible  <bruno@clisp.org>
2889
2890         atanl: Simplify for platforms where 'long double' == 'double'.
2891         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2892         alternative implementation.
2893         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2894         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2895         * modules/atanl (Depends-on): Add atan. Update conditions.
2896
2897 2011-10-10  Bruno Haible  <bruno@clisp.org>
2898
2899         acosl: Simplify for platforms where 'long double' == 'double'.
2900         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2901         alternative implementation.
2902         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2903         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2904         * modules/acosl (Depends-on): Add acos. Update conditions.
2905
2906 2011-10-10  Bruno Haible  <bruno@clisp.org>
2907
2908         asinl: Simplify for platforms where 'long double' == 'double'.
2909         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2910         alternative implementation.
2911         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2912         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2913         * modules/asinl (Depends-on): Add asin. Update conditions.
2914
2915 2011-10-10  Bruno Haible  <bruno@clisp.org>
2916
2917         tanl: Simplify for platforms where 'long double' == 'double'.
2918         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2919         implementation.
2920         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2921         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2922         * modules/tanl (Depends-on): Add tan. Update conditions.
2923         (configure.ac): Don't compile trigl.c if
2924         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2925
2926 2011-10-10  Bruno Haible  <bruno@clisp.org>
2927
2928         cosl: Simplify for platforms where 'long double' == 'double'.
2929         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2930         implementation.
2931         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2932         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2933         * modules/cosl (Depends-on): Add cos. Update conditions.
2934         (configure.ac): Don't compile sincosl.c and trigl.c if
2935         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2936
2937 2011-10-10  Bruno Haible  <bruno@clisp.org>
2938
2939         sinl: Simplify for platforms where 'long double' == 'double'.
2940         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2941         implementation.
2942         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2943         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2944         * modules/sinl (Depends-on): Add sin. Update conditions.
2945         (configure.ac): Don't compile sincosl.c and trigl.c if
2946         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2947
2948 2011-10-10  Bruno Haible  <bruno@clisp.org>
2949
2950         logl: Simplify for platforms where 'long double' == 'double'.
2951         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2952         implementation.
2953         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2954         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2955         * modules/logl (Depends-on): Add log. Update conditions.
2956
2957 2011-10-10  Bruno Haible  <bruno@clisp.org>
2958
2959         expl: Simplify for platforms where 'long double' == 'double'.
2960         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2961         implementation.
2962         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2963         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2964         * modules/expl (Depends-on): Add exp. Update conditions.
2965
2966 2011-10-10  Bruno Haible  <bruno@clisp.org>
2967
2968         sqrtl: Simplify for platforms where 'long double' == 'double'.
2969         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2970         alternative implementation.
2971         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2972         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2973         * modules/sqrtl (Depends-on): Update conditions.
2974
2975 2011-10-10  Bruno Haible  <bruno@clisp.org>
2976
2977         ldexpl: Simplify for platforms where 'long double' == 'double'.
2978         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2979         alternative implementation.
2980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2981         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2982         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2983
2984 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2985
2986         ffsll: set correct witness
2987         * modules/ffsll (configure.ac): Fix typo.
2988
2989 2011-10-10  Bruno Haible  <bruno@clisp.org>
2990
2991         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2992         * lib/printf-frexpl.c: Include <config.h>.
2993         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2994         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2995         second time.
2996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2997         gl_LONG_DOUBLE_VS_DOUBLE.
2998         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2999         conditions.
3000
3001 2011-10-10  Bruno Haible  <bruno@clisp.org>
3002
3003         frexpl: Simplify for platforms where 'long double' == 'double'.
3004         * lib/frexpl.c: Include <config.h>.
3005         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3006         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3007         time.
3008         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3009         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3010         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3011         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3012         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3013         conditions.
3014
3015 2011-10-10  Jim Meyering  <meyering@redhat.com>
3016
3017         test-renameat: don't leave behind a temporary file
3018         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3019           ERROR: files left in build directory after distclean:
3020           ./gltests/test-renameat.too
3021           make[1]: *** [distcleancheck] Error 1
3022         Reported by Tom G. Christensen.
3023
3024 2011-10-09  Bruno Haible  <bruno@clisp.org>
3025
3026         rint: Determine RINT_LIBM correctly on AIX 7.
3027         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3028         directly, not only through a function pointer. Also accept an optional
3029         4th argument with extra code.
3030         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3031         rintf() call by gcc when optimizing.
3032
3033         mathfunc.m4: Refactor.
3034         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3035         m4 variable.
3036
3037 2011-10-09  Bruno Haible  <bruno@clisp.org>
3038
3039         rintl: Simplify for platforms where 'long double' == 'double'.
3040         * lib/rintl.c: Include <config.h>.
3041         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3042         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3043         time.
3044         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3045         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3046         * modules/rintl (Depends-on): Add rint. Update conditions.
3047
3048 2011-10-09  Bruno Haible  <bruno@clisp.org>
3049
3050         roundl: Simplify for platforms where 'long double' == 'double'.
3051         * lib/roundl.c: Include <config.h>.
3052         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3053         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3054         time.
3055         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3056         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3057         * modules/roundl (Depends-on): Add round. Update conditions.
3058
3059 2011-10-09  Bruno Haible  <bruno@clisp.org>
3060
3061         truncl: Simplify for platforms where 'long double' == 'double'.
3062         * lib/truncl.c: Include <config.h>.
3063         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3064         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3065         time.
3066         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3067         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3068         * modules/truncl (Depends-on): Add trunc. Update conditions.
3069
3070 2011-10-09  Bruno Haible  <bruno@clisp.org>
3071
3072         ceill: Simplify for platforms where 'long double' == 'double'.
3073         * lib/ceill.c: Include <config.h>.
3074         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3075         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3076         time.
3077         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3078         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3079         * modules/ceill (Depends-on): Add ceil. Update conditions.
3080
3081 2011-10-09  Bruno Haible  <bruno@clisp.org>
3082
3083         floorl: Simplify for platforms where 'long double' == 'double'.
3084         * lib/floorl.c: Include <config.h>.
3085         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3086         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3087         time.
3088         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3089         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3090         * modules/floorl (Depends-on): Add floor. Update conditions.
3091
3092 2011-10-09  Bruno Haible  <bruno@clisp.org>
3093
3094         rint: Fix ordering constraints.
3095         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3096         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3097         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3098
3099 2011-10-09  Bruno Haible  <bruno@clisp.org>
3100
3101         copysignl: Simplify for platforms where 'long double' == 'double'.
3102         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3103         alternative.
3104         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3105         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3106         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3107
3108 2011-10-09  Bruno Haible  <bruno@clisp.org>
3109
3110         Tests for module 'rintl'.
3111         * modules/rintl-tests: New file.
3112         * tests/test-rintl.c: New file.
3113
3114         New module 'rintl'.
3115         * lib/math.in.h (rintl): New declaration.
3116         * lib/rintl.c: New file.
3117         * m4/rintl.m4: New file.
3118         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3120         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3121         * modules/rintl: New file.
3122         * tests/test-math-c++.cc: Check the declaration of rintl.
3123         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3124         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3125         * doc/posix-functions/rintl.texi: Mention the new module.
3126
3127 2011-10-09  Bruno Haible  <bruno@clisp.org>
3128
3129         Tests for module 'rintf'.
3130         * modules/rintf-tests: New file.
3131         * tests/test-rintf.c: New file.
3132
3133         New module 'rintf'.
3134         * lib/math.in.h (rintf): New declaration.
3135         * lib/rintf.c: New file.
3136         * m4/rintf.m4: New file.
3137         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3139         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3140         * modules/rintf: New file.
3141         * tests/test-math-c++.cc: Check the declaration of rintf.
3142         * doc/posix-functions/rintf.texi: Mention the new module.
3143
3144 2011-10-09  Bruno Haible  <bruno@clisp.org>
3145
3146         rint: Support for MSVC.
3147         * lib/math.in.h (rint): New declaration.
3148         * lib/rint.c: New file.
3149         * m4/rint.m4: New file.
3150         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3152         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3153         * modules/rint (Description): Fix.
3154         (Files): Add lib/rint.c, m4/rint.m4.
3155         (Depends-on): Add math.
3156         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3157         gl_MATH_MODULE_INDICATOR.
3158         * tests/test-math-c++.cc: Check the declaration of rint.
3159         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3160         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3161         * doc/posix-functions/rint.texi: Mention the replacement provided by
3162         the module.
3163
3164         rint tests: More tests.
3165         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3166         minus-zero.h, infinity.h, nan.h.
3167         (main): Skip the test if the current rounding mode is not standard. Add
3168         tests for negative numbers, minus zero, infinity, NaN.
3169         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3170         tests/nan.h.
3171         (Depends-on): Add isnand-nolibm.
3172
3173 2011-10-09  Bruno Haible  <bruno@clisp.org>
3174
3175         Tests for module 'copysignl'.
3176         * modules/copysignl-tests: New file.
3177         * tests/test-copysignl.c: New file.
3178
3179         New module 'copysignl'.
3180         * lib/math.in.h (copysignl): New declaration.
3181         * lib/copysignl.c: New file.
3182         * m4/copysignl.m4: New file.
3183         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3185         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3186         HAVE_COPYSIGNL.
3187         * modules/copysignl: New file.
3188         * tests/test-math-c++.cc: Check the declaration of copysignl.
3189         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3190         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3191         * doc/posix-functions/copysignl.texi: Mention the new module.
3192
3193 2011-10-09  Bruno Haible  <bruno@clisp.org>
3194
3195         Tests for module 'copysignf'.
3196         * modules/copysignf-tests: New file.
3197         * tests/test-copysignf.c: New file.
3198
3199         New module 'copysignf'.
3200         * lib/math.in.h (copysignf): New declaration.
3201         * lib/copysignf.c: New file.
3202         * m4/copysignf.m4: New file.
3203         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3205         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3206         HAVE_COPYSIGNF.
3207         * modules/copysignf: New file.
3208         * tests/test-math-c++.cc: Check the declaration of copysignf.
3209         * doc/posix-functions/copysignf.texi: Mention the new module.
3210
3211 2011-10-09  Bruno Haible  <bruno@clisp.org>
3212
3213         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3214         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3215         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3216         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3218         gl_SIGNAL_H_DEFAULTS.
3219
3220 2011-10-09  Bruno Haible  <bruno@clisp.org>
3221
3222         poll: Make macro safer.
3223         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3224         ac_cv_header_poll_h is not set.
3225
3226 2011-10-09  Bruno Haible  <bruno@clisp.org>
3227
3228         copysign: Provide replacement.
3229         * lib/math.in.h (copysign): New declaration.
3230         * lib/copysign.c: New file.
3231         * m4/copysign.m4: New file.
3232         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3234         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3235         HAVE_COPYSIGN.
3236         * modules/copysign (Description): Clarify.
3237         (Files): Add lib/copysign.c, m4/copysign.m4.
3238         (Depends-on): Add math, signbit.
3239         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3240         gl_MATH_MODULE_INDICATOR.
3241         * tests/test-math-c++.cc: Check the declaration of copysign.
3242         * doc/posix-functions/copysign.texi: Mention the effects of the module
3243         on Minix and MSVC.
3244
3245 2011-10-09  Bruno Haible  <bruno@clisp.org>
3246
3247         isinf: Ensure macro on AIX 5.1.
3248         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3249         macro.
3250         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3251
3252 2011-10-09  Bruno Haible  <bruno@clisp.org>
3253
3254         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3255         * modules/snprintf-posix-tests (configure.ac): Require
3256         gl_LONG_DOUBLE_VS_DOUBLE.
3257         * modules/sprintf-posix-tests (configure.ac): Likewise.
3258         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3259         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3260         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3261         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3262         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3263         tests on platforms where 'long double' is the same as 'double'.
3264         * tests/test-sprintf-posix.h (test_function): Likewise.
3265         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3266         * tests/test-vasprintf-posix.c (test_function): Likewise.
3267
3268         *printf: Fix for platforms where 'long double' == 'double'.
3269         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3270         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3271         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3272         * modules/fprintf-posix (Files): Likewise.
3273         * modules/obstack-printf-posix (Files): Likewise.
3274         * modules/snprintf-posix (Files): Likewise.
3275         * modules/sprintf-posix (Files): Likewise.
3276         * modules/vasnprintf (Files): Likewise.
3277         * modules/vasnprintf-posix (Files): Likewise.
3278         * modules/vasprintf-posix (Files): Likewise.
3279         * modules/vdprintf-posix (Files): Likewise.
3280         * modules/vfprintf-posix (Files): Likewise.
3281         * modules/vsnprintf-posix (Files): Likewise.
3282         * modules/vsprintf-posix (Files): Likewise.
3283         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3284         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3285         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3286         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3287         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3288         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3289         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3290
3291         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3292         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3293         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3294         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3295         'long double'.
3296         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3297
3298         isinf: Fix for platforms where 'long double' == 'double'.
3299         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3300         Don't blindly assume 80-bit 'long double'.
3301
3302         isfinite: Fix for platforms where 'long double' == 'double'.
3303         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3304         Don't blindly assume 80-bit 'long double'.
3305
3306         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3307         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3308         * modules/isfinite-tests (configure.ac): Require
3309         gl_LONG_DOUBLE_VS_DOUBLE.
3310         * modules/isinf-tests (configure.ac): Likewise.
3311         * modules/isnan-tests (configure.ac): Likewise.
3312         * modules/isnanl-tests (configure.ac): Likewise.
3313         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3314         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3315         tests on platforms where 'long double' is the same as 'double'.
3316         * tests/test-isinf.c (test_isinfl): Likewise.
3317         * tests/test-isnan.c (test_long_double): Likewise.
3318         * tests/test-isnanl.h (main): Likewise.
3319
3320 2011-10-08  Bruno Haible  <bruno@clisp.org>
3321
3322         Tests for module 'tanhf'.
3323         * modules/tanhf-tests: New file.
3324         * tests/test-tanhf.c: New file.
3325
3326         New module 'tanhf'.
3327         * lib/math.in.h (tanhf): New declaration.
3328         * lib/tanhf.c: New file.
3329         * m4/tanhf.m4: New file.
3330         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3332         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3333         * modules/tanhf: New file.
3334         * tests/test-math-c++.cc: Check the declaration of tanhf.
3335         * doc/posix-functions/tanhf.texi: Mention the new module.
3336
3337         tanh: Use a .m4 file.
3338         * m4/tanh.m4: New file.
3339         * modules/tanh (Files): Add it.
3340         (configure.ac): Just invoke gl_FUNC_TANH.
3341
3342 2011-10-08  Bruno Haible  <bruno@clisp.org>
3343
3344         Tests for module 'coshf'.
3345         * modules/coshf-tests: New file.
3346         * tests/test-coshf.c: New file.
3347
3348         New module 'coshf'.
3349         * lib/math.in.h (coshf): New declaration.
3350         * lib/coshf.c: New file.
3351         * m4/coshf.m4: New file.
3352         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3354         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3355         * modules/coshf: New file.
3356         * tests/test-math-c++.cc: Check the declaration of coshf.
3357         * doc/posix-functions/coshf.texi: Mention the new module.
3358
3359         cosh: Use a .m4 file.
3360         * m4/cosh.m4: New file.
3361         * modules/cosh (Files): Add it.
3362         (configure.ac): Just invoke gl_FUNC_COSH.
3363
3364 2011-10-08  Bruno Haible  <bruno@clisp.org>
3365
3366         Tests for module 'sinhf'.
3367         * modules/sinhf-tests: New file.
3368         * tests/test-sinhf.c: New file.
3369
3370         New module 'sinhf'.
3371         * lib/math.in.h (sinhf): New declaration.
3372         * lib/sinhf.c: New file.
3373         * m4/sinhf.m4: New file.
3374         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3376         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3377         * modules/sinhf: New file.
3378         * tests/test-math-c++.cc: Check the declaration of sinhf.
3379         * doc/posix-functions/sinhf.texi: Mention the new module.
3380
3381         sinh: Use a .m4 file.
3382         * m4/sinh.m4: New file.
3383         * modules/sinh (Files): Add it.
3384         (configure.ac): Just invoke gl_FUNC_SINH.
3385
3386 2011-10-08  Bruno Haible  <bruno@clisp.org>
3387
3388         Tests for module 'atan2f'.
3389         * modules/atan2f-tests: New file.
3390         * tests/test-atan2f.c: New file.
3391
3392         New module 'atan2f'.
3393         * lib/math.in.h (atan2f): New declaration.
3394         * lib/atan2f.c: New file.
3395         * m4/atan2f.m4: New file.
3396         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3398         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3399         * modules/atan2f: New file.
3400         * tests/test-math-c++.cc: Check the declaration of atan2f.
3401         * doc/posix-functions/atan2f.texi: Mention the new module.
3402
3403         atan2: Use a .m4 file.
3404         * m4/atan2.m4: New file.
3405         * modules/atan2 (Files): Add it.
3406         (configure.ac): Just invoke gl_FUNC_ATAN2.
3407
3408 2011-10-08  Bruno Haible  <bruno@clisp.org>
3409
3410         Tests for module 'atanf'.
3411         * modules/atanf-tests: New file.
3412         * tests/test-atanf.c: New file.
3413
3414         New module 'atanf'.
3415         * lib/math.in.h (atanf): New declaration.
3416         * lib/atanf.c: New file.
3417         * m4/atanf.m4: New file.
3418         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3420         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3421         * modules/atanf: New file.
3422         * tests/test-math-c++.cc: Check the declaration of atanf.
3423         * doc/posix-functions/atanf.texi: Mention the new module.
3424
3425         atan: Use a .m4 file.
3426         * m4/atan.m4: New file.
3427         * modules/atan (Files): Add it.
3428         (configure.ac): Just invoke gl_FUNC_ATAN.
3429
3430 2011-10-08  Bruno Haible  <bruno@clisp.org>
3431
3432         Tests for module 'acosf'.
3433         * modules/acosf-tests: New file.
3434         * tests/test-acosf.c: New file.
3435
3436         New module 'acosf'.
3437         * lib/math.in.h (acosf): New declaration.
3438         * lib/acosf.c: New file.
3439         * m4/acosf.m4: New file.
3440         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3442         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3443         * modules/acosf: New file.
3444         * tests/test-math-c++.cc: Check the declaration of acosf.
3445         * doc/posix-functions/acosf.texi: Mention the new module.
3446
3447         acos: Use a .m4 file.
3448         * m4/acos.m4: New file.
3449         * modules/acos (Files): Add it.
3450         (configure.ac): Just invoke gl_FUNC_ACOS.
3451
3452 2011-10-08  Bruno Haible  <bruno@clisp.org>
3453
3454         Tests for module 'asinf'.
3455         * modules/asinf-tests: New file.
3456         * tests/test-asinf.c: New file.
3457
3458         New module 'asinf'.
3459         * lib/math.in.h (asinf): New declaration.
3460         * lib/asinf.c: New file.
3461         * m4/asinf.m4: New file.
3462         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3464         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3465         * modules/asinf: New file.
3466         * tests/test-math-c++.cc: Check the declaration of asinf.
3467         * doc/posix-functions/asinf.texi: Mention the new module.
3468
3469         asin: Use a .m4 file.
3470         * m4/asin.m4: New file.
3471         * modules/asin (Files): Add it.
3472         (configure.ac): Just invoke gl_FUNC_ASIN.
3473
3474 2011-10-08  Bruno Haible  <bruno@clisp.org>
3475
3476         Tests for module 'tanf'.
3477         * modules/tanf-tests: New file.
3478         * tests/test-tanf.c: New file.
3479
3480         New module 'tanf'.
3481         * lib/math.in.h (tanf): New declaration.
3482         * lib/tanf.c: New file.
3483         * m4/tanf.m4: New file.
3484         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3486         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3487         * modules/tanf: New file.
3488         * tests/test-math-c++.cc: Check the declaration of tanf.
3489         * doc/posix-functions/tanf.texi: Mention the new module.
3490
3491         tan: Use a .m4 file.
3492         * m4/tan.m4: New file.
3493         * modules/tan (Files): Add it.
3494         (configure.ac): Just invoke gl_FUNC_TAN.
3495
3496 2011-10-08  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'cosf'.
3499         * modules/cosf-tests: New file.
3500         * tests/test-cosf.c: New file.
3501
3502         New module 'cosf'.
3503         * lib/math.in.h (cosf): New declaration.
3504         * lib/cosf.c: New file.
3505         * m4/cosf.m4: New file.
3506         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3508         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3509         * modules/cosf: New file.
3510         * tests/test-math-c++.cc: Check the declaration of cosf.
3511         * doc/posix-functions/cosf.texi: Mention the new module.
3512
3513         cos: Use a .m4 file.
3514         * m4/cos.m4: New file.
3515         * modules/cos (Files): Add it.
3516         (configure.ac): Just invoke gl_FUNC_COS.
3517
3518 2011-10-08  Bruno Haible  <bruno@clisp.org>
3519
3520         Tests for module 'sinf'.
3521         * modules/sinf-tests: New file.
3522         * tests/test-sinf.c: New file.
3523
3524         New module 'sinf'.
3525         * lib/math.in.h (sinf): New declaration.
3526         * lib/sinf.c: New file.
3527         * m4/sinf.m4: New file.
3528         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3530         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3531         * modules/sinf: New file.
3532         * tests/test-math-c++.cc: Check the declaration of sinf.
3533         * doc/posix-functions/sinf.texi: Mention the new module.
3534
3535         sin: Use a .m4 file.
3536         * m4/sin.m4: New file.
3537         * modules/sin (Files): Add it.
3538         (configure.ac): Just invoke gl_FUNC_SIN.
3539
3540 2011-10-08  Bruno Haible  <bruno@clisp.org>
3541
3542         Tests for module 'powf'.
3543         * modules/powf-tests: New file.
3544         * tests/test-powf.c: New file.
3545
3546         New module 'powf'.
3547         * lib/math.in.h (powf): New declaration.
3548         * lib/powf.c: New file.
3549         * m4/powf.m4: New file.
3550         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3552         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3553         * modules/powf: New file.
3554         * tests/test-math-c++.cc: Check the declaration of powf.
3555         * doc/posix-functions/powf.texi: Mention the new module.
3556
3557         pow: Use a .m4 file.
3558         * m4/pow.m4: New file.
3559         * modules/pow (Files): Add it.
3560         (configure.ac): Just invoke gl_FUNC_POW.
3561
3562 2011-10-08  Bruno Haible  <bruno@clisp.org>
3563
3564         Tests for module 'log10f'.
3565         * modules/log10f-tests: New file.
3566         * tests/test-log10f.c: New file.
3567
3568         New module 'log10f'.
3569         * lib/math.in.h (log10f): New declaration.
3570         * lib/log10f.c: New file.
3571         * m4/log10f.m4: New file.
3572         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3574         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3575         * modules/log10f: New file.
3576         * tests/test-math-c++.cc: Check the declaration of log10f.
3577         * doc/posix-functions/log10f.texi: Mention the new module.
3578
3579         log10: Use a .m4 file.
3580         * m4/log10.m4: New file.
3581         * modules/log10 (Files): Add it.
3582         (configure.ac): Just invoke gl_FUNC_LOG10.
3583
3584 2011-10-08  Bruno Haible  <bruno@clisp.org>
3585
3586         Tests for module 'logf'.
3587         * modules/logf-tests: New file.
3588         * tests/test-logf.c: New file.
3589
3590         New module 'logf'.
3591         * lib/math.in.h (logf): New declaration.
3592         * lib/logf.c: New file.
3593         * m4/logf.m4: New file.
3594         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3596         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3597         * modules/logf: New file.
3598         * tests/test-math-c++.cc: Check the declaration of logf.
3599         * doc/posix-functions/logf.texi: Mention the new module.
3600
3601         log: Use a .m4 file.
3602         * m4/log.m4: New file.
3603         * modules/log (Files): Add it.
3604         (configure.ac): Just invoke gl_FUNC_LOG.
3605
3606 2011-10-08  Bruno Haible  <bruno@clisp.org>
3607
3608         Tests for module 'expf'.
3609         * modules/expf-tests: New file.
3610         * tests/test-expf.c: New file.
3611
3612         New module 'expf'.
3613         * lib/math.in.h (expf): New declaration.
3614         * lib/expf.c: New file.
3615         * m4/expf.m4: New file.
3616         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3618         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3619         * modules/expf: New file.
3620         * tests/test-math-c++.cc: Check the declaration of expf.
3621         * doc/posix-functions/expf.texi: Mention the new module.
3622
3623         exp: Use a .m4 file.
3624         * m4/exp.m4: New file.
3625         * modules/exp (Files): Add it.
3626         (configure.ac): Just invoke gl_FUNC_EXP.
3627
3628 2011-10-08  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'sqrtf'.
3631         * modules/sqrtf-tests: New file.
3632         * tests/test-sqrtf.c: New file.
3633
3634         New module 'sqrtf'.
3635         * lib/math.in.h (sqrtf): New declaration.
3636         * lib/sqrtf.c: New file.
3637         * m4/sqrtf.m4: New file.
3638         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3640         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3641         * modules/sqrtf: New file.
3642         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3643         * doc/posix-functions/sqrtf.texi: Mention the new module.
3644
3645 2011-10-08  Bruno Haible  <bruno@clisp.org>
3646
3647         Tests: Avoid link failures w.r.t. libintl.
3648         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3649         $(LIBINTL).
3650         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3651         $(LIBINTL).
3652         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3653         against $(LIBINTL).
3654         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3655         $(LIBINTL).
3656         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3657         $(LIBINTL).
3658         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3659
3660 2011-10-08  Bruno Haible  <bruno@clisp.org>
3661
3662         pow tests: Defeat compiler optimizations.
3663         * tests/test-pow.c (main): Assign arguments to x and y before use.
3664
3665 2011-10-08  Bruno Haible  <bruno@clisp.org>
3666
3667         gnulib-tool: Improve last commit.
3668         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3669         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3670         ignore dependencies that are not among the modules list.
3671
3672 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3673
3674         gnulib-tool: don't follow dependencies to avoided modules
3675         This fixes a bug that is related to the previous one.
3676         * gnulib-tool (func_modules_transitive_closure)
3677         (func_emit_autoconf_snippets):
3678         Check whether a dependency is acceptable before using it.
3679         (--extract-dependencies): Report an error if --avoid is also used,
3680         since this combination of options is not yet supported.
3681
3682         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3683         Problem reported by Peter Dyballa in
3684         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3685         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3686         when echoing "$condition".
3687
3688 2011-10-07  Bruno Haible  <bruno@clisp.org>
3689
3690         Fix documentation about math functions on MacOS X.
3691         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3692         MacOS X 10.5.
3693         * doc/posix-functions/fdim.texi: Likewise.
3694         * doc/posix-functions/feclearexcept.texi: Likewise.
3695         * doc/posix-functions/fegetenv.texi: Likewise.
3696         * doc/posix-functions/fegetround.texi: Likewise.
3697         * doc/posix-functions/feholdexcept.texi: Likewise.
3698         * doc/posix-functions/feraiseexcept.texi: Likewise.
3699         * doc/posix-functions/fesetenv.texi: Likewise.
3700         * doc/posix-functions/fesetround.texi: Likewise.
3701         * doc/posix-functions/fetestexcept.texi: Likewise.
3702         * doc/posix-functions/feupdateenv.texi: Likewise.
3703         * doc/posix-functions/fmax.texi: Likewise.
3704         * doc/posix-functions/fmin.texi: Likewise.
3705         * doc/posix-functions/log2.texi: Likewise.
3706         * doc/posix-functions/modff.texi: Likewise.
3707         * doc/posix-functions/nan.texi: Likewise.
3708         * doc/posix-functions/nanf.texi: Likewise.
3709         * doc/posix-functions/nextafterf.texi: Likewise.
3710         * doc/posix-functions/remquo.texi: Likewise.
3711
3712 2011-10-07  Bruno Haible  <bruno@clisp.org>
3713
3714         modff: Drop assumption about library that defines modff.
3715         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3716         AC_CHECK_FUNCS.
3717         * modules/modff (Files): Add m4/mathfunc.m4.
3718
3719 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3720
3721         raise tests: Avoid a GCC warning.
3722         * tests/test-raise.c (handler): Use _Noreturn.
3723
3724 2011-10-07  Bruno Haible  <bruno@clisp.org>
3725
3726         Tests for module 'ldexpf'.
3727         * modules/ldexpf-tests: New file.
3728         * tests/test-ldexpf.c: New file.
3729
3730         New module 'ldexpf'.
3731         * lib/math.in.h (ldexpf): New declaration.
3732         * lib/ldexpf.c: New file.
3733         * m4/ldexpf.m4: New file.
3734         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3736         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3737         * modules/ldexpf: New file.
3738         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3739         * doc/posix-functions/ldexpf.texi: Mention the new module.
3740
3741 2011-10-06  Bruno Haible  <bruno@clisp.org>
3742
3743         frexpf: Work around problems on IRIX and mingw.
3744         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3746         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3747         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3748         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3749         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3750         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3751
3752 2011-10-06  Bruno Haible  <bruno@clisp.org>
3753
3754         fabsf: Drop assumption about library that defines fabsf.
3755         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3756         AC_CHECK_FUNCS.
3757         * modules/fabsf (Files): Add m4/mathfunc.m4.
3758
3759 2011-10-06  Bruno Haible  <bruno@clisp.org>
3760
3761         frexpf: Drop assumption about library that defines frexpf.
3762         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3763         'int *', 'float *', 'long double *', 'float', 'long double'.
3764         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3765         AC_CHECK_FUNCS.
3766         * modules/frexpf (Files): Add m4/mathfunc.m4.
3767
3768         Tests for module 'frexpf'.
3769         * modules/frexpf-tests: New file.
3770         * tests/test-frexpf.c: New file.
3771
3772         New module 'frexpf'.
3773         * lib/math.in.h (frexpf): New declaration.
3774         * lib/frexpf.c: New file.
3775         * m4/frexpf.m4: New file.
3776         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3778         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3779         * modules/frexpf: New file.
3780         * tests/test-math-c++.cc: Check the declaration of frexpf.
3781         * doc/posix-functions/frexpf.texi: Mention the new module.
3782
3783 2011-10-06  Bruno Haible  <bruno@clisp.org>
3784
3785         math: Sort function declarations of math.in.h.
3786         * lib/math.in.h (frexp, logb): Move declarations.
3787
3788 2011-10-05  Bruno Haible  <bruno@clisp.org>
3789
3790         Tests for module 'modff'.
3791         * modules/modff-tests: New file.
3792         * tests/test-modff.c: New file.
3793
3794         New module 'modff'.
3795         * lib/math.in.h (modff): New declaration.
3796         * lib/modff.c: New file.
3797         * m4/modff.m4: New file.
3798         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3800         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3801         * modules/modff: New file.
3802         * tests/test-math-c++.cc: Check the declaration of modff.
3803         * doc/posix-functions/modff.texi: Mention the new module.
3804
3805         modf tests: Make test sharper.
3806         * tests/test-modf.c (main): Strengthen upper bound.
3807
3808         modf: Use a .m4 file.
3809         * m4/modf.m4: New file.
3810         * modules/modf (Files): Add it.
3811         (configure.ac): Just invoke gl_FUNC_MODF.
3812
3813 2011-10-05  Bruno Haible  <bruno@clisp.org>
3814
3815         Tests for module 'fmodf'.
3816         * modules/fmodf-tests: New file.
3817         * tests/test-fmodf.c: New file.
3818
3819         New module 'fmodf'.
3820         * lib/math.in.h (fmodf): New declaration.
3821         * lib/fmodf.c: New file.
3822         * m4/fmodf.m4: New file.
3823         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3825         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3826         * modules/fmodf: New file.
3827         * tests/test-math-c++.cc: Check the declaration of fmodf.
3828         * doc/posix-functions/fmodf.texi: Mention the new module.
3829
3830         fmod: Use a .m4 file.
3831         * m4/fmod.m4: New file.
3832         * modules/fmod (Files): Add it.
3833         (configure.ac): Just invoke gl_FUNC_FMOD.
3834
3835 2011-10-05  Bruno Haible  <bruno@clisp.org>
3836
3837         Tests for module 'fabsf'.
3838         * modules/fabsf-tests: New file.
3839         * tests/test-fabsf.c: New file.
3840
3841         New module 'fabsf'.
3842         * lib/math.in.h (fabsf): New declaration.
3843         * lib/fabsf.c: New file.
3844         * m4/fabsf.m4: New file.
3845         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3847         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3848         * modules/fabsf: New file.
3849         * tests/test-math-c++.cc: Check the declaration of fabsf.
3850         * doc/posix-functions/fabsf.texi: Mention the new module.
3851
3852         fabs: Use a .m4 file.
3853         * m4/fabs.m4: New file.
3854         * modules/fabs (Files): Add it.
3855         (configure.ac): Just invoke gl_FUNC_FABS.
3856
3857 2011-10-05  Jim Meyering  <meyering@redhat.com>
3858
3859         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3860         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3861         ls -lL regression introduced in coreutils-8.12, it does so at the
3862         cost of an additional stat call in the common case.  Besides, now
3863         that the kernel change that prompted commit 95f7c57f has been reverted
3864         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3865         we have no use for commit 95f7c57f, "file-has-acl: use
3866         acl_extended_file_nofollow if available".
3867
3868 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3869
3870         file-has-acl: revert unintended change in behavior of ls -L
3871         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3872         derived from...
3873         (file_has_acl): ...code here.  Call it.
3874         This problem was introduced with 2011-07-22 commit 95f7c57f,
3875         "file-has-acl: use acl_extended_file_nofollow if available".
3876         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3877
3878 2011-10-03  Bruno Haible  <bruno@clisp.org>
3879
3880         poll: Avoid link errors on MSVC.
3881         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3882         * modules/poll (Depends-on): Add sockets.
3883         (Link): New section.
3884         * NEWS: Mention the change.
3885         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3886         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3887         $(LIB_POLL) instead of $(LIBSOCKET).
3888
3889 2011-10-03  Bruno Haible  <bruno@clisp.org>
3890
3891         sys_select tests: Fix link error on MSVC 9.
3892         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3893         with $(LIB_SELECT) instead of $(LIBSOCKET).
3894
3895 2011-10-03  Bruno Haible  <bruno@clisp.org>
3896
3897         sys_select: Fix compilation error on mingw.
3898         * lib/sys_select.in.h: On native Windows, include <io.h>.
3899
3900 2011-10-03  Bruno Haible  <bruno@clisp.org>
3901
3902         wmemset: Support for MSVC.
3903         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3904         whether wmemset() exists.
3905
3906 2011-10-03  Bruno Haible  <bruno@clisp.org>
3907
3908         wmemmove: Support for MSVC.
3909         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3910         whether wmemmove() exists.
3911
3912 2011-10-03  Bruno Haible  <bruno@clisp.org>
3913
3914         wmemcpy: Support for MSVC.
3915         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3916         whether wmemcpy() exists.
3917
3918 2011-10-03  Bruno Haible  <bruno@clisp.org>
3919
3920         wmemcmp: Support for MSVC.
3921         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3922         whether wmemcmp() exists.
3923
3924 2011-10-03  Bruno Haible  <bruno@clisp.org>
3925
3926         wmemchr: Support for MSVC.
3927         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3928         whether wmemchr() exists.
3929
3930 2011-10-03  Bruno Haible  <bruno@clisp.org>
3931
3932         glthread/*, strsignal: Support for MSVC.
3933         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3934         including <winsock.h> on MSVC 9.
3935         * lib/glthread/lock.h: Likewise.
3936         * lib/glthread/thread.h: Likewise.
3937         * lib/glthread/tls.h: Likewise.
3938         * lib/glthread/yield.h: Likewise.
3939         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3940         if HAVE_UNISTD_H is false.
3941         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3942
3943 2011-10-03  Bruno Haible  <bruno@clisp.org>
3944
3945         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3946         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3947         Set to 100000.
3948
3949 2011-10-03  Bruno Haible  <bruno@clisp.org>
3950
3951         acl: Fix specification.
3952         * lib/file-has-acl.c (file_has_acl): Fix specification.
3953
3954 2011-10-03  Bruno Haible  <bruno@clisp.org>
3955
3956         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3957         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3958         (compute_curr_prefix, shared_library_fullname,
3959         find_shared_library_fullname, get_shared_library_fullname, relocate):
3960         Use it together with PIC && INSTALLDIR.
3961         Reported by <jojelino@gmail.com>
3962         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3963
3964 2011-10-01  Jim Meyering  <meyering@redhat.com>
3965
3966         maint.mk: adjust a release-related rule not to require use of gzip
3967         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3968         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3969         projects that build only .tar.xz files.  Also fix an erroneous test.
3970
3971         test-linkat: don't leave behind a temporary file
3972         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3973         Otherwise, coreutils' "make distcheck" would fail with this:
3974           Only in /c/cu/tests/torture/coreutils/test/\
3975             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3976           make[2]: *** [my-distcheck] Error 1
3977
3978         float, math: add omitted file
3979         * lib/itold.c: Add file, required for yesterday's float change.
3980
3981 2011-10-01  Bruno Haible  <bruno@clisp.org>
3982
3983         isinf: Fix for OpenBSD/x86.
3984         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3985         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3986         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3987
3988 2011-10-01  Bruno Haible  <bruno@clisp.org>
3989
3990         isfinite: Fix syntax error in configure test.
3991         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3992
3993         isfinite: Fix typo.
3994         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3995         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3996
3997 2011-10-01  Bruno Haible  <bruno@clisp.org>
3998
3999         nonblocking tests: Fix test failure on Linux/IA-64.
4000         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4001         Set to 270000.
4002
4003 2011-10-01  Bruno Haible  <bruno@clisp.org>
4004
4005         mkfifoat tests: Fix a test failure on mingw.
4006         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4007         with error ENOSYS.
4008
4009 2011-09-30  Bruno Haible  <bruno@clisp.org>
4010
4011         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4012         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4013         'long double'. Set REPLACE_ITOLD.
4014         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4015         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4016         * lib/itold.c: New file.
4017         * modules/float (Files): Add lib/itold.c.
4018         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4019         (Makefile.am): Substitute REPLACE_ITOLD.
4020         * modules/math (Depends-on): Add float.
4021         (Makefile.am): Substitute REPLACE_ITOLD.
4022         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4023         * doc/posix-headers/math.texi: Likewise.
4024         * doc/posix-functions/logl.texi: Likewise.
4025
4026 2011-09-30  Bruno Haible  <bruno@clisp.org>
4027
4028         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4029         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4030         Set to 140000.
4031
4032 2011-09-30  Bruno Haible  <bruno@clisp.org>
4033
4034         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4035         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4036         invocation, say "right after AC_PROG_CC_STDC", not "right after
4037         AC_PROG_CC".
4038         Reported by Gary V. Vaughan <gary@gnu.org>.
4039
4040 2011-09-30  Bruno Haible  <bruno@clisp.org>
4041
4042         Centralize C99 requirement.
4043         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4044         * modules/stdarg (configure.ac-early): Invoke it instead of
4045         AC_PROG_CC_STDC.
4046         Reported by Gary V. Vaughan and Paul Eggert.
4047
4048 2011-09-29  Bruno Haible  <bruno@clisp.org>
4049
4050         float: Fix LDBL_MAX value on Linux/PowerPC.
4051         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4052         on Linux/PowerPC.
4053         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4054         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4055         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4056         platform.
4057         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4058
4059 2011-09-29  Bruno Haible  <bruno@clisp.org>
4060
4061         doc: Improve doc about gl_EARLY.
4062         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4063         AC_PROG_CC_STDC invocation.
4064         Reported by Gary V. Vaughan <gary@gnu.org>.
4065
4066 2011-09-28  Bruno Haible  <bruno@clisp.org>
4067
4068         fgetc, fputc, fread, fwrite tests: Fix link error.
4069         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4070         on non-MSVC platforms.
4071         * tests/test-fputc.c (main): Likewise.
4072         * tests/test-fread.c (main): Likewise.
4073         * tests/test-fwrite.c (main): Likewise.
4074         Reported by Jim Meyering.
4075
4076 2011-09-27  Bruno Haible  <bruno@clisp.org>
4077
4078         fputc, fwrite tests: Avoid test failure on MSVC.
4079         * tests/test-fgetc.c: Include msvc-inval.h.
4080         (main): Invoke gl_msvc_inval_ensure_handler.
4081         * tests/test-fputc.c: Include msvc-inval.h.
4082         (main): Invoke gl_msvc_inval_ensure_handler.
4083         * tests/test-fread.c: Include msvc-inval.h.
4084         (main): Invoke gl_msvc_inval_ensure_handler.
4085         * tests/test-fwrite.c: Include msvc-inval.h.
4086         (main): Invoke gl_msvc_inval_ensure_handler.
4087         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4088         * modules/fputc-tests (Depends-on): Likewise.
4089         * modules/fread-tests (Depends-on): Likewise.
4090         * modules/fwrite-tests (Depends-on): Likewise.
4091
4092 2011-09-27  Bruno Haible  <bruno@clisp.org>
4093
4094         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4095         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4096         (raise): Remove older, duplicated declaration.
4097         (_gl_raise_SIGPIPE): New declaration.
4098         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4099         (rpl_raise): Remove function.
4100         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4101         a gnulib-defined SIGPIPE here.
4102         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4103         'sigprocmask' has detected missing signal-blocking and the module
4104         'sigpipe' is enabled.
4105         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4106
4107 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4108
4109         base64-tests: avoid memory leak
4110         * tests/test-base64.c (main): Plug memory leak.
4111
4112         base32: new module
4113         * modules/base32: New module.
4114         * lib/base32.c: New file.
4115         * lib/base32.h: Likewise.
4116         * m4/base32.m4: Likewise.
4117         * modules/base32-tests: New test.
4118         * tests/test-base32.c: Likewise.
4119         * MODULES.html.sh (Misc): Mention it.
4120
4121 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4122
4123         gnulib: use more-standard license notice wording
4124         * gnulib-tool (func_emit_copyright_notice): When emitting a
4125         license notice into a file, use the standard wording as suggested
4126         by the current information for GNU maintainers, except say "file"
4127         rather than "program".  The new wording gives a license version
4128         number, which addresses an issue raised by Glenn Morris in
4129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4130         * m4/onceonly.m4: Use that same wording here, too.
4131
4132         dup2: minor simplification
4133         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4134         as lib/dup2.c no longer uses 'inline'.
4135
4136 2011-09-25  Bruno Haible  <bruno@clisp.org>
4137
4138         strings: Fix compilation error on MSVC.
4139         * lib/strings.in.h: Include <stddef.h> for size_t.
4140
4141 2011-09-25  Bruno Haible  <bruno@clisp.org>
4142
4143         fflush et al.: Document limitation on MSVC.
4144         * doc/posix-functions/fflush.texi: Document possible crash in handling
4145         mode other than DEFAULT_HANDLING.
4146         * doc/posix-functions/fgetc.texi: Likewise.
4147         * doc/posix-functions/fputc.texi: Likewise.
4148         * doc/posix-functions/fread.texi: Likewise.
4149         * doc/posix-functions/fwrite.texi: Likewise.
4150
4151 2011-09-25  Bruno Haible  <bruno@clisp.org>
4152
4153         msvc-inval: Allow three invalid parameter handling modes.
4154         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4155         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4156         macros.
4157         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4158         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4159         SANE_LIBRARY_HANDLING as a no-op.
4160         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4161         <stdlib.h>.
4162         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4163
4164 2011-09-25  Bruno Haible  <bruno@clisp.org>
4165
4166         msvc-inval: Make handler multithread-safe.
4167         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4168         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4169         declarations.
4170         (gl_msvc_inval_current): New declaration.
4171         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4172         Operate on the structure returned by gl_msvc_inval_current().
4173         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4174         Remove varaiables.
4175         (tls_index, tls_initialized): New variables.
4176         (not_per_thread): New variable.
4177         (gl_msvc_inval_current): New function.
4178         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4179         returned by gl_msvc_inval_current().
4180
4181 2011-09-25  Bruno Haible  <bruno@clisp.org>
4182
4183         msvc-inval: Install handler globally.
4184         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4185         !_MSC_VER.
4186         (gl_msvc_invalid_parameter_handler): Remove declaration.
4187         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4188         declarations.
4189         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4190         Install the handler globally, don't uninstall it.
4191         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4192         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4193         currently valid, call RaiseException instead.
4194         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4195         for !_MSC_VER.
4196
4197 2011-09-25  Bruno Haible  <bruno@clisp.org>
4198
4199         strerror_r-posix: Fix for MSVC 9.
4200         * lib/strerror_r.c (local_snprintf): New function.
4201         (snprintf): Define to local_snprintf, not to _snprintf.
4202
4203 2011-09-25  Bruno Haible  <bruno@clisp.org>
4204
4205         ftruncate: Support for MSVC 9.
4206         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4207         (chsize_nothrow): New function.
4208         (chsize): Redefine as a macro.
4209         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4210         * modules/ftruncate (Depends-on): Add msvc-inval.
4211
4212 2011-09-25  Bruno Haible  <bruno@clisp.org>
4213
4214         New module 'fstat'.
4215         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4216         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4217         * lib/fchdir.c (rpl_fstat): Remove function.
4218         * m4/fstat.m4: New file.
4219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4221         declared.
4222         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4223         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4224         * modules/fstat: New file.
4225         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4226         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4227         is set.
4228         * doc/posix-functions/fstat.texi: Mention the new module and the
4229         problem on MSVC.
4230         * NEWS: Mention the change.
4231         * modules/acl (Depends-on): Add fstat.
4232         * modules/chdir-safer (Depends-on): Likewise.
4233         * modules/chown (Depends-on): Likewise.
4234         * modules/copy-file (Depends-on): Likewise.
4235         * modules/fchdir (Depends-on): Likewise.
4236         * modules/fdopendir (Depends-on): Likewise.
4237         * modules/fopen (Depends-on): Likewise.
4238         * modules/fts (Depends-on): Likewise.
4239         * modules/getcwd (Depends-on): Likewise.
4240         * modules/isapipe (Depends-on): Likewise.
4241         * modules/linkat (Depends-on): Likewise.
4242         * modules/lseek (Depends-on): Likewise.
4243         * modules/mkdir-p (Depends-on): Likewise.
4244         * modules/open (Depends-on): Likewise.
4245         * modules/openat (Depends-on): Likewise.
4246         * modules/read-file (Depends-on): Likewise.
4247         * modules/renameat (Depends-on): Likewise.
4248         * modules/utimens (Depends-on): Likewise.
4249
4250 2011-09-25  Bruno Haible  <bruno@clisp.org>
4251
4252         linkat: Fix compilation on MSVC 9.
4253         * lib/linkat.c: Don't include <stdint.h>.
4254
4255 2011-09-25  Bruno Haible  <bruno@clisp.org>
4256
4257         fclose: Support for MSVC 9.
4258         * lib/fclose.c: Include msvc-inval.h.
4259         (fclose_nothrow): New function.
4260         (rpl_fclose): Use it.
4261         * modules/fclose (Depends-on): Add msvc-inval.
4262         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4263
4264 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4265
4266         dup2: minor simplifications
4267         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4268         that it's a performance win.
4269         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4270         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4271
4272 2011-09-24  Jim Meyering  <meyering@redhat.com>
4273
4274         test-futimens: avoid a warning from gcc -Wshadow
4275         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4276         to avoid a shadowing warning.
4277
4278 2011-09-24  Bruno Haible  <bruno@clisp.org>
4279
4280         fdopen: Support for MSVC 9.
4281         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4282         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4283         * lib/fdopen.c: Include msvc-inval.h.
4284         (fdopen_nothrow): New function.
4285         (rpl_fdopen): Use it.
4286         * modules/fdopen (Depends-on): Add msvc-inval.
4287         * modules/fclose-tests (Depends-on): Add fdopen.
4288         * modules/fflush-tests (Depends-on): Likewise.
4289         * modules/fgetc-tests (Depends-on): Likewise.
4290         * modules/fputc-tests (Depends-on): Likewise.
4291         * modules/fread-tests (Depends-on): Likewise.
4292         * modules/freopen-tests (Depends-on): Likewise.
4293         * modules/fseeko-tests (Depends-on): Likewise.
4294         * modules/ftello-tests (Depends-on): Likewise.
4295         * modules/fwrite-tests  (Depends-on): Likewise.
4296         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4297
4298 2011-09-24  Bruno Haible  <bruno@clisp.org>
4299
4300         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4301         * modules/fgetc-tests (Depends-on): Add unistd.
4302         * modules/fputc-tests (Depends-on): Likewise.
4303         * modules/fread-tests (Depends-on): Likewise.
4304         * modules/fwrite-tests (Depends-on): Likewise.
4305
4306 2011-09-24  Bruno Haible  <bruno@clisp.org>
4307
4308         dup: Simplify autoconf test.
4309         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4310         on gl_MSVC_INVAL's result.
4311
4312 2011-09-24  Bruno Haible  <bruno@clisp.org>
4313
4314         Tests for function fwrite().
4315         * modules/fwrite-tests: New file.
4316         * tests/test-fwrite.c: New file.
4317         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4318
4319         Tests for function fread().
4320         * modules/fread-tests: New file.
4321         * tests/test-fread.c: New file.
4322         * modules/stdio-tests (Depends-on): Add fread-tests.
4323
4324         Activate fputc tests.
4325         * modules/stdio-tests (Depends-on): Add fputc-tests.
4326
4327         Enhance fgetc, fputc tests.
4328         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4329         * tests/test-fputc.c (main): Likewise.
4330
4331 2011-09-24  Bruno Haible  <bruno@clisp.org>
4332
4333         write: Support for MSVC 9.
4334         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4335         is not 1.
4336         * lib/write.c (write_nothrow): New function.
4337         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4338         not 1. Use write_nothrow.
4339         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4340         invalid parameter handler.
4341         (gl_PREREQ_WRITE): New macro.
4342         * modules/write (Depends-on): Add msvc-inval.
4343         (configure.ac): Invoke gl_PREREQ_WRITE.
4344         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4345
4346 2011-09-24  Bruno Haible  <bruno@clisp.org>
4347
4348         read: Fix last commit.
4349         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4350
4351 2011-09-24  Bruno Haible  <bruno@clisp.org>
4352
4353         dup2: Fix last commit.
4354         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4355         (rpl_dup2): Disable fcntl workaround on native Windows.
4356
4357         sigprocmask: Make code safer.
4358         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4359         section that changes macro definitions for this compilation unit.
4360
4361 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4362
4363         dup2: clarify by coalescing Windows-specific material
4364         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4365         "msvc-nothrow.h"' to the Windows-specific section, so that the
4366         Emacs source need not contain these include files.
4367         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4368         Windows-specific fixes into this function rather than just the
4369         nothrow fix, as this shortens and clarifies the code.  Always
4370         define as a function, as that's a bit cleaner than having it be
4371         sometimes a function and sometimes a macro.
4372         (rpl_dup2): Move the Windows-specific stuff out of here and into
4373         ms_windows_dup2.  Don't protect the Haiku-related fix with
4374         "#if !defined __linux__", as the same code also works around
4375         a Linux kernel bug, and it doesn't add any system calls on any
4376         platform.  Add comment about FreeBSD 6.1.
4377
4378         sigprocmask: move #include directive
4379         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4380         Windows-specific section, so that the Emacs source need not
4381         contain msvc-inval.h.
4382
4383 2011-09-23  Bruno Haible  <bruno@clisp.org>
4384
4385         read: Support for MSVC 9.
4386         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4387         is not 1.
4388         * lib/read.c (read_nothrow): New function.
4389         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4390         read_nothrow.
4391         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4392         invalid parameter handler.
4393         (gl_PREREQ_READ): New macro.
4394         * modules/read (Depends-on): Add msvc-inval.
4395         (configure.ac): Invoke gl_PREREQ_READ.
4396         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4397
4398 2011-09-23  Bruno Haible  <bruno@clisp.org>
4399
4400         close: Support for MSVC 9.
4401         * lib/close.c: Include <errno.h>, msvc-inval.h.
4402         (close_nothrow): New function.
4403         (rpl_close): Use it.
4404         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4405         invalid parameter handler.
4406         * modules/close (Depends-on): Add msvc-inval.
4407         * modules/dup2-tests (Depends-on): Add close.
4408         * modules/dup3-tests (Depends-on): Likewise.
4409         * modules/fcntl-tests (Depends-on): Likewise.
4410         * modules/spawn-pipe-tests (Depends-on): Likewise.
4411         * modules/unistd-safer-tests (Depends-on): Likewise.
4412         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4413
4414 2011-09-23  Bruno Haible  <bruno@clisp.org>
4415
4416         New module 'dup'.
4417         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4418         Allow replacement.
4419         * lib/dup.c: New file.
4420         * lib/fchdir.c (rpl_dup): Remove function.
4421         * m4/dup.m4: New file.
4422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4423         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4424         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4425         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4426         * modules/dup: New file.
4427         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4428         'dup' module is in use.
4429         * modules/fdopendir (Depends-on): Add dup.
4430         * modules/fdutimensat-tests (Depends-on): Likewise.
4431         * modules/fts (Depends-on): Likewise.
4432         * modules/futimens-tests (Depends-on): Likewise.
4433         * modules/posix_spawnp-tests (Depends-on): Likewise.
4434         * modules/unistd-safer-tests (Depends-on): Likewise.
4435         * modules/utimens-tests (Depends-on): Likewise.
4436         * doc/posix-functions/dup.texi: Mention the new module and the problem
4437         on MSVC.
4438
4439 2011-09-23  Bruno Haible  <bruno@clisp.org>
4440
4441         getdtablesize: Support for MSVC 9.
4442         * lib/getdtablesize.c: Include msvc-inval.h.
4443         (_setmaxstdio_nothrow): New function.
4444         (_setmaxstdio): Redefine it.
4445         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4446         * modules/getdtablesize (Depends-on): Add msvc-inval.
4447         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4448
4449 2011-09-23  Bruno Haible  <bruno@clisp.org>
4450
4451         signal-h: Rename from signal.
4452         * modules/signal-h: Renamed from modules/signal.
4453         * modules/pthread_sigmask (Depends-on): Update.
4454         * modules/raise (Depends-on): Likewise.
4455         * modules/sigaction (Depends-on): Likewise.
4456         * modules/sigpipe (Depends-on): Likewise.
4457         * modules/sigprocmask (Depends-on): Likewise.
4458         * modules/sys_select (Depends-on): Likewise.
4459         * modules/signal-h-tests: Renamed from modules/signal-tests.
4460         (Files, Depends-on, Makefile.am): Update.
4461         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4462         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4463         (Files, Makefile.am): Update.
4464         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4465         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4466         * modules/signal: New placeholder file.
4467         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4468         * doc/posix-headers/signal.texi: Update.
4469         * NEWS: Mention the change.
4470
4471 2011-09-23  Bruno Haible  <bruno@clisp.org>
4472
4473         sigprocmask: Avoid crashes through signal() on MSVC 9.
4474         * lib/sigprocmask.c: Include msvc-inval.h.
4475         (signal_nothrow): New function.
4476         (signal): Redefine it.
4477         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4478         * modules/sigprocmask (Depends-on): Add msvc-inval.
4479         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4480
4481 2011-09-23  Bruno Haible  <bruno@clisp.org>
4482
4483         Tests for module 'raise'.
4484         * modules/raise-tests: New file.
4485         * tests/test-raise.c: New file.
4486
4487         raise: Support for MSVC.
4488         * lib/signal.in.h (raise): New declaration.
4489         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4490         for native Windows platforms.
4491         * m4/raise.m4: New file.
4492         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4493         HAVE_RAISE, REPLACE_RAISE.
4494         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4495         REPLACE_RAISE.
4496         * modules/raise (Status, Notice): Remove fields.
4497         (Files): Add m4/raise.m4.
4498         (Depends-on): Add signal, msvc-inval.
4499         (configure.ac): Use the common idioms.
4500         (Maintainer): Add me.
4501         * tests/test-signal-c++.cc: Check the signature of raise.
4502         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4503
4504 2011-09-23  Bruno Haible  <bruno@clisp.org>
4505
4506         pipe2: Fix compilation on pre-C99 compilers.
4507         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4508
4509 2011-09-23  Bruno Haible  <bruno@clisp.org>
4510
4511         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4512         * lib/msvc-nothrow.h: New file.
4513         * lib/msvc-nothrow.c: New file.
4514         * m4/msvc-nothrow.m4: New file.
4515         * modules/msvc-nothrow: New file.
4516         * lib/dup2.c: Include msvc-nothrow.h.
4517         (rpl_dup2): No need to protect _get_osfhandle call here.
4518         * lib/accept4.c: Include msvc-nothrow.h.
4519         * lib/error.c: Likewise.
4520         * lib/fcntl.c: Likewise.
4521         * lib/lseek.c: Likewise.
4522         * lib/nonblocking.c: Likewise.
4523         * lib/poll.c: Likewise.
4524         * lib/read.c: Likewise.
4525         * lib/select.c: Likewise.
4526         * lib/sockets.h: Likewise.
4527         * lib/sockets.c: Likewise.
4528         * lib/stdio-read.c: Likewise.
4529         * lib/stdio-write.c: Likewise.
4530         * lib/write.c: Likewise.
4531         * lib/w32sock.h: Likewise.
4532         * lib/w32spawn.h: Likewise.
4533         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4534         * lib/fsync.c: Likewise.
4535         * lib/isapipe.c: Likewise.
4536         * modules/dup2 (Depends-on): Add msvc-nothrow.
4537         * modules/accept4 (Depends-on): Likewise.
4538         * modules/error (Depends-on): Likewise.
4539         * modules/fcntl (Depends-on): Likewise.
4540         * modules/lseek (Depends-on): Likewise.
4541         * modules/nonblocking (Depends-on): Likewise.
4542         * modules/poll (Depends-on): Likewise.
4543         * modules/read (Depends-on): Likewise.
4544         * modules/select (Depends-on): Likewise.
4545         * modules/sockets (Depends-on): Likewise.
4546         * modules/sigpipe (Depends-on): Likewise.
4547         * modules/write (Depends-on): Likewise.
4548         * modules/accept (Depends-on): Likewise.
4549         * modules/bind (Depends-on): Likewise.
4550         * modules/connect (Depends-on): Likewise.
4551         * modules/gethostname (Depends-on): Likewise.
4552         * modules/getpeername (Depends-on): Likewise.
4553         * modules/getsockname (Depends-on): Likewise.
4554         * modules/getsockopt (Depends-on): Likewise.
4555         * modules/ioctl (Depends-on): Likewise.
4556         * modules/listen (Depends-on): Likewise.
4557         * modules/recv (Depends-on): Likewise.
4558         * modules/recvfrom (Depends-on): Likewise.
4559         * modules/send (Depends-on): Likewise.
4560         * modules/sendto (Depends-on): Likewise.
4561         * modules/setsockopt (Depends-on): Likewise.
4562         * modules/shutdown (Depends-on): Likewise.
4563         * modules/socket (Depends-on): Likewise.
4564         * modules/execute (Depends-on): Likewise.
4565         * modules/spawn-pipe (Depends-on): Likewise.
4566         * modules/flock (Depends-on): Likewise.
4567         * modules/fsync (Depends-on): Likewise.
4568         * modules/isapipe (Depends-on): Likewise.
4569         * tests/test-cloexec.c: Include msvc-nothrow.h.
4570         * tests/test-dup-safer.c: Likewise.
4571         * tests/test-dup2.c: Likewise.
4572         * tests/test-dup3.c: Likewise.
4573         * tests/test-fcntl.c: Likewise.
4574         * tests/test-pipe.c: Likewise.
4575         * tests/test-pipe2.c: Likewise.
4576         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4577         * modules/unistd-safer-tests (Depends-on): Likewise.
4578         * modules/dup2-tests (Depends-on): Likewise.
4579         * modules/dup3-tests (Depends-on): Likewise.
4580         * modules/fcntl-tests (Depends-on): Likewise.
4581         * modules/pipe-posix-tests (Depends-on): Likewise.
4582         * modules/pipe2-tests (Depends-on): Likewise.
4583
4584 2011-09-23  Bruno Haible  <bruno@clisp.org>
4585
4586         dup2: Make code more maintainable.
4587         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4588         (rpl_dup2): Use it.
4589         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4590         * modules/dup2 (configure.ac): Invoke it.
4591         Reported by Paul Eggert.
4592
4593 2011-09-23  Bruno Haible  <bruno@clisp.org>
4594
4595         msvc-inval: Fix compilation error.
4596         * lib/msvc-inval.h: Include <excpt.h>.
4597
4598 2011-09-23  Bruno Haible  <bruno@clisp.org>
4599
4600         mkdir: Tweak for MSVC 9.
4601         * lib/sys_stat.in.h: Update comments.
4602         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4603
4604         Tests for module 'chdir'.
4605         * modules/chdir-tests: New file.
4606         * tests/test-chdir.c: New file.
4607
4608         New module 'chdir'.
4609         * modules/chdir: New file.
4610         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4611         (chdir): New declaration.
4612         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4613         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4614         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4615         * tests/test-unistd-c++.cc: Check signature of chdir.
4616         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4617         * modules/chdir-long (Depends-on): Add chdir.
4618         * modules/fchdir (Depends-on): Likewise.
4619         * modules/rename (Depends-on): Likewise.
4620         * modules/savewd (Depends-on): Likewise.
4621
4622         rmdir: Support for mingw, MSVC 9.
4623         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4624         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4625
4626         getcwd: Tweak for MSVC 9.
4627         * lib/unistd.in.h: Update comments.
4628         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4629
4630 2011-09-22  Bruno Haible  <bruno@clisp.org>
4631
4632         strerror_r-posix: Avoid a link error on MSVC.
4633         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4634         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4635
4636 2011-09-22  Bruno Haible  <bruno@clisp.org>
4637
4638         select: Avoid link errors on MSVC.
4639         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4640         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4641         * modules/pselect (Link): Likewise.
4642         * NEWS: Mention the change.
4643         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4644         test-select-stdin against $(LIB_SELECT).
4645         * modules/pselect-tests (Makefile.am): Link test-pselect against
4646         $(LIB_SELECT).
4647
4648 2011-09-22  Bruno Haible  <bruno@clisp.org>
4649
4650         select: Avoid compilation error on MSVC.
4651         * lib/select.c: Don't include <stdbool.h>.
4652
4653 2011-09-21  Bruno Haible  <bruno@clisp.org>
4654
4655         Consolidate all uses of PATH_MAX in *.m4 files.
4656         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4657         macros.
4658         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4659         and gl_PATHMAX_SNIPPET.
4660         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4661         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4662         * modules/chdir-long (Files): Add m4/pathmax.m4.
4663         * modules/getcwd (Files): Likewise.
4664
4665 2011-09-21  Bruno Haible  <bruno@clisp.org>
4666
4667         ftruncate: Un-deprecate, concentrate on Win32 support.
4668         * modules/ftruncate (Status, Notice): Remove sections.
4669         (Depends-on): Add largefile.
4670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4671         non-mingw platforms.
4672         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4673         include <io.h>.
4674         * modules/perror-tests (Depends-on): Add ftruncate.
4675         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4676         'ftruncate' module.
4677
4678 2011-09-21  Bruno Haible  <bruno@clisp.org>
4679
4680         Add dependencies to new dirent related modules.
4681         * modules/opendir (Depends-on): Add closedir.
4682         * modules/getcwd (Depends-on): Add opendir, closedir.
4683         * modules/dirent-safer-tests (Depends-on): Likewise.
4684         * modules/fdopendir-tests (Depends-on): Likewise.
4685         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4686         * modules/renameat-tests (Depends-on): Likewise.
4687
4688 2011-09-21  Bruno Haible  <bruno@clisp.org>
4689
4690         opendir: Avoid compilation error on mingw.
4691         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4692         * modules/opendir (Depends-on): Add unistd.
4693
4694 2011-09-21  Bruno Haible  <bruno@clisp.org>
4695
4696         ftruncate tests: Avoid a test failure on mingw.
4697         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4698
4699 2011-09-21  Bruno Haible  <bruno@clisp.org>
4700
4701         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4702         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4703         native Windows.
4704
4705 2011-09-21  Bruno Haible  <bruno@clisp.org>
4706
4707         New module 'fdopen'.
4708         * lib/stdio.in.h (fdopen): New declaration.
4709         * lib/fdopen.c: New file.
4710         * m4/fdopen.m4: New file.
4711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4712         REPLACE_FDOPEN.
4713         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4714         REPLACE_FDOPEN.
4715         * modules/fdopen: New file.
4716         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4717         * tests/test-stdio-c++.cc: Check signature of fdopen.
4718         * doc/posix-functions/fdopen.texi: Mention the new module.
4719
4720 2011-09-21  Bruno Haible  <bruno@clisp.org>
4721
4722         unlockpt tests: Avoid test failure on NetBSD 5.1.
4723         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4724         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4725
4726 2011-09-21  Bruno Haible  <bruno@clisp.org>
4727
4728         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4729         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4730         * tests/test-getlogin_r.c (main): Likewise.
4731
4732 2011-09-20  Bruno Haible  <bruno@clisp.org>
4733
4734         time tests: Don't require pid_t.
4735         * doc/posix-headers/time.texi: Revert last change.
4736         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4737         * tests/test-time.c: Comment out the check for pid_t.
4738
4739 2011-09-20  Bruno Haible  <bruno@clisp.org>
4740
4741         fsync tests: Avoid a test failure on mingw.
4742         * tests/test-fsync.c (main): Allow a failure with EIO.
4743
4744 2011-09-20  Bruno Haible  <bruno@clisp.org>
4745
4746         euidaccess: Update comments.
4747         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4748
4749 2011-09-20  Bruno Haible  <bruno@clisp.org>
4750
4751         Ensure EBADF returns for socket functions on mingw.
4752         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4753         descriptor is invalid.
4754         * lib/bind.c (rpl_bind): Likewise.
4755         * lib/connect.c (rpl_connect): Likewise.
4756         * lib/getpeername.c (rpl_getpeername): Likewise.
4757         * lib/getsockname.c (rpl_getsockname): Likewise.
4758         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4759         * lib/listen.c (rpl_listen): Likewise.
4760         * lib/recv.c (rpl_recv): Likewise.
4761         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4762         * lib/send.c (rpl_send): Likewise.
4763         * lib/sendto.c (rpl_sendto): Likewise.
4764         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4765         * lib/shutdown.c (rpl_shutdown): Likewise.
4766
4767 2011-09-20  Bruno Haible  <bruno@clisp.org>
4768
4769         select tests: EBADF tests.
4770         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4771         test_bad_fd): New functions.
4772         (test_function): Invoke also test_bad_fd.
4773
4774 2011-09-20  Bruno Haible  <bruno@clisp.org>
4775
4776         Tests for module 'posix_spawn_file_actions_addopen.
4777         * modules/posix_spawn_file_actions_addopen-tests: New file.
4778         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4779
4780         Tests for module 'posix_spawn_file_actions_adddup2'.
4781         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4782         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4783
4784         Tests for module 'posix_spawn_file_actions_addclose'.
4785         * modules/posix_spawn_file_actions_addclose-tests: New file.
4786         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4787
4788 2011-09-20  Bruno Haible  <bruno@clisp.org>
4789
4790         Tests for module 'unlockpt'.
4791         * modules/unlockpt-tests: New file.
4792         * tests/test-unlockpt.c: New file.
4793         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4794
4795         Tests for module 'grantpt'.
4796         * modules/grantpt-tests: New file.
4797         * tests/test-grantpt.c: New file.
4798         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4799
4800 2011-09-20  Bruno Haible  <bruno@clisp.org>
4801
4802         freopen tests: EBADF tests.
4803         * tests/test-freopen.c: Include errno.h, unistd.h.
4804         (main): Add tests for EBADF, commented out for the moment.
4805
4806         fclose tests: EBADF tests.
4807         * tests/test-fclose.c (main): Add tests for EBADF.
4808
4809         fflush tests: EBADF tests.
4810         * tests/test-fflush.c: Include errno.h, macros.h.
4811         (main): Add tests for EBADF.
4812
4813         ftello tests: EBADF tests.
4814         * tests/test-ftello4.sh: New file.
4815         * tests/test-ftello4.c: New file.
4816         * modules/ftello-tests (Files): Add them.
4817         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4818
4819         fseeko tests: EBADF tests.
4820         * tests/test-fseeko4.sh: New file.
4821         * tests/test-fseeko4.c: New file.
4822         * modules/fseeko-tests (Files): Add them.
4823         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4824
4825         Tests for function fputc().
4826         * modules/fputc-tests: New file.
4827         * tests/test-fputc.c: New file.
4828         * modules/stdio-tests (Depends-on): Add fputc-tests.
4829
4830         Tests for function fgetc().
4831         * modules/fgetc-tests: New file.
4832         * tests/test-fgetc.c: New file.
4833         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4834
4835         Tests for function fdopen().
4836         * modules/fdopen-tests: New file.
4837         * tests/test-fdopen.c: New file.
4838         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4839
4840         Tests for module 'vdprintf'.
4841         * modules/vdprintf-tests: New file.
4842         * tests/test-vdprintf.c: New file.
4843
4844         Tests for module 'dprintf'.
4845         * modules/dprintf-tests: New file.
4846         * tests/test-dprintf.c: New file.
4847
4848 2011-09-20  Bruno Haible  <bruno@clisp.org>
4849
4850         Tests for module 'ioctl'.
4851         * modules/ioctl-tests: New file.
4852         * tests/test-ioctl.c: New file.
4853
4854 2011-09-20  Bruno Haible  <bruno@clisp.org>
4855
4856         fcntl tests: EBADF tests.
4857         * tests/test-fcntl.c (main): Add more tests for EBADF.
4858
4859 2011-09-20  Bruno Haible  <bruno@clisp.org>
4860
4861         utimensat tests: EBADF tests.
4862         * tests/test-utimensat.c (main): Add tests for EBADF.
4863
4864         renameat tests: EBADF tests.
4865         * tests/test-renameat.c (main): Add tests for EBADF.
4866
4867         mkfifoat tests: EBADF tests.
4868         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4869
4870         readlinkat tests: EBADF tests.
4871         * tests/test-readlinkat.c (main): Add tests for EBADF.
4872
4873         symlinkat tests: EBADF tests.
4874         * tests/test-symlinkat.c (main): Add tests for EBADF.
4875
4876         linkat tests: EBADF tests.
4877         * tests/test-linkat.c (main): Add tests for EBADF.
4878
4879         Tests for module 'faccessat'.
4880         * modules/faccessat-tests: New file.
4881         * tests/test-faccessat.c: New file.
4882
4883         fdopendir tests: EBADF tests.
4884         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4885
4886         openat tests: EBADF tests.
4887         * tests/test-fchownat.c (main): Add tests for EBADF.
4888         * tests/test-fstatat.c (main): Likewise.
4889         * tests/test-mkdirat.c (main): Likewise.
4890         * tests/test-openat.c (main): Likewise.
4891         * tests/test-unlinkat.c (main): Likewise.
4892         * tests/test-fchmodat.c: New file.
4893         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4894         (Makefile.am): Also run 'test-fchmodat'.
4895
4896 2011-09-20  Bruno Haible  <bruno@clisp.org>
4897
4898         utimens, futimens, fdutimensat tests: EBADF tests.
4899         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4900
4901         Tests for function fstat().
4902         * modules/fstat-tests: New file.
4903         * tests/test-fstat.c: New file.
4904         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4905
4906 2011-09-20  Bruno Haible  <bruno@clisp.org>
4907
4908         test-ttyname_r tests: EBADF tests.
4909         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4910
4911         Tests for module 'isatty'.
4912         * modules/isatty-tests: New file.
4913         * tests/test-isatty.c: New file.
4914
4915         Tests for module 'write'.
4916         * modules/write-tests: New file.
4917         * tests/test-write.c: New file.
4918
4919         Tests for module 'read'.
4920         * modules/read-tests: New file.
4921         * tests/test-read.c: New file.
4922
4923         pwrite tests: EBADF tests.
4924         * tests/test-pwrite.c (main): Add tests for EBADF.
4925
4926         pread tests: EBADF tests.
4927         * tests/test-pread.c (main): Add tests for EBADF.
4928
4929         lseek tests: EBADF tests.
4930         * tests/test-lseek.c (main): Add more tests for EBADF.
4931
4932         Tests for module 'ftruncate'.
4933         * modules/ftruncate-tests: New file.
4934         * tests/test-ftruncate.sh: New file.
4935         * tests/test-ftruncate.c: New file.
4936
4937         fsync tests: EBADF tests.
4938         * tests/test-fsync.c (main): Add more tests for EBADF.
4939
4940         fdatasync tests: EBADF tests.
4941         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4942
4943         Tests for module 'fchown'.
4944         * modules/fchown-tests: New file.
4945         * tests/test-fchown.c: New file.
4946
4947         Tests for module 'fchmod'.
4948         * modules/fchmod-tests: New file.
4949         * tests/test-fchmod.c: New file.
4950
4951         fchdir tests: EBADF tests.
4952         * tests/test-fchdir.c (main): Add more tests for EBADF.
4953
4954         dup2 tests: EBADF tests.
4955         * tests/test-dup2.c (main): Add more tests for EBADF.
4956
4957         Tests for module 'dup'.
4958         * modules/dup-tests: New file.
4959         * tests/test-dup.c: New file.
4960
4961         Tests for module 'close'.
4962         * modules/close-tests: New file.
4963         * tests/test-close.c: New file.
4964
4965 2011-09-20  Bruno Haible  <bruno@clisp.org>
4966
4967         Tests for module 'shutdown'.
4968         * modules/shutdown-tests: New file.
4969         * tests/test-shutdown.c: New file.
4970
4971         Tests for module 'setsockopt'.
4972         * modules/setsockopt-tests: New file.
4973         * tests/test-setsockopt.c: New file.
4974
4975         Tests for module 'sendto'.
4976         * modules/sendto-tests: New file.
4977         * tests/test-sendto.c: New file.
4978
4979         Tests for module 'send'.
4980         * modules/send-tests: New file.
4981         * tests/test-send.c: New file.
4982
4983         Tests for module 'recvfrom'.
4984         * modules/recvfrom-tests: New file.
4985         * tests/test-recvfrom.c: New file.
4986
4987         Tests for module 'recv'.
4988         * modules/recv-tests: New file.
4989         * tests/test-recv.c: New file.
4990
4991         Tests for module 'listen'.
4992         * modules/listen-tests: New file.
4993         * tests/test-listen.c: New file.
4994
4995         Tests for module 'getsockopt'.
4996         * modules/getsockopt-tests: New file.
4997         * tests/test-getsockopt.c: New file.
4998
4999         Tests for module 'getsockname'.
5000         * modules/getsockname-tests: New file.
5001         * tests/test-getsockname.c: New file.
5002
5003         Tests for module 'getpeername'.
5004         * modules/getpeername-tests: New file.
5005         * tests/test-getpeername.c: New file.
5006
5007         Tests for module 'connect'.
5008         * modules/connect-tests: New file.
5009         * tests/test-connect.c: New file.
5010
5011         Tests for module 'bind'.
5012         * modules/bind-tests: New file.
5013         * tests/test-bind.c: New file.
5014
5015         accept4 tests: Fix for native Windows.
5016         * tests/test-accept4.c: Include sockets.h.
5017         (main): Invoke gl_sockets_startup.
5018         * modules/accept4-tests (Depends-on): Add sockets.
5019
5020         accept tests: Fix for native Windows.
5021         * tests/test-accept.c: Include sockets.h.
5022         (main): Invoke gl_sockets_startup.
5023         * modules/accept-tests (Depends-on): Add sockets.
5024
5025 2011-09-19  Bruno Haible  <bruno@clisp.org>
5026
5027         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5028         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5029         do...while(0).
5030         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5031         Suggested by Paul Eggert.
5032
5033 2011-09-19  Bruno Haible  <bruno@clisp.org>
5034
5035         sched: Ensure pid_t is defined.
5036         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5037         not define pid_t.
5038         * lib/sched.in.h: Include <sys/types.h>.
5039         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5040         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5041
5042 2011-09-19  Bruno Haible  <bruno@clisp.org>
5043
5044         msvc-inval: Ensure the entire expansion is a single statement.
5045         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5046         of braces.
5047
5048 2011-09-19  Jim Meyering  <meyering@redhat.com>
5049
5050         tests: use printf, not echo in init.sh's warn_ function
5051         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5052         misbehave when given strings containing a backslash or starting
5053         with e.g., -n.  James Youngman suggested setting IFS.
5054
5055 2011-09-19  Eric Blake  <eblake@redhat.com>
5056
5057         futimens: enhance test
5058         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5059         closed non-negative fd.
5060
5061         date: accept 'hence' as opposite of 'ago'
5062         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5063         * tests/test-parse-datetime.c (main): Enhance test.
5064         Suggested by Jesse Wilson.
5065
5066 2011-09-19  Jim Meyering  <meyering@redhat.com>
5067
5068         getcwd: don't fail in a deep directory on a system without openat
5069         Before this change, getcwd would fail when called from a directory
5070         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5071         the non-openat implementation used "..", "../..", "../../..", etc.
5072         to access ancestor directories.  With too many, that string would
5073         be longer than PATH_MAX.
5074         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5075         using gnulib's openat replacement.
5076         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5077         we're using the replacement function.
5078
5079 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5080
5081         maint.mk: avoid warnings from perl about missing files
5082         * top/maint.mk (def_sym_regex): Ignore files listed in
5083         $(gl_other_headers_) that do not exist, say because a project
5084         does not use a corresponding module.
5085
5086 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5087
5088         stat: use pathmax.h only if needed
5089         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5090         This is better for Emacs, which does not have a mingw port and
5091         therefore can avoid the pathmax module.
5092
5093         utimens: remove dependency on dup2
5094         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5095         to work around the Linux kernel bug.
5096         * modules/utimens (Depends-on): Remove dup2.
5097
5098 2011-09-18  Bruno Haible  <bruno@clisp.org>
5099
5100         inet_ntop, inet_pton: Look for it also in libresolv.
5101         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5102         libnsl, search for it in libresolv.
5103         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5104         Needed on Solaris 7.
5105
5106 2011-09-18  Bruno Haible  <bruno@clisp.org>
5107
5108         accept, accept4 tests: Avoid link error on Solaris.
5109         * modules/accept-tests (Makefile.am): Link test-accept against
5110         $(LIBSOCKET).
5111         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5112         $(LIBSOCKET).
5113
5114         accept4: Avoid link error on Solaris.
5115         * modules/accept4 (Link): New section.
5116
5117         socket functions: Avoid link errors on Solaris.
5118         * modules/accept (Depends-on): Add socketlib.
5119         (Link): New section.
5120         * modules/bind (Depends-on): Add socketlib.
5121         (Link): New section.
5122         * modules/connect (Depends-on): Add socketlib.
5123         (Link): New section.
5124         * modules/getpeername (Depends-on): Add socketlib.
5125         (Link): New section.
5126         * modules/getsockname (Depends-on): Add socketlib.
5127         (Link): New section.
5128         * modules/getsockopt (Depends-on): Add socketlib.
5129         (Link): New section.
5130         * modules/listen (Depends-on): Add socketlib.
5131         (Link): New section.
5132         * modules/recv (Depends-on): Add socketlib.
5133         (Link): New section.
5134         * modules/recvfrom (Depends-on): Add socketlib.
5135         (Link): New section.
5136         * modules/send (Depends-on): Add socketlib.
5137         (Link): New section.
5138         * modules/sendto (Depends-on): Add socketlib.
5139         (Link): New section.
5140         * modules/setsockopt (Depends-on): Add socketlib.
5141         (Link): New section.
5142         * modules/shutdown (Depends-on): Add socketlib.
5143         (Link): New section.
5144         * modules/socket (Depends-on): Add socketlib.
5145         (Link): New section.
5146
5147 2011-09-18  Bruno Haible  <bruno@clisp.org>
5148
5149         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5150         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5151         than 5 seconds.
5152         * modules/ptsname-tests (configure.ac): Test for alarm.
5153
5154 2011-09-18  Bruno Haible  <bruno@clisp.org>
5155
5156         posix_spawn_file_actions_add*: Fix module dependencies.
5157         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5158         posix_spawn_file_actions_init.
5159         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5160         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5161
5162 2011-09-18  Bruno Haible  <bruno@clisp.org>
5163
5164         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5165         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5166         * tests/test-renameat.c (main): Likewise.
5167
5168 2011-09-18  Bruno Haible  <bruno@clisp.org>
5169
5170         Tests for module 'accept4'.
5171         * modules/accept4-tests: New file.
5172         * tests/test-accept4.c: New file.
5173
5174 2011-09-18  Bruno Haible  <bruno@clisp.org>
5175
5176         Tests for module 'accept'.
5177         * modules/accept-tests: New file.
5178         * tests/test-accept.c: New file.
5179
5180 2011-09-18  Bruno Haible  <bruno@clisp.org>
5181
5182         dup2: Support for MSVC.
5183         * lib/dup2.c: Include msvc-inval.h.
5184         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5185         _get_osfhandle calls.
5186         * modules/dup2 (Depends-on): Add msvc-inval.
5187         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5188
5189         New module 'msvc-inval'.
5190         * lib/msvc-inval.h: New file.
5191         * lib/msvc-inval.c: New file.
5192         * m4/msvc-inval.m4: New file.
5193         * modules/msvc-inval: New file.
5194
5195 2011-09-17  Bruno Haible  <bruno@clisp.org>
5196
5197         Tests for module 'pclose'.
5198         * modules/pclose-tests: New file.
5199
5200         New module 'pclose'.
5201         * lib/stdio.in.h (pclose): New declaration.
5202         * lib/pclose.c: New file.
5203         * m4/pclose.m4: New file.
5204         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5205         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5206         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5207         * modules/pclose: New file.
5208         * modules/popen-tests (Depends-on): Add pclose.
5209         * modules/popen-safer-tests (Depends-on): Likewise.
5210         * doc/posix-functions/pclose.texi: Mention the new module.
5211
5212 2011-09-17  Bruno Haible  <bruno@clisp.org>
5213
5214         popen: Support for MSVC.
5215         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5216         * lib/popen.c (popen): Provide alternate definition for native Windows.
5217         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5219         * modules/popen (Depends-on, configure.ac): Update condition.
5220         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5221         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5222         fixed.
5223
5224 2011-09-17  Bruno Haible  <bruno@clisp.org>
5225
5226         isnanl, isnand, isnanf: Work around MSVC bug.
5227         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5228
5229 2011-09-17  Bruno Haible  <bruno@clisp.org>
5230
5231         sys_socket tests: Fix recent mistake.
5232         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5233
5234 2011-09-17  Bruno Haible  <bruno@clisp.org>
5235
5236         putenv: Support for MSVC.
5237         * modules/putenv (Depends-on): Add environ.
5238         * lib/putenv.c (environ): Disable declaration.
5239         * lib/unistd.in.h: Update comment.
5240
5241 2011-09-17  Bruno Haible  <bruno@clisp.org>
5242
5243         math: Avoid macro redefinition warnings on MSVC.
5244         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5245         Undefine before redefining.
5246
5247 2011-09-17  Bruno Haible  <bruno@clisp.org>
5248
5249         doc: Mention functions which are declared as macros.
5250         * doc/posix-functions/*[fl].texi: Mention that some functions are
5251         defined as macros with arguments only.
5252
5253 2011-09-17  Bruno Haible  <bruno@clisp.org>
5254
5255         Add dependencies to new dirent related modules.
5256         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5257         * modules/fts (Depends-on): Likewise.
5258         * modules/glob (Depends-on): Likewise.
5259         * modules/savedir (Depends-on): Likewise.
5260         * modules/scandir (Depends-on): Likewise.
5261         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5262         * modules/fdopendir (Depends-on): Add opendir.
5263
5264 2011-09-17  Bruno Haible  <bruno@clisp.org>
5265
5266         inet_pton: Support for MSVC on Windows Vista or newer.
5267         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5268         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5269         HAVE_DECL_INET_PTON is defined.
5270         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5271         On platforms with <winsock2.h>, test whether inet_pton is declared in
5272         <ws2tcpip.h>. If so, arrange to replace it.
5273         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5274         REPLACE_INET_PTON.
5275         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5276         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5277         (Depends-on, configure.ac): Update condition.
5278         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5279
5280 2011-09-17  Bruno Haible  <bruno@clisp.org>
5281
5282         inet_ntop: Support for MSVC on Windows Vista or newer.
5283         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5284         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5285         HAVE_DECL_INET_NTOP is defined.
5286         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5287         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5288         <ws2tcpip.h>. If so, arrange to replace it.
5289         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5290         REPLACE_INET_NTOP.
5291         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5292         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5293         (Depends-on, configure.ac): Update condition.
5294         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5295
5296 2011-09-16  Eric Blake  <eblake@redhat.com>
5297
5298         test-fsync: yet another enhancement
5299         * tests/test-fsync.c (main): Also test behavior on read-only text
5300         file.
5301
5302 2011-09-16  Bruno Haible  <bruno@clisp.org>
5303
5304         Enhance fsync, fdatasync tests.
5305         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5306         * tests/test-fdatasync.c (main): Likewise.
5307
5308 2011-09-16  Bruno Haible  <bruno@clisp.org>
5309
5310         Support for MSVC compiler: Ensure mode_t gets defined.
5311         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5312         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5314         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5315         * tests/test-fcntl-h.c: Check that mode_t is defined.
5316         * tests/test-sys_stat.c: Likewise.
5317         * tests/test-sys_types.c: Likewise.
5318         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5319         * doc/posix-headers/sys_stat.texi: Likewise.
5320         * doc/posix-headers/sys_types.texi: Likewise.
5321
5322 2011-09-16  Bruno Haible  <bruno@clisp.org>
5323
5324         sys_stat: Support for MSVC.
5325         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5326         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5327         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5328         MSVC.
5329
5330 2011-09-16  Bruno Haible  <bruno@clisp.org>
5331
5332         Support for MSVC compiler: Ensure off_t gets defined.
5333         * lib/unistd.in.h: Include <sys/types.h>.
5334         * tests/test-fcntl-h.c: Check that off_t is defined.
5335         * tests/test-sys_stat.c: Likewise.
5336         * tests/test-sys_types.c: Likewise.
5337
5338 2011-09-16  Eric Blake  <eblake@redhat.com>
5339
5340         fdatasync: port to Solaris
5341         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5342         * modules/fdatasync (Link): Document it.
5343         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5344
5345         fdatasync: port to MacOS X 10.7
5346         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5347         declared.
5348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5349         * modules/unistd (Makefile.am): Substitute it.
5350         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5351         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5352
5353         fdatasync: minor improvements
5354         * modules/fdatasync (Depends-on): Add condition for fsync.
5355         * lib/fdatasync.c (fdatasync): Add comment.
5356         * tests/test-unistd-c++.cc: Test fdatasync.
5357
5358         unistd: update refs to newer POSIX
5359         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5360         Suggested by Bruno Haible.
5361
5362         fdatasync: new module
5363         * modules/fsync (Description): Document difference to fdatasync.
5364         * modules/fdatasync: New module.
5365         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5366         * lib/fdatasync.c (fdatasync): Likewise.
5367         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5368         defaults.
5369         * modules/unistd (Makefile.am): Set witnesses.
5370         * lib/unistd.in.h (fdatasync): Declare.
5371         * MODULES.html.sh: Document it.
5372         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5373         * modules/fdatasync-tests: New test.
5374         * tests/test-fdatasync.c: Likewise.
5375
5376 2011-09-16  Eric Blake  <eblake@redhat.com>
5377
5378         test-fsync: enhance tests
5379         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5380         * tests/test-fsync.c (main): Enhance test.
5381
5382 2011-09-15  Bruno Haible  <bruno@clisp.org>
5383
5384         Support for MSVC compiler: Ensure ssize_t gets defined.
5385         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5386         * doc/posix-headers/stdio.texi: Likewise.
5387         * modules/stdio (Depends-on): Add ssize_t.
5388         * modules/sys_socket (Depends-on): Likewise.
5389         * modules/sys_types (Depends-on): Likewise.
5390         * modules/sys_uio (Depends-on): Likewise.
5391         * modules/unistd (Depends-on): Likewise.
5392         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5393         * tests/test-sys_types.c: Check that ssize_t is defined.
5394
5395 2011-09-14  Bruno Haible  <bruno@clisp.org>
5396
5397         Avoid using #, the m4 comment starter character, near brackets.
5398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5399         delimiter character in sed expressions.
5400         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5401         Suggested by Eric Blake.
5402
5403         Properly quote AC_CHECK_DECLS' 4th argument.
5404         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5405         argument.
5406         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5407         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5408         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5409         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5410         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5411         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5412         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5413         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5414         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5415         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5416         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5417         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5418         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5419         * m4/isinf.m4 (gl_ISINF): Likewise.
5420         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5421         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5422         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5423         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5424         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5426         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5427         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5428         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5429         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5430         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5433         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5435         Reported by Eric Blake.
5436
5437         Properly quote AC_CHECK_DECL's 4th argument.
5438         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5439         argument.
5440         * m4/argp.m4 (gl_ARGP): Likewise.
5441         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5442         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5443         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5444         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5445         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5446         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5447         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5448         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5450         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5451         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5452         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5453         Reported by Eric Blake.
5454
5455 2011-09-14  Eric Blake  <eblake@redhat.com>
5456
5457         opendir: avoid compile warning
5458         * lib/opendir.c (includes): Always include errno.h.
5459         Reported by Tatsuro MATSUOKA.
5460
5461 2011-09-14  Jim Meyering  <meyering@redhat.com>
5462
5463         maint.mk: sc_tight_scope: propagate failure from sub-make
5464         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5465         Reported by Martin von Gagern.
5466
5467 2011-09-13  Bruno Haible  <bruno@clisp.org>
5468
5469         tempname: Support for MSVC.
5470         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5471         MSVC.
5472         * modules/tempname (Depends-on): Add fcntl-h.
5473
5474 2011-09-13  Bruno Haible  <bruno@clisp.org>
5475
5476         sys_time: Support for MSVC.
5477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5478         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5479         include <winsock2.h>.
5480         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5481         function declarations that collide with POSIX.
5482         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5483         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5484
5485 2011-09-13  Bruno Haible  <bruno@clisp.org>
5486
5487         stat: Support for MSVC.
5488         * lib/stat.c: Include pathmax.h.
5489         * modules/stat (Depends-on): Add pathmax.
5490
5491         pathmax: Support for native Windows.
5492         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5493
5494 2011-09-12  Bruno Haible  <bruno@clisp.org>
5495
5496         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5497         * lib/dirent.in.h (struct dirent): New type.
5498         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5499         DT_WHT): New macros.
5500         (DIR): New type.
5501         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5502         (readdir, rewinddir): New declarations.
5503         * lib/dirent-private.h: New file.
5504         * lib/opendir.c: New file.
5505         * lib/readdir.c: New file.
5506         * lib/rewinddir.c: New file.
5507         * lib/closedir.c: New file.
5508         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5509         * m4/opendir.m4: New file.
5510         * m4/readdir.m4: New file.
5511         * m4/rewinddir.m4: New file.
5512         * m4/closedir.m4: New file.
5513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5514         REPLACE_CLOSEDIR here.
5515         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5516         readdir, rewinddir are declared.
5517         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5518         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5519         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5520         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5521         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5522         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5523         * modules/opendir: New file.
5524         * modules/readdir: New file.
5525         * modules/rewinddir: New file.
5526         * modules/closedir: New file.
5527         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5528         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5529         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5530         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5531         * NEWS: Mention the 'fchdir' change.
5532
5533 2011-09-11  Bruno Haible  <bruno@clisp.org>
5534
5535         asm-underscore.m4: Support for MSVC.
5536         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5537         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5538
5539 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5540
5541         Doc about crypt functions.
5542         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5543         needing for _GNU_SOURCE to get crypt.
5544         * doc/posix-functions/encrypt.texi: Likewise.
5545         * doc/posix-functions/setkey.texi: Likewise.
5546
5547 2011-09-11  Bruno Haible  <bruno@clisp.org>
5548
5549         doc: Update regarding MSVC 9.
5550         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5551         tested".
5552         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5553         * doc/posix-headers/*.texi: Likewise.
5554         * doc/pastposix-functions/*.texi: Likewise.
5555         * doc/glibc-functions/*.texi: Likewise.
5556         * doc/glibc-headers/*.texi: Likewise.
5557
5558 2011-09-11  Bruno Haible  <bruno@clisp.org>
5559
5560         unistd et al.: Don't assume <unistd.h> exists.
5561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5562         does not exist.
5563         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5564         exist. But include <stdlib.h>.
5565         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5566         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5567         symlink() does not exist.
5568         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5569         include <io.h> instead.
5570         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5571         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5572         include <direct.h> instead.
5573         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5574         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5575         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5576         <io.h> instead.
5577         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5578         correctly if the system does not have hard links.
5579         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5580         <direct.h> instead.
5581         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5582         it when looking for function declarations.
5583         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5584         <direct.h> and <io.h> instead.
5585         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5586
5587 2011-09-11  Bruno Haible  <bruno@clisp.org>
5588
5589         strcase: Support for MSVC.
5590         * modules/strcase (Status, Notice): Remove obsoletion mark.
5591         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5592         * doc/posix-functions/strncasecmp.texi: Likewise.
5593
5594         strings: Don't assume <strings.h> exists.
5595         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5596         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5597         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5598         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5599
5600 2011-09-11  Bruno Haible  <bruno@clisp.org>
5601
5602         dirent: Don't assume <dirent.h> exists.
5603         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5604         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5605         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5606         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5607
5608 2011-09-11  Bruno Haible  <bruno@clisp.org>
5609
5610         Fix wint_t on MSVC.
5611         * lib/wchar.in.h (wint_t): On MSVC, override it.
5612         * lib/wctype.in.h (wint_t): Likewise.
5613         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5614         MSVC.
5615         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5616         * doc/posix-headers/wctype.texi: Likewise.
5617
5618 2011-09-11  Bruno Haible  <bruno@clisp.org>
5619
5620         sys_types: Fix typo.
5621         * lib/sys_types.in.h: Fix typo in comment.
5622         Reported by Paul Eggert.
5623
5624         Support for MSVC compiler: Ensure size_t gets defined.
5625         * modules/strings (Depends-on): Add 'sys_types'.
5626         * modules/sys_uio (Depends-on): Likewise.
5627         * lib/sys_uio.in.h: Update comment.
5628
5629         C++ tests for module 'sys_types'.
5630         * modules/sys_types-c++-tests: New file.
5631         * tests/test-sys_types-c++.cc: New file.
5632
5633         Tests for module 'sys_types'.
5634         * modules/sys_types-tests: New file.
5635         * tests/test-sys_types.c: New file.
5636
5637         New module 'sys_types'.
5638         * lib/sys_types.in.h: New file.
5639         * m4/sys_types_h.m4: New file.
5640         * modules/sys_types: New file.
5641         * doc/posix-headers/sys_types.texi: Mention the new module and the
5642         size_t problem on MSVC 9.
5643
5644 2011-09-11  Bruno Haible  <bruno@clisp.org>
5645
5646         Support for MSVC compiler: Avoid division by a literal 0.
5647         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5648         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5649         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5650         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5651         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5652         * tests/infinity.h: New file.
5653         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5654         on MSVC.
5655         * tests/test-ceilf1.c: Include infinity.h.
5656         (main): Use Infinityf.
5657         * tests/test-ceil1.c: Include infinity.h.
5658         (main): Use Infinityd.
5659         * tests/test-ceill.c: Include infinity.h.
5660         (main): Use Infinityl.
5661         * tests/test-dprintf-posix.c: Include infinity.h.
5662         (test_function): Use Infinityd.
5663         * tests/test-floorf1.c: Include infinity.h.
5664         (main): Use Infinityf.
5665         * tests/test-floor1.c: Include infinity.h.
5666         (main): Use Infinityd.
5667         * tests/test-floorl.c: Include infinity.h.
5668         (main): Use Infinityl.
5669         * tests/test-fprintf-posix.c: Include infinity.h.
5670         (test_function): Use Infinityd.
5671         * tests/test-frexp.c: Include infinity.h.
5672         (main): Use Infinityd.
5673         * tests/test-frexpl.c: Include infinity.h.
5674         (main): Use Infinityl.
5675         * tests/test-isfinite.c: Include infinity.h.
5676         (test_isfinitef): Use Infinityf.
5677         (test_isfinited): Use Infinityd.
5678         (test_isfinitel): Use Infinityl.
5679         * tests/test-isinf.c: Include infinity.h.
5680         (test_isinff): Use Infinityf.
5681         (test_isinfd): Use Infinityd.
5682         (test_isinfl): Use Infinityl.
5683         * tests/test-isnan.c: Include infinity.h.
5684         (test_float): Use Infinityf.
5685         (test_double): Use Infinityd.
5686         (test_long_double): Use Infinityl.
5687         * tests/test-isnanf.h: Include infinity.h.
5688         (main): Use Infinityf.
5689         * tests/test-isnand.h: Include infinity.h.
5690         (main): Use Infinityd.
5691         * tests/test-isnanl.h: Include infinity.h.
5692         (main): Use Infinityl.
5693         * tests/test-ldexpl.c: Include infinity.h.
5694         (main): Use Infinityl.
5695         * tests/test-printf-posix.h: Include infinity.h.
5696         (test_function): Use Infinityd.
5697         * tests/test-roundf1.c: Include infinity.h.
5698         (main): Use Infinityf.
5699         * tests/test-round1.c: Include infinity.h.
5700         (main): Use Infinityd.
5701         * tests/test-roundl.c: Include infinity.h.
5702         (main): Use Infinityl.
5703         * tests/test-signbit.c: Include infinity.h.
5704         (test_signbitf): Use Infinityf.
5705         (test_signbitd): Use Infinityd.
5706         (test_signbitl): Use Infinityl.
5707         * tests/test-snprintf-posix.h: Include infinity.h.
5708         (test_function): Use Infinityd, Infinityl.
5709         * tests/test-sprintf-posix.h: Include infinity.h.
5710         (test_function): Use Infinityd, Infinityl.
5711         * tests/test-truncf1.c: Include infinity.h.
5712         (main): Use Infinityf.
5713         * tests/test-trunc1.c: Include infinity.h.
5714         (main): Use Infinityd.
5715         * tests/test-truncl.c: Include infinity.h.
5716         (main): Use Infinityl.
5717         * tests/test-vasnprintf-posix.c: Include infinity.h.
5718         (test_function): Use Infinityd, Infinityl.
5719         * tests/test-vasprintf-posix.c: Include infinity.h.
5720         (test_function): Use Infinityd, Infinityl.
5721         * modules/ceilf-tests (Files): Add tests/infinity.h.
5722         * modules/ceil-tests (Files): Likewise.
5723         * modules/ceill-tests (Files): Likewise.
5724         * modules/dprintf-posix-tests (Files): Likewise.
5725         * modules/floorf-tests (Files): Likewise.
5726         * modules/floor-tests (Files): Likewise.
5727         * modules/floorl-tests (Files): Likewise.
5728         * modules/fprintf-posix-tests (Files): Likewise.
5729         * modules/frexp-tests (Files): Likewise.
5730         * modules/frexp-nolibm-tests (Files): Likewise.
5731         * modules/frexpl-tests (Files): Likewise.
5732         * modules/frexpl-nolibm-tests (Files): Likewise.
5733         * modules/isfinite-tests (Files): Likewise.
5734         * modules/isinf-tests (Files): Likewise.
5735         * modules/isnan-tests (Files): Likewise.
5736         * modules/isnanf-tests (Files): Likewise.
5737         * modules/isnanf-nolibm-tests (Files): Likewise.
5738         * modules/isnand-tests (Files): Likewise.
5739         * modules/isnand-nolibm-tests (Files): Likewise.
5740         * modules/isnanl-tests (Files): Likewise.
5741         * modules/isnanl-nolibm-tests (Files): Likewise.
5742         * modules/ldexpl-tests (Files): Likewise.
5743         * modules/printf-posix-tests (Files): Likewise.
5744         * modules/roundf-tests (Files): Likewise.
5745         * modules/round-tests (Files): Likewise.
5746         * modules/roundl-tests (Files): Likewise.
5747         * modules/signbit-tests (Files): Likewise.
5748         * modules/snprintf-posix-tests (Files): Likewise.
5749         * modules/sprintf-posix-tests (Files): Likewise.
5750         * modules/truncf-tests (Files): Likewise.
5751         * modules/trunc-tests (Files): Likewise.
5752         * modules/truncl-tests (Files): Likewise.
5753         * modules/vasnprintf-posix-tests (Files): Likewise.
5754         * modules/vasprintf-posix-tests (Files): Likewise.
5755         * modules/vdprintf-posix-tests (Files): Likewise.
5756         * modules/vfprintf-posix-tests (Files): Likewise.
5757         * modules/vprintf-posix-tests (Files): Likewise.
5758         * modules/vsnprintf-posix-tests (Files): Likewise.
5759         * modules/vsprintf-posix-tests (Files): Likewise.
5760         * modules/xprintf-posix-tests (Files): Likewise.
5761
5762 2011-09-11  Bruno Haible  <bruno@clisp.org>
5763
5764         Ensure pid_t gets defined.
5765         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5766         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5767         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5768         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5769         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5770         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5771         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5772         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5773         * tests/test-fcntl-h.c: Check that pid_t is defined.
5774         * tests/test-sched.c: Likewise.
5775         * tests/test-termios.c: Likewise.
5776         * tests/test-time.c: Likewise.
5777         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5778         * doc/posix-headers/signal.texi: Likewise.
5779         * doc/posix-headers/sys_types.texi: Likewise.
5780         * doc/posix-headers/time.texi: Likewise.
5781
5782 2011-09-11  Bruno Haible  <bruno@clisp.org>
5783
5784         acl: Fix compilation on Solaris 10 (older version).
5785         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5786         of ACE_EVERYONE.
5787         * lib/set-mode-acl.c (qset_acl): Likewise.
5788         Reported by Christian Jullien <eligis@orange.fr>.
5789
5790 2011-09-10  Bruno Haible  <bruno@clisp.org>
5791
5792         iconv, unsetenv: Add support for MSVC compiler.
5793         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5794         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5795
5796 2011-09-10  Bruno Haible  <bruno@clisp.org>
5797
5798         *printf: Add support for MSVC compiler.
5799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5800         handles the exception caused by the %n directive. When cross-compiling,
5801         guess no on native Windows.
5802         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5803         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5804         emulate it through vsnprintf.
5805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5806         * doc/posix-functions/dprintf.texi: Update documentation regarding
5807         MSVC 9.
5808         * doc/posix-functions/fprintf.texi: Likewise.
5809         * doc/posix-functions/printf.texi: Likewise.
5810         * doc/posix-functions/snprintf.texi: Likewise.
5811         * doc/posix-functions/sprintf.texi: Likewise.
5812         * doc/posix-functions/swprintf.texi: Likewise.
5813         * doc/posix-functions/vdprintf.texi: Likewise.
5814         * doc/posix-functions/vfprintf.texi: Likewise.
5815         * doc/posix-functions/vprintf.texi: Likewise.
5816         * doc/posix-functions/vsnprintf.texi: Likewise.
5817         * doc/posix-functions/vsprintf.texi: Likewise.
5818         * doc/glibc-functions/asprintf.texi: Likewise.
5819         * doc/glibc-functions/obstack_printf.texi: Likewise.
5820         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5821         * doc/glibc-functions/vasprintf.texi: Likewise.
5822
5823 2011-09-10  Bruno Haible  <bruno@clisp.org>
5824
5825         nocrash: Add support for native Windows.
5826         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5827
5828 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5829             Bruno Haible  <bruno@clisp.org>
5830
5831         absolute-header, include-next: Add support for MSVC compiler.
5832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5833         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5834         directory separator in #line directives.
5835         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5836         recognize also backslash as directory separator in #line directives.
5837
5838 2011-09-08  Jim Meyering  <meyering@redhat.com>
5839
5840         maint.mk: mark the post-release commit log with "maint: " prefix
5841         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5842         one-line commit-log summary.
5843
5844 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5845             Bruno Haible  <bruno@clisp.org>
5846
5847         Doc about crypt functions.
5848         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5849         systems.
5850         * doc/posix-functions/encrypt.texi: Likewise.
5851         * doc/posix-functions/setkey.texi: Likewise.
5852
5853 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5854
5855         * lib/gc.h: Fix copyright header.
5856
5857 2011-09-07  Bruno Haible  <bruno@clisp.org>
5858
5859         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5860         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5861         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5862
5863 2011-09-07  Bruno Haible  <bruno@clisp.org>
5864
5865         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5866         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5867         * lib/freopen.c: Likewise.
5868         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5869         * lib/lstat.c: Likewise.
5870         * lib/stat.c: Likewise.
5871         * lib/open.c: Use different syntax for include of <fcntl.h>.
5872         * lib/openat.c: Include fcntl.h again, explicitly.
5873
5874 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5875
5876         parse-datetime: document the newly accepted format
5877         * doc/parse-datetime.texi (Combined date and time of day items):
5878         New section.
5879
5880 2011-09-06  Bruno Haible  <bruno@clisp.org>
5881
5882         acl: Fix a test failure on newer Solaris 10 with ZFS.
5883         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5884         ENOSYS as no ACL.
5885         Reported by Jim Meyering.
5886
5887 2011-09-06  Bruno Haible  <bruno@clisp.org>
5888
5889         acl: Update for AIX >= 5.3 with NFS.
5890         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5891         ENOSYS as no ACL.
5892
5893         acl: Fix a test failure on AIX >= 5.3 with NFS.
5894         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5895         as no ACL.
5896
5897 2011-09-06  Bruno Haible  <bruno@clisp.org>
5898
5899         acl: Fix a test failure on IRIX 6.5 with NFS.
5900         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5901         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5902         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5903         * lib/copy-acl.c (qcopy_acl): Likewise.
5904
5905 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5906
5907         openat: port to AIX 7.1 with large files
5908         AIX 7.1 does a "#define openat open64at" if large files are in use,
5909         so we can't simply #undef openat.  Use the orig_openat trick (similar
5910         to orig_open in lib/open.c) to work around the problem.  Problem
5911         reported by Kevin Brott for GNU tar, in the thread containing
5912         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5913         * lib/openat.c (__need_system_fcntl_h): Define first.
5914         Include <fcntl.h> and <sys/types.h> before undefining.
5915         (orig_openat) [HAVE_OPENAT]: New inline function.
5916         (openat) [HAVE_OPENAT]: Do not undef.
5917         (rpl_openat): Use orig_openat, not openat.
5918
5919 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5920             Bruno Haible  <bruno@clisp.org>
5921
5922         acl: Avoid errors on NonStop Kernel.
5923         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5924         ENOTSUP errors.
5925
5926 2011-09-05  Bruno Haible  <bruno@clisp.org>
5927
5928         acl: Clean up Solaris code.
5929         * lib/acl-internal.h: Remove no-op #if.
5930         * lib/file-has-acl.c: Likewise.
5931         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5932         * lib/copy-acl.c (qcopy_acl): Likewise.
5933
5934 2011-09-05  Bruno Haible  <bruno@clisp.org>
5935
5936         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5937         binaries built on the original Solaris 10.
5938         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5939         trivial.
5940
5941 2011-09-05  Bruno Haible  <bruno@clisp.org>
5942
5943         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5944         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5945         10.
5946         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5947         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5948         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5949         instead of acl_get, facl_get, acl_set, facl_set.
5950
5951 2011-09-05  Bruno Haible  <bruno@clisp.org>
5952
5953         copy-file: Try unit tests on more file systems.
5954         * tests/test-copy-file-1.sh: New file.
5955         * tests/test-copy-file-2.sh: New file.
5956         * modules/copy-file-tests (Files): Add them.
5957         (Makefile.am): Add them to TESTS.
5958
5959         acl: Try unit tests on more file systems.
5960         * tests/test-file-has-acl-1.sh: New file.
5961         * tests/test-file-has-acl-2.sh: New file.
5962         * tests/test-set-mode-acl-1.sh: New file.
5963         * tests/test-set-mode-acl-2.sh: New file.
5964         * tests/test-copy-acl-1.sh: New file.
5965         * tests/test-copy-acl-2.sh: New file.
5966         * modules/acl-tests (Files): Add them.
5967         (Makefile.am): Add them to TESTS.
5968
5969 2011-09-04  Bruno Haible  <bruno@clisp.org>
5970
5971         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5972         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5973         10.
5974         (OLD_ALLOW, OLD_DENY): New macros.
5975         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5976         ACE_ACCESS_ALLOWED_ACE_TYPE.
5977         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5978         ACE_ACCESS_DENIED_ACE_TYPE.
5979         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5980         (NEW_ACE_EXECUTE): Fix value.
5981         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5982         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5983         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5984         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5985         NEW_ACE_SYNCHRONIZE): New macros.
5986         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5987         instead of acl_fromtext, acl_set, facl_set.
5988         Fixes a coreutils/tests/cp/perm failure.
5989
5990 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5991
5992         openat: test for fstatat (..., 0) bug
5993         Further testing with tar suggests that fstatat (..., 0)
5994         does not work in general, on AIX 7.1; see
5995         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5996         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5997         replacement fstatat (which is what older AIX releases were using
5998         anyway).
5999         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6000         use is now changed to orig_fstatat.  This was probably the right
6001         thing to do anyway.
6002         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6003         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6004         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6005         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6006         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6007         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6008         if the bug is found.
6009
6010         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6011         This tests for another fstatat bug on AIX 7.1:
6012         fstatat (AT_FDCWD, ..., 0) does not work.  See
6013         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6014         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6015         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6016         (rpl_fstatat): Adjust so that it works around either (or both)
6017         bugs if present.
6018         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6019
6020 2011-09-03  Karl Berry  <karl@gnu.org>
6021
6022         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6023         in index entries.
6024
6025 2011-09-02  Bruno Haible  <bruno@clisp.org>
6026
6027         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6028         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6029         values of AR, ARFLAGS, RANLIB.
6030         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6031
6032 2011-09-02  Bruno Haible  <bruno@clisp.org>
6033
6034         Find 'ar' program that fits with --host argument.
6035         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6036
6037 2011-09-02  Bruno Haible  <bruno@clisp.org>
6038
6039         tests: init.sh: Support any non-GNU diff.
6040         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6041         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6042         Solaris 8.
6043
6044 2011-09-02  Bruno Haible  <bruno@clisp.org>
6045
6046         tests: init.sh: work also with any non-GNU diff that supports -u
6047         * tests/init.sh: Relax check for diff -u support.
6048         Rather than checking for GNU diff via --version, simply check
6049         for support for -u itself.  Useful at least on OpenBSD 4.9,
6050         AIX 7.1, IRIX 6.5, and Solaris 10.
6051
6052 2011-09-01  Bruno Haible  <bruno@clisp.org>
6053
6054         strtoimax, strtoumax: Document problem on HP-UX 11.
6055         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6056         * doc/posix-functions/strtoumax.texi: Likewise.
6057
6058 2011-09-01  Bruno Haible  <bruno@clisp.org>
6059
6060         strtoumax: Avoid link error on OSF/1 with DTK cc.
6061         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6062         defined as a function.
6063         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6064         strtoumax is defined, not whether it is declared.
6065
6066 2011-09-01  Bruno Haible  <bruno@clisp.org>
6067
6068         strtoimax: Avoid link error on OSF/1 with DTK cc.
6069         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6070         defined as a function.
6071         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6072         strtoimax is defined, not whether it is declared.
6073
6074 2011-09-01  Bruno Haible  <bruno@clisp.org>
6075
6076         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6077         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6078         as a function.
6079         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6080         whether it is declared.
6081
6082 2011-09-01  Bruno Haible  <bruno@clisp.org>
6083
6084         imaxabs: Avoid link error on OSF/1 with DTK cc.
6085         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6086         as a function.
6087         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6088         whether it is declared.
6089
6090 2011-09-01  Bruno Haible  <bruno@clisp.org>
6091
6092         Tests for module 'strtoumax'.
6093         * modules/strtoumax-tests: New file.
6094         * tests/test-strtoumax.c: New file.
6095
6096         Tests for module 'strtoimax'.
6097         * modules/strtoimax-tests: New file.
6098         * tests/test-strtoimax.c: New file.
6099
6100         Tests for module 'imaxdiv'.
6101         * modules/imaxdiv-tests: New file.
6102         * tests/test-imaxdiv.c: New file.
6103
6104         Tests for module 'imaxabs'.
6105         * modules/imaxabs-tests: New file.
6106         * tests/test-imaxabs.c: New file.
6107
6108 2011-09-01  Bruno Haible  <bruno@clisp.org>
6109
6110         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6111         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6112         pthread_create.
6113
6114 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6115
6116         openat: work around AIX 7.1 fstatat issue
6117         This should fix the problem that was not properly fixed
6118         in the previous change, dated 2011-08-30.
6119         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6120         __need_system_stat_h defined.
6121         (orig_fstatat) [HAVE_FSTATAT]: New function.
6122         (rpl_fstatat): Go back to the old way of doing things,
6123         except call orig_fstatat instead of fstatat.
6124         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6125         Remove unnecessary check whether fstatat fills in st_size etc.
6126
6127 2011-09-01  Bruno Haible  <bruno@clisp.org>
6128
6129         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6130         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6131         just include the system's header.
6132
6133 2011-08-31  Jim Meyering  <meyering@redhat.com>
6134
6135         tests: avoid spurious assertion failure in test-float.c on ppc64
6136         * tests/test-float.c (test_long_double): Comment out an assertion,
6137         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6138         with gcc-4.4.4.
6139
6140         maint: indent with spaces, not TABs
6141         I need to get in the habit of running gnulib's "make check".
6142         Both of these would have been caught.
6143         * m4/largefile.m4: Indent with spaces, not TABs.
6144         * lib/parse-datetime.y (iso_8601_time): Likewise.
6145         Spotted by PĂ¡draig Brady.
6146
6147         test-parse-datetime.c: accommodate a relatively strict gcc warning
6148         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6149         to avoid a warning from gcc's -Werror=missing-declarations.
6150         Insert a few spaces-before-funcall-parenthesis.
6151
6152 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6153
6154         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6155         The parser now accepts ISO 8601 date-time strings with "T" as the
6156         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6157         with a space between the date and time strings.  Now it also parses
6158         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6159         variants like "2004-02-29T16:21:42.333-07:00"
6160         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6161         of day representation using the 'T' separator character.
6162         * doc/parse-datetime.texi (General date syntax): replace use of
6163         deprecated --iso-8601 option with --rfc-3339 in example of date
6164         command output formats that can be parsed.
6165         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6166         lib/parse-datetime.y.
6167         (gmt_offset): New function.
6168         (main): Add additional test cases to validate ISO8601 extended
6169         date and time of day parsing.
6170
6171 2011-08-31  Bruno Haible  <bruno@clisp.org>
6172
6173         freopen: Documentation.
6174         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6175         name.
6176         Reported by Claudio Bley <claudio.bley@gmail.com>.
6177
6178 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6179
6180         freopen: Don't crash if the filename argument is NULL.
6181         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6182         NULL.
6183
6184 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6185
6186         openat: work around AIX 7.1 fstatat bug
6187         Problem reported by Kevin Brott for GNU tar, in the thread containing
6188         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6189         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6190         FSTATAT_ST_SIZE_ETC_BROKEN.
6191         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6192         rpl_fstatat.
6193         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6194         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6195         AC_CHECK_FUNCS_ONCE for fstatat.
6196         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6197         fchmodat, mkdirat, openat and unlinkat.
6198
6199 2011-08-30  Bruno Haible  <bruno@clisp.org>
6200
6201         Avoid endless recursions if config.h includes some header files.
6202         * lib/fopen.c (__need_FILE): Define already before including config.h.
6203         * lib/freopen.c (__need_FILE): Likewise.
6204         * lib/open.c (__need_system_fcntl_h): Likewise.
6205         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6206         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6207         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6208
6209 2011-08-25  Karl Berry  <karl@gnu.org>
6210
6211         * config/srclist.txt (ylwrap): new try.
6212         * build-aux/ylwrap: new file.
6213
6214 2011-08-23  Bruno Haible  <bruno@clisp.org>
6215
6216         tmpdir: Use a good default directory on native Windows.
6217         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6218         (P_tmpdir): Default to _P_tmpdir on native Windows.
6219         (path_search): On native Windows, try the value returned by GetTempPath
6220         before trying P_tmpdir.
6221         * modules/tmpdir (Depends-on): Add pathmax.
6222         Suggested by John Darrington <john@darrington.wattle.id.au>.
6223
6224 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6225
6226         doc: fix typo in README-release
6227         * top/README-release: Capitalize first word of a sentence.
6228
6229 2011-08-19  Jim Meyering  <meyering@redhat.com>
6230
6231         fts: do not exhaust memory when processing million-entry directories
6232         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6233         directory would require about 256*N bytes of memory.  Thus, it was
6234         easy to construct a directory too large to be processed by any of
6235         those tools.  With this change, fts' maximum memory utilization is
6236         now limited to around 30MB.
6237         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6238         (fts_read): When we've processed the final entry (i.e., when
6239         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6240         using the parent entry to read any remaining entries.  Dispatch
6241         depending on what fts_build returns:
6242         - NULL+stop, aka failure: stop
6243         - NULL otherwise: move up in the dir hierarchy
6244         - non-NULL: handle this new entry
6245         (fts_build): Declare and use new local, continue_readdir.
6246         Prepare to be called from fts_read, when the entries
6247         from a partially-read directory have just been exhausted.
6248         In that case, we'll skip the opendir and instead use the parent's
6249         fts_dirp and derive dir_fd from that.
6250         Finally, in the readdir loop, if we read max_entries entries,
6251         exit the loop ensuring *not* to call closedir.  This is required
6252         so that fts_dirp can be reused on a subsequent call.
6253         Prompted by Ben England's report of memory exhaustion in find
6254         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6255
6256         maint: fts: move decl of `dp' down into while loop; split a long line
6257         * lib/fts.c (fts_build): No semantic change.
6258
6259         fts: add/use new struct member, fts_dirp
6260         We are about to use this to manage any directory with
6261         too many entries to read all of them into memory at once.
6262         To do that, we'll need to save the DIR* pointer in each
6263         affected FTSENT struct.
6264         * lib/fts_.h: Include <dirent.h>.
6265         (struct FTSENT) [fts_dirp]: New member.
6266         * lib/fts.c (closedir_and_clear): Define.
6267         Use it in place of closedir so that we are sure to
6268         clear the new fts_dirp member when done with it.
6269         (fts_alloc): Initialize the new member.
6270         (fts_lfree): Free, if needed.
6271
6272         maint: fts: give __opendir2 a new parameter and rename
6273         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6274         than surreptitiously using sole caller's "dir_fd".
6275         (fts_opendir): Rename from __opendir2.
6276
6277         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6278         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6279
6280         maint: fts.c: correct off-by-one indentation
6281         * lib/fts.c (fts_build): Correct indentation, change style
6282         of a couple of block comments, and bracing style.
6283
6284         maint: fts.c: move __opendir2 #define "up" out of function body
6285         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6286
6287         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6288         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6289         out for a long time and besides was useful only on BSD systems.
6290
6291 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6292
6293         regex: port to Stratus OpenVOS
6294         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6295         define to empty, rather than attempting nonportable optimizations.
6296         Problem reported by Paul Green in:
6297         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6298         and fix suggested by Eric Blake in:
6299         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6300
6301 2011-08-17  Eric Blake  <eblake@redhat.com>
6302
6303         getcwd: fix test failures on mingw
6304         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6305         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6306         test if long directory cannot be created, and allow mingw errno.
6307
6308         getcwd-lgpl: fix m4 to match relaxed test for BSD
6309         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6310         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6311         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6312         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6313         signature problem.
6314
6315         getcwd: fix compilation on mingw64
6316         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6317         getcwd.
6318         Reported by Marc-AndrĂ© Lureau.
6319
6320         pipe2: silence compiler warning
6321         * lib/pipe2.c (pipe2): Hide label if it is not used.
6322
6323 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6324
6325         relocatable-prog: fix link error
6326         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6327         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6328         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6329         into modules/relocatable-lib without noticing that
6330         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6331         also needs to build relocatable.c.
6332
6333 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6334
6335         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6337         shell code: it contained a 'break' that was not in a loop.
6338         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6339         via a shell-language loop; this may have been true in old Autoconf
6340         versions, but it's not true in Autoconf 2.68.  I found this bug
6341         when testing coreutils git on Solaris 8, whose shell complains
6342         about the syntax error.
6343
6344 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6345
6346         * lib/base64.c: Fix comment to reference RFC 4648.
6347         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6348         <gvtulder@gmail.com>.
6349
6350 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6351
6352         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6353
6354         po/Makefile.in.in: fix make -q problem
6355         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6356         rule, since there's no file named 'check-macro-version' and its
6357         use as a file breaks make -q.
6358         (all): Don't depend on check-macro-version.
6359         (CHECK_MACRO_VERSION): New macro.
6360         (stamp-po): Use it.
6361
6362         configmake: fix make -q problem
6363         * modules/configmake (configmake.h): Update configmake.h's time stamp
6364         even if the file does not change.  Otherwise, 'make -q' fails.
6365         Problem reported by Simon Josefsson in
6366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6367
6368 2011-08-11  Jim Meyering  <meyering@redhat.com>
6369
6370         git-version-gen: correct the advice in a comment
6371         * build-aux/git-version-gen: Correct comment.
6372         Don't recommend to list .tarball-version in .gitignore.
6373
6374 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6375
6376         base64: fix off-by-one buffer size bug
6377         Problem and (trivial) fix reported by Gijs van Tulder in
6378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6379         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6380         * tests/test-base64.c (main): Catch the bug.
6381
6382 2011-08-10  Eric Blake  <eblake@redhat.com>
6383
6384         closein: correct comments
6385         * lib/closein.c (close_stdin): Improve comments.
6386
6387 2011-08-09  Bruno Haible  <bruno@clisp.org>
6388
6389         More tests for 'fseeko'.
6390         * tests/test-fseeko3.c: New file, from Eric Blake.
6391         * tests/test-fseeko3.sh: New file.
6392         * modules/fseeko-tests (Files): Add them.
6393         (TESTS): Add test-fseeko3.sh.
6394         (check_PROGRAMS): Add test-fseeko3.
6395
6396 2011-08-09  Eric Blake  <eblake@redhat.com>
6397
6398         fseeko: remove unneeded hack
6399         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6400
6401         fseeko: fix bug on glibc
6402         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6403         Reported by John W. Eaton.
6404
6405 2011-08-08  Bruno Haible  <bruno@clisp.org>
6406
6407         unictype/base: Fix interoperability with preinstalled libunistring.
6408         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6409         Reported by Simon Josefsson.
6410
6411 2011-08-08  Bruno Haible  <bruno@clisp.org>
6412
6413         iswblank: Detect declaration correctly.
6414         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6415         AC_CHECK_DECLS invocation.
6416
6417 2011-08-08  Bruno Haible  <bruno@clisp.org>
6418
6419         tcgetsid: Detect declaration correctly.
6420         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6421         AC_CHECK_DECLS invocation.
6422         Reported by Simon Josefsson.
6423
6424 2011-08-08  Eric Blake  <eblake@redhat.com>
6425
6426         largefile: fix typo that regressed large file support
6427         * modules/largefile (configure.ac-early): Fix section name.
6428
6429 2011-08-06  Karl Berry  <karl@gnu.org>
6430
6431         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6432         a separate module.
6433
6434 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6435
6436         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6437         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6438         get prototype for free.
6439
6440 2011-08-04  Bruno Haible  <bruno@clisp.org>
6441
6442         Tests for module 'pathmax'.
6443         * modules/pathmax-tests: New file.
6444         * tests/test-pathmax.c: New file.
6445
6446         canonicalize-lgpl: Support larger filenames on the Hurd.
6447         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6448         Reported by Paul Eggert.
6449
6450         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6451         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6452         * lib/chdir-long.h: Include pathmax.h.
6453         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6454         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6455         (PATH_MAX): Remove code that is done by pathmax.h.
6456         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6457         * lib/tmpfile.c: Add a comment.
6458         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6459         * modules/chdir-long (Depends-on): Add pathmax.
6460         * modules/getcwd (Depends-on): Add pathmax.
6461         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6462         is not defined.
6463         * doc/posix-headers/limits.texi: Mention the pathmax module.
6464         * NEWS: Mention the change.
6465
6466 2011-08-02  Bruno Haible  <bruno@clisp.org>
6467
6468         pthread_sigmask: Actually use results of gl_THREADLIB.
6469         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6470         gl_THREADLIB, not gl_[]THREADLIB.
6471         Reported by Eric Blake.
6472
6473 2011-08-02  Jim Meyering  <meyering@redhat.com>
6474
6475         maint.mk: relax the default _gl_TS_function_match regexp
6476         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6477         space between function name and "(" in an "extern" declaration.
6478         That would fail to match a decl with no space there: extern void foo();
6479
6480 2011-07-31  Iain Nicol  <iain@thenicols.net>
6481
6482         git-version-gen: document that EXTRA_DIST must include .version
6483         * build-aux/git-version-gen: In the how-to-use comment, document
6484         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6485         will fail when run from an unpacked distribution tarball.
6486
6487 2011-08-01  Bruno Haible  <bruno@clisp.org>
6488
6489         wctype-h: Fix last change.
6490         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6491         REPLACE_TOWLOWER to 0.
6492         Reported by Sam Steingold <sds@gnu.org>.
6493
6494 2011-07-31  Bruno Haible  <bruno@clisp.org>
6495
6496         frexpl: Update autoconf test.
6497         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6498         according to changes of 2011-06-20.
6499
6500 2011-07-31  Bruno Haible  <bruno@clisp.org>
6501
6502         sys_utsname: Add support for Minix.
6503         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6504         <sys/utsname.h>.
6505         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6506         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6507
6508 2011-07-31  Bruno Haible  <bruno@clisp.org>
6509
6510         strings: Add support for Minix.
6511         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6512         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6513         * doc/posix-headers/strings.texi: Document the Minix problem.
6514
6515 2011-07-31  Bruno Haible  <bruno@clisp.org>
6516
6517         wctype-h: Add support for Minix.
6518         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6519         REPLACE_TOWLOWER.
6520         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6521         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6522         REPLACE_ISWCNTRL.
6523
6524 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6527         This is a performance improvement for 64-bit hosts: it causes the
6528         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6529
6530 2011-07-31  Bruno Haible  <bruno@clisp.org>
6531
6532         stdioext: Add support for Minix.
6533         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6534         * lib/fpurge.c (fpurge): Likewise.
6535         * lib/freadahead.c (freadahead): Likewise.
6536         * lib/freadable.c (freadable): Likewise.
6537         * lib/freading.c (freading): Likewise.
6538         * lib/freadptr.c (freadptr): Likewise.
6539         * lib/freadseek.c (freadptrinc): Likewise.
6540         * lib/fseeko.c (rpl_fseeko): Likewise.
6541         * lib/fseterr.c (fseterr): Likewise.
6542         * lib/fwritable.c (fwritable): Likewise.
6543         * lib/fwriting.c (fwriting): Likewise.
6544         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6545         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6546
6547 2011-07-31  Bruno Haible  <bruno@clisp.org>
6548
6549         errno: Port to Minix.
6550         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6551         ECONNABORTED are defined.
6552         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6553         GNULIB_defined_ECONNABORTED): New macros.
6554         * lib/strerror-override.h (strerror_override): Test also
6555         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6556         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6557         ECONNABORTED.
6558         * doc/posix-headers/errno.texi: Mention the Minix problem.
6559
6560 2011-07-31  Bruno Haible  <bruno@clisp.org>
6561
6562         Work around declaration collisions on Minix.
6563         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6564         defined, set REPLACE_MBSINIT.
6565         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6566         defined, set REPLACE_MBRTOWC.
6567         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6568         set REPLACE_MBRLEN.
6569         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6570         defined, set REPLACE_MBSRTOWCS.
6571         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6572         defined, set REPLACE_WCRTOMB.
6573         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6574         defined, set REPLACE_WCSRTOMBS.
6575
6576 2011-07-31  Bruno Haible  <bruno@clisp.org>
6577
6578         Add support for Minix with ACK compiler.
6579         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6580         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6581         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6582
6583 2011-07-31  Bruno Haible  <bruno@clisp.org>
6584
6585         Documentation about Minix.
6586         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6587         * doc/glibc-headers/*.texi: Likewise.
6588         * doc/posix-functions/*.texi: Likewise.
6589         * doc/glibc-functions/*.texi: Likewise.
6590
6591 2011-07-31  Bruno Haible  <bruno@clisp.org>
6592
6593         snippet/warn-on-use: Fix indentation.
6594         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6595
6596 2011-07-25  Jim Meyering  <meyering@redhat.com>
6597
6598         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6599         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6600         commands.
6601
6602 2011-07-27  Jim Meyering  <meyering@redhat.com>
6603
6604         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6605         * top/maint.mk (gl_extract_significant_defines_): Now that
6606         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6607         gnulib/lib/signal.in.h, and now that we recommend to
6608         define-if-undefined those two symbols in application code,
6609         we must filter them out of the "significant" list.
6610         This avoids a "make syntax-check" failure in coreutils.
6611
6612 2011-07-26  Eric Blake  <eblake@redhat.com>
6613
6614         warnings: add comments about previous patch
6615         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6616         * m4/include_next.m4: Likewise.
6617         * m4/warn-on-use.m4: Likewise.
6618         * m4/warnings.m4: Likewise, and simplify use.
6619         Suggested by Stefano Lattarini.
6620
6621         include-next, warnings: support older autoconf
6622         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6623         AS_VAR_PUSHDEF in a way that works with older autoconf.
6624         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6625         Reported by Daniel P. Berrange.
6626
6627 2011-07-25  Bruno Haible  <bruno@clisp.org>
6628
6629         fseek, ftell: Fix doc.
6630         * doc/posix-functions/fseek.texi: Reword statement about
6631         AC_SYS_LARGEFILE.
6632         * doc/posix-functions/ftell.texi: Likewise.
6633
6634 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6635             Bruno Haible  <bruno@clisp.org>
6636
6637         Add dependencies to the 'largefile' module.
6638         * modules/fopen (Depends-on): Add 'largefile'.
6639         * modules/freopen (Depends-on): Likewise.
6640         * modules/fseeko (Depends-on): Likewise.
6641         * modules/ftello (Depends-on): Likewise.
6642         * modules/glob (Depends-on): Likewise.
6643         * modules/lseek (Depends-on): Likewise.
6644         * modules/lstat (Depends-on): Likewise.
6645         * modules/mkostemp (Depends-on): Likewise.
6646         * modules/mkostemps (Depends-on): Likewise.
6647         * modules/mkstemp (Depends-on): Likewise.
6648         * modules/mkstemps (Depends-on): Likewise.
6649         * modules/open (Depends-on): Likewise.
6650         * modules/openat (Depends-on): Likewise.
6651         * modules/pread (Depends-on): Likewise.
6652         * modules/pwrite (Depends-on): Likewise.
6653         * modules/scandir (Depends-on): Likewise.
6654         * modules/stat (Depends-on): Likewise.
6655         * modules/tmpfile (Depends-on): Likewise.
6656         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6657         since the containing module now depends on the largefile module.
6658         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6659         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6660         off_t is fixed by gnulib.
6661         * doc/posix-functions/freopen.texi: Likewise.
6662         * doc/posix-functions/fseeko.texi: Likewise.
6663         * doc/posix-functions/fstatat.texi: Likewise.
6664         * doc/posix-functions/ftello.texi: Likewise.
6665         * doc/posix-functions/glob.texi: Likewise.
6666         * doc/posix-functions/lseek.texi: Likewise.
6667         * doc/posix-functions/lstat.texi: Likewise.
6668         * doc/posix-functions/mkstemp.texi: Likewise.
6669         * doc/posix-functions/open.texi: Likewise.
6670         * doc/posix-functions/openat.texi: Likewise.
6671         * doc/posix-functions/pread.texi: Likewise.
6672         * doc/posix-functions/pwrite.texi: Likewise.
6673         * doc/posix-functions/scandir.texi: Likewise.
6674         * doc/posix-functions/stat.texi: Likewise.
6675         * doc/posix-functions/tmpfile.texi: Likewise.
6676         * doc/glibc-functions/mkostemp.texi: Likewise.
6677         * doc/glibc-functions/mkostemps.texi: Likewise.
6678         * doc/glibc-functions/mkstemps.texi: Likewise.
6679
6680 2011-07-25  Bruno Haible  <bruno@clisp.org>
6681
6682         fcntl: Move AC_LIBOBJ invocation to module description.
6683         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6684         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6685
6686         fcntl: Remove call-in from fchdir.m4.
6687         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6689
6690         dup3: Remove potential call-in from fchdir.m4.
6691         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6693
6694         dup2: Move AC_LIBOBJ invocation to module description.
6695         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6696         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6697         Don't invoke AC_LIBOBJ.
6698         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6699
6700         dup2: Remove call-in from fchdir.m4.
6701         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6703
6704         fclose: Move AC_LIBOBJ invocation to module description.
6705         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6706         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6707         to 1.
6708         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6709
6710         fclose: Remove call-in from close.m4.
6711         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6712         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6713
6714         close: Move AC_LIBOBJ invocation to module description.
6715         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6716         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6717         1.
6718         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6719
6720         close: Remove call-in from fchdir.m4.
6721         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6723
6724         open: Move AC_LIBOBJ invocation to module description.
6725         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6726         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6727         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6728
6729         open: Remove call-in from fchdir.m4.
6730         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6732
6733         fchdir: Start to remove gl_REPLACE_* idiom.
6734         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6735         (gl_FUNC_FCHDIR): Invoke it.
6736
6737 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6738
6739         * lib/ftell.c (ftell): Comment out cast.
6740
6741         close: use gl_REPLACE_FCLOSE only if defined
6742         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6743         is defined.  The close module doesn't depend on the fclose module
6744         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6746         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6747
6748 2011-07-24  Jim Meyering  <meyering@redhat.com>
6749
6750         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6751         * tests/test-select.h (test_function): Declare as "static".
6752
6753 2011-07-24  Bruno Haible  <bruno@clisp.org>
6754
6755         doc: Mention the effects of AC_SYS_LARGEFILE.
6756         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6757         on this function.
6758         * doc/posix-functions/aio_error.texi: Likewise.
6759         * doc/posix-functions/aio_fsync.texi: Likewise.
6760         * doc/posix-functions/aio_read.texi: Likewise.
6761         * doc/posix-functions/aio_return.texi: Likewise.
6762         * doc/posix-functions/aio_suspend.texi: Likewise.
6763         * doc/posix-functions/aio_write.texi: Likewise.
6764         * doc/posix-functions/fgetpos.texi: Likewise.
6765         * doc/posix-functions/fopen.texi: Likewise.
6766         * doc/posix-functions/freopen.texi: Likewise.
6767         * doc/posix-functions/fsetpos.texi: Likewise.
6768         * doc/posix-functions/fstatvfs.texi: Likewise.
6769         * doc/posix-functions/ftruncate.texi: Likewise.
6770         * doc/posix-functions/ftw.texi: Likewise.
6771         * doc/posix-functions/getrlimit.texi: Likewise.
6772         * doc/posix-functions/glob.texi: Likewise.
6773         * doc/posix-functions/lio_listio.texi: Likewise.
6774         * doc/posix-functions/lockf.texi: Likewise.
6775         * doc/posix-functions/mkstemp.texi: Likewise.
6776         * doc/posix-functions/mmap.texi: Likewise.
6777         * doc/posix-functions/nftw.texi: Likewise.
6778         * doc/posix-functions/openat.texi: Likewise.
6779         * doc/posix-functions/opendir.texi: Likewise.
6780         * doc/posix-functions/posix_fadvise.texi: Likewise.
6781         * doc/posix-functions/posix_fallocate.texi: Likewise.
6782         * doc/posix-functions/pread.texi: Likewise.
6783         * doc/posix-functions/pwrite.texi: Likewise.
6784         * doc/posix-functions/readdir.texi: Likewise.
6785         * doc/posix-functions/readdir_r.texi: Likewise.
6786         * doc/posix-functions/rewinddir.texi: Likewise.
6787         * doc/posix-functions/scandir.texi: Likewise.
6788         * doc/posix-functions/seekdir.texi: Likewise.
6789         * doc/posix-functions/setrlimit.texi: Likewise.
6790         * doc/posix-functions/statvfs.texi: Likewise.
6791         * doc/posix-functions/telldir.texi: Likewise.
6792         * doc/posix-functions/tmpfile.texi: Likewise.
6793         * doc/posix-functions/truncate.texi: Likewise.
6794         * doc/glibc-functions/fallocate.texi: Likewise.
6795         * doc/glibc-functions/fstatfs.texi: Likewise.
6796         * doc/glibc-functions/fts_children.texi: Likewise.
6797         * doc/glibc-functions/fts_read.texi: Likewise.
6798         * doc/glibc-functions/getdirentries.texi: Likewise.
6799         * doc/glibc-functions/mkostemp.texi: Likewise.
6800         * doc/glibc-functions/mkostemps.texi: Likewise.
6801         * doc/glibc-functions/mkstemps.texi: Likewise.
6802         * doc/glibc-functions/preadv.texi: Likewise.
6803         * doc/glibc-functions/pwritev.texi: Likewise.
6804         * doc/glibc-functions/sendfile.texi: Likewise.
6805         * doc/glibc-functions/statfs.texi: Likewise.
6806
6807 2011-07-24  Bruno Haible  <bruno@clisp.org>
6808
6809         doc: Fix typo.
6810         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6811
6812 2011-07-24  Bruno Haible  <bruno@clisp.org>
6813
6814         doc: Mention fsusage.
6815         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6816
6817 2011-07-24  Bruno Haible  <bruno@clisp.org>
6818
6819         doc: Mention new glibc headers and functions.
6820         * doc/glibc-headers/gshadow.texi: New file.
6821         * doc/glibc-functions/endsgent.texi: New file.
6822         * doc/glibc-functions/fgetsgent.texi: New file.
6823         * doc/glibc-functions/fgetsgent_r.texi: New file.
6824         * doc/glibc-functions/getsgent.texi: New file.
6825         * doc/glibc-functions/getsgent_r.texi: New file.
6826         * doc/glibc-functions/getsgnam.texi: New file.
6827         * doc/glibc-functions/getsgnam_r.texi: New file.
6828         * doc/glibc-functions/putsgent.texi: New file.
6829         * doc/glibc-functions/setsgent.texi: New file.
6830         * doc/glibc-functions/sgetsgent.texi: New file.
6831         * doc/glibc-functions/sgetsgent_r.texi: New file.
6832         * doc/glibc-functions/malloc_info.texi: New file.
6833         * doc/glibc-functions/preadv.texi: New file.
6834         * doc/glibc-functions/pwritev.texi: New file.
6835         * doc/glibc-functions/register_printf_modifier.texi: New file.
6836         * doc/glibc-functions/register_printf_specifier.texi: New file.
6837         * doc/glibc-functions/register_printf_type.texi: New file.
6838         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6839         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6840         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6841         * doc/glibc-functions/pthread_getname_np.texi: New file.
6842         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6843         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6844         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6845         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6846         * doc/glibc-functions/pthread_setname_np.texi: New file.
6847         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6848         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6849         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6850         * doc/glibc-functions/qsort_r.texi: New file.
6851         * doc/glibc-functions/quick_exit.texi: New file.
6852         * doc/glibc-functions/syncfs.texi: New file.
6853         * doc/gnulib.texi: Include them.
6854         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6855         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6856         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6857         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6858         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6859         * doc/glibc-functions/execvpe.texi: Likewise.
6860
6861 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6862
6863         ftell: don't include <unistd.h>
6864         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6865         guaranteed to define off_t, and the ftell module depends on the
6866         stdio module.
6867
6868         ftell: do not assume wraparound signed arithmetic
6869         * lib/ftell.c: Include <limits.h>.
6870         (ftell): Don't assume wraparound signed arithmetic.
6871
6872 2011-07-24  Bruno Haible  <bruno@clisp.org>
6873
6874         close: No longer depend on module 'fclose'.
6875         * modules/close (Depends-on): Remove fclose.
6876         * NEWS: Mention the change.
6877         Suggested by Sam Steingold <sds@gnu.org>.
6878
6879 2011-07-24  Bruno Haible  <bruno@clisp.org>
6880
6881         fsusage: Enable large volume support on AIX >= 5.2.
6882         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6883         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6884         instead of STAT_STATVFS.
6885         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6886
6887         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6889         f_blocks field only on MacOS X.
6890
6891         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6893         * modules/fsusage (Depends-on): Add largefile.
6894
6895 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6896
6897         * README: Modernize discussion of signed integers.
6898         Assuming overflow wraparound is no longer safe.
6899         Mention ones' complement and signed magnitude.
6900
6901 2011-07-22  Bruno Haible  <bruno@clisp.org>
6902
6903         select tests, pselect tests: Refactor.
6904         * tests/test-select.h: New file, extracted from tests/test-select.c.
6905         (select_fn): New type.
6906         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6907         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6908         test_pipe): Add my_select argument.
6909         (test_function): Renamed from main. Add my_select argument.
6910         * tests/test-select.c: Move most code to tests/test-select.h. Include
6911         test-select.h.
6912         * modules/select-tests (Files): Add tests/test-select.h.
6913         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6914         (my_select, main): New functions.
6915         * modules/pselect-tests (Files): Add tests/test-select.h,
6916         tests/macros.h, tests/signature.h.
6917         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6918         (configure.ac): Check for <sys/wait.h>.
6919
6920 2011-07-22  Bruno Haible  <bruno@clisp.org>
6921
6922         sys_select tests: Check the signature of FD_*.
6923         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6924         signature tests from here...
6925         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6926         here.
6927         * modules/sys_select-tests (Files): Add tests/signature.h.
6928
6929 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6930
6931         largefile: new module, replacing large-inode
6932         PĂ¡draig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6933         * MODULES.html.sh: Add largefile, remove large-inode.
6934         * modules/largefile, m4/largefile.m4: New files.
6935         * modules/large-inode, m4/large-inode.m4: Remove.
6936
6937         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6938         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6939         implementations that use only 32 bits to count blocks.
6940         On typical hosts with 1024-byte blocks, this fails with file
6941         systems as small as 4 TiB.  Problem reported by Herb Wartens
6942         <http://debbugs.gnu.org/9140> and this should also fix a similar
6943         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6944
6945         large-inode: New module
6946         * MODULES.html.sh: Add it.
6947         * modules/large-inode, m4/large-inode.m4: New files.
6948
6949         extensions: Enable extensions on MacOS X 10.5 and later.
6950         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6951
6952 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6953
6954         file-has-acl: use acl_extended_file_nofollow if available
6955         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6956         (acl_extended_file): New macro.
6957         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6958         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6959
6960 2011-07-21  Bruno Haible  <bruno@clisp.org>
6961
6962         Declare system functions in a way that works with C++.
6963         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6964         declare fdopendir as extern "C".
6965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6966         declare frexpl as extern "C".
6967         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6968         declare gai_strerror as extern "C".
6969         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6970         programs, declare gai_strerror as extern "C".
6971         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6972         declare getlogin_r as extern "C".
6973         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6974         as extern "C".
6975         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6976         declare ldexpl as extern "C".
6977         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6978         as extern "C".
6979         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6980         program, declare getmntinfo as extern "C".
6981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6982         stpncpy as extern "C".
6983         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6984         program, declare __xpg_strerror_r as extern "C".
6985         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6986         strndup as extern "C".
6987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6988         declare memset and bzero as extern "C".
6989         Reported by Sam Steingold <sds@gnu.org>.
6990
6991 2011-07-12  Jim Meyering  <meyering@redhat.com>
6992
6993         maint.mk: prohibit inclusion of "verify.h" without use
6994         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6995
6996 2011-07-19  PĂ¡draig Brady  <P@draigBrady.com>
6997
6998         timer-time: A new module to check for timer_settime()
6999         * m4/timer_time.m4: Check for the posix function.
7000         * modules/timer-time: Add the new module.
7001         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7002         Mention it.
7003
7004 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7005             Bruno Haible  <bruno@clisp.org>
7006
7007         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7008         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7009         not defined, assume POSIX threads and look for pthread_sigmask in
7010         $LIBS, without changing $CPPFLAGS.
7011
7012 2011-07-19  Bruno Haible  <bruno@clisp.org>
7013
7014         strstr: Update cross-compilation guess.
7015         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7016         CPUs, guess no, in view of glibc
7017         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7018         Suggested by Eric Blake. Reported by Reuben Thomas.
7019
7020 2011-07-19  PĂ¡draig Brady  <P@draigBrady.com>
7021
7022         getopt-gnu: suppress core dumps from detection code
7023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7024         to suppress core dumps that may well occur on glibc systems.
7025         * modules/getopt-gnu: Depend on nocrash.
7026
7027 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7028
7029         pthread_sigmask: ensure usleep is declared
7030         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7031         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7032
7033 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7034
7035         doc: Document NonStop portability issues.
7036         * doc/posix-functions/sigaction.texi (sigaction):
7037         * doc/posix-headers/signal.texi (signal.h):
7038         Document NonStop.  See Joachim Schmitz in
7039         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7040
7041 2011-07-15  Bruno Haible  <bruno@clisp.org>
7042
7043         ffsl, ffsll: Avoid unportable behaviour.
7044         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7045
7046 2011-07-15  Bruno Haible  <bruno@clisp.org>
7047
7048         ffs: More tests.
7049         * tests/test-ffs.c (NBITS): New macro.
7050         (main): Add more tests.
7051         * tests/test-ffsl.c (NBITS): New macro.
7052         (main): Add more tests.
7053         * tests/test-ffsll.c (NBITS): New macro.
7054         (main): Add more tests.
7055
7056 2011-07-15  Eric Blake  <eblake@redhat.com>
7057
7058         ffsl, ffsll: new modules
7059         * modules/ffsl: New file.
7060         * modules/ffsll: Likewise.
7061         * m4/ffsl.m4: Likewise.
7062         * m4/ffsll.m4: Likewise.
7063         * lib/ffsl.c: Likewise.
7064         * lib/ffsl.h: Likewise.
7065         * lib/ffsll.c: Likewise.
7066         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7067         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7068         * modules/string (Makefile.am): Substitute witnesses.
7069         * lib/strings.in.h (ffsl, ffsll): Declare.
7070         * modules/ffsl-tests: New test file.
7071         * modules/ffsll-tests: Likewise.
7072         * tests/test-ffsl.c: Likewise.
7073         * tests/test-ffsll.c: Likewise.
7074         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7075         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7076         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7077
7078         ffs: fix m4 prerequisite
7079         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7080
7081         ffs: avoid undefined behavior
7082         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7083         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7084         Reported by Bruno Haible.
7085
7086 2011-07-12  Bruno Haible  <bruno@clisp.org>
7087
7088         pthread_sigmask: Rely on module 'threadlib'.
7089         * modules/pthread_sigmask (Depends-on): Add threadlib.
7090         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7091         is defined.
7092
7093 2011-07-12  Bruno Haible  <bruno@clisp.org>
7094
7095         regex: Depend on module 'strcase'.
7096         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7097
7098 2011-07-12  Jim Meyering  <meyering@redhat.com>
7099
7100         warn-on-use: fix typo in file name
7101         * modules/snippet/warn-on-use (Files): Correct file name:
7102         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7103
7104 2011-07-12  Bruno Haible  <bruno@clisp.org>
7105
7106         strings: Document module.
7107         * doc/posix-headers/strings.texi: Mention module 'strings'.
7108
7109 2011-07-12  Bruno Haible  <bruno@clisp.org>
7110
7111         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7112         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7113         (Files, Makefile.am): Update.
7114         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7115         * modules/stdlib (Depends-on): Update.
7116
7117 2011-07-12  Bruno Haible  <bruno@clisp.org>
7118
7119         * NEWS: Mention the changes.
7120
7121         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7122         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7123         (Files, Makefile.am): Update.
7124         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7125         * modules/arpa_inet (Depends-on): Update.
7126         * modules/ctype (Depends-on): Update.
7127         * modules/dirent (Depends-on): Update.
7128         * modules/fcntl-h (Depends-on): Update.
7129         * modules/glob (Depends-on): Update.
7130         * modules/iconv-h (Depends-on): Update.
7131         * modules/inttypes-incomplete (Depends-on): Update.
7132         * modules/langinfo (Depends-on): Update.
7133         * modules/locale (Depends-on): Update.
7134         * modules/math (Depends-on): Update.
7135         * modules/netdb (Depends-on): Update.
7136         * modules/poll-h (Depends-on): Update.
7137         * modules/pty (Depends-on): Update.
7138         * modules/search (Depends-on): Update.
7139         * modules/signal (Depends-on): Update.
7140         * modules/spawn (Depends-on): Update.
7141         * modules/stdio (Depends-on): Update.
7142         * modules/stdlib (Depends-on): Update.
7143         * modules/string (Depends-on): Update.
7144         * modules/strings (Depends-on): Update.
7145         * modules/sys_file (Depends-on): Update.
7146         * modules/sys_ioctl (Depends-on): Update.
7147         * modules/sys_select (Depends-on): Update.
7148         * modules/sys_socket (Depends-on): Update.
7149         * modules/sys_stat (Depends-on): Update.
7150         * modules/sys_time (Depends-on): Update.
7151         * modules/sys_times (Depends-on): Update.
7152         * modules/sys_utsname (Depends-on): Update.
7153         * modules/sys_wait (Depends-on): Update.
7154         * modules/termios (Depends-on): Update.
7155         * modules/time (Depends-on): Update.
7156         * modules/unistd (Depends-on): Update.
7157         * modules/wchar (Depends-on): Update.
7158         * modules/wctype-h (Depends-on): Update.
7159         * MODULES.html.sh (Support for building libraries and executables):
7160         Update.
7161
7162         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7163         * modules/snippet/unused-parameter: Renamed from
7164         modules/unused-parameter.
7165         (Files, Makefile.am): Update.
7166         * build-aux/snippet/unused-parameter.h: Renamed from
7167         build-aux/unused-parameter.h.
7168         * modules/selinux-h (Depends-on): Update.
7169         * modules/unistr/base (Depends-on): Update.
7170         * MODULES.html.sh (Core language properties): Update.
7171
7172         Rename module 'link-warning' to 'snippet/link-warning'.
7173         * modules/snippet/link-warning: Renamed from modules/link-warning.
7174         (Files, Makefile.am): Update.
7175         * build-aux/snippet/link-warning.h: Renamed from
7176         build-aux/link-warning.h.
7177         * MODULES.html.sh (Support for building libraries and executables):
7178         Update.
7179
7180         Rename module 'c++defs' to 'snippet/c++defs'.
7181         * modules/snippet/c++defs: Renamed from modules/c++defs.
7182         (Files, Makefile.am): Update.
7183         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7184         * modules/arpa_inet (Depends-on): Update.
7185         * modules/ctype (Depends-on): Update.
7186         * modules/dirent (Depends-on): Update.
7187         * modules/fcntl-h (Depends-on): Update.
7188         * modules/glob (Depends-on): Update.
7189         * modules/iconv-h (Depends-on): Update.
7190         * modules/langinfo (Depends-on): Update.
7191         * modules/locale (Depends-on): Update.
7192         * modules/math (Depends-on): Update.
7193         * modules/netdb (Depends-on): Update.
7194         * modules/poll-h (Depends-on): Update.
7195         * modules/pty (Depends-on): Update.
7196         * modules/search (Depends-on): Update.
7197         * modules/signal (Depends-on): Update.
7198         * modules/spawn (Depends-on): Update.
7199         * modules/stdio (Depends-on): Update.
7200         * modules/stdlib (Depends-on): Update.
7201         * modules/string (Depends-on): Update.
7202         * modules/strings (Depends-on): Update.
7203         * modules/sys_ioctl (Depends-on): Update.
7204         * modules/sys_select (Depends-on): Update.
7205         * modules/sys_socket (Depends-on): Update.
7206         * modules/sys_stat (Depends-on): Update.
7207         * modules/sys_time (Depends-on): Update.
7208         * modules/sys_wait (Depends-on): Update.
7209         * modules/termios (Depends-on): Update.
7210         * modules/time (Depends-on): Update.
7211         * modules/unistd (Depends-on): Update.
7212         * modules/wchar (Depends-on): Update.
7213         * modules/wctype-h (Depends-on): Update.
7214
7215         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7216         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7217         (Files, Makefile.am): Update.
7218         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7219         * modules/argv-iter (Depends-on): Update.
7220         * modules/arpa_inet (Depends-on): Update.
7221         * modules/dirent (Depends-on): Update.
7222         * modules/fcntl-h (Depends-on): Update.
7223         * modules/fnmatch (Depends-on): Update.
7224         * modules/getopt-posix (Depends-on): Update.
7225         * modules/glob (Depends-on): Update.
7226         * modules/iconv-h (Depends-on): Update.
7227         * modules/inttypes-incomplete (Depends-on): Update.
7228         * modules/locale (Depends-on): Update.
7229         * modules/math (Depends-on): Update.
7230         * modules/netdb (Depends-on): Update.
7231         * modules/search (Depends-on): Update.
7232         * modules/signal (Depends-on): Update.
7233         * modules/spawn (Depends-on): Update.
7234         * modules/stdio (Depends-on): Update.
7235         * modules/stdlib (Depends-on): Update.
7236         * modules/string (Depends-on): Update.
7237         * modules/strings (Depends-on): Update.
7238         * modules/sys_socket (Depends-on): Update.
7239         * modules/sys_stat (Depends-on): Update.
7240         * modules/sys_time (Depends-on): Update.
7241         * modules/sys_times (Depends-on): Update.
7242         * modules/sys_utsname (Depends-on): Update.
7243         * modules/time (Depends-on): Update.
7244         * modules/unistd (Depends-on): Update.
7245         * modules/wchar (Depends-on): Update.
7246         * MODULES.html.sh (Support for building libraries and executables):
7247         Update.
7248
7249 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7250
7251         Improvements on _Noreturn and related modules.
7252
7253         modules/_Exit-tests: test _Noreturn too
7254         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7255         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7256         (main): Use them.
7257
7258         stdnoreturn, stdnoreturn-tests: remove modules
7259         They're not needed here and a bit premature for use elsewhere.  See
7260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7261         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7262         * tests/test-stdnoreturn.c: Remove files.
7263         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7264         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7265         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7266         and using noreturn.
7267         * modules/openat, modules/sigpipe-die, modules/xalloc:
7268         * modules/xmemdup0, modules/xstrtol:
7269         Remove dependency on stdnoreturn.
7270
7271         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7272         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7273         Reparenthesize to avoid GCC warning.
7274         Support Microsoft's syntax.
7275         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7276
7277         _Noreturn-tests: remove module
7278         * modules/_Noreturn-tests: Remove.
7279         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7280         * tests/test-_Noreturn.c: Remove.
7281         * tests/test-stdnoreturn.c: Merge from the old
7282         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7283
7284 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7285
7286         _Noreturn, stdnoreturn, and related modules.
7287
7288         * top/maint.mk: Adjust to new noreturn support.
7289         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7290         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7291
7292         xalloc: use stdnoreturn.h
7293         * lib/xalloc.h: Include <stdnoreturn.h>.
7294         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7295         * modules/xalloc (Depends-on): Add stdnoreturn.
7296
7297         xstrtol: use stdnoreturn.h
7298         * lib/xstrtol.h: Include <stdnoreturn.h>.
7299         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7300         * modules/xstrtol (Depends-on): Add stdnoreturn.
7301
7302         xmemdup0: use stdnoreturn.h
7303         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7304         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7305         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7306
7307         sigpipe-die: use stdnoreturn.h
7308         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7309         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7310         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7311
7312         openat: use stdnoreturn.h
7313         * lib/openat.h: Include <stdnoreturn.h>.
7314         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7315         * modules/openat (Depends-on): Add stdnoreturn.
7316
7317         * lib/openat-die.c (openat_save_fail): Modernize comment.
7318
7319         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7320
7321         * lib/glthread/thread.h: Modernize comment.
7322
7323         obstack: use _Noreturn
7324         * lib/obstack.c (__attribute__): Remove macro.
7325         (print_and_abort): Use _Noreturn.
7326
7327         c-stack: use _Noreturn
7328         * lib/c-stack.c (die, overflow_handler, segv_handler):
7329         Use _Noreturn rather than __attribute__((noreturn)).
7330
7331         argmatch-tests, exclude_tests: use _Noreturn
7332         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7333         Remove.
7334         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7335
7336         stdlib: use _Noreturn
7337         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7338         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7339         * modules/stdlib (Depends-on): Add _Noreturn.
7340         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7341
7342         stdnoreturn-tests: new module
7343         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7344
7345         stdnoreturn: new module
7346         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7347         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7348
7349         _Noreturn-tests: new module
7350         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7351
7352         _Noreturn: new module
7353         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7354         New section, mentioning it.
7355         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7356
7357         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7358
7359 2011-07-11  Eric Blake  <eblake@redhat.com>
7360
7361         ffs: new module
7362         * modules/ffs: New file.
7363         * m4/ffs.m4: Likewise.
7364         * lib/ffs.c: Likewise.
7365         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7366         * modules/strings (Makefile.am): Substitute witness.
7367         (Depends-on): Add c++defs.
7368         * lib/strings.in.h (ffs): Declare.
7369         * modules/ffs-tests: New test file.
7370         * tests/test-ffs.c: Test new module.
7371         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7372         * doc/posix-functions/ffs.texi (ffs): Likewise.
7373
7374         regex: avoid compiler warning
7375         * lib/regex.c (includes): Include <strings.h>, for use of
7376         strcasecmp in regcomp.c.
7377         Reported by Joachim Schmitz.
7378
7379 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7380
7381         stdint: respect system's intmax_t if INTMAX_MAX
7382         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7383         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7384         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7385         long but int64_t is long long, and where we will clash with the
7386         system intmax_t if we override it.  See
7387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7388         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7389         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7390         similarly for UINTMAX_C.
7391
7392 2011-07-08  Bruno Haible  <bruno@clisp.org>
7393
7394         pthread_sigmask tests: Avoid a compiler warning.
7395         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7396         non-zero.
7397
7398         sigprocmask tests: A better way to avoid a compiler warning.
7399         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7400         (main): Complain if system() returns non-zero.
7401         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7402
7403 2011-07-08  Bruno Haible  <bruno@clisp.org>
7404
7405         pthread_sigmask: Work around IRIX bug.
7406         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7407         bug.
7408         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7409         there may be unblocked pending signals.
7410         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7411
7412 2011-07-08  Bruno Haible  <bruno@clisp.org>
7413
7414         pthread_sigmask: Work around Cygwin bug.
7415         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7416         bug.
7417         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7418         the system's pthread_sigmask function.
7419         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7420
7421 2011-07-08  Bruno Haible  <bruno@clisp.org>
7422
7423         pthread_sigmask: Work around bug in single-threaded implementation.
7424         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7425         FreeBSD, HP-UX, Solaris bug.
7426         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7427         * lib/pthread_sigmask.c: Include <stddef.h>.
7428         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7429         the system's pthread_sigmask function.
7430         * modules/pthread_sigmask (configure.ac): Invoke
7431         gl_PREREQ_PTHREAD_SIGMASK.
7432         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7433         HP-UX, Solaris.
7434
7435 2011-07-08  Eric Blake  <eblake@redhat.com>
7436
7437         test-sigprocmask: avoid compiler warning
7438         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7439         * tests/test-sigprocmask.c (main): Use it to silence warning.
7440         Reported by Jim Meyering.
7441
7442         test-snprintf: avoid compiler warning
7443         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7444         * tests/test-vsnprintf.c (main): Likewise.
7445         Reported by Jim Meyering.
7446
7447 2011-07-08  Bruno Haible  <bruno@clisp.org>
7448
7449         Tests for module 'pthread_sigmask'.
7450         * modules/pthread_sigmask-tests: New file.
7451         * tests/test-pthread_sigmask1.c: New file, based on
7452         tests/test-sigprocmask.c.
7453         * tests/test-pthread_sigmask2.c: New file.
7454
7455 2011-07-08  Jim Meyering  <meyering@redhat.com>
7456
7457         test-getopt.h: avoid warning about an unused variable
7458         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7459
7460 2011-07-07  Jim Meyering  <meyering@redhat.com>
7461
7462         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7463         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7464         now that it no longer contains leading TABs.
7465         Remove unused "url=FIXME" statement.
7466
7467 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7468
7469         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7470         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7471         When gl_THREADLIB is not in use, assume that the POSIX sematics
7472         are desired.  This is better for Emacs, which uses POSIX semantics
7473         on GNUish and/or POSIXish platforms, and does not use threads at
7474         all otherwise.
7475
7476         pthread_sigmask: fix typo when testing for libraries
7477         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7478         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7479
7480 2011-07-08  Eric Blake  <eblake@redhat.com>
7481
7482         fts: introduce FTS_NOATIME
7483         * lib/fts_.h (FTS_NOATIME): New bit flag.
7484         (FTS_OPTIONMASK): Adjust.
7485         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7486         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7487
7488 2011-07-08  Bruno Haible  <bruno@clisp.org>
7489
7490         Tests for module 'thread'.
7491         * modules/thread-tests: New file.
7492         * tests/test-thread_self.c: New file.
7493         * tests/test-thread_create.cc: New file.
7494
7495 2011-07-08  Bruno Haible  <bruno@clisp.org>
7496
7497         thread: Avoid gcc warnings when using gl_thread_self().
7498         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7499         'void *'.
7500         (gl_thread_self_pointer): Update.
7501
7502 2011-07-07  Bruno Haible  <bruno@clisp.org>
7503
7504         signal-c++-tests: Check declaration of pthread_sigmask.
7505         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7506         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7507         $(LIB_PTHREAD_SIGMASK).
7508
7509 2011-07-07  Bruno Haible  <bruno@clisp.org>
7510
7511         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7512         * lib/signal.in.h (pthread_sigmask): Override if
7513         REPLACE_PTHREAD_SIGMASK is 1.
7514         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7515         REPLACE_PTHREAD_SIGMASK.
7516         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7517         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7518         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7519         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7520         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7521
7522 2011-07-07  Bruno Haible  <bruno@clisp.org>
7523
7524         pthread_sigmask: Ensure declaration in <signal.h>.
7525         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7526         include <pthread.h>.
7527         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7528         problem.
7529
7530 2011-07-07  Bruno Haible  <bruno@clisp.org>
7531
7532         pthread_sigmask: Document the module.
7533         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7534
7535 2011-07-07  Bruno Haible  <bruno@clisp.org>
7536
7537         pthread_sigmask: Follow gnulib conventions.
7538         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7539         gl_PTHREAD_SIGMASK.
7540         * modules/pthread_sigmask (configure.ac): Update.
7541
7542 2011-07-07  Bruno Haible  <bruno@clisp.org>
7543
7544         pthread_sigmask: Make declaration C++ safe.
7545         * lib/signal.in.h: In two special conditions, just do an #include_next.
7546         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7547         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7548         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7549         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7550         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7551         not REPLACE_PTHREAD_MASK.
7552         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7553         not REPLACE_PTHREAD_MASK.
7554         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7555
7556 2011-07-07  Bruno Haible  <bruno@clisp.org>
7557
7558         pthread_sigmask: Fix return value.
7559         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7560         * lib/pthread_sigmask.c: New file.
7561         * modules/pthread_sigmask (Files): Add it.
7562         (configure.ac): Invoke AC_LIBOBJ.
7563
7564 2011-07-07  Eric Blake  <eblake@redhat.com>
7565
7566         getopt: more portable argv creation
7567         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7568         const, use char arrays rather than strings.
7569         Suggested by Paul Eggert.
7570
7571 2011-07-07  Bruno Haible  <bruno@clisp.org>
7572
7573         Tests for module 'sigprocmask'.
7574         * modules/sigprocmask-tests: New file.
7575         * tests/test-sigprocmask.c: New file.
7576
7577 2011-07-07  Bruno Haible  <bruno@clisp.org>
7578
7579         float tests: Tweak.
7580         * tests/test-float.c (main): Tweak skip message.
7581
7582 2011-07-07  Eric Blake  <eblake@redhat.com>
7583
7584         getopt: avoid compiler warning during configure
7585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7586         assigning string literals to non-const pointer.
7587
7588         getopt-gnu: avoid crash in glibc getopt
7589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7590         * tests/test-getopt.h (test_getopt): Enhance test.
7591         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7592         * doc/posix-functions/getopt.texi (getopt): Document it.
7593         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7594         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7595         Likewise.
7596
7597 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7598
7599         getopt: handle W; without long options in getopt [BZ #12922]
7600         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7601         but no long options are defined, just return 'W'.
7602
7603 2011-07-07  Bruno Haible  <bruno@clisp.org>
7604
7605         Avoid literal tabs.
7606         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7607         variable containing a tab instead of a literal tab.
7608         Reported by Jim Meyering.
7609
7610 2011-07-07  Bruno Haible  <bruno@clisp.org>
7611
7612         Comments.
7613         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7614
7615 2011-07-06  Bruno Haible  <bruno@clisp.org>
7616
7617         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7618         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7619         <winsock2.h>.
7620         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7621         lib/sys_socket.in.h.
7622         (close, gethostname): Hide declarations from <winsock2.h>.
7623         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7624         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7625         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7626         (select): Don't override if gnulib's <sys/select.h> was already
7627         included.
7628         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7629         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7630         setsockopt, shutdown, select): Tweak indentation.
7631
7632 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7633
7634         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7635         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7636         in an application that does not use the sys_select module.
7637
7638 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7639
7640         poll: do not return 0 on timeout=-1
7641         * lib/poll.c: Loop with yield if no events occured
7642
7643 2011-07-06  Eric Blake  <eblake@redhat.com>
7644
7645         pthread_sigmask: always replace when not using pthread
7646         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7647         replacement when using some threading other than pthread.  Fix
7648         logic bug.
7649
7650 2011-07-06  Bruno Haible  <bruno@clisp.org>
7651
7652         Comments.
7653         * m4/printf.m4: Update comments about mingw.
7654
7655 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7656
7657         sys_select: define sigset_t more portably
7658         * lib/sys_select.in.h: Always include <sys/types.h>, since
7659         we now need sigset_t and mingw defines it there.
7660         Include <signal.h> before split inclusion guard, to avoid
7661         mishaps on Solaris, whose <signal.h> eventually includes us.
7662         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7663         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7664         which come from ...
7665         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7666         gl_CHECK_TYPE_SIGSET_T.
7667         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7668         does the real work.
7669         * modules/sys_select (Depends-on): Add 'signal'.
7670
7671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7672         Suggested by Bruno Haible.
7673
7674         pselect: Use pthread_sigmask, not sigprocmask.
7675         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7676         multithreaded apps better than sigprocmask does.
7677         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7678         sigprocmask directly.
7679
7680 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7681
7682         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7683         Don't #undef,  since we don't need any underlying pselect.
7684         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7685         (Depends-on): Add select.
7686         (Link): Add $(LIBSOCKET).
7687         These changes suggested by Bruno Haible.
7688
7689         pselect: document better
7690         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7691         * doc/posix-functions/pselect.texi (pselect): Document new module.
7692
7693         pthread_sigmask: new module
7694         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7695         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7696         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7697         This is done only as a macro; I don't know how well that'll
7698         work for C++.  Move <sys/types.h> include before the include_next,
7699         to avoid mishap on Solaris.
7700         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7701         * modules/signal (Makefile.am): Substitute the check's results.
7702         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7703
7704         test-pselect: new module
7705         * modules/pselect-tests, tests/test-pselect.c: New files.
7706         * tests/test-select.c, tests/test-sys_select-c++.cc:
7707         If TEST_PSELECT is defined, test pselect instead of testing select.
7708
7709         * tests/test-sys_select.c (sigset_t): Test for it, too.
7710         Suggested by Bruno Haible.
7711
7712 2011-07-05  Eric Blake  <eblake@redhat.com>
7713
7714         snprintf: guarantee %1$d, for libintl
7715         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7716         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7717         * doc/posix-functions/snprintf.texi (snprintf): Update.
7718         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7719         * tests/test-snprintf.c (main): Enhance test.
7720         * tests/test-vsnprintf.c (main): Likewise.
7721
7722 2011-07-05  Jim Meyering  <meyering@redhat.com>
7723
7724         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7725         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7726         per Bruno's request, to accommodate this idiom (no space after "#")
7727         even when the function is inside an #if block:
7728         char *
7729         gets (char *s)
7730         #undef gets
7731         {
7732           ...
7733         }
7734
7735 2011-07-04  Jim Meyering  <meyering@redhat.com>
7736
7737         maint: indent with spaces, not TABs, and add a rule to check this
7738         * tests/test-userspec.c: Indent with spaces, not TABs.
7739         * tests/test-argp.c: Likewise.
7740         * tests/test-c-stack2.sh: Likewise.
7741         * tests/test-parse-duration.sh: Likewise
7742         * m4/strtod.m4: Likewise.
7743         * m4/alloca.m4: Likewise.
7744         * m4/pselect.m4: Likewise.
7745         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7746
7747 2011-07-03  Jim Meyering  <meyering@redhat.com>
7748
7749         maint.mk: correct omissions in prohibit_argmatch_without_use check
7750         This rule would mistakenly report that argmatch.h is included without
7751         use even when both the argmatch and invalid_arg macro were used.
7752         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7753         of argmatch and invalid_arg.
7754
7755 2011-07-03  Bruno Haible  <bruno@clisp.org>
7756
7757         Comments about EINTR.
7758         * lib/safe-read.h: Explain the purpose of this module.
7759         * lib/safe-write.h: Likewise.
7760         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7761         module.
7762         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7763         module.
7764         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7765
7766 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7767
7768         xnanosleep: Rewrite to use new dtotimespec module.
7769         It has the conversion code that used to be in xnanosleep.
7770         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7771         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7772         (TIME_T_MAX): Remove.
7773         (xnanosleep): Rewrite in terms of dtotimespec.
7774         * modules/xnanosleep (Depends-on): Add dtotimespec.
7775         Remove intprops, stdbool.
7776
7777         timespec-add, timespec-sub: new modules
7778         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7779         * lib/timespec-add.c, lib/timespec-sub.c:
7780         * modules/timespec-add, modules/timespec-sub: New files.
7781
7782         dtotimespec: new module
7783         * lib/timespec.h (dtotimespec): New decl.
7784         * lib/dtotimespec.c, modules/dtotimespec: New files.
7785
7786         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7787
7788         pselect: new module
7789         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7790         (pselect): New decls.
7791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7792         since the standard pselect decl uses 'restrict'.
7793         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7794         HAVE_PSELECT, REPLACE_PSELECT.
7795         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7796         HAVE_PSELECT, REPLACE_PSELECT.
7797         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7798
7799         sys_select: don't depend on sys_socket
7800         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7802         This fix works on GNU and GNU-like platforms, but has not been tested
7803         on native Windows.
7804         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7805         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7806         gl_HEADER_SYS_SOCKET.
7807         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7808         gl_PREREQ_SYS_H_WINSOCK2.
7809
7810 2011-06-29  Eric Blake  <eblake@redhat.com>
7811
7812         pipe2: fix C89 compile problem
7813         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7814         Reported by Bruno Haible.
7815
7816         pipe, pipe2: don't corrupt fd on error
7817         * lib/pipe.c (pipe): Leave fd unchanged on error.
7818         * lib/pipe2.c (pipe2): Likewise.
7819         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7820         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7821
7822 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7823
7824         mmap-anon: do not use regular expressions inadvertently
7825         * m4/mmap-anon.m4: Remove trailing period from strings sought
7826         in the output.
7827
7828 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7829
7830         nanosleep: fix integer overflow problem
7831         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7832         arithmetic wraps around on overflow.
7833
7834         nanosleep: simplify carrying
7835         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7836         first call to the underyling nanosleep, not for the last one.
7837         This doesn't fix any bugs, but it simplifies the computation of
7838         the remaining delay.  Found while auditing integer overflow issues.
7839
7840         dup2: remove test for existence of fcntl
7841         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7842         "#if HAVE_FCNTL", in the configure-time test program.
7843         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7844         and therefore speeds up "configure" a bit.  Found while
7845         adding the dup2 module to Emacs.
7846
7847 2011-06-24  Eric Blake  <eblake@redhat.com>
7848
7849         maint.mk: enhance useless header checks
7850         * top/maint.mk (_sc_header_without_use): Check both include
7851         styles.
7852         (sc_prohibit_assert_without_use)
7853         (sc_prohibit_close_stream_without_use)
7854         (sc_prohibit_getopt_without_use)
7855         (sc_prohibit_quotearg_without_use)
7856         (sc_prohibit_quote_without_use)
7857         (sc_prohibit_long_options_without_use)
7858         (sc_prohibit_inttostr_without_use)
7859         (sc_prohibit_ignore_value_without_use)
7860         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7861         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7862         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7863         (sc_prohibit_hash_pjw_without_use)
7864         (sc_prohibit_safe_read_without_use)
7865         (sc_prohibit_argmatch_without_use)
7866         (sc_prohibit_canonicalize_without_use)
7867         (sc_prohibit_root_dev_ino_without_use)
7868         (sc_prohibit_openat_without_use)
7869         (sc_prohibit_c_ctype_without_use)
7870         (sc_prohibit_signal_without_use)
7871         (sc_prohibit_stdio--_without_use)
7872         (sc_prohibit_stdio-safer_without_use)
7873         (sc_prohibit_strings_without_use)
7874         (sc_prohibit_intprops_without_use)
7875         (sc_prohibit_stddef_without_use)
7876         (sc_prohibit_xfreopen_without_use): Update clients.
7877
7878 2011-06-24  Jim Meyering  <meyering@redhat.com>
7879
7880         syntax-check: keep one maint.mk rule in sync with its header
7881         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7882         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7883         I prefer to avoid temporary files here, so use <(...), but that
7884         is not supported by /bin/sh, so...
7885         (SHELL): Define to /bin/bash.
7886
7887 2011-06-24  Eric Blake  <eblake@redhat.com>
7888
7889         maint.mk: update sc_prohibit_intprops_without_use
7890         * top/maint.mk (_intprops_names): Match recent changes.
7891
7892 2011-06-24  Bruno Haible  <bruno@clisp.org>
7893
7894         strerror-override: No-op tweak.
7895         * lib/strerror-override.h (strerror_override): Reorder conditions,
7896         for consistency with lib/strerror-override.c.
7897
7898 2011-06-23  Eric Blake  <eblake@redhat.com>
7899
7900         maint.mk: test further PATH_MAX issues
7901         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7902         (sc_prohibit_path_max_allocation): ...and also test alloca.
7903         Suggested by Jim Meyering.
7904
7905 2011-06-22  Eric Blake  <eblake@redhat.com>
7906
7907         maint.mk: add syntax-check to avoid char[PATH_MAX]
7908         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7909
7910         stat: be robust to PATH_MAX definition
7911         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7912         * modules/stat (Depends-on): Add verify.
7913
7914         link: work around IRIX bug
7915         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7916         * lib/link.c (rpl_link): Work around it.
7917         * tests/test-link.h (test_link): Enhance test.
7918         * doc/posix-functions/link.texi (link): Document the bug.
7919
7920         getopt: silence clang warning
7921         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7922         dereference.
7923         Reported by Gustavo Martin Domato.
7924
7925 2011-06-22  Jim Meyering  <meyering@redhat.com>
7926
7927         bootstrap: do not insert a blank line into each .gitignore file
7928         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7929
7930 2011-06-21  Eric Blake  <eblake@redhat.com>
7931
7932         perror: test for output mismatch
7933         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7934         perror on IRIX.
7935
7936         strerror_r: fix OpenBSD behavior on out-of-range
7937         * lib/strerror_r.c (strerror_r): Always use maximal string.
7938         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7939
7940         strerror_r: fix OpenBSD behavior on 0
7941         * lib/strerror-override.c (strerror_override): Also override 0
7942         when needed.
7943         * lib/strerror-override.h (strerror_override): Likewise.
7944         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7945         earlier.
7946         * lib/strerror_r.c (strerror_r): Likewise.
7947         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7948         behavior...
7949         (gl_FUNC_STRERROR_0): ...into new macro.
7950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7951         is overridden.
7952         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7953         * modules/strerror-override (Files): Add strerror.m4.
7954         (configure.ac): Also provide override for 0 when needed.
7955         * doc/posix-functions/strerror.texi (strerror): Document this.
7956         * doc/posix-functions/perror.texi (perror): Likewise.
7957
7958         perror: adjust array size
7959         * modules/perror (Depends-on): Add strerror-override.
7960         * lib/perror.c (perror): Use it to avoid magic number.
7961
7962         strerror-override: reduce size
7963         * lib/strerror-override.c (strerror_override): Use fewer lines.
7964
7965 2011-06-20  Bruno Haible  <bruno@clisp.org>
7966
7967         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7968         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7969
7970 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7971
7972         alloca: port to compilers that can optimize like GCC 4.6.0
7973         * lib/alloca.c (find_stack_direction): New signature, taken from
7974         Autoconf git.  This works with GCC 4.6.0.  This code should never
7975         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7976         be used with other compilers that optimize as well as GCC 4.6.0 does.
7977         (alloca): Adjust to new signature.
7978         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7979         New macro, which patches Autoconf in a similar way.
7980
7981         c-stack: stop worrying about stack direction
7982         * lib/c-stack.c (find_stack_direction): Remove.
7983         (segv_handler): Don't worry about stack direction growth, as it's
7984         too much of a pain to configure this correctly, given how compilers
7985         are optimizing-away our stack-growth detection code.  Instead, assume
7986         that any access to just before or just after the stack is OK.
7987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7988         Don't require AC_FUNC_ALLOCA; no longer needed.
7989
7990 2011-06-20  Eric Blake  <eblake@redhat.com>
7991
7992         test-stat: don't allocate PATH_MAX bytes
7993         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7994         PATH_MAX-sized buffer.
7995         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7996         * modules/stat-tests (Depends-on): Likewise.
7997         * tests/test-fstatat.c (includes): Drop pathmax.h.
7998         * tests/test-stat.c (includes): Likewise.
7999         Reported by Bruno Haible.
8000
8001 2011-06-20  Bruno Haible  <bruno@clisp.org>
8002
8003         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8004         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8005         * lib/float.c: New file.
8006         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8007         REPLACE_FLOAT_LDBL.
8008         * modules/float (Files): Add lib/float.c.
8009         (configure.ac): Invoke AC_LIBOBJ.
8010         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8011
8012 2011-06-20  Bruno Haible  <bruno@clisp.org>
8013
8014         Tests for module 'float'.
8015         * modules/float-tests: New file.
8016         * tests/test-float.c: New file.
8017
8018 2011-06-19  Bruno Haible  <bruno@clisp.org>
8019
8020         isinf: Coding style.
8021         * lib/isinf.c: Use GNU coding style.
8022
8023 2011-06-19  Bruno Haible  <bruno@clisp.org>
8024
8025         linkat test: Avoid test failure on AIX 7.1.
8026         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8027         * tests/test-link.h (test_link): Likewise.
8028
8029 2011-06-19  Bruno Haible  <bruno@clisp.org>
8030
8031         pread test: Avoid test failure on OpenBSD 4.9.
8032         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8033
8034 2011-06-19  Bruno Haible  <bruno@clisp.org>
8035
8036         sprintf-posix: Fix test failure on AIX 7.1.
8037         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8038         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8039         on AIX.
8040         * doc/posix-functions/fprintf.texi: Likewise.
8041         * doc/posix-functions/printf.texi: Likewise.
8042         * doc/posix-functions/snprintf.texi: Likewise.
8043         * doc/posix-functions/sprintf.texi: Likewise.
8044         * doc/posix-functions/vdprintf.texi: Likewise.
8045         * doc/posix-functions/vfprintf.texi: Likewise.
8046         * doc/posix-functions/vprintf.texi: Likewise.
8047         * doc/posix-functions/vsnprintf.texi: Likewise.
8048         * doc/posix-functions/vsprintf.texi: Likewise.
8049
8050 2011-06-19  Bruno Haible  <bruno@clisp.org>
8051
8052         roundl-ieee: Fix test failure on AIX 7.1.
8053         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8054         * doc/posix-functions/roundl.texi: Mention problem with negative
8055         arguments.
8056
8057 2011-06-19  Bruno Haible  <bruno@clisp.org>
8058
8059         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8060         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8061         * doc/posix-functions/round.texi: Mention problem with negative
8062         arguments.
8063         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8064
8065 2011-06-19  Bruno Haible  <bruno@clisp.org>
8066
8067         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8068         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8069         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8070         * doc/posix-functions/roundf.texi: Mention problem with negative
8071         arguments.
8072         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8073
8074 2011-06-19  Bruno Haible  <bruno@clisp.org>
8075
8076         ceilf-ieee: Work around bug on MacOS X 10.5.
8077         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8078
8079         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8080         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8081         IEEE compliant, avoid compiler optimizations.
8082         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8083         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8084         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8085         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8086         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8087         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8088         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8090         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8091         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8092
8093 2011-06-19  Bruno Haible  <bruno@clisp.org>
8094
8095         ceilf-ieee: Work around bug on AIX 7.1.
8096         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8097         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8098
8099 2011-06-19  Bruno Haible  <bruno@clisp.org>
8100
8101         ceil-ieee: Work around bug on AIX 7.1.
8102         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8103         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8104
8105 2011-06-18  Bruno Haible  <bruno@clisp.org>
8106
8107         fsync test: Avoid test failure on MacOS X and AIX.
8108         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8109         EINVAL.
8110
8111 2011-06-18  Bruno Haible  <bruno@clisp.org>
8112
8113         openat, fdopendir tests: Fix link errors.
8114         * modules/openat-tests (Depends-on): Add progname.
8115         * modules/fdopendir-tests (Depends-on): Likewise.
8116         * tests/test-fchownat.c: Include progname.h.
8117         (main): Call set_program_name.
8118         * tests/test-fstatat.c: Include progname.h.
8119         (main): Call set_program_name.
8120         * tests/test-mkdirat.c: Include progname.h.
8121         (main): Call set_program_name.
8122         * tests/test-openat.c: Include progname.h.
8123         (main): Call set_program_name.
8124         * tests/test-unlinkat.c: Include progname.h.
8125         (main): Call set_program_name.
8126         * tests/test-fdopendir.c: Include progname.h.
8127         (main): Call set_program_name.
8128
8129 2011-06-18  Bruno Haible  <bruno@clisp.org>
8130
8131         Doc update.
8132         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8133         HP-UX.
8134         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8135
8136 2011-06-18  Bruno Haible  <bruno@clisp.org>
8137
8138         getcwd tests: Avoid compilation error on HP-UX 11.31.
8139         * modules/getcwd-tests (Depends-on): Add pathmax.
8140         * tests/test-getcwd.c: Include pathmax.h.
8141
8142 2011-06-18  Bruno Haible  <bruno@clisp.org>
8143
8144         isfinite, isinf: Fix link error on AIX 6 and 7.
8145         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8146         needed, also test the macro with a 'float' argument.
8147         * m4/isinf.m4 (gl_ISINF): Likewise.
8148
8149 2011-06-18  Bruno Haible  <bruno@clisp.org>
8150
8151         getloadavg: Don't clobber LIBS. Regression from previous commit.
8152         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8153         AC_CHECK_LIB from here...
8154         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8155         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8156         gl_func_getloadavg_done.
8157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8158
8159 2011-06-18  Bruno Haible  <bruno@clisp.org>
8160
8161         clean-temp: Improve documentation.
8162         * lib/clean-temp.h: Explain better how to use this module.
8163         Reported by John Darrington <john@darrington.wattle.id.au>.
8164
8165 2011-06-17  Bruno Haible  <bruno@clisp.org>
8166
8167         pread, pwrite: Avoid cc warning on AIX.
8168         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8169         (pwrite): Likewise.
8170
8171 2011-06-17  Bruno Haible  <bruno@clisp.org>
8172
8173         spawn-pipe tests: Fix link error.
8174         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8176
8177 2011-06-17  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests: Remove unnecessary dependency.
8180         * modules/canonicalize-tests (Depends-on): Remove progname.
8181         * modules/chown-tests (Depends-on): Likewise.
8182         * modules/dirname-tests (Depends-on): Likewise.
8183         * modules/fdopendir-tests (Depends-on): Likewise.
8184         * modules/fdutimensat-tests (Depends-on): Likewise.
8185         * modules/hash-tests (Depends-on): Likewise.
8186         * modules/lchown-tests (Depends-on): Likewise.
8187         * modules/linkat-tests (Depends-on): Likewise.
8188         * modules/renameat-tests (Depends-on): Likewise.
8189         * modules/spawn-pipe-tests (Depends-on): Likewise.
8190         * modules/utimensat-tests (Depends-on): Likewise.
8191
8192 2011-06-17  Bruno Haible  <bruno@clisp.org>
8193
8194         spawn-pipe tests: Fix link error.
8195         * tests/test-spawn-pipe-child.c: Undefine fflush.
8196
8197 2011-06-17  Bruno Haible  <bruno@clisp.org>
8198
8199         Fix tests link errors.
8200         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8201         * modules/chown-tests (Makefile.am): Don't link test-chown with
8202         LIBINTL.
8203         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8204         LIBINTL.
8205         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8206         LIBINTL.
8207         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8208         LIBINTL.
8209
8210 2011-06-16  Bruno Haible  <bruno@clisp.org>
8211
8212         crypto/gc-sha1: Fix recent regression.
8213         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8214         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8215
8216         crypto/gc-md5: Fix recent regression.
8217         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8218
8219         crypto/gc-md4: Fix recent regression.
8220         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8221         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8222
8223         crypto/gc-arctwo: Fix recent regression.
8224         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8225         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8226
8227         crypto/gc-rijndael: Fix recent regression.
8228         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8229         (configure.ac): Invoke AC_LIBOBJ here.
8230         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8232
8233         crypto/gc-hmac-sha1: Fix recent regression.
8234         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8235         (configure.ac): Invoke AC_LIBOBJ here.
8236         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8238
8239         crypto/gc-hmac-md5: Fix recent regression.
8240         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8241         (configure.ac): Invoke AC_LIBOBJ here.
8242         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8244
8245         crypto/gc-des: Fix recent regression.
8246         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8247         (configure.ac): Invoke AC_LIBOBJ here.
8248         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8250
8251         crypto/gc-arcfour: Fix recent regression.
8252         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8253         (configure.ac): Invoke AC_LIBOBJ here.
8254         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8256
8257 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8258
8259         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8260         After the 2011-05-21 change, this macro requires
8261         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8262         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8263
8264 2011-06-16  Bruno Haible  <bruno@clisp.org>
8265
8266         fprintftime: Move AC_LIBOBJ invocations to module description.
8267         * m4/fprintftime.m4: Remove file.
8268         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8269         (configure.ac): Remove gl_FPRINTFTIME call.
8270         (Makefile.am): Augment lib_SOURCES.
8271         Reported by Jim Meyering.
8272
8273 2011-06-16  Bruno Haible  <bruno@clisp.org>
8274
8275         tmpfile-safer: Finish 2011-05-23 commit.
8276         * m4/stdio-safer.m4: Really remove file.
8277         Reported by Jim Meyering.
8278
8279 2011-06-16  Bruno Haible  <bruno@clisp.org>
8280
8281         syntax-check: Fix typo.
8282         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8283         printf-posix.m4.
8284         Reported by Jim Meyering.
8285
8286 2011-06-13  Jim Meyering  <meyering@redhat.com>
8287
8288         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8289         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8290
8291 2011-05-23  Bruno Haible  <bruno@clisp.org>
8292
8293         yesno: Move AC_LIBOBJ invocations to module description.
8294         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8295         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8296
8297 2011-05-23  Bruno Haible  <bruno@clisp.org>
8298
8299         xstrtol: Move AC_LIBOBJ invocations to module description.
8300         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8301         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8302
8303 2011-05-23  Bruno Haible  <bruno@clisp.org>
8304
8305         xstrtold: Move AC_LIBOBJ invocations to module description.
8306         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8307         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8308
8309 2011-05-23  Bruno Haible  <bruno@clisp.org>
8310
8311         xstrtod: Move AC_LIBOBJ invocations to module description.
8312         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8313         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8314
8315 2011-05-23  Bruno Haible  <bruno@clisp.org>
8316
8317         xnanosleep: Move AC_LIBOBJ invocations to module description.
8318         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8319         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8320
8321 2011-05-23  Bruno Haible  <bruno@clisp.org>
8322
8323         xgetcwd: Move AC_LIBOBJ invocations to module description.
8324         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8325         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8326
8327 2011-05-23  Bruno Haible  <bruno@clisp.org>
8328
8329         xalloc: Move AC_LIBOBJ invocations to module description.
8330         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8331         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8332
8333 2011-05-23  Bruno Haible  <bruno@clisp.org>
8334
8335         write-any-file: Move AC_LIBOBJ invocations to module description.
8336         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8337         invocation.
8338         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8339
8340 2011-05-23  Bruno Haible  <bruno@clisp.org>
8341
8342         utimens: Move AC_LIBOBJ invocations to module description.
8343         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8344         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8345
8346 2011-05-23  Bruno Haible  <bruno@clisp.org>
8347
8348         utimecmp: Move AC_LIBOBJ invocations to module description.
8349         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8350         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8351
8352 2011-05-23  Bruno Haible  <bruno@clisp.org>
8353
8354         userspec: Move AC_LIBOBJ invocations to module description.
8355         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8356         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8357
8358 2011-05-23  Bruno Haible  <bruno@clisp.org>
8359
8360         unlinkdir: Move AC_LIBOBJ invocations to module description.
8361         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8362         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8363
8364 2011-05-23  Bruno Haible  <bruno@clisp.org>
8365
8366         unistd-safer: Move AC_LIBOBJ invocations to module description.
8367         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8368         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8369
8370 2011-05-23  Bruno Haible  <bruno@clisp.org>
8371
8372         tempname: Move AC_LIBOBJ invocations to module description.
8373         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8374         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8375
8376 2011-05-23  Bruno Haible  <bruno@clisp.org>
8377
8378         strftime: Move AC_LIBOBJ invocations to module description.
8379         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8380         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8381
8382 2011-05-23  Bruno Haible  <bruno@clisp.org>
8383
8384         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8385         * m4/stdlib-safer.m4: Remove file.
8386         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8387         (configure.ac): Remove gl_STDLIB_SAFER call.
8388         (Makefile.am): Augment lib_SOURCES.
8389
8390 2011-05-23  Bruno Haible  <bruno@clisp.org>
8391
8392         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8393         * m4/stdio-safer.m4: Remove file.
8394         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8395         (configure.ac): Remove gl_TMPFILE_SAFER call.
8396         (Makefile.am): Augment lib_SOURCES.
8397
8398 2011-05-23  Bruno Haible  <bruno@clisp.org>
8399
8400         popen-safer: Move AC_LIBOBJ invocations to module description.
8401         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8402         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8403         (configure.ac): Remove gl_POPEN_SAFER call.
8404         (Makefile.am): Augment lib_SOURCES.
8405
8406 2011-05-23  Bruno Haible  <bruno@clisp.org>
8407
8408         freopen-safer: Move AC_LIBOBJ invocations to module description.
8409         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8410         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8411         (configure.ac): Remove gl_FREOPEN_SAFER call.
8412         (Makefile.am): Augment lib_SOURCES.
8413
8414 2011-05-23  Bruno Haible  <bruno@clisp.org>
8415
8416         fopen-safer: Move AC_LIBOBJ invocations to module description.
8417         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8418         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8419         (configure.ac): Remove gl_FOPEN_SAFER call.
8420         (Makefile.am): Augment lib_SOURCES.
8421
8422 2011-05-23  Bruno Haible  <bruno@clisp.org>
8423
8424         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8425         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8426         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8427
8428 2011-05-23  Bruno Haible  <bruno@clisp.org>
8429
8430         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8431         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8432         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8433
8434 2011-05-23  Bruno Haible  <bruno@clisp.org>
8435
8436         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8437         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8438         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8439
8440 2011-05-23  Bruno Haible  <bruno@clisp.org>
8441
8442         settime: Move AC_LIBOBJ invocations to module description.
8443         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8444         * modules/settime (Makefile.am): Augment lib_SOURCES.
8445
8446 2011-05-23  Bruno Haible  <bruno@clisp.org>
8447
8448         savedir: Move AC_LIBOBJ invocations to module description.
8449         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8450         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8451
8452 2011-05-23  Bruno Haible  <bruno@clisp.org>
8453
8454         save-cwd: Move AC_LIBOBJ invocations to module description.
8455         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8456         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8457
8458 2011-05-23  Bruno Haible  <bruno@clisp.org>
8459
8460         same: Move AC_LIBOBJ invocations to module description.
8461         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8462         * modules/same (Makefile.am): Augment lib_SOURCES.
8463
8464 2011-05-23  Bruno Haible  <bruno@clisp.org>
8465
8466         safe-write: Move AC_LIBOBJ invocations to module description.
8467         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8468         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8469         instead of gl_SAFE_WRITE.
8470         (Makefile.am): Augment lib_SOURCES.
8471
8472 2011-05-23  Bruno Haible  <bruno@clisp.org>
8473
8474         safe-read: Move AC_LIBOBJ invocations to module description.
8475         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8476         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8477         of gl_SAFE_READ.
8478         (Makefile.am): Augment lib_SOURCES.
8479
8480 2011-05-23  Bruno Haible  <bruno@clisp.org>
8481
8482         safe-alloc: Move AC_LIBOBJ invocations to module description.
8483         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8484         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8485
8486 2011-05-23  Bruno Haible  <bruno@clisp.org>
8487
8488         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8489         * m4/rijndael.m4: Remove file.
8490         * modules/crypto/rijndael (Files): Remove it.
8491         (configure.ac): Remove gl_RIJNDAEL call.
8492         (Makefile.am): Augment lib_SOURCES.
8493
8494 2011-05-23  Bruno Haible  <bruno@clisp.org>
8495
8496         readtokens: Move AC_LIBOBJ invocations to module description.
8497         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8498         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8499
8500 2011-05-23  Bruno Haible  <bruno@clisp.org>
8501
8502         read-file: Move AC_LIBOBJ invocations to module description.
8503         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8504         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8505         of gl_FUNC_READ_FILE.
8506         (Makefile.am): Augment lib_SOURCES.
8507
8508 2011-05-23  Bruno Haible  <bruno@clisp.org>
8509
8510         quotearg: Move AC_LIBOBJ invocations to module description.
8511         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8512         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8513
8514 2011-05-23  Bruno Haible  <bruno@clisp.org>
8515
8516         quote: Move AC_LIBOBJ invocations to module description.
8517         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8518         * modules/quote (Makefile.am): Augment lib_SOURCES.
8519
8520 2011-05-23  Bruno Haible  <bruno@clisp.org>
8521
8522         posixver: Move AC_LIBOBJ invocations to module description.
8523         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8524         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8525
8526 2011-05-23  Bruno Haible  <bruno@clisp.org>
8527
8528         posixtm: Move AC_LIBOBJ invocations to module description.
8529         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8530         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8531
8532 2011-05-23  Bruno Haible  <bruno@clisp.org>
8533
8534         physmem: Move AC_LIBOBJ invocations to module description.
8535         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8536         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8537
8538 2011-05-23  Bruno Haible  <bruno@clisp.org>
8539
8540         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8541         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8542         invocation.
8543         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8544
8545 2011-05-23  Bruno Haible  <bruno@clisp.org>
8546
8547         mpsort: Move AC_LIBOBJ invocations to module description.
8548         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8549         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8550
8551 2011-05-23  Bruno Haible  <bruno@clisp.org>
8552
8553         modechange: Move AC_LIBOBJ invocations to module description.
8554         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8555         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8556
8557 2011-05-23  Bruno Haible  <bruno@clisp.org>
8558
8559         mkdir-p: Move AC_LIBOBJ invocations to module description.
8560         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8561         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8562
8563 2011-05-23  Bruno Haible  <bruno@clisp.org>
8564
8565         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8566         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8567         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8568
8569 2011-05-23  Bruno Haible  <bruno@clisp.org>
8570
8571         mgetgroups: Move AC_LIBOBJ invocations to module description.
8572         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8573         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8574
8575 2011-05-23  Bruno Haible  <bruno@clisp.org>
8576
8577         memxor: Move AC_LIBOBJ invocations to module description.
8578         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8579         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8580
8581 2011-05-23  Bruno Haible  <bruno@clisp.org>
8582
8583         memcoll: Move AC_LIBOBJ invocations to module description.
8584         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8585         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8586
8587 2011-05-23  Bruno Haible  <bruno@clisp.org>
8588
8589         memcasecmp: Move AC_LIBOBJ invocations to module description.
8590         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8591         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8592
8593 2011-05-23  Bruno Haible  <bruno@clisp.org>
8594
8595         crypto/md5: Move AC_LIBOBJ invocations to module description.
8596         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8597         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8598
8599 2011-05-23  Bruno Haible  <bruno@clisp.org>
8600
8601         crypto/md4: Move AC_LIBOBJ invocations to module description.
8602         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8603         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8604
8605 2011-05-23  Bruno Haible  <bruno@clisp.org>
8606
8607         crypto/md2: Move AC_LIBOBJ invocations to module description.
8608         * m4/md2.m4: Remove file.
8609         * modules/crypto/md2 (Files): Remove it.
8610         (configure.ac): Remove gl_MD2 call.
8611         (Makefile.am): Augment lib_SOURCES.
8612
8613 2011-05-23  Bruno Haible  <bruno@clisp.org>
8614
8615         long-options: Move AC_LIBOBJ invocations to module description.
8616         * m4/long-options.m4: Remove file.
8617         * modules/long-options (Files): Remove it.
8618         (configure.ac): Remove gl_LONG_OPTIONS call.
8619         (Makefile.am): Augment lib_SOURCES.
8620
8621 2011-05-23  Bruno Haible  <bruno@clisp.org>
8622
8623         i-ring: Move AC_LIBOBJ invocations to module description.
8624         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8625         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8626
8627 2011-05-23  Bruno Haible  <bruno@clisp.org>
8628
8629         idcache: Move AC_LIBOBJ invocations to module description.
8630         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8631         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8632
8633 2011-05-23  Bruno Haible  <bruno@clisp.org>
8634
8635         human: Move AC_LIBOBJ invocations to module description.
8636         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8637         * modules/human (Makefile.am): Augment lib_SOURCES.
8638
8639 2011-05-23  Bruno Haible  <bruno@clisp.org>
8640
8641         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8642         * m4/hmac-sha1.m4: Remove file.
8643         * modules/crypto/hmac-sha1 (Files): Remove it.
8644         (configure.ac): Remove gl_HMAC_SHA1 call.
8645         (Makefile.am): Augment lib_SOURCES.
8646
8647 2011-05-23  Bruno Haible  <bruno@clisp.org>
8648
8649         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8650         * m4/hmac-md5.m4: Remove file.
8651         * modules/crypto/hmac-md5 (Files): Remove it.
8652         (configure.ac): Remove gl_HMAC_MD5 call.
8653         (Makefile.am): Augment lib_SOURCES.
8654
8655 2011-05-23  Bruno Haible  <bruno@clisp.org>
8656
8657         hash: Move AC_LIBOBJ invocations to module description.
8658         * m4/hash.m4: Remove file.
8659         * modules/hash (Files): Remove it.
8660         (configure.ac): Remove gl_HASH call.
8661         (Makefile.am): Augment lib_SOURCES.
8662
8663 2011-05-23  Bruno Haible  <bruno@clisp.org>
8664
8665         hard-locale: Move AC_LIBOBJ invocations to module description.
8666         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8667         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8668
8669 2011-05-23  Bruno Haible  <bruno@clisp.org>
8670
8671         getugroups: Move AC_LIBOBJ invocations to module description.
8672         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8673         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8674
8675 2011-05-23  Bruno Haible  <bruno@clisp.org>
8676
8677         gettime: Move AC_LIBOBJ invocations to module description.
8678         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8679         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8680
8681 2011-05-23  Bruno Haible  <bruno@clisp.org>
8682
8683         getndelim2: Move AC_LIBOBJ invocations to module description.
8684         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8685         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8686
8687 2011-05-23  Bruno Haible  <bruno@clisp.org>
8688
8689         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8690         * m4/gc-pbkdf2-sha1.m4: Remove file.
8691         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8692         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8693         (Makefile.am): Augment lib_SOURCES.
8694
8695 2011-05-23  Bruno Haible  <bruno@clisp.org>
8696
8697         fts: Move AC_LIBOBJ invocations to module description.
8698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8699         * modules/fts (configure.ac): ... to here.
8700
8701 2011-05-23  Bruno Haible  <bruno@clisp.org>
8702
8703         file-type: Move AC_LIBOBJ invocations to module description.
8704         * m4/file-type.m4: Remove file.
8705         * modules/file-type (Files): Remove it.
8706         (configure.ac): Remove gl_FILE_TYPE call.
8707         (Makefile.am): Augment lib_SOURCES.
8708
8709 2011-05-23  Bruno Haible  <bruno@clisp.org>
8710
8711         filenamecat*: Respect rules for use of AC_LIBOBJ.
8712         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8713         Remove AC_LIBOBJ invocation.
8714         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8715         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8716
8717 2011-05-23  Bruno Haible  <bruno@clisp.org>
8718
8719         filemode: Move AC_LIBOBJ invocations to module description.
8720         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8721         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8722
8723 2011-05-23  Bruno Haible  <bruno@clisp.org>
8724
8725         openat-safer: Move AC_LIBOBJ invocations to module description.
8726         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8727         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8728
8729 2011-05-23  Bruno Haible  <bruno@clisp.org>
8730
8731         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8732         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8733         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8734
8735 2011-05-23  Bruno Haible  <bruno@clisp.org>
8736
8737         exclude: Move AC_LIBOBJ invocations to module description.
8738         * m4/exclude.m4: Remove file.
8739         * modules/exclude (Files): Remove it.
8740         (configure.ac): Remove gl_EXCLUDE call.
8741         (Makefile.am): Augment lib_SOURCES.
8742
8743 2011-05-23  Bruno Haible  <bruno@clisp.org>
8744
8745         dirname*: Respect rules for use of AC_LIBOBJ.
8746         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8747         invocations.
8748         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8749         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8750
8751 2011-05-23  Bruno Haible  <bruno@clisp.org>
8752
8753         dirent-safer: Move AC_LIBOBJ invocations to module description.
8754         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8755         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8756
8757 2011-05-23  Bruno Haible  <bruno@clisp.org>
8758
8759         crypto/des: Move AC_LIBOBJ invocations to module description.
8760         * m4/des.m4: Remove file.
8761         * modules/crypto/des (Files): Remove it.
8762         (configure.ac): Remove gl_DES call.
8763         (Makefile.am): Augment lib_SOURCES.
8764
8765 2011-05-23  Bruno Haible  <bruno@clisp.org>
8766
8767         cycle-check: Move AC_LIBOBJ invocations to module description.
8768         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8769         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8770
8771 2011-05-23  Bruno Haible  <bruno@clisp.org>
8772
8773         c-strtold: Move AC_LIBOBJ invocations to module description.
8774         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8775         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8776
8777 2011-05-23  Bruno Haible  <bruno@clisp.org>
8778
8779         c-strtod: Move AC_LIBOBJ invocations to module description.
8780         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8781         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8782
8783 2011-05-23  Bruno Haible  <bruno@clisp.org>
8784
8785         crc: Move AC_LIBOBJ invocations to module description.
8786         * m4/crc.m4: Remove file.
8787         * modules/crc (Files): Remove it.
8788         (configure.ac): Remove gl_CRC call.
8789         (Makefile.am): Augment lib_SOURCES.
8790
8791 2011-05-23  Bruno Haible  <bruno@clisp.org>
8792
8793         close-stream: Move AC_LIBOBJ invocations to module description.
8794         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8795         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8796
8797 2011-05-23  Bruno Haible  <bruno@clisp.org>
8798
8799         closeout: Move AC_LIBOBJ invocations to module description.
8800         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8801         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8802
8803 2011-05-23  Bruno Haible  <bruno@clisp.org>
8804
8805         closein: Move AC_LIBOBJ invocations to module description.
8806         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8807         * modules/closein (Makefile.am): Augment lib_SOURCES.
8808
8809 2011-05-23  Bruno Haible  <bruno@clisp.org>
8810
8811         cloexec: Move AC_LIBOBJ invocations to module description.
8812         * m4/cloexec.m4: Remove file.
8813         * modules/cloexec (Files): Remove it.
8814         (configure.ac): Remove gl_CLOEXEC call.
8815         (Makefile.am): Augment lib_SOURCES.
8816
8817 2011-05-23  Bruno Haible  <bruno@clisp.org>
8818
8819         check-version: Move AC_LIBOBJ invocations to module description.
8820         * m4/check-version.m4: Remove file.
8821         * modules/check-version (Files): Remove it.
8822         (configure.ac): Remove gl_CHECK_VERSION call.
8823         (Makefile.am): Augment lib_SOURCES.
8824
8825 2011-05-23  Bruno Haible  <bruno@clisp.org>
8826
8827         chdir-safer: Move AC_LIBOBJ invocations to module description.
8828         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8829         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8830
8831 2011-05-23  Bruno Haible  <bruno@clisp.org>
8832
8833         canonicalize: Move AC_LIBOBJ invocations to module description.
8834         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8835         AC_LIBOBJ invocation.
8836         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8837
8838 2011-05-23  Bruno Haible  <bruno@clisp.org>
8839
8840         canon-host: Move AC_LIBOBJ invocations to module description.
8841         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8842         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8843         instead of gl_CANON_HOST.
8844         (Makefile.am): Augment lib_SOURCES.
8845
8846 2011-05-23  Bruno Haible  <bruno@clisp.org>
8847
8848         backupfile: Move AC_LIBOBJ invocations to module description.
8849         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8850         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8851
8852 2011-05-23  Bruno Haible  <bruno@clisp.org>
8853
8854         argmatch: Move AC_LIBOBJ invocations to module description.
8855         * m4/argmatch.m4: Remove file.
8856         * modules/argmatch (Files): Remove it.
8857         (configure.ac): Remove gl_ARGMATCH call.
8858         (Makefile.am): Augment lib_SOURCES.
8859
8860 2011-05-23  Bruno Haible  <bruno@clisp.org>
8861
8862         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8863         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8864         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8865
8866 2011-05-23  Bruno Haible  <bruno@clisp.org>
8867
8868         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8869         * m4/arcfour.m4: Remove file.
8870         * modules/crypto/arcfour (Files): Remove it.
8871         (configure.ac): Remove gl_ARCFOUR call.
8872         (Makefile.am): Augment lib_SOURCES.
8873
8874 2011-05-22  Bruno Haible  <bruno@clisp.org>
8875
8876         write: Move AC_LIBOBJ invocations to module description.
8877         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8878         * modules/write (configure.ac): ... to here.
8879
8880 2011-05-22  Bruno Haible  <bruno@clisp.org>
8881
8882         wmemset: Move AC_LIBOBJ invocations to module description.
8883         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8884         here...
8885         * modules/wmemset (configure.ac): ... to here.
8886
8887 2011-05-22  Bruno Haible  <bruno@clisp.org>
8888
8889         wmemmove: Move AC_LIBOBJ invocations to module description.
8890         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8891         here...
8892         * modules/wmemmove (configure.ac): ... to here.
8893
8894 2011-05-22  Bruno Haible  <bruno@clisp.org>
8895
8896         wmemcpy: Move AC_LIBOBJ invocations to module description.
8897         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8898         here...
8899         * modules/wmemcpy (configure.ac): ... to here.
8900
8901 2011-05-22  Bruno Haible  <bruno@clisp.org>
8902
8903         wmemcmp: Move AC_LIBOBJ invocations to module description.
8904         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8905         here...
8906         * modules/wmemcmp (configure.ac): ... to here.
8907
8908 2011-05-22  Bruno Haible  <bruno@clisp.org>
8909
8910         wmemchr: Move AC_LIBOBJ invocations to module description.
8911         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8912         here...
8913         * modules/wmemchr (configure.ac): ... to here.
8914
8915 2011-05-22  Bruno Haible  <bruno@clisp.org>
8916
8917         wcswidth: Move AC_LIBOBJ invocations to module description.
8918         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8919         here...
8920         * modules/wcswidth (configure.ac): ... to here.
8921
8922 2011-05-22  Bruno Haible  <bruno@clisp.org>
8923
8924         wcwidth: Respect rules for use of AC_LIBOBJ.
8925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8926         invocation from here...
8927         * modules/wcwidth (configure.ac): ... to here.
8928         (Depends-on): Update conditions.
8929
8930 2011-05-22  Bruno Haible  <bruno@clisp.org>
8931
8932         wctype: Move AC_LIBOBJ invocations to module description.
8933         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8934         invocation from here...
8935         * modules/wctype (configure.ac): ... to here.
8936         (Depends-on): Update conditions.
8937
8938 2011-05-22  Bruno Haible  <bruno@clisp.org>
8939
8940         wctrans: Move AC_LIBOBJ invocations to module description.
8941         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8942         invocation from here...
8943         * modules/wctrans (configure.ac): ... to here.
8944
8945 2011-05-22  Bruno Haible  <bruno@clisp.org>
8946
8947         wctomb: Move AC_LIBOBJ invocations to module description.
8948         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8949         invocations from here...
8950         * modules/wctomb (configure.ac): ... to here.
8951
8952 2011-05-22  Bruno Haible  <bruno@clisp.org>
8953
8954         wctob: Move AC_LIBOBJ invocations to module description.
8955         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8956         gl_PREREQ_WCTOB invocations from here...
8957         * modules/wctob (configure.ac): ... to here.
8958         (Depends-on): Update conditions.
8959
8960 2011-05-22  Bruno Haible  <bruno@clisp.org>
8961
8962         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8963         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8964         here...
8965         * modules/wcsxfrm (configure.ac): ... to here.
8966
8967 2011-05-22  Bruno Haible  <bruno@clisp.org>
8968
8969         wcstok: Move AC_LIBOBJ invocations to module description.
8970         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8971         * modules/wcstok (configure.ac): ... to here.
8972
8973 2011-05-22  Bruno Haible  <bruno@clisp.org>
8974
8975         wcsstr: Move AC_LIBOBJ invocations to module description.
8976         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8977         * modules/wcsstr (configure.ac): ... to here.
8978
8979 2011-05-22  Bruno Haible  <bruno@clisp.org>
8980
8981         wcsspn: Move AC_LIBOBJ invocations to module description.
8982         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8983         * modules/wcsspn (configure.ac): ... to here.
8984
8985 2011-05-22  Bruno Haible  <bruno@clisp.org>
8986
8987         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8988         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8989         gl_PREREQ_WCSRTOMBS invocations from here...
8990         * modules/wcsrtombs (configure.ac): ... to here.
8991
8992 2011-05-22  Bruno Haible  <bruno@clisp.org>
8993
8994         wcsrchr: Move AC_LIBOBJ invocations to module description.
8995         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8996         here...
8997         * modules/wcsrchr (configure.ac): ... to here.
8998
8999 2011-05-22  Bruno Haible  <bruno@clisp.org>
9000
9001         wcspbrk: Move AC_LIBOBJ invocations to module description.
9002         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9003         here...
9004         * modules/wcspbrk (configure.ac): ... to here.
9005
9006 2011-05-22  Bruno Haible  <bruno@clisp.org>
9007
9008         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9009         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9010         gl_PREREQ_WCSNRTOMBS invocations from here...
9011         * modules/wcsnrtombs (configure.ac): ... to here.
9012
9013 2011-05-22  Bruno Haible  <bruno@clisp.org>
9014
9015         wcsnlen: Move AC_LIBOBJ invocations to module description.
9016         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9017         here...
9018         * modules/wcsnlen (configure.ac): ... to here.
9019
9020 2011-05-22  Bruno Haible  <bruno@clisp.org>
9021
9022         wcsncpy: Move AC_LIBOBJ invocations to module description.
9023         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9024         here...
9025         * modules/wcsncpy (configure.ac): ... to here.
9026
9027 2011-05-22  Bruno Haible  <bruno@clisp.org>
9028
9029         wcsncmp: Move AC_LIBOBJ invocations to module description.
9030         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9031         here...
9032         * modules/wcsncmp (configure.ac): ... to here.
9033
9034 2011-05-22  Bruno Haible  <bruno@clisp.org>
9035
9036         wcsncat: Move AC_LIBOBJ invocations to module description.
9037         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9038         here...
9039         * modules/wcsncat (configure.ac): ... to here.
9040
9041 2011-05-22  Bruno Haible  <bruno@clisp.org>
9042
9043         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9044         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9045         from here...
9046         * modules/wcsncasecmp (configure.ac): ... to here.
9047
9048 2011-05-22  Bruno Haible  <bruno@clisp.org>
9049
9050         wcslen: Move AC_LIBOBJ invocations to module description.
9051         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9052         * modules/wcslen (configure.ac): ... to here.
9053
9054 2011-05-22  Bruno Haible  <bruno@clisp.org>
9055
9056         wcsdup: Move AC_LIBOBJ invocations to module description.
9057         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9058         * modules/wcsdup (configure.ac): ... to here.
9059
9060 2011-05-22  Bruno Haible  <bruno@clisp.org>
9061
9062         wcscspn: Move AC_LIBOBJ invocations to module description.
9063         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9064         here...
9065         * modules/wcscspn (configure.ac): ... to here.
9066
9067 2011-05-22  Bruno Haible  <bruno@clisp.org>
9068
9069         wcscpy: Move AC_LIBOBJ invocations to module description.
9070         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9071         * modules/wcscpy (configure.ac): ... to here.
9072
9073 2011-05-22  Bruno Haible  <bruno@clisp.org>
9074
9075         wcscoll: Move AC_LIBOBJ invocations to module description.
9076         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9077         here...
9078         * modules/wcscoll (configure.ac): ... to here.
9079
9080 2011-05-22  Bruno Haible  <bruno@clisp.org>
9081
9082         wcscmp: Move AC_LIBOBJ invocations to module description.
9083         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9084         * modules/wcscmp (configure.ac): ... to here.
9085
9086 2011-05-22  Bruno Haible  <bruno@clisp.org>
9087
9088         wcschr: Move AC_LIBOBJ invocations to module description.
9089         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9090         * modules/wcschr (configure.ac): ... to here.
9091
9092 2011-05-22  Bruno Haible  <bruno@clisp.org>
9093
9094         wcscat: Move AC_LIBOBJ invocations to module description.
9095         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9096         * modules/wcscat (configure.ac): ... to here.
9097
9098 2011-05-22  Bruno Haible  <bruno@clisp.org>
9099
9100         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9101         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9102         here...
9103         * modules/wcscasecmp (configure.ac): ... to here.
9104
9105 2011-05-22  Bruno Haible  <bruno@clisp.org>
9106
9107         wcrtomb: Move AC_LIBOBJ invocations to module description.
9108         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9109         invocations from here...
9110         * modules/wcrtomb (configure.ac): ... to here.
9111
9112 2011-05-22  Bruno Haible  <bruno@clisp.org>
9113
9114         wcpncpy: Move AC_LIBOBJ invocations to module description.
9115         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9116         here...
9117         * modules/wcpncpy (configure.ac): ... to here.
9118
9119 2011-05-22  Bruno Haible  <bruno@clisp.org>
9120
9121         wcpcpy: Move AC_LIBOBJ invocations to module description.
9122         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9123         * modules/wcpcpy (configure.ac): ... to here.
9124
9125 2011-05-22  Bruno Haible  <bruno@clisp.org>
9126
9127         waitpid: Move AC_LIBOBJ invocations to module description.
9128         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9129         invocation from here...
9130         * modules/waitpid (configure.ac): ... to here.
9131
9132 2011-05-22  Bruno Haible  <bruno@clisp.org>
9133
9134         utimensat: Move AC_LIBOBJ invocations to module description.
9135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9136         here...
9137         * modules/utimensat (configure.ac): ... to here.
9138
9139 2011-05-22  Bruno Haible  <bruno@clisp.org>
9140
9141         usleep: Move AC_LIBOBJ invocations to module description.
9142         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9143         here...
9144         * modules/usleep (configure.ac): ... to here.
9145
9146 2011-05-22  Bruno Haible  <bruno@clisp.org>
9147
9148         unlockpt: Move AC_LIBOBJ invocations to module description.
9149         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9150         gl_PREREQ_UNLOCKPT invocations from here...
9151         * modules/unlockpt (configure.ac): ... to here.
9152
9153 2011-05-22  Bruno Haible  <bruno@clisp.org>
9154
9155         unlink: Respect rules for use of AC_LIBOBJ.
9156         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9157         * modules/unlink (configure.ac): ... to here.
9158
9159 2011-05-22  Bruno Haible  <bruno@clisp.org>
9160
9161         uname: Move AC_LIBOBJ invocations to module description.
9162         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9163         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9164         here...
9165         * modules/uname (configure.ac): ... to here.
9166
9167 2011-05-22  Bruno Haible  <bruno@clisp.org>
9168
9169         ttyname_r: Move AC_LIBOBJ invocations to module description.
9170         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9171         gl_PREREQ_TTYNAME_R invocations from here...
9172         * modules/ttyname_r (configure.ac): ... to here.
9173
9174 2011-05-22  Bruno Haible  <bruno@clisp.org>
9175
9176         tsearch: Move AC_LIBOBJ invocations to module description.
9177         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9178         invocations from here...
9179         * modules/tsearch (configure.ac): ... to here.
9180
9181 2011-05-22  Bruno Haible  <bruno@clisp.org>
9182
9183         towctrans: Move AC_LIBOBJ invocations to module description.
9184         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9185         AC_LIBOBJ invocation from here...
9186         * modules/towctrans (configure.ac): ... to here.
9187
9188 2011-05-22  Bruno Haible  <bruno@clisp.org>
9189
9190         tmpfile: Move AC_LIBOBJ invocations to module description.
9191         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9192         invocations from here...
9193         * modules/tmpfile (configure.ac): ... to here.
9194
9195 2011-05-22  Bruno Haible  <bruno@clisp.org>
9196
9197         times: Move AC_LIBOBJ invocations to module description.
9198         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9199         * modules/times (configure.ac): ... to here.
9200
9201 2011-05-22  Bruno Haible  <bruno@clisp.org>
9202
9203         time_r: Move AC_LIBOBJ invocations to module description.
9204         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9205         invocations from here...
9206         * modules/time_r (configure.ac): ... to here.
9207
9208 2011-05-22  Bruno Haible  <bruno@clisp.org>
9209
9210         timegm: Move AC_LIBOBJ invocations to module description.
9211         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9212         invocations from here...
9213         * modules/timegm (configure.ac): ... to here.
9214
9215 2011-05-22  Bruno Haible  <bruno@clisp.org>
9216
9217         tcgetsid: Move AC_LIBOBJ invocations to module description.
9218         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9219         and gl_PREREQ_TCGETSID invocations from here...
9220         * modules/tcgetsid (configure.ac): ... to here.
9221         (Depends-on): Update conditions.
9222
9223 2011-05-22  Bruno Haible  <bruno@clisp.org>
9224
9225         symlinkat: Move AC_LIBOBJ invocations to module description.
9226         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9227         here...
9228         * modules/symlinkat (configure.ac): ... to here.
9229
9230 2011-05-22  Bruno Haible  <bruno@clisp.org>
9231
9232         symlink: Move AC_LIBOBJ invocations to module description.
9233         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9234         here...
9235         * modules/symlink (configure.ac): ... to here.
9236
9237 2011-05-22  Bruno Haible  <bruno@clisp.org>
9238
9239         strverscmp: Move AC_LIBOBJ invocations to module description.
9240         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9242         from here...
9243         * modules/strverscmp (configure.ac): ... to here.
9244
9245 2011-05-22  Bruno Haible  <bruno@clisp.org>
9246
9247         strtok_r: Move AC_LIBOBJ invocations to module description.
9248         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9249         and gl_PREREQ_STRTOK_R invocations from here...
9250         * modules/strtok_r (configure.ac): ... to here.
9251         (Depends-on): Update conditions.
9252
9253 2011-05-22  Bruno Haible  <bruno@clisp.org>
9254
9255         strtoumax: Move AC_LIBOBJ invocations to module description.
9256         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9258         from here...
9259         * modules/strtoumax (configure.ac): ... to here.
9260
9261 2011-05-22  Bruno Haible  <bruno@clisp.org>
9262
9263         strtoimax: Move AC_LIBOBJ invocations to module description.
9264         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9266         from here...
9267         * modules/strtoimax (configure.ac): ... to here.
9268
9269 2011-05-22  Bruno Haible  <bruno@clisp.org>
9270
9271         strtoull: Move AC_LIBOBJ invocations to module description.
9272         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9274         from here...
9275         * modules/strtoull (configure.ac): ... to here.
9276
9277 2011-05-22  Bruno Haible  <bruno@clisp.org>
9278
9279         strtoll: Move AC_LIBOBJ invocations to module description.
9280         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9281         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9282         here...
9283         * modules/strtoll (configure.ac): ... to here.
9284
9285 2011-05-22  Bruno Haible  <bruno@clisp.org>
9286
9287         strtoul: Move AC_LIBOBJ invocations to module description.
9288         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9289         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9290         * modules/strtoul (configure.ac): ... to here.
9291
9292 2011-05-22  Bruno Haible  <bruno@clisp.org>
9293
9294         strtol: Move AC_LIBOBJ invocations to module description.
9295         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9296         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9297         * modules/strtol (configure.ac): ... to here.
9298
9299 2011-05-22  Bruno Haible  <bruno@clisp.org>
9300
9301         strtod: Move AC_LIBOBJ invocations to module description.
9302         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9303         invocations from here...
9304         * modules/strtod (configure.ac): ... to here.
9305
9306 2011-05-22  Bruno Haible  <bruno@clisp.org>
9307
9308         strstr*: Move AC_LIBOBJ invocations to module description.
9309         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9310         invocations from here...
9311         * modules/strstr-simple (configure.ac): ... to here.
9312         * modules/strstr (configure.ac): ... and here.
9313
9314 2011-05-22  Bruno Haible  <bruno@clisp.org>
9315
9316         strsignal: Move AC_LIBOBJ invocations to module description.
9317         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9318         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9319         * modules/strsignal (configure.ac): ... to here.
9320         (Depends-on): Update conditions.
9321
9322 2011-05-22  Bruno Haible  <bruno@clisp.org>
9323
9324         strsep: Move AC_LIBOBJ invocations to module description.
9325         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9326         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9327         here...
9328         * modules/strsep (configure.ac): ... to here.
9329
9330 2011-05-22  Bruno Haible  <bruno@clisp.org>
9331
9332         strptime: Move AC_LIBOBJ invocations to module description.
9333         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9334         gl_PREREQ_STRPTIME invocations from here...
9335         * modules/strptime (configure.ac): ... to here.
9336
9337 2011-05-22  Bruno Haible  <bruno@clisp.org>
9338
9339         strpbrk: Move AC_LIBOBJ invocations to module description.
9340         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9342         here...
9343         * modules/strpbrk (configure.ac): ... to here.
9344
9345 2011-05-22  Bruno Haible  <bruno@clisp.org>
9346
9347         strnlen: Move AC_LIBOBJ invocations to module description.
9348         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9349         invocations from here...
9350         * modules/strnlen (configure.ac): ... to here.
9351
9352 2011-05-22  Bruno Haible  <bruno@clisp.org>
9353
9354         strndup: Move AC_LIBOBJ invocations to module description.
9355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9356         invocations from here...
9357         * modules/strndup (configure.ac): ... to here.
9358         (Depends-on): Update conditions.
9359
9360 2011-05-22  Bruno Haible  <bruno@clisp.org>
9361
9362         strncat: Move AC_LIBOBJ invocations to module description.
9363         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9364         invocations from here...
9365         * modules/strncat (configure.ac): ... to here.
9366
9367 2011-05-22  Bruno Haible  <bruno@clisp.org>
9368
9369         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9370         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9371         invocations from here...
9372         * modules/strdup (configure.ac): ... to here.
9373         * modules/strdup-posix (configure.ac): ... and here.
9374
9375 2011-05-22  Bruno Haible  <bruno@clisp.org>
9376
9377         strcspn: Move AC_LIBOBJ invocations to module description.
9378         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9380         here...
9381         * modules/strcspn (configure.ac): ... to here.
9382
9383 2011-05-22  Bruno Haible  <bruno@clisp.org>
9384
9385         strchrnul: Move AC_LIBOBJ invocations to module description.
9386         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9387         gl_PREREQ_STRCHRNUL invocations from here...
9388         * modules/strchrnul (configure.ac): ... to here.
9389
9390 2011-05-22  Bruno Haible  <bruno@clisp.org>
9391
9392         strcasestr*: Move AC_LIBOBJ invocations to module description.
9393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9394         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9395         * modules/strcasestr-simple (configure.ac): ... to here.
9396         * modules/strcasestr (configure.ac): ... and here.
9397
9398 2011-05-22  Bruno Haible  <bruno@clisp.org>
9399
9400         strcase: Move AC_LIBOBJ invocations to module description.
9401         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9402         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9403         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9404         gl_PREREQ_STRNCASECMP invocations from here...
9405         * modules/strcase (configure.ac): ... to here.
9406
9407 2011-05-22  Bruno Haible  <bruno@clisp.org>
9408
9409         stpncpy: Move AC_LIBOBJ invocations to module description.
9410         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9411         here...
9412         * modules/stpncpy (configure.ac): ... to here.
9413
9414 2011-05-22  Bruno Haible  <bruno@clisp.org>
9415
9416         stpcpy: Move AC_LIBOBJ invocations to module description.
9417         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9418         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9419         here...
9420         * modules/stpcpy (configure.ac): ... to here.
9421
9422 2011-05-21  Bruno Haible  <bruno@clisp.org>
9423
9424         stat: Move AC_LIBOBJ invocations to module description.
9425         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9426         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9427         here...
9428         * modules/stat (configure.ac): ... to here.
9429
9430 2011-05-21  Bruno Haible  <bruno@clisp.org>
9431
9432         sleep: Move AC_LIBOBJ invocations to module description.
9433         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9434         * modules/sleep (configure.ac): ... to here.
9435
9436 2011-05-21  Bruno Haible  <bruno@clisp.org>
9437
9438         signbit: Move AC_LIBOBJ invocations to module description.
9439         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9440         * modules/signbit (configure.ac): ... to here.
9441
9442 2011-05-21  Bruno Haible  <bruno@clisp.org>
9443
9444         sigprocmask: Move AC_LIBOBJ invocations to module description.
9445         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9446         gl_PREREQ_SIGPROMASK invocations from here...
9447         * modules/sigprocmask (configure.ac): ... to here.
9448
9449 2011-05-21  Bruno Haible  <bruno@clisp.org>
9450
9451         sigaction: Move AC_LIBOBJ invocations to module description.
9452         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9453         gl_PREREQ_SIGACTION invocations from here...
9454         * modules/sigaction (configure.ac): ... to here.
9455
9456 2011-05-21  Bruno Haible  <bruno@clisp.org>
9457
9458         sig2str: Move AC_LIBOBJ invocations to module description.
9459         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9461         here...
9462         * modules/sig2str (configure.ac): ... to here.
9463
9464 2011-05-21  Bruno Haible  <bruno@clisp.org>
9465
9466         setlocale: Move AC_LIBOBJ invocations to module description.
9467         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9468         gl_PREREQ_SETLOCALE invocations from here...
9469         * modules/setlocale (configure.ac): ... to here.
9470
9471 2011-05-21  Bruno Haible  <bruno@clisp.org>
9472
9473         unsetenv: Move AC_LIBOBJ invocations to module description.
9474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9475         and gl_PREREQ_UNSETENV invocations from here...
9476         * modules/unsetenv (configure.ac): ... to here.
9477         (Depends-on): Update.
9478
9479 2011-05-21  Bruno Haible  <bruno@clisp.org>
9480
9481         setenv: Move AC_LIBOBJ invocations to module description.
9482         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9483         here...
9484         * modules/setenv (configure.ac): ... to here.
9485
9486 2011-05-21  Bruno Haible  <bruno@clisp.org>
9487
9488         selinux-h: Move AC_LIBOBJ invocations to module description.
9489         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9490         AC_LIBOBJ invocation from here...
9491         * modules/selinux-h (configure.ac): ... to here.
9492
9493 2011-05-21  Bruno Haible  <bruno@clisp.org>
9494
9495         select: Respect rules for use of AC_LIBOBJ.
9496         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9497         here...
9498         * modules/select (configure.ac): ... to here.
9499
9500 2011-05-21  Bruno Haible  <bruno@clisp.org>
9501
9502         scandir: Move AC_LIBOBJ invocations to module description.
9503         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9504         invocations from here...
9505         * modules/scandir (configure.ac): ... to here.
9506
9507 2011-05-21  Bruno Haible  <bruno@clisp.org>
9508
9509         rpmatch: Move AC_LIBOBJ invocations to module description.
9510         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9511         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9512         here...
9513         * modules/rpmatch (configure.ac): ... to here.
9514
9515 2011-05-21  Bruno Haible  <bruno@clisp.org>
9516
9517         rmdir: Respect rules for use of AC_LIBOBJ.
9518         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9519         * modules/rmdir (configure.ac): ... to here.
9520
9521 2011-05-21  Bruno Haible  <bruno@clisp.org>
9522
9523         renameat: Move AC_LIBOBJ invocations to module description.
9524         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9525         here...
9526         * modules/renameat (configure.ac): ... to here.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         rename: Respect rules for use of AC_LIBOBJ.
9531         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9532         here...
9533         * modules/rename (configure.ac): ... to here.
9534
9535 2011-05-21  Bruno Haible  <bruno@clisp.org>
9536
9537         remove: Move AC_LIBOBJ invocations to module description.
9538         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9539         here...
9540         * modules/remove (configure.ac): ... to here.
9541
9542 2011-05-21  Bruno Haible  <bruno@clisp.org>
9543
9544         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9545         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9546         macro.
9547         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9548         * modules/relocatable-lib (configure.ac): ... to here.
9549         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9550         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9551
9552 2011-05-21  Bruno Haible  <bruno@clisp.org>
9553
9554         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9555         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9556         here...
9557         * modules/relocatable-prog (configure.ac): ... to here.
9558
9559 2011-05-21  Bruno Haible  <bruno@clisp.org>
9560
9561         regex: Move AC_LIBOBJ invocations to module description.
9562         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9563         invocations from here...
9564         * modules/regex (configure.ac): ... to here.
9565
9566 2011-05-21  Bruno Haible  <bruno@clisp.org>
9567
9568         realloc-*: Move AC_LIBOBJ invocations to module description.
9569         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9570         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9571         AC_LIBOBJ invocations from here...
9572         * modules/realloc-gnu (configure.ac): ... to here.
9573         * modules/realloc-posix (configure.ac): ... and here.
9574
9575 2011-05-21  Bruno Haible  <bruno@clisp.org>
9576
9577         readutmp: Move AC_LIBOBJ invocations to module description.
9578         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9579         * modules/readutmp (configure.ac): ... to here.
9580
9581 2011-05-21  Bruno Haible  <bruno@clisp.org>
9582
9583         readlinkat: Move AC_LIBOBJ invocations to module description.
9584         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9585         here...
9586         * modules/readlinkat (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         readlink: Move AC_LIBOBJ invocations to module description.
9591         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9592         gl_PREREQ_READLINK invocations from here...
9593         * modules/readlink (configure.ac): ... to here.
9594
9595 2011-05-21  Bruno Haible  <bruno@clisp.org>
9596
9597         readline: Move AC_LIBOBJ invocations to module description.
9598         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9599         gl_PREREQ_READLINE invocations from here...
9600         * modules/readline (configure.ac): ... to here.
9601
9602 2011-05-21  Bruno Haible  <bruno@clisp.org>
9603
9604         read: Move AC_LIBOBJ invocations to module description.
9605         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9606         * modules/read (configure.ac): ... to here.
9607
9608 2011-05-21  Bruno Haible  <bruno@clisp.org>
9609
9610         rawmemchr: Move AC_LIBOBJ invocations to module description.
9611         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9613         from here...
9614         * modules/rawmemchr (configure.ac): ... to here.
9615
9616 2011-05-21  Bruno Haible  <bruno@clisp.org>
9617
9618         random_r: Move AC_LIBOBJ invocations to module description.
9619         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9620         gl_PREREQ_RANDOM_R invocations from here...
9621         * modules/random_r (configure.ac): ... to here.
9622
9623 2011-05-21  Bruno Haible  <bruno@clisp.org>
9624
9625         pwrite: Move AC_LIBOBJ invocations to module description.
9626         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9627         * modules/pwrite (configure.ac): ... to here.
9628
9629 2011-05-21  Bruno Haible  <bruno@clisp.org>
9630
9631         putenv: Move AC_LIBOBJ invocations to module description.
9632         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9633         * modules/putenv (configure.ac): ... to here.
9634
9635 2011-05-21  Bruno Haible  <bruno@clisp.org>
9636
9637         login_tty: Move AC_LIBOBJ invocations to module description.
9638         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9639         * modules/login_tty (configure.ac): ... to here.
9640
9641 2011-05-21  Bruno Haible  <bruno@clisp.org>
9642
9643         openpty: Move AC_LIBOBJ invocations to module description.
9644         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9645         * modules/openpty (configure.ac): ... to here.
9646
9647 2011-05-21  Bruno Haible  <bruno@clisp.org>
9648
9649         forkpty: Move AC_LIBOBJ invocations to module description.
9650         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9651         * modules/forkpty (configure.ac): ... to here.
9652
9653 2011-05-21  Bruno Haible  <bruno@clisp.org>
9654
9655         ptsname: Move AC_LIBOBJ invocations to module description.
9656         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9657         invocations from here...
9658         * modules/ptsname (configure.ac): ... to here.
9659
9660 2011-05-21  Bruno Haible  <bruno@clisp.org>
9661
9662         pread: Move AC_LIBOBJ invocations to module description.
9663         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9664         * modules/pread (configure.ac): ... to here.
9665
9666 2011-05-21  Bruno Haible  <bruno@clisp.org>
9667
9668         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9669         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9670         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9671         * modules/posix_spawn (configure.ac): ... to here.
9672         * modules/posix_spawnp (configure.ac): ... and here.
9673
9674 2011-05-21  Bruno Haible  <bruno@clisp.org>
9675
9676         popen: Move AC_LIBOBJ invocations to module description.
9677         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9678         invocations from here...
9679         * modules/popen (configure.ac): ... to here.
9680
9681 2011-05-21  Bruno Haible  <bruno@clisp.org>
9682
9683         poll: Move AC_LIBOBJ invocations to module description.
9684         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9685         invocations from here...
9686         * modules/poll (configure.ac): ... to here.
9687
9688 2011-05-21  Bruno Haible  <bruno@clisp.org>
9689
9690         pipe-posix: Move AC_LIBOBJ invocations to module description.
9691         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9692         * modules/pipe-posix (configure.ac): ... to here.
9693
9694 2011-05-21  Bruno Haible  <bruno@clisp.org>
9695
9696         openat: Respect rules for use of AC_LIBOBJ.
9697         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9698         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9699         * modules/openat (configure.ac): ... to here.
9700
9701 2011-05-21  Bruno Haible  <bruno@clisp.org>
9702
9703         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9704         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9705         invocation from here...
9706         * modules/obstack-printf (configure.ac): ... to here.
9707         * modules/obstack-printf-posix (configure.ac): ... and here.
9708
9709 2011-05-21  Bruno Haible  <bruno@clisp.org>
9710
9711         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9712         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9713         from here...
9714         * modules/nl_langinfo (configure.ac): ... to here.
9715
9716 2011-05-21  Bruno Haible  <bruno@clisp.org>
9717
9718         nanosleep: Move AC_LIBOBJ invocations to module description.
9719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9720         gl_PREREQ_NANOSLEEP invocations from here...
9721         * modules/nanosleep (configure.ac): ... to here.
9722
9723 2011-05-21  Bruno Haible  <bruno@clisp.org>
9724
9725         mountlist: Move AC_LIBOBJ invocations to module description.
9726         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9727         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9728         * modules/mountlist (configure.ac): ... to here.
9729
9730 2011-05-21  Bruno Haible  <bruno@clisp.org>
9731
9732         mktime: Respect rules for use of AC_LIBOBJ.
9733         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9734         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9735         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9736         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9737         * modules/mktime (configure.ac): ... to here.
9738         * modules/mktime-internal (configure.ac): ... and here.
9739         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9740
9741 2011-05-21  Bruno Haible  <bruno@clisp.org>
9742
9743         mkstemps: Move AC_LIBOBJ invocations to module description.
9744         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9745         here...
9746         * modules/mkstemps (configure.ac): ... to here.
9747
9748 2011-05-21  Bruno Haible  <bruno@clisp.org>
9749
9750         mkstemp: Move AC_LIBOBJ invocations to module description.
9751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9752         gl_PREREQ_MKSTEMP invocations from here...
9753         * modules/mkstemp (configure.ac): ... to here.
9754
9755 2011-05-21  Bruno Haible  <bruno@clisp.org>
9756
9757         mkostemps: Move AC_LIBOBJ invocations to module description.
9758         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9759         here...
9760         * modules/mkostemps (configure.ac): ... to here.
9761
9762 2011-05-21  Bruno Haible  <bruno@clisp.org>
9763
9764         mkostemp: Move AC_LIBOBJ invocations to module description.
9765         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9766         gl_PREREQ_MKOSTEMP invocations from here...
9767         * modules/mkostemp (configure.ac): ... to here.
9768
9769 2011-05-21  Bruno Haible  <bruno@clisp.org>
9770
9771         mknod: Move AC_LIBOBJ invocations to module description.
9772         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9773         * modules/mknod (configure.ac): ... to here.
9774
9775 2011-05-21  Bruno Haible  <bruno@clisp.org>
9776
9777         mkfifoat: Move AC_LIBOBJ invocations to module description.
9778         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9779         here...
9780         * modules/mkfifoat (configure.ac): ... to here.
9781
9782 2011-05-21  Bruno Haible  <bruno@clisp.org>
9783
9784         mkfifo: Respect rules for use of AC_LIBOBJ.
9785         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9786         here...
9787         * modules/mkfifo (configure.ac): ... to here.
9788
9789 2011-05-21  Bruno Haible  <bruno@clisp.org>
9790
9791         mkdtemp: Move AC_LIBOBJ invocations to module description.
9792         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9793         invocations from here...
9794         * modules/mkdtemp (configure.ac): ... to here.
9795
9796 2011-05-21  Bruno Haible  <bruno@clisp.org>
9797
9798         mkdir: Move AC_LIBOBJ invocations to module description.
9799         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9800         * modules/mkdir (configure.ac): ... to here.
9801
9802 2011-05-21  Bruno Haible  <bruno@clisp.org>
9803
9804         memset: Move AC_LIBOBJ invocations to module description.
9805         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9807         here...
9808         * modules/memset (configure.ac): ... to here.
9809
9810 2011-05-21  Bruno Haible  <bruno@clisp.org>
9811
9812         memrchr: Move AC_LIBOBJ invocations to module description.
9813         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9815         here...
9816         * modules/memrchr (configure.ac): ... to here.
9817
9818 2011-05-21  Bruno Haible  <bruno@clisp.org>
9819
9820         mempcpy: Move AC_LIBOBJ invocations to module description.
9821         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9823         here...
9824         * modules/mempcpy (configure.ac): ... to here.
9825
9826 2011-05-21  Bruno Haible  <bruno@clisp.org>
9827
9828         memmove: Move AC_LIBOBJ invocations to module description.
9829         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9831         here...
9832         * modules/memmove (configure.ac): ... to here.
9833
9834 2011-05-21  Bruno Haible  <bruno@clisp.org>
9835
9836         memmem*: Move AC_LIBOBJ invocations to module description.
9837         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9838         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9839         here...
9840         (gl_FUNC_MEMMEM): ... and here...
9841         * modules/memmem-simple (configure.ac): ... to here.
9842         * modules/memmem (configure.ac): ... and here.
9843
9844 2011-05-21  Bruno Haible  <bruno@clisp.org>
9845
9846         memcpy: Move AC_LIBOBJ invocations to module description.
9847         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9849         here...
9850         * modules/memcpy (configure.ac): ... to here.
9851
9852 2011-05-21  Bruno Haible  <bruno@clisp.org>
9853
9854         memcmp: Simplify autoconf macro.
9855         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9856         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9857         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9858
9859 2011-05-21  Bruno Haible  <bruno@clisp.org>
9860
9861         memcmp: Move AC_LIBOBJ invocations to module description.
9862         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9863         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9864         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9865         * modules/memcmp (configure.ac): ... to here.
9866         (Depends-on): Update conditions.
9867
9868 2011-05-21  Bruno Haible  <bruno@clisp.org>
9869
9870         memchr: Respect rules for use of AC_LIBOBJ.
9871         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9872         invocations from here...
9873         * modules/memchr (configure.ac): ... to here.
9874
9875 2011-05-21  Bruno Haible  <bruno@clisp.org>
9876
9877         mbtowc: Move AC_LIBOBJ invocations to module description.
9878         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9879         invocations from here...
9880         * modules/mbtowc (configure.ac): ... to here.
9881
9882 2011-05-21  Bruno Haible  <bruno@clisp.org>
9883
9884         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9885         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9886         gl_PREREQ_MBSRTOWCS invocations from here...
9887         * modules/mbsrtowcs (configure.ac): ... to here.
9888
9889 2011-05-21  Bruno Haible  <bruno@clisp.org>
9890
9891         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9892         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9893         gl_PREREQ_MBSNRTOWCS invocations from here...
9894         * modules/mbsnrtowcs (configure.ac): ... to here.
9895
9896 2011-05-21  Bruno Haible  <bruno@clisp.org>
9897
9898         mbsinit: Move AC_LIBOBJ invocations to module description.
9899         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9900         invocations from here...
9901         * modules/mbsinit (configure.ac): ... to here.
9902
9903 2011-05-21  Bruno Haible  <bruno@clisp.org>
9904
9905         mbrlen: Move AC_LIBOBJ invocations to module description.
9906         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9907         invocations from here...
9908         * modules/mbrlen (configure.ac): ... to here.
9909
9910 2011-05-21  Bruno Haible  <bruno@clisp.org>
9911
9912         mbrtowc: Respect rules for use of AC_LIBOBJ.
9913         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9914         invocations from here...
9915         * modules/mbrtowc (configure.ac): ... to here.
9916
9917 2011-05-21  Bruno Haible  <bruno@clisp.org>
9918
9919         malloc-*: Move AC_LIBOBJ invocations to module description.
9920         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9921         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9922         AC_LIBOBJ invocations from here...
9923         * modules/malloc-gnu (configure.ac): ... to here.
9924         * modules/malloc-posix (configure.ac): ... and here.
9925
9926 2011-05-21  Bruno Haible  <bruno@clisp.org>
9927
9928         lstat, openat: Respect rules for use of AC_LIBOBJ.
9929         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9930         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9931         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9932         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9933         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9934         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9935         here.
9936         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9937
9938 2011-05-21  Bruno Haible  <bruno@clisp.org>
9939
9940         lseek: Move AC_LIBOBJ invocations to module description.
9941         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9942         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9943         * modules/lseek (configure.ac): ... to here.
9944
9945 2011-05-21  Bruno Haible  <bruno@clisp.org>
9946
9947         linkat: Move AC_LIBOBJ invocations to module description.
9948         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9949         here...
9950         * modules/linkat (configure.ac): ... to here.
9951
9952 2011-05-21  Bruno Haible  <bruno@clisp.org>
9953
9954         link: Respect rules for use of AC_LIBOBJ.
9955         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9956         * modules/link (configure.ac): ... to here.
9957
9958 2011-05-21  Bruno Haible  <bruno@clisp.org>
9959
9960         lchown: Move AC_LIBOBJ invocations to module description.
9961         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9962         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9963         * modules/lchown (configure.ac): ... to here.
9964
9965 2011-05-21  Bruno Haible  <bruno@clisp.org>
9966
9967         iswctype: Move AC_LIBOBJ invocations to module description.
9968         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9969         here...
9970         * modules/iswctype (configure.ac): ... to here.
9971
9972 2011-05-21  Bruno Haible  <bruno@clisp.org>
9973
9974         iswblank: Move AC_LIBOBJ invocations to module description.
9975         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9976         here...
9977         * modules/iswblank (configure.ac): ... to here.
9978
9979 2011-05-21  Bruno Haible  <bruno@clisp.org>
9980
9981         atanl: Move AC_LIBOBJ invocations to module description.
9982         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9983         * modules/atanl (configure.ac): ... to here.
9984
9985 2011-05-21  Bruno Haible  <bruno@clisp.org>
9986
9987         acosl: Move AC_LIBOBJ invocations to module description.
9988         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9989         * modules/acosl (configure.ac): ... to here.
9990
9991 2011-05-21  Bruno Haible  <bruno@clisp.org>
9992
9993         asinl: Respect rules for use of AC_LIBOBJ.
9994         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9995         * modules/asinl (configure.ac): ... to here.
9996
9997 2011-05-21  Bruno Haible  <bruno@clisp.org>
9998
9999         tanl: Move AC_LIBOBJ invocations to module description.
10000         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10001         * modules/tanl (configure.ac): ... to here.
10002
10003 2011-05-21  Bruno Haible  <bruno@clisp.org>
10004
10005         cosl: Move AC_LIBOBJ invocations to module description.
10006         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10007         * modules/cosl (configure.ac): ... to here.
10008
10009 2011-05-21  Bruno Haible  <bruno@clisp.org>
10010
10011         sinl: Move AC_LIBOBJ invocations to module description.
10012         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10013         * modules/sinl (configure.ac): ... to here.
10014
10015 2011-05-21  Bruno Haible  <bruno@clisp.org>
10016
10017         logl: Move AC_LIBOBJ invocations to module description.
10018         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10019         * modules/logl (configure.ac): ... to here.
10020
10021 2011-05-21  Bruno Haible  <bruno@clisp.org>
10022
10023         expl: Move AC_LIBOBJ invocations to module description.
10024         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10025         * modules/expl (configure.ac): ... to here.
10026
10027 2011-05-21  Bruno Haible  <bruno@clisp.org>
10028
10029         roundl: Move AC_LIBOBJ invocations to module description.
10030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10031         * modules/roundl (configure.ac): ... to here.
10032
10033 2011-05-21  Bruno Haible  <bruno@clisp.org>
10034
10035         round: Move AC_LIBOBJ invocations to module description.
10036         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10037         * modules/round (configure.ac): ... to here.
10038
10039 2011-05-21  Bruno Haible  <bruno@clisp.org>
10040
10041         roundf: Move AC_LIBOBJ invocations to module description.
10042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10043         * modules/roundf (configure.ac): ... to here.
10044
10045 2011-05-21  Bruno Haible  <bruno@clisp.org>
10046
10047         truncl: Move AC_LIBOBJ invocations to module description.
10048         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10049         * modules/truncl (configure.ac): ... to here.
10050
10051 2011-05-21  Bruno Haible  <bruno@clisp.org>
10052
10053         trunc: Move AC_LIBOBJ invocations to module description.
10054         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10055         * modules/trunc (configure.ac): ... to here.
10056
10057 2011-05-21  Bruno Haible  <bruno@clisp.org>
10058
10059         truncf: Move AC_LIBOBJ invocations to module description.
10060         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10061         * modules/truncf (configure.ac): ... to here.
10062
10063 2011-05-21  Bruno Haible  <bruno@clisp.org>
10064
10065         ceill: Move AC_LIBOBJ invocations to module description.
10066         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10067         * modules/ceill (configure.ac): ... to here.
10068
10069 2011-05-21  Bruno Haible  <bruno@clisp.org>
10070
10071         ceil: Move AC_LIBOBJ invocations to module description.
10072         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10073         * modules/ceil (configure.ac): ... to here.
10074
10075 2011-05-21  Bruno Haible  <bruno@clisp.org>
10076
10077         ceilf: Move AC_LIBOBJ invocations to module description.
10078         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10079         * modules/ceilf (configure.ac): ... to here.
10080
10081 2011-05-21  Bruno Haible  <bruno@clisp.org>
10082
10083         floorl: Respect rules for use of AC_LIBOBJ.
10084         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10085         * modules/floorl (configure.ac): ... to here.
10086
10087 2011-05-21  Bruno Haible  <bruno@clisp.org>
10088
10089         floor: Respect rules for use of AC_LIBOBJ.
10090         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10091         * modules/floor (configure.ac): ... to here.
10092
10093 2011-05-21  Bruno Haible  <bruno@clisp.org>
10094
10095         floorf: Move AC_LIBOBJ invocations to module description.
10096         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10097         * modules/floorf (configure.ac): ... to here.
10098
10099 2011-05-20  Bruno Haible  <bruno@clisp.org>
10100
10101         sqrtl: Respect rules for use of AC_LIBOBJ.
10102         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10103         * modules/sqrtl (configure.ac): ... to here.
10104
10105 2011-05-20  Bruno Haible  <bruno@clisp.org>
10106
10107         ldexpl: Respect rules for use of AC_LIBOBJ.
10108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10109         * modules/ldexpl (configure.ac): ... to here.
10110
10111 2011-05-20  Bruno Haible  <bruno@clisp.org>
10112
10113         frexpl*: Respect rules for use of AC_LIBOBJ.
10114         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10115         invocation from here...
10116         * modules/frexpl (configure.ac): ... to here.
10117         * modules/frexpl-nolibm (configure.ac): ... and here.
10118
10119 2011-05-20  Bruno Haible  <bruno@clisp.org>
10120
10121         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10122         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10123         invocation from here...
10124         * modules/frexp (configure.ac): ... to here.
10125         * modules/frexp-nolibm (configure.ac): ... and here.
10126
10127 2011-05-20  Bruno Haible  <bruno@clisp.org>
10128
10129         isnan: Respect rules for use of AC_LIBOBJ.
10130         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10131         invocations here.
10132         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10133         REPLACE_ISNAN.
10134         * modules/isnand (configure.ac): Likewise.
10135         * modules/isnanl (configure.ac): Likewise.
10136
10137 2011-05-20  Bruno Haible  <bruno@clisp.org>
10138
10139         isnanl*: Respect rules for use of AC_LIBOBJ.
10140         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10141         invocation from here...
10142         * modules/isnanl (configure.ac): ... to here.
10143         * modules/isnanl-nolibm (configure.ac): ... and here.
10144
10145 2011-05-20  Bruno Haible  <bruno@clisp.org>
10146
10147         isnand*: Move AC_LIBOBJ invocations to module description.
10148         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10149         invocation from here...
10150         * modules/isnand (configure.ac): ... to here.
10151         * modules/isnand-nolibm (configure.ac): ... and here.
10152
10153 2011-05-20  Bruno Haible  <bruno@clisp.org>
10154
10155         isnanf*: Move AC_LIBOBJ invocations to module description.
10156         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10157         invocation from here...
10158         * modules/isnanf (configure.ac): ... to here.
10159         * modules/isnanf-nolibm (configure.ac): ... and here.
10160
10161 2011-05-20  Bruno Haible  <bruno@clisp.org>
10162
10163         isnan*: Separate the AC_LIBOBJ invocations.
10164         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10165         AC_LIBOBJ invocation.
10166         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10167         here.
10168         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10169         AC_LIBOBJ invocation.
10170         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10171         here.
10172         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10173         AC_LIBOBJ invocation.
10174         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10175         here.
10176         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10177
10178 2011-05-08  Bruno Haible  <bruno@clisp.org>
10179
10180         isinf: Move AC_LIBOBJ invocations to module description.
10181         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10182         * modules/isinf (configure.ac): ... to here.
10183
10184 2011-05-08  Bruno Haible  <bruno@clisp.org>
10185
10186         isfinite: Move AC_LIBOBJ invocations to module description.
10187         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10188         * modules/isfinite (configure.ac): ... to here.
10189
10190 2011-05-08  Bruno Haible  <bruno@clisp.org>
10191
10192         isblank: Move AC_LIBOBJ invocations to module description.
10193         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10194         here...
10195         * modules/isblank (configure.ac): ... to here.
10196
10197 2011-05-08  Bruno Haible  <bruno@clisp.org>
10198
10199         isapipe: Move AC_LIBOBJ invocations to module description.
10200         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10201         gl_PREREQ_ISAPIPE invocations from here...
10202         * modules/isapipe (configure.ac): ... to here.
10203         (Depends-on): Update condition.
10204
10205 2011-05-08  Bruno Haible  <bruno@clisp.org>
10206
10207         ioctl: Move AC_LIBOBJ invocations to module description.
10208         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10209         invocations from here...
10210         * modules/ioctl (configure.ac): ... to here.
10211         (Depends-on): Update condition.
10212
10213 2011-05-08  Bruno Haible  <bruno@clisp.org>
10214
10215         imaxdiv: Move AC_LIBOBJ invocations to module description.
10216         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10217         invocations from here...
10218         * modules/imaxdiv (configure.ac): ... to here.
10219
10220 2011-05-08  Bruno Haible  <bruno@clisp.org>
10221
10222         imaxabs: Move AC_LIBOBJ invocations to module description.
10223         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10224         invocations from here...
10225         * modules/imaxabs (configure.ac): ... to here.
10226
10227 2011-05-08  Bruno Haible  <bruno@clisp.org>
10228
10229         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10231         AC_LIBOBJ invocations from here...
10232         * modules/getaddrinfo (configure.ac): ... to here.
10233         (Depends-on): Add conditions.
10234
10235 2011-05-08  Bruno Haible  <bruno@clisp.org>
10236
10237         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10238         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10239         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10240         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10241         (gl_PREREQ_INET_PTON): ... from here.
10242         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10243         gl_PREREQ_INET_PTON here.
10244         (Depends-on): Update condition.
10245
10246 2011-05-08  Bruno Haible  <bruno@clisp.org>
10247
10248         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10249         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10250         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10251         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10252         (gl_PREREQ_INET_NTOP): ... from here.
10253         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10254         gl_PREREQ_INET_NTOP here.
10255         (Depends-on): Update condition.
10256
10257 2011-05-08  Bruno Haible  <bruno@clisp.org>
10258
10259         iconv_open: Move AC_LIBOBJ invocations to module description.
10260         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10261         AC_LIBOBJ invocations from here...
10262         * modules/iconv_open (configure.ac): ... to here.
10263
10264 2011-05-08  Bruno Haible  <bruno@clisp.org>
10265
10266         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10267         If module 'iconv_open' is among the main modules and module
10268         'iconv_open-utf' is among the tests dependencies, then
10269         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10270         return the special iconv_t values. Therefore iconv() and iconv_close()
10271         must support these special iconv_t values, already in lib, not only in
10272         tests.
10273         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10274         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10275         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10276         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10277         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10278         (Depends-on): Add the dependencies of iconv_open-utf.
10279         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10280         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10281         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10282
10283 2011-05-08  Bruno Haible  <bruno@clisp.org>
10284
10285         group-member: Move AC_LIBOBJ invocations to module description.
10286         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10287         gl_PREREQ_GROUP_MEMBER invocations from here...
10288         * modules/group-member (configure.ac): ... to here.
10289
10290 2011-05-08  Bruno Haible  <bruno@clisp.org>
10291
10292         grantpt: Move AC_LIBOBJ invocations to module description.
10293         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10294         invocations from here...
10295         * modules/grantpt (configure.ac): ... to here.
10296
10297 2011-05-08  Bruno Haible  <bruno@clisp.org>
10298
10299         glob: Move AC_LIBOBJ invocations to module description.
10300         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10301         from here...
10302         * modules/glob (configure.ac): ... to here.
10303
10304 2011-05-08  Bruno Haible  <bruno@clisp.org>
10305
10306         getusershell: Move AC_LIBOBJ invocations to module description.
10307         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10308         Move AC_LIBOBJ invocation from here...
10309         * modules/getusershell (configure.ac): ... to here.
10310         (Depends-on): Update condition.
10311
10312 2011-05-08  Bruno Haible  <bruno@clisp.org>
10313
10314         gettimeofday: Move AC_LIBOBJ invocations to module description.
10315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10316         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10317         gl_PREREQ_GETTIMEOFDAY invocations from here...
10318         * modules/gettimeofday (configure.ac): ... to here.
10319
10320 2011-05-08  Bruno Haible  <bruno@clisp.org>
10321
10322         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10323         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10324         just gl_FUNC_TZSET.
10325         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10326         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10328         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10329
10330 2011-05-08  Bruno Haible  <bruno@clisp.org>
10331
10332         getsubopt: Move AC_LIBOBJ invocations to module description.
10333         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10334         gl_PREREQ_GETSUBOPT invocations from here...
10335         * modules/getsubopt (configure.ac): ... to here.
10336
10337 2011-05-08  Bruno Haible  <bruno@clisp.org>
10338
10339         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10340         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10341         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10342         * modules/getpass-gnu (configure.ac): ... to here.
10343
10344 2011-05-08  Bruno Haible  <bruno@clisp.org>
10345
10346         getpass: Move AC_LIBOBJ invocations to module description.
10347         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10348         gl_PREREQ_GETPASS invocations from here...
10349         * modules/getpass (configure.ac): ... to here.
10350
10351 2011-05-08  Bruno Haible  <bruno@clisp.org>
10352
10353         getpagesize: Move AC_LIBOBJ invocations to module description.
10354         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10355         from here...
10356         * modules/getpagesize (configure.ac): ... to here.
10357
10358 2011-05-08  Bruno Haible  <bruno@clisp.org>
10359
10360         getopt: Move AC_LIBOBJ invocations to module description.
10361         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10362         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10363         invocations from here...
10364         * modules/getopt-gnu (configure.ac): ... to here.
10365         * modules/getopt-posix (configure.ac): ... and here.
10366         (Depends-on): Update condition.
10367
10368 2011-05-08  Bruno Haible  <bruno@clisp.org>
10369
10370         getopt, argp: Respect rules for use of AC_LIBOBJ.
10371         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10372         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10373         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10374         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10375
10376 2011-05-08  Bruno Haible  <bruno@clisp.org>
10377
10378         getlogin_r: Move AC_LIBOBJ invocations to module description.
10379         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10380         gl_PREREQ_GETLOGIN_R invocations from here...
10381         * modules/getlogin_r (configure.ac): ... to here.
10382
10383 2011-05-08  Bruno Haible  <bruno@clisp.org>
10384
10385         getlogin: Move AC_LIBOBJ invocations to module description.
10386         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10387         here...
10388         * modules/getlogin (configure.ac): ... to here.
10389
10390 2011-05-08  Bruno Haible  <bruno@clisp.org>
10391
10392         getloadavg: Move AC_LIBOBJ invocations to module description.
10393         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10394         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10395         * modules/getloadavg (configure.ac): ... to here.
10396
10397 2011-05-08  Bruno Haible  <bruno@clisp.org>
10398
10399         gethrxtime: Move AC_LIBOBJ invocations to module description.
10400         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10401         LIB_GETHRXTIME from here...
10402         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10403         invocations from here...
10404         * modules/gethrxtime (configure.ac): ... to here.
10405
10406 2011-05-08  Bruno Haible  <bruno@clisp.org>
10407
10408         gethostname: Move AC_LIBOBJ invocations to module description.
10409         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10410         gl_PREREQ_GETHOSTNAME invocations from here...
10411         * modules/gethostname (configure.ac): ... to here.
10412
10413 2011-05-08  Bruno Haible  <bruno@clisp.org>
10414
10415         getgroups: Move AC_LIBOBJ invocations to module description.
10416         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10417         here...
10418         * modules/getgroups (configure.ac): ... to here.
10419
10420 2011-05-08  Bruno Haible  <bruno@clisp.org>
10421
10422         getdtablesize: Move AC_LIBOBJ invocations to module description.
10423         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10424         invocation from here...
10425         * modules/getdtablesize (configure.ac): ... to here.
10426
10427 2011-05-08  Bruno Haible  <bruno@clisp.org>
10428
10429         getdomainname: Move AC_LIBOBJ invocations to module description.
10430         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10431         gl_PREREQ_GETDOMAINNAME invocations from here...
10432         * modules/getdomainname (configure.ac): ... to here.
10433
10434 2011-05-08  Bruno Haible  <bruno@clisp.org>
10435
10436         getline: Move AC_LIBOBJ invocations to module description.
10437         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10438         invocations from here...
10439         * modules/getline (configure.ac): ... to here.
10440
10441 2011-05-08  Bruno Haible  <bruno@clisp.org>
10442
10443         getline: Simplify.
10444         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10445         It's already handled through the module dependency.
10446
10447 2011-05-08  Bruno Haible  <bruno@clisp.org>
10448
10449         getdelim: Move AC_LIBOBJ invocations to module description.
10450         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10451         and gl_PREREQ_GETDELIM invocations from here...
10452         * modules/getdelim (configure.ac): ... to here.
10453         (Depends-on): Fix condition.
10454
10455 2011-05-08  Bruno Haible  <bruno@clisp.org>
10456
10457         getcwd: Move AC_LIBOBJ invocations to module description.
10458         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10459         invocations from here...
10460         * modules/getcwd (configure.ac): ... to here.
10461
10462 2011-05-08  Bruno Haible  <bruno@clisp.org>
10463
10464         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10465         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10466         here...
10467         * modules/getcwd-lgpl (configure.ac): ... to here.
10468
10469 2011-05-07  Bruno Haible  <bruno@clisp.org>
10470
10471         crypto/gc: Move AC_LIBOBJ invocations to module description.
10472         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10473         * modules/crypto/gc (configure.ac): ... to here.
10474
10475 2011-05-07  Bruno Haible  <bruno@clisp.org>
10476
10477         fwriting: Move AC_LIBOBJ invocations to module description.
10478         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10479         here...
10480         * modules/fwriting (configure.ac): ... to here.
10481
10482 2011-05-07  Bruno Haible  <bruno@clisp.org>
10483
10484         fwritable: Move AC_LIBOBJ invocations to module description.
10485         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10486         here...
10487         * modules/fwritable (configure.ac): ... to here.
10488
10489 2011-05-07  Bruno Haible  <bruno@clisp.org>
10490
10491         futimens: Move AC_LIBOBJ invocations to module description.
10492         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10493         here...
10494         * modules/futimens (configure.ac): ... to here.
10495
10496 2011-05-07  Bruno Haible  <bruno@clisp.org>
10497
10498         ftruncate: Move AC_LIBOBJ invocations to module description.
10499         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10500         gl_PREREQ_FTRUNCATE invocations from here...
10501         * modules/ftruncate (configure.ac): ... to here.
10502
10503 2011-05-07  Bruno Haible  <bruno@clisp.org>
10504
10505         fsync: Move AC_LIBOBJ invocations to module description.
10506         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10507         invocations from here...
10508         * modules/fsync (configure.ac): ... to here.
10509
10510 2011-05-07  Bruno Haible  <bruno@clisp.org>
10511
10512         fsusage: Move AC_LIBOBJ invocations to module description.
10513         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10514         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10515         * modules/fsusage (configure.ac): ... to here.
10516
10517 2011-05-07  Bruno Haible  <bruno@clisp.org>
10518
10519         freopen: Move AC_LIBOBJ invocations to module description.
10520         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10521         invocations from here...
10522         * modules/freopen (configure.ac): ... to here.
10523
10524 2011-05-07  Bruno Haible  <bruno@clisp.org>
10525
10526         free: Move AC_LIBOBJ invocations to module description.
10527         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10528         invocations from here...
10529         * modules/free (configure.ac): ... to here.
10530
10531 2011-05-07  Bruno Haible  <bruno@clisp.org>
10532
10533         freadable: Move AC_LIBOBJ invocations to module description.
10534         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10535         here...
10536         * modules/freadable (configure.ac): ... to here.
10537
10538 2011-05-07  Bruno Haible  <bruno@clisp.org>
10539
10540         fpurge: Move AC_LIBOBJ invocations to module description.
10541         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10542         invocations from here...
10543         * modules/fpurge (configure.ac): ... to here.
10544
10545 2011-05-07  Bruno Haible  <bruno@clisp.org>
10546
10547         fpending: Move AC_LIBOBJ invocations to module description.
10548         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10549         gl_FUNC_FPENDING.
10550         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10551         invocations from here...
10552         * modules/fpending (configure.ac): ... to here.
10553
10554 2011-05-07  Bruno Haible  <bruno@clisp.org>
10555
10556         fopen: Move AC_LIBOBJ invocations to module description.
10557         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10558         invocations from here...
10559         * modules/fopen (configure.ac): ... to here.
10560
10561 2011-05-07  Bruno Haible  <bruno@clisp.org>
10562
10563         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10564         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10565         gl_FUNC_FNMATCH_POSIX.
10566         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10567         invocations from here...
10568         * modules/fnmatch (configure.ac): ... to here.
10569         * modules/fnmatch-gnu (configure.ac): ... and here.
10570
10571 2011-05-07  Bruno Haible  <bruno@clisp.org>
10572
10573         flock: Move AC_LIBOBJ invocations to module description.
10574         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10575         invocations from here...
10576         * modules/flock (configure.ac): ... to here.
10577
10578 2011-05-07  Bruno Haible  <bruno@clisp.org>
10579
10580         fileblocks: Move AC_LIBOBJ invocations to module description.
10581         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10582         gl_PREREQ_FILEBLOCKS invocations from here...
10583         * modules/fileblocks (configure.ac): ... to here.
10584
10585 2011-05-06  Bruno Haible  <bruno@clisp.org>
10586
10587         fflush: Move AC_LIBOBJ invocations to module description.
10588         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10589         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10590         invocations from here...
10591         * modules/fflush (configure.ac): ... to here.
10592
10593 2011-05-06  Bruno Haible  <bruno@clisp.org>
10594
10595         fdopendir: Move AC_LIBOBJ invocations to module description.
10596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10597         here...
10598         * modules/fdopendir (configure.ac): ... to here.
10599         (Depends-on): Improve conditions.
10600
10601 2011-05-06  Bruno Haible  <bruno@clisp.org>
10602
10603         _Exit: Move AC_LIBOBJ invocations to module description.
10604         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10605         invocations from here...
10606         * modules/_Exit (configure.ac): ... to here.
10607
10608 2011-05-21  Bruno Haible  <bruno@clisp.org>
10609
10610         euidaccess: Respect rules for use of AC_LIBOBJ.
10611         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10613         from here...
10614         * modules/euidaccess (configure.ac): ... to here.
10615
10616 2011-05-06  Bruno Haible  <bruno@clisp.org>
10617
10618         error: Move AC_LIBOBJ invocations to module description.
10619         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10620         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10621         invocations from here...
10622         * modules/error (configure.ac): ... to here.
10623
10624 2011-05-06  Bruno Haible  <bruno@clisp.org>
10625
10626         duplocale: Move AC_LIBOBJ invocations to module description.
10627         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10628         gl_PREREQ_DUPLOCALE invocations from here...
10629         * modules/duplocale (configure.ac): ... to here.
10630
10631 2011-05-05  Bruno Haible  <bruno@clisp.org>
10632
10633         dirfd: Move AC_LIBOBJ invocations to module description.
10634         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10635         gl_FUNC_DIRFD.
10636         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10637         here...
10638         * modules/dirfd (configure.ac): ... to here.
10639         (Depends-on): Fix condition.
10640
10641 2011-05-05  Bruno Haible  <bruno@clisp.org>
10642
10643         chown: Respect rules for use of AC_LIBOBJ.
10644         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10645         * modules/chown (configure.ac): ... to here.
10646
10647 2011-05-05  Bruno Haible  <bruno@clisp.org>
10648
10649         chdir-long: Move AC_LIBOBJ invocations to module description.
10650         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10651         gl_PREREQ_CHDIR_LONG invocations from here...
10652         * modules/chdir-long (configure.ac): ... to here.
10653
10654 2011-05-05  Bruno Haible  <bruno@clisp.org>
10655
10656         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10657         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10658         from here...
10659         * modules/canonicalize-lgpl (configure.ac): ... to here.
10660
10661 2011-05-05  Bruno Haible  <bruno@clisp.org>
10662
10663         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10664         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10665         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10666         REPLACE_CALLOC.
10667         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10668         * modules/calloc-gnu (configure.ac): Likewise.
10669
10670 2011-05-05  Bruno Haible  <bruno@clisp.org>
10671
10672         btowc: Move AC_LIBOBJ invocations to module description.
10673         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10674         invocations from here...
10675         * modules/btowc (configure.ac): ... to here.
10676
10677 2011-05-21  Bruno Haible  <bruno@clisp.org>
10678
10679         atexit: Move AC_LIBOBJ invocations to module description.
10680         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10682         here...
10683         * modules/atexit (configure.ac): ... to here.
10684
10685 2011-05-05  Bruno Haible  <bruno@clisp.org>
10686
10687         atoll: Move AC_LIBOBJ invocations to module description.
10688         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10689         invocations from here...
10690         * modules/atoll (configure.ac): ... to here.
10691
10692 2011-05-05  Bruno Haible  <bruno@clisp.org>
10693
10694         argz: Move AC_LIBOBJ invocations to module description.
10695         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10696         * modules/argz (configure.ac): ... to here.
10697
10698 2011-05-05  Bruno Haible  <bruno@clisp.org>
10699
10700         alphasort: Move AC_LIBOBJ invocations to module description.
10701         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10702         gl_PREREQ_ALPHASORT invocations from here...
10703         * modules/alphasort (configure.ac): ... to here.
10704
10705 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         verify: new macro verify_expr; verify_true deprecated
10708         * NEWS: Mention this.
10709         * doc/verify.texi (Compile-time Assertions): Document this.
10710         * lib/verify.h (verify_true): Deprecate.
10711         (verify_expr): New macro.
10712         * tests/test-verify.c (function): Test verify_expr.
10713
10714 2011-06-14  Jim Meyering  <meyering@redhat.com>
10715
10716         init.sh: give more portable redirection-related advice in a comment
10717         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10718         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10719         for lots of discussion.  Stefano Lattarini suggested the solution
10720         of putting "9>&2" after the command.  Reported by Bruno Haible.
10721
10722 2011-06-13  Bruno Haible  <bruno@clisp.org>
10723
10724         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10725         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10726         'none'.
10727
10728 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10729
10730         ftoastr: use strtof only if HAVE_STRTOF
10731         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10733         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10734         * modules/ftoastr (configure.ac): Check for strtof.
10735
10736 2011-06-13  Bruno Haible  <bruno@clisp.org>
10737
10738         gnulib-tool: Addendum to 2011-06-08 commit.
10739         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10740         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10741
10742 2011-06-13  Bruno Haible  <bruno@clisp.org>
10743
10744         fseeko: Provide a non-inline replacement of fseek().
10745         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10746         * modules/fseeko (Depends-on): Add fseek.
10747         * modules/fseek (License): Change to LGPLv2+.
10748
10749 2011-06-13  Bruno Haible  <bruno@clisp.org>
10750
10751         ftello: Provide a non-inline replacement of ftell().
10752         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10753         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10754         not have ftello() (such as on mingw).
10755         * modules/ftello (Depends-on): Add ftell.
10756         * modules/ftell (License): Change to LGPLv2+.
10757
10758 2011-05-07  Bruno Haible  <bruno@clisp.org>
10759
10760         ftell: Move AC_LIBOBJ invocations to module description.
10761         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10762         * modules/ftell (configure.ac): ... to here.
10763
10764 2011-05-07  Bruno Haible  <bruno@clisp.org>
10765
10766         ftello: Respect rules for use of AC_LIBOBJ.
10767         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10768         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10769         here...
10770         * modules/ftello (configure.ac): ... to here.
10771
10772 2011-05-07  Bruno Haible  <bruno@clisp.org>
10773
10774         fseeko: Simplify.
10775         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10776         (gl_FUNC_FSEEKO): Inline it here.
10777
10778 2011-05-07  Bruno Haible  <bruno@clisp.org>
10779
10780         fseek: Move AC_LIBOBJ invocations to module description.
10781         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10782         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10783         * modules/fseek (configure.ac): ... to here.
10784
10785 2011-05-07  Bruno Haible  <bruno@clisp.org>
10786
10787         fseek: Respect rules for use of AC_LIBOBJ.
10788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10789         here...
10790         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10791
10792 2011-05-07  Bruno Haible  <bruno@clisp.org>
10793
10794         fseeko: Respect rules for use of AC_LIBOBJ.
10795         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10796         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10797         here...
10798         * modules/fseeko (configure.ac): ... to here.
10799
10800 2011-06-13  Bruno Haible  <bruno@clisp.org>
10801
10802         gnulib-tool: Allow comments in the 'Depends-on' section.
10803         * doc/gnulib.texi (Module description): Mention comment syntax in the
10804         Depends-on section.
10805         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10806
10807 2011-06-13  Bruno Haible  <bruno@clisp.org>
10808
10809         file-set.h: guard __attibute__ use, now that it's not always defined
10810         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10811         versions that support it.  This fixes a coreutils build failure with
10812         the vendor cc on HP-UX 11.31.
10813
10814 2011-06-12  Bruno Haible  <bruno@clisp.org>
10815
10816         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10817         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10818         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10819         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10820         (acl, aclsort): New declarations.
10821         (aclv_nontrivial): New declaration.
10822         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10823         (file_has_acl): Read also the second kind of HP-UX ACLs.
10824         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10825         kind of HP-UX ACLs if the first kind fails.
10826         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10827         second kind of HP-UX ACLs.
10828         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10829         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10830         agree.
10831         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10832         hpuxjfs.
10833         Handle hpuxjfs.
10834         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10835         hpuxjfs.
10836         Handle hpuxjfs.
10837         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10838         (func_test_same_acls): Use both lsacl and getacl.
10839         Handle hpuxjfs.
10840         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10841         (func_test_same_acls): Use both lsacl and getacl.
10842         Handle hpuxjfs.
10843
10844 2011-06-12  Bruno Haible  <bruno@clisp.org>
10845
10846         acl: Complete the 2010-08-10 fix.
10847         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10848         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10849         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10850         explicitly.
10851         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10852         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10853
10854 2011-06-12  Bruno Haible  <bruno@clisp.org>
10855
10856         spawn-pipe tests: Comments.
10857         * tests/test-spawn-pipe-child.c (main): Update comment.
10858         Reported by James Youngman <jay@gnu.org>.
10859
10860 2011-06-11  James Youngman  <jay@gnu.org>
10861
10862         New module 'stat-size'.
10863         * modules/stat-size: New module.  Provides macros for accessing
10864         file size information in instances of struct stat.  Depends on the
10865         fileblocks module because it calls st_blocks.
10866         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10867         * doc/gnulib.texi: Include stat-size.texi.
10868         * doc/stat-size.texi: Documentation for this module.
10869         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10870         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10871         AC_STRUCT_ST_BLOCKS.
10872
10873 2011-06-09  Bruno Haible  <bruno@clisp.org>
10874
10875         thread: Support pthreads-win32.
10876         * lib/glthread/thread.h (gl_thread_self): Define differently on
10877         pthreads-win32.
10878         (gl_null_thread): New declaration.
10879         (gl_thread_self_pointer): New macro.
10880         * lib/glthread/thread.c (gl_null_thread): New constant.
10881         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10882         gl_thread_self.
10883         * tests/test-tls.c: Likewise.
10884         Suggested by Paul Eggert. Reported by Eric Blake.
10885
10886 2011-06-09  Bruno Haible  <bruno@clisp.org>
10887
10888         thread: Fix confusion between NULL and 0.
10889         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10890         Reported by Paul Eggert.
10891
10892 2011-06-09  Bruno Haible  <bruno@clisp.org>
10893
10894         spawn-pipe tests: Avoid test failure on HP-UX 11.
10895         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10896         is closed.
10897
10898 2011-06-09  Bruno Haible  <bruno@clisp.org>
10899
10900         acl tests: Fix compilation error on HP-UX 11.
10901         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10902
10903 2011-06-09  Bruno Haible  <bruno@clisp.org>
10904
10905         rmdir: Avoid test failure on HP-UX 10.20.
10906         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10907         EEXIST.
10908
10909 2011-06-08  Eric Blake  <eblake@redhat.com>
10910
10911         perror: fix test on mingw
10912         * modules/perror-tests (Depends-on): Add dup2.
10913
10914         strerror_r-posix: fix on MacOS
10915         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10916         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10917         logic bug.
10918         * lib/strerror_r.c (strerror_r): Fix the bug.
10919         * lib/strerror.c (strerror): Likewise.
10920         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10921         problem.
10922         * doc/posix-functions/strerror.texi (strerror): Likewise.
10923         * doc/posix-functions/perror.texi (perror): Likewise.
10924         * tests/test-strerror.c (main): Enhance test.
10925         * tests/test-strerror_r.c (main): Likewise.
10926
10927 2011-06-08  Bruno Haible  <bruno@clisp.org>
10928
10929         gnulib-tool: Better isolation between different gnulib-tool invocations.
10930         * gnulib-tool: New option --witness-c-macro.
10931         (witness_c_macro): New variable.
10932         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10933         AM_CPPFLAGS define it as a C macro.
10934         (func_emit_tests_Makefile_am): Likewise.
10935         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10936         read it from there.
10937         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10938         m4_define, not AC_DEFUN.
10939         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10940         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10941         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10942         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10943         s|...|...|, to substitute the values of the GNULIB_* module indicator
10944         variables.
10945         * modules/dirent (Makefile.am): Likewise.
10946         * modules/fcntl-h (Makefile.am): Likewise.
10947         * modules/iconv-h (Makefile.am): Likewise.
10948         * modules/langinfo (Makefile.am): Likewise.
10949         * modules/locale (Makefile.am): Likewise.
10950         * modules/math (Makefile.am): Likewise.
10951         * modules/netdb (Makefile.am): Likewise.
10952         * modules/poll-h (Makefile.am): Likewise.
10953         * modules/pty (Makefile.am): Likewise.
10954         * modules/search (Makefile.am): Likewise.
10955         * modules/signal (Makefile.am): Likewise.
10956         * modules/spawn (Makefile.am): Likewise.
10957         * modules/stdio (Makefile.am): Likewise.
10958         * modules/stdlib (Makefile.am): Likewise.
10959         * modules/string (Makefile.am): Likewise.
10960         * modules/sys_ioctl (Makefile.am): Likewise.
10961         * modules/sys_select (Makefile.am): Likewise.
10962         * modules/sys_socket (Makefile.am): Likewise.
10963         * modules/sys_stat (Makefile.am): Likewise.
10964         * modules/sys_times (Makefile.am): Likewise.
10965         * modules/sys_utsname (Makefile.am): Likewise.
10966         * modules/sys_wait (Makefile.am): Likewise.
10967         * modules/termios (Makefile.am): Likewise.
10968         * modules/time (Makefile.am): Likewise.
10969         * modules/unistd (Makefile.am): Likewise.
10970         * modules/wchar (Makefile.am): Likewise.
10971
10972 2011-06-08  Eric Blake  <eblake@redhat.com>
10973
10974         strerror: simplify replacement
10975         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10976         * modules/strerror (configure.ac): No prereqs needed here...
10977         * modules/strerror-override (configure.ac): ...but this needs it.
10978         (Files): Add file for needed prereq macro.
10979
10980 2011-06-08  Bruno Haible  <bruno@clisp.org>
10981
10982         strerror_r-posix: Tweaks.
10983         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10984         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10985         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10986         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10987         (gl_FUNC_STRERROR_R): ... to here.
10988         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10989
10990 2011-06-07  Eric Blake  <eblake@redhat.com>
10991
10992         perror: document fixed bugs
10993         * doc/posix-functions/perror.texi (perror): Document recent
10994         patches.
10995
10996 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10997
10998         stat-time: get_stat_birthtime failure is better-defined
10999         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11000         return a timestamp whose tv_sec and tv_nsec values are both -1.
11001         Previously, the spec said only that the tv_nsec value was negative.
11002         This upward-compatible change simplifies GNU tar a bit.
11003
11004 2011-06-07  Eric Blake  <eblake@redhat.com>
11005
11006         strerror_r-posix: work around cygwin 1.7.9
11007         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11008         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11009         bug without replacing strerror_r.
11010         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11011         strerror_r is buggy, but without requiring strerror_r compilation.
11012         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11013
11014         test-perror: relax test to ignore cygwin bug
11015         * tests/test-perror2.c (main): Relax test on requiring detection
11016         of stream errors, and use unbuffered stream.
11017         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11018         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11019         * doc/posix-functions/fputc.texi (fputc): Likewise.
11020         * doc/posix-functions/fputs.texi (fputs): Likewise.
11021         * doc/posix-functions/fputws.texi (fputws): Likewise.
11022         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11023         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11024         * doc/posix-functions/getopt.texi (getopt): Likewise.
11025         * doc/posix-functions/perror.texi (perror): Likewise.
11026         * doc/posix-functions/printf.texi (printf): Likewise.
11027         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11028         * doc/posix-functions/psignal.texi (psignal): Likewise.
11029         * doc/posix-functions/putc.texi (putc): Likewise.
11030         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11031         Likewise.
11032         * doc/posix-functions/putchar.texi (putchar): Likewise.
11033         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11034         Likewise.
11035         * doc/posix-functions/puts.texi (puts): Likewise.
11036         * doc/posix-functions/putwc.texi (putwc): Likewise.
11037         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11038         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11039         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11040         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11041         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11042         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11043         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11044         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11045
11046 2011-05-22  Bruno Haible  <bruno@clisp.org>
11047
11048         strerror: Move AC_LIBOBJ invocations to module description.
11049         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11050         gl_PREREQ_STRERROR invocations from here...
11051         * modules/strerror (configure.ac): ... to here.
11052
11053 2011-05-21  Bruno Haible  <bruno@clisp.org>
11054
11055         perror: Use common idiom.
11056         * modules/perror (configure.ac): Reorder statements.
11057
11058 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11059
11060         tests: fix usage message in 'mktempd_'
11061         * tests/init.sh (mktempd_): In the usage message, use literal
11062         'mktempd_', not '$ME' (which is even undefined), as the name of
11063         the subroutine.
11064
11065 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11066
11067         tests init: new function 'fatal_', for hard errors
11068         Before this patch, the only way offered by tests/init.sh to
11069         properly signal a hard error was the `framework_failure_'
11070         function.  But the error message issued by that function,
11071         as its name would suggest, refers to a set-up failure in the
11072         testsuite, while hard errors can obviously also be due to
11073         other reasons.  The best way to fix this inconsistency is to
11074         introduce a new function with a more general error message.
11075         * tests/init.sh (fatal_): New function.
11076
11077 2011-06-06  Eric Blake  <eblake@redhat.com>
11078
11079         canonicalize-lgpl: use common idiom
11080         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11081         over newer POSIX -Rf.
11082         Reported by Bruno Haible.
11083
11084         canonicalize-lgpl: work around AIX realpath bug
11085         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11086         * doc/posix-functions/realpath.texi (realpath): Document it.
11087         Reported by Bruno Haible.
11088
11089         strerror: work around FreeBSD bug
11090         * lib/strerror.c (strerror): Special case 0.
11091         Reported by Bruno Haible.
11092
11093         strerror-override: avoid bloating errno module
11094         * modules/errno (Files, configure.ac): Move replacement strings...
11095         * modules/strerror-override: ...to new module.
11096         * modules/strerror (Depends-on): Add strerror-override.
11097         * modules/strerror_r-posix (Depends-on): Likewise.
11098         * MODULES.html.sh: Document new module.
11099         Reported by Bruno Haible.
11100
11101 2011-06-06  Bruno Haible  <bruno@clisp.org>
11102
11103         spawn-pipe tests: Rename program.
11104         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11105         * tests/test-spawn-pipe-child.c: Update comment.
11106         * tests/test-spawn-pipe.sh: Update.
11107         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11108
11109         spawn-pipe tests: Link the child program only against libc.
11110         * tests/test-spawn-pipe-child.c: New file, extracted from
11111         tests/test-spawn-pipe.c.
11112         (main): Expect only one argument.
11113         (is_open): New function, copied from tests/test-pipe.c.
11114         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11115         (child_main): Remove function.
11116         (test_pipe): Pass only one argument to the child program.
11117         (main): Remove child process code. Expect the child program's name as
11118         first argument.
11119         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11120         argument.
11121         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11122         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11123         test-spawn-pipe-child against no libraries.
11124
11125 2011-06-06  Bruno Haible  <bruno@clisp.org>
11126
11127         careadlinkat: Avoid mismatch between ssize_t and int.
11128         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11129         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11130
11131 2011-06-06  Jim Meyering  <meyering@redhat.com>
11132
11133         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11134         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11135         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11136
11137 2011-06-05  Bruno Haible  <bruno@clisp.org>
11138
11139         ansi-c++-opt: Interoperability with libtool.
11140         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11141         set the variable to "no", not to ":".
11142         * NEWS: Mention the change.
11143
11144 2011-06-05  Bruno Haible  <bruno@clisp.org>
11145
11146         acl: Fix test failure on AIX 7.
11147         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11148         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11149
11150 2011-06-05  Bruno Haible  <bruno@clisp.org>
11151
11152         pipe-filter-ii: Fix test failure on AIX and IRIX.
11153         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11154         with EAGAIN, retry with a smaller buffer size.
11155
11156 2011-06-05  Bruno Haible  <bruno@clisp.org>
11157
11158         localename: Fix link dependencies.
11159         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11160         * modules/localename-tests (Makefile.am): Link test-localename with
11161         $(LIBTHREAD).
11162
11163 2011-06-05  Bruno Haible  <bruno@clisp.org>
11164
11165         error: Avoid gcc warning.
11166         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11167
11168 2011-06-05  Bruno Haible  <bruno@clisp.org>
11169
11170         unsetenv: Avoid gcc warning.
11171         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11172
11173 2011-06-05  Bruno Haible  <bruno@clisp.org>
11174
11175         setenv: Avoid gcc warning.
11176         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11177
11178 2011-06-05  Bruno Haible  <bruno@clisp.org>
11179
11180         sys_select: Ensure memset is declared also on AIX 7.
11181         * lib/sys_select.in.h: Include <string.h> also on AIX.
11182         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11183         self-contained also on AIX 7.1.
11184
11185 2011-06-04  Jim Meyering  <meyering@redhat.com>
11186
11187         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11188         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11189         function name, "error".
11190         (_gl_translatable_diag_func_re): New configurable variable.
11191
11192 2011-06-04  Bruno Haible  <bruno@clisp.org>
11193
11194         getopt: Avoid gcc warning.
11195         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11196
11197 2011-06-04  Bruno Haible  <bruno@clisp.org>
11198
11199         strerror_r: Fix comments.
11200         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11201         commit.
11202
11203 2011-06-04  Bruno Haible  <bruno@clisp.org>
11204
11205         perror: Fix compilation error.
11206         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11207         Undefine fprintf, not sprintf.
11208         * modules/perror (Depends-on): Remove intprops, verify.
11209
11210 2011-06-04  Bruno Haible  <bruno@clisp.org>
11211
11212         setlocale: Enable replacement on Cygwin 1.5.
11213         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11214         Cygwin 1.5.x.
11215         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11216         LC_CTYPE category also exists on Cygwin 1.5.x.
11217
11218 2011-06-04  Bruno Haible  <bruno@clisp.org>
11219
11220         strerror-override: Don't disable symbol renamings.
11221         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11222         * lib/strerror-override.c: Include config.h.
11223         (strerror_override): Don't undefine.
11224
11225 2011-06-03  Bruno Haible  <bruno@clisp.org>
11226
11227         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11228         * lib/localename.h: Update copyright header.
11229         * lib/localename.c: Likewise.
11230         * lib/relocatable.h: Likewise.
11231         * lib/relocatable.c: Likewise.
11232
11233 2011-06-02  Bruno Haible  <bruno@clisp.org>
11234
11235         doc: Fix a module name.
11236         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11237
11238 2011-06-02  Bruno Haible  <bruno@clisp.org>
11239
11240         pipe2: Remove dependency on 'nonblocking' module.
11241         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11242         O_NONBLOCK is defined by gnulib.
11243         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11244         is zero.
11245         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11246         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11247         defined by gnulib.
11248         (get_nonblocking_flag): New function.
11249         (main): Test O_NONBLOCK flag only if it is nonzero.
11250         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11251
11252 2011-06-03  Jim Meyering  <meyering@redhat.com>
11253
11254         maint: three new prohibit-header-without-use rules
11255         Prohibit use of cloexec.h, posixver.h, same.h without use.
11256         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11257         (sc_prohibit_posixver_without_use): Likewise.
11258         (sc_prohibit_same_without_use): Likewise.
11259
11260 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11261
11262         allocator: 'die' routine is now given requested size
11263         * lib/allocator.h (struct allocator.die): New size arg.
11264         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11265         If the actual problem is an ssize_t limitation, not a size_t or
11266         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11267
11268 2011-06-01  Eric Blake  <eblake@redhat.com>
11269
11270         strerror: drop strerror_r dependency
11271         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11272         * lib/strerror-override.c (strerror_override): ...to new file.
11273         * lib/strerror-override.h: Add prototype.
11274         * lib/strerror-impl.h: Delete.
11275         * lib/strerror.c (strerror): New implementation.
11276         * modules/errno (Files): Add new files.
11277         (configure.ac): Compile new file as appropriate.
11278         * modules/strerror (Files): Drop unused file.
11279         (Depends-on): Drop strerror_r-posix.
11280         * MODULES.html.sh: Document strerror_r-posix.
11281         Requested by Sam Steingold.
11282
11283         perror: call strerror_r directly
11284         * modules/perror (Files): Drop strerror-impl.h.
11285         * lib/perror.c (perror): Use our own stack buffer, rather than
11286         calling a wrapper that uses static storage.
11287         * doc/posix-functions/perror.texi (perror): Document a limitation
11288         of our replacement.
11289
11290         strerror_r: fix includes for FreeBSD
11291         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11292         since we use abort on some platforms.
11293         Reported by Matthias Bolte.
11294
11295 2011-05-31  Bruno Haible  <bruno@clisp.org>
11296
11297         Fix link errors in tests: openat-die uses gettext-h.
11298         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11299         against $(LIBINTL).
11300         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11301         against $(LIBINTL).
11302         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11303         $(LIBINTL).
11304         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11305         against $(LIBINTL).
11306         * modules/linkat-tests (Makefile.am): Link test-linkat against
11307         $(LIBINTL).
11308         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11309         $(LIBINTL).
11310         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11311         against $(LIBINTL).
11312         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11313         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11314         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11315         $(LIBINTL).
11316         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11317         $(LIBINTL).
11318         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11319         $(LIBINTL).
11320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11321
11322 2011-05-31  Bruno Haible  <bruno@clisp.org>
11323
11324         Fix link errors in tests: wait-process uses gettext-h.
11325         * modules/nonblocking-pipe-tests (Makefile.am): Set
11326         test_nonblocking_pipe_main_LDADD.
11327         * modules/nonblocking-socket-tests (Makefile.am): Link
11328         test-nonblocking-socket-main against $(LIBINTL).
11329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11330
11331 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11332
11333         assert-h: work around 'verify' incompatibility
11334         * lib/verify.h: Use @...@ directives, not ifdef.
11335         * modules/assert-h (assert.h): Implement the directives.
11336         (assert.h): Substitute the symbol-prefix more consistently.
11337
11338 2011-05-29  Jim Meyering  <meyering@redhat.com>
11339
11340         trim: remove three superfluous assignments
11341         * lib/trim.c (trim2): Remove three superfluous assignments
11342         and correct brace positioning.
11343
11344 2011-05-29  Bruno Haible  <bruno@clisp.org>
11345
11346         wctype-h: Avoid namespace pollution on Solaris 2.6.
11347         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11348         identifiers.
11349         * doc/posix-headers/wctype.texi: Mention the problem.
11350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11351
11352 2011-05-28  Jim Meyering  <meyering@redhat.com>
11353
11354         parse-datetime.y: accommodate -Wstrict-overflow
11355         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11356         placate -Wstrict-overflow.
11357
11358         trim: avoid a warning from -O2 -Wstrict-overflow
11359         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11360
11361 2011-05-29  Bruno Haible  <bruno@clisp.org>
11362
11363         gnulib-tool: Fix bug in yesterday's commit.
11364         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11365         twice.
11366
11367 2011-05-29  Bruno Haible  <bruno@clisp.org>
11368
11369         Allow multiple gnulib generated include files to be combined.
11370         * gnulib-tool (func_compute_include_guard_prefix): New function.
11371         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11372         ${gl_include_guard_prefix} references.
11373         (func_import, func_create_testdir): Invoke
11374         func_compute_include_guard_prefix.
11375         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11376         * lib/ctype.in.h: Likewise.
11377         * lib/dirent.in.h: Likewise.
11378         * lib/errno.in.h: Likewise.
11379         * lib/fcntl.in.h: Likewise.
11380         * lib/float.in.h: Likewise.
11381         * lib/getopt.in.h: Likewise.
11382         * lib/iconv.in.h: Likewise.
11383         * lib/langinfo.in.h: Likewise.
11384         * lib/locale.in.h: Likewise.
11385         * lib/math.in.h: Likewise.
11386         * lib/netdb.in.h: Likewise.
11387         * lib/netinet_in.in.h: Likewise.
11388         * lib/poll.in.h: Likewise.
11389         * lib/pthread.in.h: Likewise.
11390         * lib/pty.in.h: Likewise.
11391         * lib/sched.in.h: Likewise.
11392         * lib/se-selinux.in.h: Likewise.
11393         * lib/search.in.h: Likewise.
11394         * lib/signal.in.h: Likewise.
11395         * lib/spawn.in.h: Likewise.
11396         * lib/stdarg.in.h: Likewise.
11397         * lib/stddef.in.h: Likewise.
11398         * lib/stdint.in.h: Likewise.
11399         * lib/stdio.in.h: Likewise.
11400         * lib/stdlib.in.h: Likewise.
11401         * lib/string.in.h: Likewise.
11402         * lib/strings.in.h: Likewise.
11403         * lib/sys_file.in.h: Likewise.
11404         * lib/sys_ioctl.in.h: Likewise.
11405         * lib/sys_select.in.h: Likewise.
11406         * lib/sys_socket.in.h: Likewise.
11407         * lib/sys_stat.in.h: Likewise.
11408         * lib/sys_time.in.h: Likewise.
11409         * lib/sys_times.in.h: Likewise.
11410         * lib/sys_uio.in.h: Likewise.
11411         * lib/sys_utsname.in.h: Likewise.
11412         * lib/sys_wait.in.h: Likewise.
11413         * lib/sysexits.in.h: Likewise.
11414         * lib/termios.in.h: Likewise.
11415         * lib/time.in.h: Likewise.
11416         * lib/unistd.in.h: Likewise.
11417         * lib/wchar.in.h: Likewise.
11418         * lib/wctype.in.h: Likewise.
11419         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11420         * modules/ctype (Makefile.am): Likewise.
11421         * modules/dirent (Makefile.am): Likewise.
11422         * modules/errno (Makefile.am): Likewise.
11423         * modules/fcntl-h (Makefile.am): Likewise.
11424         * modules/float (Makefile.am): Likewise.
11425         * modules/getopt-posix (Makefile.am): Likewise.
11426         * modules/iconv-h (Makefile.am): Likewise.
11427         * modules/langinfo (Makefile.am): Likewise.
11428         * modules/locale (Makefile.am): Likewise.
11429         * modules/math (Makefile.am): Likewise.
11430         * modules/netdb (Makefile.am): Likewise.
11431         * modules/netinet_in (Makefile.am): Likewise.
11432         * modules/poll-h (Makefile.am): Likewise.
11433         * modules/pthread (Makefile.am): Likewise.
11434         * modules/pty (Makefile.am): Likewise.
11435         * modules/sched (Makefile.am): Likewise.
11436         * modules/search (Makefile.am): Likewise.
11437         * modules/selinux-h (Makefile.am): Likewise.
11438         * modules/signal (Makefile.am): Likewise.
11439         * modules/spawn (Makefile.am): Likewise.
11440         * modules/stdarg (Makefile.am): Likewise.
11441         * modules/stddef (Makefile.am): Likewise.
11442         * modules/stdint (Makefile.am): Likewise.
11443         * modules/stdio (Makefile.am): Likewise.
11444         * modules/stdlib (Makefile.am): Likewise.
11445         * modules/string (Makefile.am): Likewise.
11446         * modules/strings (Makefile.am): Likewise.
11447         * modules/sys_file (Makefile.am): Likewise.
11448         * modules/sys_ioctl (Makefile.am): Likewise.
11449         * modules/sys_select (Makefile.am): Likewise.
11450         * modules/sys_socket (Makefile.am): Likewise.
11451         * modules/sys_stat (Makefile.am): Likewise.
11452         * modules/sys_time (Makefile.am): Likewise.
11453         * modules/sys_times (Makefile.am): Likewise.
11454         * modules/sys_uio (Makefile.am): Likewise.
11455         * modules/sys_utsname (Makefile.am): Likewise.
11456         * modules/sys_wait (Makefile.am): Likewise.
11457         * modules/sysexits (Makefile.am): Likewise.
11458         * modules/termios (Makefile.am): Likewise.
11459         * modules/time (Makefile.am): Likewise.
11460         * modules/unistd (Makefile.am): Likewise.
11461         * modules/wchar (Makefile.am): Likewise.
11462         * modules/wctype-h (Makefile.am): Likewise.
11463         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11464
11465 2011-05-29  Bruno Haible  <bruno@clisp.org>
11466
11467         assert-h: Allow multiple gnulib generated replacements to coexist.
11468         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11469
11470 2011-05-29  Bruno Haible  <bruno@clisp.org>
11471
11472         argp: Allow coexistence with strerror_r-posix module.
11473         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11474         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11475         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11476         not the glibc signature.
11477
11478 2011-05-28  Bruno Haible  <bruno@clisp.org>
11479
11480         gnulib-tool: Alternative structure of testdirs, similar to --import.
11481         * gnulib-tool: New option --single-configure.
11482         (func_usage): Document it.
11483         (single_configure): New variable.
11484         (func_modules_transitive_closure_separately,
11485         func_modules_transitive_closure_separately,
11486         func_determine_use_libtests, func_modules_add_dummy_separately,
11487         func_modules_to_filelist_separately): New functions, extracted from
11488         func_import.
11489         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11490         (func_import): Use the new functions.
11491         (func_create_testdir): Set final_modules. Handle $single_configure =
11492         true case.
11493
11494 2011-05-28  Bruno Haible  <bruno@clisp.org>
11495
11496         getloadavg: Remove an unreliable safety check.
11497         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11498         getloadavg.c is in place.
11499         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11500         Reported by Sam Steingold <sds@gnu.org>.
11501
11502 2011-05-28  Bruno Haible  <bruno@clisp.org>
11503
11504         doc: Cleanup yet another file produced by texinfo.tex.
11505         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11506
11507 2011-05-28  Bruno Haible  <bruno@clisp.org>
11508
11509         Finish the conditional dependencies mechanism.
11510         * gnulib-tool: New option --no-conditional-dependencies.
11511         (func_usage): Document it. Don't mark --conditional-dependencies as
11512         experimental.
11513         (cond_dependencies): The possible values can now be true, false, empty.
11514         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11515         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11516         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11517
11518 2011-05-28  Bruno Haible  <bruno@clisp.org>
11519
11520         doc: Use a recent texinfo.tex.
11521         * doc/Makefile (tex_opts): New variable.
11522         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11523
11524 2011-05-28  Jim Meyering  <meyering@redhat.com>
11525
11526         intprops.h: adjust comment to match code change
11527         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11528         only once, it *may* have side effects.  Also fix an unrelated typo.
11529         (_GL_INT_SIGNED): Likewise.
11530
11531 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11532
11533         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11534
11535 2011-05-26  Bruno Haible  <bruno@clisp.org>
11536
11537         mbsrchr: Avoid collision with system function on Interix.
11538         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11539         Reported by Markus Duft <mduft@gentoo.org>.
11540
11541 2011-05-15  James Youngman  <jay@gnu.org>
11542
11543         getopt: for ambiguous options, enumerate the possibilities.
11544         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11545         the ambiguous options when an ambiguous prefix is given. This was
11546         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11547         glibc change was
11548         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11549
11550 2011-05-25  Eric Blake  <eblake@redhat.com>
11551
11552         getcwd: work around mingw bug
11553         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11554         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11555         Reported by Matthias Bolte.
11556
11557 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11558
11559         test-intprops: disable -Wtype-limits diagnostics
11560         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11561         diagnostics.  Otherwise, the integer overflow macros generate many
11562         diagnostics.  Reported by Jim Meyering in
11563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11564
11565         intprops: shorten, to pacify gcc -Woverlength-strings
11566         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11567         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11568         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11569         likely to run afoul of C compiler limits for string constant lengths.
11570         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11571
11572 2011-05-24  Eric Blake  <eblake@redhat.com>
11573
11574         docs: document recently fixed glibc printf bug
11575         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11576         * doc/posix-functions/printf.texi (printf): Likewise.
11577         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11578         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11579
11580         closein-tests: convert to init.sh
11581         * modules/closein-tests (Files): Add init.sh
11582         * tests/test-closein.sh Use it.
11583
11584         yesno-tests: convert to init.sh
11585         * modules/yesno-tests (Files): Add init.sh.
11586         * tests/test-yesno.sh: Use it.
11587
11588         atexit-tests: ensure reliable exit status
11589         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11590         Reported by Bruno Haible.
11591
11592 2011-05-24  Bruno Haible  <bruno@clisp.org>
11593
11594         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11596         gl_PREREQ_STRERROR_R invocations from here...
11597         * modules/strerror_r-posix (configure.ac): ... to here.
11598
11599 2011-05-24  Eric Blake  <eblake@redhat.com>
11600
11601         strerror_r: fix missing header
11602         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11603
11604         strerror_r: fix AIX test failures
11605         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11606         ERANGE failure.
11607
11608         strerror_r: fix Solaris test failures
11609         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11610         failures.
11611         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11612
11613         strerror_r: enforce POSIX recommendations
11614         * lib/strerror_r.c (safe_copy): New helper method.
11615         (strerror_r): Guarantee a non-empty string.
11616         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11617         recent POSIX rulings and to match our strerror guarantees.
11618         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11619
11620 2011-05-24  Jim Meyering  <meyering@redhat.com>
11621
11622         test-perror2.c: avoid warning about unused variable
11623         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11624
11625 2011-05-24  Eric Blake  <eblake@redhat.com>
11626
11627         perror: avoid spurious test failure on HP-UX
11628         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11629
11630         tests: fix logic bug in init.sh
11631         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11632         shell.
11633
11634 2011-05-24  Jim Meyering  <meyering@redhat.com>
11635
11636         utimensat: do not reference an out-of-scope buffer
11637         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11638         declared in an inner scope, yet "times" would be dereferenced outside
11639         the scope in which "ts" was valid.
11640         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11641         of ts[2] "out/up", so that the use of aliased "times" (via
11642         "times = ts;") does not end up referencing an out-of-scope "ts"
11643
11644         opendir-safer.c: don't clobber errno; don't close negative FD
11645         * lib/opendir-safer.c (opendir_safer):
11646         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11647         file descriptor, and more importantly, don't clobber the
11648         offending errno value with EINVAL.  Before, upon failure
11649         of dup_safer, we would pass the negative file descriptor to
11650         fdopendir, which would clobber errno.
11651
11652 2011-05-23  Bruno Haible  <bruno@clisp.org>
11653
11654         idcache: Fix module description.
11655         * modules/idcache (Include): Set to "idcache.h".
11656
11657 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11658
11659         gnulib-tool: fix portability problem with MacOS sed
11660         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11661         before the "}".  Problem reported by Leo in
11662         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11663         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11664         sed_extract_condition1, sed_extract_condition2.
11665
11666 2011-05-23  Bruno Haible  <bruno@clisp.org>
11667
11668         hash: Simplify autoconf macro.
11669         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11670
11671 2011-05-23  Bruno Haible  <bruno@clisp.org>
11672
11673         getugroups: Fix module description.
11674         * modules/getugroups (Include): Set to "getugroups.h".
11675
11676 2011-05-23  Bruno Haible  <bruno@clisp.org>
11677
11678         linkat: Simplify autoconf macro.
11679         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11680
11681 2011-05-23  Bruno Haible  <bruno@clisp.org>
11682             Eric Blake  <eblake@redhat.com>
11683
11684         linkat, renameat: Update dependencies.
11685         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11686         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11687         symlinkat.
11688
11689 2011-05-23  Jim Meyering  <meyering@redhat.com>
11690
11691         maint.mk: more tight_scope improvements
11692         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11693         (_gl_TS_headers): Define only in if-0'd block.
11694         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11695         sometimes we must *not* use it.  Adjust uses accordingly.
11696         (sc_tight_scope): Use much simpler grep-based test to determine
11697         whether we skip this rule.
11698
11699         maint.mk: generalize/improve the tight-scope rule
11700         * top/maint.mk: Emit a warning when the test is skipped.
11701         (_gl_TS_dir): Add $(srcdir)/ prefix.
11702         (_gl_TS_function_match): Simplify, rather than trying
11703         to enumerate common types.  Otherwise, it would fail to match an
11704         "extern unsigned char const *" declaration in idutils.
11705         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11706         a way to support use of that type of macro.
11707         (_gl_TS_var_match): Simplify regexp.
11708         (_gl_TS_obj_files): New configurable variable.
11709         (_gl_TS_headers): Likewise.
11710
11711 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11712
11713         verify: fix bug when gnulib <assert.h> is also included
11714         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11715         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11716         Perhaps there's a better way, but this fixes the immediate problem.
11717         Problem reported by Bruno Haible in
11718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11719
11720 2011-05-22  Bruno Haible  <bruno@clisp.org>
11721
11722         xgetcwd: Simplify autoconf macro.
11723         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11724
11725 2011-05-22  Bruno Haible  <bruno@clisp.org>
11726
11727         New module 'mktime-internal'.
11728         * modules/mktime-internal: New file.
11729         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11730         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11731         mktime_internal as a C macro if libc has __mktime_internal.
11732         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11733         conditions.
11734         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11735
11736 2011-05-22  Bruno Haible  <bruno@clisp.org>
11737
11738         timegm: Correct mktime replacement statements.
11739         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11740         defining mktime as a C macro. This completes a 2009-07-28 commit.
11741
11742 2011-05-22  Bruno Haible  <bruno@clisp.org>
11743
11744         timegm: Simplify autoconf macro.
11745         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11746
11747 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11748
11749         clock-time: change to LGPLv2+.
11750         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11751         BSD-like but we have no mark for that; this is good enough for now.
11752
11753 2011-05-21  Bruno Haible  <bruno@clisp.org>
11754
11755         strerror_r: Fix comments.
11756         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11757
11758 2011-05-21  Bruno Haible  <bruno@clisp.org>
11759
11760         relocatable-prog-wrapper: Fix possible link error.
11761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11762         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11763         (gl_FUNC_SETENV): ... to here.
11764         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11765         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11766
11767 2011-05-21  Bruno Haible  <bruno@clisp.org>
11768
11769         relocatable-prog-wrapper: Assume strerror() exists.
11770         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11771         m4/strerror.m4.
11772         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11773         * lib/relocwrapper.c: Remove mention of strerror module.
11774         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11775         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11776         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11777         C macro.
11778
11779 2011-05-21  Bruno Haible  <bruno@clisp.org>
11780
11781         select: Simplify replacement idiom.
11782         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11783         Win32 platforms.
11784         * lib/sys_select.in.h (select): Simplify accordingly.
11785         * modules/select (Depends-on): Likewise.
11786
11787 2011-05-21  Bruno Haible  <bruno@clisp.org>
11788
11789         mkdir-p: Simplify autoconf macro.
11790         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11791         gl_FUNC_LCHOWN.
11792
11793 2011-05-21  Eric Blake  <eblake@redhat.com>
11794
11795         strerror_r: avoid clobbering strerror on cygwin
11796         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11797         fall back instead to sys_errlist.
11798         * modules/strerror (configure.ac): Add witness.
11799         * tests/test-strerror_r.c (main): Enhance test.
11800         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11801         * tests/test-perror2.c (main): Free memory before exit.
11802
11803 2011-05-21  Bruno Haible  <bruno@clisp.org>
11804
11805         mkdtemp: Use gnulib naming conventions.
11806         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11807         * modules/mkdtemp (configure.ac): Update.
11808
11809 2011-05-20  Eric Blake  <eblake@redhat.com>
11810
11811         strerror_r: avoid corrupting errno on Solaris
11812         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11813         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11814
11815         strerror_r: avoid compiler warning
11816         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11817
11818         strerror_r: simplify AIX code
11819         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11820
11821         test-perror: avoid spurious failure on FreeBSD
11822         * modules/perror-tests (Depends-on): Add strerror, now that
11823         strerror_r no longer pulls it in.
11824
11825 2011-05-20  Bruno Haible  <bruno@clisp.org>
11826
11827         strerror_r-posix: Remove unused dependencies.
11828         * modules/strerror_r-posix (Depends-on): Remove strerror.
11829         Reported by Eric Blake.
11830
11831 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11832
11833         intprops: remove assumption about A|B representation
11834         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11835         is a valid integer if both A and B are.  Although this is true for
11836         all known practical hosts, the C standard doesn't guarantee it,
11837         and the code need not assume it.  Also, this change may work around
11838         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11840
11841 2011-05-20  Eric Blake  <eblake@redhat.com>
11842
11843         perror: work around FreeBSD bug
11844         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11845         is broken.  Move AC_LIBOBJ...
11846         * modules/perror (configure.ac): Here.
11847         * doc/posix-functions/perror.texi (perror): Document this.
11848         * tests/test-perror2.c (main): Enhance test.
11849
11850         test-perror: check for strerror interactions
11851         * tests/macros.h (STREQ): Add macro.
11852         * modules/perror-tests (Files): Add second test.
11853         * tests/test-perror2.c (main): New file.
11854         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11855
11856         test-perror: rewrite to use init script
11857         * modules/perror-tests (Files): Add init.sh.
11858         * tests/test-perror.sh: Use temporary directory.
11859
11860 2011-05-20  Jim Meyering  <meyering@redhat.com>
11861
11862         maint: replace misused "a" with "an"
11863         * doc/intprops.texi: "a integer"
11864         * doc/regex.texi: "a explanation"
11865         * lib/alignof.h: "a object"
11866         * lib/argmatch.h: "a explanation"
11867         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11868         * lib/stdint.in.h: "a integer"
11869         * lib/userspec.c: "a owner"
11870         * doc/gnulib.texi: Fix "a idea", and reword.
11871
11872 2011-05-19  Jim Meyering  <meyering@redhat.com>
11873
11874         maint: correct misuse of "a" and "an"
11875         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11876         * lib/argp-help.c: "an docum...": s/an/a/
11877         * lib/argp-parse.c: "An vector": s/An/A/
11878         * lib/execute.c: "an native": s/an/a/
11879         * lib/spawn-pipe.c: Likewise.
11880         * lib/gc.h: "an Gc_rc": s/an/a/
11881         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11882         * lib/fts.c: "an stat.st_dev": s/an/a/
11883
11884 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11885
11886         intprops-tests: work around HP-UX 11.23 cc bug with constants
11887         * tests/test-intprops.c (VERIFY): New macro.
11888         (main): Use it, instead of verify, to work around the compiler bug; see
11889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11890
11891         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11892         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11893         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11894         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11895         (_GL_REMAINDER_OVERFLOW): Use it.
11896
11897         intprops-tests: revert unsigned part of previous change
11898         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11899         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11900         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11902
11903 2011-05-19  Bruno Haible  <bruno@clisp.org>
11904
11905         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11906         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11907         strerror_r() returned without filling the buffer.
11908         Reported by Eric Blake.
11909
11910 2011-05-19  Eric Blake  <eblake@redhat.com>
11911
11912         strerror_r: guarantee unchanged errno
11913         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11914         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11915         failure.
11916         * tests/test-strerror_r.c (main): Enhance test.
11917
11918 2011-05-19  Bruno Haible  <bruno@clisp.org>
11919
11920         strerror_r: Reorder #if blocks.
11921         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11922         for consistency with the previous commit.
11923
11924 2011-05-19  Bruno Haible  <bruno@clisp.org>
11925
11926         perror: Avoid clobbering the strerror buffer when possible.
11927         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11928         * lib/strerror.c: Include it.
11929         * modules/strerror (Files): Add lib/strerror-impl.h.
11930         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11931         (my_strerror): New function, defined through lib/strerror-impl.h.
11932         (perror): Use it instead of strerror.
11933         * modules/perror (Files): Add lib/strerror-impl.h.
11934         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11935
11936 2011-05-19  Eric Blake  <eblake@redhat.com>
11937
11938         strerror_r: fix on newer cygwin
11939         * lib/strerror_r.c (strerror_r): Cygwin now has
11940         __xpg_strerror_r, use it.
11941
11942 2011-05-19  Bruno Haible  <bruno@clisp.org>
11943
11944         strerror_r: Avoid clobbering the strerror buffer when possible.
11945         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11946         (sys_nerr, sys_errlist): New declarations.
11947         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11948         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11949         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11950
11951 2011-05-19  Bruno Haible  <bruno@clisp.org>
11952
11953         strerror_r: Fix test failure on mingw.
11954         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11955         EXTEND_STRERROR_R.
11956         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11957         macros from errno.in.h instead.
11958
11959 2011-05-19  Eric Blake  <eblake@redhat.com>
11960
11961         strerror: relax test for Solaris
11962         * tests/test-strerror.c (main): Permit Solaris behavior.
11963         * tests/test-strerror_r.c (main): Likewise.
11964
11965         strerror: enforce POSIX ruling on strerror(0)
11966         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11968         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11969         * doc/posix-functions/strerror.texi (strerror): Document it.
11970         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11971         * tests/test-strerror.c (main): Strengthen test.
11972         * tests/test-strerror_r.c (main): Likewise.
11973
11974 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11975
11976         intprop-tests: port to older and more-pedantic compilers
11977         * modules/intprops-tests (Files): Add tests/macros.h.
11978         * tests/test-intprops.c: Include macros.h.
11979         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11980         it's no longer documented to expand to an integer constant expression.
11981         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11982         argument is floating point, as it's no longer documented to expand
11983         to an integer constant expression in that case.
11984         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11985         compiler bugs reported by Bruno Haible.  See
11986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11987         (U0, U1): New constants, to work around the same bugs.  Also,
11988         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11989
11990         intprops: work around C compiler bugs
11991         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11992         bug in Sun C 5.11 2010/08/13 and other compilers; see
11993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11994
11995         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11996         * doc/intprops.texi (Integer Type Determination): Fix
11997         documentation for TYPE_IS_INTEGER: it returns an constant
11998         expression, not an integer constant expression.  Fix doc for
11999         TYPE_SIGNED: it returns an integer constant expression only if its
12000         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12001         hardly worth documented that way....)
12002
12003 2011-05-18  Bruno Haible  <bruno@clisp.org>
12004
12005         strerror_r: Avoid clobbering the strerror buffer when possible.
12006         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12007         Handle gnulib defined errno values here. When strerror() returns NULL
12008         or an empty string, return EINVAL.
12009         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12010         gnulib defined errno values here.
12011         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12012
12013 2011-05-18  Eric Blake  <eblake@redhat.com>
12014
12015         fnmatch: avoid compiler warning
12016         * lib/fnmatch_loop.c (FCT): Use correct type.
12017         Reported by Matthias Bolte.
12018
12019 2011-05-13  Jim Meyering  <meyering@redhat.com>
12020
12021         maint.mk: three new prohibit_<HDR>_without_use rules
12022         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12023         (sc_prohibit_stdio-safer_without_use): Likewise.
12024         (sc_prohibit_xfreopen_without_use): Likewise.
12025
12026 2011-05-17  Jim Meyering  <meyering@redhat.com>
12027
12028         announce-gen: fail if the NEWS delta is empty
12029         If there's nothing noteworthy in NEWS, then either you forgot
12030         or you shouldn't be releasing.
12031         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12032
12033 2011-05-17  PĂ¡draig Brady <P@draigBrady.com>
12034
12035         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12036         reserved symbols starting with double underscore from the check.
12037
12038 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12039
12040         intprops: add doc
12041         * doc/intprops.texi: New file, documenting intprops.
12042         * doc/gnulib.texi (Particular Modules): Include it.
12043
12044         verify: add doc to gnulib manual and fix example
12045         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12046         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12047         (Compile-time Assertions): Fix example so it can't overflow.
12048
12049 2011-05-17  Jim Meyering  <meyering@redhat.com>
12050
12051         warnings.m4: don't usurp save_CPPFLAGS variable name
12052         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12053
12054         doc: fix typo
12055         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12056
12057 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12058             Bruno Haible  <bruno@clisp.org>
12059
12060         doc: Tweak recent change.
12061         * README (Portability guidelines): Tweak new text.
12062         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12063         Interix 6.1.
12064
12065 2011-05-16  Eric Blake  <eblake@redhat.com>
12066
12067         inttypes: avoid autoconf warning
12068         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12069         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12070
12071 2011-05-16  Sam Steingold <sds@gnu.org>
12072         and Eric Blake  <eblake@redhat.com>
12073
12074         vc-list-files: accept multiple directory operands
12075         * build-aux/vc-list-files: Iterate over all remaining operands.
12076
12077 2011-05-16  Bruno Haible  <bruno@clisp.org>
12078
12079         Fix confusion regarding deprecated modules.
12080         * modules/calloc (Status, Notice): Mark module as deprecated, not
12081         obsolete.
12082         * modules/fnmatch-posix (Status, Notice): Likewise.
12083         * modules/getdate (Status, Notice): Likewise.
12084         * modules/getopt (Status, Notice): Likewise.
12085         * modules/malloc (Status, Notice): Likewise.
12086         * modules/pipe (Status, Notice): Likewise.
12087         * modules/realloc (Status, Notice): Likewise.
12088         * modules/rename-dest-slash (Status, Notice): Likewise.
12089         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12090         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12091         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12092         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12093         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12094
12095 2011-05-16  Bruno Haible  <bruno@clisp.org>
12096
12097         doc: List the target platforms.
12098         * doc/gnulib-intro.texi (Target Platforms): New section.
12099         * doc/gnulib.texi (Introduction): Update menu.
12100         * README (Portability guidelines): Refer to the new section. Update
12101         statement about oldest supported environment. Remove rationale why
12102         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12103         unportable C89 function.
12104         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12105         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12106
12107 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12108
12109         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12110
12111 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12112
12113         intprops-tests: new module
12114         * modules/intprops-tests, tests/test-intprops.c: New files.
12115
12116         intprops: add safe, portable integer overflow checking
12117         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12118         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12119         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12120         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12121         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12122         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12123         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12124         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12125         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12126         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12127         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12128
12129 2011-05-12  James Youngman  <jay@gnu.org>
12130
12131         Add a test for glibc's Bugzilla bug #12378.
12132         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12133         doesn't allow the literal matching of a lone "[" (which is
12134         required by POSIX).
12135         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12136
12137 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12138
12139         Sync glibc change fixing Bugzilla bug #12378.
12140         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12141         beginning and fall back to matching as normal character if the
12142         string ends before the matching ']' is found.  This is what POSIX
12143         requires.
12144
12145 2011-05-13  Eric Blake  <eblake@redhat.com>
12146
12147         getcwd-lgpl: relax test for FreeBSD
12148         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12149         issue.
12150         * tests/test-getcwd-lgpl.c (main): Relax test.
12151         Reported by Matthias Bolte.
12152
12153 2011-05-11  Eric Blake  <eblake@redhat.com>
12154
12155         test-fflush: silence compiler warning
12156         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12157
12158 2011-05-11  Bruno Haible  <bruno@clisp.org>
12159
12160         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12161         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12162         * modules/canonicalize (Depends-on): Add 'nocrash'.
12163         * modules/canonicalize-lgpl (Depends-on): Likewise.
12164         * doc/posix-functions/realpath.texi: Update platforms list.
12165         Reported by Ryan Schmidt <ryandesign@macports.org>.
12166
12167 2011-05-11  Bruno Haible  <bruno@clisp.org>
12168
12169         group-member: Declare function in <unistd.h>.
12170         * lib/unistd.in.h (group_member): New declaration.
12171         * lib/group-member.h: Remove file.
12172         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12173         * tests/test-unistd-c++.cc: Check signature of group_member.
12174         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12175         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12176         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12177         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12178         HAVE_GROUP_MEMBER.
12179         * modules/group-member (Files): Remove lib/group-member.h.
12180         (Depends-on): Add unistd. Specify conditions.
12181         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12182         (Include): Change to <unistd.h>.
12183         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12184         HAVE_GROUP_MEMBER.
12185         * NEWS: Mention the change.
12186         * lib/euidaccess.c: Don't include group-member.h.
12187
12188 2011-05-11  Bruno Haible  <bruno@clisp.org>
12189
12190         group-member: Document module.
12191         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12192         module.
12193
12194 2011-05-11  Bruno Haible  <bruno@clisp.org>
12195
12196         fclose: Fix mistake earlier today.
12197         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12198
12199 2011-05-11  Eric Blake  <eblake@redhat.com>
12200
12201         fclose: preserve fflush errors
12202         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12203         Reported by Jim Meyering.
12204
12205         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12206         * build-aux/bootstrap (check_versions): When no specific version
12207         is required, merely check that the app produces an exit status
12208         that indicates its existence.
12209
12210         maint.mk: drop redundant check
12211         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12212         the same but better.
12213
12214 2011-05-11  Bruno Haible  <bruno@clisp.org>
12215
12216         fclose: Fix possible link error.
12217         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12218         unregister_shadow_fd. Improve comments.
12219         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12220         Eric Blake.
12221
12222 2011-05-11  Jim Meyering  <meyering@redhat.com>
12223
12224         maint.mk: improve "can not" detection and generalize rule name
12225         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12226         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12227         Use the same technique as in sc_prohibit_doubled_word, so that
12228         we recognize "can not" also when the words are separated by a newline.
12229         Suggested by Eric Blake.
12230         (perl_filename_lineno_text_): Define.  Factored out of...
12231         (prohibit_doubled_word_): ...here.  Use the new definition.
12232         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12233         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12234         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12235
12236 2011-05-10  Eric Blake  <eblake@redhat.com>
12237
12238         fclose: avoid double close race when possible
12239         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12240         all but WINDOWS_SOCKETS.
12241
12242 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12243
12244         openat: correct new comment
12245         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12246
12247 2011-05-10  Jim Meyering  <meyering@redhat.com>
12248
12249         openat: add comments
12250         * lib/openat-proc.c (openat_proc_name): Add comments,
12251         mostly from Eric Blake.
12252
12253 2011-05-09  Eric Blake  <eblake@redhat.com>
12254
12255         openat: reduce syscalls in first probe of /proc
12256         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12257         be a directory.  Simplify the probe for .. bugs.
12258         * modules/openat (Depends-on): Drop same-inode.
12259         Reported by Bastien ROUCARIES.
12260
12261 2011-05-09  Jim Meyering  <meyering@redhat.com>
12262
12263         maint.mk: change semantics/name of tight_scope variables
12264         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12265         Rename variables to align with semantics that make them more useful.
12266
12267         maint.mk: tweak new rule's name not to impinge
12268         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12269         (sc_tight_scope): Use new rule name rather than $@-0.
12270
12271         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12272         * top/maint.mk (sc_tight_scope): New rule.
12273         (sc_tight_scope-0): New rule, ifdef'd out.
12274         (_gl_TS_dir): Default.
12275         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12276         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12277
12278 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12279
12280         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12281         Haible <bruno@clisp.org>.
12282
12283 2011-05-08  Bruno Haible  <bruno@clisp.org>
12284
12285         Comments.
12286         * m4/isnanf.m4: Add comment.
12287         * m4/isnanl.m4: Likewise.
12288
12289 2011-05-08  Bruno Haible  <bruno@clisp.org>
12290
12291         glob: Remove obsolete macro.
12292         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12293
12294 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12295
12296         intprops: Sun C 5.11 supports __typeof__
12297         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12298         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12299         which is new.
12300         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12301
12302         intprops: switch to usual gnulib indenting and naming
12303         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12304         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12305
12306         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12307
12308 2011-05-08  Jim Meyering  <meyering@redhat.com>
12309
12310         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12311         * top/maint.mk (release-prep): Use make's --no-print-directory
12312         option when generating the announcement.  This eliminates the
12313         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12314         generated announcement template.
12315
12316 2011-05-08  Bruno Haible  <bruno@clisp.org>
12317
12318         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12319         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12320         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12321
12322 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12323
12324         ignore-value, verify: Omit include files from lib_SOURCES.
12325         * modules/ignore-value, modules/verify (Makefile.am):
12326         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12327         that leads Automake to duplicate use of am__objects_... variables
12328         in Makefile.in.  See
12329         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12330
12331 2011-05-07  Bruno Haible  <bruno@clisp.org>
12332
12333         fclose: Simplify autoconf macro.
12334         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12335         defined.
12336
12337 2011-05-07  Bruno Haible  <bruno@clisp.org>
12338
12339         canonicalize-lgpl: Fix autoconf macro ordering bug.
12340         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12341         gl_STDLIB_H_DEFAULTS.
12342
12343 2011-05-06  Eric Blake  <eblake@redhat.com>
12344
12345         maintainer-makefile: make sc_po_check easier to tune
12346         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12347         to probe for strings, such as an alternate location for gnulib.
12348
12349         fclose: guarantee behavior on seekable stdin
12350         * modules/fclose (Depends-on): Add fflush.
12351         * doc/posix-functions/fclose.texi (fclose): Document this.
12352         * tests/test-fclose.c (main): Make test for this unconditional.
12353
12354 2011-05-06  Bruno Haible  <bruno@clisp.org>
12355
12356         fflush, fpurge: Relicense under LGPLv2+.
12357         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12358         * modules/fpurge (License): Likewise.
12359         With permission from Eric Blake and Jim Meyering.
12360         Suggested by Eric Blake.
12361
12362 2011-05-06  Karl Berry  <karl@gnu.org>
12363
12364         * MODULES.html.sh (func_all_modules): remove exit.
12365
12366 2011-05-06  Jim Meyering  <meyering@redhat.com>
12367
12368         maint.mk: use info-gnu@ as the default only for a stable release
12369         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12370         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12371         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12372         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12373
12374 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12375
12376         assert-h: new module, which supports C1X-style static_assert
12377         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12378         * lib/verify.h: Revamp so that this can be copied into assert.h,
12379         while retaining the ability to use it standalone as before.
12380         Rename private identifiers so as not to encroach on the
12381         standard C namespace, since this is now used by assert.h.
12382         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12383         the old verify_true.
12384         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12385         the old verify_true.  Use _GL_VERIFY_TYPE.
12386         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12387         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12388         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12389         defined when this file is copied into the replacement assert.h.
12390         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12391         and _Static_assert is not built in.
12392         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12393         defined, and use the new macros mentioned above.
12394         * doc/posix-headers/assert.texi: Document this.
12395
12396 2011-05-05  Bruno Haible  <bruno@clisp.org>
12397
12398         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12399         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12400         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12401         gl_REPLACE_FCLOSE here.
12402         * modules/fflush (Depends-on): Remove fclose.
12403         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12404         combination with module 'fclose'.
12405
12406 2011-05-05  Bruno Haible  <bruno@clisp.org>
12407
12408         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12409         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12410         gl_FUNC_FFLUSH.
12411         (gl_FUNC_FFLUSH): Use it.
12412         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12414         gl_REPLACE_FSEEKO here.
12415
12416 2011-05-05  Bruno Haible  <bruno@clisp.org>
12417
12418         tzset: Relicense under LGPL.
12419         * modules/tzset (License): Change to LGPL.
12420         No agreement needed; it's a no-op.
12421
12422         strtoimax, strtoumax: Relicense under LGPL.
12423         * modules/strtoimax (License): Change to LGPL.
12424         * modules/strtoumax (License): Likewise.
12425         With permission from Jim Meyering, Paul Eggert:
12426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12428
12429         getgroups: Relicense under LGPL.
12430         * modules/getgroups (License): Change to LGPL.
12431         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12435
12436         nanosleep: Relicense under LGPL.
12437         * modules/nanosleep (License): Change to LGPL.
12438         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12439         Haible:
12440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12444
12445         futimens: Relicense under LGPL.
12446         * modules/futimens (License): Change to LGPL.
12447         With permission from Eric Blake:
12448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12449
12450         fflush: Relicense under LGPL.
12451         * modules/fflush (License): Change to LGPL.
12452         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12456
12457         tmpfile: Relicense under LGPL.
12458         * modules/tmpfile (License): Change to LGPL.
12459         With permission from Ben Pfaff:
12460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12461
12462         isfinite: Relicense under LGPL.
12463         * modules/isfinite (License): Change to LGPL.
12464         With permission from Ben Pfaff, Bruno Haible:
12465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12467
12468         acosl..tanl: Relicense under LGPL.
12469         * modules/acosl (License): Change to LGPL.
12470         * modules/asinl (License): Likewise.
12471         * modules/atanl (License): Likewise.
12472         * modules/cosl (License): Likewise.
12473         * modules/expl (License): Likewise.
12474         * modules/logl (License): Likewise.
12475         * modules/sinl (License): Likewise.
12476         * modules/sqrtl (License): Likewise.
12477         * modules/tanl (License): Likewise.
12478         Source code originally from glibc and Paolo Bonzini. Agreements:
12479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12481
12482 2011-05-05  Bruno Haible  <bruno@clisp.org>
12483
12484         signal: Define sighandler_t.
12485         * lib/signal.in.h (sighandler_t): New type.
12486         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12487         whether sighandler_t is defined.
12488         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12489         * modules/signal (Depends-on): Add extensions.
12490         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12491         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12492         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12493
12494 2011-05-05  Eric Blake  <eblake@redhat.com>
12495
12496         maint: remove useless REPLACE_*_H macros
12497         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12498         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12499         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12500         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12501         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12502         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12503         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12504         * m4/btowc.m4: Update callers.
12505         * m4/dirfd.m4: Likewise.
12506         * m4/duplocale.m4: Likewise.
12507         * m4/fchdir.m4: Likewise.
12508         * m4/fdopendir.m4: Likewise.
12509         * m4/inet_ntop.m4: Likewise.
12510         * m4/inet_pton.m4: Likewise.
12511         * m4/ioctl.m4: Likewise.
12512         * m4/mbrlen.m4: Likewise.
12513         * m4/mbrtowc.m4: Likewise.
12514         * m4/mbsinit.m4: Likewise.
12515         * m4/mbsnrtowcs.m4: Likewise.
12516         * m4/mbsrtowcs.m4: Likewise.
12517         * m4/poll.m4: Likewise.
12518         * m4/setlocale.m4: Likewise.
12519         * m4/wcrtomb.m4: Likewise.
12520         * m4/wcsnrtombs.m4: Likewise.
12521         * m4/wcsrtombs.m4: Likewise.
12522         * m4/wctob.m4: Likewise.
12523         * m4/wcwidth.m4: Likewise.
12524         * modules/posix_spawn: Likewise.
12525         * modules/posix_spawn_file_actions_addclose: Likewise.
12526         * modules/posix_spawn_file_actions_adddup2: Likewise.
12527         * modules/posix_spawn_file_actions_addopen: Likewise.
12528         * modules/posix_spawn_file_actions_destroy: Likewise.
12529         * modules/posix_spawn_file_actions_init: Likewise.
12530         * modules/posix_spawnattr_destroy: Likewise.
12531         * modules/posix_spawnattr_getflags: Likewise.
12532         * modules/posix_spawnattr_getpgroup: Likewise.
12533         * modules/posix_spawnattr_getschedparam: Likewise.
12534         * modules/posix_spawnattr_getschedpolicy: Likewise.
12535         * modules/posix_spawnattr_getsigdefault: Likewise.
12536         * modules/posix_spawnattr_getsigmask: Likewise.
12537         * modules/posix_spawnattr_init: Likewise.
12538         * modules/posix_spawnattr_setflags: Likewise.
12539         * modules/posix_spawnattr_setpgroup: Likewise.
12540         * modules/posix_spawnattr_setschedparam: Likewise.
12541         * modules/posix_spawnattr_setschedpolicy: Likewise.
12542         * modules/posix_spawnattr_setsigdefault: Likewise.
12543         * modules/posix_spawnattr_setsigmask: Likewise.
12544         * modules/posix_spawnp: Likewise.
12545
12546 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12547
12548         Add option to do-release-commit-and-tag to specify branch.
12549         * build-aux/do-release-commit-and-tag: Add --branch.
12550
12551 2011-05-03  Bruno Haible  <bruno@clisp.org>
12552
12553         Avoid unnecessary compilation units, through conditional dependencies.
12554         * modules/accept (Depends-on): Add conditions to the dependencies.
12555         * modules/acosl (Depends-on): Likewise.
12556         * modules/argz (Depends-on): Likewise.
12557         * modules/asinl (Depends-on): Likewise.
12558         * modules/atanl (Depends-on): Likewise.
12559         * modules/atoll (Depends-on): Likewise.
12560         * modules/bind (Depends-on): Likewise.
12561         * modules/btowc (Depends-on): Likewise.
12562         * modules/canonicalize-lgpl (Depends-on): Likewise.
12563         * modules/ceil (Depends-on): Likewise.
12564         * modules/ceilf (Depends-on): Likewise.
12565         * modules/ceill (Depends-on): Likewise.
12566         * modules/chdir-long (Depends-on): Likewise.
12567         * modules/chown (Depends-on): Likewise.
12568         * modules/close (Depends-on): Likewise.
12569         * modules/connect (Depends-on): Likewise.
12570         * modules/cosl (Depends-on): Likewise.
12571         * modules/dirfd (Depends-on): Likewise.
12572         * modules/dprintf (Depends-on): Likewise.
12573         * modules/dprintf-posix (Depends-on): Likewise.
12574         * modules/error (Depends-on): Likewise.
12575         * modules/euidaccess (Depends-on): Likewise.
12576         * modules/expl (Depends-on): Likewise.
12577         * modules/faccessat (Depends-on): Likewise.
12578         * modules/fchdir (Depends-on): Likewise.
12579         * modules/fclose (Depends-on): Likewise.
12580         * modules/fcntl (Depends-on): Likewise.
12581         * modules/fdopendir (Depends-on): Likewise.
12582         * modules/fflush (Depends-on): Likewise.
12583         * modules/floor (Depends-on): Likewise.
12584         * modules/floorf (Depends-on): Likewise.
12585         * modules/floorl (Depends-on): Likewise.
12586         * modules/fnmatch (Depends-on): Likewise.
12587         * modules/fopen (Depends-on): Likewise.
12588         * modules/fprintf-posix (Depends-on): Likewise.
12589         * modules/frexp (Depends-on): Likewise.
12590         * modules/frexp-nolibm (Depends-on): Likewise.
12591         * modules/frexpl (Depends-on): Likewise.
12592         * modules/frexpl-nolibm (Depends-on): Likewise.
12593         * modules/fseek (Depends-on): Likewise.
12594         * modules/fsusage (Depends-on): Likewise.
12595         * modules/ftell (Depends-on): Likewise.
12596         * modules/ftello (Depends-on): Likewise.
12597         * modules/futimens (Depends-on): Likewise.
12598         * modules/getcwd (Depends-on): Likewise.
12599         * modules/getcwd-lgpl (Depends-on): Likewise.
12600         * modules/getdelim (Depends-on): Likewise.
12601         * modules/getdomainname (Depends-on): Likewise.
12602         * modules/getgroups (Depends-on): Likewise.
12603         * modules/gethostname (Depends-on): Likewise.
12604         * modules/getline (Depends-on): Likewise.
12605         * modules/getlogin_r (Depends-on): Likewise.
12606         * modules/getopt-posix (Depends-on): Likewise.
12607         * modules/getpeername (Depends-on): Likewise.
12608         * modules/getsockname (Depends-on): Likewise.
12609         * modules/getsockopt (Depends-on): Likewise.
12610         * modules/getsubopt (Depends-on): Likewise.
12611         * modules/getusershell (Depends-on): Likewise.
12612         * modules/glob (Depends-on): Likewise.
12613         * modules/grantpt (Depends-on): Likewise.
12614         * modules/iconv_open (Depends-on): Likewise.
12615         * modules/iconv_open-utf (Depends-on): Likewise.
12616         * modules/inet_ntop (Depends-on): Likewise.
12617         * modules/inet_pton (Depends-on): Likewise.
12618         * modules/ioctl (Depends-on): Likewise.
12619         * modules/isapipe (Depends-on): Likewise.
12620         * modules/isfinite (Depends-on): Likewise.
12621         * modules/isinf (Depends-on): Likewise.
12622         * modules/lchown (Depends-on): Likewise.
12623         * modules/ldexpl (Depends-on): Likewise.
12624         * modules/link (Depends-on): Likewise.
12625         * modules/linkat (Depends-on): Likewise.
12626         * modules/listen (Depends-on): Likewise.
12627         * modules/logl (Depends-on): Likewise.
12628         * modules/lstat (Depends-on): Likewise.
12629         * modules/mbrlen (Depends-on): Likewise.
12630         * modules/mbrtowc (Depends-on): Likewise.
12631         * modules/mbsinit (Depends-on): Likewise.
12632         * modules/mbsnrtowcs (Depends-on): Likewise.
12633         * modules/mbsrtowcs (Depends-on): Likewise.
12634         * modules/mbtowc (Depends-on): Likewise.
12635         * modules/memcmp (Depends-on): Likewise.
12636         * modules/mkdir (Depends-on): Likewise.
12637         * modules/mkdtemp (Depends-on): Likewise.
12638         * modules/mkfifo (Depends-on): Likewise.
12639         * modules/mkfifoat (Depends-on): Likewise.
12640         * modules/mknod (Depends-on): Likewise.
12641         * modules/mkostemp (Depends-on): Likewise.
12642         * modules/mkostemps (Depends-on): Likewise.
12643         * modules/mkstemp (Depends-on): Likewise.
12644         * modules/mkstemps (Depends-on): Likewise.
12645         * modules/mktime (Depends-on): Likewise.
12646         * modules/nanosleep (Depends-on): Likewise.
12647         * modules/open (Depends-on): Likewise.
12648         * modules/openat (Depends-on): Likewise.
12649         * modules/perror (Depends-on): Likewise.
12650         * modules/poll (Depends-on): Likewise.
12651         * modules/popen (Depends-on): Likewise.
12652         * modules/posix_spawn (Depends-on): Likewise.
12653         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12654         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12655         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12656         * modules/posix_spawnp (Depends-on): Likewise.
12657         * modules/pread (Depends-on): Likewise.
12658         * modules/printf-posix (Depends-on): Likewise.
12659         * modules/ptsname (Depends-on): Likewise.
12660         * modules/putenv (Depends-on): Likewise.
12661         * modules/pwrite (Depends-on): Likewise.
12662         * modules/readline (Depends-on): Likewise.
12663         * modules/readlink (Depends-on): Likewise.
12664         * modules/readlinkat (Depends-on): Likewise.
12665         * modules/recv (Depends-on): Likewise.
12666         * modules/recvfrom (Depends-on): Likewise.
12667         * modules/regex (Depends-on): Likewise.
12668         * modules/remove (Depends-on): Likewise.
12669         * modules/rename (Depends-on): Likewise.
12670         * modules/renameat (Depends-on): Likewise.
12671         * modules/rmdir (Depends-on): Likewise.
12672         * modules/round (Depends-on): Likewise.
12673         * modules/roundf (Depends-on): Likewise.
12674         * modules/roundl (Depends-on): Likewise.
12675         * modules/rpmatch (Depends-on): Likewise.
12676         * modules/select (Depends-on): Likewise.
12677         * modules/send (Depends-on): Likewise.
12678         * modules/sendto (Depends-on): Likewise.
12679         * modules/setenv (Depends-on): Likewise.
12680         * modules/setlocale (Depends-on): Likewise.
12681         * modules/setsockopt (Depends-on): Likewise.
12682         * modules/shutdown (Depends-on): Likewise.
12683         * modules/sigaction (Depends-on): Likewise.
12684         * modules/signbit (Depends-on): Likewise.
12685         * modules/sigprocmask (Depends-on): Likewise.
12686         * modules/sinl (Depends-on): Likewise.
12687         * modules/sleep (Depends-on): Likewise.
12688         * modules/snprintf (Depends-on): Likewise.
12689         * modules/snprintf-posix (Depends-on): Likewise.
12690         * modules/socket (Depends-on): Likewise.
12691         * modules/sprintf-posix (Depends-on): Likewise.
12692         * modules/sqrtl (Depends-on): Likewise.
12693         * modules/stat (Depends-on): Likewise.
12694         * modules/strchrnul (Depends-on): Likewise.
12695         * modules/strdup-posix (Depends-on): Likewise.
12696         * modules/strerror (Depends-on): Likewise.
12697         * modules/strerror_r-posix (Depends-on): Likewise.
12698         * modules/strndup (Depends-on): Likewise.
12699         * modules/strnlen (Depends-on): Likewise.
12700         * modules/strptime (Depends-on): Likewise.
12701         * modules/strsep (Depends-on): Likewise.
12702         * modules/strsignal (Depends-on): Likewise.
12703         * modules/strstr-simple (Depends-on): Likewise.
12704         * modules/strtod (Depends-on): Likewise.
12705         * modules/strtoimax (Depends-on): Likewise.
12706         * modules/strtok_r (Depends-on): Likewise.
12707         * modules/strtoumax (Depends-on): Likewise.
12708         * modules/symlink (Depends-on): Likewise.
12709         * modules/symlinkat (Depends-on): Likewise.
12710         * modules/tanl (Depends-on): Likewise.
12711         * modules/tcgetsid (Depends-on): Likewise.
12712         * modules/tmpfile (Depends-on): Likewise.
12713         * modules/trunc (Depends-on): Likewise.
12714         * modules/truncf (Depends-on): Likewise.
12715         * modules/truncl (Depends-on): Likewise.
12716         * modules/uname (Depends-on): Likewise.
12717         * modules/unlink (Depends-on): Likewise.
12718         * modules/unlockpt (Depends-on): Likewise.
12719         * modules/unsetenv (Depends-on): Likewise.
12720         * modules/usleep (Depends-on): Likewise.
12721         * modules/utimensat (Depends-on): Likewise.
12722         * modules/vasprintf (Depends-on): Likewise.
12723         * modules/vdprintf (Depends-on): Likewise.
12724         * modules/vdprintf-posix (Depends-on): Likewise.
12725         * modules/vfprintf-posix (Depends-on): Likewise.
12726         * modules/vprintf-posix (Depends-on): Likewise.
12727         * modules/vsnprintf (Depends-on): Likewise.
12728         * modules/vsnprintf-posix (Depends-on): Likewise.
12729         * modules/vsprintf-posix (Depends-on): Likewise.
12730         * modules/wcrtomb (Depends-on): Likewise.
12731         * modules/wcscasecmp (Depends-on): Likewise.
12732         * modules/wcscspn (Depends-on): Likewise.
12733         * modules/wcsdup (Depends-on): Likewise.
12734         * modules/wcsncasecmp (Depends-on): Likewise.
12735         * modules/wcsnrtombs (Depends-on): Likewise.
12736         * modules/wcspbrk (Depends-on): Likewise.
12737         * modules/wcsrtombs (Depends-on): Likewise.
12738         * modules/wcsspn (Depends-on): Likewise.
12739         * modules/wcsstr (Depends-on): Likewise.
12740         * modules/wcstok (Depends-on): Likewise.
12741         * modules/wcswidth (Depends-on): Likewise.
12742         * modules/wctob (Depends-on): Likewise.
12743         * modules/wctomb (Depends-on): Likewise.
12744         * modules/wctype (Depends-on): Likewise.
12745         * modules/wcwidth (Depends-on): Likewise.
12746         * modules/write (Depends-on): Likewise.
12747
12748 2011-05-03  Bruno Haible  <bruno@clisp.org>
12749
12750         Support for conditional dependencies.
12751         * doc/gnulib.texi (Module description): Document the syntax of
12752         conditional dependencies.
12753         * gnulib-tool: New option --conditional-dependencies.
12754         (func_usage): Document it.
12755         (cond_dependencies): New variable.
12756         (func_get_automake_snippet_conditional,
12757         func_get_automake_snippet_unconditional): New functions, extracted from
12758         func_get_automake_snippet.
12759         (func_get_automake_snippet): Use them.
12760         (sed_first_32_chars): New variable.
12761         (func_module_shellfunc_name): New function.
12762         (func_module_shellvar_name): New function.
12763         (func_module_conditional_name): New function.
12764         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12765         func_cond_module_condition): New functions.
12766         (func_modules_transitive_closure): Add support for conditional
12767         dependencies.
12768         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12769         conditional automake snippet in an automake conditional.
12770         (func_emit_autoconf_snippets): Emit shell functions that contain the
12771         code for conditional modules.
12772         (func_import, func_create_testdir): Update specification.
12773
12774 2011-05-03  Eric Blake  <eblake@redhat.com>
12775
12776         test-getaddrinfo: report error information
12777         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12778
12779 2011-05-03  Jim Meyering  <meyering@redhat.com>
12780
12781         bootstrap: avoid build failure when $GZIP is set
12782         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12783         program name.  If defined at all, it is supposed to list gzip options.
12784         Reported by Alan Curry in http://debbugs.gnu.org/8609
12785
12786 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12787
12788         readme-release: new module with release instructions
12789         * modules/readme-release: New module.
12790         * top/README-release: New file, from coreutils, grep, diffutils.
12791         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12792
12793 2011-05-02  Eric Blake  <eblake@redhat.com>
12794
12795         fflush: also replace fclose when fixing fflush
12796         * modules/fflush (Depends-on): Add fclose.
12797         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12798         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12799         memstreams with no backing fd.
12800         * doc/posix-functions/fclose.texi (fclose): Document the use of
12801         fflush module to fix the bug.
12802         * tests/test-fclose.c (main): Relax test when fclose is used in
12803         isolation.
12804
12805         fclose: add some tests
12806         * modules/fclose-tests: New test module.
12807         * tests/test-fclose.c: New file.
12808         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12809
12810         fclose: reduced dependencies
12811         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12812         simpler lseek.
12813         * lib/fclose.c (rpl_fclose): Likewise.
12814         Reported by Simon Josefsson.
12815
12816         exit: drop remaining clients
12817         * modules/argmatch (Depends-on): Replace exit with stdlib.
12818         * modules/copy-file (Depends-on): Likewise.
12819         * modules/execute (Depends-on): Likewise.
12820         * modules/exitfail (Depends-on): Likewise.
12821         * modules/obstack (Depends-on): Likewise.
12822         * modules/pagealign_alloc (Depends-on): Likewise.
12823         * modules/pipe-filter-gi (Depends-on): Likewise.
12824         * modules/pipe-filter-ii (Depends-on): Likewise.
12825         * modules/savewd (Depends-on): Likewise.
12826         * modules/spawn-pipe (Depends-on): Likewise.
12827         * modules/wait-process (Depends-on): Likewise.
12828         * modules/xsetenv (Depends-on): Likewise.
12829         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12830         * modules/git-merge-changelog (Depends-on): Likewise.
12831         * modules/long-options (Depends-on): Likewise.
12832         * modules/pt_chown (Depends-on): Likewise.
12833         * modules/sysexits (Depends-on): Likewise.
12834
12835         freading: relax license from LGPLv3+ to LGPLv2+
12836         * modules/freading (License): Relax LGPL version.
12837
12838 2011-05-02  Bruno Haible  <bruno@clisp.org>
12839
12840         fchdir: Remove unused dependencies.
12841         * modules/fchdir (Depends-on): Remove include_next.
12842
12843 2011-05-02  Bruno Haible  <bruno@clisp.org>
12844
12845         gnulib-tool: Refactor.
12846         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12847         from func_emit_autoconf_snippets.
12848         (func_emit_autoconf_snippets): Use it.
12849
12850 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12851
12852         * NEWS: Document removal of 'exit'.
12853         * modules/exit: Remove file.
12854
12855 2011-05-01  Bruno Haible  <bruno@clisp.org>
12856
12857         Update DEPENDENCIES.
12858         * DEPENDENCIES (gettext): Recommend the newest release.
12859         Reported by Simon Josefsson.
12860
12861 2011-05-01  Bruno Haible  <bruno@clisp.org>
12862
12863         gnulib-tool: Reduce code duplication.
12864         * gnulib-tool (func_emit_autoconf_snippets): New function.
12865         (func_import, func_create_testdir): Use it.
12866
12867 2011-04-30  Eric Blake  <eblake@redhat.com>
12868
12869         fclose: don't fail on non-seekable input stream
12870         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12871         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12872         since fflush is allowed to fail in that case.
12873
12874 2011-04-30  Bruno Haible  <bruno@clisp.org>
12875
12876         dup3: cleanup
12877         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12878
12879 2011-04-30  Bruno Haible  <bruno@clisp.org>
12880
12881         netdb: Make it work in C++ mode.
12882         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12883         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12884         module.
12885         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12886         gl_MODULE_INDICATOR_FOR_TESTS.
12887         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12888         * modules/netdb-c++-tests: New file.
12889         * tests/test-netdb-c++.cc: New file.
12890
12891 2011-04-30  Bruno Haible  <bruno@clisp.org>
12892
12893         New modules 'vfscanf', 'vscanf'.
12894         * modules/vfscanf: New file.
12895         * modules/vscanf: New file.
12896         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12897         here.
12898         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12899         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12900
12901 2011-04-30  Bruno Haible  <bruno@clisp.org>
12902
12903         passfd: Add comments.
12904         * lib/passfd.c: Add comments about platforms.
12905
12906 2011-04-30  Bruno Haible  <bruno@clisp.org>
12907
12908         sys_uio: Make <sys/uio.h> self-contained.
12909         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12910         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12911
12912 2011-04-30  Bruno Haible  <bruno@clisp.org>
12913
12914         sys_socket: Ensure 'struct iovec' definition.
12915         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12916         <sys/socket.h>.
12917         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12918
12919 2011-04-30  Bruno Haible  <bruno@clisp.org>
12920
12921         sys_uio: Protect definition of 'struct iovec'.
12922         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12923         it as a C struct.
12924
12925 2011-04-30  Bruno Haible  <bruno@clisp.org>
12926
12927         manywarnings: fix indentation
12928         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12929
12930 2011-04-30  PĂ¡draig Brady <P@draigBrady.com>
12931
12932         manywarnings: add -Wno-missing-field-initializers if needed.
12933         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12934         option if it's needed to allow initialization with { 0, }
12935
12936 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12937
12938         announce-gen: cosmetic improvement
12939         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12940
12941 2011-04-29  Jim Meyering  <meyering@redhat.com>
12942
12943         vc-list-files: indent with spaces, not TABs
12944         * build-aux/vc-list-files: Convert leading TABs to spaces,
12945         to match the style of most other files in gnulib.
12946
12947         announce-gen: indent with spaces, not TABs
12948         * build-aux/announce-gen: Convert all TABs to spaces, to match
12949         the style of most other files in gnulib.
12950
12951 2011-04-29  Eric Blake  <eblake@redhat.com>
12952
12953         quotearg: avoid uninitialized variable use
12954         * lib/quotearg.c (quoting_options_from_style): Initialize
12955         remaining fields, and ensure that custom styles are only used via
12956         quoting_options rather than quoting_style.
12957
12958 2011-04-29  Jim Meyering  <meyering@redhat.com>
12959
12960         maint.mk: remove unused VC-tag variable
12961         * top/maint.mk (VC-tag): Remove unused variable.
12962
12963 2011-04-29  Bruno Haible  <bruno@clisp.org>
12964
12965         netdb: fix gai_strerror replacements
12966         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12967         * modules/netdb: Substitute it.
12968
12969 2011-04-29  Jim Meyering  <meyering@redhat.com>
12970
12971         test-getcwd.c: avoid new set-but-not-used warning
12972         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12973         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12974         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12975         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12976
12977         test-hash.c: avoid a new shadowing warning
12978         * tests/test-hash.c (main): Don't shadow "dup".
12979
12980 2011-04-28  Eric Blake  <eblake@redhat.com>
12981
12982         getaddrinfo: fix gai_strerror signature
12983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12984         and work around mingw with UNICODE defined.
12985         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12986         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12987         * modules/netdb (Makefile.am): Substitute it.
12988         * lib/netdb.in.h (gai_strerror): Declare replacement.
12989         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12990         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12991         the fix.
12992
12993         getsockopt: avoid compiler warning
12994         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12995         Reported by Matthias Bolte.
12996
12997         tests: drop unused link dependency
12998         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12999         * modules/dirent-safer-tests (Makefile.am): Likewise.
13000         * modules/fdopendir-tests (Makefile.am): Likewise.
13001         * modules/mkfifoat-tests (Makefile.am): Likewise.
13002         * modules/openat-safer-tests (Makefile.am): Likewise.
13003         * modules/openat-tests (Makefile.am): Likewise.
13004         * modules/readlinkat-tests (Makefile.am): Likewise.
13005         * modules/symlinkat-tests (Makefile.am): Likewise.
13006         * modules/linkat-tests (Makefile.am): Likewise.
13007         (Depends-on): Switch to filenamecat-lgpl.
13008         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13009         LIBINTL.
13010         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13011         * tests/test-linkat.c (main): Don't require xalloc.
13012
13013         hash, mgetgroups: drop xalloc dependency
13014         * lib/hash.c (includes): Adjust includes.
13015         * lib/mgetgroups.c (includes): Likewise.
13016         (xgetgroups): Move...
13017         * lib/xgetgroups.c: ...to new file.
13018         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13019         * modules/xgetgroups: New file, split from...
13020         * modules/mgetgroups: ...here.
13021         (Depends-on): Add xalloc-oversized.
13022         * modules/hash (Depends-on): Likewise.
13023         * modules/hash-tests (Depends-on): Drop xalloc.
13024         (test_hash_LDADD): Drop unused library.
13025         * tests/test-hash.c (main): Break xalloc dependency.
13026         (includes): Drop unused include.
13027
13028         xalloc-oversized: new module
13029         * modules/xalloc-oversized: New module.
13030         * modules/xalloc (Depends-on): Add it.
13031         * lib/xalloc.h (xalloc_oversized): Move...
13032         * lib/xalloc-oversized.h: ...into new file.
13033
13034         utimecmp: drop dependency on xmalloc
13035         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13036         due to memory pressure.
13037         * modules/utimecmp (Depends-on): Drop xalloc.
13038
13039 2011-04-27  Eric Blake  <eblake@redhat.com>
13040
13041         getcwd: fix mingw bugs
13042         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13043         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13044         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13045
13046 2011-04-27  Bruno Haible  <bruno@clisp.org>
13047
13048         mkstemps: Ensure declaration on MacOS X 10.5.
13049         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13050         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13051         MacOS X.
13052
13053 2011-04-27  Bruno Haible  <bruno@clisp.org>
13054
13055         mkstemp: More documentation.
13056         * doc/posix-functions/mkstemp.texi: Document header file problem on
13057         MacOS X.
13058
13059 2011-04-27  Bruno Haible  <bruno@clisp.org>
13060
13061         mkstemp: Tweak configure message when cross-compiling.
13062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13063         result as a guess.
13064
13065 2011-04-27  Bruno Haible  <bruno@clisp.org>
13066
13067         clean-temp: Clarify what it does.
13068         * lib/clean-temp.h: Add more comments.
13069         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13070         module.
13071         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13072         * doc/glibc-functions/mkstemps.texi: Likewise.
13073         * doc/glibc-functions/mkostemps.texi: Likewise.
13074
13075 2011-04-27  Eric Blake  <eblake@redhat.com>
13076
13077         fchdir: avoid extra chdir and fix test
13078         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13079         getcwd-lgpl.
13080         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13081         have to be canonical.
13082         (canonicalize_file_name): Drop unused macro.
13083         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13084
13085         filenamecat-lgpl: fix licence
13086         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13087         when it was first created.
13088
13089         linkat, renameat: add missing dependency
13090         * modules/linkat (Depends-on): Require getcwd-lgpl.
13091         * modules/renameat (Depends-on): Likewise.
13092
13093         tests: reduce dependencies
13094         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13095         * tests/test-renameat.c (main): Likewise.
13096         * modules/linkat-tests (Depends-on): Relax dependency.
13097         * modules/renameat-tests (Depends-on): Likewise.
13098         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13099         dependency explicit.
13100
13101         save-cwd: reduce default dependency
13102         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13103         * lib/save-cwd.c: Update comments.
13104         * NEWS: Document the semantic change.
13105
13106         getcwd: enhance tests
13107         * tests/test-getcwd-lgpl.c: New file, taken from...
13108         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13109         repeat long path stress tests from m4 probe.
13110         * modules/getcwd-lgpl-tests: New module.
13111         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13112         * m4/getcwd-abort-bug.m4: Update comment.
13113         * m4/getcwd-path-max.m4: Likewise.
13114
13115         getcwd-lgpl: new module
13116         * modules/getcwd-lgpl: New module.
13117         * lib/getcwd-lgpl.c: New file.
13118         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13119         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13120         * modules/getcwd (configure.ac): Set C witness.
13121         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13122
13123         getcwd: tweak comments
13124         * m4/getcwd-abort-bug.m4: Fix comments.
13125         * m4/getcwd-path-max.m4: Likewise.
13126         * m4/getcwd.m4: Likewise.
13127
13128 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13129         and Eric Blake  <eblake@redhat.com>
13130
13131         mkstemp: replace if system version uses wrong permissions
13132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13133         read/write mode bits set in file created by mkstemp.
13134         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13135
13136 2011-04-27  Eric Blake  <eblake@redhat.com>
13137
13138         passfd: avoid compiler warning
13139         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13140         Reported by Laine Stump.
13141
13142 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13143
13144         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13145         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13146
13147 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13148         and Eric Blake  <eblake@redhat.com>
13149
13150         mkstemp: mention clean-temp module
13151         * lib/mkstemp.c: Add comment.
13152         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13153
13154 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13155
13156         inttypes: also provide default values for 32-bit tests
13157         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13158         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13159
13160 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13161
13162         strtoumax: remove dependency on strtoimax
13163         This is like the strtoull change of yesterday.
13164         * modules/strtoumax (Files): Add lib/strtoimax.c.
13165         (Depends-on): Remove strtoimax and add verify.
13166
13167         inttypes-incomplete: new module
13168         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13169         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13170         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13171         of gl_INTTYPES_H.
13172         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13173         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13174         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13175         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13176         * modules/strtoumax, modules/xstrtol (Depends-on):
13177         Depend on inttypes-incomplete, not inttypes.
13178         * modules/inttypes-incomplete: New module, containing the contents
13179         of the old modules/inttypes module, except that the Files: section
13180         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13181         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13182         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13183         (Depends-on): Depend only on inttypes-incomplete.
13184         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13185
13186         inttypes: omit now-redundant strtoimax and strtoumax work
13187         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13188         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13189
13190         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13191         This supports apps that need pointers to strtoimax and strtoumax,
13192         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13193         nonexistent functions.  See
13194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13195         et seq.
13196         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13197         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13198         a macro.
13199         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13200
13201 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13202
13203         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13204
13205 2011-04-25  Bruno Haible  <bruno@clisp.org>
13206
13207         strtol, strtoul: Mark modules as obsolete.
13208         * modules/strtol (Status, Notice): New sections.
13209         * modules/strtoul (Status, Notice): New sections.
13210
13211 2011-04-25  Bruno Haible  <bruno@clisp.org>
13212
13213         strtod: Remove check for strtod, unless supporting old platforms.
13214         * modules/strtod-obsolete: New file.
13215         * m4/strtod-obsolete.m4: New file.
13216         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13217         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13218         * modules/strtod (Depends-on): Add strtod-obsolete.
13219         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13220
13221 2011-04-25  Bruno Haible  <bruno@clisp.org>
13222
13223         strcase: Make module obsolete.
13224         * modules/strcase (Status, Notice): New sections.
13225
13226 2011-04-25  Bruno Haible  <bruno@clisp.org>
13227
13228         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13229         * modules/dup2-obsolete: New file.
13230         * m4/dup2-obsolete.m4: New file.
13231         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13232         gl_FUNC_DUP2_OBSOLETE is not also defined.
13233         * modules/dup2 (Depends-on): Add dup2-obsolete.
13234         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13235
13236 2011-04-25  Bruno Haible  <bruno@clisp.org>
13237
13238         strnlen: Avoid memchr related link error on old obsolete platforms.
13239         * modules/memchr-obsolete: New file.
13240         * m4/memchr-obsolete.m4: New file.
13241         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13242         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13243         * modules/memchr (Depends-on): Add memchr-obsolete.
13244         * modules/strnlen (Depends-on): Likewise.
13245         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13246
13247 2011-04-25  Jim Meyering  <meyering@redhat.com>
13248
13249         maint.mk: makefile_at_at_check extend and clean up
13250         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13251         in addition to */Makefile.am.
13252         Exempt legitimate uses of @VAR@ notation, e.g.,
13253         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13254         Remove obsolete coreutils-specific comment.
13255         Prompted by discussion here:
13256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13257
13258 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13259
13260         strtoul: remove dependency on strtol
13261         This is so that 'configure' need not check for strtol merely because
13262         the application needs strtoul.
13263         * modules/strtoul (Files): Add lib/strtol.c.
13264         (Depends-on): Remove strtol.
13265
13266         strtoull: remove dependency on strtoul
13267         This is like the strtoll change.
13268         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13269         (Depends-on): Remove strtoul.
13270
13271         strtoll: remove dependency on strtol
13272         This is so that 'configure' need not check for strtol merely because
13273         the application needs strtoll.
13274         * modules/strtoll (Files): Add lib/strtol.c.
13275         (Depends-on): Remove strtol.
13276
13277 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13278
13279         inttypes: Move some configure check to module 'imaxdiv'.
13280         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13281         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13282         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13283
13284 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13285
13286         inttypes: Move some configure check to module 'imaxabs'.
13287         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13288         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13289         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13290
13291 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13292
13293         inttypes: Remove configure tests that are not needed since 2009-12-31.
13294         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13295         gl_cv_header_working_inttypes_h.
13296
13297 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13298
13299         * modules/strnlen (Depends-on): Remove memchr.
13300         The strnlen implementation doesn't need the memchr module's fixes; see
13301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13302
13303         strtol: remove dependency on wchar
13304         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13305         * modules/strtol (Depends-on): Remove wchar.
13306
13307 2011-04-21  Eric Blake  <eblake@redhat.com>
13308
13309         passfd: fix test regression on Linux
13310         * modules/passfd-tests (configure.ac): Correct socketpair check.
13311
13312         passfd: speed up configure and drop unused code
13313         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13314         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13315         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13316         Instead of probing at configure for unix_scm_rights_bsd44_way,
13317         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13318         check to a struct member probe.
13319         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13320         (sendfd, recvfd): Update preprocessor checks.
13321         * modules/passfd (Files): Reflect rename, and drop unused file.
13322         (Depends-on): Drop unused dependency.
13323
13324         passfd: allow compilation on mingw
13325         * modules/sys_socket (Depends-on): Add sys_uio.
13326         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13327         iovec and a minimal struct msghdr.
13328         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13329         * tests/test-sys_socket.c (main): Enhance test.
13330         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13331         guaranteed to provide what we need.
13332         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13333         * modules/passfd-tests (Depends-on): Add sys_wait.
13334         * tests/test-passfd.c (main): Skip test on mingw, for now.
13335         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13336         partial 'struct msghdr' implementation.
13337
13338         sys_uio: new module
13339         * modules/sys_uio: New module.
13340         * modules/sys_uio-tests: Likewise.
13341         * lib/sys_uio.in.h: New file.
13342         * m4/sys_uio_h.m4: Likewise.
13343         * tests/test-sys_uio.c: Likewise.
13344         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13345         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13346
13347 2011-04-20  Jim Meyering  <meyering@redhat.com>
13348
13349         useless-if-before-free: avoid false-positive
13350         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13351         disjunct so that it too requires a terminating ";".  Without that,
13352         this script would identify as useless one statement from gcc that
13353         was not:
13354           if (aligned_ptr)
13355             free (((void **) aligned_ptr) [-1]);
13356
13357 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13358
13359         doc: update users.txt.
13360         * users.txt: Add barcode.
13361
13362 2011-04-19  Bruno Haible  <bruno@clisp.org>
13363
13364         ioctl: Remove link dependency on native Windows.
13365         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13366         (gl_close_fn, gl_ioctl_fn): New types.
13367         (struct fd_hook): Renamed from struct close_hook. Change type of
13368         private_close_fn field. Add private_ioctl_fn field.
13369         (close_hook_fn): Add parameter for primary close method.
13370         (execute_close_hooks, execute_all_close_hooks): Likewise.
13371         (ioctl_hook_fn): New type.
13372         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13373         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13374         argument.
13375         (unregister_fd_hook): Renamed from unregister_close_hook.
13376         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13377         Don't include <unistd.h>.
13378         (close): Remove undef.
13379         (anchor): Update.
13380         (execute_close_hooks): Add argument for primary close method.
13381         (execute_all_close_hooks): Likewise.
13382         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13383         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13384         argument. Allow each argument to be NULL.
13385         (unregister_fd_hook): Renamed from unregister_close_hook.
13386         * lib/close.c (rpl_close): Pass 'close' function pointer to
13387         execute_all_close_hooks.
13388         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13389         (primary_ioctl): New function.
13390         (ioctl): Don't call ioctlsocket here. Instead, call
13391         execute_all_ioctl_hooks.
13392         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13393         close method.
13394         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13395         (fd_sockets_hook): Renamed from close_sockets_hook.
13396         (gl_sockets_startup, gl_sockets_cleanup): Update.
13397         * modules/fd-hook: Renamed from modules/close-hook. Update.
13398         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13399         * modules/sockets (Depends-on): Likewise.
13400         * modules/ioctl (Depends-on): Add fd-hook.
13401         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13402         GNULIB_SOCKET.
13403
13404 2011-04-19  Bruno Haible  <bruno@clisp.org>
13405
13406         Move the support of O_NONBLOCK in open() to the 'open' module.
13407         * modules/nonblocking (Depends-on): Remove 'open'.
13408         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13409         gl_cv_have_open_O_NONBLOCK.
13410         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13411         O_NONBLOCK support.
13412         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13413
13414 2011-04-17  Bruno Haible  <bruno@clisp.org>
13415
13416         pipe2: Simplify code.
13417         * lib/pipe2.c (pipe2): Reduce code duplication.
13418
13419 2011-04-17  Bruno Haible  <bruno@clisp.org>
13420
13421         nonblocking: Add comment.
13422         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13423
13424 2011-04-17  Bruno Haible  <bruno@clisp.org>
13425
13426         nonblocking: Add tests for sockets.
13427         * tests/test-nonblocking-socket.sh: New file.
13428         * tests/test-nonblocking-socket-main.c: New file.
13429         * tests/test-nonblocking-socket-child.c: New file.
13430         * tests/test-nonblocking-socket.h: New file.
13431         * tests/socket-server.h: New file.
13432         * tests/socket-client.h: New file.
13433         * modules/nonblocking-socket-tests: New file.
13434         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13435
13436 2011-04-17  Bruno Haible  <bruno@clisp.org>
13437
13438         nonblocking: Add tests for pipes.
13439         * tests/test-nonblocking-pipe.sh: New file.
13440         * tests/test-nonblocking-pipe-main.c: New file.
13441         * tests/test-nonblocking-pipe-child.c: New file.
13442         * tests/test-nonblocking-pipe.h: New file.
13443         * tests/test-nonblocking-writer.h: New file.
13444         * tests/test-nonblocking-reader.h: New file.
13445         * tests/test-nonblocking-misc.h: New file.
13446         * modules/nonblocking-pipe-tests: New file.
13447         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13448
13449 2011-04-16  Bruno Haible  <bruno@clisp.org>
13450
13451         gettext: Clarify the needed programmer actions.
13452         * modules/gettext (Notice): New field.
13453         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13454
13455 2011-04-16  Bruno Haible  <bruno@clisp.org>
13456
13457         strchrnul: Tweak last commit.
13458         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13459         bug.
13460         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13461         as in _GL_FUNCDECL_SYS.
13462         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13463         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13464
13465 2011-04-15  Eric Blake  <eblake@redhat.com>
13466
13467         strchrnul: work around cygwin bug
13468         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13469         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13471         * modules/string (Makefile.am): Substitute it.
13472         * lib/string.in.h (strchrnul): Use it.
13473
13474 2011-04-15  Bruno Haible  <bruno@clisp.org>
13475
13476         Don't require lib/stdio-write.c when only module 'stdio' is used.
13477         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13478         invocation.
13479         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13480
13481 2011-04-14  Bruno Haible  <bruno@clisp.org>
13482
13483         Support non-blocking pipe I/O in read() on native Windows.
13484         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13485         (read): New declaration.
13486         * lib/read.c: New file.
13487         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13488         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13489         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13490         vscanf): New declarations.
13491         * lib/stdio-read.c: New file.
13492         * m4/read.m4: New file.
13493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13494         REPLACE_READ.
13495         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13496         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13497         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13498         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13499         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13500         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13501         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13502         * modules/read: New file.
13503         * modules/nonblocking (Files): Add lib/stdio-read.c.
13504         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13505         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13506         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13507         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13508         * modules/pread (Depends-on): Add read.
13509         * modules/safe-read (Depends-on): Likewise.
13510         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13511         gets, scanf, vfscanf, vscanf): Verify signatures.
13512         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13513         problem with non-blocking pipes.
13514         * doc/posix-functions/fgetc.texi: Likewise.
13515         * doc/posix-functions/fgets.texi: Likewise.
13516         * doc/posix-functions/fread.texi: Likewise.
13517         * doc/posix-functions/fscanf.texi: Likewise.
13518         * doc/posix-functions/getc.texi: Likewise.
13519         * doc/posix-functions/getchar.texi: Likewise.
13520         * doc/posix-functions/gets.texi: Likewise.
13521         * doc/posix-functions/scanf.texi: Likewise.
13522         * doc/posix-functions/vfscanf.texi: Likewise.
13523         * doc/posix-functions/vscanf.texi: Likewise.
13524
13525 2011-04-14  Bruno Haible  <bruno@clisp.org>
13526
13527         Support non-blocking pipe I/O in write() on native Windows.
13528         * lib/write.c (rpl_write): Split a write request that failed merely
13529         because the byte count was larger than the pipe buffer's size.
13530         * doc/posix-functions/write.texi: Mention the problem with large byte
13531         counts.
13532
13533 2011-04-14  Bruno Haible  <bruno@clisp.org>
13534
13535         wchar: Ensure that wchar_t gets defined on uClibc.
13536         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13537         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13538
13539 2011-04-13  Bruno Haible  <bruno@clisp.org>
13540
13541         safe-write, full-read: Avoid unnecessary compilation units.
13542         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13543         (Depends-on): Remove safe-read. Add ssize_t.
13544         * modules/full-read (Files): Add lib/full-write.c.
13545         (Depends-on): Add full-write.
13546
13547 2011-04-13  Bruno Haible  <bruno@clisp.org>
13548
13549         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13550         * modules/pwrite (Depends-on): Add 'write'.
13551
13552 2011-04-13  Bruno Haible  <bruno@clisp.org>
13553
13554         Support non-blocking pipe I/O in write() on native Windows.
13555         * lib/unistd.in.h (write): Enable replacement also if
13556         GNULIB_UNISTD_H_NONBLOCKING is 1.
13557         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13558         (rpl_write): When failing to write on a non-blocking pipe, change
13559         errno from ENOSPC to EAGAIN.
13560         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13561         putchar, puts, vfprintf, vprintf): Enable replacement also if
13562         GNULIB_STDIO_H_NONBLOCKING is 1.
13563         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13564         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13565         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13566         CALL_WITH_SIGPIPE_EMULATION.
13567         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13568         * m4/nonblocking.m4: New file.
13569         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13570         for non-blocking I/O support.
13571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13572         GNULIB_UNISTD_H_NONBLOCKING.
13573         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13574         required for non-blocking I/O support.
13575         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13576         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13577         lib/stdio-write.c, m4/asm-underscore.m4.
13578         (Depends-on): Add stdio, unistd.
13579         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13580         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13581         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13582         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13583         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13584         problem with non-blocking pipes.
13585         * doc/posix-functions/fputc.texi: Likewise.
13586         * doc/posix-functions/fputs.texi: Likewise.
13587         * doc/posix-functions/fwrite.texi: Likewise.
13588         * doc/posix-functions/printf.texi: Likewise.
13589         * doc/posix-functions/putc.texi: Likewise.
13590         * doc/posix-functions/putchar.texi: Likewise.
13591         * doc/posix-functions/puts.texi: Likewise.
13592         * doc/posix-functions/vfprintf.texi: Likewise.
13593         * doc/posix-functions/vprintf.texi: Likewise.
13594         * doc/posix-functions/write.texi: Likewise.
13595
13596 2011-04-10  Jim Meyering  <meyering@redhat.com>
13597
13598         maint.mk: prohibit doubled words
13599         Detect them also when they're separated by a newline.
13600         There are 3 ways to customize it:
13601           - disable the test on a per file basis, as usual with rules using
13602             $(VC_LIST_EXCEPT)
13603           - replace the default doubled-word-selecting regexp (affects all files)
13604           - ignore a particular file-vs-doubled-word match
13605         I nearly used that last one to ignore the "is is" match in
13606         coreutils' NEWS file, since the text was "ls -is is ..."
13607         To do that, I would have added this line to cfg.mk:
13608           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13609         but it would have ignored any "is is" match in NEWS.
13610         Low probability, but still...
13611         Instead, I changed the text, slightly:
13612           -  ls -is is now consistent with ls -lis in ignoring values returned
13613           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13614         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13615         (prohibit_doubled_word_): Define.
13616         (sc_prohibit_doubled_word): New rule.
13617         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13618
13619 2011-04-10  Jim Meyering  <meyering@redhat.com>
13620
13621         maint: fix doubled-word typo in comment
13622         * m4/gethostname.m4: s/is is/it is/
13623         * m4/getdomainname.m4: Likewise.
13624
13625 2011-04-10  Jim Meyering  <meyering@redhat.com>
13626
13627         maint: remove doubled word: s/it it/it/
13628         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13629
13630 2011-04-10  Jim Meyering  <meyering@redhat.com>
13631
13632         maint.mk: remove useless semicolon and backslash
13633         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13634         semicolon and backslash.
13635
13636 2011-04-10  Bruno Haible  <bruno@clisp.org>
13637
13638         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13639         * modules/stdint-tests (Depends-on): Add wchar.
13640
13641 2011-04-10  Jim Meyering  <meyering@redhat.com>
13642
13643         maint: remove doubled words in comments, e.g., s/a a/a/
13644         * lib/strptime.c (day_of_the_week): s/the the/the/
13645         * tests/test-chown.h (test_chown): s/a a/a/
13646
13647         test-chown.h: correct a cast
13648         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13649         when the destination is a stat.st_gid.
13650
13651 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13652
13653         getaddrinfo: Fix test for sa_len member.
13654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13655         include <sys/types.h> before <sys/socket.h>.
13656
13657 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13658
13659         maint: change "can not" to "cannot"
13660         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13661         boundaries.
13662
13663 2011-04-09  Jim Meyering  <meyering@redhat.com>
13664
13665         maint: change "a a" to "a"
13666         * tests/test-lchown.h (test_lchown): s/a a/a/
13667
13668         maint.mk: prohibit \<the the\>
13669         * top/maint.mk (sc_prohibit_the_the): New rule.
13670
13671         maint: fix "the the" in comment
13672         * lib/count-one-bits.h: s/the the/the/
13673
13674         maint: change "can not" to "cannot"
13675         But do not change the occurrences in maintain.texi or in
13676         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13677         * doc/gnulib-tool.texi: s/can not/cannot/
13678         * doc/posix-functions/accept.texi (accept): Likewise.
13679         * doc/posix-functions/socket.texi (socket): Likewise.
13680         * lib/mbrtowc.c: Likewise.
13681
13682         maint.mk: prohibit use of "can not"
13683         * top/maint.mk (sc_prohibit_can_not): New rule.
13684         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13685
13686 2011-04-09  Bruno Haible  <bruno@clisp.org>
13687
13688         careadlinkat: Guard against misuse of careadlinkatcwd.
13689         * lib/careadlinkat.c: Include <stdlib.h>.
13690         (careadlinkatcwd): Check that the fd argument is as expected.
13691
13692 2011-04-09  Bruno Haible  <bruno@clisp.org>
13693
13694         careadlinkat: Use common coding style.
13695         * lib/careadlinkat.c: Move gnulib includes after system includes.
13696
13697 2011-04-09  Bruno Haible  <bruno@clisp.org>
13698
13699         careadlinkat: Clarify specification.
13700         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13701         (careadlinkatcwd): Add comment.
13702         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13703
13704 2011-04-09  Bruno Haible  <bruno@clisp.org>
13705
13706         areadlinkat: Avoid link error on many platforms.
13707         * modules/areadlinkat (Depends-on): Add areadlink.
13708
13709 2011-04-09  Bruno Haible  <bruno@clisp.org>
13710
13711         allocator, careadlinkat: Fix double-inclusion guard.
13712         * lib/allocator.h: Fix double-inclusion guard.
13713         * lib/careadlinkat.h: Likewise.
13714
13715 2011-04-09  Bruno Haible  <bruno@clisp.org>
13716
13717         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13718         * lib/relocwrapper.c: Update dependencies hierarchy.
13719         * build-aux/install-reloc: Update list of files to be compiled.
13720         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13721         lib/allocator.[hc].
13722
13723 2011-04-08  Eric Blake  <eblake@redhat.com>
13724
13725         strftime: silence gnulib-tool warning
13726         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13727
13728 2011-04-08  Bruno Haible  <bruno@clisp.org>
13729
13730         verify: Fix syntax error with GCC 4.6 in C++ mode.
13731         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13732         (HAVE_STATIC_ASSERT): New macro.
13733         (verify_true, verify): Use 'static_assert' if it is supported and
13734         '_Static_assert' is not supported.
13735
13736 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13737
13738         allocator: New module.
13739         * modules/allocator, lib/allocator.c: New files.
13740         * lib/allocator.h (stdlib_allocator): New decl.
13741         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13742         Remove.  Do not include <stdlib.h>.
13743         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13744         * modules/careadlinkat (Files): Remove lib/allocator.h.
13745         (Depends-on): Add allocator.
13746
13747         stdlib: let modules use system malloc, realloc
13748         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13749         if !_GL_USE_STDLIB_ALLOC.
13750         (malloc, realloc): Limit this change to a smaller scope.
13751
13752         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13753         (malloc, realloc): Don't #undef; no longer needed.
13754         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13755         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13756         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13757         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13758         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13759         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13760         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13761         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13762
13763         careadlinkat: rename members to avoid problem
13764         * lib/allocator.h (struct allocator): Rename members from
13765         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13766         and realloc are #define'd.  Reported by Eric Blake in
13767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13768         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13769
13770 2011-04-08  Eric Blake  <eblake@redhat.com>
13771
13772         nonblocking: reduce dependency
13773         * tests/test-nonblocking.c: Only test sockets when in use.
13774         * modules/nonblocking-tests (Depends-on): Drop socket.
13775         (Makefile.am): Link even if sockets are not present.
13776         * modules/pipe2-tests (Makefile.am): Likewise.
13777         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13778
13779         pipe2: fix O_NONBLOCK support on mingw
13780         * modules/pipe2 (Depends-on): Add nonblocking.
13781         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13782         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13783         * tests/test-nonblocking.c (main): Likewise.
13784         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13785
13786         fcntl-h: fix O_ACCMODE on cygwin
13787         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13788         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13789
13790         pipe-filter: drop O_NONBLOCK workarounds
13791         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13792         * modules/pipe-filter-ii (Depends-on): Likewise.
13793         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13794
13795         nonblocking: provide O_NONBLOCK for mingw
13796         * modules/nonblocking (Depends-on): Add open.
13797         (configure.ac): Set new witness macro.
13798         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13799         * modules/fcntl-h (Makefile.am): Substitute it.
13800         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13801         nonblocking module is in use.
13802         * lib/nonblocking.c: Adjust portability test.
13803         * lib/open.c (open): Don't let native open see gnulib flag.
13804         * tests/test-fcntl-h.c (main): Enhance test.
13805         * tests/test-open.h (test_open): Likewise.
13806         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13807
13808         careadlinkat: fix compilation error on mingw
13809         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13810         within struct allocator.
13811
13812 2011-04-06  Eric Blake  <eblake@redhat.com>
13813
13814         binary-io: relicense under LGPLv2+
13815         * modules/binary-io (License): Relax to LGPLv2+.
13816         Requested for libvirt, and required by pipe2.
13817
13818 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13819
13820         verify: use _Static_assert if available
13821         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13822         (verify_true, verify): Use it if available.  This generates better
13823         diagnostics with GCC 4.6.0 and later.
13824
13825 2011-04-05  Bruno Haible  <bruno@clisp.org>
13826
13827         Remove leftover generated .h files after config.status changed.
13828
13829         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13830         GL_GENERATE_ALLOCA_H.
13831         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13832         GL_GENERATE_ALLOCA_H evaluates to false.
13833
13834         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13835         GL_GENERATE_ARGZ_H.
13836         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13837         evaluates to false.
13838
13839         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13840         GL_GENERATE_BYTESWAP_H.
13841         * modules/byteswap (Makefile.am): Remove byteswap.h if
13842         GL_GENERATE_BYTESWAP_H evaluates to false.
13843
13844         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13845         GL_GENERATE_ERRNO_H.
13846         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13847         evaluates to false.
13848
13849         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13850         GL_GENERATE_FLOAT_H.
13851         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13852         evaluates to false.
13853
13854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13855         GL_GENERATE_FNMATCH_H.
13856         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13857         GL_GENERATE_FNMATCH_H evaluates to false.
13858
13859         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13860         GL_GENERATE_GLOB_H.
13861         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13862         evaluates to false.
13863
13864         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13865         automake conditional GL_GENERATE_ICONV_H.
13866         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13867         evaluates to false.
13868
13869         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13870         GL_GENERATE_NETINET_IN_H.
13871         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13872         GL_GENERATE_NETINET_IN_H evaluates to false.
13873
13874         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13875         conditional GL_GENERATE_PTHREAD_H.
13876         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13877         * modules/pthread (Makefile.am): Remove pthread.h if
13878         GL_GENERATE_PTHREAD_H evaluates to false.
13879
13880         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13881         GL_GENERATE_SCHED_H.
13882         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13883         evaluates to false.
13884
13885         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13886         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13887         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13888         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13889
13890         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13891         GL_GENERATE_STDARG_H.
13892         * modules/stdarg (Makefile.am): Remove stdarg.h if
13893         GL_GENERATE_STDARG_H evaluates to false.
13894
13895         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13896         GL_GENERATE_STDBOOL_H.
13897         * modules/stdbool (Makefile.am): Remove stdbool.h if
13898         GL_GENERATE_STDBOOL_H evaluates to false.
13899
13900         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13901         conditional GL_GENERATE_STDDEF_H.
13902         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13903         * modules/stddef (Makefile.am): Remove stddef.h if
13904         GL_GENERATE_STDDEF_H evaluates to false.
13905
13906         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13907         GL_GENERATE_STDINT_H.
13908         * modules/stdint (Makefile.am): Remove stdint.h if
13909         GL_GENERATE_STDINT_H evaluates to false.
13910
13911         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13912         GL_GENERATE_SYSEXITS_H.
13913         * modules/sysexits (Makefile.am): Remove sysexits.h if
13914         GL_GENERATE_SYSEXITS_H evaluates to false.
13915
13916         Reported by Karl Berry and Ralf Wildenhues.
13917
13918 2011-04-05  Bruno Haible  <bruno@clisp.org>
13919
13920         Ensure to rebuild generated .h files when config.status has changed.
13921         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13922         config.status.
13923         * modules/ctype (Makefile.am): Likewise.
13924         * modules/dirent (Makefile.am): Likewise.
13925         * modules/errno (Makefile.am): Likewise.
13926         * modules/fcntl-h (Makefile.am): Likewise.
13927         * modules/float (Makefile.am): Likewise.
13928         * modules/getopt-posix (Makefile.am): Likewise.
13929         * modules/glob (Makefile.am): Likewise.
13930         * modules/iconv-h (Makefile.am): Likewise.
13931         * modules/inttypes (Makefile.am): Likewise.
13932         * modules/langinfo (Makefile.am): Likewise.
13933         * modules/locale (Makefile.am): Likewise.
13934         * modules/math (Makefile.am): Likewise.
13935         * modules/netdb (Makefile.am): Likewise.
13936         * modules/netinet_in (Makefile.am): Likewise.
13937         * modules/poll-h (Makefile.am): Likewise.
13938         * modules/pthread (Makefile.am): Likewise.
13939         * modules/pty (Makefile.am): Likewise.
13940         * modules/sched (Makefile.am): Likewise.
13941         * modules/search (Makefile.am): Likewise.
13942         * modules/selinux-h (Makefile.am): Likewise.
13943         * modules/signal (Makefile.am): Likewise.
13944         * modules/spawn (Makefile.am): Likewise.
13945         * modules/stdarg (Makefile.am): Likewise.
13946         * modules/stdbool (Makefile.am): Likewise.
13947         * modules/stddef (Makefile.am): Likewise.
13948         * modules/stdint (Makefile.am): Likewise.
13949         * modules/stdio (Makefile.am): Likewise.
13950         * modules/stdlib (Makefile.am): Likewise.
13951         * modules/string (Makefile.am): Likewise.
13952         * modules/strings (Makefile.am): Likewise.
13953         * modules/sys_file (Makefile.am): Likewise.
13954         * modules/sys_ioctl (Makefile.am): Likewise.
13955         * modules/sys_select (Makefile.am): Likewise.
13956         * modules/sys_socket (Makefile.am): Likewise.
13957         * modules/sys_stat (Makefile.am): Likewise.
13958         * modules/sys_time (Makefile.am): Likewise.
13959         * modules/sys_times (Makefile.am): Likewise.
13960         * modules/sys_utsname (Makefile.am): Likewise.
13961         * modules/sys_wait (Makefile.am): Likewise.
13962         * modules/sysexits (Makefile.am): Likewise.
13963         * modules/termios (Makefile.am): Likewise.
13964         * modules/time (Makefile.am): Likewise.
13965         * modules/unistd (Makefile.am): Likewise.
13966         * modules/wchar (Makefile.am): Likewise.
13967         * modules/wctype-h (Makefile.am): Likewise.
13968         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13969
13970 2011-04-05  Bruno Haible  <bruno@clisp.org>
13971
13972         pipe2: Relicense under LGPLv2+.
13973         * modules/pipe2 (License): Change to LGPLv2+.
13974         Requested by Eric Blake, for libvirt.
13975
13976 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13977
13978         bootstrap: compute gnulib_extra_files after updating build_aux
13979         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13980         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13981
13982 2011-04-05  Eric Blake  <eblake@redhat.com>
13983
13984         bootstrap: preserve git whitelist item sorting
13985         * build-aux/bootstrap (sort_patterns): New function.
13986         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13987
13988 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13989
13990         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13991         sc_space_tab check.
13992
13993 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13994
13995         areadlink, areadlinkat: rewrite in terms of careadlinkat
13996         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13997         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13998         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13999         (malloc, realloc): Remove #undefs.
14000         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14001         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14002         readlink, ssize_t, stdint, unistd.
14003         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14004         areadlink, stdint.
14005
14006         careadlinkat: new module
14007         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14008         * modules/careadlinkat: New files, written by me with
14009         a review and feedback from Ben Pfaff in
14010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14011
14012 2011-04-01  Bruno Haible  <bruno@clisp.org>
14013
14014         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14015         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14016         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14017         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14018         Reported by Bruce Korb <bruce.korb@gmail.com>.
14019
14020 2011-04-01  Bruno Haible  <bruno@clisp.org>
14021
14022         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14023         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14024         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14025         * modules/wcpcpy (Depends-on): Add extensions.
14026         * modules/wcpncpy (Depends-on): Likewise.
14027         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14028         systems.
14029         * doc/posix-functions/wcpncpy.texi: Likewise.
14030         * doc/posix-functions/wcwidth.texi: Likewise.
14031
14032 2011-03-31  Eric Blake  <eblake@redhat.com>
14033
14034         nonblocking: fix mingw test failures
14035         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14036         non-blocking flag on regular file.
14037         (get_nonblocking_flag): Set errno on invalid fd.
14038         * tests/test-nonblocking.c (main): Avoid test failure on
14039         directories if fchdir is not active.
14040         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14041
14042 2011-03-31  Bruno Haible  <bruno@clisp.org>
14043
14044         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14045         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14046         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14047         Reported by Simon Josefsson <simon@josefsson.org>.
14048
14049 2011-03-31  Bruno Haible  <bruno@clisp.org>
14050         and Eric Blake  <eblake@redhat.com>
14051
14052         nonblocking: new module
14053         * modules/nonblocking: New module.
14054         * modules/nonblocking-tests: Likewise.
14055         * lib/nonblocking.h: New file.
14056         * lib/nonblocking.c: Likewise.
14057         * tests/test-nonblocking.c: New test.
14058         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14059
14060 2011-03-30  Bruno Haible  <bruno@clisp.org>
14061
14062         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14063         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14064         instead of 'printf' format for GCC >= 4.4.
14065         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14066         (fprintf, printf, vfprintf, vprintf): Declare with
14067         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14068         the system's vfprintf() function.
14069         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14070
14071 2011-03-30  Eric Blake  <eblake@redhat.com>
14072
14073         passfd: fix scoping bug
14074         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14075         before sendmsg/recvmsg.
14076
14077         passfd: standardize coding conventions
14078         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14079         can be learned at compile time.
14080         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14081         ifdefs.
14082         (sendfd, recvfd): Follow gnulib code conventions.
14083
14084         passfd: fix incorrect sendmsg arguments
14085         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14086         incorrect msg_controllen value.
14087         * modules/passfd-tests (Depends-on): Check for alarm.
14088         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14089         Reported by Bastien ROUCARIES.
14090
14091 2011-03-30  Bruno Haible  <bruno@clisp.org>
14092
14093         c-strcasestr: Relicense under LGPLv2+.
14094         * modules/c-strcasestr (License): Change to LGPLv2+.
14095         Requested by Eric Blake, for libvirt.
14096
14097 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14098
14099         * users.txt: Add libidn2.  Fix libtasn1 link.
14100
14101 2011-03-30  Jim Meyering  <meyering@redhat.com>
14102
14103         tests: readlink* ("",... fails with EINVAL on newer kernels
14104         readlink and readlinkat have typically failed with ENOENT for
14105         the invalid, empty file name,  "".  However, with the advent
14106         of linux-2.6.39, they fail with EINVAL.
14107         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14108         when operating on the empty file name.
14109         * tests/test-readlink.h (test_readlink): Likewise.
14110
14111 2011-03-29  Bruno Haible  <bruno@clisp.org>
14112
14113         Relicense some modules under LGPLv2+, for libidn2.
14114         * modules/array-mergesort (License): Change to LGPLv2+.
14115         * modules/c-strcaseeq (License): Likewise.
14116         * modules/striconveh (License): Likewise.
14117         * modules/striconveha (License): Likewise.
14118         * modules/uniconv/base (License): Likewise.
14119         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14120         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14121         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14122         * modules/unictype/base (License): Likewise.
14123         * modules/unictype/bidiclass-of (License): Likewise.
14124         * modules/unictype/category-M (License): Likewise.
14125         * modules/unictype/category-none (License): Likewise.
14126         * modules/unictype/category-of (License): Likewise.
14127         * modules/unictype/category-test (License): Likewise.
14128         * modules/unictype/category-test-withtable (License): Likewise.
14129         * modules/unictype/combining-class (License): Likewise.
14130         * modules/unictype/joiningtype-of (License): Likewise.
14131         * modules/unictype/scripts (License): Likewise.
14132         * modules/uninorm/base (License): Likewise.
14133         * modules/uninorm/canonical-decomposition (License): Likewise.
14134         * modules/uninorm/composition (License): Likewise.
14135         * modules/uninorm/decompose-internal (License): Likewise.
14136         * modules/uninorm/decomposition-table (License): Likewise.
14137         * modules/uninorm/nfc (License): Likewise.
14138         * modules/uninorm/nfd (License): Likewise.
14139         * modules/uninorm/u32-normalize (License): Likewise.
14140         * modules/unistr/base (License): Likewise.
14141         * modules/unistr/u32-cpy (License): Likewise.
14142         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14143         * modules/unistr/u32-to-u8 (License): Likewise.
14144         * modules/unistr/u32-uctomb (License): Likewise.
14145         * modules/unistr/u8-check (License): Likewise.
14146         * modules/unistr/u8-mblen (License): Likewise.
14147         * modules/unistr/u8-mbtouc (License): Likewise.
14148         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14149         * modules/unistr/u8-mbtoucr (License): Likewise.
14150         * modules/unistr/u8-prev (License): Likewise.
14151         * modules/unistr/u8-strlen (License): Likewise.
14152         * modules/unistr/u8-to-u32 (License): Likewise.
14153         * modules/unistr/u8-uctomb (License): Likewise.
14154         * modules/unitypes (License): Likewise.
14155         Requested by Simon Josefsson.
14156
14157 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14158
14159         lib-symbol-visibility: Add a notice.
14160         * modules/lib-symbol-visibility (Notice): New field.
14161
14162 2011-03-29  Bruno Haible  <bruno@clisp.org>
14163
14164         getaddrinfo: Doc fix.
14165         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14166         section "fixed in Gnulib".
14167
14168 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14169
14170         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14171         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14172
14173 2011-03-26  Bruno Haible  <bruno@clisp.org>
14174
14175         unictype/property-byname: Reduce the number of load-time relocations.
14176         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14177         (UC_PROPERTY_INDEX_*): New enumeration values.
14178         (uc_property_byname): Convert an index from the lookup table to an
14179         uc_property_t.
14180         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14181         values.
14182
14183 2011-03-26  Bruno Haible  <bruno@clisp.org>
14184
14185         unictype/property-byname: Allow omitted word separators and aliases.
14186         * lib/unictype/pr_byname.gperf: Add property names without word
14187         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14188         for 'space'.
14189
14190 2011-03-26  Bruno Haible  <bruno@clisp.org>
14191
14192         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14193         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14194         also hyphens to space.
14195         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14196         without spaces.
14197         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14198
14199 2011-03-26  Bruno Haible  <bruno@clisp.org>
14200
14201         unictype/joiningtype-byname: Recognize long names as well.
14202         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14203         a long name.
14204         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14205         unictype/joiningtype_byname.h.
14206         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14207         * lib/unictype/joiningtype_byname.gperf: New file.
14208         * modules/unictype/joiningtype-byname (Files): Add
14209         lib/unictype/joiningtype_byname.gperf.
14210         (Depends-on): Add gperf.
14211         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14212         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14213         long names.
14214
14215         Tests for module 'unictype/joiningtype-longname'.
14216         * modules/unictype/joiningtype-longname-tests: New file.
14217         * tests/unictype/test-joiningtype_longname.c: New file.
14218
14219         New module 'unictype/joiningtype-longname'.
14220         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14221         * lib/unictype/joiningtype_longname.c: New file.
14222         * modules/unictype/joiningtype-longname: New file.
14223         * modules/unictype/joiningtype-all (Depends-on): Add
14224         unictype/joiningtype-longname.
14225
14226 2011-03-26  Bruno Haible  <bruno@clisp.org>
14227
14228         unictype/bidiclass-byname: Recognize long names as well.
14229         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14230         name.
14231         * lib/unictype/bidi_byname.c: Include <string.h>,
14232         unictype/bidi_byname.h.
14233         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14234         * lib/unictype/bidi_byname.gperf: New file.
14235         * modules/unictype/bidiclass-byname (Files): Add
14236         lib/unictype/bidi_byname.gperf.
14237         (Depends-on): Add gperf.
14238         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14239         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14240         long names.
14241
14242         Tests for module 'unictype/bidiclass-longname'.
14243         * modules/unictype/bidiclass-longname-tests: New file.
14244         * tests/unictype/test-bidi_longname.c: New file.
14245
14246         New module 'unictype/bidiclass-longname'.
14247         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14248         * lib/unictype/bidi_longname.c: New file.
14249         * modules/unictype/bidiclass-longname: New file.
14250         * modules/unictype/bidiclass-all (Depends-on): Add
14251         unictype/bidiclass-longname.
14252
14253 2011-03-26  Bruno Haible  <bruno@clisp.org>
14254
14255         unictype/bidi*: Rename modules.
14256         * modules/unictype/bidiclass-all: Renamed from
14257         modules/unictype/bidicategory-all.
14258         * modules/unictype/bidiclass-name: Renamed from
14259         modules/unictype/bidiclass-name.
14260         (Description): Update.
14261         * modules/unictype/bidiclass-name-tests: Renamed from
14262         modules/unictype/bidicategory-name-tests.
14263         * modules/unictype/bidiclass-byname: Renamed from
14264         modules/unictype/bidicategory-byname.
14265         (Description): Update.
14266         * modules/unictype/bidiclass-byname-tests: Renamed from
14267         modules/unictype/bidicategory-byname-tests.
14268         * modules/unictype/bidiclass-of: Renamed from
14269         modules/unictype/bidicategory-of.
14270         (Description): Update.
14271         * modules/unictype/bidiclass-of-tests: Renamed from
14272         modules/unictype/bidicategory-of-tests.
14273         * modules/unictype/bidiclass-test: Renamed from
14274         modules/unictype/bidicategory-test.
14275         (Description): Update.
14276         * modules/unictype/bidiclass-test-tests: Renamed from
14277         modules/unictype/bidicategory-test-tests.
14278         * modules/unictype/bidicategory-all: New file, a simple redirection.
14279         * modules/unictype/bidicategory-name: Likewise.
14280         * modules/unictype/bidicategory-byname: Likewise.
14281         * modules/unictype/bidicategory-of: Likewise.
14282         * modules/unictype/bidicategory-test: Likewise.
14283         * modules/unictype/property-bidi-* (Dependencies): Update.
14284         * lib/unictype/bidi_*.c: Update comment.
14285
14286 2011-03-26  Bruno Haible  <bruno@clisp.org>
14287
14288         unictype/bidi*: Rename functions, part 2.
14289         * modules/unictype/bidicategory-name (configure.ac): Update required
14290         libunistring version.
14291         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14292
14293 2011-03-25  Bruno Haible  <bruno@clisp.org>
14294
14295         New module 'unictype/combining-class-all'.
14296         * modules/unictype/combining-class-all: New file.
14297
14298         Tests for module 'unictype/combining-class-byname'.
14299         * modules/unictype/combining-class-byname-tests: New file.
14300         * tests/unictype/test-combiningclass_byname.c: New file.
14301
14302         New module 'unictype/combining-class-byname'.
14303         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14304         * lib/unictype/combiningclass_byname.c: New file.
14305         * lib/unictype/combiningclass_byname.gperf: New file.
14306         * modules/unictype/combining-class-byname: New file.
14307
14308         Tests for module 'unictype/combining-class-longname'.
14309         * modules/unictype/combining-class-longname-tests: New file.
14310         * tests/unictype/test-combiningclass_longname.c: New file.
14311
14312         New module 'unictype/combining-class-longname'.
14313         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14314         * lib/unictype/combiningclass_longname.c: New file.
14315         * modules/unictype/combining-class-longname: New file.
14316
14317         Tests for module 'unictype/combining-class-name'.
14318         * modules/unictype/combining-class-name-tests: New file.
14319         * tests/unictype/test-combiningclass_name.c: New file.
14320
14321         New module 'unictype/combining-class-name'.
14322         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14323         * lib/unictype/combiningclass_name.c: New file.
14324         * modules/unictype/combining-class-name: New file.
14325
14326 2011-03-25  Bruno Haible  <bruno@clisp.org>
14327
14328         unictype/combining-class: Rename source files.
14329         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14330         of unictype/combining.h.
14331         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14332         Update.
14333         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14334         * modules/unictype/combining-class (Description): Fix.
14335         (Files, Makefile.am): Update.
14336         * tests/unictype/test-combiningclass.c: Renamed from
14337         tests/unictype/test-combining.c.
14338         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14339
14340 2011-03-25  Bruno Haible  <bruno@clisp.org>
14341
14342         unictype: Update list of canonical combining classes.
14343         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14344
14345 2011-03-25  Bruno Haible  <bruno@clisp.org>
14346
14347         unictype/category-byname: Recognize long names as well.
14348         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14349         a long name.
14350         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14351         unictype/categ_byname.h.
14352         (UC_CATEGORY_INDEX_*): New enumeration values.
14353         (uc_general_category_byname): Use uc_general_category_lookup and
14354         convert from index to value.
14355         * lib/unictype/categ_byname.gperf: New file.
14356         * modules/unictype/category-byname (Files): Add
14357         lib/unictype/categ_byname.gperf.
14358         (Depends-on): Add gperf.
14359         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14360         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14361         long names.
14362
14363         Tests for module 'unictype/category-longname'.
14364         * modules/unictype/category-longname-tests: New file.
14365         * tests/unictype/test-categ_longname.c: New file.
14366
14367         New module 'unictype/category-longname'.
14368         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14369         * lib/unictype/categ_longname.c: New file.
14370         * modules/unictype/category-longname: New file.
14371         * modules/unictype/category-all (Depends-on): Add it.
14372
14373 2011-03-25  Bruno Haible  <bruno@clisp.org>
14374
14375         Tests for module 'unictype/category-LC'.
14376         * modules/unictype/category-LC-tests: New file.
14377         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14378
14379         New module 'unictype/category-LC'.
14380         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14381         (UC_CATEGORY_LC): New declaration.
14382         (UC_CASED_LETTER): New macro.
14383         * lib/gen-uni-tables.c (is_category_LC): New function.
14384         (output_categories): Also handle category LC.
14385         (UC_CATEGORY_MASK_LC): New enumeration value.
14386         (general_category_byname): Also handle category LC.
14387         * lib/unictype/categ_LC.c: New file.
14388         * lib/unictype/categ_LC.h: New file, automatically generated.
14389         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14390         category LC.
14391         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14392         * modules/unictype/category-LC: New file.
14393         * modules/unictype/category-byname (Depends-on): Add
14394         unictype/category-LC.
14395         * modules/unictype/category-all (Depends-on): Likewise.
14396
14397 2011-03-25  Eric Blake  <eblake@redhat.com>
14398
14399         xmalloc: revert yesterday's regression
14400         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14401         realloc's underlying behavior (allowing allocation of zero-size
14402         objects, especially if malloc-gnu is also in use).
14403
14404 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14405
14406         maint.mk: add missing version to VC-tag
14407         * top/maint.mk: git tag was missing actual tag name; add it.
14408
14409         valgrind: do leak checking, and exit with code 1 on error (not 0)
14410         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14411         to VALGRIND.
14412
14413 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14414
14415         posix-modules: say what it does.
14416         * posix-modules: Add a line to the --help output saying what it does.
14417
14418 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14419
14420         xmalloc: Do not leak if underlying realloc is C99 compatible.
14421         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14422         This avoids a leak on C99-based systems.  See
14423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14424
14425 2011-03-24  Eric Blake  <eblake@redhat.com>
14426
14427         realloc: document portability problem
14428         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14429         passing 0 size to realloc.
14430
14431 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14432
14433         doc: update users.txt
14434         * users.txt: Add cvsps, tmpwatch
14435
14436 2011-03-23  Matt Rice  <ratmice@gmail.com>
14437
14438         doc: update users.txt
14439         * users.txt: Add gdb.
14440
14441 2011-03-23  Jim Meyering  <meyering@redhat.com>
14442
14443         doc: update users.txt
14444         Looking through matches up to the following URL (there are still
14445         several more pages), I found several projects that use gnulib:
14446         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14447         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14448         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14449
14450 2011-03-22  Bruno Haible  <bruno@clisp.org>
14451
14452         unictype/bidi*: Rename functions.
14453         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14454         uc_bidi_class, uc_is_bidi_class): New declarations.
14455         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14456         uc_bidi_category_byname.
14457         (uc_bidi_category_byname): New function.
14458         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14459         u_bidi_category_name.
14460         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14461         (uc_bidi_category_name): New function.
14462         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14463         uc_bidi_category.
14464         (uc_bidi_category): New function.
14465         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14466         uc_is_bidi_category. Invoke uc_bidi_class.
14467         (uc_is_bidi_category): New function.
14468         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14469         instead of uc_bidi_category_byname.
14470         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14471         instead of uc_bidi_category_name.
14472         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14473         uc_bidi_category.
14474         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14475         instead of uc_is_bidi_category.
14476
14477 2011-03-21  Bruno Haible  <bruno@clisp.org>
14478
14479         New module 'unictype/joininggroup-all'.
14480         * modules/unictype/joininggroup-all: New file.
14481
14482         Tests for module 'unictype/joininggroup-of'.
14483         * modules/unictype/joininggroup-of-tests: New file.
14484         * tests/unictype/test-joininggroup_of.c: New file.
14485         * tests/unictype/test-joininggroup_of.h: New file, automatically
14486         generated by gen-uni-tables.
14487
14488         New module 'unictype/joininggroup-of'.
14489         * modules/unictype/joininggroup-of: New file.
14490         * lib/unictype/joininggroup_of.c: New file.
14491         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14492         gen-uni-tables.
14493
14494         Tests for module 'unictype/joininggroup-byname'.
14495         * modules/unictype/joininggroup-byname-tests: New file.
14496         * tests/unictype/test-joininggroup_byname.c: New file.
14497
14498         New module 'unictype/joininggroup-byname'.
14499         * modules/unictype/joininggroup-byname: New file.
14500         * lib/unictype/joininggroup_byname.c: New file.
14501         * lib/unictype/joininggroup_byname.gperf: New file.
14502
14503         Tests for module 'unictype/joininggroup-name'.
14504         * modules/unictype/joininggroup-name-tests: New file.
14505         * tests/unictype/test-joininggroup_name.c: New file.
14506
14507         New module 'unictype/joininggroup-name'.
14508         * modules/unictype/joininggroup-name: New file.
14509         * lib/unictype/joininggroup_name.c: New file.
14510         * lib/unictype/joininggroup_name.h: New file.
14511
14512         New module 'unictype/joiningtype-all'.
14513         * modules/unictype/joiningtype-all: New file.
14514
14515         Tests for module 'unictype/joiningtype-of'.
14516         * modules/unictype/joiningtype-of-tests: New file.
14517         * tests/unictype/test-joiningtype_of.c: New file.
14518         * tests/unictype/test-joiningtype_of.h: New file, automatically
14519         generated by gen-uni-tables.
14520
14521         New module 'unictype/joiningtype-of'.
14522         * modules/unictype/joiningtype-of: New file.
14523         * lib/unictype/joiningtype_of.c: New file.
14524         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14525         gen-uni-tables.
14526
14527         Tests for module 'unictype/joiningtype-byname'.
14528         * modules/unictype/joiningtype-byname-tests: New file.
14529         * tests/unictype/test-joiningtype_byname.c: New file.
14530
14531         New module 'unictype/joiningtype-byname'.
14532         * modules/unictype/joiningtype-byname: New file.
14533         * lib/unictype/joiningtype_byname.c: New file.
14534
14535         Tests for module 'unictype/joiningtype-name'.
14536         * modules/unictype/joiningtype-name-tests: New file.
14537         * tests/unictype/test-joiningtype_name.c: New file.
14538
14539         New module 'unictype/joiningtype-name'.
14540         * modules/unictype/joiningtype-name: New file.
14541         * lib/unictype/joiningtype_name.c: New file.
14542
14543         unictype: Add support for Arabic shaping properties.
14544         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14545         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14546         declarations.
14547         (UC_JOINING_GROUP_*): New enumeration values.
14548         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14549         declarations.
14550         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14551         (unicode_joining_type): New variable.
14552         (UC_JOINING_GROUP_*): New enumeration values.
14553         (unicode_joining_group): New variable.
14554         (fill_arabicshaping, joining_type_as_c_identifier,
14555         output_joining_type_test, output_joining_type,
14556         joining_group_as_c_identifier, output_joining_group_test,
14557         output_joining_group): New functions.
14558         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14559         fill_arabicshaping and output_joining_type_test, output_joining_type,
14560         output_joining_group_test, output_joining_group.
14561         Reported by Simon Josefsson.
14562
14563 2011-03-21  Jim Meyering  <meyering@redhat.com>
14564
14565         strftime: fix a bug in yesterday's change
14566         * lib/strftime.c (add): Accommodate width's initial value of -1.
14567         Otherwise, nstrftime would copy uninitialized data into
14568         the result buffer.
14569
14570 2011-03-21  Jim Meyering  <meyering@redhat.com>
14571
14572         tests: add strftime-tests module
14573         * tests/test-strftime.c: New file.
14574         * modules/strftime-tests: New module.
14575
14576 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14577
14578         strftime: don't assume a byte count fits in 'int'
14579         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14580         found this problem by static analysis, using gcc -Wstrict-overflow
14581         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14582         on an integer overflow having undefined behavior, but it turns out
14583         that the argument is a size, which might not fit in 'int' anyway,
14584
14585 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14586
14587         stdio: don't require ignore_value around fwrite
14588
14589         This patch works around libc bug 11959
14590         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14591         Without this patch, applications must often write
14592         ignore_value (fwrite (...)) even though the ignore_value is
14593         not helpful here.  It's common to write many objects, using
14594         fwrite/printf/etc., and then use ferror to detect output error.
14595
14596         I considered making this patch optional, but decided against it,
14597         because libc is obviously being inconsistent here: there is no
14598         reason libc should insist that user code must inspect fwrite
14599         return's value without also insisting that it inspect printf's,
14600         putchar's, etc.  If user code wants to have a strict style where
14601         all these functions' values are checked (so that ferror need not
14602         be checked), we could add support for that style in a new gnulib
14603         module, but in the meantime it's better to be consistent and to
14604         support common usage.
14605
14606         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14607         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14608         that we are compiling in checking mode, and if not C++, and
14609         if not already wrapping fwrite for some other reason.
14610         (fwrite): #define to rpl_fwrite if the latter is defined.
14611
14612 2011-03-20  Bruno Haible  <bruno@clisp.org>
14613
14614         verror: Fix compilation error introduced on 2011-02-13.
14615         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14616         instead of __attribute__.
14617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14618
14619 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14620             Bruno Haible  <bruno@clisp.org>
14621
14622         socklen: do not depend on sys_socket
14623         While trying to modify Emacs to use gnulib's socklen module,
14624         I discovered a circular dependency: socklen depends on sys_socket
14625         and vice versa.  Emacs can use socklen, but it does not need
14626         sys_socket because it has its own substitute for sys/socket.h.
14627         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14628         gl_TYPE_SOCKLEN_T.
14629         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14630         gl_PREREQ_SYS_H_SOCKET.
14631         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14632         gl_PREREQ_SYS_H_SOCKET.
14633         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14634         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14635         * modules/socklen (Depends-on): Do not depend on sys_socket.
14636         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14637
14638 2011-03-20  Jim Meyering  <meyering@redhat.com>
14639
14640         maint.mk: sort file names *after* new transformation
14641         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14642         prefix would have led to an unwarranted failure in GNU parted.
14643         Sort after that transformation.
14644
14645 2011-03-19  Jim Meyering  <meyering@redhat.com>
14646
14647         maint.mk: fix po-file syntax-check rule
14648         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14649         Patch by Bruno Haible.
14650
14651 2011-03-19  Bruno Haible  <bruno@clisp.org>
14652
14653         socklen: Update comment.
14654         * m4/socklen.m4: Update comment about platforms.
14655
14656 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14657             Bruno Haible  <bruno@clisp.org>
14658
14659         inet_ntop, inet_pton: Simplify.
14660         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14661         documented to provide socklen_t and we already depend on sys_socket.
14662         * modules/inet_pton (Depends-on): Likewise.
14663         * lib/arpa_inet.in.h: Adjust comment.
14664
14665 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14666             Bruno Haible  <bruno@clisp.org>
14667
14668         netdb: Simplify.
14669         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14670         documented to provide socklen_t and we already depend on sys_socket.
14671         * lib/netdb.in.h: Adjust comment.
14672
14673 2011-03-19  Bruno Haible  <bruno@clisp.org>
14674
14675         sys_socket, netdb: Document problem with socklen_t.
14676         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14677         platforms.
14678         * doc/posix-headers/netdb.texi: Likewise.
14679
14680 2011-03-18  Eric Blake  <eblake@redhat.com>
14681
14682         maint.mk: let po check work in VPATH build
14683         * top/maint.mk (po_file): Allow cfg.mk override.
14684         (sc_po_check): Allow VPATH use.
14685         Reported by Jiri Denemark.
14686
14687 2011-03-16  Jim Meyering  <meyering@redhat.com>
14688
14689         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14690         Before, you would have had to create one .x-sc_ file per rule in order
14691         to exempt offending files.  Now, you may instead use a Make variable --
14692         usually defined in cfg.mk -- whose name identifies the affected rule.
14693         * top/maint.mk (_sc_excl): Define.
14694         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14695         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14696
14697 2011-03-13  Bruno Haible  <bruno@clisp.org>
14698
14699         ignore-value tests: Avoid warnings.
14700         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14701         empty for gcc < 3.4.
14702
14703 2011-03-13  Bruno Haible  <bruno@clisp.org>
14704
14705         passfd: Fix link error on Solaris.
14706         * modules/passfd (Description): Correct.
14707         (Depends-on): Add socketlib.
14708         (Link): New section.
14709         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14710
14711 2011-03-13  Bruno Haible  <bruno@clisp.org>
14712
14713         passfd: Fix link error on AIX 5.2.
14714         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14715
14716 2011-03-13  Bruno Haible  <bruno@clisp.org>
14717
14718         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14719         * lib/sys_socket.in.h: Include <stddef.h>.
14720         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14721         CMSG_FIRSTHDR. Remove unused variable.
14722
14723 2011-03-13  Bruno Haible  <bruno@clisp.org>
14724
14725         passfd: Fix compilation error on OpenBSD.
14726         * lib/passfd.c: Include <sys/uio.h>.
14727
14728 2011-03-13  Bruno Haible  <bruno@clisp.org>
14729
14730         passfd test: Fix warnings.
14731         * tests/test-passfd.c: Include <sys/wait.h>.
14732         (main): Fix typo.
14733
14734 2011-03-13  Bruno Haible  <bruno@clisp.org>
14735
14736         passfd module, part 4, tweaks.
14737         * tests/test-passfd.c: Reorder includes.
14738         (main): Fix perror and printf calls.
14739
14740 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14741
14742         passfd module, part 4.
14743         * modules/passfd-tests: New file.
14744         * tests/test-passfd.c: New file.
14745
14746 2011-03-13  Jim Meyering  <meyering@redhat.com>
14747
14748         Makefile: rely on GNU make; derive syntax-check rule names
14749         Rather than requiring that each sc_ rule be listed as a dependent
14750         of "check", use features of GNU make to derive the list.
14751         * Makefile (syntax-check-rules): Define.
14752         (check): Depend on the new variable, not the hard-coded list.
14753
14754 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14755             Bruno Haible  <bruno@clisp.org>
14756
14757         passfd module, part 3.
14758         * lib/passfd.h (recvfd): Add a flags argument.
14759         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14760         (recvfd): Add a flags argument.
14761         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14762         exists.
14763         * modules/passfd (Depends-on): Add cloexec.
14764         Suggested by Eric Blake.
14765
14766 2011-03-13  Bruno Haible  <bruno@clisp.org>
14767
14768         passfd module, part 2, tweaks.
14769         * modules/passfd (Files): Reorder.
14770         (Depends-on): Remove errno.
14771         (Include): Remove <sys/socket.h>, <sys/un.h>.
14772         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14773         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14774         specification header. Include <sys/socket.h> always. Don't include
14775         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14776         (sendfd): Clarify that it sets errno when it fails.
14777         (recvfd): Fix specification.
14778
14779 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14780
14781         passfd module, part 2.
14782         * modules/passfd: New file.
14783         * lib/passfd.h: New file.
14784         * lib/passfd.c: New file.
14785
14786 2011-03-12  Bruno Haible  <bruno@clisp.org>
14787
14788         wcswidth, mbswidth: Avoid integer overflow.
14789         * lib/wcswidth.c: Include <limits.h>.
14790         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14791         * lib/mbswidth.c: Include <limits.h>.
14792         (mbsnwidth): Avoid 'int' overflow.
14793         Reported by Jim Meyering.
14794
14795 2011-03-12  Bruno Haible  <bruno@clisp.org>
14796
14797         futimens, utimensat: Avoid endless recursion on Solaris 10.
14798         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14799         Solaris.
14800         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14801         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14802
14803 2011-03-11  Jim Meyering  <meyering@redhat.com>
14804
14805         maint.mk: relax a regexp to accommodate other formatting styles
14806         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14807         between "ngettext" and the following "(".
14808
14809 2011-03-11  PĂ¡draig Brady <P@draigBrady.com>
14810
14811         maint.mk: suppress a false positive warning
14812         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14813         diagnostics are marked with ngettext.
14814
14815 2011-03-10  Eric Blake  <eblake@redhat.com>
14816
14817         wchar: add explicit dependencies, for Tru64
14818         * modules/mbmemcasecoll (Depends-on): Add wchar.
14819         * modules/mbtowc (Depends-on): Likewise.
14820         * modules/vasnprintf (Depends-on): Likewise.
14821         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14822         * modules/wctomb (Depends-on): Likewise.
14823         Reported by Peter O'Gorman.
14824
14825 2011-03-08  Bruno Haible  <bruno@clisp.org>
14826
14827         passfd module, part 1, tweaks.
14828         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14829         Improve indentation. Improve AC_MSG_CHECKING messages.
14830         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14831         gl_SOCKET_FAMILIES.
14832
14833 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14834
14835         passfd module, part 1.
14836         * m4/afunix.m4: New file.
14837         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14838         sockets.
14839
14840 2011-03-08  Bruno Haible  <bruno@clisp.org>
14841
14842         regex-quote: New API.
14843         * lib/regex-quote.h: Include <stdbool.h>.
14844         (struct regex_quote_spec): New type.
14845         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14846         New declarations.
14847         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14848         'const struct regex_quote_spec *' argument.
14849         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14850         (pcre_special): New constant.
14851         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14852         New functions.
14853         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14854         'const struct regex_quote_spec *' argument.
14855         * modules/regex-quote (Depends-on): Add stdbool.
14856         * tests/test-regex-quote.c (check): Update for new API. Add test for
14857         anchored results.
14858         * NEWS: Mention the API change.
14859         Reported by Reuben Thomas and Eric Blake.
14860
14861 2011-03-06  Bruno Haible  <bruno@clisp.org>
14862
14863         regex-quote: Fix creation of POSIX extended regular expressions.
14864         * lib/regex-quote.c (ere_special): Add grouping and alternation
14865         operators.
14866
14867 2011-03-05  Bruno Haible  <bruno@clisp.org>
14868
14869         doc: Improve doc regarding autopoint vs. gnulib.
14870         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14871         disable autopoint while running autoreconf.
14872         Suggested by Ralf Wildenhues.
14873
14874 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14875
14876         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14877         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14878
14879 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14880
14881         parse-duration: remove xalloc.h dependency
14882         * lib/parse-duration.c (parse_period): handle NULL return from
14883         strdup instead of calling xstrdup().
14884         * modules/parse-duration: remove "xalloc" dependency
14885
14886 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14887
14888         bootstrap: honor m4_base when running aclocal
14889         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14890
14891 2011-03-02  Jim Meyering  <meyering@redhat.com>
14892
14893         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14894         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14895         on request from Matt Booth.
14896
14897 2011-03-01  Eric Blake  <eblake@redhat.com>
14898
14899         test-link: work on Hurd
14900         * tests/test-link.h (test_link): Hurd rejects linking directories
14901         with EISDIR instead of the POSIX-mandated EPERM.
14902
14903 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14904
14905         stdio: simplify by moving files to printf-posix, sigpipe
14906         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14907         since this symbol is needed only if printf is replaced.
14908         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14909         Require gl_ASM_SYMBOL_PREFIX.
14910         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14911         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14912         (Depends-on): Add 'raise'.
14913         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14914         * modules/stdio (Files): Remove lib/stdio-write.c,
14915         m4/asm-underscore.m4.
14916         (Depends-on): Remove 'raise'.
14917
14918         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14919         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14920         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14921         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14922
14923 2011-02-28  Bruno Haible  <bruno@clisp.org>
14924
14925         localcharset: Assume ANSI C behaviour of free().
14926         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14927         calling free().
14928         Suggested by Simon Josefsson <simon@josefsson.org>.
14929
14930 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14931             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14932             Bruno Haible  <bruno@clisp.org>  (tiny change)
14933
14934         On Cygwin, use /proc file system instead of win32 API.
14935         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14936         Win32 file names.
14937         (DllMain): Simplify by removing Cygwin specific code.
14938         (find_shared_library_fullname): Use Linux specific implementation also
14939         for Cygwin.
14940         (get_shared_library_fullname): Update accordingly.
14941         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14942         Win32 file names.
14943         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14944         Cygwin specific code.
14945
14946 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14947             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14948
14949         Fix OpenMP flag detection for various Fortran compilers.
14950         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14951         OpenMP-conditional compilation construct, to force compile
14952         failure with missing OpenMP flag.
14953         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14954
14955 2011-02-25  Eric Blake  <eblake@redhat.com>
14956
14957         strstr: expand test coverage
14958         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14959         compilation.
14960         * tests/test-memmem.c (main): Duplicate tests.
14961         * tests/test-strcasestr.c (main): Likewise.
14962         * tests/test-c-strcasestr.c (main): Likewise.
14963
14964 2011-02-25  Jim Meyering  <meyering@redhat.com>
14965
14966         maint.mk: detect missing-NL-at-EOF, too
14967         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14968         it also detects when a file lacks a newline at EOF.
14969         (require_exactly_one_NL_at_EOF_): Renamed from
14970         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14971         since people may well have .x-sc_... file names tied to the
14972         existing name.  Suggested by Eric Blake.
14973
14974 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         dirname: move m4/dos.m4 functionality into lib/dosname.h
14977
14978         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14979         extracts symbols from it, puts them into config.h; but it's much
14980         easier to use the symbols directly.  filename.h already does this,
14981         but it disagrees with dos.m4 in some respects.  This patch
14982         introduces a different include file dosname.h that packages up
14983         dos.m4, and then later we can work on merging filename.h and
14984         dosname.h.  Applications that need only the easy-to-configure
14985         symbols should consider including dosname.h rather than dirname.h.
14986         * NEWS: Mention incompatible changes.
14987         * m4/dos.m4: Remove.
14988         * lib/dosname.h, modules/dosname: New files.
14989         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14990         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14991         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14992         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14993         Include dosname.h, not dirname.h.
14994         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14995         Include dosname.h, for definitions of symbols like ISSLASH
14996         that used to be in config.h.
14997         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14998         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14999         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15000         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15001         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15002         * modules/rmdir (Files): Likewise.
15003         * modules/stat (Files): Likewise.
15004         * modules/unlink (Files): Likewise.
15005         * modules/dirname-lgpl (Depends-on): Add dosname.
15006         * modules/lstat (Depends-on): Likewise.
15007         * modules/openat (Depends-on): Likewise.
15008         * modules/rmdir (Depends-on): Likewise.
15009         * modules/savewd (Depends-on): Likewise.
15010         * modules/stat (Depends-on): Likewise.
15011         * modules/unlink (Depends-on): Likewise.
15012         * modules/openat (Depends-on): Remove dirname-lgpl.
15013         * modules/savewd (Depends-on): Likewise.
15014         * tests/test-dirname.c: Do not use removed symbols like
15015         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15016         the remaining symbols, e.g., ISSLASH ('\\').
15017
15018 2011-02-25  Eric Blake  <eblake@redhat.com>
15019
15020         strstr: revert patches that introduced bug and pessimization
15021         * lib/str-two-way.h: Add another reference.
15022         (two_way_short_needle, two_way_long_needle): Revert changes from
15023         2011-02-24; they pessimize search speed.
15024         (critical_factorization): Partially revert changes from
15025         2010-06-22; they violate the requirement that the left half of the
15026         needle be smaller than the period of the needle.
15027
15028 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15029
15030         filenamecat: remove unnecessary dependency on dirname-lgpl
15031         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15032         is no direct dependency, just an indirect one via filenamecat-lgpl.
15033
15034         remove: remove unnecessary use of m4/dos.m4
15035         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15036         * modules/remove (FILES): Remove m4/dos.m4.
15037
15038         * lib/openat-proc.c: Don't include dirname.h; not needed.
15039
15040         backupfile: remove unnecessary use of m4/dos.m4
15041         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15042         of its symbols are used by the backupfile code.  backupfile.c does
15043         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15044         for the rare case of programs that want all their backup file
15045         names to live within 8+3 limits, and dos.m4 doesn't address that.
15046         * modules/backupfile (Files): Remove m4/dos.m4.
15047
15048 2011-02-24  Jim Meyering  <meyering@redhat.com>
15049
15050         strstr: fix a bug whereby strstr would mistakenly return NULL
15051         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15052         in period calculation.
15053         (two_way_long_needle): Likewise.
15054         The original problem was reported by Mike Stump in
15055         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15056         Ralf Wildenhues provided the short needle and haystack.
15057         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15058         Add a more involved test to trigger the bug in two_way_long_needle.
15059
15060 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15061
15062         gnulib-tool: remove use of bold display in help screen
15063         * gnulib-tool (func_usage): Do not use bold display anymore in the
15064         help screen.  That was just meant to be a temporary emphasis for a
15065         backward-incompatible change.
15066
15067 2011-02-23  Bruno Haible  <bruno@clisp.org>
15068
15069         Fix misindentation of preprocessor directives.
15070         * lib/argp-namefrob.h: Reindent preprocessor directives.
15071         * lib/getopt_int.h (struct _getopt_data): Likewise.
15072         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15073         * lib/vasnprintf.c (decode_long_double): Likewise.
15074         * tests/test-argmatch.c: Insert blank lines, for clarity.
15075         * tests/test-exclude.c: Likewise.
15076
15077 2011-02-22  Bruno Haible  <bruno@clisp.org>
15078
15079         ioctl: Fix for MacOS X in 64-bit mode.
15080         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15081         value.
15082         Suggested by Eric Blake.
15083         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15084
15085 2011-02-22  Jim Meyering  <meyering@redhat.com>
15086
15087         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15088         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15089         in lib/.
15090
15091 2011-02-22  Eric Blake  <eblake@redhat.com>
15092
15093         maint: avoid any CDPATH issue
15094         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15095
15096         maint: adjust cpp indentation for my modules, as well
15097         * Makefile (sc_cpp_indent_check): Add my name.
15098         * lib/fbufmode.c: Filter through cppi.
15099         * lib/fpurge.c: Likewise.
15100         * lib/freadable.c: Likewise.
15101         * lib/freading.c: Likewise.
15102         * lib/fwritable.c: Likewise.
15103         * lib/fwriting.c: Likewise.
15104         * lib/sigaction.c: Likewise.
15105
15106 2011-02-22  Jim Meyering  <meyering@redhat.com>
15107
15108         maint: adjust cpp indentation to reflect nesting depth
15109         I.e., in a block of code that begins with an unnested "#if",
15110         put one space between the "#" in column 1 and following token.
15111         For example,
15112         -#include <sys/vfs.h>
15113         +# include <sys/vfs.h>
15114         Do this only in .c files that are part of a module I maintain.
15115         * lib/linkat.c: Filter through cppi.
15116         * lib/nanosleep.c: Likewise.
15117         * lib/openat.c: Likewise.
15118         * lib/openat-die.c: Likewise.
15119         * lib/dup3.c: Likewise.
15120         * lib/fchownat.c: Likewise.
15121         * lib/flock.c: Likewise.
15122         * lib/fsync.c: Likewise.
15123         * lib/fts.c: Likewise.
15124         * lib/getpass.c: Likewise.
15125         * lib/gettimeofday.c: Likewise.
15126         * lib/userspec.c: Likewise.
15127         * Makefile (sc_cpp_indent_check): New rule, to check this.
15128
15129 2011-02-22  Bruno Haible  <bruno@clisp.org>
15130
15131         New module 'wctomb'.
15132         * lib/stdlib.in.h (wctomb): New declaration.
15133         * lib/wctomb.c: New file.
15134         * lib/wctomb-impl.h: New file.
15135         * m4/wctomb.m4: New file.
15136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15137         REPLACE_WCTOMB.
15138         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15139         REPLACE_WCTOMB.
15140         * modules/wctomb: New file.
15141         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15142         * doc/posix-functions/wctomb.texi: Mention the new module.
15143         * modules/wctob (Depends-on): Add wctomb.
15144
15145 2011-02-22  Bruno Haible  <bruno@clisp.org>
15146
15147         New module 'mbtowc'.
15148         * lib/stdlib.in.h (mbtowc): New declaration.
15149         * lib/mbtowc.c: New file.
15150         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15151         * m4/mbtowc.m4: New file.
15152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15153         REPLACE_MBTOWC.
15154         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15155         REPLACE_MBTOWC.
15156         * modules/mbtowc: New file.
15157         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15158         * doc/posix-functions/mbtowc.texi: Mention the new module.
15159         * modules/btowc (Depends-on): Add mbtowc.
15160
15161 2011-02-22  Bruno Haible  <bruno@clisp.org>
15162
15163         wcrtomb: Add more tests for native Windows platforms.
15164         * tests/test-wcrtomb-w32-1.sh: New file.
15165         * tests/test-wcrtomb-w32-2.sh: New file.
15166         * tests/test-wcrtomb-w32-3.sh: New file.
15167         * tests/test-wcrtomb-w32-4.sh: New file.
15168         * tests/test-wcrtomb-w32-5.sh: New file.
15169         * tests/test-wcrtomb-w32.c: New file.
15170         * modules/wcrtomb-tests (Files): Add them.
15171         (Makefile.am): Arrange to run these tests.
15172         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15173         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15174
15175 2011-02-20  Bruno Haible  <bruno@clisp.org>
15176
15177         wcrtomb: Enhance test.
15178         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15179
15180 2011-02-20  Bruno Haible  <bruno@clisp.org>
15181
15182         mbrtowc: Tiny optimization.
15183         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15184
15185 2011-02-20  Jim Meyering  <meyering@redhat.com>
15186
15187         test-exclude.c: remove unmatched #endif
15188         * tests/test-exclude.c: Remove stray #endif, left over from
15189         the change of a week ago.
15190
15191 2011-02-19  Jim Meyering  <meyering@redhat.com>
15192
15193         git-version-gen: skip "-dirty" check when appropriate
15194         * build-aux/git-version-gen: Don't run any git commands when the
15195         version string comes from .tarball-version.  Prior to this, we
15196         would run git update-index --refresh even from a just-unpacked
15197         tarball directory, and that could affect a .git/ directory in a
15198         parent of the build directory.  Reported by Mike Frysinger.
15199
15200 2011-02-19  Bruno Haible  <bruno@clisp.org>
15201
15202         unictype/property-byname: Reduce the size of the 'data' segment.
15203         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15204
15205 2011-02-19  Bruno Haible  <bruno@clisp.org>
15206
15207         unictype/scripts: Reduce the size of the 'data' segment.
15208         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15209         '%pic'.
15210         * lib/unictype/scripts_byname.gperf: Regenerated.
15211
15212 2011-02-19  Bruno Haible  <bruno@clisp.org>
15213
15214         stdint: Update documentation.
15215         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15216
15217 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15218
15219         stdint: omit redundant check for wchar.h
15220         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15221         always tests whether wchar.h exists, so remove the now-redundant test.
15222
15223 2011-02-18  Bruno Haible  <bruno@clisp.org>
15224
15225         stdint: Cut dependency to module 'wchar'.
15226         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15227         include the necessary prerequisites.
15228         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15229         * modules/stdint (Depends-on): Remove wchar.
15230         (Makefile.am): Substitute HAVE_WCHAR_H.
15231         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15232
15233 2011-02-18  Eric Blake  <eblake@redhat.com>
15234
15235         longlong: skip, rather than fail, on cross-compilation
15236         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15237         when cross-compiling; regression from 2011-02-16.
15238
15239 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         * NEWS: Mention 2011-02-08 change to stdlib.
15242
15243 2011-02-17  Bruno Haible  <bruno@clisp.org>
15244
15245         getloadavg: Add comments about platforms.
15246         * m4/getloadavg.m4: Add comment.
15247         * lib/getloadavg.c: Likewise.
15248
15249 2011-02-17  Bruno Haible  <bruno@clisp.org>
15250
15251         getloadavg: Fix link error on Solaris 2.6.
15252         * modules/getloadavg (Link): New section.
15253         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15254         linking test-getloadavg.
15255         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15256         getloadavg.
15257
15258 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15259
15260         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15261         It was 'int', but this doesn't match the IRIX 6.5 manual.
15262         Suggested by Bruno Haible in
15263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15264
15265 2011-02-17  Bruno Haible  <bruno@clisp.org>
15266
15267         havelib: Fix comments.
15268         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15269         change.
15270
15271 2011-02-17  Bruno Haible  <bruno@clisp.org>
15272
15273         havelib: Update config.rpath.
15274         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15275
15276 2011-02-17  Bruno Haible  <bruno@clisp.org>
15277
15278         getloadavg test: Add some plausibility checks.
15279         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15280         is improbable.
15281
15282 2011-02-16  Eric Blake  <eblake@redhat.com>
15283
15284         maintainer-makefile: make syntax-check a no-op from tarballs
15285         * top/maint.mk (no-vc-detected): New rule.
15286         (local-checks-available): Use it to avoid hanging if someone tries
15287         'make syntax-check' from a tarball.  Also append to any non-syntax
15288         checks already defined in cfg.mk.
15289
15290 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15291
15292         longlong: tune, particularly for common case of c99
15293
15294         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15295         or running anything if c99, or if unsigned long long int does not
15296         work.  In either case, we know the answer without further tests.
15297         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15298         it at most once, and use its results for both long long int and
15299         unsigned long long int.  This is more likely to be efficient in
15300         the common case where the program wants to check for both long
15301         long int and unsigned long long int.
15302         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15303         since the answer is already known.
15304
15305 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15306
15307         getloadavg: set errno
15308         * lib/getloadavg.c: Set errno when returning -1.  If no other
15309         error number looks appropriate, set it to ENOSYS if the getloadavg
15310         looks like it can't possibly ever work, ENOTSUP otherwise.
15311         Suggested by Bruno Haible in
15312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15313
15314         getloadavg: trim unused parts and speed up 'configure'
15315         * NEWS: Document this.
15316         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15317         always compiled if getloadavg is absent.
15318         Move test code to ...
15319         * tests/test-getloadavg.c: New file, containing previous
15320         contents of test from lib/getloadavg.c.  It also contains
15321         suggestions by Bruno Haible in
15322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15323         * modules/getloadavg-tests: New file.
15324         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15325         Do tests in the same order as they're needed for getloadavg.c.
15326         Omit setgid-related tests that generate symbols KMEM_GROUP,
15327         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15328         Do only the tests that are needed to see whether the system has
15329         getloadavg, moving the other tests into ...
15330         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15331         NLIST_NAME_UNION; nobody should be using it.  Do not define
15332         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15333         relevant, as the user of this module shouldn't care how getloadavg
15334         is implemented.
15335
15336         getloadavg: omit unused var
15337         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15338
15339 2011-02-15  Jim Meyering  <meyering@redhat.com>
15340
15341         doc: update users.txt
15342         * users.txt: Update iwhd's URL.
15343
15344 2011-02-13  Bruno Haible  <bruno@clisp.org>
15345
15346         Consistent macro naming for macros that use GCC __attribute__.
15347         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15348         _ATTRIBUTE_NONNULL_.
15349         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15350         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15351         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15352         ATTRIBUTE_DEPRECATED.
15353         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15354         ATTRIBUTE_NORETURN.
15355         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15356         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15357         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15358         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15359         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15360         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15361         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15362         ATTRIBUTE_SENTINEL.
15363         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15364         ATTRIBUTE_RETURN_CHECK.
15365         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15366         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15367         ATTRIBUTE_NORETURN.
15368         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15369         Reported by Paul Eggert.
15370
15371 2011-02-13  Bruno Haible  <bruno@clisp.org>
15372
15373         Don't interfere with a program's definition of __attribute__.
15374         * lib/argp.h (__attribute__): Remove definition.
15375         (_GL_ATTRIBUTE_FORMAT): New macro.
15376         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15377         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15378         (_GL_ATTRIBUTE_FORMAT): New macro.
15379         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15380         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15381         GCC 3 or newer.
15382         * lib/error.h (__attribute__): Remove definition.
15383         (_GL_ATTRIBUTE_FORMAT): New macro.
15384         (error, error_at_line): Use it.
15385         * lib/hash.h (__attribute__): Remove definition.
15386         (ATTRIBUTE_WUR): Update definition. Define always.
15387         * lib/openat.h (__attribute__): Remove definition.
15388         (ATTRIBUTE_NORETURN): Update definition. Define always.
15389         * lib/sigpipe-die.h (__attribute__): Remove definition.
15390         (ATTRIBUTE_NORETURN): Update definition. Define always.
15391         * lib/vasnprintf.h (__attribute__): Remove definition.
15392         (_GL_ATTRIBUTE_FORMAT): New macro.
15393         (asnprintf, vasnprintf): Use it.
15394         * lib/xalloc.h (__attribute__): Remove definition.
15395         (ATTRIBUTE_NORETURN): Update definition. Define always.
15396         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15397         * lib/xmemdup0.h (__attribute__): Remove definition.
15398         (ATTRIBUTE_NORETURN): Update definition. Define always.
15399         * lib/xprintf.h (__attribute__): Remove definition.
15400         (_GL_ATTRIBUTE_FORMAT): New macro.
15401         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15402         * lib/xstrtol.h (__attribute__): Remove definition.
15403         (ATTRIBUTE_NORETURN): Update definition. Define always.
15404         * lib/xvasprintf.h (__attribute__): Remove definition.
15405         (_GL_ATTRIBUTE_FORMAT): New macro.
15406         (xasprintf, xvasprintf): Use it.
15407         * tests/test-argmatch.c (__attribute__): Remove definition.
15408         (ATTRIBUTE_NORETURN): Update definition. Define always.
15409         * tests/test-exclude.c (__attribute__): Remove definition.
15410         (ATTRIBUTE_NORETURN): Update definition. Define always.
15411         Reported by Paul Eggert.
15412
15413 2011-02-13  Bruno Haible  <bruno@clisp.org>
15414
15415         mbrtowc: Add more tests for native Windows platforms.
15416         * tests/test-mbrtowc-w32-1.sh: New file.
15417         * tests/test-mbrtowc-w32-2.sh: New file.
15418         * tests/test-mbrtowc-w32-3.sh: New file.
15419         * tests/test-mbrtowc-w32-4.sh: New file.
15420         * tests/test-mbrtowc-w32-5.sh: New file.
15421         * tests/test-mbrtowc-w32.c: New file.
15422         * modules/mbrtowc-tests (Files): Add them.
15423         (Makefile.am): Arrange to run these tests.
15424         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15425         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15426
15427 2011-02-13  Bruno Haible  <bruno@clisp.org>
15428
15429         mbrtowc: Work around native Windows bug.
15430         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15431         guess when no suitable locale for testing was found.
15432         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15433
15434 2011-02-13  Bruno Haible  <bruno@clisp.org>
15435
15436         mbsinit: Work around mingw bug.
15437         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15438         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15439         Windows.
15440         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15441
15442 2011-02-13  Bruno Haible  <bruno@clisp.org>
15443
15444         mbsinit: Don't crash for a NULL argument.
15445         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15446         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15447
15448 2011-02-13  Bruno Haible  <bruno@clisp.org>
15449
15450         Don't interfere with a program's definition of __attribute__.
15451         * lib/stdio.in.h (__attribute__): Remove definition.
15452         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15453         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15454         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15455         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15456         * lib/string.in.h (__attribute__): Remove definition.
15457         Reported by Paul Eggert.
15458
15459 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         stdlib: don't get in the way of non-GCC __attribute__
15462         See thread starting at
15463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15464         Revert previous stdlib change, installing the following instead:
15465         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15466         to get in the way of a non-GCC compiler that supports __attribute__.
15467         (_GL_ATTRIBUTE_RETURN): New macro.
15468         (_Exit): Use it instead of __attribute__.
15469
15470 2011-02-12  Bruno Haible  <bruno@clisp.org>
15471
15472         quotearg test: Avoid test failure on mingw.
15473         * tests/test-quotearg.sh: Convert the locale identifier from native
15474         Windows syntax to Unix syntax.
15475
15476 2011-02-12  Bruno Haible  <bruno@clisp.org>
15477
15478         setlocale: Prefer gnulib's override over libintl's override.
15479         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15480         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15481         GNULIB_defined_setlocale is set.
15482
15483 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15484
15485         stdlib: support non-GCC __attribute__
15486
15487         Fix a serious and tricky problem encountered when attempting to
15488         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15489         5.5, but it crashed due to memory corruption on Solaris 10 with
15490         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15491         bits that are otherwise zero.  This tagging is optional inside
15492         Emacs but is preferred and is used when __attribute__ ((__aligned
15493         (8))) works, as it does with both recent-enough GCC and with Sun C
15494         5.11.  However, Sun C 5.11 is not GCC and does not #define
15495         __GNUC__ and __GNUC_MINOR__.
15496
15497         When I added the getloadavg module to Emacs, it brought in
15498         stdlib.in.h, which contained this fragment:
15499
15500            #ifndef __attribute__
15501            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15502            #  define __attribute__(Spec)   /* empty */
15503            # endif
15504            #endif
15505
15506         When files that include <stdlib.h> were compiled with Sun C 5.11,
15507         the above code disabled __attribute__ ((__aligned (8))), which
15508         caused variables to not be properly aligned, which eventually led
15509         to the pointer corruption mentioned above.  (This was a bit hard
15510         to diagnose, unfortunately.)
15511
15512         Several "#define __attribute__(X) /* empty */" code snippets need
15513         to be eradicated from Gnulib to work with non-GCC compilers that
15514         support __attribute__.  The Autoconf way to do this is to test for
15515         each kind of attribute that we want support for, and selectively
15516         enable that in source code.
15517
15518         Fix this problem just for stdlib.h, by adding a test for the
15519         __noreturn__ attribute, and change stdlib.in.h to use that test
15520         when needed.  This technique can be easily generalized to the
15521         other *.in.h files and attributes, and a similar technique can be
15522         used for *.h and *.c files.  This patch is enough to solve the
15523         problem for Emacs + getloadavg, and I thought I'd publish it for
15524         feedback before undertaking further, similar fixes in other
15525         modules.
15526
15527         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15528         because it's not needed for stdlib.h.  It merely substitutes the
15529         value directly into stdlib.h.  We may well need to #define it, or
15530         similar symbols, for other modules, but it's nice to also have an
15531         option to not #define it for applications like Emacs that do not
15532         need it.
15533
15534         * lib/stdlib.in.h (__attribute__): Do not #define.
15535         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15536         be defined only if the _Exit module is also used.
15537         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15539         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15540         platforms.
15541         * modules/_Exit (Files): Add m4/attribute.m4.
15542         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15543         * m4/attribute.m4: New file.
15544
15545 2011-02-12  Bruno Haible  <bruno@clisp.org>
15546
15547         wcsrtombs: Work around bug on native Windows.
15548         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15549         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15550         instead of len.
15551         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15552
15553 2011-02-12  Bruno Haible  <bruno@clisp.org>
15554
15555         mbsrtowcs: Work around bug on native Windows.
15556         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15557         against mingw bug.
15558         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15559
15560 2011-02-12  Bruno Haible  <bruno@clisp.org>
15561
15562         Avoid setlocale bugs in tests.
15563         * modules/btowc (Dependencies): Add setlocale.
15564         * modules/c-strcase (Dependencies): Likewise.
15565         * modules/mbmemcasecmp (Dependencies): Likewise.
15566         * modules/mbmemcasecoll (Dependencies): Likewise.
15567         * modules/mbrtowc (Dependencies): Likewise.
15568         * modules/mbscasecmp (Dependencies): Likewise.
15569         * modules/mbscasestr (Dependencies): Likewise.
15570         * modules/mbschr (Dependencies): Likewise.
15571         * modules/mbscspn (Dependencies): Likewise.
15572         * modules/mbsinit (Dependencies): Likewise.
15573         * modules/mbsncasecmp (Dependencies): Likewise.
15574         * modules/mbsnrtowcs (Dependencies): Likewise.
15575         * modules/mbspbrk (Dependencies): Likewise.
15576         * modules/mbspcasecmp (Dependencies): Likewise.
15577         * modules/mbsrchr (Dependencies): Likewise.
15578         * modules/mbsrtowcs (Dependencies): Likewise.
15579         * modules/mbsspn (Dependencies): Likewise.
15580         * modules/mbsstr (Dependencies): Likewise.
15581         * modules/nl_langinfo (Dependencies): Likewise.
15582         * modules/quotearg (Dependencies): Likewise.
15583         * modules/unicase/locale-language (Dependencies): Likewise.
15584         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15585         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15586         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15587         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15588         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15589         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15590         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15591         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15592         * modules/vasnprintf-posix (Dependencies): Likewise.
15593         * modules/wcrtomb (Dependencies): Likewise.
15594         * modules/wcsnrtombs (Dependencies): Likewise.
15595         * modules/wcsrtombs (Dependencies): Likewise.
15596
15597 2011-02-12  Bruno Haible  <bruno@clisp.org>
15598
15599         setlocale: Workaround native Windows bug.
15600         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15601         succeeds but sets LC_CTYPE to "C", report a failure.
15602         * tests/test-setlocale2.sh: New file.
15603         * tests/test-setlocale2.c: New file.
15604         * modules/setlocale-tests (Files): Add the new files.
15605         (Makefile.am): Enable test-setlocale2.sh test.
15606         * doc/posix-functions/setlocale.texi: Mention workaround.
15607
15608 2011-02-11  Bruno Haible  <bruno@clisp.org>
15609
15610         Tests for module 'setlocale'.
15611         * modules/setlocale-tests: New file.
15612         * tests/test-setlocale1.sh: New file.
15613         * tests/test-setlocale1.c: New file.
15614
15615         New module 'setlocale'.
15616         * lib/locale.in.h (setlocale): New declaration.
15617         * lib/setlocale.c: New file, based on
15618         gettext/gettext-runtime/intl/setlocale.c.
15619         * m4/setlocale.m4: New file.
15620         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15621         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15622         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15623         REPLACE_SETLOCALE.
15624         * modules/setlocale: New file.
15625         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15626         * doc/posix-functions/setlocale.texi: Mention the new module.
15627
15628 2011-02-11  Bruno Haible  <bruno@clisp.org>
15629
15630         Prepare for locale dependent tests on mingw.
15631         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15632         because it has the wrong locale encoding.
15633         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15634         French_France.1252 instead of "fr".
15635         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15636         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15637         because it has the wrong locale encoding.
15638         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15639         native Windows, try Turkish_Turkey.65001.
15640         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15641         Chinese_China.54936.
15642
15643         Prepare for locale dependent tests on mingw.
15644         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15645         differently.
15646         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15647         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15648         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15649         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15650
15651 2011-02-11  Eric Blake  <eblake@redhat.com>
15652
15653         strptime: avoid compiler warnings
15654         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15655         compiler warnings about dead code.
15656         Reported by Daniel P. Berrange.
15657
15658 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15659
15660         doc: update users.txt
15661         * users.txt: Add rcs.
15662
15663 2011-02-10  John W. Eaton  <jwe@gnu.org>
15664
15665         doc: update users.txt
15666         * users.txt: Add octave.
15667
15668 2011-02-10  Jim Meyering  <meyering@redhat.com>
15669
15670         doc: update users.txt
15671         * users.txt: Add iwhd.
15672
15673 2011-02-09  Bruno Haible  <bruno@clisp.org>
15674
15675         gnulib-tool: Make copyright notice adjustment more robust.
15676         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15677         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15678         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15679         License".
15680         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15681
15682 2011-02-06  Bruno Haible  <bruno@clisp.org>
15683
15684         New module 'towctrans'.
15685         * modules/towctrans: New file.
15686         * lib/wctype.in.h (towctrans): New declaration.
15687         * lib/towctrans.c: New file.
15688         * lib/towctrans-impl.h: New file.
15689         * m4/towctrans.m4: New file.
15690         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15691         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15692         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15693         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15694         * doc/posix-functions/towctrans.texi: Mention the new module.
15695
15696 2011-02-06  Bruno Haible  <bruno@clisp.org>
15697
15698         New module 'wctrans'.
15699         * modules/wctrans: New file.
15700         * lib/wctype.in.h (wctrans): New declaration.
15701         * lib/wctrans.c: New file.
15702         * lib/wctrans-impl.h: New file.
15703         * m4/wctrans.m4: New file.
15704         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15705         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15706         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15707         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15708         * doc/posix-functions/wctrans.texi: Mention the new module.
15709
15710 2011-02-06  Bruno Haible  <bruno@clisp.org>
15711
15712         New module 'iswctype'.
15713         * modules/iswctype: New file.
15714         * lib/wctype.in.h (iswctype): New declaration.
15715         * lib/iswctype.c: New file.
15716         * lib/iswctype-impl.h: New file.
15717         * m4/iswctype.m4: New file.
15718         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15719         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15720         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15721         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15722         * doc/posix-functions/iswctype.texi: Mention the new module and the
15723         HP-UX 11.00 problem.
15724
15725 2011-02-06  Bruno Haible  <bruno@clisp.org>
15726
15727         New module 'wctype'.
15728         * modules/wctype: Change to represent the wctype() substitute.
15729         * lib/wctype.in.h (wctype): New declaration.
15730         * lib/wctype.c: New file.
15731         * lib/wctype-impl.h: New file.
15732         * m4/wctype.m4: New file.
15733         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15734         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15735         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15736         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15737         * doc/posix-functions/wctype.texi: Mention the new module and the
15738         HP-UX 11.00 problem.
15739
15740 2011-02-06  Bruno Haible  <bruno@clisp.org>
15741
15742         wctype-h: Ensure wctype_t and wctrans_t are defined.
15743         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15744         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15745         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15746         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15747         HAVE_WCTRANS_T.
15748         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15749
15750 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15751
15752         flock: fix license typo
15753
15754         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15755         omitted.
15756
15757 2011-02-08  Bruno Haible  <bruno@clisp.org>
15758
15759         Split large sed scripts, for HP-UX sed.
15760         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15761         to avoid HP-UX limit of 99 commands, in the near future.
15762         * modules/stdlib (Makefile.am): Likewise.
15763         * modules/unistd (Makefile.am): Likewise.
15764         * modules/wchar (Makefile.am): Likewise.
15765         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15766         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15767         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15768
15769 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15770             Bruno Haible  <bruno@clisp.org>
15771
15772         stdlib: improve random_r modularization
15773         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15774         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15775         you also need the random_r module to get this material right.
15776         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15777         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15778         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15779
15780 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15781
15782         stdlib: don't depend on stdint
15783         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15784         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15785         be independent of whether stdint.h is needed.
15786         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15787         here, instead of ...
15788         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15789         struct random_data should be using the random_r module, not just
15790         the stdlib module (which wouldn't make sense: what package needs
15791         just struct random_data without also needing random_r?).
15792         * modules/stdlib (Depends-on): Remove stdint.
15793
15794         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15795         See the thread rooted at
15796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15797         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15798         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15799         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15800         __VMS)); previously it was always included (via fcntl--.h).
15801         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15802         hand; this is good enough for load averages.  Also, do not use
15803         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15804         flags directly if available and don't bother otherwise.  (Packages
15805         that need the extra reliability should use the modules that define
15806         these flags on older platforms that lack them.)
15807         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15808         fcntl-safer.
15809
15810 2011-02-08  Jim Meyering  <meyering@redhat.com>
15811
15812         di-set.h, ino-map.h: add multiple-inclusion guard
15813         Technically, the guard is required only for ino-map.h, due to its
15814         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15815         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15816         * lib/ino-map.h: Likewise.
15817
15818 2011-02-06  Bruno Haible  <bruno@clisp.org>
15819
15820         iswblank: Ensure declaration on glibc systems.
15821         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15822         * modules/iswblank (Dependencies): Add 'extensions'.
15823         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15824
15825 2011-02-06  Bruno Haible  <bruno@clisp.org>
15826
15827         New module 'iswblank'.
15828         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15829         * modules/iswblank: New file.
15830         * modules/wctype-h (Files): Remove lib/iswblank.c.
15831         (Makefile.am): Substitute GNULIB_ISWBLANK.
15832         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15833         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15834         (gl_WCTYPE_H_DEFAULTS): New macro.
15835         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15836         * modules/iswblank-tests: New file.
15837         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15838         * tests/test-wctype-h.c (main): Remove iswblank tests.
15839         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15840         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15841         of 'wctype-h'.
15842         * NEWS: Mention the change.
15843         * modules/mbchar (Depends-on): Add iswblank.
15844
15845 2011-02-08  Bruno Haible  <bruno@clisp.org>
15846
15847         di-set tests: Refactor.
15848         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15849         unnecessary includes.
15850         (ASSERT): Remove macro.
15851         (main): Make C90 compliant by avoiding variable declaration after
15852         statement.
15853         * modules/di-set-tests (Files): Add tests/macros.h.
15854
15855 2011-02-08  Bruno Haible  <bruno@clisp.org>
15856
15857         ino-map tests: Refactor.
15858         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15859         unnecessary includes.
15860         (ASSERT): Remove macro.
15861         (main): Make C90 compliant by avoiding variable declaration after
15862         statement.
15863         * modules/ino-map-tests (Files): Add tests/macros.h.
15864
15865 2011-02-08  Jim Meyering  <meyering@redhat.com>
15866
15867         di-set: add "const" to a cast
15868         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15869         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15870
15871 2011-02-06  Bruno Haible  <bruno@clisp.org>
15872
15873         Rename module 'wctype' to 'wctype-h'.
15874         * modules/wctype-h: Renamed from modules/wctype.
15875         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15876         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15877         (Files, Depends-on, Makefile.am): Update.
15878         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15879         (Files, Makefile.am): Update.
15880         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15881         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15882         * doc/posix-headers/wctype.texi: Update.
15883         * doc/posix-functions/iswalnum.texi: Update.
15884         * doc/posix-functions/iswalpha.texi: Update.
15885         * doc/posix-functions/iswblank.texi: Update.
15886         * doc/posix-functions/iswcntrl.texi: Update.
15887         * doc/posix-functions/iswdigit.texi: Update.
15888         * doc/posix-functions/iswgraph.texi: Update.
15889         * doc/posix-functions/iswlower.texi: Update.
15890         * doc/posix-functions/iswprint.texi: Update.
15891         * doc/posix-functions/iswpunct.texi: Update.
15892         * doc/posix-functions/iswspace.texi: Update.
15893         * doc/posix-functions/iswupper.texi: Update.
15894         * doc/posix-functions/iswxdigit.texi: Update.
15895         * doc/posix-functions/towlower.texi: Update.
15896         * doc/posix-functions/towupper.texi: Update.
15897         * NEWS: Mention the change.
15898         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15899         * modules/mbchar (Dependencies): Likewise.
15900         * modules/mbswidth (Dependencies): Likewise.
15901         * modules/quotearg (Dependencies): Likewise.
15902         * modules/regex (Dependencies): Likewise.
15903         * modules/wcscasecmp (Dependencies): Likewise.
15904         * modules/wcsncasecmp (Dependencies): Likewise.
15905         * modules/wcwidth (Dependencies): Likewise.
15906
15907 2011-02-06  Bruno Haible  <bruno@clisp.org>
15908
15909         New module 'wcswidth'.
15910         * modules/wcswidth: New file.
15911         * lib/wchar.in.h (wcswidth): New declaration.
15912         * lib/wcswidth.c: New file.
15913         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15914         * m4/wcswidth.m4: New file.
15915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15917         REPLACE_WCSWIDTH.
15918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15919         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15920         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15921         * doc/posix-functions/wcswidth.texi: Mention the new module.
15922
15923 2011-02-06  Bruno Haible  <bruno@clisp.org>
15924
15925         New module 'wcstok'.
15926         * modules/wcstok: New file.
15927         * lib/wchar.in.h (wcstok): New declaration.
15928         * lib/wcstok.c: New file.
15929         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15930         * m4/wcstok.m4: New file.
15931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15934         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15935         * doc/posix-functions/wcstok.texi: Mention the new module.
15936
15937 2011-02-06  Bruno Haible  <bruno@clisp.org>
15938
15939         New module 'wcsstr'.
15940         * modules/wcsstr: New file.
15941         * lib/wchar.in.h (wcsstr): New declaration.
15942         * lib/wcsstr.c: New file.
15943         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15944         * m4/wcsstr.m4: New file.
15945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15948         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15949         * doc/posix-functions/wcsstr.texi: Mention the new module.
15950
15951 2011-02-06  Bruno Haible  <bruno@clisp.org>
15952
15953         New module 'wcspbrk'.
15954         * modules/wcspbrk: New file.
15955         * lib/wchar.in.h (wcspbrk): New declaration.
15956         * lib/wcspbrk.c: New file.
15957         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15958         * m4/wcspbrk.m4: New file.
15959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15962         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15963         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15964
15965 2011-02-06  Bruno Haible  <bruno@clisp.org>
15966
15967         New module 'wcsspn'.
15968         * modules/wcsspn: New file.
15969         * lib/wchar.in.h (wcsspn): New declaration.
15970         * lib/wcsspn.c: New file.
15971         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15972         * m4/wcsspn.m4: New file.
15973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15976         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15977         * doc/posix-functions/wcsspn.texi: Mention the new module.
15978
15979 2011-02-06  Bruno Haible  <bruno@clisp.org>
15980
15981         New module 'wcscspn'.
15982         * modules/wcscspn: New file.
15983         * lib/wchar.in.h (wcscspn): New declaration.
15984         * lib/wcscspn.c: New file.
15985         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15986         * m4/wcscspn.m4: New file.
15987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15990         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15991         * doc/posix-functions/wcscspn.texi: Mention the new module.
15992
15993 2011-02-06  Bruno Haible  <bruno@clisp.org>
15994
15995         New module 'wcsrchr'.
15996         * modules/wcsrchr: New file.
15997         * lib/wchar.in.h (wcsrchr): New declaration.
15998         * lib/wcsrchr.c: New file.
15999         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16000         * m4/wcsrchr.m4: New file.
16001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16004         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16005         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16006
16007 2011-02-06  Bruno Haible  <bruno@clisp.org>
16008
16009         New module 'wcschr'.
16010         * modules/wcschr: New file.
16011         * lib/wchar.in.h (wcschr): New declaration.
16012         * lib/wcschr.c: New file.
16013         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16014         * m4/wcschr.m4: New file.
16015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16018         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16019         * doc/posix-functions/wcschr.texi: Mention the new module.
16020
16021 2011-02-06  Bruno Haible  <bruno@clisp.org>
16022
16023         New module 'wcsdup'.
16024         * modules/wcsdup: New file.
16025         * lib/wchar.in.h (wcsdup): New declaration.
16026         * lib/wcsdup.c: New file.
16027         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16028         * m4/wcsdup.m4: New file.
16029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16032         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16033         * doc/posix-functions/wcsdup.texi: Mention the new module.
16034
16035 2011-02-06  Bruno Haible  <bruno@clisp.org>
16036
16037         New module 'wcsxfrm'.
16038         * modules/wcsxfrm: New file.
16039         * lib/wchar.in.h (wcsxfrm): New declaration.
16040         * lib/wcsxfrm.c: New file.
16041         * lib/wcsxfrm-impl.h: New file.
16042         * m4/wcsxfrm.m4: New file.
16043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16046         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16047         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16048
16049 2011-02-06  Bruno Haible  <bruno@clisp.org>
16050
16051         New module 'wcscoll'.
16052         * modules/wcscoll: New file.
16053         * lib/wchar.in.h (wcscoll): New declaration.
16054         * lib/wcscoll.c: New file.
16055         * lib/wcscoll-impl.h: New file.
16056         * m4/wcscoll.m4: New file.
16057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16060         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16061         * doc/posix-functions/wcscoll.texi: Mention the new module.
16062
16063 2011-02-06  Bruno Haible  <bruno@clisp.org>
16064
16065         New module 'wcsncasecmp'.
16066         * modules/wcsncasecmp: New file.
16067         * lib/wchar.in.h (wcsncasecmp): New declaration.
16068         * lib/wcsncasecmp.c: New file.
16069         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16070         * m4/wcsncasecmp.m4: New file.
16071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16074         HAVE_WCSNCASECMP.
16075         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16076         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16077
16078 2011-02-06  Bruno Haible  <bruno@clisp.org>
16079
16080         New module 'wcscasecmp'.
16081         * modules/wcscasecmp: New file.
16082         * lib/wchar.in.h (wcscasecmp): New declaration.
16083         * lib/wcscasecmp.c: New file.
16084         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16085         * m4/wcscasecmp.m4: New file.
16086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16089         HAVE_WCSCASECMP.
16090         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16091         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16092
16093 2011-02-05  Bruno Haible  <bruno@clisp.org>
16094
16095         New module 'wcsncmp'.
16096         * modules/wcsncmp: New file.
16097         * lib/wchar.in.h (wcsncmp): New declaration.
16098         * lib/wcsncmp.c: New file.
16099         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16100         * m4/wcsncmp.m4: New file.
16101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16104         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16105         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16106
16107 2011-02-05  Bruno Haible  <bruno@clisp.org>
16108
16109         New module 'wcscmp'.
16110         * modules/wcscmp: New file.
16111         * lib/wchar.in.h (wcscmp): New declaration.
16112         * lib/wcscmp.c: New file.
16113         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16114         * m4/wcscmp.m4: New file.
16115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16118         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16119         * doc/posix-functions/wcscmp.texi: Mention the new module.
16120
16121 2011-02-05  Bruno Haible  <bruno@clisp.org>
16122
16123         New module 'wcsncat'.
16124         * modules/wcsncat: New file.
16125         * lib/wchar.in.h (wcsncat): New declaration.
16126         * lib/wcsncat.c: New file.
16127         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16128         * m4/wcsncat.m4: New file.
16129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16132         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16133         * doc/posix-functions/wcsncat.texi: Mention the new module.
16134
16135 2011-02-05  Bruno Haible  <bruno@clisp.org>
16136
16137         New module 'wcscat'.
16138         * modules/wcscat: New file.
16139         * lib/wchar.in.h (wcscat): New declaration.
16140         * lib/wcscat.c: New file.
16141         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16142         * m4/wcscat.m4: New file.
16143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16146         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16147         * doc/posix-functions/wcscat.texi: Mention the new module.
16148
16149 2011-02-05  Bruno Haible  <bruno@clisp.org>
16150
16151         New module 'wcpncpy'.
16152         * modules/wcpncpy: New file.
16153         * lib/wchar.in.h (wcpncpy): New declaration.
16154         * lib/wcpncpy.c: New file.
16155         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16156         * m4/wcpncpy.m4: New file.
16157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16159         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16160         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16161         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16162
16163 2011-02-05  Bruno Haible  <bruno@clisp.org>
16164
16165         New module 'wcsncpy'.
16166         * modules/wcsncpy: New file.
16167         * lib/wchar.in.h (wcsncpy): New declaration.
16168         * lib/wcsncpy.c: New file.
16169         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16170         * m4/wcsncpy.m4: New file.
16171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16174         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16175         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16176
16177 2011-02-05  Bruno Haible  <bruno@clisp.org>
16178
16179         New module 'wcpcpy'.
16180         * modules/wcpcpy: New file.
16181         * lib/wchar.in.h (wcpcpy): New declaration.
16182         * lib/wcpcpy.c: New file.
16183         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16184         * m4/wcpcpy.m4: New file.
16185         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16186         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16187         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16188         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16189         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16190
16191 2011-02-05  Bruno Haible  <bruno@clisp.org>
16192
16193         New module 'wcscpy'.
16194         * modules/wcscpy: New file.
16195         * lib/wchar.in.h (wcscpy): New declaration.
16196         * lib/wcscpy.c: New file.
16197         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16198         * m4/wcscpy.m4: New file.
16199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16201         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16202         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16203         * doc/posix-functions/wcscpy.texi: Mention the new module.
16204
16205 2011-02-05  Bruno Haible  <bruno@clisp.org>
16206
16207         New module 'wcsnlen'.
16208         * modules/wcsnlen: New file.
16209         * lib/wchar.in.h (wcsnlen): New declaration.
16210         * lib/wcsnlen.c: New file.
16211         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16212         * m4/wcsnlen.m4: New file.
16213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16216         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16217         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16218
16219 2011-02-05  Bruno Haible  <bruno@clisp.org>
16220
16221         New module 'wcslen'.
16222         * modules/wcslen: New file.
16223         * lib/wchar.in.h (wcslen): New declaration.
16224         * lib/wcslen.c: New file.
16225         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16226         * m4/wcslen.m4: New file.
16227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16230         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16231         * doc/posix-functions/wcslen.texi: Mention the new module.
16232
16233 2011-02-05  Bruno Haible  <bruno@clisp.org>
16234
16235         New module 'wmemset'.
16236         * modules/wmemset: New file.
16237         * lib/wchar.in.h (wmemset): New declaration.
16238         * lib/wmemset.c: New file.
16239         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16240         * m4/wmemset.m4: New file.
16241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16243         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16244         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16245         * doc/posix-functions/wmemset.texi: Mention the new module.
16246
16247 2011-02-05  Bruno Haible  <bruno@clisp.org>
16248
16249         New module 'wmemmove'.
16250         * modules/wmemmove: New file.
16251         * lib/wchar.in.h (wmemmove): New declaration.
16252         * lib/wmemmove.c: New file.
16253         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16254         * m4/wmemmove.m4: New file.
16255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16257         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16258         HAVE_WMEMMOVE.
16259         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16260         * doc/posix-functions/wmemmove.texi: Mention the new module.
16261
16262 2011-02-05  Bruno Haible  <bruno@clisp.org>
16263
16264         New module 'wmemcpy'.
16265         * modules/wmemcpy: New file.
16266         * lib/wchar.in.h (wmemcpy): New declaration.
16267         * lib/wmemcpy.c: New file.
16268         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16269         * m4/wmemcpy.m4: New file.
16270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16272         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16273         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16274         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16275
16276 2011-02-05  Bruno Haible  <bruno@clisp.org>
16277
16278         New module 'wmemcmp'.
16279         * modules/wmemcmp: New file.
16280         * lib/wchar.in.h (wmemcmp): New declaration.
16281         * lib/wmemcmp.c: New file.
16282         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16283         * m4/wmemcmp.m4: New file.
16284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16286         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16287         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16288         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16289
16290 2011-02-07  Jim Meyering  <meyering@redhat.com>
16291
16292         di-set, ino-map: new modules, from coreutils
16293         * lib/di-set.c: New file.
16294         * lib/di-set.h: Likewise.
16295         * lib/ino-map.c: Likewise.
16296         * lib/ino-map.h: Likewise.
16297         * modules/di-set: Likewise.
16298         * modules/di-set-tests: Likewise.
16299         * modules/ino-map: Likewise.
16300         * modules/ino-map-tests: Likewise.
16301         * tests/test-di-set.c: Likewise.
16302         * tests/test-ino-map.c: Likewise.
16303
16304 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         getloadavg: merge minor changes from Emacs
16307
16308         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16309         (getloadavg): Use memset, not bzero.
16310
16311         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16312         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16313         clash (bug#86).
16314
16315 2010-11-14  Bruno Haible  <bruno@clisp.org>
16316
16317         Allow multiple gnulib generated replacements to coexist.
16318         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16319         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16320         * lib/langinfo.in.h (nl_item): Likewise.
16321         * lib/math.in.h (_NaN, NAN): Likewise.
16322         * lib/netdb.in.h (struct addrinfo): Likewise.
16323         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16324         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16325         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16326         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16327         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16328         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16329         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16330         pthread_mutexattr_init, pthread_mutexattr_settype,
16331         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16332         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16333         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16334         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16335         * lib/sched.in.h (struct sched_param): Likewise.
16336         * lib/se-selinux.in.h (security_class_t, security_context_t,
16337         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16338         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16339         lsetfilecon, fsetfilecon, security_check_context,
16340         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16341         Likewise.
16342         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16343         Likewise.
16344         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16345         _gl_function_taking_int_returning_void_t, union sigval,
16346         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16347         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16348         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16349         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16350         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16351         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16352         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16353         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16354         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16355         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16356         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16357         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16358         socklen_t, rpl_fd_isset): Likewise.
16359         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16360         * lib/sys_time.in.h (struct timeval): Likewise.
16361         * lib/sys_times.in.h (struct tms): Likewise.
16362         * lib/sys_utsname.in.h (struct utsname):
16363         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16364         * lib/unistd.in.h (getpagesize): Likewise.
16365         * lib/wchar.in.h (mbstate_t): Likewise.
16366         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16367         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16368         towlower, towupper): Likewise.
16369         Reported by Sam Steingold <sds@gnu.org>.
16370
16371 2011-02-05  Eric Blake  <eblake@redhat.com>
16372
16373         unsetenv: work around Haiku issues
16374         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16375         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16376
16377 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16378
16379         libposix: avoid calling error() within libposix
16380         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16381         is defined.
16382
16383 2011-02-05  Eric Blake  <eblake@redhat.com>
16384
16385         strerror_r-posix: port to cygwin
16386         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16387         implementation.
16388         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16389         * tests/test-strerror_r.c (main): Fix test.
16390         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16391         issue.
16392
16393 2011-02-05  Bruno Haible  <bruno@clisp.org>
16394
16395         New module 'wmemchr'.
16396         * modules/wmemchr: New file.
16397         * lib/wchar.in.h (wmemchr): New declaration.
16398         * lib/wmemchr.c: New file.
16399         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16400         * m4/wmemchr.m4: New file.
16401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16403         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16404         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16405         * doc/posix-functions/wmemchr.texi: Mention the new module.
16406
16407 2011-02-04  Eric Blake  <eblake@redhat.com>
16408
16409         fdopendir: detect FreeBSD bug
16410         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16411         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16412
16413 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16414
16415         stdbool: do not define HAVE_STDBOOL_H
16416         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16417         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16418         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16419         imported from the latest Autoconf git.  It was motivated by Emacs,
16420         which uses gnulib but does not need HAVE_STDBOOL_H.
16421
16422 2011-02-04  Bruno Haible  <bruno@clisp.org>
16423
16424         wcsnrtombs: Prepare for new module wwcsnrtombs.
16425         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16426         * lib/wcsnrtombs.c: Include it.
16427         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16428
16429         wcsrtombs: Prepare for new module wwcsrtombs.
16430         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16431         * lib/wcsrtombs.c: Include it.
16432         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16433
16434         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16435         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16436         * lib/mbsnrtowcs.c: Include it.
16437         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16438
16439         mbsrtowcs: Prepare for new module mbsrtowwcs.
16440         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16441         * lib/mbsrtowcs.c: Include it.
16442         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16443
16444 2011-02-04  Bruno Haible  <bruno@clisp.org>
16445
16446         vasnprintf: Reduce use of malloc for small format strings.
16447         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16448         (arguments): Add room for the first 7 arguments.
16449         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16450         (char_directives, u8_directives, u16_directives, u32_directives): Add
16451         room for the first 7 directives.
16452         * lib/printf-parse.c: Include <string.h>.
16453         (PRINTF_PARSE): Change memory handling code so that it uses the first
16454         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16455         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16456         Reported by PĂ¡draig Brady <P@draigbrady.com>.
16457
16458 2011-01-31  Eric Blake  <eblake@redhat.com>
16459
16460         dup2: work around Haiku bug
16461         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16462         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16463         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16464         * tests/test-dup2.c (main): Enhance test.
16465
16466 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16467
16468         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16469         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16470         declared by eglibc 2.11.2.
16471         * lib/stdio.in.h: Likewise.
16472
16473 2011-01-31  Eric Blake  <eblake@redhat.com>
16474
16475         ignore-value: add missing test dependency
16476         * tests/test-ignore-value.c: Revert previous change; stdio.h
16477         provides off_t.
16478         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16479
16480 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         mktime: clarify long_int width checking
16483         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16484         the top level, to make it clearer that the assumption about
16485         long_int width is being checked.  See
16486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16487
16488 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16489
16490         ignore-value: Fix self-test.
16491         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16492
16493 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16494
16495         TYPE_MAXIMUM: avoid theoretically undefined behavior
16496         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16497         negative number, which the C Standard says has undefined behavior.
16498         In practice this is not a problem, but might as well do it by the book.
16499         Reported by Rich Felker and Eric Blake; see
16500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16501         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16502         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16504         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16505         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16506         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16507
16508         mktime: #undef mktime before #defining it
16509         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16510
16511         mktime: systematically normalize tm_isdst comparisons
16512         * lib/mktime.c (isdst_differ): New function.
16513         (__mktime_internal): Use it systematically for all isdst comparisons.
16514         This completes the fix for libc BZ #6723, and removes the need for
16515         normalizing tm_isdst.  See
16516         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16517         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16518
16519         mktime: fix some integer overflow issues and sidestep the rest
16520
16521         This was prompted by a bug report by Benjamin Lindner for MinGW
16522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16523         His bug is due to signed integer overflow (0 - INT_MIN), and I
16524         I scanned through mktime.c looking for other integer overflow
16525         problems, fixing all the bugs I found.
16526
16527         Although the C Standard says the resulting code is still not safe
16528         in the presence of integer overflow, in practice it should be good
16529         enough for all real-world two's-complement implementations, except
16530         for debugging environments that deliberately trap on integer
16531         overflow (e.g., gcc -ftrapv).
16532
16533         * lib/mktime.c (WRAPV): New macro.
16534         (SHR): Also check that long_int and time_t shift right in the
16535         usual way, before using the fast-but-unportable method.
16536         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16537         used.  The code already assumed two's complement, so there's
16538         no need to test for alternatives.  All uses removed.
16539         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16540         the C standard.  Problem reported by Rich Felker in
16541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16542         (twos_complement_arithmetic): Also check long_int and time_t.
16543         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16544         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16545         (__mktime_internal): Avoid integer overflow with unary subtraction
16546         in two instances where -1 - X is an adequate replacement for -X,
16547         since the calculations are approximate.
16548
16549 2011-01-29  Eric Blake  <eblake@redhat.com>
16550
16551         mktime: avoid infinite loop
16552         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16553         type; behavior is still undefined but portable to all known targets.
16554         Reported by Rich Felker.
16555
16556 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16557
16558         rename, unlink, same-inode: Relicense.
16559         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16560         * modules/unlink (License): Likewise.
16561         * modules/same-inode (License): Likewise.
16562
16563 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16564
16565         mktime: avoid problems on NetBSD 5 / i386
16566         * lib/mktime.c (long_int): New type.  This works around a problem
16567         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16568         but time_t is 64 bits, and where I expect the existing code is
16569         wrong in some cases.
16570         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16571         (ydhms_diff): Bring back the compile-time check for wide-enough
16572         year and yday.
16573
16574         mktime: fix misspelling in comment
16575         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16576         This merges all recent glibc changes of importance.
16577
16578 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16579
16580         move-if-change: cope with concurrent mv of identical file.
16581         * build-aux/move-if-change (CMPPROG): Accept environment
16582         variable as an override for `cmp'.
16583         (usage): Document CMPPROG.
16584         Adjust comparison to drop stdout.  Cope with failure of mv if
16585         the target file exists and is identical to the source, for
16586         parallel builds.
16587         Report from H.J. Lu against binutils in PR binutils/12283.
16588
16589 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16590
16591         * users.txt: Mention sharutils.
16592
16593 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16594
16595         * users.txt: Mention OATH Toolkit.
16596
16597 2011-01-27  Bruno Haible  <bruno@clisp.org>
16598
16599         Prepare for supporting FreeBSD 10.
16600         * build-aux/config.libpath: Remove handling of freebsd1*.
16601
16602 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16603
16604         Prepare for supporting FreeBSD 10.
16605         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16606         match FreeBSD 10.0.
16607
16608 2011-01-27  Bruno Haible  <bruno@clisp.org>
16609
16610         vma-iter, get-rusage-as: Add OpenBSD support.
16611         * modules/vma-iter (configure.ac): Test for mquery.
16612         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16613         * lib/vma-iter.c: Include <sys/mman.h>.
16614         (vma_iterate): Add an implementation based on mquery().
16615         * lib/resource-ext.h (get_rusage_as): Update comments.
16616         * lib/get-rusage-as.c: Likewise.
16617         * lib/get-rusage-data.c: Likewise.
16618
16619 2011-01-26  Karl Berry  <karl@gnu.org>
16620
16621         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16622         variables to make it easier to override the makeinfo program used.
16623
16624 2011-01-26  Eric Blake  <eblake@redhat.com>
16625
16626         fcntl: work around Haiku F_DUPFD bugs
16627         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16628         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16629         cloexec bit on duplication.
16630         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16631
16632 2011-01-26  Bruno Haible  <bruno@clisp.org>
16633
16634         Enable memory leak tests on AIX.
16635         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16636         * tests/test-fprintf-posix3.c (main): Likewise.
16637
16638 2011-01-26  Bruno Haible  <bruno@clisp.org>
16639
16640         Tests for module 'get-rusage-data'.
16641         * modules/get-rusage-data-tests: New file.
16642         * tests/test-get-rusage-data.c: New file.
16643
16644         New module 'get-rusage-data'.
16645         * lib/resource-ext.h (get_rusage_data): New declaration.
16646         * lib/get-rusage-data.c: New file.
16647         * modules/get-rusage-data: New file.
16648
16649 2011-01-25  Bruno Haible  <bruno@clisp.org>
16650
16651         get-rusage-as: Allow for easier testing.
16652         * lib/resource-ext.h (get_rusage_as): Add comment.
16653         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16654         (main): New function for interactive testing.
16655
16656 2011-01-25  Bruno Haible  <bruno@clisp.org>
16657
16658         vma-iter: Treat Haiku like BeOS.
16659         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16660         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16661
16662 2011-01-25  Eric Blake  <eblake@redhat.com>
16663
16664         c-stack: fix regression on cygwin when libsigsegv is present
16665         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16666
16667 2011-01-24  Bruno Haible  <bruno@clisp.org>
16668
16669         vma-iter: Avoid empty intervals.
16670         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16671         on an empty interval.
16672
16673 2011-01-24  Jim Meyering  <meyering@redhat.com>
16674
16675         u64: remove unnecessary #include
16676         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16677
16678 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16679
16680         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16681         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16682
16683 2011-01-23  Bruno Haible  <bruno@clisp.org>
16684
16685         New module 'vma-iter'.
16686         * lib/vma-iter.h: New file.
16687         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16688         * modules/vma-iter: New file.
16689         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16690         for get_rusage_as_via_iterator.
16691         (vma_iterate_callback): New function.
16692         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16693         * modules/get-rusage-as (Depends-on): Add vma-iter.
16694
16695 2011-01-23  Bruno Haible  <bruno@clisp.org>
16696
16697         uninorm: Tweak includes.
16698         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16699         Reported by Jim Meyering.
16700
16701 2011-01-23  Bruno Haible  <bruno@clisp.org>
16702
16703         get-rusage-as: Improve on NetBSD.
16704         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16705         /proc, like on FreeBSD.
16706
16707 2011-01-23  Jim Meyering  <meyering@redhat.com>
16708
16709         xreadlink.h: remove unnecessary #include
16710         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16711
16712         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16713         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16714
16715 2011-01-23  Bruno Haible  <bruno@clisp.org>
16716
16717         get-rusage-as: Fix bug.
16718         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16719         original limit when aborting the first loop.
16720
16721 2011-01-23  Bruno Haible  <bruno@clisp.org>
16722
16723         wctype: Ensure valid C syntax.
16724         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16725         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16726
16727 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16728
16729         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16731         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16732         as they are needed only for configure's test case.
16733         This removes two unnecessary symbols from config.h.
16734
16735         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16736         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16737         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16738         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16739         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16740         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16741         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16742         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16743         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16744         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16745         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16747         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16748         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16749         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16750         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16751         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16752         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16753
16754 2011-01-21  Eric Blake  <eblake@redhat.com>
16755
16756         maintainer-makefile: work with older git for submodule check
16757         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16758         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16759         Reported by Matthias Bolte.
16760
16761         bootstrap: minor portability fixes
16762         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16763         (usage): Omit leading capital and trailing . on help phrases, per
16764         GNU Coding Standards.
16765         (check_versions, top level): Prefix messages with script name.
16766
16767 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16768
16769         bootstrap: support --no-git option
16770         * build-aux/bootstrap: Add --no-git option, to be used when
16771         --gnulib-srcdir points to the exact desired checkout.
16772
16773 2011-01-21  Eric Blake  <eblake@redhat.com>
16774
16775         strerror_r-posix: work with glibc 2.13
16776         * lib/strerror_r.c (strerror_r): Fix return type.
16777
16778 2011-01-21  PĂ¡draig Brady  <P@draigBrady.com>
16779             Bruno Haible  <bruno@clisp.org>
16780
16781         uN_strstr: New unit tests.
16782         * modules/unistr/u8-strstr-tests: New file.
16783         * modules/unistr/u16-strstr-tests: New file.
16784         * modules/unistr/u32-strstr-tests: New file.
16785         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16786         * tests/unistr/test-u8-strstr.c: New file.
16787         * tests/unistr/test-u16-strstr.c: New file.
16788         * tests/unistr/test-u32-strstr.c: New file.
16789
16790 2011-01-21  PĂ¡draig Brady  <P@draigBrady.com>
16791             Bruno Haible  <bruno@clisp.org>
16792
16793         Make uN_strstr functions O(n) worst-case.
16794         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16795         16-bit and 32-bit unit cases, use the unibyte algorithm from
16796         lib/mbsstr.c.
16797         * lib/unistr/u8-strstr.c: Include <string.h>.
16798         (UNIT_IS_UINT8_T): New macro.
16799         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16800         (U_STRLEN, U_STRNLEN): New macros.
16801         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16802         (U_STRLEN, U_STRNLEN): New macros.
16803         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16804         (configure.ac): Update required libunistring version.
16805         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16806         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16807         malloca.
16808         (configure.ac): Update required libunistring version.
16809         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16810         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16811         malloca.
16812         (configure.ac): Update required libunistring version.
16813
16814 2011-01-21  PĂ¡draig Brady  <P@draigBrady.com>
16815             Bruno Haible  <bruno@clisp.org>
16816
16817         Prepare for faster uN_strstr functions.
16818         * lib/str-kmp.h: Support definable UNITs.
16819         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16820         needle_len argument.
16821         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16822         * lib/mbscasestr.c (mbscasestr): Likewise.
16823
16824 2011-01-21  PĂ¡draig Brady <P@draigBrady.com>
16825
16826         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16827         * tests/test-malloca.c (main): Unset the environment variable
16828         to greatly speed up the test.
16829         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16830         * modules/malloca-tests: Depend on unsetenv.
16831
16832 2011-01-21  PĂ¡draig Brady <P@draigBrady.com>
16833
16834         ignore-value: remove stdint dependency
16835         * lib/ignore-value.h: Remove <stdint.h>
16836         * modules/ignore-value: Remove stdint dependency.
16837
16838 2011-01-21  Jim Meyering  <meyering@redhat.com>
16839
16840         maint.mk: adjust variable name to be consistent with other gl_ vars
16841         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16842         to be lower case.
16843
16844 2011-01-20  Jim Meyering  <meyering@redhat.com>
16845
16846         maint.mk: make "check" depend on public-submodule-commit by default
16847         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16848
16849 2011-01-20  Bruno Haible  <bruno@clisp.org>
16850
16851         mbfile, mbiter: Complete change from 2008-12-21.
16852         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16853         * m4/mbiter.m4 (gl_MBITER): Likewise.
16854
16855 2011-01-20  Jim Meyering  <meyering@redhat.com>
16856
16857         init.sh: insert space between each function name and "()"
16858         * tests/init.sh: Make it a little easier to see that a function's
16859         name is "warn_", and not "warn" when looking at the first part of
16860         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16861
16862 2011-01-20  Jim Meyering  <meyering@redhat.com>
16863
16864         mountlist: clean up code formatting
16865         * lib/mountlist.c (read_file_system_list): Split a long line,
16866         correct bracing style, use NULL in place of "(struct statfs *)0",
16867         don't parenthesize return value, add spaces around "=" and after
16868         ";-in-for-stmt".
16869
16870 2011-01-14  Markus Duft <mduft@gentoo.org>
16871
16872         mountlist: add support for Interix
16873         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16874         Apply statvfs to all entries of /dev/fs.
16875         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16876         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16877
16878 2011-01-20  Jim Meyering  <meyering@redhat.com>
16879
16880         maint.mk: improve the public-submodule-commit rule
16881         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16882         to suppress printing of its commands... unless V=1.
16883         Add git submodule's --quiet option to suppress printing of e.g.,
16884         "Entering gnulib" output.
16885         "cd" into $(srcdir) before running git submodule.
16886
16887 2011-01-20  Bruno Haible  <bruno@clisp.org>
16888
16889         include_next: Fix bug introduced on 2011-01-18.
16890         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16891         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16892         ac_cv_header_... variable if the second argument is not 'check'.
16893         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16894         gl_NEXT_HEADERS_INTERNAL.
16895
16896 2011-01-20  Bruno Haible  <bruno@clisp.org>
16897
16898         Allow the user to avoid the GNULIB_TEST_* macros.
16899         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16900         Suggested by Paul Eggert.
16901
16902 2011-01-14  Jim Meyering  <meyering@redhat.com>
16903
16904         bootstrap: avoid failure when there is no .gitmodules file
16905         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16906         has been assigned to, even when its value is the empty string.
16907         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16908         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16909         Reported by John W. Eaton <jwe@gnu.org>.
16910
16911 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16912
16913         assume <ctype.h>, ..., <time.h> exist
16914         For years gnulib has been assuming the existence of the headers
16915         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16916         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16917         them, since they don't appear to be needed.
16918         * README (Portability guidelines): Document this.
16919         * lib/flock.c: Assume <fcntl.h> exists.
16920         * lib/regex_internal.h: Assume <locale.h> exists.
16921         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16922         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16923         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16924         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16925         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16926         * m4/regex.m4 (gl_REGEX): Likewise.
16927         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16928         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16929         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16930         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16931         * tests/test-argp.c: Likewise.
16932         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16933
16934         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16935         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16936         AA_APPLE_UNIVERSAL_BUILD.  See
16937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16938         * NEWS: Document this.
16939
16940 2011-01-19  Eric Blake  <eblake@redhat.com>
16941
16942         c-stack: assume stack overflow if SA_SIGINFO unsupported
16943         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16944         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16945         sigaction will work.
16946         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16947         behavior match Linux.
16948         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16949
16950         stdbool-tests: accomodate Haiku
16951         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16952
16953         binary-io: fix O_TEXT on Haiku
16954         * modules/binary-io (Depends-on): Add fcntl-h.
16955         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16956         than blindly undefining O_TEXT.
16957         Reported by Scott McCreary.
16958
16959 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16960
16961         include_next: do not check for standard headers like stddef.h
16962
16963         I found this problem when modifying Emacs to use gnulib.
16964         I noticed that it added HAVE_STDDEF_H to config.h, even though
16965         gnulib always assumes <stddef.h> exists as per README and this
16966         symbol is unnecessary.
16967         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16968         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16969         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16970         faster for headers like stddef.h that are known to exist.
16971         (gl_CHECK_NEXT_HEADERS): Use it.
16972         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16973         rather than gl_CHECK_NEXT_HEADERS.
16974         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16975         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16976
16977 2011-01-18  Eric Blake  <eblake@redhat.com>
16978
16979         ansi-c++-opt: skip C++ dependency style if C++ is unused
16980         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16981         tests when we know C++ compilation is not desired.
16982         Reported by Scott McCreary.
16983
16984 2011-01-18  Bruno Haible  <bruno@clisp.org>
16985
16986         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16987         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16988         (main): Perform test also when getrlimit and setrlimit don't exist or
16989         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16990         limiting the address space size using setrlimit, compare the address
16991         space size before and after the the test.
16992         * tests/test-dprintf-posix2.c: Likewise.
16993         * tests/test-fprintf-posix3.sh: Update skip messages.
16994         * tests/test-dprintf-posix2.sh: Likewise.
16995         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16996         * modules/dprintf-posix-tests (Depends-on): Likewise.
16997         Reported by Bruce Korb <bkorb@gnu.org> and
16998         Gary V. Vaughan <gary@gnu.org>.
16999
17000 2011-01-18  Bruno Haible  <bruno@clisp.org>
17001
17002         get-rusage-as: Improvement for Cygwin.
17003         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17004         areas that are merely reserved.
17005
17006 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17007
17008         strftime: remove dependencies on multibyte modules
17009
17010         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17011         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17012         only if __osf__ is defined, and I suspect OSF doesn't need these
17013         other modules.  If my guess is wrong, we'll need to come up with a
17014         variant of strftime that doesn't need the multibyte modules.
17015
17016         I discovered this problem when attempting modify Emacs to use the
17017         strftime module.  With the previous gnulib, this caused Emacs to
17018         need 31 new files, ranging from lib/config.charset to
17019         m4/wint_t.m4.  This was overkill and I expect would be offputting
17020         to the Emacs maintainers.  After this change, only 6 new files are
17021         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17022         stdbool.m4, and tm_gmtoff.m4.
17023
17024         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17025         Suggested by Bruno Haible in
17026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17027         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17028         and do not check for wchar.h.
17029         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17030         (Depends-on): Remove mbrlen, mbsinit, wchar.
17031
17032 2011-01-18  Bruno Haible  <bruno@clisp.org>
17033
17034         Tests for module 'get-rusage-as'.
17035         * modules/get-rusage-as-tests: New file.
17036         * tests/test-get-rusage-as.c: New file.
17037
17038         New module 'get-rusage-as'.
17039         * modules/get-rusage-as: New file.
17040         * lib/resource-ext.h: New file.
17041         * lib/get-rusage-as.c: New file.
17042
17043 2011-01-17  Eric Blake  <eblake@redhat.com>
17044
17045         sigaction: relax license from LGPLv3+ to LGPLv2+
17046         * modules/sigaction (License): Relax to LGPLv2+.
17047
17048 2011-01-14  Bruno Haible  <bruno@clisp.org>
17049
17050         filemode: Make function declarations usable in C++ mode.
17051         * lib/filemode.h: Enclose function declarations in extern "C" block.
17052         Reported by John W. Eaton <jwe@gnu.org>.
17053
17054 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17055
17056         save-cwd: no longer include "xgetcwd.h"
17057         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17058         This avoids a compilation failure in projects that use save-cwd
17059         without also using the xgetcwd module.
17060
17061 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17064         This is so that a program like Emacs, which needs only dtoastr,
17065         does not have to bother with distributing and compiling ftoastr
17066         and ldtoastr.
17067         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17068         * modules/dtoastr, modules/ldtoastr: New files.
17069         * modules/ftoastr: Now works just for 'float'.
17070         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17071         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17072         dtoastr.c, ldtoastr.c.
17073
17074 2011-01-11  Jim Meyering  <meyering@redhat.com>
17075
17076         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17077         There is no need to work around the lack of the fchdir function,
17078         since gnulib can now provide a replacement when required.
17079         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17080         * modules/save-cwd (Depends-on): Add fchdir.
17081
17082 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17083
17084         openat, save-cwd: avoid xmalloc
17085
17086         This removes a direct (but undocumented) dependency of openat on
17087         xalloc, along with an indirect dependency via save-cwd.  It also
17088         removes a dependency of save-cwd on xgetcwd, and thereby
17089         indirectly on xalloc.  This change causes the openat substitute
17090         to fall back on save_cwd when memory is tight, and for save_cwd to
17091         fail instead of dying when memory is tight, but that's good enough.
17092         Problem and initial idea for fix reported by Bastien Roucaries in
17093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17094
17095         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17096         xalloc.h (for xmalloc).
17097         (openat_proc_name): Use malloc, not xmalloc.
17098         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17099         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17100
17101         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17102         This avoids heap allocation for file names whose lengths are in
17103         the range 512..1023, with the upper bound increasing to at most
17104         4031 depending on the platform's PATH_MAX.  (We do not want
17105         pathmax.h here as it might supply a non-constant PATH_MAX.)
17106         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17107         Perhaps they should be moved to malloca.h?
17108         (OPENAT_BUFFER_SIZE): Use them.
17109
17110 2011-01-10  Bruno Haible  <bruno@clisp.org>
17111
17112         doc: Update users.txt.
17113         * users.txt: Add recutils.
17114
17115 2011-01-09  Karl Berry  <karl@gnu.org>
17116
17117         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17118
17119         * doc/configmake.texi: New file.
17120         * doc/gnulib.texi: Include it.
17121         * modules/configmake: Move documentation from here.
17122
17123 2011-01-09  Bruno Haible  <bruno@clisp.org>
17124
17125         Update to Unicode 6.0.0.
17126         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17127         (get_lbp): Update for Unicode 6.0.0.
17128         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17129         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17130         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17131         U+11001, U+11038..U+11046. Remove U+06DE.
17132         (uc_width): Fix bounds of planes.
17133         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17134         lib/uniwidth/width.c.
17135         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17136         trailing whitespace removed.
17137         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17138         without comments, but with the original copyright notice.
17139         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17140         * lib/unicase/ignorable.h: Likewise.
17141         * lib/unicase/tocasefold.h: Likewise.
17142         * lib/unicase/tolower.h: Likewise.
17143         * lib/unicase/totitle.h: Likewise.
17144         * lib/unicase/toupper.h: Likewise.
17145         * lib/unictype/bidi_of.h: Likewise.
17146         * lib/unictype/blocks.h: Likewise.
17147         * lib/unictype/categ_C.h: Likewise.
17148         * lib/unictype/categ_Cn.h: Likewise.
17149         * lib/unictype/categ_L.h: Likewise.
17150         * lib/unictype/categ_Ll.h: Likewise.
17151         * lib/unictype/categ_Lm.h: Likewise.
17152         * lib/unictype/categ_Lo.h: Likewise.
17153         * lib/unictype/categ_Lu.h: Likewise.
17154         * lib/unictype/categ_M.h: Likewise.
17155         * lib/unictype/categ_Mc.h: Likewise.
17156         * lib/unictype/categ_Me.h: Likewise.
17157         * lib/unictype/categ_Mn.h: Likewise.
17158         * lib/unictype/categ_N.h: Likewise.
17159         * lib/unictype/categ_Nd.h: Likewise.
17160         * lib/unictype/categ_No.h: Likewise.
17161         * lib/unictype/categ_P.h: Likewise.
17162         * lib/unictype/categ_Po.h: Likewise.
17163         * lib/unictype/categ_S.h: Likewise.
17164         * lib/unictype/categ_Sc.h: Likewise.
17165         * lib/unictype/categ_Sk.h: Likewise.
17166         * lib/unictype/categ_Sm.h: Likewise.
17167         * lib/unictype/categ_So.h: Likewise.
17168         * lib/unictype/categ_of.h: Likewise.
17169         * lib/unictype/combining.h: Likewise.
17170         * lib/unictype/ctype_alnum.h: Likewise.
17171         * lib/unictype/ctype_alpha.h: Likewise.
17172         * lib/unictype/ctype_graph.h: Likewise.
17173         * lib/unictype/ctype_lower.h: Likewise.
17174         * lib/unictype/ctype_print.h: Likewise.
17175         * lib/unictype/ctype_punct.h: Likewise.
17176         * lib/unictype/ctype_upper.h: Likewise.
17177         * lib/unictype/decdigit.h: Likewise.
17178         * lib/unictype/digit.h: Likewise.
17179         * lib/unictype/numeric.h: Likewise.
17180         * lib/unictype/pr_alphabetic.h: Likewise.
17181         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17182         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17183         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17184         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17185         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17186         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17187         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17188         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17189         * lib/unictype/pr_case_ignorable.h: Likewise.
17190         * lib/unictype/pr_cased.h: Likewise.
17191         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17192         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17193         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17194         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17195         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17196         * lib/unictype/pr_combining.h: Likewise.
17197         * lib/unictype/pr_composite.h: Likewise.
17198         * lib/unictype/pr_currency_symbol.h: Likewise.
17199         * lib/unictype/pr_decimal_digit.h: Likewise.
17200         * lib/unictype/pr_deprecated.h: Likewise.
17201         * lib/unictype/pr_format_control.h: Likewise.
17202         * lib/unictype/pr_grapheme_base.h: Likewise.
17203         * lib/unictype/pr_grapheme_extend.h: Likewise.
17204         * lib/unictype/pr_grapheme_link.h: Likewise.
17205         * lib/unictype/pr_id_continue.h: Likewise.
17206         * lib/unictype/pr_id_start.h: Likewise.
17207         * lib/unictype/pr_ideographic.h: Likewise.
17208         * lib/unictype/pr_lowercase.h: Likewise.
17209         * lib/unictype/pr_math.h: Likewise.
17210         * lib/unictype/pr_numeric.h: Likewise.
17211         * lib/unictype/pr_other_alphabetic.h: Likewise.
17212         * lib/unictype/pr_other_id_continue.h: Likewise.
17213         * lib/unictype/pr_other_math.h: Likewise.
17214         * lib/unictype/pr_punctuation.h: Likewise.
17215         * lib/unictype/pr_sentence_terminal.h: Likewise.
17216         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17217         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17218         * lib/unictype/pr_unified_ideograph.h: Likewise.
17219         * lib/unictype/pr_uppercase.h: Likewise.
17220         * lib/unictype/pr_xid_continue.h: Likewise.
17221         * lib/unictype/pr_xid_start.h: Likewise.
17222         * lib/unictype/scripts.h: Likewise.
17223         * lib/unictype/scripts_byname.gperf: Likewise.
17224         * lib/unictype/sy_java_ident.h: Likewise.
17225         * lib/unigbrk/gbrkprop.h: Likewise.
17226         * lib/unilbrk/lbrkprop1.h: Likewise.
17227         * lib/unilbrk/lbrkprop2.h: Likewise.
17228         * lib/uninorm/decomposition-table2.h: Likewise.
17229         * lib/uniwbrk/wbrkprop.h: Likewise.
17230         * tests/unicase/test-cased.c: Likewise.
17231         * tests/unicase/test-ignorable.c: Likewise.
17232         * tests/unicase/test-uc_tolower.c: Likewise.
17233         * tests/unicase/test-uc_totitle.c: Likewise.
17234         * tests/unicase/test-uc_toupper.c: Likewise.
17235         * tests/unictype/test-categ_C.c: Likewise.
17236         * tests/unictype/test-categ_Cn.c: Likewise.
17237         * tests/unictype/test-categ_L.c: Likewise.
17238         * tests/unictype/test-categ_Ll.c: Likewise.
17239         * tests/unictype/test-categ_Lm.c: Likewise.
17240         * tests/unictype/test-categ_Lo.c: Likewise.
17241         * tests/unictype/test-categ_Lu.c: Likewise.
17242         * tests/unictype/test-categ_M.c: Likewise.
17243         * tests/unictype/test-categ_Mc.c: Likewise.
17244         * tests/unictype/test-categ_Me.c: Likewise.
17245         * tests/unictype/test-categ_Mn.c: Likewise.
17246         * tests/unictype/test-categ_N.c: Likewise.
17247         * tests/unictype/test-categ_Nd.c: Likewise.
17248         * tests/unictype/test-categ_No.c: Likewise.
17249         * tests/unictype/test-categ_P.c: Likewise.
17250         * tests/unictype/test-categ_Po.c: Likewise.
17251         * tests/unictype/test-categ_S.c: Likewise.
17252         * tests/unictype/test-categ_Sc.c: Likewise.
17253         * tests/unictype/test-categ_Sk.c: Likewise.
17254         * tests/unictype/test-categ_Sm.c: Likewise.
17255         * tests/unictype/test-categ_So.c: Likewise.
17256         * tests/unictype/test-ctype_alnum.c: Likewise.
17257         * tests/unictype/test-ctype_alpha.c: Likewise.
17258         * tests/unictype/test-ctype_graph.c: Likewise.
17259         * tests/unictype/test-ctype_lower.c: Likewise.
17260         * tests/unictype/test-ctype_print.c: Likewise.
17261         * tests/unictype/test-ctype_punct.c: Likewise.
17262         * tests/unictype/test-ctype_upper.c: Likewise.
17263         * tests/unictype/test-decdigit.h: Likewise.
17264         * tests/unictype/test-digit.h: Likewise.
17265         * tests/unictype/test-numeric.h: Likewise.
17266         * tests/unictype/test-pr_alphabetic.c: Likewise.
17267         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17268         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17269         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17270         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17271         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17272         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17273         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17274         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17275         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17276         * tests/unictype/test-pr_cased.c: Likewise.
17277         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17278         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17279         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17280         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17281         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17282         * tests/unictype/test-pr_combining.c: Likewise.
17283         * tests/unictype/test-pr_composite.c: Likewise.
17284         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17285         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17286         * tests/unictype/test-pr_deprecated.c: Likewise.
17287         * tests/unictype/test-pr_format_control.c: Likewise.
17288         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17289         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17290         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17291         * tests/unictype/test-pr_id_continue.c: Likewise.
17292         * tests/unictype/test-pr_id_start.c: Likewise.
17293         * tests/unictype/test-pr_ideographic.c: Likewise.
17294         * tests/unictype/test-pr_lowercase.c: Likewise.
17295         * tests/unictype/test-pr_math.c: Likewise.
17296         * tests/unictype/test-pr_numeric.c: Likewise.
17297         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17298         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17299         * tests/unictype/test-pr_other_math.c: Likewise.
17300         * tests/unictype/test-pr_punctuation.c: Likewise.
17301         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17302         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17303         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17304         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17305         * tests/unictype/test-pr_uppercase.c: Likewise.
17306         * tests/unictype/test-pr_xid_continue.c: Likewise.
17307         * tests/unictype/test-pr_xid_start.c: Likewise.
17308         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17309         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17310         changes.
17311         * lib/unictype/categ_Cc.h: Likewise.
17312         * lib/unictype/categ_Cf.h: Likewise.
17313         * lib/unictype/categ_Co.h: Likewise.
17314         * lib/unictype/categ_Cs.h: Likewise.
17315         * lib/unictype/categ_Lt.h: Likewise.
17316         * lib/unictype/categ_Nl.h: Likewise.
17317         * lib/unictype/categ_Pc.h: Likewise.
17318         * lib/unictype/categ_Pd.h: Likewise.
17319         * lib/unictype/categ_Pe.h: Likewise.
17320         * lib/unictype/categ_Pf.h: Likewise.
17321         * lib/unictype/categ_Pi.h: Likewise.
17322         * lib/unictype/categ_Ps.h: Likewise.
17323         * lib/unictype/categ_Z.h: Likewise.
17324         * lib/unictype/categ_Zl.h: Likewise.
17325         * lib/unictype/categ_Zp.h: Likewise.
17326         * lib/unictype/categ_Zs.h: Likewise.
17327         * lib/unictype/ctype_blank.h: Likewise.
17328         * lib/unictype/ctype_cntrl.h: Likewise.
17329         * lib/unictype/ctype_digit.h: Likewise.
17330         * lib/unictype/ctype_space.h: Likewise.
17331         * lib/unictype/ctype_xdigit.h: Likewise.
17332         * lib/unictype/mirror.h: Likewise.
17333         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17334         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17335         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17336         * lib/unictype/pr_bidi_control.h: Likewise.
17337         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17338         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17339         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17340         * lib/unictype/pr_bidi_pdf.h: Likewise.
17341         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17342         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17343         * lib/unictype/pr_dash.h: Likewise.
17344         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17345         * lib/unictype/pr_diacritic.h: Likewise.
17346         * lib/unictype/pr_extender.h: Likewise.
17347         * lib/unictype/pr_hex_digit.h: Likewise.
17348         * lib/unictype/pr_hyphen.h: Likewise.
17349         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17350         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17351         * lib/unictype/pr_ignorable_control.h: Likewise.
17352         * lib/unictype/pr_iso_control.h: Likewise.
17353         * lib/unictype/pr_join_control.h: Likewise.
17354         * lib/unictype/pr_left_of_pair.h: Likewise.
17355         * lib/unictype/pr_line_separator.h: Likewise.
17356         * lib/unictype/pr_logical_order_exception.h: Likewise.
17357         * lib/unictype/pr_non_break.h: Likewise.
17358         * lib/unictype/pr_not_a_character.h: Likewise.
17359         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17360         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17361         * lib/unictype/pr_other_id_start.h: Likewise.
17362         * lib/unictype/pr_other_lowercase.h: Likewise.
17363         * lib/unictype/pr_other_uppercase.h: Likewise.
17364         * lib/unictype/pr_paired_punctuation.h: Likewise.
17365         * lib/unictype/pr_paragraph_separator.h: Likewise.
17366         * lib/unictype/pr_pattern_syntax.h: Likewise.
17367         * lib/unictype/pr_pattern_white_space.h: Likewise.
17368         * lib/unictype/pr_private_use.h: Likewise.
17369         * lib/unictype/pr_quotation_mark.h: Likewise.
17370         * lib/unictype/pr_radical.h: Likewise.
17371         * lib/unictype/pr_soft_dotted.h: Likewise.
17372         * lib/unictype/pr_space.h: Likewise.
17373         * lib/unictype/pr_titlecase.h: Likewise.
17374         * lib/unictype/pr_variation_selector.h: Likewise.
17375         * lib/unictype/pr_white_space.h: Likewise.
17376         * lib/unictype/pr_zero_width.h: Likewise.
17377         * lib/unictype/sy_c_ident.h: Likewise.
17378         * lib/unictype/sy_c_whitespace.h: Likewise.
17379         * lib/unictype/sy_java_whitespace.h: Likewise.
17380         * lib/uninorm/composition-table.gperf: Likewise.
17381         * lib/uninorm/decomposition-table1.h: Likewise.
17382         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17383         LB8.
17384         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17385         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17386         * modules/unictype/*: Bump version number of expected libunistring
17387         version.
17388
17389 2011-01-09  Bruno Haible  <bruno@clisp.org>
17390
17391         Update to Unicode 5.2.0.
17392         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17393         trailing whitespace removed.
17394
17395 2011-01-09  Bruno Haible  <bruno@clisp.org>
17396
17397         New Unicode character properties, from Unicode 5.2.0.
17398         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17399         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17400         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17401         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17402         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17403         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17404         uc_is_property_cased, uc_is_property_case_ignorable,
17405         uc_is_property_changes_when_lowercased,
17406         uc_is_property_changes_when_uppercased,
17407         uc_is_property_changes_when_titlecased,
17408         uc_is_property_changes_when_casefolded,
17409         uc_is_property_changes_when_casemapped): New declarations.
17410         * lib/unictype/pr_byname.gperf: Add the new properties.
17411         * modules/unictype/property-byname (Depends-on): Depend on the new
17412         properties modules.
17413         * modules/unictype/property-all (Depends-on): Likewise.
17414         * MODULES.html.sh (Unicode string functions): Add
17415         unictype/property-case-ignorable, unictype/property-cased,
17416         unictype/property-changes-when-casefolded,
17417         unictype/property-changes-when-casemapped,
17418         unictype/property-changes-when-lowercased,
17419         unictype/property-changes-when-titlecased,
17420         unictype/property-changes-when-uppercased.
17421
17422         New module 'unictype/property-changes-when-casemapped'.
17423         * modules/unictype/property-changes-when-casemapped: New file.
17424         * lib/unictype/pr_changes_when_casemapped.c: New file.
17425         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17426         generated by gen-uni-tables.
17427         * modules/unictype/property-changes-when-casemapped-tests: New file.
17428         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17429         automatically generated by gen-uni-tables.
17430
17431         New module 'unictype/property-changes-when-casefolded'.
17432         * modules/unictype/property-changes-when-casefolded: New file.
17433         * lib/unictype/pr_changes_when_casefolded.c: New file.
17434         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17435         generated by gen-uni-tables.
17436         * modules/unictype/property-changes-when-casefolded-tests: New file.
17437         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17438         automatically generated by gen-uni-tables.
17439
17440         New module 'unictype/property-changes-when-titlecased'.
17441         * modules/unictype/property-changes-when-titlecased: New file.
17442         * lib/unictype/pr_changes_when_titlecased.c: New file.
17443         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17444         generated by gen-uni-tables.
17445         * modules/unictype/property-changes-when-titlecased-tests: New file.
17446         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17447         automatically generated by gen-uni-tables.
17448
17449         New module 'unictype/property-changes-when-uppercased'.
17450         * modules/unictype/property-changes-when-uppercased: New file.
17451         * lib/unictype/pr_changes_when_uppercased.c: New file.
17452         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17453         generated by gen-uni-tables.
17454         * modules/unictype/property-changes-when-uppercased-tests: New file.
17455         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17456         automatically generated by gen-uni-tables.
17457
17458         New module 'unictype/property-changes-when-lowercased'.
17459         * modules/unictype/property-changes-when-lowercased: New file.
17460         * lib/unictype/pr_changes_when_lowercased.c: New file.
17461         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17462         generated by gen-uni-tables.
17463         * modules/unictype/property-changes-when-lowercased-tests: New file.
17464         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17465         automatically generated by gen-uni-tables.
17466
17467         New module 'unictype/property-case-ignorable'.
17468         * modules/unictype/property-case-ignorable: New file.
17469         * lib/unictype/pr_case_ignorable.c: New file.
17470         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17471         by gen-uni-tables.
17472         * modules/unictype/property-case-ignorable-tests: New file.
17473         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17474         generated by gen-uni-tables.
17475
17476         New module 'unictype/property-cased'.
17477         * modules/unictype/property-cased: New file.
17478         * lib/unictype/pr_cased.c: New file.
17479         * lib/unictype/pr_cased.h: New file, automatically generated by
17480         gen-uni-tables.
17481         * modules/unictype/property-cased-tests: New file.
17482         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17483         gen-uni-tables.
17484
17485 2011-01-09  Bruno Haible  <bruno@clisp.org>
17486
17487         Update to Unicode 5.2.0.
17488         * lib/gen-uni-tables.c (output_predicate, output_category,
17489         output_combclass, output_bidi_category, output_decimal_digit_test,
17490         output_decimal_digit, output_digit_test, output_digit,
17491         output_numeric_test, output_numeric, output_mirror, output_scripts,
17492         output_scripts_byname, output_blocks, output_ident_category): Fix
17493         comment header.
17494         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17495         get_wbp.
17496         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17497         items.
17498         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17499         Changes_When_Lowercased, Changes_When_Uppercased,
17500         Changes_When_Titlecased, Changes_When_Casefolded,
17501         Changes_When_Casemapped.
17502         (is_property_alphabetic, is_property_default_ignorable_code_point):
17503         Update for Unicode 5.2.0.
17504         (is_property_cased, is_property_case_ignorable,
17505         is_property_changes_when_lowercased,
17506         is_property_changes_when_uppercased,
17507         is_property_changes_when_titlecased,
17508         is_property_changes_when_casefolded,
17509         is_property_changes_when_casemapped): New functions.
17510         (output_properties): Output also the properties cased, case_ignorable,
17511         changes_when_lowercased, changes_when_uppercased,
17512         changes_when_titlecased, changes_when_casefolded,
17513         changes_when_casemapped.
17514         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17515         Unicode TR#11 revision 17 -> 19.
17516         (LBP_CP): New enumeration value.
17517         (LBP_*): Adjust values accordingly.
17518         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17519         TR#14 revision 22 -> 24.
17520         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17521         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17522         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17523         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17524         is_WBP_MIDLETTER.
17525         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17526         the code1 and code2 of each composition rule.
17527         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17528         * lib/unicase/ignorable.h: Likewise.
17529         * lib/unicase/tocasefold.h: Likewise.
17530         * lib/unicase/tolower.h: Likewise.
17531         * lib/unicase/totitle.h: Likewise.
17532         * lib/unicase/toupper.h: Likewise.
17533         * lib/unictype/bidi_of.h: Likewise.
17534         * lib/unictype/blocks.h: Likewise.
17535         * lib/unictype/categ_C.h: Likewise.
17536         * lib/unictype/categ_Cf.h: Likewise.
17537         * lib/unictype/categ_Cn.h: Likewise.
17538         * lib/unictype/categ_L.h: Likewise.
17539         * lib/unictype/categ_Ll.h: Likewise.
17540         * lib/unictype/categ_Lm.h: Likewise.
17541         * lib/unictype/categ_Lo.h: Likewise.
17542         * lib/unictype/categ_Lu.h: Likewise.
17543         * lib/unictype/categ_M.h: Likewise.
17544         * lib/unictype/categ_Mc.h: Likewise.
17545         * lib/unictype/categ_Mn.h: Likewise.
17546         * lib/unictype/categ_N.h: Likewise.
17547         * lib/unictype/categ_Nd.h: Likewise.
17548         * lib/unictype/categ_Nl.h: Likewise.
17549         * lib/unictype/categ_No.h: Likewise.
17550         * lib/unictype/categ_P.h: Likewise.
17551         * lib/unictype/categ_Pd.h: Likewise.
17552         * lib/unictype/categ_Po.h: Likewise.
17553         * lib/unictype/categ_S.h: Likewise.
17554         * lib/unictype/categ_Sc.h: Likewise.
17555         * lib/unictype/categ_So.h: Likewise.
17556         * lib/unictype/categ_of.h: Likewise.
17557         * lib/unictype/combining.h: Likewise.
17558         * lib/unictype/ctype_alnum.h: Likewise.
17559         * lib/unictype/ctype_alpha.h: Likewise.
17560         * lib/unictype/ctype_graph.h: Likewise.
17561         * lib/unictype/ctype_lower.h: Likewise.
17562         * lib/unictype/ctype_print.h: Likewise.
17563         * lib/unictype/ctype_punct.h: Likewise.
17564         * lib/unictype/ctype_upper.h: Likewise.
17565         * lib/unictype/decdigit.h: Likewise.
17566         * lib/unictype/digit.h: Likewise.
17567         * lib/unictype/numeric.h: Likewise.
17568         * lib/unictype/pr_alphabetic.h: Likewise.
17569         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17570         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17571         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17572         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17573         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17574         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17575         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17576         * lib/unictype/pr_combining.h: Likewise.
17577         * lib/unictype/pr_composite.h: Likewise.
17578         * lib/unictype/pr_currency_symbol.h: Likewise.
17579         * lib/unictype/pr_dash.h: Likewise.
17580         * lib/unictype/pr_decimal_digit.h: Likewise.
17581         * lib/unictype/pr_deprecated.h: Likewise.
17582         * lib/unictype/pr_diacritic.h: Likewise.
17583         * lib/unictype/pr_extender.h: Likewise.
17584         * lib/unictype/pr_grapheme_base.h: Likewise.
17585         * lib/unictype/pr_grapheme_extend.h: Likewise.
17586         * lib/unictype/pr_grapheme_link.h: Likewise.
17587         * lib/unictype/pr_id_continue.h: Likewise.
17588         * lib/unictype/pr_id_start.h: Likewise.
17589         * lib/unictype/pr_ideographic.h: Likewise.
17590         * lib/unictype/pr_ignorable_control.h: Likewise.
17591         * lib/unictype/pr_logical_order_exception.h: Likewise.
17592         * lib/unictype/pr_lowercase.h: Likewise.
17593         * lib/unictype/pr_numeric.h: Likewise.
17594         * lib/unictype/pr_other_alphabetic.h: Likewise.
17595         * lib/unictype/pr_punctuation.h: Likewise.
17596         * lib/unictype/pr_sentence_terminal.h: Likewise.
17597         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17598         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17599         * lib/unictype/pr_unified_ideograph.h: Likewise.
17600         * lib/unictype/pr_uppercase.h: Likewise.
17601         * lib/unictype/pr_xid_continue.h: Likewise.
17602         * lib/unictype/pr_xid_start.h: Likewise.
17603         * lib/unictype/pr_zero_width.h: Likewise.
17604         * lib/unictype/scripts.h: Likewise.
17605         * lib/unictype/scripts_byname.gperf: Likewise.
17606         * lib/unictype/sy_java_ident.h: Likewise.
17607         * lib/unigbrk/gbrkprop.h: Likewise.
17608         * lib/unilbrk/lbrkprop1.h: Likewise.
17609         * lib/unilbrk/lbrkprop2.h: Likewise.
17610         * lib/unilbrk/lbrktables.h: Likewise.
17611         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17612         LBP_CP. Implement rule LB30.
17613         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17614         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17615         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17616         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17617         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17618         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17619         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17620         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17621         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17622         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17623         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17624         bits instead of 16 bits in the code1 and code2 of each composition
17625         rule.
17626         (uc_composition): Update for Unicode 5.2.0.
17627         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17628         * lib/uninorm/decomposition-table2.h: Likewise.
17629         * lib/uniwbrk/wbrkprop.h: Likewise.
17630         * tests/unicase/test-cased.c: Likewise.
17631         * tests/unicase/test-ignorable.c: Likewise.
17632         * tests/unicase/test-uc_tolower.c: Likewise.
17633         * tests/unicase/test-uc_totitle.c: Likewise.
17634         * tests/unicase/test-uc_toupper.c: Likewise.
17635         * tests/unictype/test-categ_C.c: Likewise.
17636         * tests/unictype/test-categ_Cf.c: Likewise.
17637         * tests/unictype/test-categ_Cn.c: Likewise.
17638         * tests/unictype/test-categ_L.c: Likewise.
17639         * tests/unictype/test-categ_Ll.c: Likewise.
17640         * tests/unictype/test-categ_Lm.c: Likewise.
17641         * tests/unictype/test-categ_Lo.c: Likewise.
17642         * tests/unictype/test-categ_Lu.c: Likewise.
17643         * tests/unictype/test-categ_M.c: Likewise.
17644         * tests/unictype/test-categ_Mc.c: Likewise.
17645         * tests/unictype/test-categ_Mn.c: Likewise.
17646         * tests/unictype/test-categ_N.c: Likewise.
17647         * tests/unictype/test-categ_Nd.c: Likewise.
17648         * tests/unictype/test-categ_Nl.c: Likewise.
17649         * tests/unictype/test-categ_No.c: Likewise.
17650         * tests/unictype/test-categ_P.c: Likewise.
17651         * tests/unictype/test-categ_Pd.c: Likewise.
17652         * tests/unictype/test-categ_Po.c: Likewise.
17653         * tests/unictype/test-categ_S.c: Likewise.
17654         * tests/unictype/test-categ_Sc.c: Likewise.
17655         * tests/unictype/test-categ_So.c: Likewise.
17656         * tests/unictype/test-ctype_alnum.c: Likewise.
17657         * tests/unictype/test-ctype_alpha.c: Likewise.
17658         * tests/unictype/test-ctype_graph.c: Likewise.
17659         * tests/unictype/test-ctype_lower.c: Likewise.
17660         * tests/unictype/test-ctype_print.c: Likewise.
17661         * tests/unictype/test-ctype_punct.c: Likewise.
17662         * tests/unictype/test-ctype_upper.c: Likewise.
17663         * tests/unictype/test-decdigit.h: Likewise.
17664         * tests/unictype/test-digit.h: Likewise.
17665         * tests/unictype/test-numeric.h: Likewise.
17666         * tests/unictype/test-pr_alphabetic.c: Likewise.
17667         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17668         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17669         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17670         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17671         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17672         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17673         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17674         * tests/unictype/test-pr_combining.c: Likewise.
17675         * tests/unictype/test-pr_composite.c: Likewise.
17676         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17677         * tests/unictype/test-pr_dash.c: Likewise.
17678         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17679         * tests/unictype/test-pr_deprecated.c: Likewise.
17680         * tests/unictype/test-pr_diacritic.c: Likewise.
17681         * tests/unictype/test-pr_extender.c: Likewise.
17682         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17683         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17684         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17685         * tests/unictype/test-pr_id_continue.c: Likewise.
17686         * tests/unictype/test-pr_id_start.c: Likewise.
17687         * tests/unictype/test-pr_ideographic.c: Likewise.
17688         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17689         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17690         * tests/unictype/test-pr_lowercase.c: Likewise.
17691         * tests/unictype/test-pr_numeric.c: Likewise.
17692         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17693         * tests/unictype/test-pr_punctuation.c: Likewise.
17694         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17695         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17696         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17697         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17698         * tests/unictype/test-pr_uppercase.c: Likewise.
17699         * tests/unictype/test-pr_xid_continue.c: Likewise.
17700         * tests/unictype/test-pr_xid_start.c: Likewise.
17701         * tests/unictype/test-pr_zero_width.c: Likewise.
17702         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17703         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17704         changed behaviour: line breaking is now disallowed between a letter
17705         or '=' and '('.
17706         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17707         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17708         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17709         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17710         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17711         lib/uniwidth/width.c.
17712         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17713         without comments, but with the original copyright notice.
17714         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17715         changes.
17716         * lib/unictype/categ_Cc.h: Likewise.
17717         * lib/unictype/categ_Co.h: Likewise.
17718         * lib/unictype/categ_Cs.h: Likewise.
17719         * lib/unictype/categ_Lt.h: Likewise.
17720         * lib/unictype/categ_Me.h: Likewise.
17721         * lib/unictype/categ_Pc.h: Likewise.
17722         * lib/unictype/categ_Pe.h: Likewise.
17723         * lib/unictype/categ_Pf.h: Likewise.
17724         * lib/unictype/categ_Pi.h: Likewise.
17725         * lib/unictype/categ_Ps.h: Likewise.
17726         * lib/unictype/categ_Sk.h: Likewise.
17727         * lib/unictype/categ_Sm.h: Likewise.
17728         * lib/unictype/categ_Z.h: Likewise.
17729         * lib/unictype/categ_Zl.h: Likewise.
17730         * lib/unictype/categ_Zp.h: Likewise.
17731         * lib/unictype/categ_Zs.h: Likewise.
17732         * lib/unictype/ctype_blank.h: Likewise.
17733         * lib/unictype/ctype_cntrl.h: Likewise.
17734         * lib/unictype/ctype_digit.h: Likewise.
17735         * lib/unictype/ctype_space.h: Likewise.
17736         * lib/unictype/ctype_xdigit.h: Likewise.
17737         * lib/unictype/mirror.h: Likewise.
17738         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17739         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17740         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17741         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17742         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17743         * lib/unictype/pr_bidi_control.h: Likewise.
17744         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17745         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17746         * lib/unictype/pr_bidi_pdf.h: Likewise.
17747         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17748         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17749         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17750         * lib/unictype/pr_format_control.h: Likewise.
17751         * lib/unictype/pr_hex_digit.h: Likewise.
17752         * lib/unictype/pr_hyphen.h: Likewise.
17753         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17754         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17755         * lib/unictype/pr_iso_control.h: Likewise.
17756         * lib/unictype/pr_join_control.h: Likewise.
17757         * lib/unictype/pr_left_of_pair.h: Likewise.
17758         * lib/unictype/pr_line_separator.h: Likewise.
17759         * lib/unictype/pr_math.h: Likewise.
17760         * lib/unictype/pr_non_break.h: Likewise.
17761         * lib/unictype/pr_not_a_character.h: Likewise.
17762         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17763         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17764         * lib/unictype/pr_other_id_continue.h: Likewise.
17765         * lib/unictype/pr_other_id_start.h: Likewise.
17766         * lib/unictype/pr_other_lowercase.h: Likewise.
17767         * lib/unictype/pr_other_math.h: Likewise.
17768         * lib/unictype/pr_other_uppercase.h: Likewise.
17769         * lib/unictype/pr_paired_punctuation.h: Likewise.
17770         * lib/unictype/pr_paragraph_separator.h: Likewise.
17771         * lib/unictype/pr_pattern_syntax.h: Likewise.
17772         * lib/unictype/pr_pattern_white_space.h: Likewise.
17773         * lib/unictype/pr_private_use.h: Likewise.
17774         * lib/unictype/pr_quotation_mark.h: Likewise.
17775         * lib/unictype/pr_radical.h: Likewise.
17776         * lib/unictype/pr_soft_dotted.h: Likewise.
17777         * lib/unictype/pr_space.h: Likewise.
17778         * lib/unictype/pr_titlecase.h: Likewise.
17779         * lib/unictype/pr_variation_selector.h: Likewise.
17780         * lib/unictype/pr_white_space.h: Likewise.
17781         * lib/unictype/sy_c_ident.h: Likewise.
17782         * lib/unictype/sy_c_whitespace.h: Likewise.
17783         * lib/unictype/sy_java_whitespace.h: Likewise.
17784         * modules/uni*/*: Bump version number of expected libunistring version.
17785         Reported by Simon Josefsson.
17786
17787 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17788
17789         useless-if-before-free: fix typo in --help and make the internal,
17790         automatic version date update process work once again.
17791         --help output contained a NUL character instead of the
17792         backslash-zero that was intended.  Also, the "must lie within
17793         the first 8 lines" line is on line 9, and hence not getting
17794         automatically updated.
17795         * build-aux/useless-if-before-free: Fix the former by adding a
17796         backslash, and the latter by condensing the three lines of what-it-does
17797         to a single line, leaving one line of slack for the future.
17798
17799 2011-01-09  Bruno Haible  <bruno@clisp.org>
17800
17801         uniwidth/width: Fix width of U+1D173..U+1D17A.
17802         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17803         symbolic_width, output_width_property_test): New functions.
17804         (main): Invoke output_nonspacing_property, output_width_property_test.
17805         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17806         U+1D173..U+1D17A.
17807         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17808         1.
17809         * modules/uniwidth/*: Bump version number of expected libunistring
17810         version.
17811         * modules/unilbrk/*: Likewise.
17812
17813 2011-01-08  Bruno Haible  <bruno@clisp.org>
17814
17815         uninorm tests: Preserve copyright of Unicode data file.
17816         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17817         Mention modifications.
17818
17819 2011-01-08  Bruno Haible  <bruno@clisp.org>
17820
17821         gen-uni-tables: Prepare for Unicode 5.2.0.
17822         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17823         (debug_output_lbp, output_lbp): Update.
17824
17825 2011-01-08  Bruno Haible  <bruno@clisp.org>
17826
17827         unilbrk: Clarify gen-uni-tables.c code.
17828         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17829         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17830         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17831
17832 2011-01-07  Bruno Haible  <bruno@clisp.org>
17833
17834         strtod: Restore errno when successfully parsing Infinity or NaN.
17835         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17836         restore the original errno.
17837
17838 2011-01-07  Bruno Haible  <bruno@clisp.org>
17839
17840         remove test: Avoid failure on HP-UX 11.
17841         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17842
17843 2011-01-07  Bruno Haible  <bruno@clisp.org>
17844
17845         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17846         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17847         error code.
17848
17849 2011-01-07  PĂ¡draig Brady <P@draigBrady.com>
17850
17851         ignore-value: fixup comments, and add Eric Blake
17852         as an author since he rewrote the macros.
17853         * lib/ignore-value.h (ignore_value):  State that
17854         we now support aggregates.  Also specify exactly
17855         when the GCC warn_unused_result feature was added.
17856
17857 2011-01-06  Eric Blake  <eblake@redhat.com>
17858
17859         ignore-value: support aggregate types
17860         * lib/ignore-value.h (ignore_value): Provide separate gcc
17861         definition.
17862         * modules/ignore-value-tests: New test module.
17863         * tests/test-ignore-value.c: New test.
17864
17865         maint.mk: improve sc_prohibit_strcmp regex
17866         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17867         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17868         definition of STRNEQ.
17869
17870         signal: work around Haiku issue with SIGBUS
17871         * lib/siglist.h: Add comment.
17872         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17873         strsignal's favoring of SIGSEGV.
17874         * tests/test-signal.c (main): Avoid test failure.
17875         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17876         Reported by Scott McCreary.
17877
17878         maint.mk: add pre-release check to ensure submodule commits are public
17879         * top/maint.mk (public-submodule-commit): New rule.
17880         (submodule-checks): New variable.
17881         (alpha beta stable): Depend on the variable.
17882
17883 2011-01-05  PĂ¡draig Brady <P@draigBrady.com>
17884         and Jim Meyering  <meyering@redhat.com>
17885
17886         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17887         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17888         (ATTRIBUTE_DEPRECATED): Define.
17889         (_ignore_case): New function.
17890         (ignore_value): New macro, to replace the old function.
17891         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17892         * modules/ignore-value (Depends-on): Add stdint.
17893
17894 2011-01-04  Eric Blake  <eblake@redhat.com>
17895
17896         doc: regenerate INSTALL
17897         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17898         @firstparagraphindent support, now that autoconf dropped it.
17899         (INSTALL_PRELUDE): Reinstate old macro.
17900         * doc/install.texi: Resync from autoconf.
17901         * doc/INSTALL: Reflect recent autoconf update.
17902         * doc/INSTALL.ISO: Likewise.
17903         * doc/INSTALL.UTF-8: Likewise.
17904         Reported by Karl Berry.
17905
17906 2011-01-04  Bruce Korb  <address@hidden>
17907
17908         git-version-gen: avoid a sub-shell
17909         * build-aux/git-version-gen: Redirect stderr in `...` via
17910         "exec 2>...", rather than via an added sub-shell.
17911
17912 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17913
17914         git-version-gen: use (...) rather than sh -c '...'
17915         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17916         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17917
17918 2011-01-03  Jim Meyering  <meyering@redhat.com>
17919
17920         git-version-gen: convert leading TABs to spaces
17921         * build-aux/git-version-gen: Expand leading TABs.
17922
17923         git-version-gen: handle failed "git rev-list"
17924         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17925         from git and proceeding as if it had succeeded but printed no SHA1
17926         checksums, suppress the diagnostic and handle the failure.
17927         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17928
17929         git-version-gen: include command name in one more diagnostic
17930         * build-aux/git-version-gen: When the required .tarball-version file
17931         was missing or unreadable, you might see the diagnostic from "cat",
17932         but no trace of the name of the invoking script.  Now, you still see
17933         the diagnostic from cat, but also get one from "git-version-gen: ".
17934         Inspired by a patch from Bruce Korb.
17935
17936         update-copyright: adjust test to match changed code
17937         * tests/test-update-copyright.sh: Change test's expected output
17938         to match new actual output.
17939
17940 2011-01-02  Bruno Haible  <bruno@clisp.org>
17941
17942         getlogin_r: Avoid test failure on HP-UX 11.
17943         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17944         ERANGE when the second argument is zero.
17945         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17946         portability problem.
17947
17948 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17949
17950         * build-aux/update-copyright: doc Simon's changes
17951
17952 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17953
17954         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17955         environment variable.
17956
17957 2011-01-02  Bruno Haible  <bruno@clisp.org>
17958
17959         unigbrk: Avoid gcc warnings.
17960         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17961         unused variable.
17962         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17963         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17964         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17965         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17966         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17967         Change type of first argument to 'const char *'.
17968         (main): Remove unused variable.
17969         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17970         type of first argument to 'const char *'.
17971         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17972         Likewise.
17973         (main): Change type of variable 's'.
17974         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17975         to 'int'.
17976
17977 2011-01-02  Bruno Haible  <bruno@clisp.org>
17978
17979         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17980         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17981         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17982         bug.
17983         * lib/pwrite.c: Undo 2010-12-31 patch.
17984         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17985
17986 2011-01-02  Bruno Haible  <bruno@clisp.org>
17987
17988         pread: Fix test whether it works.
17989         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17990
17991 2011-01-02  Bruno Haible  <bruno@clisp.org>
17992
17993         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17994         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17995         ends in "6". Don't require a specific month name. Try also the locale
17996         names found on HP-UX 11 and Solaris 7.
17997
17998 2011-01-02  Bruno Haible  <bruno@clisp.org>
17999
18000         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18001         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18002         C linkage.
18003         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18004
18005 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18006
18007         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18008         for consistency, since the "cluster" term is not used elsewhere.
18009         * lib/unigbrk.in.h: Update name.
18010         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18011         * lib/unigbrk/u16-grapheme-next.c: Update name.
18012         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18013         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18014         * lib/unigbrk/u32-grapheme-next.c: Update name.
18015         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18016         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18017         * lib/unigbrk/u8-grapheme-next.c: Update name.
18018         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18019         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18020         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18021         Suggested by Bruno Haible.
18022
18023 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18024
18025         Remove module 'u8-grapheme-len' as too redundant with
18026         'u8-grapheme-next'.
18027         * modules/unigbrk/u8-grapheme-len: Delete file.
18028         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18029         * lib/unigbrk.in.h: Remove prototype for deleted function.
18030         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18031         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18032
18033         Remove module 'u16-grapheme-len' as too redundant with
18034         'u16-grapheme-next'.
18035         * modules/unigbrk/u16-grapheme-len: Delete file.
18036         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18037         * lib/unigbrk.in.h: Remove prototype for deleted function.
18038         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18039         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18040
18041         Remove module 'u32-grapheme-len' as too redundant with
18042         'u32-grapheme-next'.
18043         * modules/unigbrk/u32-grapheme-len: Delete file.
18044         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18045         * lib/unigbrk.in.h: Remove prototype for deleted function.
18046         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18047         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18048
18049         Suggested by Bruno Haible.
18050
18051 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18052
18053         * unigbrk.in.h: Fix typo: "ben" => "been".
18054         Reported by Bruno Haible.
18055
18056 2011-01-01  Jim Meyering  <meyering@redhat.com>
18057
18058         maint: update almost all copyright ranges to include 2011
18059         Run the new "make update-copyright" rule.
18060
18061 2011-01-01  Jim Meyering  <meyering@redhat.com>
18062
18063         maint: update-copyright: exempt doc/INSTALL*
18064         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18065         since they are generated.  Suggested by Bruno Haible.
18066
18067 2011-01-01  Jim Meyering  <meyering@redhat.com>
18068
18069         maint: refine the update-copyright rule
18070         * Makefile (update-copyright): Also exclude any file that includes
18071         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18072         code that merely generates the comment.
18073
18074 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18075
18076         New module 'u8-grapheme-len'.
18077         * modules/unigbrk/u8-grapheme-len: New file.
18078         * modules/unigbrk/u8-grapheme-len-tests: New file.
18079         * lib/unigbrk.in.h: Add prototype for new function.
18080         * lib/unigbrk/u8-grapheme-len.c: New file.
18081         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18082
18083         New module 'u16-grapheme-len'.
18084         * modules/unigbrk/u16-grapheme-len: New file.
18085         * modules/unigbrk/u16-grapheme-len-tests: New file.
18086         * lib/unigbrk.in.h: Add prototype for new function.
18087         * lib/unigbrk/u16-grapheme-len.c: New file.
18088         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18089
18090         New module 'u32-grapheme-len'.
18091         * modules/unigbrk/u32-grapheme-len: New file.
18092         * modules/unigbrk/u32-grapheme-len-tests: New file.
18093         * lib/unigbrk.in.h: Add prototype for new function.
18094         * lib/unigbrk/u32-grapheme-len.c: New file.
18095         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18096
18097         New module 'u8-grapheme-next'.
18098         * modules/unigbrk/u8-grapheme-next: New file.
18099         * modules/unigbrk/u8-grapheme-next-tests: New file.
18100         * lib/unigbrk.in.h: Add prototype for new function.
18101         * lib/unigbrk/u8-grapheme-next.c: New file.
18102         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18103
18104         New module 'u16-grapheme-next'.
18105         * modules/unigbrk/u16-grapheme-next: New file.
18106         * modules/unigbrk/u16-grapheme-next-tests: New file.
18107         * lib/unigbrk.in.h: Add prototype for new function.
18108         * lib/unigbrk/u16-grapheme-next.c: New file.
18109         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18110
18111         New module 'u32-grapheme-next'.
18112         * modules/unigbrk/u32-grapheme-next: New file.
18113         * modules/unigbrk/u32-grapheme-next-tests: New file.
18114         * lib/unigbrk.in.h: Add prototype for new function.
18115         * lib/unigbrk/u32-grapheme-next.c: New file.
18116         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18117
18118         New module 'u8-grapheme-prev'.
18119         * modules/unigbrk/u8-grapheme-prev: New file.
18120         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18121         * lib/unigbrk.in.h: Add prototype for new function.
18122         * lib/unigbrk/u8-grapheme-prev.c: New file.
18123         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18124
18125         New module 'u16-grapheme-prev'.
18126         * modules/unigbrk/u16-grapheme-prev: New file.
18127         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18128         * lib/unigbrk.in.h: Add prototype for new function.
18129         * lib/unigbrk/u16-grapheme-prev.c: New file.
18130         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18131
18132         New module 'u32-grapheme-prev'.
18133         * modules/unigbrk/u32-grapheme-prev: New file.
18134         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18135         * lib/unigbrk.in.h: Add prototype for new function.
18136         * lib/unigbrk/u32-grapheme-prev.c: New file.
18137         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18138
18139         New module 'u8-grapheme-breaks'.
18140         * modules/unigbrk/u8-grapheme-breaks: New file.
18141         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18142         * lib/unigbrk.in.h: Add prototype for new function.
18143         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18144         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18145
18146         New module 'u16-grapheme-breaks'.
18147         * modules/unigbrk/u16-grapheme-breaks: New file.
18148         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18149         * lib/unigbrk.in.h: Add prototype for new function.
18150         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18151         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18152
18153         New module 'u32-grapheme-breaks'.
18154         * modules/unigbrk/u32-grapheme-breaks: New file.
18155         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18156         * lib/unigbrk.in.h: Add prototype for new function.
18157         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18158         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18159
18160         New module 'ulc-grapheme-breaks'.
18161         * modules/unigbrk/ulc-grapheme-breaks: New file.
18162         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18163         * m4/locale-ar.m4: New file.
18164         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18165         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18166         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18167
18168 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18169
18170         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18171         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18172         modified how this file was generated before I initially submitted
18173         the module, but failed to regenerate it.  This meant that several
18174         of the level2 entries were wrong.
18175         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18176         Remove the division-by-2 that is folded into the table now that
18177         gbrkprop.h has been regenerated properly.  Now -1 entries are
18178         handled correctly.
18179
18180         New module 'unigbrk/uc-gbrk-prop-tests'.
18181         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18182         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18183         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18184         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18185
18186 2011-01-01  Bruno Haible  <bruno@clisp.org>
18187
18188         Avoid use of hexadecimal escapes.
18189         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18190         instead of hexadecimal escapes.
18191
18192 2011-01-01  Jim Meyering  <meyering@redhat.com>
18193
18194         maint: new rule to update copyright year ranges
18195         * Makefile (update-copyright): New rule.
18196
18197         maint: indent with TABs in Makefile
18198         * Makefile: Expand leading sequences of spaces to TABs
18199
18200         version-etc: update the copyright year it reports
18201         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18202
18203 2010-12-31  Bruno Haible  <bruno@clisp.org>
18204
18205         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18206         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18207         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18208         zero.
18209
18210 2010-12-31  Bruno Haible  <bruno@clisp.org>
18211
18212         pwrite: Work around HP-UX 11.11 bug.
18213         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18214         works and set REPLACE_PWRITE if not.
18215         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18216         function.
18217         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18218
18219 2010-12-31  Bruno Haible  <bruno@clisp.org>
18220
18221         pread: Work around HP-UX 11 bugs.
18222         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18223         and set REPLACE_PREAD if not.
18224         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18225
18226 2010-12-31  Eric Blake  <eblake@redhat.com>
18227
18228         nl_langinfo: fix YESEXPR on Irix 6.5
18229         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18230         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18231         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18232         it.
18233
18234 2010-12-31  Bruno Haible  <bruno@clisp.org>
18235
18236         iconv: Document HP-UX 11 bug.
18237         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18238
18239 2010-12-31  Bruno Haible  <bruno@clisp.org>
18240
18241         ldexpl: Fix link error on HP-UX 11.
18242         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18243         LDEXPL_LIBM, using $ISNANL_LIBM.
18244
18245 2010-12-31  Eric Blake  <eblake@redhat.com>
18246
18247         ftello: avoid compilation failure with SunStudio c89
18248         * lib/ftello.c (ftello): Use lseek, not llseek.
18249
18250         tests: avoid failing coreutils tests on cygwin
18251         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18252         (create_exe_shims_): Return 0 when skipping.
18253
18254 2010-12-31  Bruno Haible  <bruno@clisp.org>
18255
18256         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18257         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18258
18259 2010-12-31  Bruno Haible  <bruno@clisp.org>
18260
18261         waitpid: Fix link error in C++ mode.
18262         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18263
18264 2010-12-31  Bruno Haible  <bruno@clisp.org>
18265
18266         isnan: Use GCC built-ins when possible.
18267         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18268         __builtin_isnan.
18269         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18270         (isnan): Define using GCC built-ins for GCC >= 4.0.
18271
18272 2010-12-31  Bruno Haible  <bruno@clisp.org>
18273
18274         isnand: Fix mistake.
18275         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18276         __builtin_isnand.
18277
18278 2010-12-31  Bruno Haible  <bruno@clisp.org>
18279
18280         open: Avoid C++ error on HP-UX 11.
18281         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18282
18283 2010-12-31  Bruno Haible  <bruno@clisp.org>
18284
18285         time_r: Add missing declarations on HP-UX 11.
18286         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18287         instead of HAVE_LOCALTIME_R.
18288         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18289         HAVE_LOCALTIME_R always.
18290         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18291         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18292         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18293         HAVE_LOCALTIME_R.
18294         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18295         * doc/posix-functions/localtime_r.texi: Likewise.
18296
18297 2010-12-29  Eric Blake  <eblake@redhat.com>
18298
18299         mountlist: tweak previous commit
18300         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18301         Reported by Paul Eggert.
18302
18303         mountlist: fix local drive detection on cygwin
18304         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18305         that works for cygwin.
18306
18307 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18308
18309         ftoastr, snprintf: ftoastr + snprintf module
18310         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18311         since the snprintf module now should be good enough here.
18312         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18313         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18314         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18315         GNULIB_SNPRINTF only for the test directory, and the latter
18316         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18317         seems to suffice by itself.
18318
18319 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18320
18321         alloca: one step towards thread-safety
18322         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18323         need for a static variable.  All callers changed.  This does not
18324         make the alloca replacement thread-safe, but it's one step.
18325
18326         tests: minor indenting change
18327         * tests/init.sh: Sync from coreutils housekeeping patch
18328         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18329         to keep lines within 80 columns.
18330
18331 2010-12-28  Jim Meyering  <meyering@redhat.com>
18332
18333         regex: don't infloop on persistent failing calloc
18334         * lib/regexec.c (build_trtable): Return failure indication upon
18335         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18336         In glibc, this was fixed for version 2.13:
18337         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18338
18339 2010-12-28  Bruno Haible  <bruno@clisp.org>
18340             Paul Eggert <eggert@cs.ucla.edu>
18341
18342         linkat: Make implementation robust against system behaviour variations.
18343         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18344         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18345         way, and to -2 if it needs a generic runtime test.
18346         * lib/linkat.c (solaris_optimized_link_immediate,
18347         solaris_optimized_link_follow): New functions.
18348         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18349         (check_same_link): Use it.
18350
18351 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18352
18353         New module 'unigbrk/base'.
18354         * modules/unigbrk/base: New file.
18355         * lib/unigbrk.in.h: New file.
18356
18357         New module 'unigbrk/uc-gbrk-prop'.
18358         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18359         * modules/unigbrk/uc-gbrk-prop: New file.
18360         * lib/unigbrk/gbrkprop.h: New file.
18361         * lib/unigbrk/uc-gbrk-prop.c: New file.
18362
18363         New module 'unigbrk/uc-is-grapheme-break'.
18364         * modules/unigbrk/uc-is-grapheme-break: New file.
18365         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18366         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18367         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18368         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18369         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18370
18371         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18372
18373 2010-12-27  Bruno Haible  <bruno@clisp.org>
18374
18375         linkat test: Avoid failure on Solaris 11 2010-11.
18376         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18377
18378 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         utimens: work around glibc rounding bug on more platforms
18381         * lib/utimens.c (fdutimens): Work around rounding bug even if
18382         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18384
18385 2010-12-27  Bruno Haible  <bruno@clisp.org>
18386
18387         select tests: Improve comments.
18388         * tests/test-select.c (do_select): Add comments.
18389
18390 2010-12-27  Bruno Haible  <bruno@clisp.org>
18391
18392         select tests: Safer way of handling timeout.
18393         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18394         at every invocation.
18395
18396 2010-12-27  Bruno Haible  <bruno@clisp.org>
18397
18398         select tests: Use 'bool' where appropriate.
18399         * tests/test-select.c (connect_to_socket): Change argument type to
18400         'bool'.
18401
18402 2010-12-27  Bruno Haible  <bruno@clisp.org>
18403
18404         select tests: Use existing modules.
18405         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18406         (configure.ac): Don't test for unistd.h.
18407         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18408         declared in <unistd.h>.
18409
18410 2010-12-27  Bruno Haible  <bruno@clisp.org>
18411
18412         mbrtowc: Work around a Solaris 7 bug.
18413         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18414         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18415         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18416         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18417         MBRTOWC_NULL_ARG1_BUG.
18418         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18419         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18420         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18421         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18422
18423 2010-12-27  Jim Meyering  <meyering@redhat.com>
18424
18425         read-file.c: tweak syntax
18426         * lib/read-file.c (fread_file): Remove space after "*" in function
18427         definitions.
18428
18429 2010-12-27  Bruno Haible  <bruno@clisp.org>
18430
18431         times test: Avoid gcc warnings on OSF/1.
18432         * tests/test-times.c (main): Cast printf arguments from clock_t to
18433         'long int'.
18434
18435 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18436
18437         utimens: work around glibc rounding bug on older Linux kernels
18438         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18439         on Linux with a glibc whose utimes might not work, then work
18440         around a longstanding glibc bug involving rounding rather than
18441         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18443
18444 2010-12-26  Bruno Haible  <bruno@clisp.org>
18445
18446         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18447         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18448         _GL_CXXALIAS_SYS.
18449         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18450
18451 2010-12-26  Bruno Haible  <bruno@clisp.org>
18452
18453         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18454         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18455         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18456         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18457         looking for the declaration.
18458         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18459         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18460         problem.
18461         * doc/posix-functions/inet_pton.texi: Likewise.
18462
18463 2010-12-26  Bruno Haible  <bruno@clisp.org>
18464
18465         arpa_inet: Use the common idioms with C++ support.
18466         * lib/arpa_inet.in.h: Include c++defs.h.
18467         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18468         support.
18469         * modules/arpa_inet (Depends-on): Add c++defs.
18470         (Makefile.am): Substitute the contents of c++defs.h.
18471         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18472         * modules/arpa_inet-c++-tests: New file.
18473         * tests/test-arpa_inet-c++.cc: New file.
18474
18475 2010-12-25  Bruno Haible  <bruno@clisp.org>
18476
18477         Fix more C++ link errors on Solaris 8.
18478         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18479         $(LIB_EACCESS).
18480         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18481         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18482         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18483         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18484         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18485
18486 2010-12-25  Bruno Haible  <bruno@clisp.org>
18487
18488         printf-posix: Fix link error when a non-GCC compiler is used.
18489         * lib/stdio.in.h (printf): When not using GCC, override printf
18490         correctly.
18491         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18492
18493 2010-12-25  Bruno Haible  <bruno@clisp.org>
18494
18495         strerror_r-posix: Update doc.
18496         * doc/posix-functions/strerror_r.texi: Update doc about the return
18497         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18498
18499 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18500
18501         utimens: simplify the logic of the previous change
18502         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18503         This should not affect whether the test succeeds or fails.
18504
18505         utimens: configure better on hosts with NFS clock skew
18506         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18507         uses the clock of the local host.  It might use the clock of the
18508         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18510
18511 2010-12-25  Bruno Haible  <bruno@clisp.org>
18512
18513         ptsname test: Avoid failure on Solaris.
18514         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18515         open a pseudo-terminal; don't use BSD-style ptys.
18516         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18517
18518 2010-12-25  Bruno Haible  <bruno@clisp.org>
18519
18520         ptsname: Avoid ERANGE failure on some systems.
18521         * lib/ptsname.c (buffer): Increase size.
18522
18523 2010-12-25  Bruno Haible  <bruno@clisp.org>
18524
18525         rename, renameat: Avoid test failures at NFS mounted locations.
18526         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18527         so that subsequent mkdir calls succeed.
18528
18529 2010-12-25  Bruno Haible  <bruno@clisp.org>
18530
18531         iswblank: Fix C++ link error on Solaris 8.
18532         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18533         _GL_FUNCDECL_SYS.
18534
18535 2010-12-25  Bruno Haible  <bruno@clisp.org>
18536
18537         unistd: Fix C++ link error on Solaris 8.
18538         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18539
18540 2010-12-25  Bruno Haible  <bruno@clisp.org>
18541
18542         readlink doc: Mention an old glibc bug.
18543         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18544
18545 2010-12-25  Bruno Haible  <bruno@clisp.org>
18546
18547         fcntl-h: Fix for use of C++ on glibc systems.
18548         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18549         also on glibc systems in C++ mode.
18550         Reported by Gary V. Vaughan <gary@gnu.org>.
18551
18552 2010-12-25  Bruno Haible  <bruno@clisp.org>
18553
18554         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18555         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18556
18557 2010-12-25  Bruno Haible  <bruno@clisp.org>
18558
18559         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18560         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18561         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18562         test whether truncl works according to ISO C 99 with IEC 60559.
18563         * m4/truncl-ieee.m4: New file.
18564         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18565         m4/signbit.m4.
18566         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18567
18568 2010-12-25  Bruno Haible  <bruno@clisp.org>
18569
18570         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18571         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18572         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18573         test whether ceill works according to ISO C 99 with IEC 60559.
18574         * m4/ceill-ieee.m4: New file.
18575         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18576         m4/signbit.m4.
18577         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18578
18579 2010-12-25  Bruno Haible  <bruno@clisp.org>
18580
18581         Ensure all prerequisites of <wchar.h> are included.
18582         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18583         before <wchar.h>.
18584         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18585         gl_MBRLEN_NUL_RETVAL): Likewise.
18586         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18587         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18588         AC_FUNC_MBRTOWC): Likewise.
18589         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18590         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18591         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18592         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18593         Likewise.
18594         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18595         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18596         (gl_WCHAR_H): Improve comments.
18597         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18598
18599 2010-12-25  Bruno Haible  <bruno@clisp.org>
18600
18601         strtok_r: Fix C syntax error in autoconf macro.
18602         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18603         characters in test program.
18604
18605 2010-12-24  Bruno Haible  <bruno@clisp.org>
18606
18607         ceil, trunc, round: Fix gcc warnings.
18608         * lib/ceil.c (MIN): Undefine before redefining.
18609         * lib/trunc.c (MIN): Likewise.
18610         * lib/round.c (MIN): Likewise.
18611         Include <math.h> first.
18612
18613 2010-12-24  Bruno Haible  <bruno@clisp.org>
18614
18615         select tests: Avoid failures on OSF/1 5.1.
18616         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18617         failure of closing the last socket; it may fail with ECONNRESET.
18618
18619 2010-12-24  Eric Blake  <eblake@redhat.com>
18620
18621         stdint: avoid HP-UX 10.20 preprocessor bug
18622         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18623         than #if.
18624         * tests/test-floor2.c (main): Likewise.
18625         Reported by Peter O'Gorman.
18626
18627         pipe: make obsoletion transition easier
18628         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18629         * modules/pipe (Files): Include revived file.
18630         (Include): Drop reference, to mirror getdate's behavior.
18631
18632 2010-12-24  Bruno Haible  <bruno@clisp.org>
18633
18634         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18635         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18636         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18637         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18638
18639 2010-12-24  Bruno Haible  <bruno@clisp.org>
18640
18641         gethostname: Ensure declaration on NonStop Kernel.
18642         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18643         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18644
18645 2010-12-24  Bruno Haible  <bruno@clisp.org>
18646
18647         sys_select: Ensure all necessary types on NonStop Kernel.
18648         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18649         include <sys/time.h>.
18650         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18651         NonStop Kernel.
18652         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18653
18654 2010-12-24  Bruno Haible  <bruno@clisp.org>
18655
18656         sys_select: Remove unneeded include.
18657         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18658         have <sys/select.h>.
18659
18660 2010-12-24  Bruno Haible  <bruno@clisp.org>
18661
18662         gethostname: Provide a fallback for HOST_NAME_MAX.
18663         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18664         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18665         instead.
18666         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18667
18668 2010-12-24  Bruno Haible  <bruno@clisp.org>
18669
18670         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18671         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18672         (SA_RESTART): Likewise.
18673         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18674
18675 2010-12-24  Bruno Haible  <bruno@clisp.org>
18676
18677         signal: Define NSIG.
18678         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18679         * tests/test-signal.c (nsig): New variable.
18680         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18681
18682 2010-12-24  Bruno Haible  <bruno@clisp.org>
18683
18684         rename, renameat: Avoid test failures on OSF/1 5.1.
18685         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18686         alternative error codes.
18687         * tests/test-renameat.c (main): Likewise.
18688
18689 2010-12-24  Bruno Haible  <bruno@clisp.org>
18690
18691         *printf: Detect large precisions bug on Solaris 10/SPARC.
18692         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18693         by Paul Eggert.
18694         * tests/test-snprintf-posix.h (test_function): Add this test code here
18695         too.
18696         * tests/test-sprintf-posix.h (test_function): Likewise.
18697         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18698         * tests/test-vasprintf-posix.c (test_function): Likewise.
18699         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18700         around by gnulib.
18701         * doc/posix-functions/printf.texi: Likewise.
18702         * doc/posix-functions/snprintf.texi: Likewise.
18703         * doc/posix-functions/sprintf.texi: Likewise.
18704         * doc/posix-functions/vfprintf.texi: Likewise.
18705         * doc/posix-functions/vprintf.texi: Likewise.
18706         * doc/posix-functions/vsnprintf.texi: Likewise.
18707         * doc/posix-functions/vsprintf.texi: Likewise.
18708         * doc/posix-functions/dprintf.texi: Undo last commit.
18709         * doc/posix-functions/vdprintf.texi: Likewise.
18710
18711 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18712
18713         tests: port test-fdutimensat.c to Solaris 8
18714         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18715         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18716         On Solaris 8, it fails with errno == ENOSYS, because there is no
18717         futimens (so it can't use the fd), and there is no lutimens (so it
18718         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18719
18720         vsnprintf: make more consistent with snprintf; doc fixes
18721
18722         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18723         the byte count return problem was promoted from the snprintf-posix
18724         to the snprintf module.
18725         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18726         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18727         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18728         * tests/test-snprintf.c (main): Check the byte count returned.
18729         * tests/test-vsnprintf.c (main): Likewise.
18730
18731 2010-12-23  Eric Blake  <eblake@redhat.com>
18732
18733         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18734         * modules/sigpipe (License): Relax license.
18735
18736 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18737
18738         doc: document Solaris printf bug with large float precisions
18739         * doc/posix-functions/dprintf.texi (dprintf):
18740         * doc/posix-functions/fprintf.texi (fprintf):
18741         * doc/posix-functions/printf.texi (printf):
18742         * doc/posix-functions/snprintf.texi (snprintf):
18743         * doc/posix-functions/sprintf.texi (sprintf):
18744         * doc/posix-functions/vdprintf.texi (vdprintf):
18745         * doc/posix-functions/vfprintf.texi (vfprintf):
18746         * doc/posix-functions/vprintf.texi (vprintf):
18747         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18748         * doc/posix-functions/vsprintf.texi (vsprintf):
18749         Mention that these functions mishandle large floating point
18750         precisions on Solaris 10.  The same bug is also present in Solaris
18751         8, and I assume earlier.  This causes "cd gnulib-tests; make
18752         check" to fail on Solaris 8 (and I assume, later) when building
18753         the latest coreutils, in test-vasprintf-posix's call to
18754         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18755         the wide flavors (e.g., wprintf) so this patch just updates the
18756         documentation for the narrow ones.
18757
18758         test-posixtm.c: add two tests
18759         * tests/test-posixtm.c: Add two tests, to highlight the
18760         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18761         around this bug; this is merely to document it.
18762
18763 2010-12-22  Bruno Haible  <bruno@clisp.org>
18764
18765         getlogin_r: Work around portability problem on OSF/1.
18766         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18767         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18768         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18769         test for a truncated result.
18770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18771         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18772         * modules/getlogin_r (Depends-on): Add memchr.
18773         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18774
18775 2010-12-22  Bruno Haible  <bruno@clisp.org>
18776
18777         ptsname: Avoid test failure on OSF/1 5.1.
18778         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18779         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18780         (same_slave): New function.
18781         (main): Use it to compare ptsname's result with the expected file name.
18782
18783 2010-12-22  Bruno Haible  <bruno@clisp.org>
18784
18785         Port extended stdio modules to HP NonStop Kernel.
18786         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18787         macros.
18788         * lib/fbufmode.c: Update comments.
18789         * lib/fflush.c: Likewise.
18790         * lib/fpurge.c: Likewise.
18791         * lib/freadable.c: Likewise.
18792         * lib/freadahead.c: Likewise.
18793         * lib/freading.c: Likewise.
18794         * lib/freadptr.c: Likewise.
18795         * lib/freadseek.c: Likewise.
18796         * lib/fseeko.c: Likewise.
18797         * lib/fseterr.c: Likewise.
18798         * lib/fwritable.c: Likewise.
18799         * lib/fwriting.c: Likewise.
18800         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18801
18802 2010-12-22  Bruno Haible  <bruno@clisp.org>
18803
18804         ttyname_r: Work around bug on OSF/1 5.1.
18805         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18806         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18807         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18808         present.
18809         * lib/ttyname_r.c (ttyname_r): Update comments.
18810
18811 2010-12-22  Bruno Haible  <bruno@clisp.org>
18812
18813         round: Implement result sign according to IEEE 754.
18814         * lib/round.c (MIN, MINUS_ZERO): New macros.
18815         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18816         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18817         * tests/test-round-ieee.c (main): Likewise.
18818         * tests/test-roundl-ieee.c (main): Likewise.
18819
18820         trunc: Implement result sign according to IEEE 754.
18821         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18822         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18823         * tests/test-trunc2.c: Include minus-zero.h.
18824         (MINUS_ZERO): New macro.
18825         (trunc_reference): Keep in sync with lib/trunc.c.
18826         * tests/test-truncf2.c: Include minus-zero.h.
18827         (MINUS_ZERO): New macro.
18828         (truncf_reference): Keep in sync with lib/trunc.c.
18829         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18830         * tests/test-trunc-ieee.c (main): Likewise.
18831         * tests/test-truncl-ieee.c (main): Likewise.
18832
18833         ceil: Implement result sign according to IEEE 754.
18834         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18835         (FUNC): Return -0.0 for -1 < x < 0.
18836         * tests/test-ceil2.c: Include minus-zero.h.
18837         (MINUS_ZERO): New macro.
18838         (ceil_reference): Keep in sync with lib/ceil.c.
18839         * tests/test-ceilf2.c: Include minus-zero.h.
18840         (MINUS_ZERO): New macro.
18841         (ceilf_reference): Keep in sync with lib/ceil.c.
18842         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18843         * tests/test-ceil-ieee.c (main): Likewise.
18844         * tests/test-ceill-ieee.c (main): Likewise.
18845
18846         floor: Implement result sign according to IEEE 754.
18847         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18848         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18849         * tests/test-floorf2.c (floorf_reference): Likewise.
18850         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18851         * tests/test-floor-ieee.c (main): Likewise.
18852         * tests/test-floorl-ieee.c (main): Likewise.
18853
18854 2010-12-22  Bruno Haible  <bruno@clisp.org>
18855
18856         getaddrinfo: Update doc.
18857         * doc/posix-functions/gai_strerror.texi: Return type is also different
18858         on AIX and HP-UX.
18859
18860 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18861
18862         getaddrinfo, inet_ntop: Update doc for Solaris.
18863         * doc/posix-functions/gai_strerror.texi: Return type is also an
18864         issue on Solaris 9 and earlier.
18865         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18866         on Solaris 10 and earlier.
18867
18868 2010-12-21  Bruno Haible  <bruno@clisp.org>
18869
18870         New module 'roundl-ieee'.
18871         * modules/roundl-ieee: New file.
18872         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18873         test whether roundl works according to ISO C 99 with IEC 60559.
18874         * m4/roundl-ieee.m4: New file.
18875         * modules/roundl-ieee-tests: New file.
18876         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18877         * tests/test-roundl.c (main): Remove signbit tests.
18878         * modules/roundl-tests (Depends-on): Remove signbit.
18879         * doc/posix-functions/roundl.texi: Mention the new module.
18880
18881 2010-12-21  Bruno Haible  <bruno@clisp.org>
18882
18883         New module 'truncl-ieee'.
18884         * modules/truncl-ieee: New file.
18885         * modules/truncl-ieee-tests: New file.
18886         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18887         * tests/test-truncl.c (main): Remove signbit tests.
18888         * modules/truncl-tests (Depends-on): Remove signbit.
18889         * doc/posix-functions/truncl.texi: Mention the new module.
18890
18891 2010-12-21  Bruno Haible  <bruno@clisp.org>
18892
18893         New module 'ceill-ieee'.
18894         * modules/ceill-ieee: New file.
18895         * modules/ceill-ieee-tests: New file.
18896         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18897         * tests/test-ceill.c (main): Remove signbit tests.
18898         * modules/ceill-tests (Depends-on): Remove signbit.
18899         * doc/posix-functions/ceill.texi: Mention the new module.
18900
18901 2010-12-21  Bruno Haible  <bruno@clisp.org>
18902
18903         New module 'floorl-ieee'.
18904         * modules/floorl-ieee: New file.
18905         * modules/floorl-ieee-tests: New file.
18906         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18907         * tests/test-floorl.c (main): Remove signbit tests.
18908         * modules/floorl-tests (Depends-on): Remove signbit.
18909         * doc/posix-functions/floorl.texi: Mention the new module.
18910
18911 2010-12-21  Bruno Haible  <bruno@clisp.org>
18912
18913         New module 'round-ieee'.
18914         * modules/round-ieee: New file.
18915         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18916         whether round works according to ISO C 99 with IEC 60559.
18917         * m4/round-ieee.m4: New file.
18918         * modules/round-ieee-tests: New file.
18919         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18920         * tests/test-round1.c (main): Remove signbit tests.
18921         * modules/round-tests (Depends-on): Remove 'signbit'.
18922         * doc/posix-functions/round.texi: Mention the new module.
18923
18924 2010-12-21  Bruno Haible  <bruno@clisp.org>
18925
18926         New module 'trunc-ieee'.
18927         * modules/trunc-ieee: New file.
18928         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18929         whether trunc works according to ISO C 99 with IEC 60559.
18930         * m4/trunc-ieee.m4: New file.
18931         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18933         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18934         * modules/trunc-ieee-tests: New file.
18935         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18936         * tests/test-trunc1.c (main): Remove signbit tests.
18937         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18938         * doc/posix-functions/trunc.texi: Mention the new module.
18939
18940 2010-12-21  Bruno Haible  <bruno@clisp.org>
18941
18942         New module 'ceil-ieee'.
18943         * modules/ceil-ieee: New file.
18944         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18945         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18946         ISO C 99 with IEC 60559.
18947         * m4/ceil-ieee.m4: New file.
18948         * modules/ceil (Files): Add lib/ceil.c.
18949         (Depends-on): Add 'float'.
18950         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18951         * lib/math.in.h (ceil): New declaration.
18952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18953         REPLACE_CEIL.
18954         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18955         * modules/ceil-ieee-tests: New file.
18956         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18957         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18958         * doc/posix-functions/ceil.texi: Mention the new module.
18959
18960 2010-12-21  Bruno Haible  <bruno@clisp.org>
18961
18962         New module 'floor-ieee'.
18963         * modules/floor-ieee: New file.
18964         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18965         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18966         ISO C 99 with IEC 60559.
18967         * m4/floor-ieee.m4: New file.
18968         * modules/floor (Files): Add lib/floor.c.
18969         (Depends-on): Add 'float'.
18970         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18971         * lib/math.in.h (floor): New declaration.
18972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18973         REPLACE_FLOOR.
18974         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18975         * modules/floor-ieee-tests: New file.
18976         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18977         * tests/test-math-c++.cc: Check the signature of 'floor'.
18978         * doc/posix-functions/floor.texi: Mention the new module.
18979
18980 2010-12-21  Bruno Haible  <bruno@clisp.org>
18981
18982         New module 'roundf-ieee'.
18983         * modules/roundf-ieee: New file.
18984         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18985         test whether roundf works according to ISO C 99 with IEC 60559.
18986         * m4/roundf-ieee.m4: New file.
18987         * modules/roundf-ieee-tests: New file.
18988         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18989         * tests/test-roundf1.c (main): Remove signbit tests.
18990         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18991         * doc/posix-functions/roundf.texi: Mention the new module.
18992
18993 2010-12-21  Bruno Haible  <bruno@clisp.org>
18994
18995         New module 'truncf-ieee'.
18996         * modules/truncf-ieee: New file.
18997         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18998         test whether truncf works according to ISO C 99 with IEC 60559.
18999         * m4/truncf-ieee.m4: New file.
19000         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19002         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19003         * modules/truncf-ieee-tests: New file.
19004         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19005         * tests/test-truncf1.c (main): Remove signbit tests.
19006         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19007         * doc/posix-functions/truncf.texi: Mention the new module.
19008
19009 2010-12-21  Bruno Haible  <bruno@clisp.org>
19010
19011         New module 'ceilf-ieee'.
19012         * modules/ceilf-ieee: New file.
19013         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19014         test whether ceilf works according to ISO C 99 with IEC 60559.
19015         * m4/ceilf-ieee.m4: New file.
19016         * modules/ceilf-ieee-tests: New file.
19017         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19018         * tests/test-ceilf1.c (main): Remove signbit tests.
19019         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19020         * doc/posix-functions/ceilf.texi: Mention the new module.
19021
19022 2010-12-21  Bruno Haible  <bruno@clisp.org>
19023
19024         New module 'floorf-ieee'.
19025         * modules/floorf-ieee: New file.
19026         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19027         test whether floorf works according to ISO C 99 with IEC 60559.
19028         * m4/floorf-ieee.m4: New file.
19029         * modules/floorf-ieee-tests: New file.
19030         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19031         * tests/test-floorf1.c (main): Remove signbit tests.
19032         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19033         * doc/posix-functions/floorf.texi: Mention the new module.
19034
19035 2010-12-21  Bruno Haible  <bruno@clisp.org>
19036
19037         Support for minus zero in autoconf macros.
19038         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19039         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19040         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19041         * tests/minus-zero.h: Update comments.
19042
19043 2010-12-21  Bruno Haible  <bruno@clisp.org>
19044
19045         Tests for module 'ceil'.
19046         * modules/ceil-tests: New file.
19047         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19048         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19049
19050 2010-12-21  Bruno Haible  <bruno@clisp.org>
19051
19052         Tests for module 'floor'.
19053         * modules/floor-tests: New file.
19054         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19055         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19056
19057 2010-12-21  Bruno Haible  <bruno@clisp.org>
19058
19059         math: Fix indentation.
19060         * lib/math.in.h (floorf): Fix indentation.
19061
19062 2010-12-21  Bruno Haible  <bruno@clisp.org>
19063
19064         Fix cross-compilation guesses on Solaris.
19065         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19066         not match "solaris2.10".
19067         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19068         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19069         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19070
19071 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19072
19073         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19074         This fixes a problem observed with the latest coreutils snapshot
19075         that caused a test to fail on Solaris 8.  src/csplit.c's call
19076         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19077         earlier, instead of returning the number of bytes that would have
19078         been generated; this causes csplit to incorrectly report memory
19079         exhaustion.
19080         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19081         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19082         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19083         comments to match.
19084         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19085         Fix typo in matching older versions of Solaris: "solaris2.10"
19086         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19087         only for guessing while cross-compiling.
19088         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19089
19090 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19091
19092         ftoastr: fix comment again
19093         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19094         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19095         Also, simplify example a bit by using flags = 0.
19096
19097 2010-12-20  Bruno Haible  <bruno@clisp.org>
19098
19099         round*, trunc*: Update documentation regarding glibc.
19100         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19101         * doc/posix-functions/round.texi: Likewise.
19102         * doc/posix-functions/roundl.texi: Likewise.
19103         * doc/posix-functions/truncf.texi: Likewise.
19104         * doc/posix-functions/trunc.texi: Likewise.
19105         * doc/posix-functions/truncl.texi: Likewise.
19106
19107 2010-12-20  Bruno Haible  <bruno@clisp.org>
19108
19109         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19110         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19111         * doc/posix-functions/round.texi: Likewise.
19112         * doc/posix-functions/roundl.texi: Likewise.
19113
19114 2010-12-20  Bruno Haible  <bruno@clisp.org>
19115
19116         ttyname_r: Add missing declaration on HP-UX 11.
19117         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19118         HAVE_TTYNAME_R.
19119         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19120         declared. Set HAVE_TTYNAME_R always.
19121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19122         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19123         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19124         HAVE_TTYNAME_R.
19125         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19126
19127 2010-12-20  Bruno Haible  <bruno@clisp.org>
19128
19129         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19130         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19131         * doc/posix-functions/getlogin_r.texi: Likewise.
19132         * tests/test-getlogin.c: Include <errno.h>.
19133         (main): Avoid test failure on HP-UX 11.11.
19134         * tests/test-getlogin_r.c (main): Likewise.
19135
19136 2010-12-20  Bruno Haible  <bruno@clisp.org>
19137
19138         getlogin_r: Add missing declaration on HP-UX 11.
19139         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19140         declared also when it exists as a function.
19141         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19142
19143 2010-12-20  Bruno Haible  <bruno@clisp.org>
19144
19145         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19146         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19147         through wcrtomb.
19148
19149 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19150
19151         ftoastr: fix comment
19152         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19154
19155 2010-12-19  Bruno Haible  <bruno@clisp.org>
19156
19157         isnan: Ensure it is a macro.
19158         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19159         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19160         Solaris.
19161
19162 2010-12-19  Bruno Haible  <bruno@clisp.org>
19163
19164         ldexpl test: Fix link error on OSF/1 5.1.
19165         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19166
19167 2010-12-19  Bruno Haible  <bruno@clisp.org>
19168
19169         wctype: Make it work in C++ mode on OSF/1 5.1.
19170         * lib/wctype.in.h (iswblank): Declare but not define here.
19171         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19172         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19173         * modules/wctype (Files): Add lib/iswblank.c.
19174
19175 2010-12-19  Bruno Haible  <bruno@clisp.org>
19176
19177         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19178         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19179         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19180
19181 2010-12-19  Bruno Haible  <bruno@clisp.org>
19182
19183         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19185         _POSIX_PII_SOCKET.
19186         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19187         * doc/posix-functions/recvfrom.texi: Likewise.
19188         * doc/posix-functions/send.texi: Likewise.
19189         * doc/posix-functions/sendto.texi: Likewise.
19190
19191 2010-12-19  Bruno Haible  <bruno@clisp.org>
19192
19193         tcgetsid: Add missing declaration on OSF/1 5.1.
19194         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19195         HAVE_TCGETSID.
19196         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19197         Don't set HAVE_TCGETSID.
19198         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19199         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19200         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19201         HAVE_TCGETSID.
19202         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19203
19204 2010-12-19  Bruno Haible  <bruno@clisp.org>
19205
19206         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19207         * lib/stdio.in.h: During the include_next statement, let recursive
19208         includes of this file include only the system header file.
19209
19210 2010-12-19  Bruno Haible  <bruno@clisp.org>
19211
19212         iconv_open: Fix regression from 2010-12-04.
19213         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19214         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19215
19216 2010-12-19  Bruno Haible  <bruno@clisp.org>
19217
19218         stdbool test: Avoid a gcc warning.
19219         * tests/test-stdbool.c (main): Fail if e1 is false.
19220         Reported by Jim Meyering.
19221
19222 2010-12-19  Jim Meyering  <meyering@redhat.com>
19223
19224         setenv: restore to working order
19225         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19226         mistakenly removed.
19227         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19228         HAVE_SETENV.
19229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19230         HAVE_SETENV.
19231
19232 2010-12-19  Bruno Haible  <bruno@clisp.org>
19233
19234         Document some different function declarations on OSF/1 5.1.
19235         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19236         * doc/posix-functions/inet_ntop.texi: Likewise.
19237         * doc/posix-functions/gethostname.texi: Likewise.
19238         * lib/unistd.in.h (gethostname): Update comment.
19239
19240 2010-12-19  Bruno Haible  <bruno@clisp.org>
19241
19242         doc: Mention vasprintf-posix module.
19243         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19244         the 'vasprintf-posix' module.
19245         * doc/glibc-functions/vasprintf.texi: Likewise.
19246
19247 2010-12-19  Bruno Haible  <bruno@clisp.org>
19248
19249         unsetenv: Add missing declaration on OSF/1 5.1.
19250         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19252         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19254         not HAVE_UNSETENV.
19255         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19256         HAVE_UNSETENV.
19257         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19258
19259 2010-12-19  Bruno Haible  <bruno@clisp.org>
19260
19261         setenv: Add missing declaration on OSF/1 5.1.
19262         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19263         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19264         declared. Don't set HAVE_SETENV.
19265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19266         not HAVE_SETENV.
19267         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19268         HAVE_SETENV.
19269         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19270
19271 2010-12-19  Bruno Haible  <bruno@clisp.org>
19272
19273         nl_langinfo tests: Avoid gcc warning.
19274         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19275
19276 2010-12-19  Bruno Haible  <bruno@clisp.org>
19277
19278         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19279         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19280         _GL_CXXALIAS_SYS.
19281
19282 2010-12-19  Bruno Haible  <bruno@clisp.org>
19283
19284         stdbool: Relax test.
19285         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19286         address to 'bool' work in static initializer, for compilers other than
19287         GCC.
19288
19289 2010-12-19  Bruno Haible  <bruno@clisp.org>
19290
19291         ftello: Add missing declaration on OSF/1 5.1.
19292         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19293         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19295         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19296         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19297
19298 2010-12-19  Bruno Haible  <bruno@clisp.org>
19299
19300         fseeko: Add missing declaration on OSF/1 5.1.
19301         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19304         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19305         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19306
19307 2010-12-19  Bruno Haible  <bruno@clisp.org>
19308
19309         fchdir: Add missing declaration on OSF/1 5.1.
19310         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19313         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19314         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19315
19316 2010-12-19  Bruno Haible  <bruno@clisp.org>
19317
19318         relocatable-prog-wrapper: Separate from relocatable-prog.
19319         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19320         uninstall-relocwrapper rule here.
19321         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19322         Reported by Ian Beckwith <ianb@erislabs.net>.
19323
19324 2010-12-19  Bruno Haible  <bruno@clisp.org>
19325
19326         unistr/u8-mbsnlen: Add missing dependency.
19327         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19328         Reported by Ian Beckwith <ianb@erislabs.net>.
19329
19330 2010-12-19  Bruno Haible  <bruno@clisp.org>
19331
19332         iconv: Make it possible again to use this module without 'iconv-h'.
19333         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19334         if it is not defined.
19335         Reported by Ian Beckwith <ianb@erislabs.net>.
19336
19337 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         acl: port to Solaris 8 when copying from tmpfs to ufs
19340         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19341         error number.  Problem observed on Solaris 8 with latest
19342         coreutils, with "mv A B", where A is on a tmpfs file system and B
19343         is on a ufs file system.  This caused coreutils' mv/part-symlink
19344         test to fail.
19345
19346         tests: set fail=0 at start
19347         * tests/init.sh (setup_): Move fail=0 initialization here ...
19348         (mktempd_): ... from here, so that tests can rely on fail being
19349         set to 0 initially.  This fixes a problem in coreutils; see:
19350         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19351
19352 2010-12-18  Bruno Haible  <bruno@clisp.org>
19353
19354         memmem-simple: Stylistic changes.
19355         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19356         Fix preprocessor directive indentation.
19357
19358 2010-12-15  PĂ¡draig Brady <P@draigBrady.com>
19359
19360         memmem, memmem-simple: reorganize and expand empty needle check
19361         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19362         functional checks to memmem-simple so that one has a fully functional
19363         memmem by using just this module.
19364         Restrict the performance only check to the memmem module.
19365         Also expand the empty needle check to ensure the correct
19366         pointer is returned, not just a non NULL pointer.
19367         * doc/glibc-functions/memmem.texi: Rearrange the portability
19368         documentation to correlate with the rearranged checks.
19369         Clarify exactly how the memmem and memmem-simple modules
19370         relate to each other.
19371
19372 2010-12-15  PĂ¡draig Brady <P@draigBrady.com>
19373             Bruno Haible  <bruno@clisp.org>
19374
19375         Improve cross-compilation guesses for uClibc.
19376         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19377         that uClibc does not have the glibc bug.
19378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19379         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19380
19381 2010-12-14  Eric Blake  <eblake@redhat.com>
19382
19383         configmake: provide fallbacks for oldest supported autotools
19384         * m4/configmake.m4: New file.
19385         * modules/configmake (Files): Ship it.
19386         (configure.ac): Use it to guarantee fallbacks.
19387
19388 2010-12-13  PĂ¡draig Brady <P@draigBrady.com>
19389
19390         read-file: Improve handling of large files
19391         * lib/read-file.c (fread_file): Minimize realloc()s
19392         for regular files, and better manage sizes around SIZE_MAX.
19393
19394 2010-12-13  Eric Blake  <eblake@redhat.com>
19395
19396         cloexec, fcntl: relax license
19397         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19398         consent from all contributors.
19399         * modules/fcntl (License): Likewise.
19400
19401 2010-12-10  Bruno Haible  <bruno@clisp.org>
19402
19403         Tests for module 'pipe-posix'.
19404         * modules/pipe-posix-tests: New file.
19405         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19406
19407 2010-12-10  Bruno Haible  <bruno@clisp.org>
19408
19409         pipe-posix: Make it work in C++ mode.
19410         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19411         (pipe): Use common idiom, not a macro definition.
19412         * lib/pipe.c: New file.
19413         * m4/pipe.m4: New file.
19414         * modules/pipe-posix (Description): Enhance.
19415         (Files): Add lib/pipe.c, m4/pipe.m4.
19416         (configure.ac): Invoke gl_FUNC_PIPE.
19417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19418         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19419         * tests/test-unistd-c++.cc: Check the signature of pipe.
19420
19421 2010-12-10  Bruno Haible  <bruno@clisp.org>
19422
19423         Rename module 'pipe' to 'spawn-pipe'.
19424         * modules/spawn-pipe: New file, renamed from modules/pipe.
19425         (Files, configure.ac, Makefile.am): Update.
19426         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19427         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19428         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19429         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19430         "spawn-pipe.h" instead of "pipe.h".
19431         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19432         to gl_SPAWN_PIPE.
19433         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19434         (Files, Makefile.am): Update.
19435         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19436         Update.
19437         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19438         Include "spawn-pipe.h" instead of "pipe.h".
19439         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19440         * lib/javacomp.c: Likewise.
19441         * lib/javaversion.c: Likewise.
19442         * lib/pipe-filter-gi.c: Likewise.
19443         * lib/pipe-filter-ii.c: Likewise.
19444         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19445         * modules/javacomp (Depends-on): Likewise.
19446         * modules/javaversion (Depends-on): Likewise.
19447         * modules/pipe-filter-gi (Depends-on): Likewise.
19448         * modules/pipe-filter-ii (Depends-on): Likewise.
19449         * MODULES.html.sh (Executing programs): Update.
19450         * NEWS: Mention the change.
19451
19452 2010-12-10  Eric Blake  <eblake@redhat.com>
19453
19454         pipe-posix: new module
19455         * modules/pipe-posix: New file.
19456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19457         (gl_UNISTD_H): Check for declaration.
19458         * modules/unistd (Makefile.am): Substitute it.
19459         * lib/unistd.in.h (pipe): Provide it for mingw.
19460         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19461         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19462
19463 2010-12-07  Bruno Haible  <bruno@clisp.org>
19464
19465         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19466         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19467         u8_strcmp_gnu.
19468         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19469
19470 2010-12-06  Bruno Haible  <bruno@clisp.org>
19471
19472         Update internal documentation.
19473         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19474
19475 2010-12-04  Bruno Haible  <bruno@clisp.org>
19476
19477         Put more information about failed tests into the test return codes.
19478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19479         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19480         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19481         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19483         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19484         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19485         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19486         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19489         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19490         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19491         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19492         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19493         returns a bit mask.
19494         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19495         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19496         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19497         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19498         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19499         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19500         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19502         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19503         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19504         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19505         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19506         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19507         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19508         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19509         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19510         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19511         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19512         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19513         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19514         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19515         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19517         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19518         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19519         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19520         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19521         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19522         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19523         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19524         gl_PRINTF_PRECISION): Likewise.
19525         * m4/regex.m4 (gl_REGEX): Likewise.
19526         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19527         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19528         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19529         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19531         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19533         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19534         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19535         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19536         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19537         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19538         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19539         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19540         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19541         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19542         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19543         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19544         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19545         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19546         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19547         enumerated value.
19548         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19549
19550 2010-12-04  Bruno Haible  <bruno@clisp.org>
19551
19552         Update for Solaris 11 2010-11.
19553         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19554         Express, released in November 2010.
19555
19556 2010-12-04  Bruno Haible  <bruno@clisp.org>
19557
19558         nproc: Relax license.
19559         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19560         and Paul Eggert.
19561         Requested by Ludovic Courtès <ludo@gnu.org>.
19562
19563 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19564
19565         utimecmp: fine-grained src to nearby coarse-grained dest
19566
19567         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19568         and the source is on a file system with higher-resolution time
19569         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19570         not work, and the time stamps are close together, the algorithm to
19571         determine the exact resolution from the read-back mtime was buggy:
19572         it had a "!=" where it should have had an "==".  This bug has been
19573         in the code ever since it was introduced to gnulib.
19574         Problem reported by Dan Jacobson in
19575         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19576
19577 2010-11-30  Bruno Haible  <bruno@clisp.org>
19578
19579         strerror_r-posix: Fix autoconf test.
19580         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19581
19582 2010-11-28  Bruno Haible  <bruno@clisp.org>
19583             Paul Eggert  <eggert@cs.ucla.edu>
19584
19585         Tests for module 'getdomainname'.
19586         * modules/getdomainname-tests: New file.
19587         * tests/test-getdomainname.c: New file, based on
19588         tests/test-gethostname.c.
19589
19590 2010-11-28  Bruno Haible  <bruno@clisp.org>
19591             Paul Eggert  <eggert@cs.ucla.edu>
19592
19593         getdomainname: Use the system function when possible.
19594         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19595         (getdomainname): Replace if needed. Provide the declaration if it is
19596         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19597         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19598         (getdomainname): When the system has getdomainname, call the system
19599         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19600         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19601         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19602         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19603         the function if its second argument is of type 'int' or if it is found
19604         in libnsl.
19605         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19606         <sys/systeminfo.h> and sysinfo().
19607         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19609         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19610         HAVE_GETDOMAINNAME.
19611         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19612         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19613         * doc/glibc-functions/getdomainname.texi: Document the problems with
19614         the getdomainname declaration.
19615
19616 2010-11-28  Bruno Haible  <bruno@clisp.org>
19617
19618         sys_socket: Ensure ss_family field on AIX.
19619         * lib/sys_socket.in.h (ss_family): New macro definition.
19620         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19621         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19622         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19623         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19624         * modules/sys_socket (Makefile.am): Substitute
19625         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19626         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19627
19628 2010-11-27  Bruno Haible  <bruno@clisp.org>
19629
19630         readline: Improve configure output.
19631         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19632         "checking for readline..." result understandable.
19633
19634 2010-11-27  Bruno Haible  <bruno@clisp.org>
19635
19636         *printf-posix: Detect a bug on Solaris 10/x86.
19637         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19638         for floating-point output.
19639         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19640         directive.
19641         * tests/test-snprintf-posix.h (test_function): Likewise.
19642         * tests/test-sprintf-posix.h (test_function): Likewise.
19643         * tests/test-vasprintf-posix.c (test_function): Likewise.
19644         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19645         * doc/posix-functions/printf.texi: Likewise.
19646         * doc/posix-functions/snprintf.texi: Likewise.
19647         * doc/posix-functions/sprintf.texi: Likewise.
19648         * doc/posix-functions/vfprintf.texi: Likewise.
19649         * doc/posix-functions/vprintf.texi: Likewise.
19650         * doc/posix-functions/vsnprintf.texi: Likewise.
19651         * doc/posix-functions/vsprintf.texi: Likewise.
19652         * doc/glibc-functions/obstack_printf.texi: Likewise.
19653         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19654
19655 2010-11-27  Bruno Haible  <bruno@clisp.org>
19656
19657         Fix link error when module libunistring-optional is in use.
19658         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19659         * modules/striconveha-tests (Makefile.am): Likewise.
19660
19661 2010-11-27  Bruno Haible  <bruno@clisp.org>
19662
19663         regex: Mention link dependencies.
19664         * modules/regex (Link): New section.
19665         * modules/rpmatch (Link): Likewise.
19666         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19667
19668 2010-11-27  Bruno Haible  <bruno@clisp.org>
19669
19670         ftoastr: Fix compilation error on Solaris.
19671         * lib/ftoastr.c: Include <config.h>.
19672
19673 2010-11-27  Bruno Haible  <bruno@clisp.org>
19674
19675         getloadavg: Update documentation.
19676         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19677
19678 2010-11-27  Bruno Haible  <bruno@clisp.org>
19679
19680         sys_socket: Fix test whether the functions are declared.
19681         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19682         not <sys/select.h>.
19683
19684 2010-11-27  Bruno Haible  <bruno@clisp.org>
19685
19686         getpass: Make sure to get system declaration on some platforms.
19687         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19688         gl_USE_SYSTEM_EXTENSIONS.
19689         * modules/getpass (Depends-on): Add extensions.
19690
19691 2010-11-26  Bruno Haible  <bruno@clisp.org>
19692
19693         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19694         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19695         'iconv' module is present.
19696         (ICONV_CONST): New macro.
19697         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19698         ICONV_CONST.
19699         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19700         set ICONV_CONST.
19701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19702         here.
19703         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19704         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19705         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19706         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19707         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19708         present.
19709
19710 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19711
19712         ftoastr: comment fix
19713         * lib/ftoastr.c: "little" -> "little or no" in comment
19714
19715 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19716
19717         stdint: port to GCC 4.3 + OSX + Octave
19718         On this platform, stdint.h is buggy and defines int64_t to long
19719         long int.  The replacement defined it to long int, causing
19720         problems with C++ style name mangling.  Instead, trust the system
19721         definition if INT64_MAX is defined, and likewise for the unsigned
19722         variant.   Problem reported by Jarno Rajahalme in
19723         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19724         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19725         and don't mess with int64_t and INT64_MAX in this case.
19726         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19727
19728 2010-11-24  Bruno Haible  <bruno@clisp.org>
19729
19730         doc: Corrections regarding MacOS X 10.4 and 10.5.
19731         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19732         MacOS X.
19733         Reported by Simon Josefsson.
19734
19735 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19736
19737         Uninstall ".bin" files installed by relocwrapper.
19738         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19739         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19740         unless it is already there.
19741
19742 2010-11-21  Bruno Haible  <bruno@clisp.org>
19743
19744         Update for NetBSD 5.0.
19745         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19746         NetBSD; the test fails on NetBSD 5.0.
19747         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19748         about NetBSD.
19749
19750 2010-11-21  Bruno Haible  <bruno@clisp.org>
19751
19752         Update for HP-UX 11.23 and HP-UX 11.31.
19753         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19754         HP-UX.
19755
19756 2010-11-21  Bruno Haible  <bruno@clisp.org>
19757
19758         Update for MacOS X 10.5.
19759         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19760         MacOS X; the test fails on MacOS X 10.5.8.
19761         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19762         about MacOS X.
19763
19764 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19765
19766         bootstrap: add bootstrap_sync option.
19767         See discussion at
19768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19769         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19770         * build-aux/bootstrap: Accept --bootstrap-sync to update
19771         bootstrap if it is not identical to the local gnulib's
19772         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19773         enable this by default.  Accept --no-bootstrap-sync to disable
19774         it.
19775
19776 2010-11-20  Bruno Haible  <bruno@clisp.org>
19777
19778         Ensure that <features.h> is included before __GLIBC__ is tested.
19779         * lib/printf-parse.h: Include <features.h>.
19780         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19781         Reported by Mike Frysinger <vapier@gentoo.org>.
19782
19783         Ensure that <features.h> is included before __GLIBC__ is tested.
19784         * lib/wchar.in.h: Include <features.h>.
19785         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19786         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19787         Reported by Mike Frysinger <vapier@gentoo.org>.
19788
19789         Ensure that <features.h> is included before __GLIBC__ is tested.
19790         * lib/arpa_inet.in.h: Include <features.h>.
19791         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19792         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19793         Reported by Mike Frysinger <vapier@gentoo.org>.
19794
19795         Ensure that <features.h> is included before __GLIBC__ is tested.
19796         * build-aux/link-warning.h: Include <features.h>.
19797         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19798         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19799         Reported by Mike Frysinger <vapier@gentoo.org>.
19800
19801         Ensure that <features.h> is included before __GLIBC__ is tested.
19802         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19803         Reported by Mike Frysinger <vapier@gentoo.org>.
19804
19805 2010-11-20  Bruno Haible  <bruno@clisp.org>
19806
19807         memmem: Fix autoconf test.
19808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19809
19810 2010-11-20  Bruno Haible  <bruno@clisp.org>
19811
19812         Port to uClibc.
19813         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19814         * lib/fcntl.in.h: Likewise.
19815         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19816         * lib/mbrtowc.c (mbrtowc): Likewise.
19817         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19818         * lib/strerror_r.c: Likewise.
19819         * lib/unistr/u8-strnlen.c: Likewise.
19820         * lib/vasnprintf.c (decimal_point_char): Likewise.
19821         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19822         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19823         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19824         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19825         * tests/test-sigaction.c (handler, main): Likewise.
19826         * lib/freading.h: Treat uClibc like a non-glibc platform.
19827         * lib/freading.c: Likewise.
19828         * lib/gettext.h: Likewise.
19829         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19830         Likewise.
19831         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19832         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19833         * lib/propername.c (proper_name_utf8): Likewise.
19834         * lib/spawn.in.h: Likewise.
19835         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19836         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19837         mem_cd_iconveh_internal): Likewise.
19838         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19839         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19840         strstr, strcasestr): Likewise.
19841         * lib/unicodeio.c (unicode_to_mb): Likewise.
19842         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19843         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19844         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19845         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19846         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19847         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19848         * lib/unistr/u8-stpncpy.c: Likewise.
19849         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19850         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19851         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19852         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19853         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19854         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19856         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19858         Likewise.
19859         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19860         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19861         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19862         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19863         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19864         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19865         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19866         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19867         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19868         * tests/test-striconveha.c (main): Likewise.
19869         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19870         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19871         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19872         * doc/posix-functions/getline.texi: Likewise.
19873         Reported by Mike Frysinger <vapier@gentoo.org>.
19874
19875 2010-11-20  Bruno Haible  <bruno@clisp.org>
19876
19877         nproc: Fix condition.
19878         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19879         HAVE_PTHREAD_AFFINITY_NP.
19880
19881 2010-11-20  Bruno Haible  <bruno@clisp.org>
19882
19883         Fix a comment.
19884         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19885
19886 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19887
19888         ftoastr: don't assume snprintf
19889         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19890         Implement a subset of snprintf here, by using sprintf safely.
19891         * modules/ftoastr (Depends-on): Remove snprintf.
19892
19893 2010-11-19  Jim Meyering  <meyering@redhat.com>
19894
19895         test-rename.h: fix compilation failure
19896         * tests/test-rename.h (test_rename): Add omitted "}".
19897
19898 2010-11-17  Jim Meyering  <meyering@redhat.com>
19899
19900         maint.mk: add a URL discussing the no-@acronym policy
19901         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19902
19903 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19904
19905         ftoastr: depend on snprintf, improve comments
19906         * lib/ftoastr.c: Also mention Loitsch's draft.
19907         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19908         needed in the current implementation, but it might simplify
19909         speeding up the code later.
19910         * modules/ftoastr: Depend on snprintf; this improves portability.
19911         Suggested by Bruno Haible in the same email.
19912
19913         ftoastr: port to hosts lacking strtof and strtold
19914         Problem reported by Bruno Haible in
19915         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19916         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19917         environment and strtold (and presumably strtof) are not available.
19918         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19919         (configure.ac): Require gl_C99_STRTOLD.
19920
19921 2010-11-18  Bruno Haible  <bruno@clisp.org>
19922
19923         c-strtold: Avoid link error on AIX 7.
19924         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19925         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19926         (gl_C_STRTOLD): Test whether strtold_l exists.
19927         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19928
19929 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19930
19931         intprops: new macro INT_BITS_STRLEN_BOUND
19932         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19933         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19934         not exposed.  Also, it uses a slightly tighter bound than before;
19935         though this makes no practical difference, we might as well be as
19936         tight as we easily can.
19937
19938         ftoastr: new module, for lossless conversion of floats to short strings
19939         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19940         * modules/ftoastr: New files.
19941
19942 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         bootstrap: port to Solaris sed
19945         * build-aux/bootstrap (get_version): Port to Solaris sed.
19946         See Ralf Wildenhues's note in
19947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19948
19949 2010-11-14  Jim Meyering  <meyering@redhat.com>
19950
19951         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19952         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19953         and move definition closer to sole use.
19954
19955 2010-11-13  Jim Meyering  <meyering@redhat.com>
19956
19957         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19958         Now we require at least autoconf-2.59, which means the work-around
19959         is no longer needed.
19960         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19961         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19963         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19964         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19965
19966 2010-11-13  Bruno Haible  <bruno@clisp.org>
19967
19968         rename, renameat: Avoid test failures at NFS mounted locations.
19969         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19970         functions.
19971         (test_rename): Use assert_nonexistent.
19972         * tests/test-rename.c: Include <dirent.h>.
19973         * tests/test-renameat.c: Likewise.
19974         Reported by Gary V. Vaughan <gary@gnu.org>.
19975
19976         rename, renameat: Document Linux bug with NFS
19977         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19978         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19979         * doc/posix-functions/renameat.texi: Likewise.
19980         Suggested by Eric Blake.
19981
19982 2010-11-13  Bruno Haible  <bruno@clisp.org>
19983
19984         rename test: Add comments.
19985         * tests/test-rename.h (test_rename): Add structure and comments.
19986
19987 2010-11-13  Eric Blake  <eblake@redhat.com>
19988
19989         maintainer-makefile: cover a few more files
19990         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19991         scripts generated within C files, for libvirt.
19992
19993 2010-11-13  Bruno Haible  <bruno@clisp.org>
19994
19995         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19996         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19997         character, return the number of bytes that belong together, not always
19998         1.
19999         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20000         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20001         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20002         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20003         number of bytes of an invalid character.
20004         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20005         (main): Invoke it.
20006         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20007         results.
20008         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20009         malformed byte sequences.
20010         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20011         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20012         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20013         Reported by Ben Pfaff and Paolo Bonzini.
20014
20015 2010-11-13  Bruno Haible  <bruno@clisp.org>
20016
20017         openat: Work around glibc bug with fchownat() and empty file names.
20018         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20019         (gl_FUNC_FCHOWNAT): Invoke it.
20020         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20021         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20022         Reported by Gary V. Vaughan <gary@gnu.org>.
20023
20024 2010-11-13  Bruno Haible  <bruno@clisp.org>
20025
20026         openat: Ensure autoconf macro ordering.
20027         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20028         gl_USE_SYSTEM_EXTENSIONS.
20029         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20030
20031 2010-11-13  Bruno Haible  <bruno@clisp.org>
20032
20033         Update comments.
20034         * lib/unistr/u8-check.c: Update file name in comments.
20035         * lib/unistr/u8-mblen.c: Likewise.
20036         * lib/unistr/u8-prev.c: Likewise.
20037         * lib/unistr/u8-strmblen.c: Likewise.
20038         * lib/unistr/u8-strmbtouc.c: Likewise.
20039
20040 2010-11-13  Jim Meyering  <meyering@redhat.com>
20041
20042         tests: avoid test failure on Solaris 10 due to lack of PATH export
20043         * tests/test-update-copyright.sh: Don't forget to export PATH.
20044
20045         init.sh: ensure that IFS is defined, just in case...
20046         * tests/init.sh (setup_): Ensure that IFS is defined,
20047         so that saving and restoring it works as expected.  This
20048         appears to be useful at least for an old version of dash
20049         from a long time ago (RH 6).  See here for details:
20050         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20051
20052         maint.mk: tighten "test a == b" check
20053         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20054         test to files that contain something like #!/bin/sh.
20055         Without this, coreutils would get two false positives in
20056         the comments of C source files.
20057
20058 2010-11-12  Eric Blake  <eblake@redhat.com>
20059
20060         bootstrap: fix typo in previous attempt
20061         * build-aux/bootstrap (buildreq): Correct the grouping.
20062         Reported by Paul Eggert.
20063
20064         maintainer-makefile: prohibit test x == x
20065         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20066         Based on a report by Matthias Bolte.
20067
20068         bootstrap: allow FreeBSD gzip
20069         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20070         which has no '.' and goes to stderr.
20071         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20072         Reported by Matthias Bolte.
20073
20074         maintainer-makefile: check for i18n setup
20075         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20076         will likely work.
20077
20078 2010-11-12  Bruno Haible  <bruno@clisp.org>
20079
20080         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20081         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20082         * lib/nanosleep.c (nanosleep): Likewise.
20083
20084 2010-11-11  Bruno Haible  <bruno@clisp.org>
20085
20086         fcntl-h: Fix for use of C++ on glibc systems.
20087         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20088         also on glibc systems in C++ mode.
20089         Reported by Gary V. Vaughan <gary@gnu.org>.
20090
20091 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20092
20093         mknod: avoid false failure with dash
20094         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20095
20096 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20097
20098         unlink: Fix "is it should" typo in diagnostic.
20099         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20100         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20101
20102 2010-11-11  Bruno Haible  <bruno@clisp.org>
20103
20104         Tests for module 'strerror_r-posix'.
20105         * modules/strerror_r-posix-tests: New file.
20106         * tests/test-strerror_r.c: New file.
20107         * tests/test-string-c++.cc: Check the signature of strerror_r.
20108
20109         New module 'strerror_r-posix'.
20110         * lib/string.in.h (strerror_r): New declaration.
20111         * lib/strerror_r.c: New file.
20112         * m4/strerror_r.m4: New file.
20113         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20114         of strerror_r.
20115         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20116         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20117         * modules/strerror_r-posix: New file.
20118         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20119         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20120         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20121         portability problems.
20122
20123 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20124
20125         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20126         line is also considered for output. Quoted function name in shell
20127         command, so temporary files for functions like MyClass::operator()
20128         are removed correctly without errors.
20129
20130 2010-11-09  Bruno Haible  <bruno@clisp.org>
20131
20132         * doc/posix-functions/strerror.texi: List more failing platforms.
20133
20134         * doc/posix-functions/strerror.texi: Add a comment.
20135
20136 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20137
20138         fdopendir: fix bug on MacOS X when low on file descriptors
20139
20140         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20141         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20142         All callers changed.
20143         (fdopendir): Invoke save_cwd at the top level, not after using
20144         multiple dup() calls to use up file descriptors.  Then retry
20145         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20146         less than the maximum number of open file descriptors, because
20147         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20148         on Mac OS X 10.6.4 for tar 1.24
20149         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20150         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20151         and for tar 1.25
20152         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20153
20154 2010-11-07  Bruno Haible  <bruno@clisp.org>
20155
20156         vasnprintf: Support I flag on glibc systems.
20157         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20158         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20159         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20160         snprintf function.
20161         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20162         glibc systems.
20163         * tests/test-vasnprintf-posix3.c: New file.
20164         * modules/vasnprintf-posix-tests (Files): Add it.
20165         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20166
20167 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20168
20169         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20170         * MODULES.html.sh: For compiler warnings, use name
20171         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20172
20173 2010-11-05  Eric Blake  <eblake@redhat.com>
20174
20175         ceil, floor: avoid spurious failure with icc
20176         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20177         [denormals-as-zero] when optimizing without -mieee-fp option.
20178         * tests/test-floorf2.c (floorf_reference): Likewise.
20179         * tests/test-ceilf1.c (dummy): New function.
20180         (main): Use it to outsmart icc's optimization.
20181         * tests/test-floorf1.c (dummy, main): Likewise.
20182
20183         tests: require working signbit
20184         * modules/ceilf-tests (Depends-on): Add signbit.
20185         * modules/ceill-tests (Depends-on): Likewise.
20186         * modules/floorf-tests (Depends-on): Likewise.
20187         * modules/floorl-tests (Depends-on): Likewise.
20188         * modules/round-tests (Depends-on): Likewise.
20189         * modules/roundf-tests (Depends-on): Likewise.
20190         * modules/roundl-tests (Depends-on): Likewise.
20191         * modules/trunc-tests (Depends-on): Likewise.
20192         * modules/truncf-tests (Depends-on): Likewise.
20193         * modules/truncl-tests (Depends-on): Likewise.
20194
20195         strtod: work around icc bug
20196         * lib/strtod.c (minus_zero): Define to working value.
20197         (strtod): Use it to avoid icc bug.
20198
20199         copysign: enhance tests
20200         * modules/copysign-tests (Files): Add minus-zero.h.
20201         * tests/test-copysign.c (main): Also test zeros.
20202
20203 2010-11-04  Eric Blake  <eblake@redhat.com>
20204
20205         ceil, floor, round, trunc: enhance tests of -0
20206         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20207         * tests/test-ceill.c (main): Likewise.
20208         * tests/test-floorf1.c (main): Likewise.
20209         * tests/test-floorl.c (main): Likewise.
20210         * tests/test-round1.c (main): Likewise.
20211         * tests/test-roundf1.c (main): Likewise.
20212         * tests/test-roundl.c (main): Likewise.
20213         * tests/test-trunc1.c (main): Likewise.
20214         * tests/test-truncf1.c (main): Likewise.
20215         * tests/test-truncl.c (main): Likewise.
20216
20217 2010-11-04  Eric Blake  <eblake@redhat.com>
20218
20219         frexp, tests: work around ICC bug with -zero
20220         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20221         works with more compilers.
20222         * tests/minus-zero.h: New file.
20223         * modules/ceilf-tests (Files): Include it.
20224         * modules/ceill-tests (Files): Likewise.
20225         * modules/floorf-tests (Files): Likewise.
20226         * modules/floorl-tests (Files): Likewise.
20227         * modules/frexp-nolibm-tests (Files): Likewise.
20228         * modules/frexp-tests (Files): Likewise.
20229         * modules/frexpl-nolibm-tests (Files): Likewise.
20230         * modules/frexpl-tests (Files): Likewise.
20231         * modules/isnan-tests (Files): Likewise.
20232         * modules/isnand-nolibm-tests (Files): Likewise.
20233         * modules/isnand-tests (Files): Likewise.
20234         * modules/isnanf-nolibm-tests (Files): Likewise.
20235         * modules/isnanf-tests (Files): Likewise.
20236         * modules/isnanl-nolibm-tests (Files): Likewise.
20237         * modules/isnanl-tests (Files): Likewise.
20238         * modules/round-tests (Files): Likewise.
20239         * modules/roundf-tests (Files): Likewise.
20240         * modules/roundl-tests (Files): Likewise.
20241         * modules/ldexpl-tests (Files): Likewise.
20242         * modules/signbit-tests (Files): Likewise.
20243         * modules/snprintf-posix-tests (Files): Likewise.
20244         * modules/sprintf-posix-tests (Files): Likewise.
20245         * modules/strtod-tests (Files): Likewise.
20246         * modules/trunc-tests (Files): Likewise.
20247         * modules/truncf-tests (Files): Likewise.
20248         * modules/truncl-tests (Files): Likewise.
20249         * modules/vsnprintf-posix-tests (Files): Likewise.
20250         * modules/vsprintf-posix-tests (Files): Likewise.
20251         * modules/vasnprintf-posix-tests (Files): Likewise.
20252         * modules/vasprintf-posix-tests (Files): Likewise.
20253         * tests/test-ceilf1.c (main): Use it.
20254         * tests/test-ceill.c (main): Likewise.
20255         * tests/test-floorf1.c (main): Likewise.
20256         * tests/test-floorl.c (main): Likewise.
20257         * tests/test-frexp.c (main): Likewise.
20258         * tests/test-frexpl.c (main): Likewise.
20259         * tests/test-isnan.c (main): Likewise.
20260         * tests/test-isnand.h (main): Likewise.
20261         * tests/test-isnanf.h (main): Likewise.
20262         * tests/test-isnanl.h (main): Likewise.
20263         * tests/test-ldexpl.c (main): Likewise.
20264         * tests/test-round.c (main): Likewise.
20265         * tests/test-roundf.c (main): Likewise.
20266         * tests/test-roundl.c (main): Likewise.
20267         * tests/test-signbit.c (test_signbitf, test_signbitd)
20268         (test_signbitl): Likewise.
20269         * tests/test-snprintf-posix.h (test_function): Likewise.
20270         * tests/test-sprintf-posix.h (test_function): Likewise.
20271         * tests/test-strtod.c (main): Likewise.
20272         * tests/test-trunc1.c (main): Likewise.
20273         * tests/test-truncf1.c (main): Likewise.
20274         * tests/test-truncl.c (main): Likewise.
20275
20276         isnanl: work around icc bug
20277         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20278
20279 2010-11-03  Eric Blake  <eblake@redhat.com>
20280
20281         tests: fix compiler warnings
20282         * tests/test-getopt.h (test_getopt): Fix condition.
20283         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20284         * tests/test-pipe2.c (main): Likewise.
20285         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20286
20287         utimens: fix broken m4 test
20288         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20289
20290 2010-10-28  Bruno Haible  <bruno@clisp.org>
20291
20292         posix_spawn*, getdtablesize: Relax license.
20293         * modules/posix_spawn (License): Change to LGPLv2+.
20294         * modules/posix_spawnp (License): Likewise.
20295         * modules/posix_spawn-internal (License): Likewise.
20296         * modules/posix_spawnattr_init (License): Likewise.
20297         * modules/posix_spawnattr_getflags (License): Likewise.
20298         * modules/posix_spawnattr_setflags (License): Likewise.
20299         * modules/posix_spawnattr_getpgroup (License): Likewise.
20300         * modules/posix_spawnattr_setpgroup (License): Likewise.
20301         * modules/posix_spawnattr_getschedparam (License): Likewise.
20302         * modules/posix_spawnattr_setschedparam (License): Likewise.
20303         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20304         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20305         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20306         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20307         * modules/posix_spawnattr_getsigmask (License): Likewise.
20308         * modules/posix_spawnattr_setsigmask (License): Likewise.
20309         * modules/posix_spawnattr_destroy (License): Likewise.
20310         * modules/posix_spawn_file_actions_init (License): Likewise.
20311         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20312         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20313         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20314         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20315         * modules/getdtablesize (License): Likewise.
20316         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20317
20318 2010-10-26  Bruno Haible  <bruno@clisp.org>
20319
20320         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20321         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20322         Cygwin and mingw.
20323         Suggested by Eric Blake.
20324
20325 2010-10-26  Bruno Haible  <bruno@clisp.org>
20326
20327         stdio: Work around compilation error due to renameat() on Solaris 10.
20328         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20329         * lib/renameat.c: Don't include <unistd.h> here.
20330         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20331         Reported by Paul Eggert and Eric Blake.
20332
20333 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20334
20335         renameat: port to Solaris 10, which declares renameat in unistd.h
20336
20337         * lib/renameat.c: Include unistd.h before stdio.h, because
20338         Solaris 10 declares renameat in unistd.h.  Problem encountered
20339         when building GNU tar 1.24 on Solaris 10.
20340
20341 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20342
20343         fdopendir: fix C89 compilation
20344         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20345         compilers.
20346
20347 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20348
20349         inttostr: simplify by removing unnecessary redundancy
20350         * lib/anytostr.c: Don't include verify.h.
20351         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20352         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20353         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20354         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20355         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20356         Likewise.
20357         * modules/inttostr (Depends-on): Remove 'verify'.
20358
20359 2010-10-23  Bruno Haible  <bruno@clisp.org>
20360
20361         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20362         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20363         Reported by Eric Blake.
20364
20365 2010-10-23  Bruno Haible  <bruno@clisp.org>
20366
20367         Tests: Fix LOCALE_JA on MirBSD 10.
20368         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20369         to an UTF-8 locale.
20370         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20372         Reported by Eric Blake.
20373
20374 2010-10-21  Bruno Haible  <bruno@clisp.org>
20375
20376         nl_langinfo test: Avoid test failure on NetBSD 5.
20377         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20378         Reported by Eric Blake.
20379
20380 2010-10-21  Eric Blake  <eblake@redhat.com>
20381
20382         c-stack: work around libsigsegv 2.8 bug
20383         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20384         overflow on at least PowerPC64.
20385
20386 2010-10-17  Bruno Haible  <bruno@clisp.org>
20387
20388         userspec: Drop redundant file.
20389         * modules/userspec (Files): Remove lib/inttostr.h.
20390
20391 2010-10-17  Bruno Haible  <bruno@clisp.org>
20392
20393         nl_langinfo tests: Silence some warnings.
20394         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20395         Reported by Jim Meyering.
20396
20397 2010-10-17  Bruno Haible  <bruno@clisp.org>
20398
20399         Make use of GCC's attribute __alloc_size__.
20400         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20401         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20402         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20403         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20404         __alloc_size__.
20405         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20406         Suggested by Jim Meyering.
20407
20408 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20409
20410         bootstrap: anchor .gitignore entries.
20411         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20412         with...
20413         (insert_vc_ignore): ... this new function, which prepends `/' to
20414         all .gitignore entries before passing them to
20415         insert_sorted_if_absent.
20416
20417 2010-10-16  Bruno Haible  <bruno@clisp.org>
20418
20419         nextafter: Fix configure check.
20420         * modules/nextafter (configure.ac): Correct expected prototype.
20421
20422 2010-10-16  Bruno Haible  <bruno@clisp.org>
20423
20424         termios: Update documentation.
20425         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20426
20427 2010-10-16  Bruno Haible  <bruno@clisp.org>
20428
20429         tests: Make them compile with TinyCC.
20430         * tests/test-strstr.c (main): Remove parentheses around array
20431         initializer.
20432
20433 2010-10-15  Eric Blake  <eblake@redhat.com>
20434
20435         ignore-value: make header idempotent
20436         * lib/ignore-value.h: Add double-inclusion guards.
20437         Reported by Stefan Berger.
20438
20439 2010-10-15  Jim Meyering  <meyering@redhat.com>
20440
20441         GNUmakefile: handle "stable" target, not "major"
20442         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20443         lists in maint.mk and announce-gen.  Without this, "make stable"
20444         would fail to ensure that $(VERSION) is up to date.
20445
20446 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20447
20448         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20449         & co.
20450
20451 2010-10-14  Bruno Haible  <bruno@clisp.org>
20452
20453         vasnprintf: Don't set errno to 0.
20454         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20455         block that sets it to 0.
20456         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20457
20458 2010-10-14  Bruno Haible  <bruno@clisp.org>
20459
20460         socketlib: Fix.
20461         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20462         gl_PREREQ_SYS_H_WINSOCK2.
20463         Reported by Ian Beckwith <ianb@erislabs.net>.
20464
20465 2010-10-13  Jim Meyering  <meyering@redhat.com>
20466
20467         test-select-stdin.c: avoid warn_unused_result warnings
20468         * tests/test-select-stdin.c: Include "macros.h".
20469         ASSERT that read and fflush succeed.
20470
20471 2010-10-13  Jim Meyering  <meyering@redhat.com>
20472
20473         git-version-gen: do require git-VC'd files in cwd
20474         * build-aux/git-version-gen: Reject a git version string
20475         if there are no commits associated with the current directory.
20476         This avoids an unlikely false-positive (unrelated dir whose parent
20477         repository also contains a tag matching v*), as pointed out
20478         by Giuseppe Scrivano in
20479         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20480
20481 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20482
20483         argv-iter: omit nonconforming declaration
20484         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20485         enum arg_iter_err declaration, which doesn't conform to C99.
20486         Solaris 10 cc warns about this.
20487
20488 2010-10-13  Eric Blake  <eblake@redhat.com>
20489
20490         termios: fix compilation on mingw
20491         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20492         (gl_TERMIOS_H): Adjust it on mingw.
20493         * modules/termios (Makefile.am): Substitute new key.
20494         * lib/termios.in.h (includes): Make include_next conditional.
20495         * doc/posix-headers/termios.texi (termios.h): Update
20496         documentation.
20497         Reported by Daniel P. Berrange.
20498
20499 2010-10-13  Jim Meyering  <meyering@redhat.com>
20500
20501         git-version-gen: don't require that .git/ be in the current dir
20502         * build-aux/git-version-gen: Adjust this script so that it works
20503         when run from any working directory beneath the top-level .git/-
20504         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20506
20507         test-select: avoid warn_unused_result warnings
20508         * tests/test-select.c: Include "macros.h".
20509         ASSERT that each call to read, write, and pipe succeeds.
20510         While not technically required, also check each "close".
20511         * modules/select-tests (Files): Add tests/macros.h.
20512
20513         test-symlinkat: remove declaration of unused local
20514         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20515
20516         test-inttostr: avoid shadowing warnings
20517         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20518         and use malloc rather than the stack for the same reason as
20519         mentioned in the comment justifying the other allocation.
20520
20521 2010-10-11  Bruno Haible  <bruno@clisp.org>
20522
20523         stdlib: Allow multiple gnulib generated replacements to coexist.
20524         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20525         Reported by Sam Steingold <sds@gnu.org>.
20526
20527 2010-10-11  Jim Meyering  <meyering@redhat.com>
20528
20529         fix a documentation typo
20530         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20531
20532 2010-10-11  Eric Blake  <eblake@redhat.com>
20533
20534         futimens: work around Solaris 11 bug
20535         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20536         * tests/test-futimens.h (test_futimens): Enhance, rather than
20537         weaken test.
20538         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20539
20540 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         Indentation.
20543         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20544         higher-level operators more to the left.
20545
20546 2010-10-11  Jim Meyering  <meyering@redhat.com>
20547
20548         test-futimens: avoid unwarranted test failure on Solaris 5.11
20549         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20550         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20551         because it tries to dereference the NULL name argument.
20552
20553 2010-10-11  Bruno Haible  <bruno@clisp.org>
20554
20555         Indentation.
20556         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20557         indentation.
20558
20559 2010-10-11  Jim Meyering  <meyering@redhat.com>
20560
20561         spawn.in.h: make indentation consistent with parentheses
20562         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20563         Make indentation consistent with parentheses.
20564
20565 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20566
20567         Fix mismatched parens in previous commit
20568         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20569         parens.
20570
20571 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20572
20573         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20574
20575         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20576         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20577         * lib/malloca.c: Include "verify.h".
20578         (verify1): Remove, replacing with a verify call.
20579         * lib/relocwrapper.c (verify1): Likewise.
20580         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20581         Likewise.
20582         * modules/malloca (Depends-on): Add 'verify'.
20583         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20584         * modules/vasnprintf (Depends-on): Add 'verify'.
20585         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20586         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20587         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20588         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20590         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20591         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20592
20593         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20594
20595         Formerly the style was sometimes 2*X - 1, because the C standard
20596         was wrongly thought to disallow ?: in integral constant expressions.
20597         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20598         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20599         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20600         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20601         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20602         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20603         verify that time_t cannot be floating.
20604
20605 2010-10-08  Eric Blake  <eblake@redhat.com>
20606
20607         time: enforce recent POSIX ruling that time_t is integral
20608         * lib/time.in.h (__time_t_must_be_integral): Detect any
20609         problematic systems, allowing the rest of gnulib to assume POSIX.
20610
20611 2010-10-08  Jim Meyering  <meyering@redhat.com>
20612
20613         fdopendir: fix a bug on systems lacking openat and /proc support
20614         OpenBSD 4.7 is one such system.  The most noticeable effect was
20615         failure of any application making nontrivial use of fts: rm, du,
20616         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20617           ./rm: traversal failed: `a': Bad file descriptor
20618         Debugging that, you see that even though FD 6 was closed just
20619         prior to the opendir call in fd_clone_opendir, its resulting
20620         dir->dd_fd was 8, rather than the expected value of 6:
20621
20622         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20623         93                close (fd);
20624         (gdb) n
20625         94                dir = fd_clone_opendir (dupfd);
20626         (gdb) n
20627         95                saved_errno = errno;
20628         (gdb) p dir->dd_fd
20629         $11 = 8
20630
20631         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20632         The problem is that on OpenBSD, fd_clone_opendir has to resort
20633         to using the old-style save/restore CWD mechanism, due to its
20634         lack of openat/proc support, and *that* would steal the FD (6)
20635         that opendir was supposed to use.
20636
20637         The fix is to squirrel away the desired FD so that save_cwd uses a
20638         different one, and then free the dest FD right before calling opendir.
20639         That guarantees opendir will use the required file descriptor.
20640
20641         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20642
20643 2010-10-08  Bruno Haible  <bruno@clisp.org>
20644
20645         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20646         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20647
20648 2010-10-08  Bruno Haible  <bruno@clisp.org>
20649
20650         nanosleep: Make replacement POSIX compliant.
20651         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20652         is out of range.
20653         Reported by Jim Meyering.
20654
20655 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         bootstrap: add hook for altering gnulib.mk, for Bison
20658         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20659         the Bison bootstrapping process can rewrite file names and variables
20660         in this file before later parts of 'bootstrap' use the file.
20661         Bison wants to include lib/gnulib.mk from the top-level makefile,
20662         so it needs the file names in this file to be relative to the top
20663         level, not relative to lib; plus it needs variable names to be
20664         rewritten.
20665         (slurp): Use the new function.
20666
20667         bootstrap: reformat for readability
20668         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20669
20670 2010-10-08  Eric Blake  <eblake@redhat.com>
20671
20672         docs: update cygwin progress
20673         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20674         1.7.7.
20675         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20676         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20677         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20678         * doc/posix-functions/carg.texi (carg): Likewise.
20679         * doc/posix-functions/cargf.texi (cargf): Likewise.
20680         * doc/posix-functions/casin.texi (casin): Likewise.
20681         * doc/posix-functions/casinf.texi (casinf): Likewise.
20682         * doc/posix-functions/casinh.texi (casinh): Likewise.
20683         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20684         * doc/posix-functions/catan.texi (catan): Likewise.
20685         * doc/posix-functions/catanf.texi (catanf): Likewise.
20686         * doc/posix-functions/catanh.texi (catanh): Likewise.
20687         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20688         * doc/posix-functions/ccos.texi (ccos): Likewise.
20689         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20690         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20691         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20692         * doc/posix-functions/cexp.texi (cexp): Likewise.
20693         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20694         * doc/posix-functions/cimag.texi (cimag): Likewise.
20695         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20696         * doc/posix-functions/clog.texi (clog): Likewise.
20697         * doc/posix-functions/clogf.texi (clogf): Likewise.
20698         * doc/posix-functions/conj.texi (conj): Likewise.
20699         * doc/posix-functions/conjf.texi (conjf): Likewise.
20700         * doc/posix-functions/cpow.texi (cpow): Likewise.
20701         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20702         * doc/posix-functions/cproj.texi (cproj): Likewise.
20703         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20704         * doc/posix-functions/creal.texi (creal): Likewise.
20705         * doc/posix-functions/crealf.texi (crealf): Likewise.
20706         * doc/posix-functions/csin.texi (csin): Likewise.
20707         * doc/posix-functions/csinf.texi (csinf): Likewise.
20708         * doc/posix-functions/csinh.texi (csinh): Likewise.
20709         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20710         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20711         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20712         * doc/posix-functions/ctan.texi (ctan): Likewise.
20713         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20714         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20715         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20716         * doc/posix-headers/complex.texi (complex.h): Likewise.
20717
20718 2010-10-07  Jim Meyering  <meyering@redhat.com>
20719
20720         parse-datetime: avoid compilation failure on OpenBSD 4.7
20721         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20722         This works around a compilation failure on OpenBSD 4.7:
20723         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20724
20725 2010-10-07  Eric Blake  <eblake@redhat.com>
20726
20727         docs: update cygwin progress
20728         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20729         1.7.6.
20730         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20731         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20732         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20733         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20734         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20735         Likewise.
20736         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20737         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20738         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20739         Likewise.
20740         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20741         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20742         Likewise.
20743         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20744         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20745         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20746         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20747         Likewise.
20748         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20749         Likewise.
20750         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20751
20752         docs: update parse-datetime history
20753         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20754         documentation of this function's history and alternatives.
20755
20756         cygwin: use more robust version check
20757         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20758         exclude an eventual cygwin 1.9.1.
20759         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20761         (gl_FUNC_STRCASESTR): Likewise.
20762         Reported by Bruno Haible.
20763
20764 2010-10-06  Bruno Haible  <bruno@clisp.org>
20765
20766         string, sys_select: Avoid #including large headers unless necessary.
20767         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20768         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20769         OSF/1, BeOS, Haiku.
20770         Reported by Jim Meyering.
20771
20772 2010-10-05  Eric Blake  <eblake@redhat.com>
20773
20774         memmem, strstr, strcasestr: fix bug with long periodic needle
20775         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20776         periodic needle having false positive.
20777         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20778         and cygwin 1.7.7.
20779         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20781         (gl_FUNC_STRCASESTR): Likewise.
20782         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20783         * tests/test-memmem.c (main): Expose the bug.
20784         * tests/test-strcasestr.c (main): Likewise.
20785         * tests/test-strstr.c (main): Likewise.
20786         * tests/test-c-strcasestr.c (main): Likewise.
20787         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20788         * doc/posix-functions/strstr.texi (strstr): Likewise.
20789         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20790         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20791
20792 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20793
20794         parse-datetime: do some more renaming
20795         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20796         parse_datetime, not get_date.  Mention the renaming.
20797         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20798         in comments.
20799         * m4/bison.m4: Likewise.
20800
20801 2010-10-05  Eric Blake  <eblake@redhat.com>
20802
20803         parse-datetime: better name than get_date
20804         * NEWS: Reword the deprecation notice.
20805         * modules/get_date: Rename to modules/parse-datetime.
20806         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20807         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20808         * lib/get_date.y: Rename to lib/parse-datetime.y.
20809         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20810         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20811         * doc/getdate.texi: Provide fallback wrapper.
20812         * lib/getdate.h: Move guts, and wrap...
20813         * lib/parse-datetime.h: ...new file.
20814         * lib/parse-datetime.y (get_date): Rename...
20815         (parse_datetime): ...to this.
20816         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20817         (gl_PARSE_DATETIME): ...to this.
20818         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20819         documentation.
20820         * modules/getdate (Files): Provide fallback docs and header.
20821         (Notice, Depends-on): Update references.
20822         * tests/test-parse-datetime.c: Likewise.
20823         * DEPENDENCIES: Likewise.
20824         * MODULES.html.sh (Date and time <time.h>): Likewise.
20825         * doc/parse-datetime.texi (Date input formats)
20826         (Authors of parse_datetime): Likewise.
20827         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20828         (Include): Likewise.
20829         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20830         * gnulib-tool: Likewise.
20831         * m4/bison.m4 (gl_BISON): Likewise.
20832         Suggested by Bruno Haible.
20833
20834 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20835
20836         more ports to Solaris tr, which needs [] around ranges
20837         * gnulib-tool: Solaris tr needs [] around ranges.
20838         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20839         * tests/test-pipe-filter-gi1.c (main): Likewise.
20840         * tests/test-pipe-filter-ii1.c (main): Likewise.
20841
20842 2010-10-05  Eric Blake  <eblake@redhat.com>
20843
20844         bootstrap: fix Solaris regression
20845         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20846         around ranges.
20847         Reported by PĂ¡draig Brady.
20848
20849         bootstrap: work with pkg-config
20850         * build-aux/bootstrap (check_versions): Also transliterate - in
20851         prerequisite name.
20852         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20853         prerequisites that were already found, to avoid confusion.
20854         Reported by Justin Clift.
20855
20856         faccessat: remove unused wrappers
20857         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20858         presence of these wrappers dragged in -lgen on Solaris.
20859         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20860
20861 2010-10-05  Jim Meyering  <meyering@redhat.com>
20862
20863         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20864         * Makefile (sc_pragma_columns): New syntax-check rule.
20865
20866 2010-10-04  Bruno Haible  <bruno@clisp.org>
20867
20868         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20869         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20870         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20871         Reported by Bruce Korb and Eric Blake.
20872
20873 2010-10-04  Bruno Haible  <bruno@clisp.org>
20874
20875         threadlib: Make option --with-libpth-prefix work.
20876         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20877         use $LIBPTH, not just -lpth.
20878
20879 2010-10-04  Bruno Haible  <bruno@clisp.org>
20880
20881         Avoid line length limitation from HP NonStop system header files.
20882         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20883         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20884         * lib/ctype.in.h: Likewise.
20885         * lib/dirent.in.h: Likewise.
20886         * lib/errno.in.h: Likewise.
20887         * lib/fcntl.in.h: Likewise.
20888         * lib/float.in.h: Likewise.
20889         * lib/getopt.in.h: Likewise.
20890         * lib/iconv.in.h: Likewise.
20891         * lib/inttypes.in.h: Likewise.
20892         * lib/langinfo.in.h: Likewise.
20893         * lib/locale.in.h: Likewise.
20894         * lib/math.in.h: Likewise.
20895         * lib/netdb.in.h: Likewise.
20896         * lib/netinet_in.in.h: Likewise.
20897         * lib/poll.in.h: Likewise.
20898         * lib/pthread.in.h: Likewise.
20899         * lib/pty.in.h: Likewise.
20900         * lib/sched.in.h: Likewise.
20901         * lib/se-selinux.in.h: Likewise.
20902         * lib/search.in.h: Likewise.
20903         * lib/signal.in.h: Likewise.
20904         * lib/spawn.in.h: Likewise.
20905         * lib/stdarg.in.h: Likewise.
20906         * lib/stddef.in.h: Likewise.
20907         * lib/stdint.in.h: Likewise.
20908         * lib/stdio.in.h: Likewise.
20909         * lib/stdlib.in.h: Likewise.
20910         * lib/string.in.h: Likewise.
20911         * lib/strings.in.h: Likewise.
20912         * lib/sys_file.in.h: Likewise.
20913         * lib/sys_ioctl.in.h: Likewise.
20914         * lib/sys_select.in.h: Likewise.
20915         * lib/sys_socket.in.h: Likewise.
20916         * lib/sys_stat.in.h: Likewise.
20917         * lib/sys_time.in.h: Likewise.
20918         * lib/sys_times.in.h: Likewise.
20919         * lib/sys_utsname.in.h: Likewise.
20920         * lib/sys_wait.in.h: Likewise.
20921         * lib/sysexits.in.h: Likewise.
20922         * lib/termios.in.h: Likewise.
20923         * lib/time.in.h: Likewise.
20924         * lib/unistd.in.h: Likewise.
20925         * lib/wchar.in.h: Likewise.
20926         * lib/wctype.in.h: Likewise.
20927         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20928         * modules/ctype (Makefile.am): Likewise.
20929         * modules/dirent (Makefile.am): Likewise.
20930         * modules/errno (Makefile.am): Likewise.
20931         * modules/fcntl-h (Makefile.am): Likewise.
20932         * modules/float (Makefile.am): Likewise.
20933         * modules/getopt-posix (Makefile.am): Likewise.
20934         * modules/iconv-h (Makefile.am): Likewise.
20935         * modules/inttypes (Makefile.am): Likewise.
20936         * modules/langinfo (Makefile.am): Likewise.
20937         * modules/locale (Makefile.am): Likewise.
20938         * modules/math (Makefile.am): Likewise.
20939         * modules/netdb (Makefile.am): Likewise.
20940         * modules/netinet_in (Makefile.am): Likewise.
20941         * modules/poll-h (Makefile.am): Likewise.
20942         * modules/pthread (Makefile.am): Likewise.
20943         * modules/pty (Makefile.am): Likewise.
20944         * modules/sched (Makefile.am): Likewise.
20945         * modules/search (Makefile.am): Likewise.
20946         * modules/selinux-h (Makefile.am): Likewise.
20947         * modules/signal (Makefile.am): Likewise.
20948         * modules/spawn (Makefile.am): Likewise.
20949         * modules/stdarg (Makefile.am): Likewise.
20950         * modules/stddef (Makefile.am): Likewise.
20951         * modules/stdint (Makefile.am): Likewise.
20952         * modules/stdio (Makefile.am): Likewise.
20953         * modules/stdlib (Makefile.am): Likewise.
20954         * modules/string (Makefile.am): Likewise.
20955         * modules/strings (Makefile.am): Likewise.
20956         * modules/sys_file (Makefile.am): Likewise.
20957         * modules/sys_ioctl (Makefile.am): Likewise.
20958         * modules/sys_select (Makefile.am): Likewise.
20959         * modules/sys_socket (Makefile.am): Likewise.
20960         * modules/sys_stat (Makefile.am): Likewise.
20961         * modules/sys_time (Makefile.am): Likewise.
20962         * modules/sys_times (Makefile.am): Likewise.
20963         * modules/sys_utsname (Makefile.am): Likewise.
20964         * modules/sys_wait (Makefile.am): Likewise.
20965         * modules/sysexits (Makefile.am): Likewise.
20966         * modules/termios (Makefile.am): Likewise.
20967         * modules/time (Makefile.am): Likewise.
20968         * modules/unistd (Makefile.am): Likewise.
20969         * modules/wchar (Makefile.am): Likewise.
20970         * modules/wctype (Makefile.am): Likewise.
20971
20972 2010-10-04  Bruno Haible  <bruno@clisp.org>
20973
20974         read-file tests: Avoid a test failure on NonStop Kernel.
20975         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20976         a regular file.
20977         Reported by Joachim Schmitz <schmitz@hp.com>.
20978
20979 2010-10-03  Bruno Haible  <bruno@clisp.org>
20980
20981         gnulib-tool: Fixes for --create-testdir with --libtool.
20982         * gnulib-tool (func_get_automake_snippet): Don't augment
20983         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20984         an executable.
20985         (func_create_testdir): Handle module 'alloca' like func_import.
20986         Reported by Bruce Korb <bruce.korb@gmail.com>.
20987
20988 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20989
20990         Avoid some lines longer than 80 characters.
20991         * lib/stdint.in.h: Break long comment lines.
20992         * lib/math.in.h: Likewise.
20993         (_GL_NUM_UINT_WORDS): New macro, for readability.
20994         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20995         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20996         * lib/stdlib.in.h: Likewise.
20997         * lib/spawn.in.h: Likewise.
20998         * lib/sys_socket.in.h: Update an URL.
20999         * lib/sys_stat.in.h: Break long line.
21000
21001 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21002
21003         Improve pmccabe2html.
21004         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21005         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21006         when the sources change. Remove the line in the HTML about "Used
21007         ranges" (which implied that there might be other unused ranges),
21008         rename "Resume" to "Summary" (easier to understand for more users).
21009         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21010         styles, and some unnecessary blank lines.
21011
21012 2010-10-03  Bruno Haible  <bruno@clisp.org>
21013             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21014
21015         acl: Add support for ACLs on NonStop Kernel.
21016         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21017         Check whether the function aclsort() exists.
21018         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21019         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21020         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21021         (acl_nontrivial [HAVE_ACLSORT]: New function.
21022         (file_has_acl): Implement for NonStop Kernel.
21023         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21024         (qset_acl): Implement for NonStop Kernel.
21025         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21026         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21027         (main): Implement for NonStop Kernel.
21028         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21029         Kernel. Handle this flavor.
21030         * tests/test-set-mode-acl.sh: Likewise.
21031         * tests/test-copy-acl.sh: Likewise.
21032         * tests/test-copy-file.sh: Likewise.
21033
21034 2010-10-03  Bruno Haible  <bruno@clisp.org>
21035
21036         Info about ACLs on NonStop Kernel.
21037         * doc/acl-resources.txt: Add info about NonStop Kernel.
21038         References by Joachim Schmitz <schmitz@hp.com>.
21039
21040 2010-10-02  Bruno Haible  <bruno@clisp.org>
21041
21042         Define missing EDQUOT on NonStop Kernel.
21043         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21044         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21045         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21046         missing.
21047         * doc/posix-headers/errno.texi: Mention the NSK bug.
21048         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21049         Reported by Joachim Schmitz <schmitz@hp.com>.
21050
21051 2010-10-02  Bruno Haible  <bruno@clisp.org>
21052
21053         Update doc for POSIX:2008.
21054         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21055         Update URL of POSIX specification.
21056
21057 2010-10-02  Bruno Haible  <bruno@clisp.org>
21058
21059         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21060         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21061         from gnulib, not from Automake.
21062
21063 2010-10-02  Bruno Haible  <bruno@clisp.org>
21064
21065         New module 'system-posix'.
21066         * modules/system-posix: New file.
21067         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21068         module is present.
21069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21070         GNULIB_SYSTEM_POSIX.
21071         * modules/stdlib (Depends-on): Remove sys_wait.
21072         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21073         * doc/posix-functions/system.texi: Mention the new module.
21074         * doc/posix-headers/stdlib.texi: Likewise.
21075         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21076         define test_sys_wait_macros to a no-op.
21077         Reported by Sam Steingold <sds@gnu.org>.
21078
21079 2010-09-30  Bruno Haible  <bruno@clisp.org>
21080
21081         More renaming from 'getdate' to 'get_date'.
21082         * doc/get_date.texi: Renamed from doc/getdate.texi.
21083         * modules/get_date (Files): Update.
21084         * MODULES.html.sh (Date and time <time.h>): Update.
21085         * DEPENDENCIES: Update.
21086         * gnulib-tool: Update comment.
21087         * m4/bison.m4 (gl_BISON): Likewise.
21088         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21089
21090 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21091
21092         bootstrap: support ACLOCAL_FLAGS during aclocal
21093         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21094         can add additional -I dir for third-party .m4 files.
21095
21096 2010-09-30  Eric Blake  <eblake@redhat.com>
21097
21098         bootstrap: use glibtoolize on MacOS
21099         * build-aux/bootstrap (check_versions): Convert libtool into
21100         libtoolize.
21101         (tool search): Move libtool check earlier, and look for
21102         glibtoolize for MacOS.
21103         (gnulib_tool_options): Auto-add --libtool when appropriate.
21104         Reported by Justin Clift.
21105
21106         poll: fix typo that broke test on MacOS
21107         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21108         Reported by Justin Clift.
21109
21110         getdate: rename to get_date
21111         Note: getdate.h is not renamed, to minimize client impact.
21112         * modules/getdate: Mark obsolete.  Move old contents...
21113         * modules/get_date: ...to new module name.
21114         * modules/getdate-tests: Move...
21115         * modules/get_date-tests: ...here.
21116         * m4/getdate.m4: Move...
21117         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21118         * lib/getdate.y: Move...
21119         * lib/get_date.y: ...here.
21120         * tests/test-getdate.c: Move...
21121         * tests/test-get_date.c: ...here.
21122         * doc/posix-functions/getdate.texi (getdate): Update name.
21123         * NEWS: Mention the change.
21124
21125 2010-09-29  Bruno Haible  <bruno@clisp.org>
21126
21127         Separate the module 'waitpid' from the module 'sys_wait'.
21128         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21129         present.
21130         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21131         gl_MODULE_INDICATOR_FOR_TESTS.
21132         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21133         * modules/sys_wait (Depends-on): Remove waitpid.
21134         (Makefile.am): Substitute GNULIB_WAITPID.
21135         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21136         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21137         signature only if the 'waitpid' module is present.
21138         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21139         * NEWS: Mention the change.
21140         * modules/grantpt (Depends-on): Add waitpid.
21141         * modules/wait-process (Depends-on): Likewise.
21142
21143 2010-09-29  Bruno Haible  <bruno@clisp.org>
21144
21145         More tests for module 'sys_wait'.
21146         * modules/sys_wait-c++-tests: New file.
21147         * tests/test-sys_wait-c++.cc: New file.
21148         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21149         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21150
21151 2010-09-29  Bruno Haible  <bruno@clisp.org>
21152
21153         New module 'waitpid'.
21154         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21155         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21156         Don't include <process.h>.
21157         (waitpid): Declare only, using modern idiom.
21158         * m4/waitpid.m4: New file.
21159         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21160         * modules/waitpid: New file.
21161         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21162         (Makefile.am): Update.
21163         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21164
21165 2010-09-28  Bruno Haible  <bruno@clisp.org>
21166
21167         poll: Assume ANSI C.
21168         * lib/poll.c (poll): Use an ANSI C declaration.
21169
21170 2010-09-28  Bruno Haible  <bruno@clisp.org>
21171
21172         poll-h: Create poll.h on all platforms.
21173         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21174         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21175         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21176         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21177         (gl_REPLACE_POLL_H): Don't set POLL_H.
21178         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21179         * modules/poll-h (Depends-on): Add include_next.
21180         (Makefile.am): Create poll.h unconditionally. Substitute also
21181         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21182
21183 2010-09-28  Bruno Haible  <bruno@clisp.org>
21184
21185         Tests for module 'poll-h'.
21186         * modules/poll-h-c++-tests: New file.
21187         * tests/test-poll-h-c++.cc: New file.
21188
21189         Tests for module 'poll-h'.
21190         * modules/poll-h-tests: New file.
21191         * tests/test-poll-h.c: New file.
21192
21193 2010-09-28  Bruno Haible  <bruno@clisp.org>
21194
21195         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21196         * modules/poll-h (Depends-on): Add 'extensions'.
21197
21198 2010-09-28  Bruno Haible  <bruno@clisp.org>
21199
21200         New module 'poll-h'.
21201         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21202         (poll): Use modern idiom.
21203         * modules/poll-h: New file.
21204         * modules/poll (Files): Remove lib/poll.in.h.
21205         (Depends-on): Add poll-h.
21206         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21207         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21208         * m4/poll_h.m4: New file.
21209         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21210         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21211         and invoke gl_REPLACE_POLL_H.
21212         * lib/poll.c: Use common idiom.
21213         * tests/test-poll.c: Likewise.
21214         * doc/posix-headers/poll.texi: Mention the poll-h module.
21215         Suggested by Eric Blake.
21216
21217 2010-09-26  Bruno Haible  <bruno@clisp.org>
21218
21219         sys_wait: Implement WSTOPSIG.
21220         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21221         Reported by Simon Josefsson.
21222
21223 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21224
21225         stdlib, sys_wait: Avoid compilation error on mingw.
21226         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21227
21228 2010-09-26  Bruno Haible  <bruno@clisp.org>
21229
21230         stdlib tests: Avoid code duplication.
21231         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21232         * modules/sys_wait-tests (Files): Likewise.
21233         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21234         * tests/test-stdlib.c: Include test-sys_wait.h.
21235         (main): Invoke test_sys_wait_macros.
21236         * tests/test-sys_wait.c: Include test-sys_wait.h.
21237         (main): Invoke test_sys_wait_macros.
21238
21239 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21240
21241         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21242         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21243         sure Windows sockets are working before calling getaddrinfo.
21244         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21245         * doc/gnulib.texi (Windows sockets): Fix typo.
21246
21247 2010-09-25  Bruno Haible  <bruno@clisp.org>
21248
21249         Tests for module 'regex-quote'.
21250         * modules/regex-quote-tests: New file.
21251         * tests/test-regex-quote.c: New file.
21252
21253         New module 'regex-quote'.
21254         * lib/regex-quote.h: New file.
21255         * lib/regex-quote.c: New file.
21256         * modules/regex-quote: New file.
21257         Suggested by Reuben Thomas <rrt@sc3d.org>.
21258
21259 2010-09-24  Bruno Haible  <bruno@clisp.org>
21260
21261         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21262         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21263
21264 2010-09-23  Bruno Haible  <bruno@clisp.org>
21265
21266         setenv: Relax license.
21267         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21268         Blake.
21269         Requested by Eric Blake.
21270
21271 2010-09-22  Bruno Haible  <bruno@clisp.org>
21272
21273         termios: Relax license.
21274         * modules/termios (License): Change to LGPLv2+.
21275         Requested by Eric Blake.
21276
21277 2010-09-22  Bruno Haible  <bruno@clisp.org>
21278
21279         threadlib: Allow the package to change the default to 'no'.
21280         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21281         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21282         Reported by Paul Eggert.
21283
21284 2010-09-22  PĂ¡draig Brady  <P@draigbrady.com>
21285             Bruno Haible  <bruno@clisp.org>
21286
21287         Fix endless loop in mbmemcasecoll.
21288         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21289         byte.
21290         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21291
21292 2010-09-22  Bruno Haible  <bruno@clisp.org>
21293
21294         Tests for module 'memcoll'.
21295         * modules/memcoll-tests: New file.
21296         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21297
21298         memcoll, xmemcoll: Clarify size vs. length.
21299         * modules/memcoll.c (memcoll0): Clarify specification.
21300         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21301         passed to collate_error.
21302
21303 2010-09-22  Bruno Haible  <bruno@clisp.org>
21304
21305         Tests for module 'memcasecmp'.
21306         * modules/memcasecmp-tests: New file.
21307         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21308
21309 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21310
21311         * lib/pthread.in.h: Add split double-inclusion guard, and include
21312         system <pthread.h> if there is one.  Use @@-style as in other
21313         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21314         pthread.h doesn't.
21315         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21316         (pthread_mutexattr_settype, pthread_mutex_trylock):
21317         New static inline functions, if there's no system <pthread.h>.
21318         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21319         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21320         Approximate with mutexes if the system lacks spinlocks, as in
21321         MacOS.
21322         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21323         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21324         @@-style.  Check for spinlocks separately.
21325         (gl_PTHREAD_DEFAULTS): New macro.
21326         * modules/pthread: Redo to use a more typical style for in.h files.
21327
21328 2010-09-21  Eric Blake  <eblake@redhat.com>
21329
21330         net_if: enhance tests
21331         * tests/test-net_if.c (main): Move signature checks earlier.
21332         Print failures to stderr.
21333         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21334         Document the bug that we do not yet fix.
21335
21336 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21337
21338         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21339         about gnulib, not GSS.
21340
21341 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21342
21343         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21344         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21345         for Emacs.
21346         * build-aux/pmccabe2html: Make Makefile.am example code more
21347         cut-and-paste friendly.
21348
21349 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21350
21351         * tests/test-net_if.c: New file.
21352         * modules/net_if-tests: New file.
21353
21354 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21355
21356         pthread: add pthread_spin_destroy
21357         * lib/pthread.in.h (pthread_spin_destroy): New function.
21358
21359 2010-09-19  Bruno Haible  <bruno@clisp.org>
21360
21361         gnulib-tool: Fix --help output.
21362         * gnulib-tool (func_usage): Fix help message.
21363         Reported by Reuben Thomas <rrt@sc3d.org>.
21364
21365 2010-09-18  Jim Meyering  <meyering@redhat.com>
21366
21367         maint.mk: avoid unexpanded \n in two diagnostics
21368         * top/maint.mk (sc_prohibit_always_true_header_tests):
21369         Don't use a literal \n in a halt=... assignment.  It would not be
21370         expanded, and the two \n bytes would appear in the diagnostic output
21371         rather than the desired newline.  Use halt=$$(printf ... instead.
21372         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21373
21374 2010-09-18  Bruno Haible  <bruno@clisp.org>
21375
21376         netinet_in: Doc tweak.
21377         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21379
21380 2010-09-18  Jim Meyering  <meyering@redhat.com>
21381
21382         init.sh: correct an outdated comment
21383         * tests/init.sh (create_exe_shims_):  s/function/alias/
21384
21385         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21386         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21387         a file named "*.exe" is removed between the glob expansion and the
21388         processing of that oddly named file.
21389
21390 2010-09-17  Eric Blake  <eblake@redhat.com>
21391
21392         mirbsd: add some more support
21393         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21394         in BSD family.
21395         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21396         devices as OpenBSD.
21397         * m4/host-os.m4 (mirbsd): Add MirBSD.
21398
21399         tests: fix unportable assumption on sys/wait.h
21400         * tests/test-sys_wait.c (main): Relax test.
21401         * tests/test-stdlib.c (main): Likewise.
21402
21403         init.sh: accomodate directory with no .exes
21404         * tests/init.sh: Accomodate directory containing only scripts.
21405
21406         tests: avoid compiler warning
21407         * tests/test-stdlib.c (main): Use the variable.
21408
21409         fdutimens, fdutimensat: update signature, again
21410         * lib/utimens.h (gl_futimens): Delete, and move signature...
21411         (fdutimens): ...here.
21412         (fdutimensat): Rearrange signature.
21413         (lutimensat): Rename variable for clarity.
21414         * lib/fdutimensat.c (fdutimensat): Update signature.
21415         * lib/utimens.c (fdutimens): Likewise.
21416         (gl_futimens): Delete.
21417         (utimens, lutimens): Update callers.
21418         * lib/futimens.c (futimens): Likewise.
21419         * tests/test-fdutimensat.c: Likewise.
21420         * tests/test-utimens.c: Likewise.
21421         * tests/test-futimens.h: Update comment.
21422         * NEWS: Mention this.
21423         Suggested by Paul Eggert.
21424
21425 2010-09-17  Bruno Haible  <bruno@clisp.org>
21426
21427         Take over the maintenance of some older macros from Autoconf.
21428         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21429         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21430         GNU Autoconf.
21431         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21432         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21433
21434 2010-09-17  Eric Blake  <eblake@redhat.com>
21435
21436         fdutimensat: drop atflag validation
21437         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21438         with valid fd, to close a race scenario where futimens is
21439         unsupported and FILE was replaced by a symlink.
21440         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21441         accordingly.
21442         Suggested by Paul Eggert.
21443
21444 2010-09-16  Bruno Haible  <bruno@clisp.org>
21445
21446         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21447         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21448
21449 2010-09-16  Bruno Haible  <bruno@clisp.org>
21450
21451         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21452         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21453         login_tty exists.
21454         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21455
21456 2010-09-16  Bruno Haible  <bruno@clisp.org>
21457
21458         login_tty: Make the replacement code work on BSD systems.
21459         * lib/login_tty.c: Include <sys/ioctl.h>.
21460         (login_tty): Use ioctl TIOCSCTTY when available.
21461         * modules/login_tty (Depends-on): Add sys_ioctl.
21462         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21463
21464 2010-09-16  Bruno Haible  <bruno@clisp.org>
21465
21466         login_tty: Stricter unit test.
21467         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21468         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21469         and tcgetsid() after login_tty.
21470         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21471
21472 2010-09-16  Bruno Haible  <bruno@clisp.org>
21473
21474         New module 'tcgetsid'.
21475         * lib/tcgetsid.c: New file.
21476         * m4/tcgetsid.m4: New file.
21477         * modules/tcgetsid: New file.
21478         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21479         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21480         GNULIB_TCGETSID, HAVE_TCGETSID.
21481         * lib/termios.in.h: Include <sys/types.h>.
21482         (tcgetsid): New declaration.
21483         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21484         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21485         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21486         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21487
21488 2010-09-16  Bruno Haible  <bruno@clisp.org>
21489
21490         Tests for module 'termios'.
21491         * modules/termios-c++-tests: New file.
21492         * modules/termios-tests: New file.
21493         * tests/test-termios-c++.cc: New file.
21494         * tests/test-termios.c: New file.
21495
21496         New module 'termios'.
21497         * modules/termios: New file.
21498         * lib/termios.in.h: New file.
21499         * m4/termios_h.m4: New file.
21500         * doc/posix-headers/termios.texi: Mention the new module.
21501
21502 2010-09-16  Eric Blake  <eblake@redhat.com>
21503
21504         fdutimensat: add an atflag parameter
21505         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21506         * lib/utimens.h (fdutimensat): Update prototype.
21507         * tests/test-fdutimensat.c: Adjust test to match.
21508         * NEWS: Document the change.
21509         Suggested by Paul Eggert.
21510
21511 2010-09-16  Bruno Haible  <bruno@clisp.org>
21512
21513         Fix typos in comments.
21514         * lib/striconveh.h: Fix typo in comment.
21515         * lib/login_tty.c (login_tty): Likewise.
21516
21517 2010-09-15  Bruno Haible  <bruno@clisp.org>
21518
21519         stdlib: clarify MirBSD WEXITSTATUS bug
21520         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21521         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21522
21523 2010-09-15  Eric Blake  <eblake@redhat.com>
21524
21525         stdlib: work around MirBSD WEXITSTATUS bug
21526         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21527         * modules/stdlib (Depends-on): Add sys_wait.
21528         * tests/test-sys_wait.c (main): Enhance test.
21529         * tests/test-stdlib.c (main): Likewise.
21530         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21531
21532         docs: mention MacOS issue with WEXITSTATUS(constant)
21533         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21534         issue.
21535         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21536
21537         strnlen: add tests
21538         * modules/strnlen-tests: New file.
21539         * tests/test-strnlen.c: Likewise.
21540
21541 2010-09-14  Bruno Haible  <bruno@clisp.org>
21542
21543         unistr/base: Avoid link errors when module 'libunistring' is also used.
21544         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21545         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21546         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21547         Declare also when HAVE_LIBUNISTRING is set.
21548         Reported by PĂ¡draig Brady <P@draigbrady.com>.
21549
21550 2010-09-14  Eric Blake  <eblake@redhat.com>
21551
21552         test-rawmemchr: make more robust
21553         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21554         (Depends-on, configure.ac): Add needed prerequisites to use it.
21555         * modules/memchr-tests (Files, Depends-on, configure.ac):
21556         Likewise, to avoid implicit reliance on memchr module prereqs.
21557         * tests/test-memchr.c (main): Ensure proper masking.
21558         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21559         reads.
21560
21561         memchr: detect glibc Alpha bug
21562         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21563         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21564         Alpha.
21565         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21566         * tests/test-memchr.c (main): Enhance test.
21567         Reported by Nelson H. F. Beebe.
21568
21569 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21570
21571         fts, getcwd, glob: audit for dirfd returning -1
21572         * lib/fts.c (opendir): Remove #define; no longer used.
21573         (opendirat): New arg PDIR_FD.  All callers changed.
21574         (fts_build, _opendir2): Use new opendirat to avoid the need for
21575         dirfd, or for checking whether dirfd returns a negative value.
21576         Don't use opendir; always use openat followed by fdopendir.
21577         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21578         it.
21579         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21580         returns -1 here.
21581         * modules/fts (Depends-on): Remove dirfd.
21582         * modules/getcwd (Depends-on): Likewise.
21583
21584 2010-09-13  Eric Blake  <eblake@redhat.com>
21585
21586         float: fix broken MirBSD header
21587         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21588         * doc/posix-headers/float.texi (float.h): Document it.
21589
21590 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21591
21592         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21593         * lib/fts.c (opendirat): New arg extra_flags.
21594         (__opendir2): Use it to avoid following symlinks when opening
21595         a directory, if symlinks are not supposed to be followed.  See
21596         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21597
21598         fdopendir: preserve argument fd before returning
21599         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21600         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21601         (fdopendir): Use them, arranging for FD to be open to the same
21602         directory that it was when it started.  (It might be temporarily
21603         closed while fdopendir is running, so this not thread- or
21604         signal-safe.)  Be careful to do the right thing even when file
21605         descriptors are scarce and dup fails with errno == EMFILE.  See
21606         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21607
21608 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21609
21610         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21611         * NEWS: Document change.
21612         * m4/regex.m4: Disable test for regoff_t size.
21613
21614 2010-09-13  Jim Meyering  <meyering@redhat.com>
21615
21616         fts: don't operate on an invalid file descriptor after failed dup
21617         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21618         negative file descriptor.
21619
21620 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21621
21622         savedir: add streamsavedir, deprecate fdsavedir
21623         * NEWS: Mention deprecation of fdsavedir.
21624         * lib/savedir.c (streamsavedir): New extern function, whose name
21625         ends in "savedir" to be consistent with the others.  This differs
21626         from savedirstream in that it doesn't close its argument.  The
21627         next version of GNU tar will use this instead of fdsavedir, to
21628         avoid some race conditions and conserve file descriptors.
21629         (savedirstream): Reimplement as a wrapper around streamsavedir.
21630         (fdsavedir): Add a comment deprecating this function.  As far as
21631         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21632         * lib/savedir.h (streamsavedir): New decl.
21633         (fdsavedir): Add a comment deprecating this.
21634
21635 2010-09-10  Bruno Haible  <bruno@clisp.org>
21636
21637         langinfo: Fix last commit.
21638         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21639         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21641
21642 2010-09-10  Bruno Haible  <bruno@clisp.org>
21643
21644         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21645         * lib/progreloc.c (O_EXEC): Define fallback.
21646
21647 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21648
21649         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21650         * NEWS: Document recent changes to fcntl-h.
21651         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21652         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21653         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21654         Similarly for O_SEARCH; this last was already true, but not documented.
21655         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21656         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21657         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21658         Likewise.
21659         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21660         is zero, not whether it is defined.
21661         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21662         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21663         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21664
21665 2010-09-10  Bruno Haible  <bruno@clisp.org>
21666
21667         langinfo, nl_langinfo: Fix for IRIX 5.3.
21668         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21669         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21670         HAVE_LANGINFO_YESEXPR.
21671         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21672         HAVE_LANGINFO_YESEXPR.
21673         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21674         HAVE_LANGINFO_T_FMT_AMPM is 0.
21675         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21676         HAVE_LANGINFO_YESEXPR is 0.
21677         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21678         NOEXPR.
21679         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21680         * doc/posix-functions/nl_langinfo.texi: Likewise.
21681         Reported by Eric Blake.
21682
21683 2010-09-10  Bruno Haible  <bruno@clisp.org>
21684
21685         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21686         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21687         on FreeBSD 8.0 and OpenBSD 4.6.
21688         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21689         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21690         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21691         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21692         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21693         ac_includes_default.
21694         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21695
21696 2010-09-09  Eric Blake  <eblake@redhat.com>
21697
21698         strsignal: work around NetBSD bug
21699         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21700         * lib/string.in.h (includes): Likewise.
21701         * doc/posix-functions/strsignal.texi (strsignal): Document the
21702         bug.
21703         Reported by Nelson H. F. Beebe.
21704
21705         gnulib-tool: work with NetBSD /bin/sh
21706         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21707         (func_get_description, func_get_comment, func_get_status)
21708         (func_get_notice, func_get_applicability, func_get_filelist)
21709         (func_get_dependencies, func_get_autoconf_early_snippet)
21710         (func_get_autoconf_snippet, func_get_automake_snippet)
21711         (func_get_include_directive, func_get_link_directive)
21712         (func_get_license, func_get_maintainer, func_import): Avoid
21713         shell syntax errors from parsing syntax extensions.
21714
21715 2010-09-09  Bruno Haible  <bruno@clisp.org>
21716
21717         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21718         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21719         a reliable way to determine whether the 'alias' command works.
21720
21721 2010-09-08  Jim Meyering  <meyering@redhat.com>
21722
21723         init.sh: penalize a set-x-impaired shell; don't disqualify it
21724         * tests/init.sh: Too many shells corrupt application stderr when
21725         you set -x, so we can't afford to disqualify them, since at least
21726         on Irix-6.5, that would disqualify all bourne shells.
21727         Instead, use a two-pass approach.
21728         On the first pass, try to find a shell that meets the stricter
21729         condition that set -x does not corrupt stderr.
21730         If no shell meets the stricter condition, retest each candidate
21731         shell, but without that extra condition.  Finally, when
21732         VERBOSE=yes is requested and set -x might cause trouble, simply
21733         issue a warning and refrain from enabling debug output.
21734
21735 2010-09-08  Eric Blake  <eblake@redhat.com>
21736
21737         unsetenv: fix OpenBSD bug
21738         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21739         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21740         documentation.
21741         Reported by Jim Meyering.
21742
21743         strtod: work around IRIX 6.5 bug
21744         * lib/strtod.c (strtod): Reparse number on shorter string if
21745         exponent parse was invalid.
21746         * tests/test-strtod.c (main): Add check for "0x1p 2".
21747         Reported by Tom G. Christensen.
21748
21749         getopt: optimize previous patch
21750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21751         empty variable.  Speed up awk script.
21752         Reported by Paolo Bonzini.
21753
21754 2010-09-08  Jim Meyering  <meyering@redhat.com>
21755
21756         test.sh: disqualify shells for which set -x corrupts stderr
21757         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21758         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21759         appear in stderr output.  For example, this command:
21760             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21761         prints "P=1" on those two systems:
21762
21763 2010-09-08  Bruno Haible  <bruno@clisp.org>
21764
21765         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21766         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21767         commands, because some shells ignore redirections when there is an
21768         error in the command lookup.
21769         Reported by Eric Blake.
21770
21771 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21772
21773         * lib/regex.h: Fix a mention of `regex_compile' (should be
21774         `re_compile_pattern').
21775         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21776         (re_set_registers): Correct name of parameter in comment.
21777
21778         * doc/regex.texi: Add documentation for missing syntax flags.
21779         Remove commented-out documentation of defunct syntax option
21780         RE_NO_EMPTY_ALTS.
21781         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21782         Add documentation of re_set_registers.
21783         Document trick to re-use a pattern buffer by setting fastmap manually.
21784         Update documentation of struct re_pattern_buffer per public members.
21785         Uncomment documentation of equivalence class operators and
21786         collating symbol operators, since they are now implemented,
21787         Explain leftmost-longest matching in relation to alternatives.
21788         Tidy documentation of substring matching.
21789         Remove POSIX documentation, which is done better in
21790         glibc, and refer the reader there. Keep BSD API documentation, as
21791         that is not readily available elsewhere.
21792
21793 2010-09-07  Eric Blake  <eblake@redhat.com>
21794
21795         getopt: handle POSIXLY_CORRECT set but not exported
21796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21797         export state of POSIXLY_CORRECT, due to bash set -o posix.
21798         Reported by Dustin J. Mitchell.
21799
21800 2010-09-05  Bruno Haible  <bruno@clisp.org>
21801
21802         gnulib-tool: Highlight the changed options.
21803         * gnulib-tool (func_usage): Display the --import, --add-import,
21804         --remove-import explanations in bold font.
21805
21806 2010-09-06  Karl Berry  <karl@gnu.org>
21807
21808         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21809
21810 2010-09-05  Bruno Haible  <bruno@clisp.org>
21811
21812         uniwidth/width: Update comment.
21813         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21814         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21815
21816 2010-09-05  Bruno Haible  <bruno@clisp.org>
21817
21818         isinf, isnan: Relax license.
21819         * modules/isinf (License): Change from GPL to LGPL, with consent from
21820         Ben Pfaff.
21821         * modules/isnan (License): Likewise.
21822         Requested by Ludovic Courtès.
21823
21824 2010-09-04  Bruno Haible  <bruno@clisp.org>
21825
21826         gnulib-tool: Help migration from --import to --add-import or --update.
21827         * gnulib-tool: Emit a verbose error message when --import is used
21828         without any module name.
21829
21830 2010-09-04  Bruno Haible  <bruno@clisp.org>
21831
21832         Update doc about gnulib-tool.
21833         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21834         'gnulib-tool --update' in more detail.
21835         Reported by Eric Blake.
21836
21837 2010-09-04  Bruno Haible  <bruno@clisp.org>
21838
21839         gnulib-tool: Change --import. New options --add/remove-import.
21840         * gnulib-tool: New options --add-import, --remove-import.
21841         (func_usage): Document them.
21842         (have_associative): Define always.
21843         (func_import): In import mode, don't merge the specified settings with
21844         the cached settings. Implement remove-import mode.
21845         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21846         Explain when to use them versus --import.
21847         (Simple update): Use --add-import instead of --import.
21848         * NEWS: Mention the change.
21849
21850 2010-09-04  Bruno Haible  <bruno@clisp.org>
21851
21852         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21853         separate gnulib.mk.
21854
21855 2010-09-04  Bruno Haible  <bruno@clisp.org>
21856
21857         gnulib-tool: Don't talk about CVS any more.
21858         * gnulib-tool (func_usage, func_import): Write "version control"
21859         instead of CVS.
21860
21861 2010-09-04  Jim Meyering  <meyering@redhat.com>
21862
21863         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21864         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21865         false positives (whose names may be ill-chosen) when searching
21866         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21867         would cause a false-positive.
21868
21869         avoid coreutils "make distcheck" failure
21870         Coreutils tests with an absolute build directory name that contains
21871         a space.  Not quoting this directory name caused a failure.
21872         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21873         * tests/test-vc-list-files-cvs.sh: Likewise.
21874
21875 2010-09-04  Bruno Haible  <bruno@clisp.org>
21876
21877         gnulib-tool: Avoid error when run in a package without Makefile.am.
21878         * gnulib-tool: When collecting the m4dirs in a package that does not
21879         have a Makefile.am, eliminate those directories that contain no
21880         gnulib-cache.m4. Fix expression that counts these directories.
21881
21882 2010-09-04  Bruno Haible  <bruno@clisp.org>
21883
21884         update-copyright test: Improve output when perl is missing or too old.
21885         * tests/test-update-copyright.sh: Move test of Perl version down after
21886         the test whether Perl exists. Provide an explanation relating Perl's
21887         error message to Automake's SKIP: message.
21888
21889 2010-09-04  Bruno Haible  <bruno@clisp.org>
21890
21891         Don't augment PATH in TESTS_ENVIRONMENT.
21892         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21893         set abs_aux_dir instead of augmenting PATH.
21894         * modules/vc-list-files-tests (Makefile.am): Likewise.
21895         * tests/test-update-copyright.sh: Augment PATH here.
21896         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21897         path_prepend_.
21898         * tests/test-vc-list-files-git.sh: Likewise.
21899
21900 2010-09-04  Jim Meyering  <meyering@redhat.com>
21901
21902         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21903         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21904
21905 2010-09-04  Bruno Haible  <bruno@clisp.org>
21906
21907         strdup: Fix compilation error in C++ mode.
21908         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21909         the macro.
21910
21911 2010-09-04  Bruno Haible  <bruno@clisp.org>
21912
21913         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21914         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21915         macro into a function.
21916         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21917
21918 2010-09-04  Bruno Haible  <bruno@clisp.org>
21919
21920         Set PATH_SEPARATOR the same way autoconf does.
21921         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21922         the value of PATH_SEPARATOR the same way autoconf-generated configure
21923         scripts do.
21924         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21925         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21926
21927 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21928
21929         Set PATH_SEPARATOR the same way autoconf does.
21930         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21931         the same way autoconf-generated configure scripts do.
21932         * posix-modules: Likewise.
21933
21934 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21935
21936         hash: fix safe_hasher const typo
21937         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21938         const; otherwise, there is a type error later.
21939
21940 2010-09-02  Jim Meyering  <meyering@redhat.com>
21941
21942         test-update-copyright.sh: require perl 5.8.0
21943         * tests/test-update-copyright.sh: Require 5.8.0,
21944         which Tom G. Christensen has confirmed is adequate,
21945         while 5.6.1 is not.
21946
21947 2010-09-02  Eric Blake  <eblake@redhat.com>
21948
21949         tests: init.sh improvements for re-exec'ing with zsh
21950         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21951         -vx through shell re-exec.
21952         Reported by Tom G. Christensen.
21953
21954         wctype: fix typo in previous commit
21955         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21956         Reported by Ludovic Courtès.
21957
21958 2010-09-02  Jim Meyering  <meyering@redhat.com>
21959
21960         test-update-copyright.sh: skip test if Perl is too old
21961         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21962         Reported by Tom G. Christensen.
21963
21964 2010-09-02  Bruno Haible  <bruno@clisp.org>
21965
21966         wctype: Avoid compilation error on IRIX 6.5.30.
21967         * lib/wctype.in.h (iswblank): Declare with a replacement if
21968         REPLACE_ISWBLANK is set.
21969         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21970         declared. Set REPLACE_ISWBLANK.
21971         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21972         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21973         * doc/posix-headers/wctype.texi: Likewise.
21974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21975
21976 2010-09-01  Bruno Haible  <bruno@clisp.org>
21977
21978         New module 'socketlib'.
21979         * modules/socketlib: New file.
21980         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21981         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21982         * modules/sockets (Depends-on): Add socketlib.
21983         Suggested by Sam Steingold <sds@gnu.org>.
21984
21985 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21986
21987         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21988
21989         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21990         when one needs search access to a directory but not read access.
21991         On systems where it is available, it works in some cases where
21992         O_RDONLY does not, namely on directories that are searchable but
21993         not readable, and which need only to be searchable.  If O_SEARCH
21994         is not available, fall back to the traditional method of using
21995         O_RDONLY.
21996
21997         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21998         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21999         when opening a directory that needs only to be searchable.
22000         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22001         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22002         * lib/openat-proc.c (openat_proc_name): Likewise.
22003         * lib/openat.c (openat_needs_fchdir): Likewise.
22004         * lib/save-cwd.c (save_cwd): Likewise.
22005         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22006
22007 2010-08-28  Bruno Haible  <bruno@clisp.org>
22008
22009         New module 'host-cpu-c-abi'.
22010         * modules/host-cpu-c-abi: New file.
22011         * m4/host-cpu-c-abi.m4: New file, based on part of
22012         clisp/src/m4/general.m4.
22013         Requested by Sam Steingold <sds@gnu.org>.
22014
22015 2010-08-31  Eric Blake  <eblake@redhat.com>
22016         and Jim Meyering  <meyering@redhat.com>
22017
22018         hash: factor, and guard against misbehaving hasher function
22019         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22020         of table->hasher's return value.  Also protect against a hash value
22021         so large that adding it to table->bucket results in a NULL pointer.
22022         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22023         Use it in place of open-coded check-and-abort.
22024
22025 2010-08-30  Bruno Haible  <bruno@clisp.org>
22026
22027         hash: silence spurious clang warning
22028         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22029         Reported by Eric Blake.
22030
22031 2010-08-30  Eric Blake  <eblake@redhat.com>
22032
22033         strstr, memmem, strcasestr: avoid leaked shell message
22034         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22035         FreeBSD.
22036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22038
22039         tests: silence clang warning
22040         * tests/test-malloca.c (do_allocation): Avoid dead store.
22041
22042 2010-08-29  Bruno Haible  <bruno@clisp.org>
22043
22044         gettext: Fix recent mistake.
22045         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22046
22047 2010-08-29  Bruno Haible  <bruno@clisp.org>
22048
22049         selinux-h: Offer a --without-selinux option.
22050         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22051         --without-selinux was specified, skip all tests and define
22052         HAVE_SELINUX_SELINUX_H to 0.
22053         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22054         set LIB_SELINUX to empty.
22055         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22056         gl_LIBSELINUX. If --without-selinux was specified, replace
22057         selinux/context.h.
22058         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22059
22060 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22061             Bruno Haible  <bruno@clisp.org>
22062
22063         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22064         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22065         of HAVE_REALLOC.
22066         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22067         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22068         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22069         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22070
22071 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22072             Bruno Haible  <bruno@clisp.org>
22073
22074         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22075         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22076         HAVE_CALLOC.
22077         * lib/xmalloc.c: Update accordingly.
22078         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22079         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22080         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22081
22082 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22083             Bruno Haible  <bruno@clisp.org>
22084
22085         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22086         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22087         HAVE_MALLOC.
22088         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22089         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22090         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22091
22092 2010-08-29  Bruno Haible  <bruno@clisp.org>
22093
22094         Update modules list.
22095         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22096         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22097         (String handling <string.h>): Add astrxfrm.
22098         (File system functions): Add readlinkat.
22099
22100 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22101
22102         Tests for module 'realloc-gnu'.
22103         * modules/realloc-gnu-tests: New file.
22104         * tests/test-realloc-gnu.c: New file.
22105
22106         Tests for module 'calloc-gnu'.
22107         * modules/calloc-gnu-tests: New file.
22108         * tests/test-calloc-gnu.c: New file.
22109
22110         Tests for module 'malloc-gnu'.
22111         * modules/malloc-gnu-tests: New file.
22112         * tests/test-malloc-gnu.c: New file.
22113
22114 2010-08-28  Bruno Haible  <bruno@clisp.org>
22115
22116         Rename module 'realloc' -> 'realloc-gnu'.
22117         * modules/realloc-gnu: New file, copied from modules/realloc.
22118         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22119         obsolete.
22120         * modules/mgetgroups (Depends-on): Update.
22121         * doc/posix-functions/realloc.texi: Update.
22122         * NEWS: Mention the change.
22123
22124         Rename module 'calloc' -> 'calloc-gnu'.
22125         * modules/calloc-gnu: New file, copied from modules/calloc.
22126         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22127         obsolete.
22128         * doc/posix-functions/calloc.texi: Update.
22129         * NEWS: Mention the change.
22130
22131         Rename module 'malloc' -> 'malloc-gnu'.
22132         * modules/malloc-gnu: New file, copied from modules/malloc.
22133         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22134         obsolete.
22135         * modules/argp (Depends-on): Update.
22136         * modules/regex (Depends-on): Update.
22137         * doc/posix-functions/malloc.texi: Update.
22138         * NEWS: Mention the change.
22139
22140 2010-08-28  Eric Blake  <eblake@redhat.com>
22141
22142         pread, pwrite: add missing dependency
22143         * modules/pread (Depends-on): Add extensions.
22144         * modules/pwrite (Depends-on): Likewise.
22145
22146 2010-08-28  Bruno Haible  <bruno@clisp.org>
22147
22148         unistr/u*-strchr: Fix tests dependencies.
22149         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22150         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22151         Reported by Ian Beckwith <ianb@erislabs.net>.
22152
22153 2010-08-28  Bruno Haible  <bruno@clisp.org>
22154
22155         read-file: Don't occupy too much unused memory.
22156         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22157
22158 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22159             Eric Blake  <eblake@redhat.com>
22160             Bruno Haible  <bruno@clisp.org>
22161
22162         read-file: Avoid memory reallocations with regular files.
22163         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22164         (fread_file): With regular files, use the remaining length as the
22165         initial buffer size.  Check against overflow.
22166         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22167         sys_stat.
22168
22169 2010-08-28  Bruno Haible  <bruno@clisp.org>
22170
22171         ftello: Relax license.
22172         * modules/ftello (License): Relax to LGPLv2+.
22173         Reported by Eric Blake.
22174
22175 2010-08-28  Bruno Haible  <bruno@clisp.org>
22176
22177         Avoid relocwrapper link errors due to gnulib replacement functions.
22178         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22179         function.
22180         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22181
22182 2010-08-28  Bruno Haible  <bruno@clisp.org>
22183
22184         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22185         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22186         defined.
22187         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22188         Suggested by Eric Blake.
22189
22190 2010-08-28  Bruno Haible  <bruno@clisp.org>
22191
22192         sys_socket, netdb: Ensure socklen_t gets defined.
22193         * modules/sys_socket (Depends-on): Add socklen.
22194         * modules/netdb (Depends-on): Likewise.
22195         * modules/getaddrinfo (Depends-on): Remove socklen.
22196         * modules/getsockopt (Depends-on): Likewise.
22197         * modules/setsockopt (Depends-on): Likewise.
22198         * tests/test-sys_socket.c: Check that socklen_t is defined.
22199         * tests/test-netdb.c: Likewise.
22200         * m4/socklen.m4: Update comments.
22201         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22202
22203 2010-08-27  Eric Blake  <eblake@redhat.com>
22204
22205         login_tty: add missing dependency
22206         * modules/login_tty (Depends-on): Add pty.
22207
22208 2010-08-26  Eric Blake  <eblake@redhat.com>
22209
22210         lib-symbol-versions: fix m4 quoting
22211         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22212         format for AC_LINK_IFELSE.
22213
22214         glob: fix compile test
22215         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22216
22217         btowc: fix missing file
22218         * modules/btowc (Files): Also ship locale-fr.m4.
22219
22220         lseek: fix link test
22221         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22222         AC_LINK_IFELSE.
22223
22224         include_next: silence autoconf 2.68 warning
22225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22226         AC_COMPILE_IFELSE as special.
22227         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22228         autoconf < 2.68.
22229
22230         acl: fix compilation test
22231         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22232         AC_COMPILE_IFELSE.
22233
22234 2010-08-26  Bruno Haible  <bruno@clisp.org>
22235
22236         Modernize AC_TRY_RUN invocations.
22237         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22238         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22239         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22240         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22241         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22242         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22243         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22245         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22246         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22247         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22248         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22249         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22250         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22251         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22252         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22253         gl_MBRLEN_NUL_RETVAL): Likewise.
22254         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22255         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22256         Likewise.
22257         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22258         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22259         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22260         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22261         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22262         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22263         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22264         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22265         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22266         Likewise.
22267         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22268         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22269         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22270         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22272         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22274         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22275         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22277
22278 2010-08-26  Bruno Haible  <bruno@clisp.org>
22279
22280         Modernize AC_TRY_LINK invocations.
22281         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22282         AC_TRY_LINK.
22283         * m4/argp.m4 (gl_ARGP): Likewise.
22284         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22285         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22286         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22287         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22288         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22289         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22290         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22291         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22292         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22293         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22294         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22295         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22296         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22297         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22298         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22299         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22300         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22301         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22302         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22303         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22304         Likewise.
22305         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22306         Likewise.
22307         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22308         Likewise.
22309         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22310         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22311         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22312         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22313         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22314         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22315         * m4/servent.m4 (gl_SERVENT): Likewise.
22316         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22317         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22318         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22319         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22320         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22321         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22322         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22323         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22324         * modules/tsearch-tests (configure.ac): Likewise.
22325
22326 2010-08-26  Bruno Haible  <bruno@clisp.org>
22327
22328         Modernize AC_TRY_COMPILE invocations.
22329         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22330         AC_TRY_COMPILE.
22331         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22332         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22333         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22334         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22335         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22336         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22337         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22338         * m4/lock.m4 (gl_LOCK): Likewise.
22339         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22340         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22341         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22342         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22343         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22344         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22345         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22346         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22347         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22348         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22349         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22350         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22351         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22352         extraneous semicolon.
22353
22354 2010-08-26  Jim Meyering  <meyering@redhat.com>
22355
22356         stat-time: relax license LGPL
22357         * modules/stat-time (License): Change from GPL to LGPL,
22358         with consent from all contributors, for use in libguile.
22359         Requested by Ludovic Courtès.
22360
22361 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22362
22363         poll: return immediately on POLLHUP.
22364         * lib/poll.c (poll): Always set timeout before wait_timeout is
22365         computed.
22366
22367 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22368
22369         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22370         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22371         rmdir ("dir/.//"), unlinkat.
22372
22373 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22374
22375         stdbool: avoid spurious failure with modern xlc
22376         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22377
22378 2010-08-24  Bruno Haible  <bruno@clisp.org>
22379
22380         getloadavg: simplify code
22381         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22382         gl_have_func. Update comments.
22383
22384 2010-08-24  Eric Blake  <eblake@redhat.com>
22385
22386         getloadavg: don't define SVR4 on cygwin
22387         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22388         only define SVR4 when -lkvm is required.
22389         Reported by Yaakov Selkowitz.
22390
22391 2010-08-24  Bruno Haible  <bruno@clisp.org>
22392
22393         priv-set: fix comment
22394         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22395
22396 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22397
22398         priv-set: fix comments
22399         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22400         to match code, as suggested by David Bartley in:
22401         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22402
22403 2010-08-23  Eric Blake  <eblake@redhat.com>
22404
22405         stdbool: avoid rejecting clang
22406         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22407         * tests/test-stdbool.c: Enable more tests if using the system
22408         <stdbool.h> instead of the gnulib replacement.
22409         (main): Move xlc bug test to a runtime test for all compilers.
22410         Reported by Anders Kaseorg.
22411
22412         argz: fix shell quoting issue
22413         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22414         Reported by Charles Wilson.
22415
22416 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22417             Erik Faye-Lund <kusmabite@gmail.com>
22418
22419         poll, select: handle ERROR_BROKEN_PIPE.
22420         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22421         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22422         * lib/select.c (win32_compute_revents): Do not mark a pipe
22423         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22424
22425 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22426
22427         fts: allow compilation with C++
22428         * lib/fts_.h: Specify extern "C" linkage with C++.
22429
22430 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22431
22432         Fix gnulib-tool sed script de-commentation for AIX sed.
22433         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22434         sed.
22435
22436 2010-08-17  Eric Blake  <eblake@redhat.com>
22437
22438         test-stddef: test for (some) offsetof bugs
22439         * tests/test-stddef.c: Enhance test to ensure correct type of
22440         offsetof.
22441         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22442         that we are not fixing at this time.
22443
22444 2010-08-15  Bruno Haible  <bruno@clisp.org>
22445
22446         stpncpy: Allow stpncpy to be defined as a macro.
22447         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22448         if it's already correctly declared.
22449         * lib/string.in.h (stpncpy): Undefine before redefining.
22450         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22451
22452 2010-08-14  Bruno Haible  <bruno@clisp.org>
22453
22454         Rename module 'memxfrm' to 'amemxfrm'.
22455         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22456         (amemxfrm): Renamed from memxfrm.
22457         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22458         (amemxfrm): Renamed from memxfrm.
22459         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22460         * NEWS: Mention the change.
22461         * MODULES.html.sh (String handling <string.h>): Update.
22462         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22463         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22464         * lib/unicase/u16-casexfrm.c: Likewise.
22465         * lib/unicase/u32-casexfrm.c: Likewise.
22466         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22467         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22468         * lib/uninorm/u16-normxfrm.c: Likewise.
22469         * lib/uninorm/u32-normxfrm.c: Likewise.
22470         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22471         memxfrm.
22472         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22473         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22474         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22475         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22476         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22477         Suggested by Paul Eggert.
22478
22479 2010-08-14  Bruno Haible  <bruno@clisp.org>
22480
22481         Tests for module 'astrxfrm'.
22482         * modules/astrxfrm-tests: New file.
22483         * tests/test-astrxfrm.c: New file.
22484
22485         New module 'astrxfrm'.
22486         * lib/astrxfrm.h: New file.
22487         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22488         * modules/astrxfrm: New file.
22489
22490 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22491
22492         regex: Tweak doc.
22493         * doc/regex.texi (Overview): Don't mention regex.c.
22494         (GNU Regular Expression Compiling): Likewise.
22495         (Match-end-of-line Operator): Mention 'not_eol'.
22496
22497 2010-08-14  Brian Gough  <bjg@gnu.org>
22498             Bruno Haible  <bruno@clisp.org>
22499
22500         git-merge-changelog: add doc relating to use with bzr and hg.
22501         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22502
22503 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22504
22505         pthread: fix pthread.h creation for srcdir != builddir
22506         * modules/pthread (Makefile.am): Fix the rule to work also in a
22507         non-srcdir build.
22508
22509 2010-08-13  Karl Berry  <karl@gnu.org>
22510
22511         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22512         * doc/posix-*/*: force line break before @url of POSIX
22513         specifications.
22514         Suggested by Werner Lemberg.
22515
22516 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22517
22518         strtod: fix const diagnostic
22519         * lib/strtod.c (strtod): Don't assign const char * to char *,
22520         as this elicits a warning from GCC when warnings are enabled.
22521
22522 2010-08-10  PĂ¡draig Brady <P@draigbrady.com>
22523         and Eric Blake  <eblake@redhat.com>
22524
22525         copy-acl: ignore ENOTSUP on HP-UX
22526         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22527         so that it is available for HP-UX.
22528         * lib/copy-acl.c (qcopy_acl): Use it.
22529         Reported by Patrick M. Callahan.
22530
22531 2010-08-10  Eric Blake  <eblake@redhat.com>
22532
22533         open, chown: relax license
22534         * modules/open (License): Change to LGPLv2+, with consent by all
22535         authors, for use in augeas.
22536         * modules/chown (License): Likewise.
22537         * modules/lchown (Likewise): Likewise.
22538         Requested by Adam Stokes.
22539
22540 2010-08-09  Karl Berry  <karl@gnu.org>
22541
22542         * build-aux/ar-lib: new file, import from Automake.
22543         * config/srclist.txt: autocheck for updates.
22544
22545 2010-08-09  Eric Blake  <eblake@redhat.com>
22546
22547         readlinkat: adjust client modules
22548         * modules/areadlinkat (Depends-on): Use readlinkat, not
22549         symlinkat.
22550         * modules/areadlinkat-with-size (Depends-on): Likewise.
22551
22552         mknod: be more vocal about danger of running tests as root
22553         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22554         root, since that is just asking for problems.
22555         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22556
22557         readlinkat: split into its own module
22558         * modules/symlinkat: Split readlinkat...
22559         * modules/readlinkat: ...into separate module.
22560         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22561         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22562         * lib/symlinkat.c (readlinkat): Move...
22563         * lib/readlinkat.c: ...into new file.
22564         * modules/symlinkat-tests: Split readlinkat test...
22565         * modules/readlinkat-tests: ...into separate module.
22566         * tests/test-symlinkat.c: Split...
22567         * tests/test-readlinkat.c: ...into new file.
22568         * NEWS: Document the split.
22569         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22570         * lib/unistd.in.h (readlinkat): Likewise.
22571         Suggested by Bruno Haible.
22572
22573 2010-08-08  Bruno Haible  <bruno@clisp.org>
22574
22575         memxfrm: Speed up.
22576         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22577         that usually only one call to strxfrm is necessary for each string
22578         part.
22579         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22580
22581 2010-08-07  Karl Berry  <karl@gnu.org>
22582
22583         * doc/posix-headers/limits.texi,
22584         * doc/posix-functions/malloc.texi,
22585         * doc/posix-functions/strsignal.texi: missing @item.
22586         * doc/ld-version-script.texi: spurious leading i.
22587         * doc/regex.texi (Interval Operators): no commas inside @var.
22588
22589 2010-08-01  Bruno Haible  <bruno@clisp.org>
22590
22591         Integrate the regex documentation.
22592         * doc/gnulib.texi: Define 'cn' index.
22593         (Regular expressions): New a chapter that includes regex.texi and
22594         regexprops-generic.texi.
22595         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22596         syntax.
22597
22598         Whitespace cleanup.
22599         * doc/regex.texi: Remove trailing spaces.
22600
22601         Add regex documentation.
22602         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22603         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22604         Written by Kathy A. Hargreaves and Karl Berry.
22605
22606 2010-08-01  Bruno Haible  <bruno@clisp.org>
22607
22608         link: Update documentation.
22609         * doc/posix-functions/link.texi: Update regarding Solaris.
22610
22611 2010-07-31  Bruno Haible  <bruno@clisp.org>
22612
22613         Update modules list.
22614         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22615         (String handling <string.h>): Add memcmp2, memxfrm.
22616         (Container data structures): Add xlist, xsublist, xoset.
22617         (Core language properties): Add alignof, unused-parameter.
22618         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22619         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22620         (Unibyte characters <ctype.h>): New section.
22621         (String handling <string.h>): New section.
22622         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22623         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22624         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22625         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22626         tan, tanh, tanl, y0, y1, yn.
22627         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22628         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22629         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22630         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22631         unlockpt, vdprintf, vdprintf-posix.
22632         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22633         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22634         xconcat-filename.
22635         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22636         getdtablesize, pipe2, pipe2-safer.
22637         (Security): New section.
22638         (Networking functions): Add accept4.
22639         (Signal handling): Add sigpipe.
22640         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22641         mbmemcasecoll.
22642         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22643         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22644         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22645         pipe-filter-ii.
22646         (Misc): Add argp-version-etc, login_tty, parse-duration.
22647
22648 2010-07-31  Bruno Haible  <bruno@clisp.org>
22649
22650         Improve doc in MODULES.html.
22651         * modules/linkat (Description): Add the word "function".
22652         * modules/mkfifo (Description): Likewise.
22653         * modules/mknod (Description): Likewise.
22654         * modules/remove (Description): Likewise.
22655         * modules/renameat (Description): Likewise.
22656         * modules/stat (Description): Likewise.
22657         * modules/symlink (Description): Likewise.
22658         * modules/unlink (Description): Likewise.
22659
22660 2010-07-31  Bruno Haible  <bruno@clisp.org>
22661
22662         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22663         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22664         option --enable/disable-c++ instead of --enable/disable-cxx.
22665         * NEWS: Mention the change.
22666
22667 2010-07-31  Bruno Haible  <bruno@clisp.org>
22668
22669         readlink, areadlink: Relax test a bit.
22670         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22671         alternative to ENOTDIR.
22672         * tests/test-areadlink.h (test_areadlink): Likewise.
22673         Reported by Rainer Tammer.
22674
22675 2010-07-31  Bruno Haible  <bruno@clisp.org>
22676
22677         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22678         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22679         character, perform the search using U_STRCHR.
22680         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22681         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22682         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22683         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22684         Suggested by Paolo Bonzini.
22685
22686 2010-07-31  Bruno Haible  <bruno@clisp.org>
22687
22688         unistr/u*-strstr: Fix dependencies.
22689         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22690         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22691         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22692
22693 2010-07-31  Bruno Haible  <bruno@clisp.org>
22694
22695         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22696         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22697         the beginning of the loop.
22698         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22699         cases in 'switch' statement.
22700
22701         unistr/u8-strchr: Fix several bugs.
22702         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22703         the string. When not found, return NULL, not a pointer near the end.
22704
22705         More tests for unistr/u8-strchr.
22706         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22707         that the function does not read past the first occurrence of the byte
22708         being searched.
22709         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22710         * tests/unistr/test-u16-strchr.c (main): New function.
22711         * tests/unistr/test-u32-strchr.c (main): New function.
22712
22713 2010-07-31  Bruno Haible  <bruno@clisp.org>
22714
22715         posix-modules: Ignore backup files of documentation files.
22716         * posix-modules: grep only through files named *.texi.
22717
22718 2010-07-31  Bruno Haible  <bruno@clisp.org>
22719
22720         symlinkat: Fix documentation.
22721         * doc/posix-functions/readlinkat.texi: Fix module name.
22722
22723 2010-07-31  Bruno Haible  <bruno@clisp.org>
22724
22725         fchownat: Replace also when chown has the trailing slash bug.
22726         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22727         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22728         introduced on 2010-04-10.
22729         Reported by Rainer Tammer.
22730
22731 2010-07-31  Bruno Haible  <bruno@clisp.org>
22732
22733         linkat: Work around AIX 7.1 bug.
22734         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22735         whether linkat handles trailing slash correctly. If not, replace linkat
22736         and define LINKAT_TRAILING_SLASH_BUG.
22737         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22738         check whether (fd1,file1) points to a directory if file1 or file2 ends
22739         in a slash. Code taken from lib/link.c.
22740         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22741         Reported by Rainer Tammer.
22742
22743 2010-07-31  Bruno Haible  <bruno@clisp.org>
22744
22745         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22746         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22747         This disables an xlc optimization that was causing wrong test results.
22748         Reported by Rainer Tammer.
22749
22750 2010-07-31  Bruno Haible  <bruno@clisp.org>
22751
22752         iconv: Work around AIX 6.1..7.1 bug.
22753         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22754         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22755         cross-compiling, guess no on all versions of AIX.
22756         Reported by Rainer Tammer.
22757
22758 2010-07-31  Bruno Haible  <bruno@clisp.org>
22759
22760         readlink: Relax test a bit.
22761         * tests/test-readlink.h (test_readlink): Allow different errno value
22762         when readlink is called with a file name that ends in / and refers to
22763         a file.
22764         Suggested by Eric Blake.
22765         Reported by Rainer Tammer.
22766
22767 2010-07-31  Bruno Haible  <bruno@clisp.org>
22768
22769         copysign: Does not require -lm on glibc systems.
22770         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22771         gl_COMMON_DOUBLE_MATHFUNC.
22772         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22773
22774 2010-07-31  Bruno Haible  <bruno@clisp.org>
22775
22776         duplocale: Work around AIX 7.1 bug.
22777         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22778         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22779         * lib/duplocale.c (rpl_duplocale): Update comment.
22780         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22781         Reported by Rainer Tammer.
22782
22783 2010-07-30  Bruno Haible  <bruno@clisp.org>
22784
22785         dirfd: Avoid link error on AIX 7.1.
22786         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22787         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22788         exist, set REPLACE_DIRFD.
22789         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22790         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22791         * doc/posix-functions/dirfd.texi: Update.
22792         Reported by Rainer Tammer.
22793
22794 2010-07-30  Eric Blake  <eblake@redhat.com>
22795
22796         strtod: next round of AIX fixes
22797         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22798         exponent.
22799         * tests/test-strtod.c (main): Enhance tests.
22800         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22801         Reported by Rainer Tammer.
22802
22803         futimens: fix configure check
22804         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22805         Reported by Bruno Haible.
22806
22807 2010-07-30  Bruno Haible  <bruno@clisp.org>
22808
22809         getline: Update regarding AIX.
22810         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22811         Reported by Rainer Tammer.
22812
22813 2010-07-30  Bruno Haible  <bruno@clisp.org>
22814
22815         wcwidth: Drop replacement on AIX 7.
22816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22817         AIX 7.
22818         Reported by Rainer Tammer.
22819
22820 2010-07-30  Bruno Haible  <bruno@clisp.org>
22821
22822         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22823         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22824         a 'char *'.
22825         Reported by Rainer Tammer.
22826
22827 2010-07-30  Bruno Haible  <bruno@clisp.org>
22828
22829         unlink: Update regarding AIX.
22830         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22831         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22832         Reported by Rainer Tammer.
22833
22834 2010-07-30  Bruno Haible  <bruno@clisp.org>
22835
22836         symlink: Update regarding AIX.
22837         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22838         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22839         Reported by Rainer Tammer.
22840
22841 2010-07-30  Bruno Haible  <bruno@clisp.org>
22842
22843         strndup: Update regarding AIX.
22844         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22845         AIX 7.
22846         Reported by Rainer Tammer.
22847
22848 2010-07-30  Bruno Haible  <bruno@clisp.org>
22849
22850         stat: Update regarding AIX.
22851         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22852         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22853         Reported by Rainer Tammer.
22854
22855 2010-07-30  Bruno Haible  <bruno@clisp.org>
22856
22857         truncl: Fix autoconf test.
22858         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22859         whether truncl works.
22860         Reported by Rainer Tammer.
22861
22862 2010-07-30  Bruno Haible  <bruno@clisp.org>
22863
22864         round: Update regarding AIX.
22865         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22866         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22867         Reported by Rainer Tammer.
22868
22869 2010-07-30  Bruno Haible  <bruno@clisp.org>
22870
22871         rename: Update regarding AIX.
22872         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22873         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22874         Reported by Rainer Tammer.
22875
22876 2010-07-30  Bruno Haible  <bruno@clisp.org>
22877
22878         printf.m4: Update regarding AIX.
22879         * m4/printf.m4: Update comments regarding AIX.
22880         Reported by Rainer Tammer.
22881
22882 2010-07-30  Bruno Haible  <bruno@clisp.org>
22883
22884         iconv: Update regarding AIX.
22885         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22886         AIX 7.
22887         Reported by Rainer Tammer.
22888
22889 2010-07-30  Bruno Haible  <bruno@clisp.org>
22890
22891         getopt: Update regarding AIX.
22892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22893         no on AIX.
22894         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22895         Reported by Rainer Tammer.
22896
22897 2010-07-30  Bruno Haible  <bruno@clisp.org>
22898
22899         ldexpl; Update regarding AIX.
22900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22901         on AIX 7.
22902         Reported by Rainer Tammer.
22903
22904 2010-07-30  Bruno Haible  <bruno@clisp.org>
22905
22906         frexpl: Update regarding AIX.
22907         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22908         on AIX 7.
22909         Reported by Rainer Tammer.
22910
22911 2010-07-30  Bruno Haible  <bruno@clisp.org>
22912
22913         open, fopen: Update regarding AIX.
22914         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22915         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22916         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22917         * doc/posix-functions/fopen.texi: Likewise.
22918         Reported by Rainer Tammer.
22919
22920 2010-07-30  Bruno Haible  <bruno@clisp.org>
22921
22922         chown: Update doc regarding AIX.
22923         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22924         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22925         Reported by Rainer Tammer.
22926
22927 2010-07-30  Eric Blake  <eblake@redhat.com>
22928
22929         strtod: fix bug in replacement function on AIX
22930         * lib/strtod.c (strtod): Special case broken "0x" parse in
22931         underlying strtod.
22932         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22933         * doc/posix-functions/strtod.texi (strtod): Likewise.
22934         Reported by Rainer Tammer.
22935
22936 2010-07-30  Bruno Haible  <bruno@clisp.org>
22937
22938         mbrlen: Fix cross-compilation guess for AIX.
22939         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22940         guess. Leftover from 2008-12-22.
22941
22942 2010-07-30  Bruno Haible  <bruno@clisp.org>
22943
22944         mbrtowc: Fix cross-compilation guess for AIX.
22945         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22946         guess. Leftover from 2008-12-21.
22947
22948 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22949
22950         init.sh: work around trap limitation of some shells
22951         * tests/init.sh (setup_): Move exit trap outside of shell function.
22952
22953 2010-07-29  Eric Blake  <eblake@redhat.com>
22954
22955         strtod: aid debugging
22956         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22957         understanding why strtod is rejected.
22958
22959 2010-07-28  Bruno Haible  <bruno@clisp.org>
22960
22961         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22962         * lib/unistr/u8-chr.c: Include <string.h>.
22963         * tests/unistr/test-u8-chr.c: Likewise.
22964         * tests/unistr/test-u16-chr.c: Likewise.
22965         * tests/unistr/test-u32-chr.c: Likewise.
22966         * tests/unistr/test-u8-strchr.c: Likewise.
22967         * tests/unistr/test-u16-strchr.c: Likewise.
22968         * tests/unistr/test-u32-strchr.c: Likewise.
22969         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22970         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22971         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22972         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22973
22974 2010-07-28  Bruno Haible  <bruno@clisp.org>
22975
22976         Use spaces for indentation, not tabs.
22977         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22978
22979 2010-07-27  Bruno Haible  <bruno@clisp.org>
22980
22981         mbspcasecmp: Fix function specification.
22982         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22983         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22984         Reported by Eric Blake <eblake@redhat.com>.
22985
22986 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22987
22988         timespec: use cast and not conditional, as truncation isn't possible
22989         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22990         instead of a conditional.  Comment about the situation in more detail.
22991         This undoes most of the 2009-10-29 patch.
22992
22993 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22994
22995         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22996         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22997         * lib/unistr/u8-strchr.c: Likewise.
22998         * modules/unistr/u8-chr: Depend on memchr.
22999
23000         unistr/u*-strchr: add tests
23001         * modules/unistr/u8-strchr-tests: New file.
23002         * modules/unistr/u16-strchr-tests: New file.
23003         * modules/unistr/u32-strchr-tests: New file.
23004         * tests/unistr/test-strchr.h: New file.
23005         * tests/unistr/test-u8-strchr.c: New file.
23006         * tests/unistr/test-u16-strchr.c: New file.
23007         * tests/unistr/test-u32-strchr.c: New file.
23008
23009         unistr/u*-chr: test multibyte sequences more
23010         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23011         test vector.
23012         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23013         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23014         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23015
23016         unistr/u*-chr: test multibyte sequences
23017         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23018
23019         unistr/u*-chr: prepare for multibyte tests
23020         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23021         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23022         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23023         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23024         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23025         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23026
23027 2010-07-18  Bruno Haible  <bruno@clisp.org>
23028
23029         unistr/u8-strchr: Optimize non-ASCII argument case.
23030         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23031         because the first byte often matches anyway.
23032         Reported by PĂ¡draig Brady <P@draigbrady.com>.
23033
23034 2010-07-15  Karl Berry  <karl@gnu.org>
23035
23036         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23037
23038 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23039
23040         getcwd: on Solaris, work better if ancestors are inaccessible
23041         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23042         buffer and size, try again with a large buffer.  This works better
23043         on Solaris, since its getcwd succeeds even if the path to the root
23044         is inaccessible, and this is helpful in common cases such as .zfs
23045         hidden directories.  Problem reported by J Chapman Flack in
23046         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23047         Use system getcwd if it's declared, not merely if it's partly
23048         working; use the partly-working test only to avoid needless effort
23049         if the system getcwd fails.
23050         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23051         comment that was already obsolete and is now even more obsolete.
23052         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23053         now might call strdup.
23054
23055 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23056
23057         pthread: Add enough so that coreutils/src/sort.c compiles.
23058         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23059         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23060         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23061         Include <sys/types.h>, in case it defines pthread_t.
23062         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23063         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23064         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23065         (pthread_rwlockattr_t, pthread_spinlock_t):
23066         New typedefs, if HAVE_PTHREAD_T is not defined.
23067         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23068         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23069         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23070         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23071         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23072         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23073         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23074         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23075         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23076         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23077         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23078         New macros.
23079         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23080         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23081         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23082         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23083         (pthread_spin_unlock): New dummy functions.
23084         (pthread_create): Return EAGAIN; don't set errno.
23085         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23086         require AC_C_INLINE.
23087         * modules/pthread (Depends-on): Add sched, time.
23088         (pthread.h): Use AM_V_GEN.
23089
23090 2010-07-13  Bruno Haible  <bruno@clisp.org>
23091
23092         striconveh: Don't malloc memory if the result buffer is sufficient.
23093         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23094         buffer if its size is sufficient.
23095         Reported by Ludovic Courtès <ludo@gnu.org>.
23096
23097 2010-07-13  Bruno Haible  <bruno@clisp.org>
23098
23099         strtod: Add safety check.
23100         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23101
23102 2010-07-12  Bruno Haible  <bruno@clisp.org>
23103
23104         Unify tests that set gl_cv_func_ldexpl_no_libm.
23105         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23106         gl_FUNC_LDEXPL.
23107         (gl_FUNC_LDEXPL): Invoke it.
23108         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23109
23110 2010-07-12  Bruno Haible  <bruno@clisp.org>
23111
23112         Unify tests that set gl_cv_func_ldexp_no_libm.
23113         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23114         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23115         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23116         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23117         * modules/strtod (Files): Add m4/ldexp.m4.
23118
23119 2010-07-12  Bruno Haible  <bruno@clisp.org>
23120
23121         Unify tests that set gl_cv_func_frexpl_no_libm.
23122         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23123         gl_FUNC_FREXPL_NO_LIBM.
23124         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23126
23127 2010-07-12  Bruno Haible  <bruno@clisp.org>
23128
23129         Unify tests that set gl_cv_func_frexp_no_libm.
23130         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23131         gl_FUNC_FREXP_NO_LIBM.
23132         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23133         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23134
23135 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23136
23137         memcoll: clarify sizes versus lengths, document better, and tweak perf
23138         * lib/memcoll.c (strcoll_loop, memcoll0):
23139         Improve quality of descriptive comments.  Name variables
23140         consistently as to whether they are lengths (which do not include
23141         terminating null) versus sizes (which do).
23142         * lib/xmemcoll.c (xmemcoll0): Likewise.
23143         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23144         returned when s1size == 0; this is easier to compile and saves
23145         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23146
23147 2010-07-12  Bruno Haible  <bruno@clisp.org>
23148
23149         Tests for module '_Exit'.
23150         * modules/_Exit-tests: New file.
23151         * tests/test-_Exit.sh: New file.
23152         * tests/test-_Exit.c: New file.
23153
23154         New module '_Exit'.
23155         * lib/stdlib.in.h (__attribute__): New macro.
23156         (_Exit): New declaration.
23157         * lib/_Exit.c: New file.
23158         * m4/_Exit.m4: New file.
23159         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23160         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23161         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23162         * modules/_Exit: New file.
23163         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23164         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23165
23166 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23167
23168         strtod: make it more-accurate typically, and don't require libm
23169         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23170         Include limits.h.  Don't include string.h.
23171         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23172         (locale_isspace): New function, so that no casts are needed to
23173         check whether *s is a space.
23174         (ldexp): Provide an unused dummy if not available.
23175         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23176         (strtod): Use them.  This implementation prefers to use the
23177         underlying strtod if available, falling back on our own code
23178         only to fix known bugs.  This is more likely to produce an
23179         accurate result.  Also, it avoids the use of libm functions.
23180         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23181         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23182         was absent, but it caused a test failure with coreutils.
23183         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23184         with libm.
23185         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23186         * modules/strtod-tests (Makefile.am): Likewise.
23187
23188 2010-07-11  PĂ¡draig Brady  <P@draigBrady.com>
23189             Bruno Haible  <bruno@clisp.org>
23190
23191         unistr/u8-strchr: Optimize ASCII argument case.
23192         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23193
23194 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23195
23196         (x)memcoll: minor tweaks
23197         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23198         is after the type that it qualifies.
23199         (memcoll0): Likewise.
23200         * lib/memcoll.h (memcoll0): Likewise.
23201         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23202         * lib/xmemcoll.h (xmemcoll0): Likewise.
23203         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23204         differs from memcoll in that the NUL byte is part of the argument.
23205         Omit the abort-checks, as performance is a real issue here.  Plus,
23206         the checks were wrong anyway (an off-by-one error).  Omit local
23207         variable 'diff', as it's a bit clearer that way.
23208         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23209         no longer needed.
23210
23211 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23212
23213         (x)memcoll: speedup when input is known to be NUL delimited
23214         * lib/memcoll.c: Include stdlib.
23215         (memcoll0): New function.
23216         (strcoll_loop): New function, refactored for use in both memcoll
23217         and memcoll0.
23218         * lib/memcoll.h (memcoll0): Add prototype.
23219         * lib/xmemcoll.c (xmemcoll0): New function.
23220         (collate_error): New function, refactored for use in both xmemcoll
23221         and xmemcoll0.
23222         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23223         * m4/memcoll.m4: add inline invocation.
23224
23225 2010-07-06  PĂ¡draig Brady  <P@draigBrady.com>
23226
23227         * build-aux/bootstrap: Remove any local translations
23228         from the translation project synchronization directory,
23229         so that local only translations are not distributed.
23230
23231 2010-07-04  Bruno Haible  <bruno@clisp.org>
23232
23233         fsusage: Clarify which code applies to which platforms.
23234         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23235         platform.
23236         * lib/fsusage.c (get_fs_usage): Likewise.
23237
23238 2010-07-04  Bruno Haible  <bruno@clisp.org>
23239
23240         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23241         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23242         Reported by Martin Lambers <marlam@marlam.de>.
23243
23244 2010-07-04  Jim Meyering  <meyering@redhat.com>
23245
23246         hash: once again explicitly disallow insertion of NULL
23247         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23248         inserting a NULL pointer cannot work with these functions.
23249         Add a comment with details.
23250         This reverts part of the 2010-07-01 commit, 5bef1a35
23251         "hash: extend module to deal with non-pointer keys".
23252
23253 2010-07-01  Bruno Haible  <bruno@clisp.org>
23254
23255         stdbool: Update doc.
23256         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23257         Info from Christian Weisgerber <naddy@mips.inka.de>.
23258
23259 2010-07-01  Jim Meyering  <meyering@redhat.com>
23260
23261         hash: extend module to deal with non-pointer keys
23262         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23263         but that allows insertion of non-pointer entries.
23264         Do not disallow an ENTRY value of NULL.
23265         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23266         * lib/hash.h (hash_insert0): Declare.
23267
23268 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23269
23270         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23271         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23272         not present (i.e. with autoconf 2.59 and when using gettextize, not
23273         gnulib), require AC_GNU_SOURCE instead.
23274
23275 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23276
23277         idpriv-drop: Fix tests.
23278         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23279         not to the test-idpriv-droptemp program.
23280
23281 2010-06-29  Bruno Haible  <bruno@clisp.org>
23282
23283         string: Fix syntax error with g++ 2.96.
23284         * lib/string.in.h (__pure__): Remove definition.
23285         (_GL_ATTRIBUTE_PURE): New macro.
23286         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23287         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23288         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23289
23290 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23291
23292         unitypes: Fix bug introduced on 2010-05-18.
23293         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23294
23295 2010-06-22  Eric Blake  <eblake@redhat.com>
23296
23297         memmem: slight optimization
23298         * lib/str-two-way.h (critical_factorization): Update comments.
23299         Reduce work during factorization phase.
23300         Reported by Carlos Bueno <carlos@bueno.org>.
23301
23302 2010-06-21  Bruno Haible  <bruno@clisp.org>
23303
23304         Fix HAVE_CALLOC_POSIX misnomer.
23305         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23306         !HAVE_CALLOC_POSIX.
23307         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23308         HAVE_CALLOC_POSIX.
23309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23310         instead of HAVE_CALLOC_POSIX.
23311         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23312         HAVE_CALLOC_POSIX.
23313
23314         Use modern idiom for calloc() replacement.
23315         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23316         AC_FUNC_CALLOC.
23317         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23318         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23319         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23320         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23321         (gl_REPLACE_CALLOC): New macro.
23322
23323 2010-06-21  Bruno Haible  <bruno@clisp.org>
23324
23325         Fix HAVE_REALLOC_POSIX misnomer.
23326         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23327         !HAVE_REALLOC_POSIX.
23328         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23329         HAVE_REALLOC_POSIX.
23330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23331         instead of HAVE_REALLOC_POSIX.
23332         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23333         HAVE_REALLOC_POSIX.
23334
23335         Use modern idiom for realloc() replacement.
23336         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23337         AC_FUNC_REALLOC.
23338         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23339         Autoconf's AC_FUNC_REALLOC.
23340         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23341         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23342         (gl_REPLACE_REALLOC): New macro.
23343         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23344
23345 2010-06-21  Bruno Haible  <bruno@clisp.org>
23346
23347         Fix HAVE_MALLOC_POSIX misnomer.
23348         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23349         !HAVE_MALLOC_POSIX.
23350         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23351         HAVE_MALLOC_POSIX.
23352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23353         instead of HAVE_MALLOC_POSIX.
23354         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23355         HAVE_MALLOC_POSIX.
23356
23357         Use modern idiom for malloc() replacement.
23358         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23359         AC_FUNC_MALLOC.
23360         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23361         Autoconf's AC_FUNC_MALLOC.
23362         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23363         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23364         (gl_REPLACE_MALLOC): New macro.
23365         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23366
23367 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23368
23369         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23370         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23371         This macro takes 3 arguments, not 4.
23372
23373 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23374
23375         ipv6: fix detection under mingw
23376         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23377         in6_addr.
23378
23379 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23380
23381         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23382         that strtod() works when cross-compiling to a glibc version known
23383         to work.
23384
23385 2010-06-15  Bruno Haible  <bruno@clisp.org>
23386
23387         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23388
23389 2010-06-15  RenĂ© Berber  <r.berber@computer.org>  (tiny change)
23390
23391         select: Correct timeout.
23392         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23393
23394 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23395
23396         git-version-gen: init shell var to avoid env var influence
23397         * build-aux/git-version-gen (v): Init shell var to empty.
23398
23399 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23400
23401         priv-set: Don't assume that priv.h exists merely because getppriv does.
23402         See Jan Andersen's bug report about AIX 5L in
23403         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23404         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23405         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23406         * lib/priv-set.h: Likewise.
23407         * tests/test-priv-set.c: Likewise.
23408
23409 2010-06-13  Bruno Haible  <bruno@clisp.org>
23410
23411         relocatable: Make it easier to test whether to install wrappers.
23412         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23413         RELOCATABLE_VIA_WRAPPER.
23414
23415 2010-06-13  Bruno Haible  <bruno@clisp.org>
23416
23417         gnulib-tool: Display specified modules and dependencies differently.
23418         * gnulib-tool (func_show_module_list): New function.
23419         (func_import, func_create_testdir): Invoke it.
23420         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23421
23422 2010-06-13  Bruno Haible  <bruno@clisp.org>
23423
23424         gnulib-tool: Align code of func_import and func_create_testdir.
23425         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23426         specified_modules.
23427
23428 2010-06-12  Jim Meyering  <meyering@redhat.com>
23429
23430         test-inttostr: avoid spurious failure on Solaris 9
23431         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23432         to accept "%ju".  Reported by Bruno Haible.
23433
23434 2010-06-11  Jim Meyering  <meyering@redhat.com>
23435
23436         test-sys_socket: mark variables as used more readably
23437         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23438         as "used" explicitly via (void) statement casts.  This is more
23439         readable than using them in an artificial return expression.
23440         Suggestion from Bruno Haible.
23441
23442 2010-06-11  Bruno Haible  <bruno@clisp.org>
23443
23444         Avoid some more warnings from "gcc -Wwrite-strings".
23445         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23446         to 'const char *'.
23447         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23448         * tests/test-c-strcasestr.c (main): Likewise.
23449         * tests/test-mbscasestr1.c (main): Likewise.
23450         * tests/test-mbscasestr2.c (main): Likewise.
23451         * tests/test-memmem.c (main): Likewise.
23452         * tests/test-strstr.c (main): Likewise.
23453         * tests/test-strcasestr.c (main): Likewise.
23454
23455 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23456
23457         init.sh: change framework_failure_ to fail with status 99, not 1
23458         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23459         automake's parallel-tests rule that this is an unexpected failure,
23460         even if the test is listed in XFAIL_TESTS.
23461
23462 2010-06-11  Jim Meyering  <meyering@redhat.com>
23463
23464         test-inttostr: avoid warnings about 4-6KB literal strings
23465         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23466         Include "macros.h", for its definition of ASSERT.
23467         (CK): s/assert/ASSERT/
23468         * modules/inttostr-tests (Files): Add macros.h.
23469
23470         init.sh: don't use $ME_ or skip_ before they are defined
23471         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23472         their first uses.  Also hoist their companions: warn_, fail_,
23473         framework_failure_, $stderr_fileno.  Prompted by a patch from
23474         Stefano Lattarini.
23475
23476         test-sys_socket: avoid set-but-not-used warnings from gcc
23477         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23478         avoid warning about set-but-not-used variables.
23479
23480         test-xvasprintf: avoid 'const' discard warnings
23481         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23482         "const" when assigning from literal strings.
23483         (test_xasprintf): Add "void" in function argument list to placate
23484         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23485
23486         tests: avoid compilation warnings in argmatch and exclude tests...
23487         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23488         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23489         Since it always exits, declare with the "noreturn" attribute.
23490         * tests/test-argmatch.c: Likewise.
23491
23492         tests: avoid 'const' discard warnings in mbsstr tests
23493         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23494         * tests/test-mbsstr2.c (main): Likewise.
23495
23496         test-verify: avoid warning from gcc's -Wmissing-declarations
23497         * tests/test-verify.c (function): Declare to be static.
23498
23499         test-inttostr.c: include <string.h> for use of strcmp
23500         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23501
23502         test-linkat: avoid failed assertion on "other" architectures
23503         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23504         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23505         sparc: https://bugs.launchpad.net/bugs/591968
23506
23507 2010-06-11  Jim Meyering  <meyering@redhat.com>
23508
23509         printf.m4: avoid autoconf's "Expanded Before Required" warning
23510         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23511         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23512         autoconf warning.
23513
23514 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23515
23516         Replacement header templates are now named with ".in", not "_".
23517         * doc/gnulib-intro.texi: Correct.
23518
23519 2010-06-10  Jim Meyering  <meyering@redhat.com>
23520
23521         inttostr-tests: depend on snprintf, not snprintf-posix
23522         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23523         snprintf-posix, to avoid this aclocal failure:
23524           missing file gnulib-tests/vasnprintf.c
23525           configure.ac:45: error: expected source file, required through \
23526           AC_LIBSOURCES, not found
23527
23528 2010-06-10  Jim Meyering  <meyering@redhat.com>
23529
23530         inttostr: add a new function, inttostr, and tests
23531         The namesake function was not available.  The existence of the
23532         template file, inttostr.c makes its addition nontrivial.
23533         * lib/anytostr.c: Rename from inttostr.c.
23534         (anytostr): Rename from inttostr.
23535         * lib/inttostr.c: New file.
23536         * modules/inttostr (Files): Add anytostr.c.
23537         (Makefile.am): Set lib_SOURCES instead of ...
23538         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23539         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23540         * lib/offtostr.c: Likewise.
23541         * lib/uinttostr.c: Likewise.
23542         * lib/umaxtostr.c: Likewise.
23543         * modules/inttostr-tests: New file.
23544         * tests/test-inttostr.c: New file.  Test these functions.
23545
23546 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23547             Bruno Haible  <bruno@clisp.org>
23548
23549         Add "Extending Gnulib" chapter to manual.
23550         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23551         chapter.
23552         (Extending Gnulib): New chapter.
23553         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23554         chapter.
23555
23556 2010-06-09  Bruno Haible  <bruno@clisp.org>
23557
23558         Avoid relocwrapper link errors due to gnulib replacement functions.
23559         * lib/areadlink.c: Use the system's malloc, realloc functions.
23560         (areadlink): Set errno to ENOMEM explicitly.
23561         * modules/areadlink (Depends-on): Remove malloc-posix.
23562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23563
23564 2010-06-09  Bruno Haible  <bruno@clisp.org>
23565
23566         Avoid relocwrapper link errors due to gnulib replacement functions.
23567         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23568         * lib/malloca.c: Likewise.
23569         * lib/relocatable.c: Likewise.
23570         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23571         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23572         * lib/setenv.c: Use the system's malloc, realloc functions.
23573         * lib/strerror.c: Use the system's sprintf function.
23574         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23575
23576 2010-06-04  Bruno Haible  <bruno@clisp.org>
23577
23578         Prefer documented low-level autoconf macro names.
23579         * m4/lib-link.m4: Use m4_translit instead of translit.
23580         * m4/environ.m4: Likewise.
23581         * m4/mathfunc.m4: Likewise.
23582         * m4/onceonly.m4: Likewise.
23583         * m4/stdint.m4: Likewise.
23584         Suggested by Eric Blake.
23585
23586 2010-06-04  Martin Lambers  <marlam@marlam.de>
23587             Bruno Haible  <bruno@clisp.org>
23588
23589         havelib: Allow library names with '+' characters.
23590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23591         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23592
23593 2010-06-09  Bruno Haible  <bruno@clisp.org>
23594
23595         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23596         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23597         realloc failed.
23598
23599 2010-06-08  Peter Simons  <simons@cryp.to>
23600
23601         maint.mk: make the news-check rule more configurable
23602         * top/maint.mk (news-check-lines-spec): New variable.
23603         (news-check): Use "sed -n 1,10p" in place of "head".
23604
23605 2010-06-07  Jim Meyering  <meyering@redhat.com>
23606
23607         do-release-commit-and-tag: fix typo in --help
23608         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23609
23610         regex: avoid new dead-code warning with gcc-4.6.0
23611         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23612         if-block containing a while-loop.  It's been unused for at least
23613         5 years.
23614
23615 2010-06-05  Bruno Haible  <bruno@clisp.org>
23616
23617         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23618         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23619
23620 2010-06-04  Bruno Haible  <bruno@clisp.org>
23621
23622         Update to GNU gettext 0.18.1.
23623         * modules/gettext (configure.ac): Require gettext infrastructure from
23624         version 0.18.1.
23625
23626 2010-06-03  Bruno Haible  <bruno@clisp.org>
23627
23628         Don't use AC_LIBOBJ with file names in subdirectories.
23629         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23630         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23631         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23632         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23633         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23634         gl_LIBUNISTRING_LIBSOURCE.
23635         (Makefile.am): Augment lib_SOURCES here, conditionally.
23636         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23637
23638 2010-06-03  Bruno Haible  <bruno@clisp.org>
23639
23640         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23641         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23642         expansion does not end with a newline.
23643         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23644         unnecessary newline.
23645
23646 2010-06-03  Bruno Haible  <bruno@clisp.org>
23647
23648         Reduce dependencies.
23649         * tests/test-quotearg.h: New file, extracted from
23650         tests/test-quotearg.c.
23651         * tests/test-quotearg-simple.c: New file, extracted from
23652         tests/test-quotearg.c.
23653         * tests/test-quotearg.c: Don't include <ctype.h>.
23654         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23655         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23656         use_quote_double_quotes, use_quotearg_colon): Moved to
23657         tests/test-quotearg.h.
23658         (results_g, flag_results, custom_quotes, custom_results): Moved
23659         to tests/test-quotearg-simple.c.
23660         (main): Moved the part that does not depend on gettext to
23661         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23662         performed.
23663         * modules/quotearg-simple: New file.
23664         * modules/quotearg-simple-tests: New file.
23665         * modules/quotearg (Depends-on): Add quotearg-simple.
23666         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23667         (Files): Add tests/test-quotearg.h.
23668         Reported by Paolo Bonzini.
23669
23670 2010-06-03  Bruno Haible  <bruno@clisp.org>
23671
23672         Reduce dependencies.
23673         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23674
23675 2010-06-03  Bruno Haible  <bruno@clisp.org>
23676
23677         time: Undefine more broken macros.
23678         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23679         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23680         Reported by Eric Blake.
23681
23682 2010-06-03  Bruno Haible  <bruno@clisp.org>
23683
23684         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23685         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23686         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23687         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23688         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23689         Reported by Ludovic Courtès <ludo@gnu.org>.
23690
23691 2010-06-02  Eric Blake  <eblake@redhat.com>
23692
23693         time: work with mingw + pthreads-win32 library
23694         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23695         if timespec is defined only in pthread.h.
23696         * modules/time (Makefile.am): Substitute it.
23697         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23698         <pthread.h>, when needed.
23699         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23700         from the library.
23701
23702 2010-05-31  Bruno Haible  <bruno@clisp.org>
23703
23704         Avoid expanding two macros in the wrong order.
23705         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23706         gl_LIBUNISTRING if it is defined.
23707         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23708         autoconf >= 2.64.
23709         Reported by Ludovic Courtès <ludo@gnu.org>.
23710
23711 2010-05-27  Jim Meyering  <meyering@redhat.com>
23712
23713         maint.mk: also prohibit "#undef" of always-defined symbols
23714         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23715         Allow more than one space before the symbol name.
23716         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23717         the regexp uses alternation.
23718
23719 2010-05-26  Eric Blake  <eblake@redhat.com>
23720
23721         maint.mk: avoid echo -e
23722         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23723         Convert all uses of echo -* to printf.
23724         Reported by Matthias Bolte.
23725
23726 2010-05-25  Bruno Haible  <bruno@clisp.org>
23727
23728         Update to GNU gettext 0.18, part 2.
23729         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23730         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23731
23732 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23733
23734         Add missing include in test-pwrite.c.
23735         * tests/test-pwrite.c: Include string.h, for strcmp.
23736
23737 2010-05-24  Bruno Haible  <bruno@clisp.org>
23738
23739         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23740
23741 2010-05-24  Bruno Haible  <bruno@clisp.org>
23742
23743         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23744         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23745         iconveh_error argument.
23746         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23747         U_STRCONV_TO_LOCALE.
23748         * lib/unistr/u16-strcoll.c: Likewise.
23749         * lib/unistr/u32-strcoll.c: Likewise.
23750         * modules/unistr/u8-strcoll (Depends-on): Add
23751         uniconv/u8-strconv-to-enc, localcharset. Remove
23752         uniconv/u8-strconv-to-locale.
23753         (configure.ac): Bump version number.
23754         * modules/unistr/u16-strcoll (Depends-on): Add
23755         uniconv/u16-strconv-to-enc, localcharset. Remove
23756         uniconv/u16-strconv-to-locale.
23757         (configure.ac): Bump version number.
23758         * modules/unistr/u32-strcoll (Depends-on): Add
23759         uniconv/u32-strconv-to-enc, localcharset. Remove
23760         uniconv/u32-strconv-to-locale.
23761         (configure.ac): Bump version number.
23762
23763 2010-05-24  Bruno Haible  <bruno@clisp.org>
23764
23765         Avoid a test failure on NetBSD 5.0.
23766         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23767         an iconv() bug.
23768
23769 2010-05-24  Bruno Haible  <bruno@clisp.org>
23770
23771         Adjust #include directive style.
23772         * modules/regex (Includes): Recommend to write <regex.h>.
23773
23774 2010-05-24  Bruno Haible  <bruno@clisp.org>
23775
23776         regex: Don't require alloca.
23777         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23778         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23779         only inside if (0).
23780
23781 2010-05-23  Jim Meyering  <meyering@redhat.com>
23782
23783         test-renameat.c: include <sys/stat.h>
23784         * tests/test-renameat.c: Include <sys/stat.h>; required for
23785         definition of S_IS* macros.
23786
23787 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23788
23789         Update maintainer documentation for 'relocatable-prog' module.
23790         * doc/relocatable-maint.texi: Update.
23791         Comments by Bruno Haible.
23792
23793 2010-05-23  Bruno Haible  <bruno@clisp.org>
23794
23795         git-merge-changelog: Enable --split-merged-entry by default.
23796         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23797         (usage): Don't mention this option any more.
23798         Reported by Ralf Wildenhues.
23799
23800 2010-05-23  Jim Meyering  <meyering@redhat.com>
23801
23802         test-pwrite: do not leave behind a test file named "out"
23803         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23804         The trivial-looking use of init.sh is really necessary.
23805         It ensures that the temporary file, "out", is created in
23806         a temporary directory, and removed upon termination.
23807         * tests/test-pwrite.sh: Re-add file.
23808         * modules/pwrite-tests: Reference it.
23809
23810 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23811
23812         Fix output redirection buglet in init.sh.
23813         * tests/init.sh: Fix redirection of stderr.
23814
23815 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23816
23817         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23818
23819 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23820
23821         * modules/valgrind-tests: New file.
23822         * m4/valgrind-tests.m4: New file.
23823         * doc/valgrind-tests.texi: New file.
23824         * doc/gnulib.texi (Running self-tests under valgrind): New
23825         section.
23826
23827 2010-05-19  Bruno Haible  <bruno@clisp.org>
23828
23829         Clean up dead code in recent commit.
23830         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23831         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23832         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23833         Suggested by Paolo Bonzini.
23834
23835 2010-05-19  Bruno Haible  <bruno@clisp.org>
23836
23837         Avoid valgrind error reports from libunistring.
23838         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23839         * modules/libunistring (Files): Add it.
23840         * modules/libunistring-optional (Files): Likewise.
23841
23842 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23843             Bruno Haible  <bruno@clisp.org>
23844
23845         New module 'libunistring-optional'.
23846         * modules/libunistring-optional: New file.
23847         * m4/libunistring-base.m4: New file.
23848         * m4/libunistring-optional.m4: New file.
23849         * lib/unicase.in.h: Renamed from lib/unicase.h.
23850         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23851         * lib/unictype.in.h: Renamed from lib/unictype.h.
23852         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23853         * lib/uniname.in.h: Renamed from lib/uniname.h.
23854         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23855         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23856         * lib/unistr.in.h: Renamed from lib/unistr.h.
23857         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23858         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23859         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23860         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23861         gl_LIBUNISTRING. If the library was found, determine the installed
23862         version and set LIBUNISTRING_VERSION.
23863         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23864         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23865         handle a configuration option --with-included-libunistring.
23866         * modules/libunistring (Files): Add m4/absolute-header.m4.
23867         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23868         Add m4/libunistring-base.m4.
23869         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23870         (Makefile.am): Build unicase.h from unicase.in.h.
23871         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23872         Add m4/libunistring-base.m4.
23873         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23874         (Makefile.am): Build uniconv.h from uniconv.in.h.
23875         * modules/unictype/base (Files): Use unictype.in.h instead of
23876         unictype.h. Add m4/libunistring-base.m4.
23877         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23878         (Makefile.am): Build unictype.h from unictype.in.h.
23879         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23880         Add m4/libunistring-base.m4.
23881         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23882         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23883         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23884         Add m4/libunistring-base.m4.
23885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23886         (Makefile.am): Build uniname.h from uniname.in.h.
23887         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23888         Add m4/libunistring-base.m4.
23889         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23890         (Makefile.am): Build uninorm.h from uninorm.in.h.
23891         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23892         unistdio.h. Add m4/libunistring-base.m4.
23893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23894         (Makefile.am): Build unistdio.h from unistdio.in.h.
23895         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23896         Add m4/libunistring-base.m4.
23897         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23898         (Makefile.am): Build unistr.h from unistr.in.h.
23899         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23900         Add m4/libunistring-base.m4.
23901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23902         (Makefile.am): Build unitypes.h from unitypes.in.h.
23903         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23904         Add m4/libunistring-base.m4.
23905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23906         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23907         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23908         uniwidth.h. Add m4/libunistring-base.m4.
23909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23910         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23911         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23912         instead of augmenting lib_SOURCES.
23913         * modules/unicase/empty-suffix-context: Likewise.
23914         * modules/unicase/locale-language: Likewise.
23915         * modules/unicase/tolower: Likewise.
23916         * modules/unicase/totitle: Likewise.
23917         * modules/unicase/toupper: Likewise.
23918         * modules/unicase/u8-casecmp: Likewise.
23919         * modules/unicase/u8-casecoll: Likewise.
23920         * modules/unicase/u8-casefold: Likewise.
23921         * modules/unicase/u8-casexfrm: Likewise.
23922         * modules/unicase/u8-ct-casefold: Likewise.
23923         * modules/unicase/u8-ct-tolower: Likewise.
23924         * modules/unicase/u8-ct-totitle: Likewise.
23925         * modules/unicase/u8-ct-toupper: Likewise.
23926         * modules/unicase/u8-is-cased: Likewise.
23927         * modules/unicase/u8-is-casefolded: Likewise.
23928         * modules/unicase/u8-is-lowercase: Likewise.
23929         * modules/unicase/u8-is-titlecase: Likewise.
23930         * modules/unicase/u8-is-uppercase: Likewise.
23931         * modules/unicase/u8-prefix-context: Likewise.
23932         * modules/unicase/u8-suffix-context: Likewise.
23933         * modules/unicase/u8-tolower: Likewise.
23934         * modules/unicase/u8-totitle: Likewise.
23935         * modules/unicase/u8-toupper: Likewise.
23936         * modules/unicase/u16-casecmp: Likewise.
23937         * modules/unicase/u16-casecoll: Likewise.
23938         * modules/unicase/u16-casefold: Likewise.
23939         * modules/unicase/u16-casexfrm: Likewise.
23940         * modules/unicase/u16-ct-casefold: Likewise.
23941         * modules/unicase/u16-ct-tolower: Likewise.
23942         * modules/unicase/u16-ct-totitle: Likewise.
23943         * modules/unicase/u16-ct-toupper: Likewise.
23944         * modules/unicase/u16-is-cased: Likewise.
23945         * modules/unicase/u16-is-casefolded: Likewise.
23946         * modules/unicase/u16-is-lowercase: Likewise.
23947         * modules/unicase/u16-is-titlecase: Likewise.
23948         * modules/unicase/u16-is-uppercase: Likewise.
23949         * modules/unicase/u16-prefix-context: Likewise.
23950         * modules/unicase/u16-suffix-context: Likewise.
23951         * modules/unicase/u16-tolower: Likewise.
23952         * modules/unicase/u16-totitle: Likewise.
23953         * modules/unicase/u16-toupper: Likewise.
23954         * modules/unicase/u32-casecmp: Likewise.
23955         * modules/unicase/u32-casecoll: Likewise.
23956         * modules/unicase/u32-casefold: Likewise.
23957         * modules/unicase/u32-casexfrm: Likewise.
23958         * modules/unicase/u32-ct-casefold: Likewise.
23959         * modules/unicase/u32-ct-tolower: Likewise.
23960         * modules/unicase/u32-ct-totitle: Likewise.
23961         * modules/unicase/u32-ct-toupper: Likewise.
23962         * modules/unicase/u32-is-cased: Likewise.
23963         * modules/unicase/u32-is-casefolded: Likewise.
23964         * modules/unicase/u32-is-lowercase: Likewise.
23965         * modules/unicase/u32-is-titlecase: Likewise.
23966         * modules/unicase/u32-is-uppercase: Likewise.
23967         * modules/unicase/u32-prefix-context: Likewise.
23968         * modules/unicase/u32-suffix-context: Likewise.
23969         * modules/unicase/u32-tolower: Likewise.
23970         * modules/unicase/u32-totitle: Likewise.
23971         * modules/unicase/u32-toupper: Likewise.
23972         * modules/unicase/ulc-casecmp: Likewise.
23973         * modules/unicase/ulc-casecoll: Likewise.
23974         * modules/unicase/ulc-casexfrm: Likewise.
23975         * modules/uniconv/u8-conv-from-enc: Likewise.
23976         * modules/uniconv/u8-conv-to-enc: Likewise.
23977         * modules/uniconv/u8-strconv-from-enc: Likewise.
23978         * modules/uniconv/u8-strconv-from-locale: Likewise.
23979         * modules/uniconv/u8-strconv-to-enc: Likewise.
23980         * modules/uniconv/u8-strconv-to-locale: Likewise.
23981         * modules/uniconv/u16-conv-from-enc: Likewise.
23982         * modules/uniconv/u16-conv-to-enc: Likewise.
23983         * modules/uniconv/u16-strconv-from-enc: Likewise.
23984         * modules/uniconv/u16-strconv-from-locale: Likewise.
23985         * modules/uniconv/u16-strconv-to-enc: Likewise.
23986         * modules/uniconv/u16-strconv-to-locale: Likewise.
23987         * modules/uniconv/u32-conv-from-enc: Likewise.
23988         * modules/uniconv/u32-conv-to-enc: Likewise.
23989         * modules/uniconv/u32-strconv-from-enc: Likewise.
23990         * modules/uniconv/u32-strconv-from-locale: Likewise.
23991         * modules/uniconv/u32-strconv-to-enc: Likewise.
23992         * modules/uniconv/u32-strconv-to-locale: Likewise.
23993         * modules/unictype/bidicategory-byname: Likewise.
23994         * modules/unictype/bidicategory-name: Likewise.
23995         * modules/unictype/bidicategory-of: Likewise.
23996         * modules/unictype/bidicategory-test: Likewise.
23997         * modules/unictype/block-list: Likewise.
23998         * modules/unictype/block-test: Likewise.
23999         * modules/unictype/category-C: Likewise.
24000         * modules/unictype/category-Cc: Likewise.
24001         * modules/unictype/category-Cf: Likewise.
24002         * modules/unictype/category-Cn: Likewise.
24003         * modules/unictype/category-Co: Likewise.
24004         * modules/unictype/category-Cs: Likewise.
24005         * modules/unictype/category-L: Likewise.
24006         * modules/unictype/category-Ll: Likewise.
24007         * modules/unictype/category-Lm: Likewise.
24008         * modules/unictype/category-Lo: Likewise.
24009         * modules/unictype/category-Lt: Likewise.
24010         * modules/unictype/category-Lu: Likewise.
24011         * modules/unictype/category-M: Likewise.
24012         * modules/unictype/category-Mc: Likewise.
24013         * modules/unictype/category-Me: Likewise.
24014         * modules/unictype/category-Mn: Likewise.
24015         * modules/unictype/category-N: Likewise.
24016         * modules/unictype/category-Nd: Likewise.
24017         * modules/unictype/category-Nl: Likewise.
24018         * modules/unictype/category-No: Likewise.
24019         * modules/unictype/category-P: Likewise.
24020         * modules/unictype/category-Pc: Likewise.
24021         * modules/unictype/category-Pd: Likewise.
24022         * modules/unictype/category-Pe: Likewise.
24023         * modules/unictype/category-Pf: Likewise.
24024         * modules/unictype/category-Pi: Likewise.
24025         * modules/unictype/category-Po: Likewise.
24026         * modules/unictype/category-Ps: Likewise.
24027         * modules/unictype/category-S: Likewise.
24028         * modules/unictype/category-Sc: Likewise.
24029         * modules/unictype/category-Sk: Likewise.
24030         * modules/unictype/category-Sm: Likewise.
24031         * modules/unictype/category-So: Likewise.
24032         * modules/unictype/category-Z: Likewise.
24033         * modules/unictype/category-Zl: Likewise.
24034         * modules/unictype/category-Zp: Likewise.
24035         * modules/unictype/category-Zs: Likewise.
24036         * modules/unictype/category-and: Likewise.
24037         * modules/unictype/category-and-not: Likewise.
24038         * modules/unictype/category-byname: Likewise.
24039         * modules/unictype/category-name: Likewise.
24040         * modules/unictype/category-none: Likewise.
24041         * modules/unictype/category-of: Likewise.
24042         * modules/unictype/category-or: Likewise.
24043         * modules/unictype/category-test: Likewise.
24044         * modules/unictype/combining-class: Likewise.
24045         * modules/unictype/ctype-alnum: Likewise.
24046         * modules/unictype/ctype-alpha: Likewise.
24047         * modules/unictype/ctype-blank: Likewise.
24048         * modules/unictype/ctype-cntrl: Likewise.
24049         * modules/unictype/ctype-digit: Likewise.
24050         * modules/unictype/ctype-graph: Likewise.
24051         * modules/unictype/ctype-lower: Likewise.
24052         * modules/unictype/ctype-print: Likewise.
24053         * modules/unictype/ctype-punct: Likewise.
24054         * modules/unictype/ctype-space: Likewise.
24055         * modules/unictype/ctype-upper: Likewise.
24056         * modules/unictype/ctype-xdigit: Likewise.
24057         * modules/unictype/decimal-digit: Likewise.
24058         * modules/unictype/digit: Likewise.
24059         * modules/unictype/mirror: Likewise.
24060         * modules/unictype/numeric: Likewise.
24061         * modules/unictype/property-alphabetic: Likewise.
24062         * modules/unictype/property-ascii-hex-digit: Likewise.
24063         * modules/unictype/property-bidi-arabic-digit: Likewise.
24064         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24065         * modules/unictype/property-bidi-block-separator: Likewise.
24066         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24067         * modules/unictype/property-bidi-common-separator: Likewise.
24068         * modules/unictype/property-bidi-control: Likewise.
24069         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24070         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24071         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24072         * modules/unictype/property-bidi-european-digit: Likewise.
24073         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24074         * modules/unictype/property-bidi-left-to-right: Likewise.
24075         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24076         * modules/unictype/property-bidi-other-neutral: Likewise.
24077         * modules/unictype/property-bidi-pdf: Likewise.
24078         * modules/unictype/property-bidi-segment-separator: Likewise.
24079         * modules/unictype/property-bidi-whitespace: Likewise.
24080         * modules/unictype/property-byname: Likewise.
24081         * modules/unictype/property-combining: Likewise.
24082         * modules/unictype/property-composite: Likewise.
24083         * modules/unictype/property-currency-symbol: Likewise.
24084         * modules/unictype/property-dash: Likewise.
24085         * modules/unictype/property-decimal-digit: Likewise.
24086         * modules/unictype/property-default-ignorable-code-point: Likewise.
24087         * modules/unictype/property-deprecated: Likewise.
24088         * modules/unictype/property-diacritic: Likewise.
24089         * modules/unictype/property-extender: Likewise.
24090         * modules/unictype/property-format-control: Likewise.
24091         * modules/unictype/property-grapheme-base: Likewise.
24092         * modules/unictype/property-grapheme-extend: Likewise.
24093         * modules/unictype/property-grapheme-link: Likewise.
24094         * modules/unictype/property-hex-digit: Likewise.
24095         * modules/unictype/property-hyphen: Likewise.
24096         * modules/unictype/property-id-continue: Likewise.
24097         * modules/unictype/property-id-start: Likewise.
24098         * modules/unictype/property-ideographic: Likewise.
24099         * modules/unictype/property-ids-binary-operator: Likewise.
24100         * modules/unictype/property-ids-trinary-operator: Likewise.
24101         * modules/unictype/property-ignorable-control: Likewise.
24102         * modules/unictype/property-iso-control: Likewise.
24103         * modules/unictype/property-join-control: Likewise.
24104         * modules/unictype/property-left-of-pair: Likewise.
24105         * modules/unictype/property-line-separator: Likewise.
24106         * modules/unictype/property-logical-order-exception: Likewise.
24107         * modules/unictype/property-lowercase: Likewise.
24108         * modules/unictype/property-math: Likewise.
24109         * modules/unictype/property-non-break: Likewise.
24110         * modules/unictype/property-not-a-character: Likewise.
24111         * modules/unictype/property-numeric: Likewise.
24112         * modules/unictype/property-other-alphabetic: Likewise.
24113         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24114         * modules/unictype/property-other-grapheme-extend: Likewise.
24115         * modules/unictype/property-other-id-continue: Likewise.
24116         * modules/unictype/property-other-id-start: Likewise.
24117         * modules/unictype/property-other-lowercase: Likewise.
24118         * modules/unictype/property-other-math: Likewise.
24119         * modules/unictype/property-other-uppercase: Likewise.
24120         * modules/unictype/property-paired-punctuation: Likewise.
24121         * modules/unictype/property-paragraph-separator: Likewise.
24122         * modules/unictype/property-pattern-syntax: Likewise.
24123         * modules/unictype/property-pattern-white-space: Likewise.
24124         * modules/unictype/property-private-use: Likewise.
24125         * modules/unictype/property-punctuation: Likewise.
24126         * modules/unictype/property-quotation-mark: Likewise.
24127         * modules/unictype/property-radical: Likewise.
24128         * modules/unictype/property-sentence-terminal: Likewise.
24129         * modules/unictype/property-soft-dotted: Likewise.
24130         * modules/unictype/property-space: Likewise.
24131         * modules/unictype/property-terminal-punctuation: Likewise.
24132         * modules/unictype/property-test: Likewise.
24133         * modules/unictype/property-titlecase: Likewise.
24134         * modules/unictype/property-unassigned-code-value: Likewise.
24135         * modules/unictype/property-unified-ideograph: Likewise.
24136         * modules/unictype/property-uppercase: Likewise.
24137         * modules/unictype/property-variation-selector: Likewise.
24138         * modules/unictype/property-white-space: Likewise.
24139         * modules/unictype/property-xid-continue: Likewise.
24140         * modules/unictype/property-xid-start: Likewise.
24141         * modules/unictype/property-zero-width: Likewise.
24142         * modules/unictype/scripts: Likewise.
24143         * modules/unictype/syntax-c-ident: Likewise.
24144         * modules/unictype/syntax-c-whitespace: Likewise.
24145         * modules/unictype/syntax-java-ident: Likewise.
24146         * modules/unictype/syntax-java-whitespace: Likewise.
24147         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24148         * modules/unilbrk/u8-width-linebreaks: Likewise.
24149         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24150         * modules/unilbrk/u16-width-linebreaks: Likewise.
24151         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24152         * modules/unilbrk/u32-width-linebreaks: Likewise.
24153         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24154         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24155         * modules/uniname/uniname: Likewise.
24156         * modules/uninorm/canonical-decomposition: Likewise.
24157         * modules/uninorm/composition: Likewise.
24158         * modules/uninorm/decomposing-form: Likewise.
24159         * modules/uninorm/decomposition: Likewise.
24160         * modules/uninorm/filter: Likewise.
24161         * modules/uninorm/nfc: Likewise.
24162         * modules/uninorm/nfd: Likewise.
24163         * modules/uninorm/nfkc: Likewise.
24164         * modules/uninorm/nfkd: Likewise.
24165         * modules/uninorm/u8-normalize: Likewise.
24166         * modules/uninorm/u8-normcmp: Likewise.
24167         * modules/uninorm/u8-normcoll: Likewise.
24168         * modules/uninorm/u8-normxfrm: Likewise.
24169         * modules/uninorm/u16-normalize: Likewise.
24170         * modules/uninorm/u16-normcmp: Likewise.
24171         * modules/uninorm/u16-normcoll: Likewise.
24172         * modules/uninorm/u16-normxfrm: Likewise.
24173         * modules/uninorm/u32-normalize: Likewise.
24174         * modules/uninorm/u32-normcmp: Likewise.
24175         * modules/uninorm/u32-normcoll: Likewise.
24176         * modules/uninorm/u32-normxfrm: Likewise.
24177         * modules/unistdio/u8-asnprintf: Likewise.
24178         * modules/unistdio/u8-asprintf: Likewise.
24179         * modules/unistdio/u8-snprintf: Likewise.
24180         * modules/unistdio/u8-sprintf: Likewise.
24181         * modules/unistdio/u8-u8-asnprintf: Likewise.
24182         * modules/unistdio/u8-u8-asprintf: Likewise.
24183         * modules/unistdio/u8-u8-snprintf: Likewise.
24184         * modules/unistdio/u8-u8-sprintf: Likewise.
24185         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24186         * modules/unistdio/u8-u8-vasprintf: Likewise.
24187         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24188         * modules/unistdio/u8-u8-vsprintf: Likewise.
24189         * modules/unistdio/u8-vasnprintf: Likewise.
24190         * modules/unistdio/u8-vasprintf: Likewise.
24191         * modules/unistdio/u8-vsnprintf: Likewise.
24192         * modules/unistdio/u8-vsprintf: Likewise.
24193         * modules/unistdio/u16-asnprintf: Likewise.
24194         * modules/unistdio/u16-asprintf: Likewise.
24195         * modules/unistdio/u16-snprintf: Likewise.
24196         * modules/unistdio/u16-sprintf: Likewise.
24197         * modules/unistdio/u16-u16-asnprintf: Likewise.
24198         * modules/unistdio/u16-u16-asprintf: Likewise.
24199         * modules/unistdio/u16-u16-snprintf: Likewise.
24200         * modules/unistdio/u16-u16-sprintf: Likewise.
24201         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24202         * modules/unistdio/u16-u16-vasprintf: Likewise.
24203         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24204         * modules/unistdio/u16-u16-vsprintf: Likewise.
24205         * modules/unistdio/u16-vasnprintf: Likewise.
24206         * modules/unistdio/u16-vasprintf: Likewise.
24207         * modules/unistdio/u16-vsnprintf: Likewise.
24208         * modules/unistdio/u16-vsprintf: Likewise.
24209         * modules/unistdio/u32-asnprintf: Likewise.
24210         * modules/unistdio/u32-asprintf: Likewise.
24211         * modules/unistdio/u32-snprintf: Likewise.
24212         * modules/unistdio/u32-sprintf: Likewise.
24213         * modules/unistdio/u32-u32-asnprintf: Likewise.
24214         * modules/unistdio/u32-u32-asprintf: Likewise.
24215         * modules/unistdio/u32-u32-snprintf: Likewise.
24216         * modules/unistdio/u32-u32-sprintf: Likewise.
24217         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24218         * modules/unistdio/u32-u32-vasprintf: Likewise.
24219         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24220         * modules/unistdio/u32-u32-vsprintf: Likewise.
24221         * modules/unistdio/u32-vasnprintf: Likewise.
24222         * modules/unistdio/u32-vasprintf: Likewise.
24223         * modules/unistdio/u32-vsnprintf: Likewise.
24224         * modules/unistdio/u32-vsprintf: Likewise.
24225         * modules/unistdio/ulc-asnprintf: Likewise.
24226         * modules/unistdio/ulc-asprintf: Likewise.
24227         * modules/unistdio/ulc-fprintf: Likewise.
24228         * modules/unistdio/ulc-snprintf: Likewise.
24229         * modules/unistdio/ulc-sprintf: Likewise.
24230         * modules/unistdio/ulc-vasnprintf: Likewise.
24231         * modules/unistdio/ulc-vasprintf: Likewise.
24232         * modules/unistdio/ulc-vfprintf: Likewise.
24233         * modules/unistdio/ulc-vsnprintf: Likewise.
24234         * modules/unistdio/ulc-vsprintf: Likewise.
24235         * modules/unistr/u8-check: Likewise.
24236         * modules/unistr/u8-chr: Likewise.
24237         * modules/unistr/u8-cmp: Likewise.
24238         * modules/unistr/u8-cmp2: Likewise.
24239         * modules/unistr/u8-cpy: Likewise.
24240         * modules/unistr/u8-cpy-alloc: Likewise.
24241         * modules/unistr/u8-endswith: Likewise.
24242         * modules/unistr/u8-mblen: Likewise.
24243         * modules/unistr/u8-mbsnlen: Likewise.
24244         * modules/unistr/u8-mbtouc: Likewise.
24245         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24246         * modules/unistr/u8-mbtoucr: Likewise.
24247         * modules/unistr/u8-move: Likewise.
24248         * modules/unistr/u8-next: Likewise.
24249         * modules/unistr/u8-prev: Likewise.
24250         * modules/unistr/u8-set: Likewise.
24251         * modules/unistr/u8-startswith: Likewise.
24252         * modules/unistr/u8-stpcpy: Likewise.
24253         * modules/unistr/u8-stpncpy: Likewise.
24254         * modules/unistr/u8-strcat: Likewise.
24255         * modules/unistr/u8-strchr: Likewise.
24256         * modules/unistr/u8-strcmp: Likewise.
24257         * modules/unistr/u8-strcoll: Likewise.
24258         * modules/unistr/u8-strcpy: Likewise.
24259         * modules/unistr/u8-strcspn: Likewise.
24260         * modules/unistr/u8-strdup: Likewise.
24261         * modules/unistr/u8-strlen: Likewise.
24262         * modules/unistr/u8-strmblen: Likewise.
24263         * modules/unistr/u8-strmbtouc: Likewise.
24264         * modules/unistr/u8-strncat: Likewise.
24265         * modules/unistr/u8-strncmp: Likewise.
24266         * modules/unistr/u8-strncpy: Likewise.
24267         * modules/unistr/u8-strnlen: Likewise.
24268         * modules/unistr/u8-strpbrk: Likewise.
24269         * modules/unistr/u8-strrchr: Likewise.
24270         * modules/unistr/u8-strspn: Likewise.
24271         * modules/unistr/u8-strstr: Likewise.
24272         * modules/unistr/u8-strtok: Likewise.
24273         * modules/unistr/u8-to-u16: Likewise.
24274         * modules/unistr/u8-to-u32: Likewise.
24275         * modules/unistr/u8-uctomb: Likewise.
24276         * modules/unistr/u16-check: Likewise.
24277         * modules/unistr/u16-chr: Likewise.
24278         * modules/unistr/u16-cmp: Likewise.
24279         * modules/unistr/u16-cmp2: Likewise.
24280         * modules/unistr/u16-cpy: Likewise.
24281         * modules/unistr/u16-cpy-alloc: Likewise.
24282         * modules/unistr/u16-endswith: Likewise.
24283         * modules/unistr/u16-mblen: Likewise.
24284         * modules/unistr/u16-mbsnlen: Likewise.
24285         * modules/unistr/u16-mbtouc: Likewise.
24286         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24287         * modules/unistr/u16-mbtoucr: Likewise.
24288         * modules/unistr/u16-move: Likewise.
24289         * modules/unistr/u16-next: Likewise.
24290         * modules/unistr/u16-prev: Likewise.
24291         * modules/unistr/u16-set: Likewise.
24292         * modules/unistr/u16-startswith: Likewise.
24293         * modules/unistr/u16-stpcpy: Likewise.
24294         * modules/unistr/u16-stpncpy: Likewise.
24295         * modules/unistr/u16-strcat: Likewise.
24296         * modules/unistr/u16-strchr: Likewise.
24297         * modules/unistr/u16-strcmp: Likewise.
24298         * modules/unistr/u16-strcoll: Likewise.
24299         * modules/unistr/u16-strcpy: Likewise.
24300         * modules/unistr/u16-strcspn: Likewise.
24301         * modules/unistr/u16-strdup: Likewise.
24302         * modules/unistr/u16-strlen: Likewise.
24303         * modules/unistr/u16-strmblen: Likewise.
24304         * modules/unistr/u16-strmbtouc: Likewise.
24305         * modules/unistr/u16-strncat: Likewise.
24306         * modules/unistr/u16-strncmp: Likewise.
24307         * modules/unistr/u16-strncpy: Likewise.
24308         * modules/unistr/u16-strnlen: Likewise.
24309         * modules/unistr/u16-strpbrk: Likewise.
24310         * modules/unistr/u16-strrchr: Likewise.
24311         * modules/unistr/u16-strspn: Likewise.
24312         * modules/unistr/u16-strstr: Likewise.
24313         * modules/unistr/u16-strtok: Likewise.
24314         * modules/unistr/u16-to-u32: Likewise.
24315         * modules/unistr/u16-to-u8: Likewise.
24316         * modules/unistr/u16-uctomb: Likewise.
24317         * modules/unistr/u32-check: Likewise.
24318         * modules/unistr/u32-chr: Likewise.
24319         * modules/unistr/u32-cmp: Likewise.
24320         * modules/unistr/u32-cmp2: Likewise.
24321         * modules/unistr/u32-cpy: Likewise.
24322         * modules/unistr/u32-cpy-alloc: Likewise.
24323         * modules/unistr/u32-endswith: Likewise.
24324         * modules/unistr/u32-mblen: Likewise.
24325         * modules/unistr/u32-mbsnlen: Likewise.
24326         * modules/unistr/u32-mbtouc: Likewise.
24327         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24328         * modules/unistr/u32-mbtoucr: Likewise.
24329         * modules/unistr/u32-move: Likewise.
24330         * modules/unistr/u32-next: Likewise.
24331         * modules/unistr/u32-prev: Likewise.
24332         * modules/unistr/u32-set: Likewise.
24333         * modules/unistr/u32-startswith: Likewise.
24334         * modules/unistr/u32-stpcpy: Likewise.
24335         * modules/unistr/u32-stpncpy: Likewise.
24336         * modules/unistr/u32-strcat: Likewise.
24337         * modules/unistr/u32-strchr: Likewise.
24338         * modules/unistr/u32-strcmp: Likewise.
24339         * modules/unistr/u32-strcoll: Likewise.
24340         * modules/unistr/u32-strcpy: Likewise.
24341         * modules/unistr/u32-strcspn: Likewise.
24342         * modules/unistr/u32-strdup: Likewise.
24343         * modules/unistr/u32-strlen: Likewise.
24344         * modules/unistr/u32-strmblen: Likewise.
24345         * modules/unistr/u32-strmbtouc: Likewise.
24346         * modules/unistr/u32-strncat: Likewise.
24347         * modules/unistr/u32-strncmp: Likewise.
24348         * modules/unistr/u32-strncpy: Likewise.
24349         * modules/unistr/u32-strnlen: Likewise.
24350         * modules/unistr/u32-strpbrk: Likewise.
24351         * modules/unistr/u32-strrchr: Likewise.
24352         * modules/unistr/u32-strspn: Likewise.
24353         * modules/unistr/u32-strstr: Likewise.
24354         * modules/unistr/u32-strtok: Likewise.
24355         * modules/unistr/u32-to-u16: Likewise.
24356         * modules/unistr/u32-to-u8: Likewise.
24357         * modules/unistr/u32-uctomb: Likewise.
24358         * modules/uniwbrk/u8-wordbreaks: Likewise.
24359         * modules/uniwbrk/u16-wordbreaks: Likewise.
24360         * modules/uniwbrk/u32-wordbreaks: Likewise.
24361         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24362         * modules/uniwbrk/wordbreak-property: Likewise.
24363         * modules/uniwidth/u8-strwidth: Likewise.
24364         * modules/uniwidth/u8-width: Likewise.
24365         * modules/uniwidth/u16-strwidth: Likewise.
24366         * modules/uniwidth/u16-width: Likewise.
24367         * modules/uniwidth/u32-strwidth: Likewise.
24368         * modules/uniwidth/u32-width: Likewise.
24369         * modules/uniwidth/width: Likewise.
24370         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24371         with $(LIBUNISTRING).
24372         * modules/unicase/ignorable-tests: Likewise.
24373         * modules/unicase/locale-language-tests: Likewise.
24374         * modules/unicase/tolower-tests: Likewise.
24375         * modules/unicase/totitle-tests: Likewise.
24376         * modules/unicase/toupper-tests: Likewise.
24377         * modules/unicase/u8-casecmp-tests: Likewise.
24378         * modules/unicase/u8-casecoll-tests: Likewise.
24379         * modules/unicase/u8-casefold-tests: Likewise.
24380         * modules/unicase/u8-is-cased-tests: Likewise.
24381         * modules/unicase/u8-is-casefolded-tests: Likewise.
24382         * modules/unicase/u8-is-lowercase-tests: Likewise.
24383         * modules/unicase/u8-is-titlecase-tests: Likewise.
24384         * modules/unicase/u8-is-uppercase-tests: Likewise.
24385         * modules/unicase/u8-tolower-tests: Likewise.
24386         * modules/unicase/u8-totitle-tests: Likewise.
24387         * modules/unicase/u8-toupper-tests: Likewise.
24388         * modules/unicase/u16-casecmp-tests: Likewise.
24389         * modules/unicase/u16-casecoll-tests: Likewise.
24390         * modules/unicase/u16-casefold-tests: Likewise.
24391         * modules/unicase/u16-is-cased-tests: Likewise.
24392         * modules/unicase/u16-is-casefolded-tests: Likewise.
24393         * modules/unicase/u16-is-lowercase-tests: Likewise.
24394         * modules/unicase/u16-is-titlecase-tests: Likewise.
24395         * modules/unicase/u16-is-uppercase-tests: Likewise.
24396         * modules/unicase/u16-tolower-tests: Likewise.
24397         * modules/unicase/u16-totitle-tests: Likewise.
24398         * modules/unicase/u16-toupper-tests: Likewise.
24399         * modules/unicase/u32-casecmp-tests: Likewise.
24400         * modules/unicase/u32-casecoll-tests: Likewise.
24401         * modules/unicase/u32-casefold-tests: Likewise.
24402         * modules/unicase/u32-is-cased-tests: Likewise.
24403         * modules/unicase/u32-is-casefolded-tests: Likewise.
24404         * modules/unicase/u32-is-lowercase-tests: Likewise.
24405         * modules/unicase/u32-is-titlecase-tests: Likewise.
24406         * modules/unicase/u32-is-uppercase-tests: Likewise.
24407         * modules/unicase/u32-tolower-tests: Likewise.
24408         * modules/unicase/u32-totitle-tests: Likewise.
24409         * modules/unicase/u32-toupper-tests: Likewise.
24410         * modules/unicase/ulc-casecmp-tests: Likewise.
24411         * modules/unicase/ulc-casecoll-tests: Likewise.
24412         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24413         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24414         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24415         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24416         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24417         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24418         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24419         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24420         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24421         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24422         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24423         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24424         * modules/unictype/bidicategory-byname-tests: Likewise.
24425         * modules/unictype/bidicategory-name-tests: Likewise.
24426         * modules/unictype/bidicategory-of-tests: Likewise.
24427         * modules/unictype/bidicategory-test-tests: Likewise.
24428         * modules/unictype/block-list-tests: Likewise.
24429         * modules/unictype/block-of-tests: Likewise.
24430         * modules/unictype/block-test-tests: Likewise.
24431         * modules/unictype/category-C-tests: Likewise.
24432         * modules/unictype/category-Cc-tests: Likewise.
24433         * modules/unictype/category-Cf-tests: Likewise.
24434         * modules/unictype/category-Cn-tests: Likewise.
24435         * modules/unictype/category-Co-tests: Likewise.
24436         * modules/unictype/category-Cs-tests: Likewise.
24437         * modules/unictype/category-L-tests: Likewise.
24438         * modules/unictype/category-Ll-tests: Likewise.
24439         * modules/unictype/category-Lm-tests: Likewise.
24440         * modules/unictype/category-Lo-tests: Likewise.
24441         * modules/unictype/category-Lt-tests: Likewise.
24442         * modules/unictype/category-Lu-tests: Likewise.
24443         * modules/unictype/category-M-tests: Likewise.
24444         * modules/unictype/category-Mc-tests: Likewise.
24445         * modules/unictype/category-Me-tests: Likewise.
24446         * modules/unictype/category-Mn-tests: Likewise.
24447         * modules/unictype/category-N-tests: Likewise.
24448         * modules/unictype/category-Nd-tests: Likewise.
24449         * modules/unictype/category-Nl-tests: Likewise.
24450         * modules/unictype/category-No-tests: Likewise.
24451         * modules/unictype/category-P-tests: Likewise.
24452         * modules/unictype/category-Pc-tests: Likewise.
24453         * modules/unictype/category-Pd-tests: Likewise.
24454         * modules/unictype/category-Pe-tests: Likewise.
24455         * modules/unictype/category-Pf-tests: Likewise.
24456         * modules/unictype/category-Pi-tests: Likewise.
24457         * modules/unictype/category-Po-tests: Likewise.
24458         * modules/unictype/category-Ps-tests: Likewise.
24459         * modules/unictype/category-S-tests: Likewise.
24460         * modules/unictype/category-Sc-tests: Likewise.
24461         * modules/unictype/category-Sk-tests: Likewise.
24462         * modules/unictype/category-Sm-tests: Likewise.
24463         * modules/unictype/category-So-tests: Likewise.
24464         * modules/unictype/category-Z-tests: Likewise.
24465         * modules/unictype/category-Zl-tests: Likewise.
24466         * modules/unictype/category-Zp-tests: Likewise.
24467         * modules/unictype/category-Zs-tests: Likewise.
24468         * modules/unictype/category-and-not-tests: Likewise.
24469         * modules/unictype/category-and-tests: Likewise.
24470         * modules/unictype/category-byname-tests: Likewise.
24471         * modules/unictype/category-name-tests: Likewise.
24472         * modules/unictype/category-none-tests: Likewise.
24473         * modules/unictype/category-of-tests: Likewise.
24474         * modules/unictype/category-or-tests: Likewise.
24475         * modules/unictype/category-test-withtable-tests: Likewise.
24476         * modules/unictype/combining-class-tests: Likewise.
24477         * modules/unictype/ctype-alnum-tests: Likewise.
24478         * modules/unictype/ctype-alpha-tests: Likewise.
24479         * modules/unictype/ctype-blank-tests: Likewise.
24480         * modules/unictype/ctype-cntrl-tests: Likewise.
24481         * modules/unictype/ctype-digit-tests: Likewise.
24482         * modules/unictype/ctype-graph-tests: Likewise.
24483         * modules/unictype/ctype-lower-tests: Likewise.
24484         * modules/unictype/ctype-print-tests: Likewise.
24485         * modules/unictype/ctype-punct-tests: Likewise.
24486         * modules/unictype/ctype-space-tests: Likewise.
24487         * modules/unictype/ctype-upper-tests: Likewise.
24488         * modules/unictype/ctype-xdigit-tests: Likewise.
24489         * modules/unictype/decimal-digit-tests: Likewise.
24490         * modules/unictype/digit-tests: Likewise.
24491         * modules/unictype/mirror-tests: Likewise.
24492         * modules/unictype/numeric-tests: Likewise.
24493         * modules/unictype/property-alphabetic-tests: Likewise.
24494         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24495         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24496         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24497         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24498         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24499         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24500         * modules/unictype/property-bidi-control-tests: Likewise.
24501         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24502         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24503         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24504         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24505         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24506         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24507         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24508         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24509         * modules/unictype/property-bidi-pdf-tests: Likewise.
24510         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24511         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24512         * modules/unictype/property-byname-tests: Likewise.
24513         * modules/unictype/property-combining-tests: Likewise.
24514         * modules/unictype/property-composite-tests: Likewise.
24515         * modules/unictype/property-currency-symbol-tests: Likewise.
24516         * modules/unictype/property-dash-tests: Likewise.
24517         * modules/unictype/property-decimal-digit-tests: Likewise.
24518         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24519         * modules/unictype/property-deprecated-tests: Likewise.
24520         * modules/unictype/property-diacritic-tests: Likewise.
24521         * modules/unictype/property-extender-tests: Likewise.
24522         * modules/unictype/property-format-control-tests: Likewise.
24523         * modules/unictype/property-grapheme-base-tests: Likewise.
24524         * modules/unictype/property-grapheme-extend-tests: Likewise.
24525         * modules/unictype/property-grapheme-link-tests: Likewise.
24526         * modules/unictype/property-hex-digit-tests: Likewise.
24527         * modules/unictype/property-hyphen-tests: Likewise.
24528         * modules/unictype/property-id-continue-tests: Likewise.
24529         * modules/unictype/property-id-start-tests: Likewise.
24530         * modules/unictype/property-ideographic-tests: Likewise.
24531         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24532         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24533         * modules/unictype/property-ignorable-control-tests: Likewise.
24534         * modules/unictype/property-iso-control-tests: Likewise.
24535         * modules/unictype/property-join-control-tests: Likewise.
24536         * modules/unictype/property-left-of-pair-tests: Likewise.
24537         * modules/unictype/property-line-separator-tests: Likewise.
24538         * modules/unictype/property-logical-order-exception-tests: Likewise.
24539         * modules/unictype/property-lowercase-tests: Likewise.
24540         * modules/unictype/property-math-tests: Likewise.
24541         * modules/unictype/property-non-break-tests: Likewise.
24542         * modules/unictype/property-not-a-character-tests: Likewise.
24543         * modules/unictype/property-numeric-tests: Likewise.
24544         * modules/unictype/property-other-alphabetic-tests: Likewise.
24545         * modules/unictype/property-other-default-ignorable-code-point-tests:
24546         Likewise.
24547         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24548         * modules/unictype/property-other-id-continue-tests: Likewise.
24549         * modules/unictype/property-other-id-start-tests: Likewise.
24550         * modules/unictype/property-other-lowercase-tests: Likewise.
24551         * modules/unictype/property-other-math-tests: Likewise.
24552         * modules/unictype/property-other-uppercase-tests: Likewise.
24553         * modules/unictype/property-paired-punctuation-tests: Likewise.
24554         * modules/unictype/property-paragraph-separator-tests: Likewise.
24555         * modules/unictype/property-pattern-syntax-tests: Likewise.
24556         * modules/unictype/property-pattern-white-space-tests: Likewise.
24557         * modules/unictype/property-private-use-tests: Likewise.
24558         * modules/unictype/property-punctuation-tests: Likewise.
24559         * modules/unictype/property-quotation-mark-tests: Likewise.
24560         * modules/unictype/property-radical-tests: Likewise.
24561         * modules/unictype/property-sentence-terminal-tests: Likewise.
24562         * modules/unictype/property-soft-dotted-tests: Likewise.
24563         * modules/unictype/property-space-tests: Likewise.
24564         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24565         * modules/unictype/property-test-tests: Likewise.
24566         * modules/unictype/property-titlecase-tests: Likewise.
24567         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24568         * modules/unictype/property-unified-ideograph-tests: Likewise.
24569         * modules/unictype/property-uppercase-tests: Likewise.
24570         * modules/unictype/property-variation-selector-tests: Likewise.
24571         * modules/unictype/property-white-space-tests: Likewise.
24572         * modules/unictype/property-xid-continue-tests: Likewise.
24573         * modules/unictype/property-xid-start-tests: Likewise.
24574         * modules/unictype/property-zero-width-tests: Likewise.
24575         * modules/unictype/scripts-tests: Likewise.
24576         * modules/unictype/syntax-c-ident-tests: Likewise.
24577         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24578         * modules/unictype/syntax-java-ident-tests: Likewise.
24579         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24580         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24581         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24582         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24583         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24584         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24585         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24586         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24587         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24588         * modules/uniname/uniname-tests: Likewise.
24589         * modules/uninorm/canonical-decomposition-tests: Likewise.
24590         * modules/uninorm/compat-decomposition-tests: Likewise.
24591         * modules/uninorm/composition-tests: Likewise.
24592         * modules/uninorm/decomposing-form-tests: Likewise.
24593         * modules/uninorm/decomposition-tests: Likewise.
24594         * modules/uninorm/filter-tests: Likewise.
24595         * modules/uninorm/nfc-tests: Likewise.
24596         * modules/uninorm/nfd-tests: Likewise.
24597         * modules/uninorm/nfkc-tests: Likewise.
24598         * modules/uninorm/nfkd-tests: Likewise.
24599         * modules/uninorm/u8-normcmp-tests: Likewise.
24600         * modules/uninorm/u8-normcoll-tests: Likewise.
24601         * modules/uninorm/u16-normcmp-tests: Likewise.
24602         * modules/uninorm/u16-normcoll-tests: Likewise.
24603         * modules/uninorm/u32-normcmp-tests: Likewise.
24604         * modules/uninorm/u32-normcoll-tests: Likewise.
24605         * modules/unistdio/u8-asnprintf-tests: Likewise.
24606         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24607         * modules/unistdio/u8-vasprintf-tests: Likewise.
24608         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24609         * modules/unistdio/u8-vsprintf-tests: Likewise.
24610         * modules/unistdio/u16-asnprintf-tests: Likewise.
24611         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24612         * modules/unistdio/u16-vasprintf-tests: Likewise.
24613         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24614         * modules/unistdio/u16-vsprintf-tests: Likewise.
24615         * modules/unistdio/u32-asnprintf-tests: Likewise.
24616         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24617         * modules/unistdio/u32-vasprintf-tests: Likewise.
24618         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24619         * modules/unistdio/u32-vsprintf-tests: Likewise.
24620         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24621         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24622         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24623         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24624         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24625         * modules/unistr/u8-check-tests: Likewise.
24626         * modules/unistr/u8-chr-tests: Likewise.
24627         * modules/unistr/u8-cmp-tests: Likewise.
24628         * modules/unistr/u8-cmp2-tests: Likewise.
24629         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24630         * modules/unistr/u8-cpy-tests: Likewise.
24631         * modules/unistr/u8-mblen-tests: Likewise.
24632         * modules/unistr/u8-mbsnlen-tests: Likewise.
24633         * modules/unistr/u8-mbtouc-tests: Likewise.
24634         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24635         * modules/unistr/u8-mbtoucr-tests: Likewise.
24636         * modules/unistr/u8-move-tests: Likewise.
24637         * modules/unistr/u8-next-tests: Likewise.
24638         * modules/unistr/u8-prev-tests: Likewise.
24639         * modules/unistr/u8-set-tests: Likewise.
24640         * modules/unistr/u8-stpcpy-tests: Likewise.
24641         * modules/unistr/u8-stpncpy-tests: Likewise.
24642         * modules/unistr/u8-strcat-tests: Likewise.
24643         * modules/unistr/u8-strcmp-tests: Likewise.
24644         * modules/unistr/u8-strcoll-tests: Likewise.
24645         * modules/unistr/u8-strcpy-tests: Likewise.
24646         * modules/unistr/u8-strdup-tests: Likewise.
24647         * modules/unistr/u8-strlen-tests: Likewise.
24648         * modules/unistr/u8-strmblen-tests: Likewise.
24649         * modules/unistr/u8-strmbtouc-tests: Likewise.
24650         * modules/unistr/u8-strncat-tests: Likewise.
24651         * modules/unistr/u8-strncmp-tests: Likewise.
24652         * modules/unistr/u8-strncpy-tests: Likewise.
24653         * modules/unistr/u8-strnlen-tests: Likewise.
24654         * modules/unistr/u8-to-u16-tests: Likewise.
24655         * modules/unistr/u8-to-u32-tests: Likewise.
24656         * modules/unistr/u8-uctomb-tests: Likewise.
24657         * modules/unistr/u16-check-tests: Likewise.
24658         * modules/unistr/u16-chr-tests: Likewise.
24659         * modules/unistr/u16-cmp-tests: Likewise.
24660         * modules/unistr/u16-cmp2-tests: Likewise.
24661         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24662         * modules/unistr/u16-cpy-tests: Likewise.
24663         * modules/unistr/u16-mblen-tests: Likewise.
24664         * modules/unistr/u16-mbsnlen-tests: Likewise.
24665         * modules/unistr/u16-mbtouc-tests: Likewise.
24666         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24667         * modules/unistr/u16-mbtoucr-tests: Likewise.
24668         * modules/unistr/u16-move-tests: Likewise.
24669         * modules/unistr/u16-next-tests: Likewise.
24670         * modules/unistr/u16-prev-tests: Likewise.
24671         * modules/unistr/u16-set-tests: Likewise.
24672         * modules/unistr/u16-stpcpy-tests: Likewise.
24673         * modules/unistr/u16-stpncpy-tests: Likewise.
24674         * modules/unistr/u16-strcat-tests: Likewise.
24675         * modules/unistr/u16-strcmp-tests: Likewise.
24676         * modules/unistr/u16-strcoll-tests: Likewise.
24677         * modules/unistr/u16-strcpy-tests: Likewise.
24678         * modules/unistr/u16-strdup-tests: Likewise.
24679         * modules/unistr/u16-strlen-tests: Likewise.
24680         * modules/unistr/u16-strmblen-tests: Likewise.
24681         * modules/unistr/u16-strmbtouc-tests: Likewise.
24682         * modules/unistr/u16-strncat-tests: Likewise.
24683         * modules/unistr/u16-strncmp-tests: Likewise.
24684         * modules/unistr/u16-strncpy-tests: Likewise.
24685         * modules/unistr/u16-strnlen-tests: Likewise.
24686         * modules/unistr/u16-to-u32-tests: Likewise.
24687         * modules/unistr/u16-to-u8-tests: Likewise.
24688         * modules/unistr/u16-uctomb-tests: Likewise.
24689         * modules/unistr/u32-check-tests: Likewise.
24690         * modules/unistr/u32-chr-tests: Likewise.
24691         * modules/unistr/u32-cmp-tests: Likewise.
24692         * modules/unistr/u32-cmp2-tests: Likewise.
24693         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24694         * modules/unistr/u32-cpy-tests: Likewise.
24695         * modules/unistr/u32-mblen-tests: Likewise.
24696         * modules/unistr/u32-mbsnlen-tests: Likewise.
24697         * modules/unistr/u32-mbtouc-tests: Likewise.
24698         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24699         * modules/unistr/u32-mbtoucr-tests: Likewise.
24700         * modules/unistr/u32-move-tests: Likewise.
24701         * modules/unistr/u32-next-tests: Likewise.
24702         * modules/unistr/u32-prev-tests: Likewise.
24703         * modules/unistr/u32-set-tests: Likewise.
24704         * modules/unistr/u32-stpcpy-tests: Likewise.
24705         * modules/unistr/u32-stpncpy-tests: Likewise.
24706         * modules/unistr/u32-strcat-tests: Likewise.
24707         * modules/unistr/u32-strcmp-tests: Likewise.
24708         * modules/unistr/u32-strcoll-tests: Likewise.
24709         * modules/unistr/u32-strcpy-tests: Likewise.
24710         * modules/unistr/u32-strdup-tests: Likewise.
24711         * modules/unistr/u32-strlen-tests: Likewise.
24712         * modules/unistr/u32-strmblen-tests: Likewise.
24713         * modules/unistr/u32-strmbtouc-tests: Likewise.
24714         * modules/unistr/u32-strncat-tests: Likewise.
24715         * modules/unistr/u32-strncmp-tests: Likewise.
24716         * modules/unistr/u32-strncpy-tests: Likewise.
24717         * modules/unistr/u32-strnlen-tests: Likewise.
24718         * modules/unistr/u32-to-u16-tests: Likewise.
24719         * modules/unistr/u32-to-u8-tests: Likewise.
24720         * modules/unistr/u32-uctomb-tests: Likewise.
24721         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24722         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24723         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24724         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24725         * modules/uniwidth/u8-strwidth-tests: Likewise.
24726         * modules/uniwidth/u8-width-tests: Likewise.
24727         * modules/uniwidth/u16-strwidth-tests: Likewise.
24728         * modules/uniwidth/u16-width-tests: Likewise.
24729         * modules/uniwidth/u32-strwidth-tests: Likewise.
24730         * modules/uniwidth/u32-width-tests: Likewise.
24731         * modules/uniwidth/width-tests: Likewise.
24732
24733 2010-05-18  Richard Jones  <rjones@redhat.com>
24734
24735         doc: users.txt: list hivex
24736         * users.txt: Add hivex.
24737
24738 2010-05-18  Richard Jones  <rjones@redhat.com>
24739
24740         doc: users.txt: list febootstrap
24741         * users.txt: Add febootstrap.
24742
24743 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24744
24745         bootstrap: fix an error when gnulib is not used as a git submodule
24746         * build-aux/bootstrap (gnulib_path): If its length is zero then
24747         assign "gnulib" to it.
24748         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24749
24750 2010-05-16  Bruno Haible  <bruno@clisp.org>
24751
24752         Avoid autoconf warnings about AM_ICONV.
24753         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24754         2.64.
24755
24756 2010-05-16  Bruno Haible  <bruno@clisp.org>
24757
24758         absolute-header: Make the macro usable in more situations.
24759         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24760         from gl_ABSOLUTE_HEADER.
24761         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24762
24763 2010-05-16  James Youngman  <jay@gnu.org>
24764
24765         doc: update users.txt
24766         * users.txt: Add CSSC.
24767
24768 2010-05-16  Jim Meyering  <meyering@redhat.com>
24769
24770         init.sh: fix an error in the previous change; add more comments
24771         * tests/init.sh: Compare exit code in loop against 9, not 2.
24772         Patch by Bruno Haible.
24773         Make the two tests more similar by adding an empty "then" clause.
24774         Add comments.
24775
24776         init.sh: avoid unnecessary shell re-exec
24777         * tests/init.sh: Improve the re-exec-required check to first test the
24778         current shell.  If it passes the test, do not search for a shell that
24779         does pass, and do not re-exec.  This test is particularly contorted to
24780         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24781         of $(...) evokes a syntax error and causes immediate shell exit with
24782         status 2.  Bruno Haible reported that the re-exec made it impossible
24783         to single-step through any init.sh-using script.
24784
24785 2010-05-16  Bruno Haible  <bruno@clisp.org>
24786
24787         Fix collision between gnulib's and libintl's printf replacements.
24788         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24789         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24790         (printf): When using GNU C, map the __printf__ function to rpl_printf
24791         via __asm__. When not using GNU C, define rpl_printf instead of
24792         __printf__.
24793         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24794         commit.
24795         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24796         commit.
24797         * m4/asm-underscore.m4: New file.
24798         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24799         * modules/stdio (Files): Add m4/asm-underscore.m4.
24800         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24801         Reported by Ben Pfaff.
24802
24803 2010-05-16  Bruno Haible  <bruno@clisp.org>
24804
24805         verify: Avoid skipping the test on openSUSE 11.0.
24806         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24807
24808 2010-05-13  Bruno Haible  <bruno@clisp.org>
24809
24810         Avoid useless warnings from G++.
24811         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24812         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24813         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24814
24815 2010-05-11  Jim Meyering  <meyering@redhat.com>
24816
24817         maint.mk: tweak preceding change
24818         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24819         regexps tighter by anchoring at EOL, and make the new group "shy"
24820         for slightly decreased overhead.
24821
24822 2010-05-11  Eric Blake  <eblake@redhat.com>
24823
24824         maint.mk: gnulib doesn't guarantee NSIG
24825         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24826
24827 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24828
24829         test-pwrite.c: Remove unused variable declaration.
24830         * tests/test-pwrite.c (main): Remove read_buf declaration.
24831
24832         Remove useless test-pwrite.sh file.
24833         * tests/test-pwrite.sh: Delete file.
24834         * modules/pwrite-tests: Remove references.
24835         Reported by Bruno Haible.
24836
24837 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24838
24839         init.sh: fix a typo
24840         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24841
24842 2010-05-10  Jim Meyering  <meyering@redhat.com>
24843
24844         maint.mk: avoid using a temporary file in the always-defined-macros check
24845         * top/maint.mk (.re-defmac): Remove rule.
24846         (gl_trap_): Remove definition.
24847         (sc_prohibit_always-defined_macros): Rewrite not to create and
24848         depend on a temporary file.  Instead, depend on GNU grep's ability
24849         to read a list of regular expressions from stdin when given "-f -".
24850
24851 2010-05-09  Bruno Haible  <bruno@clisp.org>
24852
24853         Update to GNU gettext 0.18, part 1.
24854         * m4/gettext.m4: Update to GNU gettext 0.18.
24855         * m4/intl.m4: Likewise.
24856         * m4/po.m4: Likewise.
24857         * modules/gettext (Files): Add m4/fcntl-o.m4.
24858         (configure.ac): Require gettext infrastructure from version 0.18.
24859
24860 2010-05-09  Jim Meyering  <meyering@redhat.com>
24861
24862         init.sh: enable MALLOC_PERTURB_
24863         * tests/init.sh: Enable glibc's malloc-perturbing option.
24864
24865         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24866         With my recent change in init.sh from the two-line form:
24867             -#   : ${srcdir=.}
24868             -#   . "$srcdir/init.sh"; path_prepend_ .
24869             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24870         I noticed that using the one-line form would cause this test
24871         to fail with a false-positive, or to stop working altogether,
24872         depending on whether help-version changed or all the tests did.
24873         * top/maint.mk (_hv_regex): Remove this definition.
24874         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24875         (_hv_regex_strong): Use a stronger regex to check for conformance.
24876         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24877         Give a separate diagnostic for lack of conforming use.
24878
24879         maint.mk: prohibit definition of symbols defined by gnulib
24880         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24881         definition of symbols defined by gnulib.
24882
24883 2010-05-09  Bruno Haible  <bruno@clisp.org>
24884
24885         acl: Avoid test failure on Cygwin-hosted mingw.
24886         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24887
24888 2010-05-09  Bruno Haible  <bruno@clisp.org>
24889
24890         error: Use system's fcntl function.
24891         * lib/error.c (fcntl): Undefine.
24892
24893 2010-05-09  Jim Meyering  <meyering@redhat.com>
24894
24895         verify: adjust formatting to be more consistent
24896         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24897         argument-list '('s, and after one comma.
24898
24899 2010-05-09  Bruno Haible  <bruno@clisp.org>
24900
24901         error: More reliable output on mingw.
24902         * lib/error.c: Include <windows.h>.
24903         (is_open): New function.
24904         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24905         defined.
24906
24907 2010-05-09  Bruno Haible  <bruno@clisp.org>
24908
24909         vasnprintf: Fix syntax errors in libintl build on mingw.
24910         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24911         pad_ourselves and prec_ourselves after use.
24912
24913 2010-05-08  Bruno Haible  <bruno@clisp.org>
24914
24915         * lib/config.charset: Update comments for Cygwin 1.7.
24916         * lib/localcharset.c: Likewise.
24917
24918 2010-05-07  Jim Meyering  <meyering@redhat.com>
24919
24920         init.sh: improve comments
24921         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24922         . "${srcdir=.}/init.sh"; path_prepend_ .
24923         Add a note about path_prepend_ and the alternative of using
24924         TESTS_ENVIRONMENT.
24925
24926 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24927
24928         exclude: Unescape hashed patterns in wildcard mode.
24929         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24930         to the hash list.
24931         * tests/test-exclude8.sh: New test case.
24932         * modules/exclude-tests: Add new test.
24933
24934 2010-05-05  Eric Blake  <eblake@redhat.com>
24935
24936         verify: automate tests
24937         * modules/verify-tests: New module.
24938         * tests/test-verify.sh: New file.
24939         * tests/test-verify.c: Guard each negative test with a unique id.
24940         Also avoid warning about unused left hand of comma expressions.
24941
24942 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24943
24944         Further improvements to verify.h, suggested by Eric Blake.
24945         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24946         the GL_* versions, to avoid collision with OpenGL.
24947         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24948         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24949         than testing merely whether it's defined.
24950
24951         Modify verify.h to pacify gcc -Wredundant_decls.
24952         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24953         These use the prefix "GL_" since they're likely to be useful elsewhere.
24954         We may need to break them out into a different .h file.
24955         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24956         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24957         of verify_function__.
24958
24959 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24960
24961         Tests for module pwrite.
24962         * modules/pwrite-tests: New file.
24963         * tests/test-pwrite.sh: New file.
24964         * tests/test-pwrite.c: New file.
24965
24966         New module pwrite.
24967         * lib/unistd.in.h (pwrite): New declaration.
24968         * lib/pwrite.c: New file, from glibc with modifications.
24969         * m4/pwrite.m4: New file.
24970         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24971         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24972         REPLACE_PWRITE.
24973         * modules/pwrite: New file.
24974         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24975         REPLACE_PWRITE.
24976         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24977         * doc/posix-functions/pwrite.texi: Mention the new module.
24978
24979 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24980
24981         pread: Update documentation.
24982         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24983
24984 2010-05-04  Eric Blake  <eblake@redhat.com>
24985
24986         docs: update cygwin progress
24987         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24988         this bug.
24989         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24990         Added in cygwin 1.7.2.
24991         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24992         Likewise.
24993         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24994         Likewise.
24995         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24996         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24997         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24998         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24999         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25000         Mention nproc module.
25001         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25002         bug in cygwin 1.7.5 addition.
25003         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25004         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25005         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25006         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25007         1.7.5.
25008         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25009         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25010         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25011         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25012         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25013         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25014         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25015         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25016         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25017         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25018         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25019         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25020         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25021         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25022         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25023         Likewise.
25024         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25025         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25026         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25027         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25028         Likewise.
25029         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25030         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25031         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25032         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25033         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25034         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25035         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25036         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25037         Likewise.
25038         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25039         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25040         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25041         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25042         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25043         Likewise.
25044         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25045         Likewise.
25046         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25047         Likewise.
25048         * doc/glibc-functions/xdrrec_endofrecord.texi
25049         (xdrrec_endofrecord): Likewise.
25050         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25051         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25052         Likewise.
25053         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25054         Likewise.
25055
25056 2010-05-04  Jim Meyering  <meyering@redhat.com>
25057
25058         gendocs.sh: make its "-s FILE" option more useful
25059         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25060         $PACKAGE to reflect the probably-different basename of "FILE".
25061
25062 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25063
25064         bootstrap: don't ignore download_po_files failure
25065         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25066         failure.
25067
25068 2010-05-03  Jim Meyering  <meyering@redhat.com>
25069
25070         maint.mk: allow to pass options to gendocs.sh
25071         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25072         (gendocs_options_): New overridable variable.
25073
25074         gnu-web-doc-update: don't ignore configure or build failure
25075         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25076
25077         announce-gen: backslash-escape '@'s in --help output
25078         * build-aux/announce-gen: Fix syntax errors.
25079
25080         maint.mk, announce-gen: allow project-specific announcement mail headers
25081         * top/maint.mk (translation_project_): Define default.
25082         (announcement_Cc_, announcement_mail_headers_): Likewise.
25083         (announcement): Invoke announce-gen with new --mail-headers option.
25084         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25085
25086         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25087         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25088         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25089         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25090         line in the "err2" output file when running "make check" in verbose
25091         mode (i.e., with set -x enabled).
25092
25093 2010-05-03  Bruno Haible  <bruno@clisp.org>
25094
25095         wctob: Fix for weird platforms.
25096         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25097         argument value.
25098
25099 2010-05-03  Jim Meyering  <meyering@redhat.com>
25100
25101         maint.mk: prohibit unwarranted use of <strings.h>
25102         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25103         strings.h in a file that does not also use strcasecmp, strncasecmp,
25104         ffs or ffsll.
25105
25106         maint.mk: remove obsolete comments
25107         * top/maint.mk: Remove stale, commented-out rules.
25108
25109 2010-05-02  Bruno Haible  <bruno@clisp.org>
25110
25111         wcwidth: Declare also when it's aliased.
25112         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25113         macro.
25114
25115 2010-05-02  Bruno Haible  <bruno@clisp.org>
25116
25117         Fix regression from 2010-04-25.
25118         * gnulib-tool (func_modules_transitive_closure): Check the status of
25119         all modules, not only of the tests that are of the form foo-tests where
25120         foo is a module.
25121
25122 2010-05-02  Bruno Haible  <bruno@clisp.org>
25123
25124         wctob: Work around nasty Cygwin 1.7.2 bug.
25125         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25126         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25127
25128 2010-05-01  Bruno Haible  <bruno@clisp.org>
25129
25130         fpurge: Sharper test.
25131         * tests/test-fpurge.c (main): Add one more ftell check.
25132         * modules/fpurge-tests (Depends-on): Add ftell.
25133         Suggested by Eric Blake.
25134
25135 2010-05-01  Bruno Haible  <bruno@clisp.org>
25136
25137         ftello: Another test.
25138         * tests/test-ftello3.c: New file.
25139         * modules/ftello-tests (Files): Add it.
25140         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25141         MOSTLYCLEANFILES.
25142
25143         ftell: Another test.
25144         * tests/test-ftell3.c: New file.
25145         * modules/ftell-tests (Files): Add it.
25146         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25147         MOSTLYCLEANFILES.
25148
25149 2010-05-01  Bruno Haible  <bruno@clisp.org>
25150
25151         ftell, ftello: Work around Solaris bug.
25152         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25153         * lib/ftello.c: Include stdio-impl.h.
25154         (ftello): On Solaris, when _IOWRT is set, compute the result without
25155         looking at _IOREAD.
25156         * modules/ftello (Files): Add lib/stdio-impl.h.
25157         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25158         * doc/posix-functions/ftello.texi: Likewise.
25159         Reported by Eric Blake.
25160
25161 2010-05-01  Bruno Haible  <bruno@clisp.org>
25162
25163         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25164         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25165         the _IOWRT flag is also set.
25166
25167 2010-05-01  Bruno Haible  <bruno@clisp.org>
25168
25169         Fix doc about a HP-UX stdio bug.
25170         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25171         * doc/posix-functions/ftello.texi: Likewise.
25172
25173 2010-05-01  Bruno Haible  <bruno@clisp.org>
25174
25175         lseek test: Fix failure on Solaris.
25176         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25177         output.
25178
25179 2010-04-30  Jim Meyering  <meyering@redhat.com>
25180
25181         bootstrap: don't ignore failure to generate po*/Makevars
25182         * build-aux/bootstrap (with_gettext): Don't ignore failure
25183         to create po/Makevars or runtime-po/Makevars.
25184
25185 2010-04-29  Eric Blake  <eblake@redhat.com>
25186
25187         headers: relax license to LGPLv2+
25188         * modules/fcntl-h (License): Relax license.
25189         * modules/getopt-posix (License): Likewise.
25190         * modules/locale (License): Likewise.
25191         * modules/math (License): Likewise.
25192         * modules/pty (License): Likewise.
25193         * modules/sched (License): Likewise.
25194         * modules/search (License): Likewise.
25195         * modules/spawn (License): Likewise.
25196         * modules/stdarg (License): Likewise.
25197         * modules/sysexits (License): Likewise.
25198
25199 2010-04-29  Jim Meyering  <meyering@redhat.com>
25200
25201         inttypes: relax license to LGPLv2+
25202         * modules/inttypes (License): Relax license.
25203
25204 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25205
25206         * top/maint.mk (indent): Run twice to produce idempotent results.
25207
25208 2010-04-28  Bruno Haible  <bruno@clisp.org>
25209
25210         getdate: Generate getdate.c in the source directory.
25211         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25212         MOSTLYCLEANFILES.
25213         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25214
25215 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25216
25217         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25218         is not declared as a const *; avoid warnings in that case.
25219
25220 2010-04-28  Eric Blake  <eblake@redhat.com>
25221
25222         canonicalize-lgpl: avoid compiler warning
25223         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25224         declaration' / 'extraneous semicolon' warning with some compilers.
25225         Reported by Andreas Gruenbacher.
25226
25227 2010-04-28  Jim Meyering  <meyering@redhat.com>
25228
25229         init.sh: ensure a more reliable exit status when exiting via trap
25230         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25231         Inspired by patches from Dmitry V. Levin.
25232         Also trap on signal 3 (SIGQUIT).
25233
25234 2010-04-27  Bruno Haible  <bruno@clisp.org>
25235
25236         Update doc about utimes().
25237         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25238         'utimens' module.
25239         Reported by Andreas Gruenbacher <agruen@suse.de>.
25240
25241 2010-04-27  Eric Blake  <eblake@redhat.com>
25242
25243         full-read, full-write: relax license
25244         * modules/full-read (License): Drop to LGPLv2+.
25245         * modules/full-write (License): Likewise.
25246         * modules/safe-read (License): Likewise.
25247         * modules/safe-write (License): Likewise.
25248
25249         pthread: mention library for linking
25250         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25251
25252 2010-04-27  Jim Meyering  <meyering@redhat.com>
25253
25254         maint.mk: fix a bug introduced in last change
25255         * top/maint.mk (gl_assured_headers_): Now that all names are on
25256         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25257         is not anchored to end of word, it should be adequate.
25258
25259         maint.mk: avoid side-effect in latest syntax-check
25260         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25261         to run commands via $(shell...), and hence to incur cost only when
25262         the new rule is actually run.
25263
25264         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25265         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25266         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25267         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25268         (gl_assured_headers_, az_, AZ_): Define.
25269         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25270
25271 2010-04-26  Jim Meyering  <jim@meyering.net>
25272             Bruno Haible  <bruno@clisp.org>
25273
25274         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25275         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25276         Prompted by an exchange with Gilles Espinasse.
25277
25278 2010-04-26  Jim Meyering  <meyering@redhat.com>
25279
25280         git-version-gen: aesthetic tweak
25281         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25282         so that the command remains on a single line.
25283
25284 2010-04-26  Eric Blake  <eblake@redhat.com>
25285
25286         git-version-gen: allow use on EBCDIC hosts
25287         * build-aux/git-version-gen (dirty): Use literal rather than tying
25288         ourselves to ascii.
25289         Reported by Steve Goetze.
25290
25291 2010-04-25  Bruno Haible  <bruno@clisp.org>
25292
25293         netdb: Add support for GNULIB_POSIXCHECK.
25294         * lib/netdb.in.h: Include warn-on-use.h.
25295         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25296         functions are used when GNULIB_POSIXCHECK is defined and the
25297         getaddrinfo module is not in use.
25298         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25299         freeaddrinfo, gai_strerror, getnameinfo are declared.
25300         * modules/netdb (Depends-on): Add warn-on-use.
25301         (Makefile.am): Include warn-on-use.h in netdb.h.
25302
25303 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25304
25305         build: avoid "make check" failure without .git/ directory
25306         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25307         there is no .git/ directory.
25308
25309 2010-04-25  Bruno Haible  <bruno@clisp.org>
25310
25311         ptsname: Fix misuse of ttyname_r.
25312         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25313         of errno.
25314
25315 2010-04-25  Bruno Haible  <bruno@clisp.org>
25316
25317         ttyname_r: Make it work on Solaris 10.
25318         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25319         if the system function has the POSIX declaration. Test whether the
25320         function fails if the buffer is less than 128 bytes large.
25321         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25322         system's ttyname_r function. Provide a reasonably large buffer.
25323         * modules/ttyname_r (Depends-on): Add extensions.
25324         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25325
25326 2010-04-25  Bruno Haible  <bruno@clisp.org>
25327
25328         Use the 'extensions' module for some more functions on Solaris.
25329         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25330         module.
25331         * doc/posix-functions/ctime_r.texi: Likewise.
25332         * doc/posix-functions/getgrgid_r.texi: Likewise.
25333         * doc/posix-functions/getgrnam_r.texi: Likewise.
25334         * doc/posix-functions/getpwnam_r.texi: Likewise.
25335         * doc/posix-functions/getpwuid_r.texi: Likewise.
25336         * doc/posix-functions/readdir_r.texi: Likewise.
25337         * doc/posix-functions/sigwait.texi: Likewise.
25338         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25339         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25340
25341 2010-04-25  Bruno Haible  <bruno@clisp.org>
25342
25343         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25344         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25345         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25346         * lib/ttyname_r.c: Include <limits.h>.
25347         (ttyname_r): Define using the system's ttyname_r function, if it exists
25348         and not on Solaris.
25349         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25350         set.
25351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25352         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25353         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25354         Reported by Simon Josefsson.
25355
25356 2010-04-25  Bruno Haible  <bruno@clisp.org>
25357
25358         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25359         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25360         * doc/posix-functions/ctime_r.texi: Likewise.
25361         * doc/posix-functions/getgrgid_r.texi: Likewise.
25362         * doc/posix-functions/getgrnam_r.texi: Likewise.
25363         * doc/posix-functions/getlogin_r.texi: Likewise.
25364         * doc/posix-functions/getpwnam_r.texi: Likewise.
25365         * doc/posix-functions/getpwuid_r.texi: Likewise.
25366         * doc/posix-functions/readdir_r.texi: Likewise.
25367         * doc/posix-functions/sigwait.texi: Likewise.
25368         * doc/posix-functions/ttyname_r.texi: Likewise.
25369         Reported by Simon Josefsson.
25370
25371 2010-04-25  Bruno Haible  <bruno@clisp.org>
25372
25373         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25374         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25375         also to --create-testdir.
25376         (func_acceptable): Don't consider the status of *-tests modules here.
25377         (func_modules_transitive_closure): Consider it here, before including a
25378         test module.
25379         (func_import, func_create_testdir): Set inc_all_direct_tests,
25380         inc_all_indirect_tests.
25381         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25382         --create-testdir and --create-megatestdir.
25383
25384 2010-04-25  Bruno Haible  <bruno@clisp.org>
25385
25386         gnulib-tool: Add --without-*-tests options.
25387         * gnulib-tool (func_usage): Document the --without-*-tests options.
25388         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25389         excl_unportable_tests): New variables.
25390         Fail if they are specified with --import or --update.
25391         (func_acceptable): Respect the excl_*_tests variables.
25392         (func_import): Set the excl_*_tests variables to empty.
25393
25394 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25395             Bruno Haible  <bruno@clisp.org>
25396
25397         Work around a MacOS X 10.4 bug with openpty.
25398         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25399         * tests/test-openpty.c (main): Close the master side explicitly.
25400
25401 2010-04-25  Bruno Haible  <bruno@clisp.org>
25402
25403         strnlen: Fix a C++ test error on MacOS X and Solaris.
25404         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25405         the function is not declared.
25406         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25407         Simon Josefsson.
25408
25409 2010-04-24  Bruno Haible  <bruno@clisp.org>
25410
25411         Avoid a gcc warning.
25412         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25413         of correct type for %08lx directive.
25414         Reported by Eric Blake.
25415
25416 2010-04-24  Bruno Haible  <bruno@clisp.org>
25417
25418         vasnprintf: Correct errno value in case of out-of-memory.
25419         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25420         or sprintf. Use the errno value from SNPRINTF or sprintf.
25421         Reported by Ian Beckwith <ianb@erislabs.net>.
25422
25423 2010-04-24  Bruno Haible  <bruno@clisp.org>
25424
25425         ansi-c++-opt: Find correct compiler when cross-compiling.
25426         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25427         AC_CHECK_PROGS.
25428         Reported by Simon Josefsson.
25429
25430 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25431
25432         vc-list-files: Add support for subversion
25433         * build-aux/vc-list-files: Use "svn list" to generate the list of
25434         files controlled by subversion.
25435
25436 2010-04-23  Jim Meyering  <meyering@redhat.com>
25437
25438         vc-list-files tests: convert to use init.sh
25439         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25440         path_prepend_.
25441         Use Exit, not exit.
25442         Use skip_ rather than open coding it.
25443         Remove trap set-up and compare definitions.
25444         * tests/test-vc-list-files-git.sh: Likewise.
25445         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25446
25447 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25448
25449         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25450         backup files.
25451
25452 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25453
25454         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25455
25456 2010-04-20  Eric Blake  <eblake@redhat.com>
25457
25458         tests: be robust to ignored SIGPIPE
25459         * tests/test-select-in.sh: Consume all output.
25460         * tests/test-lseek.sh: Check correct exit status, while avoiding
25461         EPIPE.
25462
25463 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25464             Bruno Haible  <bruno@clisp.org>
25465
25466         visibility: Don't use -fvisibility if it leads to a warning.
25467         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25468         yes, don't pretend that visibility works if it leads to a warning.
25469         Reported by Mike Gran <spk121@yahoo.com>.
25470
25471 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25472
25473         * build-aux/bootstrap: Use "git -h" for testing for supported options
25474         instead of "git --help".  The short-form option only shows a summary,
25475         and doesn't layout the full man page.  Grep for the full option name
25476         in the summary, too.
25477
25478 2010-04-19  Bruno Haible  <bruno@clisp.org>
25479
25480         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25481         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25482         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25483         mention of RELOCATABLE_STRIP.
25484         Reported by Sylvain Beucler <beuc@beuc.net>.
25485
25486 2010-04-19  Bruno Haible  <bruno@clisp.org>
25487
25488         * lib/diffseq.h: Fix typo in comment.
25489         Reported by Eric Blake.
25490
25491 2010-04-19  Bruno Haible  <bruno@clisp.org>
25492
25493         ioctl: Move autoconf macro to a .m4 file.
25494         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25495         * modules/ioctl (Files): Add it.
25496         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25497         Reported by Ian Beckwith <ianb@erislabs.net>.
25498
25499 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25500             Bruno Haible  <bruno@clisp.org>
25501
25502         diffseq: Accommodate use-case with abstract arrays.
25503         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25504         is not defined.
25505         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25506         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25507
25508 2010-04-18  Bruno Haible  <bruno@clisp.org>
25509
25510         * doc/posix-headers/stdbool.texi: More precise wording.
25511
25512 2010-04-17  Jim Meyering  <meyering@redhat.com>
25513
25514         maint.mk: use gnu-style indentation in an embedded perl script
25515         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25516         Rename variable: s/two/last_two_bytes/
25517
25518 2010-04-16  Eric Blake  <eblake@redhat.com>
25519
25520         test-stdbool: skip test that fails with Solaris CC
25521         * tests/test-stdbool.c (f): Skip test that causes compilation
25522         error under buggy C++ compiler.
25523         * lib/stdbool.in.h: Document the limitation.
25524         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25525
25526         setenv: allow compilation with C++
25527         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25528         register keyword.
25529
25530         stdint: allow test to pass with C++
25531         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25532
25533         getopt: allow compilation with C++
25534         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25535         struct.
25536         * lib/getopt.c (_getopt_internal_r): Use correct type.
25537         Reported by Dagobert Michelson, via Joel E. Denny.
25538
25539 2010-04-16  Bruno Haible  <bruno@clisp.org>
25540
25541         Override netdb.h always.
25542         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25543         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25544         Reported by Ludovic Courtès <ludo@gnu.org>.
25545
25546 2010-04-15  Bruno Haible  <bruno@clisp.org>
25547
25548         openpty: Fix mistake from 2010-03-21.
25549         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25550         Reported by Simon Josefsson.
25551
25552 2010-04-15  Eric Blake  <eblake@redhat.com>
25553
25554         test-forkpty: fix expected signature
25555         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25556         Reported by Simon Josefsson.
25557
25558 2010-04-15  Jim Meyering  <meyering@redhat.com>
25559
25560         maint.mk: texinfo_suffix_re_: correct the default regexp
25561         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25562
25563         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25564         make it configurable via texinfo_suffix_re_.
25565
25566 2010-04-14  Eric Blake  <eblake@redhat.com>
25567
25568         strtok_r: relax license to LGPLv2+
25569         * modules/strtok_r (License): Relax license.
25570         Reported by Matthias Bolte.
25571
25572 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25573
25574         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25575         version 1.4.4 by default instead of requiring the libgcrypt
25576         version used during build.  This makes it possible to use the
25577         application with older but still binary compatible libgcrypt
25578         versions.
25579
25580 2010-04-13  Eric Blake  <eblake@redhat.com>
25581
25582         getopt-gnu: match recent glibc fixes and posix ruling
25583         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25584         '+' handling, when requesting extensions.
25585         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25586         'W;' handling.
25587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25588         * doc/posix-functions/getopt.texi (getopt): Document this.
25589         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25590         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25591         Likewise.
25592
25593         getopt: merge bug fixes from glibc
25594         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25595         diagnostics.  Honor '+:' correctly.  Reject ';'.
25596
25597         getopt-posix: detect MacOS bug
25598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25599         optind when missing a required argument.
25600         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25601         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25602         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25603         Likewise.
25604
25605         getopt-posix: avoid spurious failure on Solaris
25606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25607         an indicator that setting optind=1 is sufficient for reset.
25608
25609         getopt-posix: avoid spurious failure on FreeBSD
25610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25611         in POSIX mode, since the m4 test uses it.
25612
25613         gnulib-tool: silence warning on BSD sh
25614         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25615
25616 2010-04-13  Jim Meyering  <meyering@redhat.com>
25617
25618         doc: users.txt: GNU patch now uses gnulib
25619         * users.txt: Add patch.
25620
25621 2010-04-12  Jim Meyering  <meyering@redhat.com>
25622
25623         maint.mk: generate more concise timing data for syntax-check rules
25624         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25625         " done" from each line that reports a syntax-check test duration.
25626
25627 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25628
25629         git-version-gen: use "git update-index..." rather than "git status"
25630         * build-aux/git-version-gen: Use git update-index --refresh, not
25631         "git status".  With some versions of git, "git status" would fail
25632         to update the index and result in an unwarranted "-dirty" suffix.
25633
25634 2010-04-11  Jim Meyering  <meyering@redhat.com>
25635
25636         openat: correct formatting (no semantic change)
25637         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25638         Suggested by Bruno Haible.
25639
25640 2010-04-11  Bruno Haible  <bruno@clisp.org>
25641
25642         Stricter declaration checking in testdirs.
25643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25644         If for_tests is true, augment AM_CPPFLAGS to define
25645         GNULIB_STRICT_CHECKING.
25646         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25647         GNULIB_STRICT_CHECKING is defined, verify that the function is
25648         declared.
25649
25650 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25651             Bruno Haible  <bruno@clisp.org>
25652
25653         libunistring: Improve configure output.
25654         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25655         Don't say "consider installing GNU libunistring" when checking again
25656         with libiconv.
25657
25658 2010-04-11  Bruno Haible  <bruno@clisp.org>
25659
25660         libunistring: Correct value of $LTLIBUNISTRING.
25661         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25662         correct the value of $LTLIBUNISTRING.
25663
25664 2010-04-11  Bruno Haible  <bruno@clisp.org>
25665
25666         havelib: Add static libraries to LIBS in the right order.
25667         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25668         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25669
25670 2010-04-11  Bruno Haible  <bruno@clisp.org>
25671
25672         libunistring: Detect libunistring also when it depends on libiconv.
25673         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25674         the second AC_LIB_HAVE_LINKFLAGS invocation.
25675
25676 2010-04-11  James Youngman  <jay@gnu.org>
25677
25678         close-stream: declare local scalars to be "const"
25679         * lib/close-stream.c (close_stream): Make boolean variables const
25680         to document the fact that we set but do not change them.
25681
25682 2010-04-11  Bruno Haible  <bruno@clisp.org>
25683
25684         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25685
25686 2010-04-11  Jim Meyering  <meyering@redhat.com>
25687
25688         maint.mk: don't include dist-check.mk
25689         * top/maint.mk: Remove bogus include directive.
25690
25691         maint.mk: improve empty-line-at-EOF check
25692         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25693         solution, rather than tail+Perl-based one.  The latter would read
25694         a few kilobytes from the end of each file, and did not handle empty
25695         files properly.
25696
25697         maint.mk: print the elapsed time for each syntax-check rule
25698         * top/maint.mk (sc_m_rules_): Save start time in a file.
25699         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25700         (local-check): Interpose the .z rules
25701
25702 2010-04-11  Jim Meyering  <meyering@redhat.com>
25703
25704         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25705         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25706         empty file with one that ends in an empty line.
25707
25708 2010-04-10  Bruno Haible  <bruno@clisp.org>
25709
25710         mkdir: Make it work on mingw64.
25711         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25712         * lib/mkdir.c: Update comment.
25713         Reported by Roman Donchenko (Đ Đ¾Đ¼Đ°Đ½ Đ”Đ¾Đ½Ñ‡ĐµĐ½ĐºĐ¾) <dxdragon@yandex.ru>.
25714
25715 2010-04-10  Bruno Haible  <bruno@clisp.org>
25716
25717         Don't override improved macro from newer autoconf.
25718         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25719         autoconf >= 2.62.
25720         Reported by Joel E. Denny <jdenny@clemson.edu>.
25721
25722 2010-04-10  Jim Meyering  <meyering@redhat.com>
25723
25724         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25725         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25726
25727         maint.mk: correct a diagnostic
25728         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25729         in diagnostic; now use $prohibit.
25730
25731 2010-04-10  Bruno Haible  <address@hidden>
25732
25733         fchownat: Fix a C++ test error on Solaris 8.
25734         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25735         the function does not exist.
25736
25737 2010-04-10  Bruno Haible  <bruno@clisp.org>
25738
25739         vasnprintf: Add more tests.
25740         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25741         (test_function): Test converting an invalid wide string.
25742
25743         vasnprintf: Correct handling of unconvertible wide string arguments.
25744         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25745         VASNPRINTF.
25746         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25747         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25748         smaller than the expected maximum need for the directive. Set errno to
25749         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25750         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25752         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25753         * modules/vasnprintf (Files): Add m4/printf.m4.
25754         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25755
25756 2010-04-10  Bruno Haible  <bruno@clisp.org>
25757
25758         vasnprintf: Fix crash in %ls directive.
25759         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25760         string is passed as argument to %ls, with no precision and no width.
25761         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25762
25763 2010-04-10  Bruno Haible  <bruno@clisp.org>
25764
25765         vasnprintf: Fix multiple test failures on mingw.
25766         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25767         _snprintf, or snwprintf, not _snwprintf.
25768
25769 2010-04-10  Bruno Haible  <bruno@clisp.org>
25770
25771         write: Fix a C++ test error on mingw.
25772         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25773
25774 2010-04-10  Bruno Haible  <bruno@clisp.org>
25775
25776         vasnprintf test: Reduce code duplication.
25777         * tests/test-vasnprintf.c (test_function): New function, extracted from
25778         test_vasnprintf.
25779         (test_vasnprintf, test_asnprintf): Invoke it.
25780
25781 2010-04-10  Bruno Haible  <bruno@clisp.org>
25782
25783         strnlen: Fix warning in C++ mode on MacOS X.
25784         * lib/string.in.h (strnlen): Use the modern idiom.
25785         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25786         defining strnlen as a macro already in <config.h>.
25787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25788         REPLACE_STRNLEN.
25789         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25790         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25791
25792 2010-04-08  James Youngman  <jay@gnu.org>
25793
25794         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25795         the example.
25796
25797 2010-04-09  Jim Meyering  <meyering@redhat.com>
25798
25799         maint.mk: print better diagnostic when there is no $(_hv_file)
25800         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25801         announce that when $(_hv_file) (aka help-version) does not exist.
25802
25803         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25804         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25805         not try to interpret its random input bytes.  Jarno Rajahalme reported
25806         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25807         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25808         (mktempd_): Likewise, just in case.
25809
25810         ftruncate: add two years to projected module removal date: 2012
25811         * m4/ftruncate.m4: Adjust comments.
25812
25813         ftruncate: mark module as obsolete; even MinGW provides it, now
25814         * modules/ftruncate (Status): Obsolete.
25815         (Notice): Say that.
25816         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25817         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25818
25819 2010-04-08  Bruno Haible  <bruno@clisp.org>
25820
25821         Fix side effects from tests-related modules.
25822         * modules/dprintf-posix (Comment): New section.
25823         * modules/fprintf-posix (Comment): Likewise.
25824         * modules/obstack-printf-posix (Comment): Likewise.
25825         * modules/printf-posix (Comment): Likewise.
25826         * modules/snprintf-posix (Comment): Likewise.
25827         * modules/sprintf-posix (Comment): Likewise.
25828         * modules/vasnprintf-posix (Comment): Likewise.
25829         * modules/vasprintf-posix (Comment): Likewise.
25830         * modules/vdprintf-posix (Comment): Likewise.
25831         * modules/vfprintf-posix (Comment): Likewise.
25832         * modules/vprintf-posix (Comment): Likewise.
25833         * modules/vsnprintf-posix (Comment): Likewise.
25834         * modules/vsprintf-posix (Comment): Likewise.
25835         * modules/xprintf-posix (Comment): Likewise.
25836         * modules/xvasprintf-posix (Comment): Likewise.
25837         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25838         * modules/floorf-tests (Depends-on): Likewise.
25839         * modules/round-tests (Depends-on): Likewise.
25840         * modules/roundf-tests (Depends-on): Likewise.
25841         * modules/trunc-tests (Depends-on): Likewise.
25842         * modules/truncf-tests (Depends-on): Likewise.
25843         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25844         'fprintf-posix' module is not present.
25845         * tests/test-floorf2.c (check): Likewise.
25846         * tests/test-trunc2.c (check): Likewise.
25847         * tests/test-truncf2.c (check): Likewise.
25848         * tests/test-round2.c (equal): Likewise.
25849         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25850
25851 2010-04-07  Karl Berry  <karl@gnu.org>
25852
25853         * config/srclist.txt,
25854         * config/srclistvars.sh,
25855         * config/srclist-update: doc fixes.
25856
25857 2010-04-07  Jim Meyering  <meyering@redhat.com>
25858
25859         maint.mk: add a PATH crosschecking syntax-check rule
25860         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25861         Useful if you use a test like the one in help-version (coreutils,
25862         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25863         printed by prog --version.
25864
25865 2010-04-06  Bruno Haible  <bruno@clisp.org>
25866
25867         Fix link error on mingw.
25868         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25869         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25870
25871 2010-04-06  Bruno Haible  <bruno@clisp.org>
25872
25873         Assume rmdir exists.
25874         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25875
25876 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25877
25878         doc: update users.txt
25879         * users.txt: Add gcal.
25880
25881 2010-04-06  Jim Meyering  <meyering@redhat.com>
25882
25883         init.sh: simply unset TMPDIR rather than risking env -i
25884         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25885         although it probably works fine on all Unix-based systems, some
25886         systems (Cygwin?) cannot tolerate a totally cleared environment.
25887         Suggestion from Eric Blake.
25888
25889 2010-04-06  Jim Meyering  <meyering@redhat.com>
25890
25891         init.sh: portability fix: use env's POSIX-specified -i option not -u
25892         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25893         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25894
25895 2010-04-05  Bruno Haible  <bruno@clisp.org>
25896
25897         btowc: Work around Cygwin 1.7.2 bug.
25898         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25899         does not map NUL to 0.
25900         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25901
25902 2010-04-05  Bruno Haible  <bruno@clisp.org>
25903
25904         Make the multithread modules work on Cygwin 1.7.2.
25905         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25906         imported symbols can be declared weak, so that it returns "no" on
25907         Cygwin 1.7.2.
25908
25909 2010-04-05  Bruno Haible  <bruno@clisp.org>
25910
25911         Use the module 'strncat'.
25912         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25913
25914         Tests for module 'strncat'.
25915         * modules/strncat-tests: New file.
25916         * tests/test-strncat.c: New file.
25917
25918         New module 'strncat'.
25919         * lib/string.in.h (strncat): New declaration.
25920         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25921         * m4/strncat.m4: New file, based on m4/memchr.m4.
25922         * modules/strncat: New file.
25923         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25924         is declared.
25925         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25926         REPLACE_STRNCAT.
25927         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25928         REPLACE_STRNCAT.
25929         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25930         module.
25931         * tests/test-string-c++.cc: Check signature of strncat.
25932
25933 2010-04-05  Jim Meyering  <meyering@redhat.com>
25934
25935         xstrtoumax-tests: convert to use init.sh
25936         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25937         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25938         Use Exit, not exit.
25939         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25940
25941         xstrtoimax-tests: convert to use init.sh
25942         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25943         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25944         Use Exit, not exit.
25945         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25946
25947 2010-04-05  Bruno Haible  <bruno@clisp.org>
25948
25949         sys_socket: Avoid #define replacements in C++ mode.
25950         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25951         warning to the function if possible, rather than #defining the symbol
25952         to a dysfunctional alias.
25953
25954 2010-04-05  Bruno Haible  <bruno@clisp.org>
25955
25956         fseeko: Fix C++ test error on mingw.
25957         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25958         gl_FUNC_FSEEKO.
25959         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25960         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25961         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25962         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25963
25964 2010-04-05  Bruno Haible  <bruno@clisp.org>
25965
25966         duplocale: Improve test output.
25967         * tests/test-duplocale.c (main): Print reason for skipped test.
25968
25969 2010-04-05  Bruno Haible  <bruno@clisp.org>
25970
25971         Assume rmdir exists.
25972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25973         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25974
25975 2010-04-05  Bruno Haible  <bruno@clisp.org>
25976
25977         Fix link error on Solaris 8 with cc.
25978         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25979
25980 2010-04-05  Bruno Haible  <bruno@clisp.org>
25981
25982         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25983         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25984
25985 2010-04-05  Bruno Haible  <bruno@clisp.org>
25986
25987         vasprintf: Update documentation.
25988         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25989
25990 2010-04-05  Bruno Haible  <bruno@clisp.org>
25991
25992         ptsname: Improve test.
25993         * tests/test-ptsname.c (main): Also try the various master names of BSD
25994         systems.
25995
25996 2010-04-05  Bruno Haible  <bruno@clisp.org>
25997
25998         memchr: Avoid a possible C++ test error.
25999         * lib/string.in.h (memchr): Provide declaration if function is missing.
26000         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26001         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26003         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26004
26005 2010-04-05  Bruno Haible  <bruno@clisp.org>
26006
26007         strtok_r: Improve idiom.
26008         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26009         AC_LIBOBJ is used.
26010
26011 2010-04-05  Bruno Haible  <bruno@clisp.org>
26012
26013         strdup: Improve idiom.
26014         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26015         AC_LIBOBJ is used.
26016         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26017         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26018         when AC_LIBOBJ is used.
26019
26020 2010-04-05  Bruno Haible  <bruno@clisp.org>
26021
26022         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26023         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26024         don't set REPLACE_MBSINIT to 1.
26025         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26026         don't set REPLACE_MBRTOWC to 1.
26027         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26028         exist, don't set REPLACE_MBSRTOWCS to 1.
26029         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26030         exist, don't set REPLACE_MBSNRTOWCS to 1.
26031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26032         don't set REPLACE_WCRTOMB to 1.
26033         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26034         exist, don't set REPLACE_WCSRTOMBS to 1.
26035         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26036         exist, don't set REPLACE_WCSNRTOMBS to 1.
26037
26038 2010-04-05  Bruno Haible  <bruno@clisp.org>
26039
26040         ldexpl: Improve idiom.
26041         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26042         make sure to set HAVE_DECL_LDEXPL to 0.
26043
26044 2010-04-05  Jim Meyering  <meyering@redhat.com>
26045
26046         xstrtol-tests: convert to use init.sh
26047         * modules/xstrtol-tests (Files): Add tests/init.sh.
26048         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26049         Use Exit, not exit.
26050         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26051
26052         atexit-tests: convert to use init.sh
26053         * modules/atexit-tests (Files): Add tests/init.sh.
26054         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26055         Use Exit, not exit.
26056         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26057
26058         init.sh: fix typo
26059         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26060
26061         init.sh: make it easier for a test script to write to the tty, ...
26062         when using automake's parallel-tests mode.
26063         * tests/init.sh (stderr_fileno_): Define overridable variable.
26064         (warn_): New function, to use it.
26065         (fail_, skip_, framework_failure_): Use warn_.
26066
26067 2010-04-04  Bruno Haible  <bruno@clisp.org>
26068
26069         btowc: Avoid warning.
26070         * lib/btowc.c: Include <stdlib.h>.
26071         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26072
26073 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26074             Bruno Haible  <bruno@clisp.org>
26075
26076         wchar: Port to NetBSD 1.5.
26077         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26078         * lib/wctype.in.h (WEOF): Likewise.
26079
26080 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26081             Bruno Haible  <bruno@clisp.org>
26082
26083         Port extended stdio to NetBSD 1.5.
26084         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26085         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26086         older.
26087
26088 2010-04-04  Bruno Haible  <bruno@clisp.org>
26089
26090         string: Remove unused substitution.
26091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26092         HAVE_DECL_STRERROR.
26093         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26094
26095 2010-04-04  Bruno Haible  <bruno@clisp.org>
26096
26097         strtod: Avoid a possible C++ test error.
26098         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26099         set REPLACE_STRTOD.
26100
26101 2010-04-04  Bruno Haible  <bruno@clisp.org>
26102
26103         strerror: Update documentation.
26104         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26105
26106 2010-04-04  Bruno Haible  <bruno@clisp.org>
26107
26108         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26109         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26110         _GL_CXXALIAS_SYS_CAST.
26111
26112 2010-04-04  Bruno Haible  <bruno@clisp.org>
26113
26114         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26115         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26116         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26117         REPLACE_FREXPL to 1.
26118         * doc/posix-functions/frexpl.texi: Update documentation.
26119
26120 2010-04-04  Bruno Haible  <bruno@clisp.org>
26121
26122         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26123         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26124
26125 2010-04-04  Bruno Haible  <bruno@clisp.org>
26126
26127         Implement nanosleep for native Windows.
26128         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26129
26130 2010-04-04  Bruno Haible  <bruno@clisp.org>
26131
26132         math: Fix some C++ test errors on Solaris 8.
26133         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26134
26135 2010-04-04  Bruno Haible  <bruno@clisp.org>
26136
26137         math: Fix some C++ test errors on Cygwin.
26138         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26139         truncl): Provide declaration if the system does not have it.
26140         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26141         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26142         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26143         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26144         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26145         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26146         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26147         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26148         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26149         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26150         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26151         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26152         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26153         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26154         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26155         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26157         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26158         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26159         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26160         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26161         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26162
26163 2010-04-04  Bruno Haible  <bruno@clisp.org>
26164
26165         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26166         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26167         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26168         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26169         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26170         * m4/isinf.m4 (gl_ISINF): Likewise.
26171         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26172
26173 2010-04-04  Bruno Haible  <bruno@clisp.org>
26174
26175         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26176         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26177
26178 2010-04-04  Bruno Haible  <bruno@clisp.org>
26179
26180         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26181         * modules/tmpfile (configure.ac): Update.
26182
26183         tmpfile: Fix C++ test error on mingw.
26184         * lib/stdio.in.h (tmpfile): New declaration.
26185         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26186         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26187         * modules/tmpfile (Depends-on): Add stdio.
26188         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26189         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26190         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26191         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26192         REPLACE_TMPFILE.
26193         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26194
26195 2010-04-04  Bruno Haible  <bruno@clisp.org>
26196
26197         ioctl: Fix C++ test error on mingw.
26198         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26199         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26200         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26201
26202 2010-04-03  Bruno Haible  <bruno@clisp.org>
26203
26204         wcwidth: Fix C++ test error on mingw.
26205         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26207         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26208
26209 2010-04-03  Bruno Haible  <bruno@clisp.org>
26210
26211         nanosleep: Fix C++ test error on mingw.
26212         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26213         * lib/time.in.h (nanosleep): Use modern idiom.
26214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26215         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26216         REPLACE_NANOSLEEP to 1.
26217         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26218         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26219
26220 2010-04-03  Bruno Haible  <bruno@clisp.org>
26221
26222         strptime: Fix C++ test error on mingw.
26223         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26224         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26225         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26226         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26227         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26228         not REPLACE_STRPTIME.
26229         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26230         REPLACE_STRPTIME.
26231
26232 2010-04-03  Bruno Haible  <bruno@clisp.org>
26233
26234         timegm: Fix C++ test error on mingw.
26235         * lib/time.in.h (timegm): Use modern idiom.
26236         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26237         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26238         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26239         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26240
26241 2010-04-03  Bruno Haible  <bruno@clisp.org>
26242
26243         timegm: Assume declaration if function exists.
26244         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26245         if it exists. Don't clobber ac_cv_func_timegm.
26246
26247 2010-04-03  Bruno Haible  <bruno@clisp.org>
26248
26249         time_r: Fix C++ test error on mingw.
26250         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26251         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26252         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26253         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26254         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26255
26256 2010-04-03  Bruno Haible  <bruno@clisp.org>
26257
26258         time_r: Minor updates.
26259         * modules/time_r (Description): Mention the provided functions.
26260         * lib/time_r.c: Don't include <string.h>.
26261         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26262         * doc/posix-functions/localtime_r.texi: Likewise.
26263
26264 2010-04-03  Bruno Haible  <bruno@clisp.org>
26265
26266         time: Fix regression introduced on 2010-03-08.
26267         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26268         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26269
26270 2010-04-03  Jim Meyering  <meyering@redhat.com>
26271
26272         maint.mk: don't silently disable project-specific syntax-check rules
26273         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26274         that they need to convert their project-specific syntax-check rules
26275         to use the new _sc_search_regexp.
26276
26277 2010-04-03  Bruno Haible  <bruno@clisp.org>
26278
26279         fchdir: Fix regression introduced on 2010-03-08.
26280         * lib/unistd.in.h (fchdir): Fix declaration.
26281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26283         REPLACE_FCHDIR.
26284         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26285         REPLACE_FCHDIR.
26286
26287 2010-04-03  Bruno Haible  <bruno@clisp.org>
26288
26289         getpagesize: Fix C++ test error on mingw.
26290         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26291         system does not declare the function.
26292         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26293         declared.
26294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26295         HAVE_DECL_GETPAGESIZE.
26296         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26297
26298 2010-04-03  Bruno Haible  <bruno@clisp.org>
26299
26300         stdio: Make C++ tests work on mingw.
26301         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26302         does not declare the function.
26303
26304 2010-04-03  Bruno Haible  <bruno@clisp.org>
26305
26306         ftello: Fix C++ test error on mingw.
26307         * lib/stdio.in.h (ftello): Use modern idiom.
26308         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26309         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26310         is missing and that it needs to be replaced.
26311         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26313         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26314
26315 2010-04-03  Bruno Haible  <bruno@clisp.org>
26316
26317         fseeko: Fix C++ test error on mingw.
26318         * lib/stdio.in.h (fseeko): Use modern idiom.
26319         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26320         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26321         is missing and that it needs to be replaced.
26322         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26324         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26325
26326 2010-04-03  Bruno Haible  <bruno@clisp.org>
26327
26328         mkstemp: Fix C++ test error on mingw.
26329         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26331         function is missing and that it needs to be replaced.
26332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26333         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26334
26335 2010-04-03  Bruno Haible  <bruno@clisp.org>
26336
26337         stpncpy: Fix C++ test error on mingw.
26338         * lib/string.in.h (stpncpy): Use modern idiom.
26339         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26340         function is missing and that it needs to be replaced.
26341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26342         REPLACE_STPNCPY.
26343         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26344
26345 2010-04-03  Bruno Haible  <bruno@clisp.org>
26346
26347         sys_stat: Fix C++ test error on mingw.
26348         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26349         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26350
26351 2010-04-03  Bruno Haible  <bruno@clisp.org>
26352
26353         pty: Update doc.
26354         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26355
26356 2010-04-03  Bruno Haible  <bruno@clisp.org>
26357
26358         unistd: Fix C++ test error on mingw.
26359         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26360
26361 2010-04-03  Bruno Haible  <bruno@clisp.org>
26362
26363         Update doc regarding mingw.
26364         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26365         * doc/glibc-functions/login_tty.texi: Likewise.
26366         * doc/glibc-functions/forkpty.texi: Likewise.
26367
26368 2010-04-03  Bruno Haible  <bruno@clisp.org>
26369
26370         stdlib: Avoid compilation failure of c-strtold on mingw.
26371         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26372
26373 2010-04-03  Bruno Haible  <bruno@clisp.org>
26374
26375         locale: Make C++ tests work on Cygwin and mingw.
26376         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26377         cannot provide the function.
26378         Reported by Simon Josefsson.
26379
26380 2010-04-03  Bruno Haible  <bruno@clisp.org>
26381
26382         localename: Port to MacOS X 10.6.
26383         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26384         memory layout of the locales in MacOS X 10.6 as well.
26385         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26386
26387 2010-04-02  Bruno Haible  <bruno@clisp.org>
26388
26389         gnulib-tool: Ensure that long-running tests are executed last.
26390         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26391         running tests after the one for the other tests.
26392
26393 2010-04-02  Bruno Haible  <bruno@clisp.org>
26394
26395         gnulib-tool: Ensure the tests in the main directory are executed first.
26396         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26397         start with the current directory.
26398
26399 2010-04-02  Bruno Haible  <bruno@clisp.org>
26400
26401         Tests for module 'havelib', moved here from GNU gettext.
26402         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26403         modifications.
26404         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26405         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26406         with modifications.
26407         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26408         modifications.
26409         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26410         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26411         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26412         with modifications.
26413         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26414         with modifications.
26415         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26416         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26417         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26418         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26419         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26420         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26421         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26422         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26423         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26424         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26425         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26426         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26427         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26428         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26429         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26430         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26431         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26432         with modifications.
26433         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26434         with modifications.
26435         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26436         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26437         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26438         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26439         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26440         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26441         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26442         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26443         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26444         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26445         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26446         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26447         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26448         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26449         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26450         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26451         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26452         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26453         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26454         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26455         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26456         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26457         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26458         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26459         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26460         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26461         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26462         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26463         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26464         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26465         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26466         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26467         * tests/havelib/rpathx/rpathx.c: New file, from
26468         gettext/autoconf-lib-link.
26469         * tests/havelib/rpathx/Makefile.am: New file, from
26470         gettext/autoconf-lib-link.
26471         * tests/havelib/rpathx/configure.ac: New file, from
26472         gettext/autoconf-lib-link with modifications.
26473         * tests/havelib/rpathy/rpathy.c: New file, from
26474         gettext/autoconf-lib-link.
26475         * tests/havelib/rpathy/Makefile.am: New file, from
26476         gettext/autoconf-lib-link.
26477         * tests/havelib/rpathy/configure.ac: New file, from
26478         gettext/autoconf-lib-link with modifications.
26479         * tests/havelib/rpathz/rpathz.c: New file, from
26480         gettext/autoconf-lib-link.
26481         * tests/havelib/rpathz/Makefile.am: New file, from
26482         gettext/autoconf-lib-link.
26483         * tests/havelib/rpathz/configure.ac: New file, from
26484         gettext/autoconf-lib-link with modifications.
26485         * tests/havelib/rpathlx/usex.c: New file, from
26486         gettext/autoconf-lib-link.
26487         * tests/havelib/rpathlx/Makefile.am: New file, from
26488         gettext/autoconf-lib-link.
26489         * tests/havelib/rpathlx/configure.ac: New file, from
26490         gettext/autoconf-lib-link with modifications.
26491         * tests/havelib/rpathly/usey.c: New file, from
26492         gettext/autoconf-lib-link.
26493         * tests/havelib/rpathly/Makefile.am: New file, from
26494         gettext/autoconf-lib-link.
26495         * tests/havelib/rpathly/configure.ac: New file, from
26496         gettext/autoconf-lib-link with modifications.
26497         * tests/havelib/rpathlz/usez.c: New file, from
26498         gettext/autoconf-lib-link.
26499         * tests/havelib/rpathlz/Makefile.am: New file, from
26500         gettext/autoconf-lib-link.
26501         * tests/havelib/rpathlz/configure.ac: New file, from
26502         gettext/autoconf-lib-link with modifications.
26503         * tests/havelib/rpathlyx/usey.c: New file, from
26504         gettext/autoconf-lib-link.
26505         * tests/havelib/rpathlyx/Makefile.am: New file, from
26506         gettext/autoconf-lib-link.
26507         * tests/havelib/rpathlyx/configure.ac: New file, from
26508         gettext/autoconf-lib-link with modifications.
26509         * tests/havelib/rpathlzyx/usez.c: New file, from
26510         gettext/autoconf-lib-link.
26511         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26512         gettext/autoconf-lib-link.
26513         * tests/havelib/rpathlzyx/configure.ac: New file, from
26514         gettext/autoconf-lib-link with modifications.
26515         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26516         with modifications.
26517
26518 2010-04-02  Bruno Haible  <bruno@clisp.org>
26519
26520         gnulib-tool: Create distributed built sources also for the tests.
26521         * gnulib-tool (func_create_testdir): Also generate distributed built
26522         sources in the tests directory.
26523
26524 2010-04-02  Bruno Haible  <bruno@clisp.org>
26525
26526         gnulib-tool: Obey user's environment variables.
26527         * gnulib-tool (func_create_testdir): When creating built sources,
26528         respect the environment variables for autoconf, automake, etc. given by
26529         the user.
26530
26531 2010-04-02  Bruno Haible  <bruno@clisp.org>
26532
26533         gnulib-tool: Provide the value of --m4-base to modules.
26534         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26535         of gl_m4_base.
26536
26537 2010-04-02  Eric Blake  <eblake@redhat.com>
26538
26539         maint.mk: fix some fallout
26540         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26541         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26542
26543 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26544
26545         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26546         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26547         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26548         (sc_cast_of_x_alloc_return_value): Likewise.
26549         (sc_cast_of_alloca_return_value): Likewise.
26550         (sc_space_tab): Likewise.
26551         (sc_prohibit_atoi_atof): Likewise.
26552         (sc_prohibit_magic_number_exit): Likewise.
26553         (sc_error_exit_success): Likewise.
26554         (sc_file_system): Likewise.
26555         (sc_prohibit_have_config_h): Likewise.
26556         (sc_require_config_h): Likewise.
26557         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26558         (sc_obsolete_symbols): Likewise.
26559         (sc_changelog): Likewise.
26560         (sc_program_name): Likewise.
26561         (sc_the_the): Likewise.
26562         (sc_trailing_blank): Likewise.
26563         (sc_two_space_separator_in_usage): Likewise.
26564         (sc_useless_cpp_parens): Likewise.
26565         (sc_GPL_version): Likewise.
26566         (sc_GFDL_version): Likewise.
26567         (sc_texinfo_acronym): Likewise.
26568         (sc_prohibit_cvs_keyword): Likewise.
26569         (sc_prohibit_stat_st_blocks): Likewise.
26570         (sc_prohibit_S_IS_definition): Likewise.
26571         (sc_redundant_const): Likewise.
26572         (sc_makefile_TAB_only_indentation): Likewise.
26573         (sc_m4_quote_check): Likewise.
26574         (sc_makefile_path_separator_check): Likewise.
26575         (sc_copyright_check): Likewise.
26576         (sc_Wundef_boolean): Likewise.
26577         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26578
26579         maint.mk: match 0 or more whitespace-before-function-call '('
26580         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26581         that have zero or two-and-more spaces between the function name
26582         and the open parenthesis.
26583         (sc_error_message_warn_fatal): Likewise.
26584         (sc_error_message_uppercase): Likewise.
26585         (sc_error_message_period): Likewise.
26586
26587 2010-03-31  Eric Blake  <eblake@redhat.com>
26588
26589         maint.mk: check for [ as well as test
26590         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26591         Based on a libvirt report by Matthias Bolte.
26592
26593         gnumakefile: don't squelch _version output
26594         * top/GNUmakefile (_version): Create one-shot dependency rather
26595         than using $(shell) when version must be regenerated.
26596         (_autoreconf): Run verbosely, by default.
26597
26598         sys_time: avoid compiler warnings
26599         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26600         unconditional, fixing regression from 2010-03-29.
26601         Reported by Simon Josefsson.
26602
26603 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26604
26605         maint.mk: s/_header_without_use/_sc_header_without_use/
26606         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26607         (sc_prohibit_assert_without_use): Use the new name.
26608         (sc_prohibit_close_stream_without_use): Likewise.
26609         (sc_prohibit_getopt_without_use): Likewise.
26610         (sc_prohibit_quotearg_without_use): Likewise.
26611         (sc_prohibit_quote_without_use): Likewise.
26612         (sc_prohibit_long_options_without_use): Likewise.
26613         (sc_prohibit_inttostr_without_use): Likewise.
26614         (sc_prohibit_ignore_value_without_use): Likewise.
26615         (sc_prohibit_error_without_use): Likewise.
26616         (sc_prohibit_xalloc_without_use): Likewise.
26617         (sc_prohibit_hash_without_use): Likewise.
26618         (sc_prohibit_hash_pjw_without_use): Likewise.
26619         (sc_prohibit_safe_read_without_use): Likewise.
26620         (sc_prohibit_argmatch_without_use): Likewise.
26621         (sc_prohibit_canonicalize_without_use): Likewise.
26622         (sc_prohibit_root_dev_ino_without_use): Likewise.
26623         (sc_prohibit_openat_without_use): Likewise.
26624         (sc_prohibit_c_ctype_without_use): Likewise.
26625         (sc_prohibit_signal_without_use): Likewise.
26626         (sc_prohibit_intprops_without_use): Likewise.
26627
26628 2010-03-30  Eric Blake  <eblake@redhat.com>
26629
26630         maint: improve module indicators
26631         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26632         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26633         columns, and avoid extra macro expansion.
26634
26635         fdopendir: work around FreeBSD bug
26636         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26637         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26638         * modules/dirent (Makefile.am): Substitute it.
26639         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26640         declaration.
26641         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26642         fix.
26643         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26644
26645 2010-03-29  Bruno Haible  <bruno@clisp.org>
26646
26647         Emit #pragma system_header after the inclusion guard, not before.
26648         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26649         guard that spans the entire file, not before. This enables an
26650         optimization in GCC's preprocessor.
26651         * lib/ctype.in.h: Likewise.
26652         * lib/dirent.in.h: Likewise.
26653         * lib/errno.in.h: Likewise.
26654         * lib/float.in.h: Likewise.
26655         * lib/getopt.in.h: Likewise.
26656         * lib/iconv.in.h: Likewise.
26657         * lib/langinfo.in.h: Likewise.
26658         * lib/locale.in.h: Likewise.
26659         * lib/math.in.h: Likewise.
26660         * lib/netdb.in.h: Likewise.
26661         * lib/netinet_in.in.h: Likewise.
26662         * lib/pty.in.h: Likewise.
26663         * lib/sched.in.h: Likewise.
26664         * lib/se-selinux.in.h: Likewise.
26665         * lib/search.in.h: Likewise.
26666         * lib/spawn.in.h: Likewise.
26667         * lib/stdarg.in.h: Likewise.
26668         * lib/stdint.in.h: Likewise.
26669         * lib/string.in.h: Likewise.
26670         * lib/strings.in.h: Likewise.
26671         * lib/sys_file.in.h: Likewise.
26672         * lib/sys_ioctl.in.h: Likewise.
26673         * lib/sys_time.in.h: Likewise.
26674         * lib/sys_times.in.h: Likewise.
26675         * lib/sys_utsname.in.h: Likewise.
26676         * lib/sys_wait.in.h: Likewise.
26677         * lib/sysexits.in.h: Likewise.
26678         * lib/wctype.in.h: Likewise.
26679
26680 2010-03-28  James Youngman  <jay@gnu.org>
26681
26682         save-cwd: don't leak a file descriptor when the caller execs.
26683         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26684         saved file descriptor.
26685         * modules/save-cwd (Depends-on): Depend on cloexec.
26686
26687 2010-03-29  Bruno Haible  <bruno@clisp.org>
26688
26689         Remove vestiges of fts-lgpl module.
26690         * lib/fts_.h: Assume GNULIB_FTS is 1.
26691         * lib/fts.c: Likewise.
26692         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26693
26694 2010-03-28  Bruno Haible  <bruno@clisp.org>
26695
26696         Fix definition of tests witness macro.
26697         * gnulib-tool (func_import): Fix definition of witness macro.
26698
26699 2010-03-28  Bruno Haible  <bruno@clisp.org>
26700
26701         Fix ioctl's protoype on glibc systems.
26702         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26703         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26704         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26705         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26706         signature. If not, arrange to replace the ioctl function.
26707         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26708         REPLACE_IOCTL.
26709         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26710         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26711         Reported by Ludovic Courtès <ludo@gnu.org>.
26712
26713 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26714
26715         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26716         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26717         made it so grep -r --include=GLOB* ... did not work.
26718
26719 2010-03-26  Jim Meyering  <meyering@redhat.com>
26720             Eric Blake  <eblake@redhat.com>
26721
26722         maint.mk: prohibit use of test's -o and -a operators
26723         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26724
26725 2010-03-28  Bruno Haible  <bruno@clisp.org>
26726
26727         Remove unused GNULIB_XYZ macro definitions.
26728         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26729         invocation.
26730
26731 2010-03-28  Bruno Haible  <bruno@clisp.org>
26732
26733         Mark privileged tests modules.
26734         * modules/idpriv-drop-tests (Status): New section.
26735         * modules/idpriv-droptemp-tests (Status): New section.
26736
26737 2010-03-28  Bruno Haible  <bruno@clisp.org>
26738
26739         Split C++ tests into separate tests modules.
26740         * modules/dirent-c++-tests: New file, extracted from
26741         modules/dirent-tests.
26742         * modules/dirent-tests: Depend on it.
26743         * modules/fcntl-h-c++-tests: New file, extracted from
26744         modules/fcntl-h-tests.
26745         * modules/fcntl-h-tests: Depend on it.
26746         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26747         * modules/glob-tests: Depend on it.
26748         * modules/iconv-h-c++-tests: New file, extracted from
26749         modules/iconv-h-tests.
26750         * modules/iconv-h-tests: Depend on it.
26751         * modules/langinfo-c++-tests: New file, extracted from
26752         modules/langinfo-tests.
26753         * modules/langinfo-tests: Depend on it.
26754         * modules/locale-c++-tests: New file, extracted from
26755         modules/locale-tests.
26756         * modules/locale-tests: Depend on it.
26757         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26758         * modules/math-tests: Depend on it.
26759         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26760         * modules/pty-tests: Depend on it.
26761         * modules/search-c++-tests: New file, extracted from
26762         modules/search-tests.
26763         * modules/search-tests: Depend on it.
26764         * modules/signal-c++-tests: New file, extracted from
26765         modules/signal-tests.
26766         * modules/signal-tests: Depend on it.
26767         * modules/spawn-c++-tests: New file, extracted from
26768         modules/spawn-tests.
26769         * modules/spawn-tests: Depend on it.
26770         * modules/stdio-c++-tests: New file, extracted from
26771         modules/stdio-tests.
26772         * modules/stdio-tests: Depend on it.
26773         * modules/stdlib-c++-tests: New file, extracted from
26774         modules/stdlib-tests.
26775         * modules/stdlib-tests: Depend on it.
26776         * modules/string-c++-tests: New file, extracted from
26777         modules/string-tests.
26778         * modules/string-tests: Depend on it.
26779         * modules/sys_ioctl-c++-tests: New file, extracted from
26780         modules/sys_ioctl-tests.
26781         * modules/sys_ioctl-tests: Depend on it.
26782         * modules/sys_select-c++-tests: New file, extracted from
26783         modules/sys_select-tests.
26784         * modules/sys_select-tests: Depend on it.
26785         * modules/sys_socket-c++-tests: New file, extracted from
26786         modules/sys_socket-tests.
26787         * modules/sys_socket-tests: Depend on it.
26788         * modules/sys_stat-c++-tests: New file, extracted from
26789         modules/sys_stat-tests.
26790         * modules/sys_stat-tests: Depend on it.
26791         * modules/sys_time-c++-tests: New file, extracted from
26792         modules/sys_time-tests.
26793         * modules/sys_time-tests: Depend on it.
26794         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26795         * modules/time-tests: Depend on it.
26796         * modules/unistd-c++-tests: New file, extracted from
26797         modules/unistd-tests.
26798         * modules/unistd-tests: Depend on it.
26799         * modules/wchar-c++-tests: New file, extracted from
26800         modules/wchar-tests.
26801         * modules/wchar-tests: Depend on it.
26802         * modules/wctype-c++-tests: New file, extracted from
26803         modules/wctype-tests.
26804         * modules/wctype-tests: Depend on it.
26805         Reported by Simon Josefsson.
26806
26807 2010-03-28  Bruno Haible  <bruno@clisp.org>
26808
26809         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26810         * gnulib-tool (func_exists_module): New function, extracted from
26811         func_verify_module.
26812         (func_verify_module): Use it.
26813         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26814         'foo' only if 'foo' exists.
26815         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26816         module.
26817
26818 2010-03-28  Bruno Haible  <bruno@clisp.org>
26819
26820         gnulib-tool: Add support for special categories of tests.
26821         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26822         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26823         (func_usage): Document them.
26824         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26825         inc_unportable_tests, inc_all_tests): New variables.
26826         (func_acceptable): Consider these variables.
26827         (func_modules_transitive_closure): Make it work when the 'Status' field
26828         consists of multiple words.
26829         (func_import): Store and restore the values of inc_cxx_tests,
26830         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26831         inc_all_tests in gnulib-comp.m4.
26832         (func_create_testdir): Set inc_all_tests to true.
26833         * doc/gnulib.texi (Extra tests modules): New section.
26834         Suggested by Jim Meyering.
26835
26836 2010-03-28  Bruno Haible  <bruno@clisp.org>
26837
26838         ansi-c++-opt: Allow turning off the C++ build by default.
26839         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26840         gl_CXX_CHOICE_DEFAULT_NO is defined.
26841         Requested by Eric Blake.
26842
26843 2010-03-28  Bruno Haible  <bruno@clisp.org>
26844
26845         unistd: Avoid #define replacements in C++ mode.
26846         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26847         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26848         setsockopt, shutdown, select): In C++, attach a warning to the function
26849         if possible, rather than #defining the symbol to a dysfunctional alias.
26850         Reported by John W. Eaton <jwe@gnu.org>.
26851
26852 2010-03-28  Bruno Haible  <bruno@clisp.org>
26853
26854         Fix link errors on mingw.
26855         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26856         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26857         $(LIBSOCKET).
26858         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26859         $(LIBSOCKET).
26860
26861 2010-03-28  Bruno Haible  <bruno@clisp.org>
26862             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26863
26864         lib-ignore: Determine different options for different compilers.
26865         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26866         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26867         Add comments.
26868         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26869         * NEWS: Mention the change.
26870
26871 2010-03-27  Bruno Haible  <bruno@clisp.org>
26872
26873         Remove unused GNULIB_XYZ macro definitions.
26874         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26875         * modules/fseek (configure.ac): Likewise.
26876         * modules/ioctl (configure.ac): Likewise.
26877         * modules/open (configure.ac): Likewise.
26878         * modules/stdlib-safer (configure.ac): Likewise.
26879
26880 2010-03-27  Bruno Haible  <bruno@clisp.org>
26881
26882         Add a remark about certain modules.
26883         * modules/malloc (Comment): New section.
26884         * modules/realloc (Comment): Likewise.
26885         * modules/sigpipe (Comment): Likewise.
26886
26887 2010-03-27  Bruno Haible  <bruno@clisp.org>
26888
26889         Resolve conflict between the two kinds of module indicators.
26890         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26891         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26892         * modules/canonicalize (configure.ac): Invoke
26893         gl_MODULE_INDICATOR_FOR_TESTS.
26894         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26895         GNULIB_XYZ.
26896         * tests/test-dirent-c++.cc: Likewise.
26897         * tests/test-dirent-safer.c: Likewise.
26898         * tests/test-dup2.c: Likewise.
26899         * tests/test-fchdir.c: Likewise.
26900         * tests/test-fcntl-h-c++.cc: Likewise.
26901         * tests/test-getopt.c: Likewise.
26902         * tests/test-getopt.h: Likewise.
26903         * tests/test-langinfo-c++.cc: Likewise.
26904         * tests/test-locale-c++.cc: Likewise.
26905         * tests/test-math-c++.cc: Likewise.
26906         * tests/test-pty-c++.cc: Likewise.
26907         * tests/test-search-c++.cc: Likewise.
26908         * tests/test-signal-c++.cc: Likewise.
26909         * tests/test-spawn-c++.cc: Likewise.
26910         * tests/test-stdio-c++.cc: Likewise.
26911         * tests/test-stdlib-c++.cc: Likewise.
26912         * tests/test-string-c++.cc: Likewise.
26913         * tests/test-sys_ioctl-c++.cc: Likewise.
26914         * tests/test-sys_select-c++.cc: Likewise.
26915         * tests/test-sys_socket-c++.cc: Likewise.
26916         * tests/test-sys_stat-c++.cc: Likewise.
26917         * tests/test-sys_time-c++.cc: Likewise.
26918         * tests/test-time-c++.cc: Likewise.
26919         * tests/test-unistd-c++.cc: Likewise.
26920         * tests/test-wchar-c++.cc: Likewise.
26921         * tests/uninorm/test-u8-nfc.c: Likewise.
26922         * tests/uninorm/test-u8-nfd.c: Likewise.
26923         * tests/uninorm/test-u8-nfkc.c: Likewise.
26924         * tests/uninorm/test-u8-nfkd.c: Likewise.
26925         * tests/uninorm/test-u16-nfc.c: Likewise.
26926         * tests/uninorm/test-u16-nfd.c: Likewise.
26927         * tests/uninorm/test-u16-nfkc.c: Likewise.
26928         * tests/uninorm/test-u16-nfkd.c: Likewise.
26929         * tests/uninorm/test-u32-nfc.c: Likewise.
26930         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26931         * tests/uninorm/test-u32-nfd.c: Likewise.
26932         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26933         * tests/uninorm/test-u32-nfkc.c: Likewise.
26934         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26935         * tests/uninorm/test-u32-nfkd.c: Likewise.
26936         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26937         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26938
26939 2010-03-27  Bruno Haible  <bruno@clisp.org>
26940
26941         Distinguish two kinds of module indicators.
26942         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26943         gl_MODULE_INDICATOR.
26944         (gl_MODULE_INDICATOR): New macro.
26945         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26946         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26947         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26948         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26949         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26950         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26951         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26952         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26953         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26954         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26955         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26956         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26958         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26959         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26960         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26961         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26962         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26964         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26965         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26966         * modules/cloexec (configure.ac): Likewise.
26967         * modules/getopt-gnu (configure.ac): Likewise.
26968         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26969         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26970         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26971         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26972
26973 2010-03-27  Bruno Haible  <bruno@clisp.org>
26974
26975         New module description field 'Comment'.
26976         * gnulib-tool: New option --extract-comment.
26977         (func_usage): Document it.
26978         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26979         (func_get_comment): New function.
26980         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26981
26982 2010-03-27  Bruno Haible  <bruno@clisp.org>
26983
26984         Addendum to 2010-02-07 commit.
26985         * gnulib-tool (func_usage): Document --extract-applicability option.
26986
26987 2010-03-27  Bruno Haible  <bruno@clisp.org>
26988
26989         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26990         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26991         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26992         rather than link errors.
26993
26994 2010-03-27  Bruno Haible  <bruno@clisp.org>
26995
26996         Avoid side effects from tests-related modules on the compilation of lib.
26997         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26998         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26999         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27000         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27001         macro.
27002         (func_import): Define a witness macro. Assign it a value that depends
27003         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27004         tests-related modules.
27005         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27006         Reported by Jim Meyering.
27007
27008 2010-03-27  Bruno Haible  <bruno@clisp.org>
27009
27010         Factorize common .m4 code.
27011         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27012         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27013         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27014         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27015         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27016         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27017         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27018         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27019         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27020         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27021         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27022         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27023         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27024         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27025         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27026         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27027         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27028         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27030         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27031         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27032         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27033         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27034         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27035         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27036         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27037         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27038         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27039         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27040         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27041         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27042         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27043
27044 2010-03-27  Bruno Haible  <bruno@clisp.org>
27045
27046         Fix a compilation error on Cygwin with g++ >= 4.3.
27047         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27048         if it is undefined or if we alias it to chmod.
27049         (lstat): Don't warn about the use of this function if it is undefined
27050         or if we alias it to stat.
27051         Reported by Simon Josefsson.
27052
27053 2010-03-27  Bruno Haible  <bruno@clisp.org>
27054
27055         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27056         * modules/getlogin (configure.ac): Update.
27057
27058         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27059         * modules/getlogin_r (configure.ac): Update.
27060
27061         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27063         * modules/inet_ntop (configure.ac): Update.
27064
27065         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27066         * modules/inet_pton (configure.ac): Update.
27067
27068         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27069         * modules/mbslen (configure.ac): Update.
27070
27071         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27072         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27073         * modules/forkpty (configure.ac): Update.
27074         * modules/openpty (configure.ac): Update.
27075
27076 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27077
27078         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27079         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27080
27081 2010-03-25  Eric Blake  <eblake@redhat.com>
27082
27083         maint: use pragma consistently across replacement headers
27084         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27085         * lib/dirent.in.h (system_header): Likewise.
27086         * lib/errno.in.h (system_header): Likewise.
27087         * lib/float.in.h (system_header): Likewise.
27088         * lib/getopt.in.h (system_header): Likewise.
27089         * lib/iconv.in.h (system_header): Likewise.
27090         * lib/inttypes.in.h (system_header): Likewise.
27091         * lib/langinfo.in.h (system_header): Likewise.
27092         * lib/locale.in.h (system_header): Likewise.
27093         * lib/math.in.h (system_header): Likewise.
27094         * lib/netdb.in.h (system_header): Likewise.
27095         * lib/netinet_in.in.h (system_header): Likewise.
27096         * lib/pty.in.h (system_header): Likewise.
27097         * lib/sched.in.h (system_header): Likewise.
27098         * lib/se-selinux.in.h (system_header): Likewise.
27099         * lib/search.in.h (system_header): Likewise.
27100         * lib/spawn.in.h (system_header): Likewise.
27101         * lib/stdarg.in.h (system_header): Likewise.
27102         * lib/stdint.in.h (system_header): Likewise.
27103         * lib/string.in.h (system_header): Likewise.
27104         * lib/strings.in.h (system_header): Likewise.
27105         * lib/sys_file.in.h (system_header): Likewise.
27106         * lib/sys_ioctl.in.h (system_header): Likewise.
27107         * lib/sys_socket.in.h (system_header): Likewise.
27108         * lib/sys_times.in.h (system_header): Likewise.
27109         * lib/sys_utsname.in.h (system_header): Likewise.
27110         * lib/sys_wait.in.h (system_header): Likewise.
27111         * lib/sysexits.in.h (system_header): Likewise.
27112         * lib/unistd.in.h (system_header): Likewise.
27113         * lib/wctype.in.h (system_header): Likewise.
27114
27115         arpa/inet: fix mingw compilation warning
27116         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27117         Reported by Matthew Bolte.
27118
27119 2010-03-25  Bruno Haible  <bruno@clisp.org>
27120
27121         Avoid collision between gnulib wrapper and libintl wrapper.
27122         * lib/printf.c (printf): Don't define if a printf wrapper is already
27123         defined in intl/printf.c.
27124         Reported by Michel Boaventura <michel@michelboaventura.com>.
27125
27126 2010-03-25  Bruno Haible  <bruno@clisp.org>
27127
27128         Use ANSI C.
27129         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27130
27131 2010-03-25  Bruno Haible  <bruno@clisp.org>
27132
27133         Minor formatting changes.
27134         * lib/acosl.c: Insert space before function argument list.
27135         * lib/argz.c: Likewise.
27136         * lib/asinl.c: Likewise.
27137         * lib/expl.c: Likewise.
27138         * lib/gen-uni-tables.c: Likewise.
27139         * lib/gettext.h: Likewise.
27140         * lib/glthread/lock.h: Likewise.
27141         * lib/tanl.c: Likewise.
27142         * lib/uniname/uniname.c: Likewise.
27143         * tests/test-idpriv-drop.c: Likewise.
27144         * tests/test-idpriv-droptemp.c: Likewise.
27145         * tests/test-lock.c: Likewise.
27146         * tests/test-tls.c: Likewise.
27147         * lib/argp-help.c: Insert space before function-like macro argument
27148         list.
27149         * lib/memcmp.c: Likewise.
27150         * tests/test-base64.c: Likewise.
27151         * lib/localename.c: Insert space before sizeof's argument list.
27152         * lib/safe-alloc.h: Likewise.
27153         * lib/file-set.h: Insert space before macro argument list.
27154         * tests/test-argp.c: Likewise.
27155         * lib/argp-namefrob.h: Insert space before function parameter list.
27156         * lib/getaddrinfo.c: Likewise.
27157         * lib/netdb.in.h: Likewise.
27158         * lib/parse-duration.h: Likewise.
27159         * lib/parse-duration.c: Likewise.
27160         * lib/poll.c: Likewise.
27161         * lib/select.c: Likewise.
27162         * lib/trim.h: Likewise.
27163         * tests/test-usleep.c: Likewise.
27164         * lib/ldexpl.c: Insert space before function parameter list and before
27165         function argument list.
27166         * lib/logl.c: Likewise.
27167         * lib/sqrtl.c: Likewise.
27168         * lib/trim.c: Likewise.
27169         * lib/cosl.c: Use GNU style indentation. Insert space before function
27170         argument list.
27171         * lib/sinl.c: Likewise.
27172         * lib/tsearch.c: Insert space after 'for'.
27173         Reported by Jim Meyering.
27174
27175 2010-03-23  PĂ¡draig Brady  <P@draigBrady.com>  (tiny change)
27176
27177         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27178         config header before grepping, as it's not present before
27179         autoreconf/configure are run.  Reported by Simon Josefsson.
27180
27181 2010-03-23  Bruno Haible  <bruno@clisp.org>
27182
27183         pt_chown: Make it work with automake < 1.11.
27184         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27185         Reported by Simon Josefsson.
27186
27187 2010-03-23  Bruno Haible  <bruno@clisp.org>
27188
27189         pt_chown: Don't depend on GPLed modules.
27190         * lib/pt_chown.c: Don't include idpriv.h.
27191         (main): Don't drop privileges.
27192         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27193         Reported by Simon Josefsson.
27194
27195 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27196
27197         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27198         suggestions from karl@freefriends.org (Karl Berry).
27199
27200 2010-03-22  Eric Blake  <eblake@redhat.com>
27201
27202         gethostname: further tweaks
27203         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27204         are overriding gethostname.
27205         Suggested by Bruno Haible.
27206
27207 2010-03-21  Bruno Haible  <bruno@clisp.org>
27208
27209         Fix comments.
27210         * lib/forkpty.c (rpl_forkpty): Fix comment.
27211         * lib/openpty.c (rpl_openpty): Likewise.
27212         Reported by Eric Blake.
27213
27214 2010-03-22  Eric Blake  <eblake@redhat.com>
27215
27216         gethostname: fix build on mingw
27217         * lib/unistd.in.h (includes): Work around fact that mingw
27218         <winsock2.h> re-includes <unistd.h>, by avoiding any
27219         redeclarations if we are being included by <winsock2.h>.
27220         Reported by Matthias Bolte.
27221
27222 2010-03-21  Bruno Haible  <bruno@clisp.org>
27223
27224         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27225         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27226         modifications.
27227         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27228         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27229         provide the replacement.
27230         * modules/forkpty (Depends-on): Add openpty, login_tty.
27231         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27232         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27233         * doc/glibc-functions/forkpty.texi: More supported platforms.
27234         * config/srclist.txt: Add forkpty.c (commented).
27235
27236 2010-03-21  Bruno Haible  <bruno@clisp.org>
27237
27238         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27239         (Makefile.am): Verify that PTY_LIB is defined.
27240
27241         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27242
27243 2010-03-21  Bruno Haible  <bruno@clisp.org>
27244
27245         Tests for module 'login_tty'.
27246         * modules/login_tty-tests: New file.
27247         * tests/test-login_tty.c: New file.
27248
27249         New module 'login_tty'.
27250         * lib/login_tty.c: New file.
27251         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27252         * modules/login_tty: New file.
27253         * doc/glibc-functions/login_tty.texi: Mention the new module.
27254
27255 2010-03-21  Bruno Haible  <bruno@clisp.org>
27256
27257         login_tty: Documentation.
27258         * doc/glibc-functions/login_tty.texi: New file.
27259         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27260
27261 2010-03-21  Bruno Haible  <bruno@clisp.org>
27262
27263         pty: Consistent macro naming.
27264         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27265         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27266         * modules/pty (configure.ac): Update.
27267
27268 2010-03-21  Bruno Haible  <bruno@clisp.org>
27269
27270         Tests for openpty: Make stricter.
27271         * tests/test-openpty.c (main): Add test of canonical processing and
27272         erase.
27273         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27274
27275         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27276         * lib/openpty.c (openpty): New replacement function.
27277         * lib/pty.in.h: Include <termios.h>.
27278         (openpty): Update declaration. Add comments.
27279         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27280         is not declared, arrange to provide the replacement. Check for _getpty
27281         and posix_openpt.
27282         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27283         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27284         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27285         * modules/pty-tests (test_pty_c___LDADD): New variable.
27286         * doc/glibc-functions/openpty.texi: More supported platforms.
27287
27288 2010-03-21  Bruno Haible  <bruno@clisp.org>
27289
27290         setenv: Tweaks.
27291         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27292         the test program.
27293         * doc/posix-functions/setenv.texi: Update platforms list.
27294
27295 2010-03-21  Bruno Haible  <bruno@clisp.org>
27296
27297         New module 'unlockpt'.
27298         * lib/unlockpt.c: New file, from glibc with modifications.
27299         * m4/unlockpt.m4: New file.
27300         * modules/unlockpt: New file.
27301         * lib/stdlib.in.h (unlockpt): New declaration.
27302         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27303         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27304         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27305         HAVE_UNLOCKPT.
27306         * doc/posix-functions/unlockpt.texi: Mention the new module.
27307         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27308         * config/srclist.txt: Add unlockpt.c (commented).
27309
27310 2010-03-21  Jim Meyering  <meyering@redhat.com>
27311
27312         maint.mk: prohibit inclusion of "intprops.h" without use
27313         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27314
27315 2010-03-21  Bruno Haible  <bruno@clisp.org>
27316
27317         New module 'grantpt'.
27318         * lib/grantpt.c: New file, from glibc with modifications.
27319         * m4/grantpt.m4: New file.
27320         * modules/grantpt: New file.
27321         * lib/stdlib.in.h (grantpt): New declaration.
27322         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27323         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27324         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27325         HAVE_GRANTPT.
27326         * doc/posix-functions/grantpt.texi: Mention the new module.
27327         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27328         * config/srclist.txt: Add grantpt.c (commented).
27329
27330 2010-03-21  Bruno Haible  <bruno@clisp.org>
27331
27332         New module 'pt_chown'.
27333         * lib/pt_chown.c: New file, from glibc with modifications.
27334         * lib/pty-private.h: New file, from glibc with modifications.
27335         * modules/pt_chown: New file.
27336         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27337
27338 2010-03-21  Bruno Haible  <bruno@clisp.org>
27339
27340         Tests for module 'ptsname'.
27341         * modules/ptsname-tests: New file.
27342         * tests/test-ptsname.c: New file.
27343
27344         New module 'ptsname'.
27345         * lib/ptsname.c: New file, from glibc with modifications.
27346         * m4/ptsname.m4: New file.
27347         * modules/ptsname: New file.
27348         * lib/stdlib.in.h (ptsname): New declaration.
27349         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27350         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27351         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27352         HAVE_PTSNAME.
27353         * doc/posix-functions/ptsname.texi: Mention the new module.
27354         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27355         * config/srclist.txt: Add ptsname.c (commented).
27356
27357 2010-03-21  Bruno Haible  <bruno@clisp.org>
27358
27359         Tests for module 'ttyname_r'.
27360         * modules/ttyname_r-tests: New file.
27361         * tests/test-ttyname_r.c: New file.
27362
27363         New module 'ttyname_r'.
27364         * lib/ttyname_r.c: New file.
27365         * m4/ttyname_r.m4: New file.
27366         * modules/ttyname_r: New file.
27367         * lib/unistd.in.h (ttyname_r): New declaration.
27368         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27369         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27370         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27371         HAVE_TTYNAME_R.
27372         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27373         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27374
27375 2010-03-20  Bruno Haible  <bruno@clisp.org>
27376
27377         signal: Undefine macro definitions in C++ mode.
27378         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27379         sigfillset): Undefine macro definitions from the system header in C++
27380         mode.
27381         Reported by John W. Eaton <jwe@gnu.org>.
27382
27383 2010-03-20  Bruno Haible  <bruno@clisp.org>
27384
27385         Ensure no #include statements inside extern "C" { ... }.
27386         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27387         contain #include statements.
27388         * lib/time.in.h: Likewise.
27389
27390 2010-03-20  Bruno Haible  <bruno@clisp.org>
27391
27392         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27393         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27394         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27395         Reported by John W. Eaton <jwe@gnu.org>.
27396
27397 2010-03-20  Bruno Haible  <bruno@clisp.org>
27398
27399         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27400         Reported by Jim Meyering.
27401
27402 2010-03-20  Bruno Haible  <bruno@clisp.org>
27403
27404         pipe: Set errno upon failure.
27405         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27406         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27407         errno value in error message.
27408
27409 2010-03-20  Bruno Haible  <bruno@clisp.org>
27410             Jim Meyering  <meyering@redhat.com>
27411
27412         lchown: Avoid "unused variable" warning.
27413         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27414
27415 2010-03-20  Bruno Haible  <bruno@clisp.org>
27416
27417         Work around unlink() bug on MacOS X 10.5.6.
27418         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27419         attempting to unlink a parent directory.
27420         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27421         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27422         activate for the replacement function.
27423         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27424
27425 2010-03-20  Bruno Haible  <bruno@clisp.org>
27426
27427         Fix link errors on Solaris 8.
27428         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27429         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27430
27431 2010-03-19  Jim Meyering  <meyering@redhat.com>
27432
27433         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27434         The _LIBC implementation of build_range_exp correctly honors the
27435         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27436         However, the non-_LIBC implementation would ignore that syntax-bit
27437         flag and return REG_ERANGE unconditionally.
27438         This change makes it honor that flag.
27439         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27440         Make two pointer parameters "const".
27441         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27442         (parse_bracket_exp): Update caller.
27443
27444         regex.m4: correct the reversed range endpoint ([b-a]) test
27445         * m4/regex.m4: When requiring that [b-a] evoke failure,
27446         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27447         test pass once again for x86-based systems.
27448
27449 2010-03-19  Bruno Haible  <bruno@clisp.org>
27450
27451         scandir: Fix link error on Solaris 8.
27452         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27453         macros.
27454
27455 2010-03-19  Bruno Haible  <bruno@clisp.org>
27456
27457         getusershell: Fix documentation.
27458         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27459         module.
27460         * doc/glibc-functions/setusershell.texi: Likewise.
27461
27462         getusershell: Provide declaration, missing on Solaris 9.
27463         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27464         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27465         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27466         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27468         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27469         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27470         HAVE_GETUSERSHELL.
27471         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27472
27473 2010-03-19  Bruno Haible  <bruno@clisp.org>
27474
27475         wctype: Provide iswblank function.
27476         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27477         exists and is fine.
27478         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27479         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27480         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27481         * doc/posix-functions/iswblank.texi: Update.
27482
27483 2010-03-19  Bruno Haible  <bruno@clisp.org>
27484
27485         Tests of module 'pty' in C++ mode.
27486         * modules/pty-tests: New file.
27487         * tests/test-pty-c++.cc: New file.
27488         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27489
27490 2010-03-19  Eric Blake  <eblake@redhat.com>
27491
27492         logb: fix documentation
27493         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27494         1.5 declaration bug.
27495
27496         forkpty, openpty: prefer glibc's const-safe prototype
27497         * lib/forkpty.c (rpl_forkpty): New file.
27498         * lib/openpty.c (rpl_openpty): Likewise.
27499         * modules/forkpty (Files): Distribute it.
27500         * modules/openpty (Files): Likewise.
27501         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27502         check...
27503         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27504         replacement for for non-const BSD signature.
27505         * modules/pty (Makefile.am): Substitute witnesses.
27506         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27507         * tests/test-forkpty.c: Update signature check.
27508         * tests/test-openpty.c: Likewise.
27509         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27510         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27511
27512         forkpty, openpty: split functions into new modules
27513         * modules/pty (Makefile.am): Substitute new witnesses.
27514         (Libraries): Move library detection...
27515         * modules/forkpty: ...into new module.
27516         * modules/openpty: Another new module.
27517         * modules/pty-tests: Rename and split...
27518         * modules/forkpty-tests: ...to this...
27519         * modules/openpty-tests: ...and this.
27520         * tests/test-pty.c: Rename and split...
27521         * tests/test-forkpty.c: ...to this...
27522         * tests/test-openpty.c: ...and this.
27523         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27524         (gl_PTY): Split library searching...
27525         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27526         (gl_FORKPTY, gl_OPENPTY): New macros.
27527         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27528         * NEWS: Mention the split.
27529         * MODULES.html.sh (Misc): Document the modules.
27530         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27531         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27532
27533         pty: improve replacement header
27534         * lib/pty.in.h: New file.
27535         * modules/pty (Files): Ship it.
27536         (Makefile.am): Always build replacement.
27537         * m4/pty.m4: Rename...
27538         * m4/pty_h.m4: ...to this.
27539         (gl_PTY): Modernize setting of witness macros; update check of
27540         forkpty to take proper advantage of cache.
27541         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27542
27543         getopt: avoid compiler warning
27544         * lib/getopt.c (attribute_hidden): Remove unused macro.
27545
27546 2010-03-18  Bruno Haible  <bruno@clisp.org>
27547
27548         Fix link errors on Solaris 8.
27549         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27550         * modules/search-tests (test_search_c___LDADD): Likewise.
27551         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27552         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27553         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27554         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27555         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27556         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27557         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27558
27559 2010-03-18  Bruno Haible  <bruno@clisp.org>
27560
27561         Fix bug introduced on 2010-03-14.
27562         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27563         (gl_SPAWN_H): Require it.
27564         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27565         Reported by Simon Josefsson.
27566
27567 2010-03-18  Bruno Haible  <bruno@clisp.org>
27568
27569         Fix typo introduced on 2009-12-31.
27570         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27571         posix_spawn_file_actions_adddup2.
27572
27573 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27574         and Eric Blake  <eblake@redhat.com>
27575
27576         test-vc-list-files-git: make more robust
27577         * tests/test-vc-list-files-git.sh: Unset problematic environment
27578         variables.  Chain commands together.
27579
27580 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27581
27582         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27583         `AC_CHECK_DECL' invocation.
27584
27585 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27586
27587         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27588         appears before executable statements. Suggested by Petr Sumbera
27589         <Petr.Sumbera@Sun.COM>.
27590
27591 2010-03-14  Bruno Haible  <bruno@clisp.org>
27592
27593         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27594         portability problems. Instead use a simpler test.
27595         (main): Check that invalid arguments are rejected only on Linux.
27596
27597 2010-03-14  Bruno Haible  <bruno@clisp.org>
27598
27599         Fix bug introduced on 2009-12-31.
27600         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27601         gl_PREREQ_SYS_H_WINSOCK2 always.
27602         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27603         SYS_SOCKET_H variable.
27604         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27605         Update comments.
27606         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27607         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27608         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27609         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27610         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27611
27612 2010-03-14  Bruno Haible  <bruno@clisp.org>
27613
27614         Fix values returned by sinl, cosl.
27615         * lib/trigl.h: Add specification comments.
27616         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27617         that combines the values from the precomputed table with the values of
27618         the Chebyshev polynomials.
27619
27620 2010-03-14  Bruno Haible  <bruno@clisp.org>
27621
27622         Fix compilation error when modules 'posix_spawn[p]' are not used.
27623         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27624         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27625
27626 2010-03-14  Bruno Haible  <bruno@clisp.org>
27627
27628         Fix compilation error on mingw when module 'time_r' is not used.
27629         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27630         is 1.
27631         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27632         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27633         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27634         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27635
27636 2010-03-14  Bruno Haible  <bruno@clisp.org>
27637
27638         Fix compilation error with Sun C.
27639         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27640         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27641         instead of GCC specific ULONG_LONG_MAX.
27642         * lib/xstrtoll.c: Likewise.
27643         * lib/xstrtoull.c: Likewise.
27644
27645 2010-03-13  Bruno Haible  <bruno@clisp.org>
27646
27647         Allow the user to disable C++ code and tests.
27648         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27649         (gl_PROG_ANSI_CXX): Require it.
27650
27651 2010-03-13  Bruno Haible  <bruno@clisp.org>
27652
27653         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27654         cases.
27655
27656 2010-03-13  Bruno Haible  <bruno@clisp.org>
27657
27658         Test that gnulib does not break the standard C++ headers.
27659         * tests/test-locale-c++2.cc: New file.
27660         * modules/locale-tests (Files): Add it.
27661         (Makefile.am): Compile it for test-locale-c++.
27662         * tests/test-math-c++2.cc: New file.
27663         * modules/math-tests (Files): Add it.
27664         (Makefile.am): Compile it for test-math-c++.
27665         * tests/test-signal-c++2.cc: New file.
27666         * modules/signal-tests (Files): Add it.
27667         (Makefile.am): Compile it for test-signal-c++.
27668         * tests/test-stdio-c++2.cc: New file.
27669         * modules/stdio-tests (Files): Add it.
27670         (Makefile.am): Compile it for test-stdio-c++.
27671         * tests/test-stdlib-c++2.cc: New file.
27672         * modules/stdlib-tests (Files): Add it.
27673         (Makefile.am): Compile it for test-stdlib-c++.
27674         * tests/test-string-c++2.cc: New file.
27675         * modules/string-tests (Files): Add it.
27676         (Makefile.am): Compile it for test-string-c++.
27677         * tests/test-time-c++2.cc: New file.
27678         * modules/time-tests (Files): Add it.
27679         (Makefile.am): Compile it for test-time-c++.
27680         Reported by John W. Eaton <jwe@gnu.org>.
27681
27682 2010-03-13  Bruno Haible  <bruno@clisp.org>
27683
27684         * gnulib-tool (func_usage): Clarify which options are available for
27685         --create-testdir and --create-megatestdir.
27686
27687 2010-03-13  Bruno Haible  <bruno@clisp.org>
27688
27689         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27690         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27691         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27692         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27693         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27694         when appropriate.
27695         Reported by Jim Meyering.
27696
27697 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27698
27699         * gnulib-tool (func_import): Explain origin of code.
27700
27701 2010-03-12  Bruno Haible  <bruno@clisp.org>
27702
27703         Fix problem with automake's definition of CXXLINK.
27704         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27705         Reported by Simon Josefsson and Ludovic Courtès.
27706
27707 2010-03-12  Bruno Haible  <bruno@clisp.org>
27708
27709         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27710         stable releases.
27711
27712 2010-03-11  Bruno Haible  <bruno@clisp.org>
27713
27714         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27715         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27716         whether the system provides one variant or multiple variants of the
27717         function.
27718         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27719         C++ compilers.
27720         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27721         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27722         Reported by Jim Meyering.
27723
27724 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27725
27726         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27727
27728 2010-03-08  Bruno Haible  <bruno@clisp.org>
27729
27730         gnulib-tool: Add support for --libtool in --create-testdir.
27731         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27732         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27733
27734 2010-03-08  Eric Blake  <eblake@redhat.com>
27735
27736         gnulib-tool.texi: mention possibility of git submodule
27737         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27738         submodules.
27739         * doc/.gitignore: Ignore another generated file.
27740
27741 2010-03-08  Karl Berry  <karl@gnu.org>
27742
27743         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27744         of committing gnulib files while skipping others.
27745
27746 2010-03-07  Bruno Haible  <bruno@clisp.org>
27747
27748         Tests of module 'wctype' in C++ mode.
27749         * tests/test-wctype-c++.cc: New file.
27750         * modules/wctype-tests (Files): Add it and tests/signature.h.
27751         (Depends-on): Add ansi-c++-opt.
27752         (Makefile.am): Arrange to compile and run test-wctype-c++.
27753
27754         Tests of module 'wchar' in C++ mode.
27755         * tests/test-wchar-c++.cc: New file.
27756         * modules/wchar-tests (Files): Add it and tests/signature.h.
27757         (Depends-on): Add ansi-c++-opt.
27758         (Makefile.am): Arrange to compile and run test-wchar-c++.
27759         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27760         gl_MODULE_INDICATOR.
27761
27762         Tests of module 'unistd' in C++ mode.
27763         * tests/test-unistd-c++.cc: New file.
27764         * modules/unistd-tests (Files): Add it and tests/signature.h.
27765         (Depends-on): Add ansi-c++-opt.
27766         (Makefile.am): Arrange to compile and run test-unistd-c++.
27767         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27768         gl_MODULE_INDICATOR.
27769
27770         Tests of module 'time' in C++ mode.
27771         * tests/test-time-c++.cc: New file.
27772         * modules/time-tests (Files): Add it and tests/signature.h.
27773         (Depends-on): Add ansi-c++-opt.
27774         (Makefile.am): Arrange to compile and run test-time-c++.
27775         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27776
27777         Tests of module 'sys_time' in C++ mode.
27778         * tests/test-sys_time-c++.cc: New file.
27779         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27780         (Depends-on): Add ansi-c++-opt.
27781         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27782         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27783         gl_MODULE_INDICATOR.
27784
27785         Tests of module 'sys_stat' in C++ mode.
27786         * tests/test-sys_stat-c++.cc: New file.
27787         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27788         (Depends-on): Add ansi-c++-opt.
27789         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27790         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27791         gl_MODULE_INDICATOR.
27792
27793         Tests of module 'sys_socket' in C++ mode.
27794         * tests/test-sys_socket-c++.cc: New file.
27795         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27796         (Depends-on): Add ansi-c++-opt.
27797         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27798         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27799         gl_MODULE_INDICATOR.
27800
27801         Tests of module 'sys_select' in C++ mode.
27802         * tests/test-sys_select-c++.cc: New file.
27803         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27804         (Depends-on): Add ansi-c++-opt.
27805         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27806         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27807         gl_MODULE_INDICATOR.
27808
27809         Tests of module 'sys_ioctl' in C++ mode.
27810         * tests/test-sys_ioctl-c++.cc: New file.
27811         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27812         (Depends-on): Add ansi-c++-opt.
27813         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27814         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27815         gl_MODULE_INDICATOR.
27816
27817         Tests of module 'string' in C++ mode.
27818         * tests/test-string-c++.cc: New file.
27819         * modules/string-tests (Files): Add it and tests/signature.h.
27820         (Depends-on): Add ansi-c++-opt.
27821         (Makefile.am): Arrange to compile and run test-string-c++.
27822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27823         gl_MODULE_INDICATOR.
27824
27825         Tests of module 'stdlib' in C++ mode.
27826         * tests/test-stdlib-c++.cc: New file.
27827         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27828         (Depends-on): Add ansi-c++-opt.
27829         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27830         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27831         gl_MODULE_INDICATOR.
27832
27833         Tests of module 'stdio' in C++ mode.
27834         * tests/test-stdio-c++.cc: New file.
27835         * modules/stdio-tests (Files): Add it and tests/signature.h.
27836         (Depends-on): Add ansi-c++-opt.
27837         (Makefile.am): Arrange to compile and run test-stdio-c++.
27838         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27839         gl_MODULE_INDICATOR.
27840
27841         Tests of module 'spawn' in C++ mode.
27842         * tests/test-spawn-c++.cc: New file.
27843         * modules/spawn-tests (Files): Add it and tests/signature.h.
27844         (Depends-on): Add ansi-c++-opt.
27845         (Makefile.am): Arrange to compile and run test-spawn-c++.
27846         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27847         gl_MODULE_INDICATOR.
27848
27849         Tests of module 'signal' in C++ mode.
27850         * tests/test-signal-c++.cc: New file.
27851         * modules/signal-tests (Files): Add it and tests/signature.h.
27852         (Depends-on): Add ansi-c++-opt.
27853         (Makefile.am): Arrange to compile and run test-signal-c++.
27854         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27855         gl_MODULE_INDICATOR.
27856
27857         Tests of module 'search' in C++ mode.
27858         * tests/test-search-c++.cc: New file.
27859         * modules/search-tests (Files): Add it and tests/signature.h.
27860         (Depends-on): Add ansi-c++-opt.
27861         (Makefile.am): Arrange to compile and run test-search-c++.
27862         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27863         gl_MODULE_INDICATOR.
27864
27865         Tests of module 'math' in C++ mode.
27866         * tests/test-math-c++.cc: New file.
27867         * modules/math-tests (Files): Add it and tests/signature.h.
27868         (Depends-on): Add ansi-c++-opt.
27869         (Makefile.am): Arrange to compile and run test-math-c++.
27870         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27871
27872         Tests of module 'locale' in C++ mode.
27873         * tests/test-locale-c++.cc: New file.
27874         * modules/locale-tests (Files): Add it and tests/signature.h.
27875         (Depends-on): Add ansi-c++-opt.
27876         (Makefile.am): Arrange to compile and run test-locale-c++.
27877         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27878         gl_MODULE_INDICATOR.
27879
27880         Tests of module 'langinfo' in C++ mode.
27881         * tests/test-langinfo-c++.cc: New file.
27882         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27883         (Depends-on): Add ansi-c++-opt.
27884         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27885         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27886         gl_MODULE_INDICATOR.
27887
27888         Tests of module 'iconv-h' in C++ mode.
27889         * tests/test-iconv-h-c++.cc: New file.
27890         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27891         (Depends-on): Add ansi-c++-opt.
27892         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27893
27894         Tests of module 'glob' in C++ mode.
27895         * tests/test-glob-c++.cc: New file.
27896         * modules/glob-tests (Files): Add it.
27897         (Depends-on): Add ansi-c++-opt.
27898         (Makefile.am): Arrange to compile and run test-glob-c++.
27899
27900         Tests of module 'fcntl-h' in C++ mode.
27901         * tests/test-fcntl-h-c++.cc: New file.
27902         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27903         (Depends-on): Add ansi-c++-opt.
27904         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27905         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27906         gl_MODULE_INDICATOR.
27907
27908         Tests of module 'dirent' in C++ mode.
27909         * tests/test-dirent-c++.cc: New file.
27910         * modules/dirent-tests (Files): Add it and tests/signature.h.
27911         (Depends-on): Add ansi-c++-opt.
27912         (Makefile.am): Arrange to compile and run test-dirent-c++.
27913         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27914         gl_MODULE_INDICATOR.
27915
27916         New module 'ansi-c++-opt'.
27917         * modules/ansi-c++-opt: New file.
27918         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27919
27920         Document C++ namespace mode.
27921         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27922
27923         wctype: Avoid #define replacements in C++ mode.
27924         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27925         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27926         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27927         In C++, define a namespaced alias symbol.
27928         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27929         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27930         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27931         rule.
27932
27933         wchar: Avoid #define replacements in C++ mode.
27934         * lib/wchar.in.h: Include c++defs.h.
27935         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27936         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27937         symbol.
27938         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27939         * modules/wchar (Depends-on): Add c++defs.
27940         (Makefile.am): Update wchar.h rule.
27941
27942         unistd: Avoid #define replacements in C++ mode.
27943         * lib/unistd.in.h: Include c++defs.h.
27944         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27945         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27946         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27947         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27948         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27949         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27950         symbol.
27951         (environ): Update.
27952         * modules/unistd (Depends-on): Add c++defs.
27953         (Makefile.am): Update unistd.h rule.
27954
27955         time: Avoid #define replacements in C++ mode.
27956         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27957         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27958         define a namespaced alias symbol.
27959         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27960         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27961         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27962         * modules/time (Depends-on): Add c++defs, warn-on-use.
27963         (Makefile.am): Update time.h rule.
27964         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27965         * modules/nanosleep (configure.ac): Likewise.
27966         * modules/strptime (configure.ac): Likewise.
27967         * modules/timegm (configure.ac): Likewise.
27968
27969         sys_time: Avoid #define replacements in C++ mode.
27970         * lib/sys_time.in.h: Include c++defs.h.
27971         (gettimeofday): In C++, define a namespaced alias symbol.
27972         * modules/sys_time (Depends-on): Add c++defs.
27973         (Makefile.am): Update sys/time.h rule.
27974
27975         sys_stat: Avoid #define replacements in C++ mode.
27976         * lib/sys_stat.in.h: Include c++defs.h.
27977         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27978         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27979         namespaced alias symbol.
27980         In C++, define a namespaced alias symbol.
27981         * modules/sys_stat (Depends-on): Add c++defs.
27982         (Makefile.am): Update sys/stat.h rule.
27983
27984         sys_socket: Avoid #define replacements in C++ mode.
27985         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27986         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27987         definitions also when the system has a <sys/socket.h>.
27988         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27989         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27990         In C++, define a namespaced alias symbol.
27991         * modules/sys_socket (Depends-on): Add c++defs.
27992         (Makefile.am): Update sys/socket.h rule.
27993
27994         sys_select: Avoid #define replacements in C++ mode.
27995         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27996         definitions also when the system has a <sys/select.h>.
27997         (select): In C++, define a namespaced alias symbol.
27998         * modules/sys_select (Depends-on): Add c++defs.
27999         (Makefile.am): Update sys/select.h rule.
28000
28001         sys_ioctl: Avoid #define replacements in C++ mode.
28002         * lib/sys_ioctl.in.h: Include c++defs.h.
28003         (ioctl): In C++, define a namespaced alias symbol.
28004         * modules/sys_ioctl (Depends-on): Add c++defs.
28005         (Makefile.am): Update sys/ioctl.h rule.
28006
28007         string: Avoid #define replacements in C++ mode.
28008         * lib/string.in.h: Include c++defs.h.
28009         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28010         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28011         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28012         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28013         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28014         * modules/string (Depends-on): Add c++defs.
28015         (Makefile.am): Update string.h rule.
28016
28017         stdlib: Avoid #define replacements in C++ mode.
28018         * lib/stdlib.in.h: Include c++defs.h.
28019         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28020         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28021         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28022         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28023         symbol.
28024         * modules/stdlib (Depends-on): Add c++defs.
28025         (Makefile.am): Update stdlib.h rule.
28026
28027         stdio: Avoid #define replacements in C++ mode.
28028         * lib/stdio.in.h: Include c++defs.h.
28029         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28030         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28031         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28032         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28033         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28034         namespaced alias symbol.
28035         * modules/stdio (Depends-on): Add c++defs.
28036         (Makefile.am): Update stdio.h rule.
28037
28038         spawn: Avoid #define replacements in C++ mode.
28039         * lib/spawn.in.h: Include c++defs.h.
28040         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28041         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28042         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28043         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28044         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28045         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28046         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28047         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28048         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28049         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28050         In C++, define a namespaced alias symbol.
28051         * modules/spawn (Depends-on): Add c++defs.
28052         (Makefile.am): Update spawn.h rule.
28053
28054         signal: Avoid #define replacements in C++ mode.
28055         * lib/signal.in.h: Include c++defs.h.
28056         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28057         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28058         namespaced alias symbol.
28059         * modules/signal (Depends-on): Add c++defs.
28060         (Makefile.am): Update signal.h rule.
28061
28062         search: Avoid #define replacements in C++ mode.
28063         * lib/search.in.h: Include c++defs.h.
28064         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28065         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28066         symbol.
28067         * modules/search (Depends-on): Add c++defs.
28068         (Makefile.am): Update search.h rule.
28069
28070         math: Avoid #define replacements in C++ mode.
28071         * lib/math.in.h: Include c++defs.h.
28072         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28073         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28074         trunc, truncl): In C++, define a namespaced alias symbol.
28075         * modules/math (Depends-on): Add c++defs.
28076         (Makefile.am): Update math.h rule.
28077
28078         locale: Avoid #define replacements in C++ mode.
28079         * lib/locale.in.h: Include c++defs.h.
28080         (duplocale): In C++, define a namespaced alias symbol.
28081         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28082         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28083         * modules/locale (Depends-on): Add c++defs.
28084         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28085
28086         langinfo: Avoid #define replacements in C++ mode.
28087         * lib/langinfo.in.h: Include c++defs.h.
28088         (nl_langinfo): In C++, define a namespaced alias symbol.
28089         * modules/langinfo (Depends-on): Add c++defs.
28090         (Makefile.am): Update langinfo.h rule.
28091
28092         iconv-h: Avoid #define replacements in C++ mode.
28093         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28094         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28095         symbol.
28096         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28097         whenever iconv is present.
28098         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28099         (Makefile.am): Update iconv.h rule.
28100
28101         glob: Avoid #define replacements in C++ mode.
28102         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28103         (_gl_glob_errfunc_fn): New type.
28104         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28105         symbol.
28106         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28107         (Makefile.am): Update glob.h rule.
28108
28109         fcntl-h: Avoid #define replacements in C++ mode.
28110         * lib/fcntl.in.h: Include c++defs.h.
28111         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28112         * modules/fcntl-h (Depends-on): Add c++defs.
28113         (Makefile.am): Update fcntl.h rule.
28114
28115         dirent: Avoid #define replacements in C++ mode.
28116         * lib/dirent.in.h: Include c++defs.h.
28117         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28118         namespaced alias symbol.
28119         (dirfd): Update declaration.
28120         * modules/dirent (Depends-on): Add c++defs.
28121         (Makefile.am): Update dirent.h rule.
28122
28123         ctype: Make it usable in C++ code.
28124         * lib/ctype.in.h: Include c++defs.h.
28125         (isblank): Declare as extern "C".
28126         * modules/ctype (Depends-on): Add c++defs.
28127         (Makefile.am): Update ctype.h rule.
28128
28129         New module 'c++defs'.
28130         * modules/c++defs: New file.
28131         * build-aux/c++defs.h: New file.
28132         Reported by John W. Eaton <jwe@gnu.org>.
28133
28134 2010-03-07  Bruno Haible  <bruno@clisp.org>
28135
28136         logb: Provide missing declaration for Cygwin.
28137         * lib/math.in.h (logb): New declaration.
28138         * m4/logb.m4: New file.
28139         * modules/logb (Files): Add m4/logb.m4.
28140         (Depends-on): Add math.
28141         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28142         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28144         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28145         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28146
28147 2010-03-07  Bruno Haible  <bruno@clisp.org>
28148
28149         Fix test-cond link error.
28150         * tests/test-cond.c: Include <stdio.h>.
28151
28152 2010-03-07  Bruno Haible  <bruno@clisp.org>
28153
28154         Fix test-dirent-safer link error.
28155         * modules/dirent-safer-tests (Makefile.am): Define
28156         test_dirent_safer_LDADD.
28157
28158 2010-03-07  Bruno Haible  <bruno@clisp.org>
28159
28160         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28161         among default module list.
28162
28163 2010-03-07  Bruno Haible  <bruno@clisp.org>
28164
28165         Fix link error on platforms with GNU libiconv.
28166         * modules/unistr/u8-strcoll-tests (Makefile): Define
28167         test_u8_strcoll_LDADD.
28168         * modules/unistr/u16-strcoll-tests (Makefile): Define
28169         test_u16_strcoll_LDADD.
28170         * modules/unistr/u32-strcoll-tests (Makefile): Define
28171         test_u32_strcoll_LDADD.
28172
28173 2010-03-07  Bruno Haible  <bruno@clisp.org>
28174
28175         Use POSIX declarations for socket functions.
28176         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28177         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28178         rpl_sendto): Change declaration to match POSIX.
28179         * lib/connect.c (rpl_connect): Likewise.
28180         * lib/accept.c (rpl_accept): Likewise.
28181         * lib/bind.c (rpl_bind): Likewise.
28182         * lib/getpeername.c (rpl_getpeername): Likewise.
28183         * lib/getsockname.c (rpl_getsockname): Likewise.
28184         * lib/recv.c (rpl_recv): Likewise.
28185         * lib/send.c (rpl_send): Likewise.
28186         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28187         * lib/sendto.c (rpl_sendto): Likewise.
28188
28189 2010-03-06  Bruno Haible  <bruno@clisp.org>
28190
28191         Clarify access, euidaccess, faccessat.
28192         * doc/posix-functions/faccessat.texi: Mention security problem under
28193         "Other problems", not "Portability problems".
28194         * doc/posix-functions/access.texi: Likewise. Mention a related security
28195         problem.
28196         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28197         * lib/euidaccess.c: Add comments about platforms.
28198         * lib/unistd.in.h (access, euidaccess): Add warnings.
28199
28200 2010-03-07  Bruno Haible  <bruno@clisp.org>
28201
28202         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28203         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28204         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28205         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28206         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28207         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28208         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28209         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28210         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28212         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28213         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28214         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28215         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28216         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28217         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28218         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28219         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28220         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28221         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28222         Likewise.
28223         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28224         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28225         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28226         Likewise.
28227         * tests/test-spawn.c (main): Make it work when
28228         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28229
28230 2010-03-07  Bruno Haible  <bruno@clisp.org>
28231
28232         Fix incorrect Makefile.am generation in German locale.
28233         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28234         Execute sed command with character range in C locale.
28235
28236 2010-03-06  Bruno Haible  <bruno@clisp.org>
28237
28238         Tests for module 'iconv-h'.
28239         * modules/iconv-h-tests: New file.
28240         * tests/test-iconv-h.c: New file.
28241
28242         New module 'iconv-h'.
28243         * modules/iconv-h: New file.
28244         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28245         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28246         (configure.ac): Remove gl_ICONV_H.
28247         (Makefile.am): Remove rule for iconv.h.
28248
28249 2010-03-06  Bruno Haible  <bruno@clisp.org>
28250
28251         More consistent naming of *.m4 files.
28252         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28253         * modules/wctype (Files): Update.
28254
28255         More consistent naming of *.m4 files.
28256         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28257         * modules/wchar (Files): Update.
28258
28259 2010-03-06  Jim Meyering  <meyering@redhat.com>
28260
28261         euidaccess: relax license to LGPLv2+
28262         * modules/euidaccess (License): Relax to LGPLv2+.
28263
28264 2010-03-06  Bruno Haible  <bruno@clisp.org>
28265
28266         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28267         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28268         (Makefile.am): Augment lib_SOURCES instead.
28269
28270 2010-03-04  Jim Meyering  <meyering@redhat.com>
28271
28272         utime: remove obsolete module
28273         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28274         unnecessary for years, and has been marked as obsolete for 10 months.
28275         * modules/utime: Remove file.
28276         * lib/utime.c: Remove file.
28277         * m4/utime.m4: Remove file.
28278         * m4/utimes-null.m4: Remove file.
28279         * doc/posix-functions/utime.texi (utime): Remove reference to
28280         the module.  Move the sole "fixed by gnulib" item into the
28281         "problems not fixed by Gnulib" list.
28282         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28283
28284 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28285
28286         * modules/exit (License): Relax license to LGPLv2+.
28287         (Status): Mark as obsolete.
28288         * NEWS: Mention deprecated 'exit' module.
28289         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28290         of now obsolete 'exit'.
28291
28292 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28293
28294         fts-lgpl: remove unused module
28295         * modules/fts-lgpl: Remove.
28296         * MODULES.html.sh (func_all_modules): Adjust.
28297         * check-module (find_included_lib_files): Adjust.
28298         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28299
28300 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28301
28302         copy-acl: enhance Solaris ACL error handling
28303         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28304         * lib/set-mode-acl.c (qset_acl): Likewise.
28305
28306 2010-03-02  Bruno Haible  <bruno@clisp.org>
28307
28308         spawn: Don't override the system defined values on FreeBSD 8.
28309         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28310         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28311         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28312         if HAVE_POSIX_SPAWN is 1.
28313         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28314
28315 2010-03-01  Bruno Haible  <bruno@clisp.org>
28316
28317         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28318         regarding Automake.
28319
28320 2010-02-25  Bruno Haible  <bruno@clisp.org>
28321
28322         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28323         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28324         setting, not afterwards.
28325         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28326
28327 2010-02-24  Eric Blake  <eblake@redhat.com>
28328
28329         bootstrap, git-version-gen: use timestamp
28330         * build-aux/git-version-gen (scriptversion): Force UTC.
28331         * build-aux/bootstrap (scriptversion): New variable.
28332
28333         bootstrap: allow older git
28334         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28335         older than 1.6.4.  Requested by the libvirt project.
28336
28337 2010-02-23  Eric Blake  <eblake@redhat.com>
28338
28339         warn-on-use: work with old autoconf
28340         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28341         AS_VAR semantics of autoconf 2.60.
28342         Reported by Bruno Haible.
28343
28344         bootstrap: improve some comments
28345         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28346         clarification comments.
28347
28348         gettimeofday: provide correct function
28349         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28350         when replacement is declared, otherwise provide gettimeofday.
28351         Reported by Michael Goffioul.
28352
28353 2010-02-23  Jim Meyering  <meyering@redhat.com>
28354
28355         lib-ignore: relax license to "unlimited", not LGPLv2+
28356         * modules/lib-ignore (License): Relax to "unlimited".
28357
28358 2010-02-23  Jim Meyering  <meyering@redhat.com>
28359
28360         lib-ignore: relax license to LGPLv2+
28361         * modules/lib-ignore (License): Relax to LGPLv2+.
28362
28363 2010-02-22  Eric Blake  <eblake@redhat.com>
28364
28365         lseek: avoid bash 3.2 broken pipe bug
28366         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28367         warning from bash 3.2.
28368         Reported by Ben Pfaff, with analysis from Bruno Haible.
28369
28370         bootstrap: support non-FSF copyright holder
28371         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28372         bootstrap.conf override of COPYRIGHT_HOLDER.
28373         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28374
28375         bootstrap: interoperate with gettext 0.14.1
28376         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28377
28378         bootstrap: allow for alternate submodule location
28379         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28380         hardcoding submodule location.
28381         (gnulib_mk): Allow direct use of Makefile.am.
28382
28383         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28384         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28385         rather than reconfiguring where the submodule points.
28386
28387         gettimeofday: restore support for platforms that lack function
28388         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28389         replacement if function is missing.
28390         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28391         * modules/sys_time (Makefile.am): Substitute it.
28392         * lib/sys_time.in.h (gettimeofday): Check it.
28393         Reported by Michael Goffioul.
28394
28395 2010-02-21  Bruno Haible  <bruno@clisp.org>
28396
28397         * lib/stdio.in.h (obstack_printf): Fix typo.
28398
28399 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28400
28401         vc-list-files: use bzr ls's -R option
28402         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28403         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28404
28405 2010-02-21  Jim Meyering  <meyering@redhat.com>
28406
28407         init.sh: fix EXEEXT shims to work also for names like test-prog
28408         * tests/init.sh: Re-exec a better shell, when needed.
28409         If the current shell lacks support for posix $(...), an init.sh-using
28410         test will now try to find a shell that supports that.  If EXEEXT is
28411         nonempty, we also require support for hyphen-in-alias-name and shell
28412         substitutions like ${var#glob}.  Failure to find such a shell results
28413         in a skipped test.
28414
28415 2010-02-21  Bruno Haible  <bruno@clisp.org>
28416
28417         Really work around around "broken pipe" error message from bash 3.2.
28418         * gnulib-tool (func_reset_sigpipe): Remove function.
28419         (echo): In bash 3.2, define to a function that uses printf.
28420         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28421
28422 2010-02-20  Bruno Haible  <bruno@clisp.org>
28423
28424         Restore support for automake 1.9.6 with autoconf 2.61.
28425         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28426         Reported by James Youngman <jay@gnu.org>.
28427
28428 2010-02-20  Bruno Haible  <bruno@clisp.org>
28429
28430         Improve *printf warning condition.
28431         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28432         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28433         and the function is overridden due to SIGPIPE emulation.
28434
28435 2010-02-20  Bruno Haible  <bruno@clisp.org>
28436
28437         * lib/stdio.in.h: Tweak comments.
28438
28439 2010-02-19  Bruno Haible  <bruno@clisp.org>
28440
28441         Make it easier to find modules. New gnulib-tool option '--find'.
28442         * gnulib-tool: New option --find.
28443         (func_usage): Document it.
28444         (func_sanitize_modulelist): New function, extracted from
28445         func_all_modules.
28446         (func_all_modules): Invoke it.
28447         * doc/gnulib-tool.texi (Which modules?): New node.
28448
28449 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28450
28451         * lib/sys_select.in.h: Provide select replacement even if
28452         sys/select.h exists on a system, for Interix.
28453
28454 2010-02-18  Jim Meyering  <meyering@redhat.com>
28455
28456         init.sh: don't use $(...) just yet
28457         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28458         to accommodate e.g., Solaris' /bin/sh.
28459
28460 2010-02-17  Bruno Haible  <bruno@clisp.org>
28461
28462         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28463         Reported by Ludovic Courtès <ludo@gnu.org>.
28464
28465 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28466
28467         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28468         linking with -lintl.
28469
28470 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28471
28472         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28473         if not provided by the system's netdb.h.  Reported by
28474         ludo@gnu.org (Ludovic Courtès).
28475
28476 2010-02-15  Jim Meyering  <meyering@redhat.com>
28477
28478         init.sh: improve portability and efficiency
28479         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28480         "dummy" in a for loop.
28481         Use '!', not '^' to select the complement of a character set used
28482         in a "case" statement.
28483         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28484         Suggestions from Eric Blake.
28485
28486         init.sh: automatically accommodate programs with the .exe suffix
28487         Automatically arrange for an invocation of "prog" to execute the
28488         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28489         may use the simpler "prog", yet still work when built on a system
28490         that requires specifying the added suffix.
28491         Do this by constructing a function named "prog" that invokes
28492         "prog.exe" for each .exe file in selected directories.
28493         * tests/init.sh (find_exe_basenames_): New function.
28494         (create_exe_shim_functions_): New function.
28495         (path_prepend_): Use it.
28496
28497         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28498         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28499         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28500
28501 2010-02-14  Jim Meyering  <meyering@redhat.com>
28502
28503         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28504         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28505         (sc_prohibit_hash_pjw_without_use): New rule.
28506
28507         maint.mk: allow the default upload destination dir to be overridden
28508         * top/maint.mk (upload_dest_dir_): Define with a default that
28509         preserves the status quo.
28510         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28511         Reported by Peter Simons.
28512
28513         maint.mk: prohibit inclusion of "hash.h" without_use
28514         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28515
28516 2010-02-10  Jim Meyering  <meyering@redhat.com>
28517
28518         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28519         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28520
28521 2010-02-09  Eric Blake  <ebb9@byu.net>
28522         and Bruno Haible  <bruno@clisp.org>
28523
28524         obstack-printf-posix: ensure declaration
28525         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28526         extracted from gl_FUNC_OBSTACK_PRINTF.
28527         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28528         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28529         Likewise.
28530         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28531         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28532         0.
28533
28534 2010-02-08  Bruno Haible  <bruno@clisp.org>
28535
28536         gnulib-tool: Fix typo in 2010-02-07 commit.
28537         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28538         Reported by Eric Blake.
28539
28540 2010-02-07  Bruno Haible  <bruno@clisp.org>
28541
28542         gnulib-tool: Fix up caching patches.
28543         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28544         option --no-cache. Use associative arrays when supported by the shell.
28545         (sed_comments): New variable.
28546         (modcache): Renamed from do_cache.
28547         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28548         abbreviate unnecessarily.
28549         (have_associative): New variable.
28550         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28551         way also for ksh and zsh.
28552         (func_init_sed_convert_to_cache_statements): New function, extracted
28553         from func_cache_lookup_module. Add support for associative arrays.
28554         Don't set the c_MODULE_cached variable here. Ignore all lines before
28555         the first field header. Remove only the final newline, not all trailing
28556         newlines. Support empty fields correctly. Limit the use of 'eval' to
28557         assignments.
28558         (func_get_description, func_get_status, func_get_notice,
28559         func_get_applicability, func_get_filelist, func_get_dependencies,
28560         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28561         func_get_automake_snippet, func_get_include_directive,
28562         func_get_link_directive, func_get_license, func_get_maintainer):
28563         Update documentation. List the unoptimized code first. Add support for
28564         associative arrays. Limit the use of 'eval' to assignments.
28565         (func_get_applicability): Undo stylistic pessimisations.
28566         (func_get_automake_snippet, func_get_include_directive): Reduce code
28567         duplication.
28568         (func_modules_transitive_closure, func_modules_add_dummy,
28569         func_modules_notice, func_modules_to_filelist, func_add_file,
28570         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28571         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28572         func_create_testdir, func_create_megatestdir): Update documentation.
28573
28574 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28575
28576         * gnulib-tool (func_cache_lookup_module): Store the module name
28577         belonging to the cache variable; error out if two different
28578         module names map to the same cache variable name.
28579
28580 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28581
28582         gnulib-tool: Make caching optional.
28583         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28584         Update matching short versions of --no-changelog.
28585         (func_usage): Update.
28586         (sed_extract_cache_prog): Renamed from ...
28587         (sed_extract_prog): ... this; revert to old extraction script.
28588         (func_get_description, func_get_status)
28589         (func_get_notice, func_get_applicability, func_get_filelist)
28590         (func_get_dependencies, func_get_autoconf_early_snippet)
28591         (func_get_autoconf_snippet, func_get_automake_snippet)
28592         (func_get_include_directive, func_get_link_directive)
28593         (func_get_license, func_get_maintainer): If $do_cache is false,
28594         use old, non-caching extraction scripts.
28595         Suggestion by Bruno Haible.
28596
28597 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28598
28599         gnulib-tool: cache module metainformation.
28600         * gnulib-tool (sed_extract_prog): Match newline before each
28601         header, and rewrite header to a shell variable suffix.
28602         (func_cache_var, func_cache_lookup_module): New functions,
28603         to turn a module name into a cache variable prefix, and to
28604         look up and cache module metainformation.
28605         (func_get_description, func_get_status)
28606         (func_get_notice, func_get_applicability, func_get_filelist)
28607         (func_get_dependencies, func_get_autoconf_early_snippet)
28608         (func_get_autoconf_snippet, func_get_automake_snippet)
28609         (func_get_include_directive, func_get_link_directive)
28610         (func_get_license, func_get_maintainer): Use
28611         func_cache_lookup_module.
28612
28613 2010-02-07  Bruno Haible  <bruno@clisp.org>
28614
28615         fnctl: Fix missing dependency.
28616         * modules/fcntl (Depends-on): Add getdtablesize.
28617         Reported by John W. Eaton <jwe@gnu.org>.
28618
28619 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28620
28621         Argp: fix recognition of short alias options.
28622
28623         * lib/argp-parse.c (convert_options): Fix improper use of
28624         `|' between character values.
28625         * tests/test-argp.c (group1_option): New alias option
28626         --read (-r).
28627         (group1_parser): Special handling for 'r'.
28628         (test15): New test case.
28629         (test_fun): Add test15.
28630         * tests/test-argp-2.sh: Update expected --help and --usage
28631         outputs.
28632
28633 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28634
28635         * tests/test-argp.c: Fix indentation.
28636
28637 2010-02-04  Eric Blake  <ebb9@byu.net>
28638
28639         gettimeofday: expose type of second argument
28640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28641         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28642         * tests/test-gettimeofday.c: Use it to silence warning.
28643         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28644         the issue.
28645
28646 2010-02-03  Jim Meyering  <meyering@redhat.com>
28647
28648         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28649         * lib/regcomp.c (TYPE_SIGNED): Define.
28650         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28651
28652         regcomp.c: avoid a new -Wshadow warning
28653         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28654
28655 2010-02-01  Jim Meyering  <meyering@redhat.com>
28656
28657         removing useless parentheses in cpp #define directives
28658         For motivation, see commit c0221df4, "define STREQ(a,b)
28659         consistently, removing useless parentheses"
28660         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28661         * lib/mountlist.c (MNT_IGNORE): Likewise.
28662         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28663
28664 2010-02-01  Eric Blake  <ebb9@byu.net>
28665
28666         sys_time: use link-warning
28667         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28668         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28669         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28670         * modules/sys_time (Depends-on): Add warn-on-use.
28671         (Makefile.am): Always build replacement.
28672         (configure.ac): Update substitutions.
28673         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28674         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28675         bother with SYS_TIME_H.
28676         * modules/gettimeofday (configure.ac): Declare indicator.
28677         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28678         in use.
28679
28680         closein-tests: silence compiler warning
28681         * tests/test-closein.c (main): Ignore fread result.
28682         * modules/closein-tests (Depends-on): Add ignore-value.
28683
28684         tests: silence warning about system return
28685         * tests/test-areadlink-with-size.c (main): Ignore system result.
28686         * tests/test-areadlink.c (main): Likewise.
28687         * tests/test-areadlinkat-with-size.c (main): Likewise.
28688         * tests/test-areadlinkat.c (main): Likewise.
28689         * tests/test-canonicalize-lgpl.c (main): Likewise.
28690         * tests/test-canonicalize.c (main): Likewise.
28691         * tests/test-chown.c (main): Likewise.
28692         * tests/test-fchownat.c (main): Likewise.
28693         * tests/test-fdutimensat.c (main): Likewise.
28694         * tests/test-fstatat.c (main): Likewise.
28695         * tests/test-futimens.c (main): Likewise.
28696         * tests/test-lchown.c (main): Likewise.
28697         * tests/test-link.c (main): Likewise.
28698         * tests/test-linkat.c (main): Likewise.
28699         * tests/test-lstat.c (main): Likewise.
28700         * tests/test-mkdir.c (main): Likewise.
28701         * tests/test-mkdirat.c (main): Likewise.
28702         * tests/test-mkfifo.c (main): Likewise.
28703         * tests/test-mkfifoat.c (main): Likewise.
28704         * tests/test-mknod.c (main): Likewise.
28705         * tests/test-readlink.c (main): Likewise.
28706         * tests/test-remove.c (main): Likewise.
28707         * tests/test-rename.c (main): Likewise.
28708         * tests/test-renameat.c (main): Likewise.
28709         * tests/test-rmdir.c (main): Likewise.
28710         * tests/test-symlink.c (main): Likewise.
28711         * tests/test-symlinkat.c (main): Likewise.
28712         * tests/test-unlink.c (main): Likewise.
28713         * tests/test-unlinkat.c (main): Likewise.
28714         * tests/test-utimens.c (main): Likewise.
28715         * tests/test-utimensat.c (main): Likewise.
28716         * modules/areadlink-tests (Depends-on): Add ignore-value.
28717         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28718         * modules/areadlinkat-tests (Depends-on): Likewise.
28719         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28720         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28721         * modules/canonicalize-tests (Depends-on): Likewise.
28722         * modules/chown-tests (Depends-on): Likewise.
28723         * modules/fdutimensat-tests (Depends-on): Likewise.
28724         * modules/futimens-tests (Depends-on): Likewise.
28725         * modules/lchown-tests (Depends-on): Likewise.
28726         * modules/link-tests (Depends-on): Likewise.
28727         * modules/linkat-tests (Depends-on): Likewise.
28728         * modules/lstat-tests (Depends-on): Likewise.
28729         * modules/mkdir-tests (Depends-on): Likewise.
28730         * modules/mkfifo-tests (Depends-on): Likewise.
28731         * modules/mkfifoat-tests (Depends-on): Likewise.
28732         * modules/mknod-tests (Depends-on): Likewise.
28733         * modules/openat-tests (Depends-on): Likewise.
28734         * modules/readlink-tests (Depends-on): Likewise.
28735         * modules/remove-tests (Depends-on): Likewise.
28736         * modules/rename-tests (Depends-on): Likewise.
28737         * modules/renameat-tests (Depends-on): Likewise.
28738         * modules/rmdir-tests (Depends-on): Likewise.
28739         * modules/symlink-tests (Depends-on): Likewise.
28740         * modules/symlinkat-tests (Depends-on): Likewise.
28741         * modules/unlink-tests (Depends-on): Likewise.
28742         * modules/utimens-tests (Depends-on): Likewise.
28743         * modules/utimensat-tests (Depends-on): Likewise.
28744
28745 2010-01-31  Bruno Haible  <bruno@clisp.org>
28746
28747         Perform the same test for many <math.h> functions.
28748         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28749         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28750         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28751         of gl_MATHFUNC.
28752         * modules/acos (configure.ac): Likewise.
28753         * modules/asin (configure.ac): Likewise.
28754         * modules/atan (configure.ac): Likewise.
28755         * modules/atan2 (configure.ac): Likewise.
28756         * modules/cbrt (configure.ac): Likewise.
28757         * modules/copysign (configure.ac): Likewise.
28758         * modules/cos (configure.ac): Likewise.
28759         * modules/cosh (configure.ac): Likewise.
28760         * modules/erf (configure.ac): Likewise.
28761         * modules/erfc (configure.ac): Likewise.
28762         * modules/exp (configure.ac): Likewise.
28763         * modules/fmod (configure.ac): Likewise.
28764         * modules/hypot (configure.ac): Likewise.
28765         * modules/j0 (configure.ac): Likewise.
28766         * modules/j1 (configure.ac): Likewise.
28767         * modules/jn (configure.ac): Likewise.
28768         * modules/lgamma (configure.ac): Likewise.
28769         * modules/log (configure.ac): Likewise.
28770         * modules/log10 (configure.ac): Likewise.
28771         * modules/log1p (configure.ac): Likewise.
28772         * modules/pow (configure.ac): Likewise.
28773         * modules/remainder (configure.ac): Likewise.
28774         * modules/sin (configure.ac): Likewise.
28775         * modules/sinh (configure.ac): Likewise.
28776         * modules/tan (configure.ac): Likewise.
28777         * modules/tanh (configure.ac): Likewise.
28778         * modules/y0 (configure.ac): Likewise.
28779         * modules/y1 (configure.ac): Likewise.
28780         * modules/yn (configure.ac): Likewise.
28781         Suggested by Paolo Bonzini.
28782
28783 2010-01-31  Bruno Haible  <bruno@clisp.org>
28784
28785         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28786
28787 2010-01-31  Bruno Haible  <bruno@clisp.org>
28788
28789         Work around getdelim() bug on FreeBSD 8.0.
28790         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28791         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28792         not work.
28793         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28794         is 1.
28795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28796         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28797         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28798         a non-zero size.
28799         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28800
28801 2010-01-31  Bruno Haible  <bruno@clisp.org>
28802
28803         Work around getline() bug on FreeBSD 8.0.
28804         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28805         and a non-zero size.
28806         * tests/test-getline.c (main): Likewise.
28807         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28808         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28809
28810 2010-01-28  Eric Blake  <ebb9@byu.net>
28811
28812         regex: fix build failure
28813         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28814         platforms.
28815
28816 2010-01-28  Jim Meyering  <meyering@redhat.com>
28817
28818         regex: do not ignore memory allocation failure
28819         * lib/regex_internal.c (create_cd_newstate): Detect
28820         re_node_set_init_copy failure.   Extracted from glibc commit
28821         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28822
28823         regex: sync more white-space changes from libc
28824         * lib/regex_internal.c: White-space only changes.
28825         * lib/regexec.c: Likewise.
28826
28827         regex: add many uses of __attribute_warn_unused_result__
28828         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28829         * lib/regexec.c: Likewise.
28830         Extracted from a messy glibc commit.
28831
28832         regcomp.c: spelling and merge-artifact from glibc
28833         * lib/regcomp.c: Merge remainder of glibc's
28834         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28835
28836         regcomp.c: sync white-space changes from glibc
28837         * lib/regcomp.c: Merge to accommodate white space
28838         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28839
28840         regcomp.c: do not ignore internal return values
28841         * lib/regcomp.c: Do not ignore internal return values.
28842         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28843         but without its white-space changes and spelling fixes.
28844
28845         regex_internal.h: define __attribute_warn_unused_result__
28846         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28847
28848         maint: add a syntax-check rule to check for vulnerable Makefile.in
28849         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28850
28851 2010-01-27  Jim Meyering  <meyering@redhat.com>
28852
28853         ncftpput-ftp: clean up spaces
28854         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28855         Remove trailing blanks.
28856
28857 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28858
28859         * build-aux/git-version-gen: Fix copyright statement.
28860         * build-aux/gnupload: Likewise.
28861         * tests/test-arcfour.c: Likewise.
28862         * tests/test-arctwo.c: Likewise.
28863         * tests/test-count-one-bits.c: Likewise.
28864         * tests/test-crc.c: Likewise.
28865         * tests/test-des.c: Likewise.
28866         * tests/test-gc-arcfour.c: Likewise.
28867         * tests/test-gc-arctwo.c: Likewise.
28868         * tests/test-gc-des.c: Likewise.
28869         * tests/test-gc-hmac-md5.c: Likewise.
28870         * tests/test-gc-hmac-sha1.c: Likewise.
28871         * tests/test-gc-md2.c: Likewise.
28872         * tests/test-gc-md4.c: Likewise.
28873         * tests/test-gc-md5.c: Likewise.
28874         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28875         * tests/test-gc-rijndael.c: Likewise.
28876         * tests/test-gc-sha1.c: Likewise.
28877         * tests/test-gc.c: Likewise.
28878         * tests/test-gethostname.c: Likewise.
28879         * tests/test-gettimeofday.c: Likewise.
28880         * tests/test-hash.c: Likewise.
28881         * tests/test-hmac-md5.c: Likewise.
28882         * tests/test-hmac-sha1.c: Likewise.
28883         * tests/test-md2.c: Likewise.
28884         * tests/test-md4.c: Likewise.
28885         * tests/test-md5.c: Likewise.
28886         * tests/test-memchr.c: Likewise.
28887         * tests/test-memchr2.c: Likewise.
28888         * tests/test-memcmp.c: Likewise.
28889         * tests/test-memmem.c: Likewise.
28890         * tests/test-memrchr.c: Likewise.
28891         * tests/test-rawmemchr.c: Likewise.
28892         * tests/test-read-file.c: Likewise.
28893         * tests/test-rijndael.c: Likewise.
28894         * tests/test-sockets.c: Likewise.
28895         * tests/test-strchrnul.c: Likewise.
28896         * tests/test-strstr.c: Likewise.
28897         * tests/test-strtod.c: Likewise.
28898         * build-aux/ncftpput-ftp: Likewise.
28899
28900 2010-01-26  Eric Blake  <ebb9@byu.net>
28901
28902         ignore-value: update recommended header name
28903         * modules/ignore-value (Include): Only use <> for headers that
28904         exist in glibc.
28905
28906 2010-01-26  Jim Meyering  <meyering@redhat.com>
28907
28908         test-userspec.c: avoid compiler warnings
28909         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28910         and "initialization discards qualifiers..." warnings.
28911         Put the first "uid" in its own scope, and make char* members "const".
28912
28913 2010-01-25  Bruno Haible  <bruno@clisp.org>
28914
28915         gnulib-tool: Make warning diagnostics consistent.
28916         * gnulib-tool (func_warning): New function.
28917         Use it everywhere where gnulib-tool produces output to stderr and it is
28918         not a fatal error.
28919
28920 2010-01-25  Bruno Haible  <bruno@clisp.org>
28921
28922         Fix test dependencies.
28923         * modules/xstrtol-tests (Depends-on): Add inttypes.
28924         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28925
28926 2010-01-25 PĂ¡draig Brady <P@draigBrady.com>
28927
28928         syntax-check: detect incorrect boolean macro values in config.h
28929         * modules/maintainer-makefile (configure.ac): Parameterize the location
28930         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28931         The logic is from Eric Blake and the location indicated by Jim Meyering.
28932         Note the more natural CONFIG_HEADER name is prohibited by automake
28933         for backwards compatibility reasons.
28934         * top/maint.mk (sc_Wundef_boolean): New rule.
28935
28936 2010-01-25  Jim Meyering  <meyering@redhat.com>
28937
28938         bootstrap: detect MacOS 10.6's shasum, too
28939         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28940         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28941
28942 2010-01-23  Jim Meyering  <meyering@redhat.com>
28943
28944         xstrtoll: new module
28945         * modules/xstrtoll: New file.
28946         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28947         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28948         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28949         ./configure fails if you use this module and lack "long long".
28950         * modules/xstrtoll-tests: New module.
28951         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28952         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28953         new init.sh-based test framework.
28954
28955 2010-01-24  Bruno Haible  <bruno@clisp.org>
28956
28957         Tests for module 'yn'.
28958         * modules/yn-tests: New file.
28959         * tests/test-yn.c: New file.
28960
28961         Tests for module 'y1'.
28962         * modules/y1-tests: New file.
28963         * tests/test-y1.c: New file.
28964
28965         Tests for module 'y0'.
28966         * modules/y0-tests: New file.
28967         * tests/test-y0.c: New file.
28968
28969         Tests for module 'tanh'.
28970         * modules/tanh-tests: New file.
28971         * tests/test-tanh.c: New file.
28972
28973         Tests for module 'tan'.
28974         * modules/tan-tests: New file.
28975         * tests/test-tan.c: New file.
28976
28977         Tests for module 'sqrt'.
28978         * modules/sqrt-tests: New file.
28979         * tests/test-sqrt.c: New file.
28980
28981         Tests for module 'sinh'.
28982         * modules/sinh-tests: New file.
28983         * tests/test-sinh.c: New file.
28984
28985         Tests for module 'sin'.
28986         * modules/sin-tests: New file.
28987         * tests/test-sin.c: New file.
28988
28989         Tests for module 'rint'.
28990         * modules/rint-tests: New file.
28991         * tests/test-rint.c: New file.
28992
28993         Tests for module 'remainder'.
28994         * modules/remainder-tests: New file.
28995         * tests/test-remainder.c: New file.
28996
28997         Tests for module 'pow'.
28998         * modules/pow-tests: New file.
28999         * tests/test-pow.c: New file.
29000
29001         Tests for module 'nextafter'.
29002         * modules/nextafter-tests: New file.
29003         * tests/test-nextafter.c: New file.
29004
29005         Tests for module 'modf'.
29006         * modules/modf-tests: New file.
29007         * tests/test-modf.c: New file.
29008
29009         Tests for module 'logb'.
29010         * modules/logb-tests: New file.
29011         * tests/test-logb.c: New file.
29012
29013         Tests for module 'log1p'.
29014         * modules/log1p-tests: New file.
29015         * tests/test-log1p.c: New file.
29016
29017         Tests for module 'log10'.
29018         * modules/log10-tests: New file.
29019         * tests/test-log10.c: New file.
29020
29021         Tests for module 'log'.
29022         * modules/log-tests: New file.
29023         * tests/test-log.c: New file.
29024
29025         Tests for module 'lgamma'.
29026         * modules/lgamma-tests: New file.
29027         * tests/test-lgamma.c: New file.
29028
29029         Tests for module 'ldexp'.
29030         * modules/ldexp-tests: New file.
29031         * tests/test-ldexp.c: New file.
29032
29033         Tests for module 'jn'.
29034         * modules/jn-tests: New file.
29035         * tests/test-jn.c: New file.
29036
29037         Tests for module 'j1'.
29038         * modules/j1-tests: New file.
29039         * tests/test-j1.c: New file.
29040
29041         Tests for module 'j0'.
29042         * modules/j0-tests: New file.
29043         * tests/test-j0.c: New file.
29044
29045         Tests for module 'hypot'.
29046         * modules/hypot-tests: New file.
29047         * tests/test-hypot.c: New file.
29048
29049         Tests for module 'fmod'.
29050         * modules/fmod-tests: New file.
29051         * tests/test-fmod.c: New file.
29052
29053         Tests for module 'fabs'.
29054         * modules/fabs-tests: New file.
29055         * tests/test-fabs.c: New file.
29056
29057         Tests for module 'exp'.
29058         * modules/exp-tests: New file.
29059         * tests/test-exp.c: New file.
29060
29061         Tests for module 'erfc'.
29062         * modules/erfc-tests: New file.
29063         * tests/test-erfc.c: New file.
29064
29065         Tests for module 'erf'.
29066         * modules/erf-tests: New file.
29067         * tests/test-erf.c: New file.
29068
29069         Tests for module 'cosh'.
29070         * modules/cosh-tests: New file.
29071         * tests/test-cosh.c: New file.
29072
29073         Tests for module 'cos'.
29074         * modules/cos-tests: New file.
29075         * tests/test-cos.c: New file.
29076
29077         Tests for module 'copysign'.
29078         * modules/copysign-tests: New file.
29079         * tests/test-copysign.c: New file.
29080
29081         Tests for module 'cbrt'.
29082         * modules/cbrt-tests: New file.
29083         * tests/test-cbrt.c: New file.
29084
29085         Tests for module 'atan2'.
29086         * modules/atan2-tests: New file.
29087         * tests/test-atan2.c: New file.
29088
29089         Tests for module 'atan'.
29090         * modules/atan-tests: New file.
29091         * tests/test-atan.c: New file.
29092
29093         Tests for module 'asin'.
29094         * modules/asin-tests: New file.
29095         * tests/test-asin.c: New file.
29096
29097         Tests for module 'acos'.
29098         * modules/acos-tests: New file.
29099         * tests/test-acos.c: New file.
29100
29101 2010-01-24  Bruno Haible  <bruno@clisp.org>
29102
29103         Fix tests for common <math.h> functions.
29104         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29105         code snippet that references the function pointer, rather than merely
29106         calling the function. Substitute the FUNC_LIBM variable.
29107         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29108         * modules/acos (configure.ac): Likewise.
29109         * modules/asin (configure.ac): Likewise.
29110         * modules/atan (configure.ac): Likewise.
29111         * modules/atan2 (configure.ac): Likewise.
29112         * modules/cbrt (configure.ac): Likewise.
29113         * modules/copysign (configure.ac): Likewise.
29114         * modules/cos (configure.ac): Likewise.
29115         * modules/cosh (configure.ac): Likewise.
29116         * modules/erf (configure.ac): Likewise.
29117         * modules/erfc (configure.ac): Likewise.
29118         * modules/exp (configure.ac): Likewise.
29119         * modules/fabs (configure.ac): Likewise.
29120         * modules/fmod (configure.ac): Likewise.
29121         * modules/hypot (configure.ac): Likewise.
29122         * modules/j0 (configure.ac): Likewise.
29123         * modules/j1 (configure.ac): Likewise.
29124         * modules/jn (configure.ac): Likewise.
29125         * modules/ldexp (configure.ac): Likewise.
29126         * modules/lgamma (configure.ac): Likewise.
29127         * modules/log (configure.ac): Likewise.
29128         * modules/log10 (configure.ac): Likewise.
29129         * modules/log1p (configure.ac): Likewise.
29130         * modules/logb (configure.ac): Likewise.
29131         * modules/modf (configure.ac): Likewise.
29132         * modules/nextafter (configure.ac): Likewise.
29133         * modules/pow (configure.ac): Likewise.
29134         * modules/remainder (configure.ac): Likewise.
29135         * modules/rint (configure.ac): Likewise.
29136         * modules/sin (configure.ac): Likewise.
29137         * modules/sinh (configure.ac): Likewise.
29138         * modules/tan (configure.ac): Likewise.
29139         * modules/tanh (configure.ac): Likewise.
29140         * modules/y0 (configure.ac): Likewise.
29141         * modules/y1 (configure.ac): Likewise.
29142         * modules/yn (configure.ac): Likewise.
29143
29144 2010-01-24  Bruno Haible  <bruno@clisp.org>
29145
29146         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29147         * tests/test-acosl.c (x): New variable.
29148         (main): Store argument in x and fetch it from x.
29149         * tests/test-asinl.c (x): New variable.
29150         (main): Store argument in x and fetch it from x.
29151         * tests/test-atanl.c (x): New variable.
29152         (main): Store argument in x and fetch it from x.
29153         * tests/test-cosl.c (x): New variable.
29154         (main): Store argument in x and fetch it from x.
29155         * tests/test-expl.c (x): New variable.
29156         (main): Store argument in x and fetch it from x.
29157         * tests/test-logl.c (x): New variable.
29158         (main): Store argument in x and fetch it from x.
29159         * tests/test-sinl.c (x): New variable.
29160         (main): Store argument in x and fetch it from x.
29161         * tests/test-sqrtl.c (x): New variable.
29162         (main): Store argument in x and fetch it from x.
29163         * tests/test-tanl.c (x): New variable.
29164         (main): Store argument in x and fetch it from x.
29165
29166 2010-01-24  Bruno Haible  <bruno@clisp.org>
29167
29168         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29169         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29170         assignments to the initial TESTS_ENVIRONMENT.
29171         * doc/gnulib.texi (Unit test modules): Document it.
29172         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29173         TESTS_ENVIRONMENT.
29174         * modules/btowc-tests (Makefile.am): Likewise.
29175         * modules/c-stack-tests (Makefile.am): Likewise.
29176         * modules/c-strcase-tests (Makefile.am): Likewise.
29177         * modules/copy-file-tests (Makefile.am): Likewise.
29178         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29179         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29180         * modules/mbrtowc-tests (Makefile.am): Likewise.
29181         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29182         * modules/mbscasestr-tests (Makefile.am): Likewise.
29183         * modules/mbschr-tests (Makefile.am): Likewise.
29184         * modules/mbscspn-tests (Makefile.am): Likewise.
29185         * modules/mbsinit-tests (Makefile.am): Likewise.
29186         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29187         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29188         * modules/mbspbrk-tests (Makefile.am): Likewise.
29189         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29190         * modules/mbsrchr-tests (Makefile.am): Likewise.
29191         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29192         * modules/mbsspn-tests (Makefile.am): Likewise.
29193         * modules/mbsstr-tests (Makefile.am): Likewise.
29194         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29195         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29196         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29197         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29198         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29199         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29200         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29201         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29202         * modules/wcrtomb-tests (Makefile.am): Likewise.
29203         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29204         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29205         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29206         assignments from TESTS_ENVIRONMENT.
29207         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29208         augmentation.
29209         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29210         * modules/atexit-tests (Makefile.am): Likewise.
29211         * modules/binary-io-tests (Makefile.am): Likewise.
29212         * modules/closein-tests (Makefile.am): Likewise.
29213         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29214         * modules/exclude-tests (Makefile.am): Likewise.
29215         * modules/fflush-tests (Makefile.am): Likewise.
29216         * modules/fpending-tests (Makefile.am): Likewise.
29217         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29218         * modules/freadahead-tests (Makefile.am): Likewise.
29219         * modules/freadptr-tests (Makefile.am): Likewise.
29220         * modules/freadseek-tests (Makefile.am): Likewise.
29221         * modules/fseek-tests (Makefile.am): Likewise.
29222         * modules/fseeko-tests (Makefile.am): Likewise.
29223         * modules/ftell-tests (Makefile.am): Likewise.
29224         * modules/ftello-tests (Makefile.am): Likewise.
29225         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29226         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29227         * modules/lseek-tests (Makefile.am): Likewise.
29228         * modules/parse-duration-tests (Makefile.am): Likewise.
29229         * modules/perror-tests (Makefile.am): Likewise.
29230         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29231         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29232         * modules/pipe-tests (Makefile.am): Likewise.
29233         * modules/pread-tests (Makefile.am): Likewise.
29234         * modules/printf-posix-tests (Makefile.am): Likewise.
29235         * modules/select-tests (Makefile.am): Likewise.
29236         * modules/sigpipe-tests (Makefile.am): Likewise.
29237         * modules/tsearch-tests (Makefile.am): Likewise.
29238         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29239         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29240         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29241         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29242         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29243         * modules/version-etc-tests (Makefile.am): Likewise.
29244         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29245         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29246         * modules/xalloc-die-tests (Makefile.am): Likewise.
29247         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29248         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29249         * modules/xstrtol-tests (Makefile.am): Likewise.
29250         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29251         * modules/yesno-tests (Makefile.am): Likewise.
29252         Suggested by Jim Meyering.
29253
29254 2010-01-24  Bruno Haible  <bruno@clisp.org>
29255
29256         More documentation.
29257         * doc/gnulib.texi (Writing modules): New chapter.
29258         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29259         the new chapter.
29260
29261 2010-01-24  Jim Meyering  <meyering@redhat.com>
29262
29263         maint.mk: do not prepend "./" after filtering
29264         * top/maint.mk (_prepend_srcdir_prefix): New variable
29265         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29266         "./" when $(srcdir) is ".".
29267
29268         define STREQ(a,b) consistently, removing useless parentheses
29269         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29270         since the only risk is that "a" or "b" contains an unparenthesized
29271         comma, but if either did that, STREQ would have 3 or more arguments.
29272         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29273         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29274         * lib/hash-triple.c (STREQ): Likewise.
29275         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29276         * lib/getugroups.c (STREQ): Likewise.
29277
29278 2010-01-23  Jim Meyering  <meyering@redhat.com>
29279
29280         maint.mk: fix syntax-check in a non-srcdir build directory
29281         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29282         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29283
29284 2010-01-22  Jim Meyering  <meyering@redhat.com>
29285
29286         userspec: add unit tests
29287         * tests/test-userspec.c: New file.
29288         * modules/userspec-tests: Likewise.
29289
29290 2010-01-21  Jim Meyering  <meyering@redhat.com>
29291
29292         maint.mk: handle source file names containing "." robustly
29293         * top/maint.mk (_dot_escaped_srcdir): Define.
29294         (VC_LIST): Use it in LHS of sed substitution.
29295
29296 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29297
29298         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29299         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29300         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29301         from a non-srcdir build.
29302
29303 2010-01-20  Eric Blake  <ebb9@byu.net>
29304
29305         warn-on-use: use instead of link-warning
29306         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29307         * modules/unistd (Depends-on, Makefile.am): Likewise.
29308         * modules/arpa_inet (Depends-on): Replace link-warning with
29309         warn-on-use.
29310         (Makefile.am): Update rules accordingly.
29311         * modules/ctype (Depends-on, Makefile.am): Likewise.
29312         * modules/dirent (Depends-on, Makefile.am): Likewise.
29313         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29314         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29315         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29316         * modules/locale (Depends-on, Makefile.am): Likewise.
29317         * modules/math (Depends-on, Makefile.am): Likewise.
29318         * modules/search (Depends-on, Makefile.am): Likewise.
29319         * modules/signal (Depends-on, Makefile.am): Likewise.
29320         * modules/spawn (Depends-on, Makefile.am): Likewise.
29321         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29322         * modules/string (Depends-on, Makefile.am): Likewise.
29323         * modules/strings (Depends-on, Makefile.am): Likewise.
29324         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29325         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29326         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29327         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29328         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29329         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29330         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29331         * modules/wchar (Depends-on, Makefile.am): Likewise.
29332         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29333         should be poisoned.
29334         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29335         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29336         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29337         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29339         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29340         * m4/math_h.m4 (gl_MATH_H): Likewise.
29341         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29342         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29343         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29344         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29345         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29346         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29347         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29348         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29349         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29352         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29353         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29354         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29356         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29357         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29358         GL_LINK_WARNING.
29359         * lib/ctype.in.h: Likewise.
29360         * lib/dirent.in.h: Likewise.
29361         * lib/fcntl.in.h: Likewise.
29362         * lib/inttypes.in.h: Likewise.
29363         * lib/langinfo.in.h: Likewise.
29364         * lib/locale.in.h: Likewise.
29365         * lib/math.in.h: Likewise.
29366         * lib/search.in.h: Likewise.
29367         * lib/signal.in.h: Likewise.
29368         * lib/spawn.in.h: Likewise.
29369         * lib/stdio.in.h: Likewise.
29370         * lib/stdlib.in.h: Likewise.
29371         * lib/string.in.h: Likewise.
29372         * lib/strings.in.h: Likewise.
29373         * lib/sys_file.in.h: Likewise.
29374         * lib/sys_ioctl.in.h: Likewise.
29375         * lib/sys_select.in.h: Likewise.
29376         * lib/sys_socket.in.h: Likewise.
29377         * lib/sys_stat.in.h: Likewise.
29378         * lib/sys_times.in.h: Likewise.
29379         * lib/sys_utsname.in.h: Likewise.
29380         * lib/unistd.in.h: Likewise.
29381         * lib/wchar.in.h: Likewise.
29382
29383 2010-01-20  Bruno Haible  <bruno@clisp.org>
29384
29385         Avoid duplicate -lm.
29386         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29387         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29388         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29389         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29390         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29391         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29392         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29393         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29394         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29395         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29396         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29397         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29398         Reported by Paolo Bonzini.
29399
29400 2010-01-19  Bruno Haible  <bruno@clisp.org>
29401
29402         langinfo, nl_langinfo: Relicense under LGPLv2+.
29403         * modules/langinfo (License): Change to LGPLv2+.
29404         * modules/nl_langinfo (License): Likewise.
29405         Patch by David Lutterkort <lutter@redhat.com>.
29406
29407 2010-01-19  Bruno Haible  <bruno@clisp.org>
29408
29409         Avoid compilation error with cc on OSF/1 5.1.
29410         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29411         statement, not before.
29412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29413
29414 2010-01-18  Bruno Haible  <bruno@clisp.org>
29415
29416         Avoid a link error due to the __printf__ symbol.
29417         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29418         and 2.6.x.
29419         (__format__, __printf__): Remove definitions.
29420         * lib/argp-fmtstream.h: Likewise.
29421         * lib/argp.h: Likewise.
29422         * lib/error.h: Likewise.
29423         * lib/vasnprintf.h: Likewise.
29424         * lib/xprintf.h: Likewise.
29425         * lib/xvasprintf.h: Likewise.
29426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29427
29428 2010-01-18  Bruno Haible  <bruno@clisp.org>
29429
29430         Tests for module 'tanl'.
29431         * modules/tanl-tests: New file.
29432         * tests/test-tanl.c: New file.
29433
29434         Tests for module 'sqrtl'.
29435         * modules/sqrtl-tests: New file.
29436         * tests/test-sqrtl.c: New file.
29437
29438         Tests for module 'sinl'.
29439         * modules/sinl-tests: New file.
29440         * tests/test-sinl.c: New file.
29441
29442         Tests for module 'logl'.
29443         * modules/logl-tests: New file.
29444         * tests/test-logl.c: New file.
29445
29446         Tests for module 'expl'.
29447         * modules/expl-tests: New file.
29448         * tests/test-expl.c: New file.
29449
29450         Tests for module 'cosl'.
29451         * modules/cosl-tests: New file.
29452         * tests/test-cosl.c: New file.
29453
29454         Tests for module 'atanl'.
29455         * modules/atanl-tests: New file.
29456         * tests/test-atanl.c: New file.
29457
29458         Tests for module 'asinl'.
29459         * modules/asinl-tests: New file.
29460         * tests/test-asinl.c: New file.
29461
29462         Tests for module 'acosl'.
29463         * modules/acosl-tests: New file.
29464         * tests/test-acosl.c: New file.
29465
29466         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29467         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29468         tanl): Use the standard gnulib idiom.
29469         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29470         * lib/sinl.c: Likewise.
29471         * lib/tanl.c: Don't include trigl.c.
29472         (kernel_tanl): Make static.
29473         * lib/sincosl.c: Include trigl.h first.
29474         * lib/trigl.c: Likewise.
29475         * m4/acosl.m4: New file.
29476         * m4/asinl.m4: New file.
29477         * m4/atanl.m4: New file.
29478         * m4/cosl.m4: New file.
29479         * m4/expl.m4: New file.
29480         * m4/logl.m4: New file.
29481         * m4/sinl.m4: New file.
29482         * m4/sqrtl.m4: New file.
29483         * m4/tanl.m4: New file.
29484         * m4/mathl.m4: Remove file.
29485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29486         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29487         Don't initialize GNULIB_MATHL.
29488         * modules/acosl: New file.
29489         * modules/asinl: New file.
29490         * modules/atanl: New file.
29491         * modules/cosl: New file.
29492         * modules/expl: New file.
29493         * modules/logl: New file.
29494         * modules/sinl: New file.
29495         * modules/sqrtl: New file.
29496         * modules/tanl: New file.
29497         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29498         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29499         substitute GNULIB_MATHL.
29500         * modules/mathl: Rewritten.
29501         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29502         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29503         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29504         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29505         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29506         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29507         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29508         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29509         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29510
29511 2010-01-18  Bruno Haible  <bruno@clisp.org>
29512
29513         sqrt: Make gl_FUNC_SQRT requirable.
29514         * m4/sqrt.m4: New file.
29515         * modules/sqrt (Files): Add it.
29516         (configure.ac): Invoke gl_FUNC_SQRT.
29517
29518 2010-01-18  Bruno Haible  <bruno@clisp.org>
29519
29520         New modules for common <math.h> functions.
29521         * m4/mathfunc.m4: New file.
29522         * modules/acos: New file.
29523         * modules/asin: New file.
29524         * modules/atan: New file.
29525         * modules/atan2: New file.
29526         * modules/cbrt: New file.
29527         * modules/copysign: New file.
29528         * modules/cos: New file.
29529         * modules/cosh: New file.
29530         * modules/erf: New file.
29531         * modules/erfc: New file.
29532         * modules/exp: New file.
29533         * modules/fabs: New file.
29534         * modules/fmod: New file.
29535         * modules/hypot: New file.
29536         * modules/j0: New file.
29537         * modules/j1: New file.
29538         * modules/jn: New file.
29539         * modules/ldexp: New file.
29540         * modules/lgamma: New file.
29541         * modules/log: New file.
29542         * modules/log10: New file.
29543         * modules/log1p: New file.
29544         * modules/logb: New file.
29545         * modules/modf: New file.
29546         * modules/nextafter: New file.
29547         * modules/pow: New file.
29548         * modules/remainder: New file.
29549         * modules/rint: New file.
29550         * modules/sin: New file.
29551         * modules/sinh: New file.
29552         * modules/sqrt: New file.
29553         * modules/tan: New file.
29554         * modules/tanh: New file.
29555         * modules/y0: New file.
29556         * modules/y1: New file.
29557         * modules/yn: New file.
29558         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29559         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29560         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29561         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29562         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29563         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29564         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29565         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29566         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29567         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29568         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29569         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29570         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29571         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29572         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29573         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29574         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29575         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29576         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29577         * doc/posix-functions/log.texi: Mention the 'log' module.
29578         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29579         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29580         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29581         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29582         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29583         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29584         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29585         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29586         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29587         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29588         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29589         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29590         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29591         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29592         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29593         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29594
29595 2010-01-18  Jim Meyering  <meyering@redhat.com>
29596
29597         ignore-value: relax license to LGPLv2+
29598         * modules/ignore-value (License): Relax to LGPLv2+.
29599
29600         getdate: don't leak when TZ contains two or more '"'s
29601         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29602         double quote in TZ after the first one.
29603
29604         readtokens: do not leak internal token_lengths buffer
29605         * lib/readtokens.c (readtokens): Free the local, lengths,
29606         when the supplied "token_lengths" parameter is NULL.
29607
29608 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29609
29610         Fix a couple of missing LIBTHREAD link failures on AIX.
29611         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29612         $(LIBTHREAD).
29613         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29614
29615         Link test-poll against INET_PTON_LIB.
29616         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29617         for inet_pton on Solaris 10.
29618
29619 2010-01-17  Bruno Haible  <bruno@clisp.org>
29620
29621         unistdio/*-sprintf: Fix typo in module description.
29622         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29623         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29624         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29625         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29626         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29627         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29628         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29629         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29630
29631 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29632
29633         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29634         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29635         variables in shell case patterns, for AIX and HP-UX ksh.
29636
29637         Split large sed scripts, for HP-UX sed.
29638         * modules/stdio: Split sed scripts around 50 sed commands,
29639         to avoid HP-UX limit of 99 commands, in the near future.
29640         * modules/string: Likewise.
29641         * modules/unistd: Likewise.
29642
29643         gnulib-tool: avoid writing in the current directory.
29644         * gnulib-tool (func_emit_lib_Makefile_am)
29645         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29646         not in the current directory, so concurrent gnulib-tool
29647         instances do not interfere.
29648
29649 2010-01-16  Jim Meyering  <meyering@redhat.com>
29650
29651         doc: update users.txt
29652         * users.txt: Add grep.
29653         (diffutils, gzip): Update URLs.
29654
29655 2010-01-12  Bruno Haible  <bruno@clisp.org>
29656
29657         posix_spawn: Avoid test failure on Cygwin.
29658         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29659         characters.
29660         Reported by Simon Josefsson.
29661
29662 2010-01-12  Bruno Haible  <bruno@clisp.org>
29663
29664         * tests/test-cond.c (main): When skipping the test, show the reason.
29665
29666 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29667
29668         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29669
29670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29671
29672         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29673         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29674
29675 2010-01-12  Eric Blake  <ebb9@byu.net>
29676
29677         build: guarantee AS_VAR_IF
29678         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29679         (gl_AS_VAR_IF): Move...
29680         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29681         Reported by Simon Josefsson.
29682
29683 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29684
29685         * lib/stdio.in.h: Fix typo.
29686
29687 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29688
29689         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29690         libgpg-error.
29691
29692 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29693
29694         * tests/test-xalloc-die.sh: Use $EXEEXT.
29695
29696 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29697             Bruno Haible  <bruno@clisp.org>
29698
29699         getlogin, getlogin_r: Avoid test failure.
29700         * tests/test-getlogin.c: Include <stdio.h>.
29701         (main): Skip the test when the function fails because stdin is not a
29702         tty.
29703         * tests/test-getlogin_r.c: Include <stdio.h>.
29704         (main): Skip the test when the function fails because stdin is not a
29705         tty.
29706
29707 2010-01-11  Eric Blake  <ebb9@byu.net>
29708
29709         tests: avoid more large file warnings
29710         * tests/test-fflush.c: Avoid warning about ftell use.
29711         * tests/test-fseek.c: Avoid warning about fseek use.
29712
29713 2010-01-10  Bruno Haible  <bruno@clisp.org>
29714
29715         nproc: Work better on Linux when /proc and /sys are not mounted.
29716         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29717         as lower bound when, on glibc/Linux systems,
29718         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29719         Suggested by PĂ¡draig Brady <P@draigbrady.com>.
29720         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29721
29722         nproc: Refactor.
29723         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29724         extracted from num_processors.
29725         (num_processors): Call it.
29726
29727 2010-01-11  Jim Meyering  <meyering@redhat.com>
29728
29729         utimecmp: avoid new warning from upcoming gcc-4.5.0
29730         * lib/utimecmp.c (BILLION): Define using #define rather than an
29731         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29732
29733 2010-01-11  Eric Blake  <ebb9@byu.net>
29734
29735         math: add portability warnings for classification macros
29736         * modules/math (Depends-on): Add warn-on-use.
29737         (Makefile.am): Provide new substitutions.
29738         * m4/math_h.m4 (gl_MATH_H): Require inline.
29739         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29740         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29741         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29742         implement warnings.
29743
29744         unistd: warn on use of environ without module
29745         * modules/unistd (Depends-on): Add warn-on-use.
29746         (Makefile.am): Provide new substitutions.
29747         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29748         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29749
29750         stdio: warn on suspicious uses
29751         * modules/stdio (Depends-on): Add warn-on-use.
29752         (Makefile.am): Provide new substitutions.
29753         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29754         fseeko.
29755         * lib/stdio.in.h (gets): Always warn on use.
29756         (fseek, ftell): Adjust when warnings are issued, and honor
29757         _GL_NO_LARGE_FILES as a way to silence the warning.
29758         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29759         any warning about large file offsets.
29760         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29761         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29762         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29763         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29764         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29765         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29766         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29767         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29768
29769         warn-on-use: new module
29770         * modules/warn-on-use: New file.
29771         * build-aux/warn-on-use.h: Likewise.
29772         * m4/warn-on-use.m4: Likewise.
29773         * MODULES.html.sh (Support for building): Mention it.
29774
29775 2010-01-10  Bruno Haible  <bruno@clisp.org>
29776
29777         Tests for module 'unistr/u32-strdup'.
29778         * modules/unistr/u32-strdup-tests: New file.
29779         * tests/unistr/test-u32-strdup.c: New file.
29780
29781         Tests for module 'unistr/u16-strdup'.
29782         * modules/unistr/u16-strdup-tests: New file.
29783         * tests/unistr/test-u16-strdup.c: New file.
29784
29785         Tests for module 'unistr/u8-strdup'.
29786         * modules/unistr/u8-strdup-tests: New file.
29787         * tests/unistr/test-u8-strdup.c: New file.
29788         * tests/unistr/test-strdup.h: New file.
29789
29790         Tests for module 'unistr/u32-strncmp'.
29791         * modules/unistr/u32-strncmp-tests: New file.
29792         * tests/unistr/test-u32-strncmp.c: New file.
29793
29794         Tests for module 'unistr/u16-strncmp'.
29795         * modules/unistr/u16-strncmp-tests: New file.
29796         * tests/unistr/test-u16-strncmp.c: New file.
29797
29798         Tests for module 'unistr/u8-strncmp'.
29799         * modules/unistr/u8-strncmp-tests: New file.
29800         * tests/unistr/test-u8-strncmp.c: New file.
29801         * tests/unistr/test-strncmp.h: New file.
29802
29803         Tests for module 'unistr/u32-strcoll'.
29804         * modules/unistr/u32-strcoll-tests: New file.
29805         * tests/unistr/test-u32-strcoll.c: New file.
29806
29807         Tests for module 'unistr/u16-strcoll'.
29808         * modules/unistr/u16-strcoll-tests: New file.
29809         * tests/unistr/test-u16-strcoll.c: New file.
29810
29811         Tests for module 'unistr/u8-strcoll'.
29812         * modules/unistr/u8-strcoll-tests: New file.
29813         * tests/unistr/test-u8-strcoll.c: New file.
29814
29815         Tests for module 'unistr/u32-strcmp'.
29816         * modules/unistr/u32-strcmp-tests: New file.
29817         * tests/unistr/test-u32-strcmp.c: New file.
29818         * tests/unistr/test-u32-strcmp.h: New file.
29819
29820         Tests for module 'unistr/u16-strcmp'.
29821         * modules/unistr/u16-strcmp-tests: New file.
29822         * tests/unistr/test-u16-strcmp.c: New file.
29823         * tests/unistr/test-u16-strcmp.h: New file.
29824
29825         Tests for module 'unistr/u8-strcmp'.
29826         * modules/unistr/u8-strcmp-tests: New file.
29827         * tests/unistr/test-u8-strcmp.c: New file.
29828         * tests/unistr/test-u8-strcmp.h: New file.
29829         * tests/unistr/test-strcmp.h: New file.
29830
29831         Tests for module 'unistr/u32-strncat'.
29832         * modules/unistr/u32-strncat-tests: New file.
29833         * tests/unistr/test-u32-strncat.c: New file.
29834
29835         Tests for module 'unistr/u16-strncat'.
29836         * modules/unistr/u16-strncat-tests: New file.
29837         * tests/unistr/test-u16-strncat.c: New file.
29838
29839         Tests for module 'unistr/u8-strncat'.
29840         * modules/unistr/u8-strncat-tests: New file.
29841         * tests/unistr/test-u8-strncat.c: New file.
29842         * tests/unistr/test-strncat.h: New file.
29843
29844         Tests for module 'unistr/u32-strcat'.
29845         * modules/unistr/u32-strcat-tests: New file.
29846         * tests/unistr/test-u32-strcat.c: New file.
29847
29848         Tests for module 'unistr/u16-strcat'.
29849         * modules/unistr/u16-strcat-tests: New file.
29850         * tests/unistr/test-u16-strcat.c: New file.
29851
29852         Tests for module 'unistr/u8-strcat'.
29853         * modules/unistr/u8-strcat-tests: New file.
29854         * tests/unistr/test-u8-strcat.c: New file.
29855         * tests/unistr/test-strcat.h: New file.
29856
29857         Tests for module 'unistr/u32-stpncpy'.
29858         * modules/unistr/u32-stpncpy-tests: New file.
29859         * tests/unistr/test-u32-stpncpy.c: New file.
29860
29861         Tests for module 'unistr/u16-stpncpy'.
29862         * modules/unistr/u16-stpncpy-tests: New file.
29863         * tests/unistr/test-u16-stpncpy.c: New file.
29864
29865         Tests for module 'unistr/u8-stpncpy'.
29866         * modules/unistr/u8-stpncpy-tests: New file.
29867         * tests/unistr/test-u8-stpncpy.c: New file.
29868         * tests/unistr/test-stpncpy.h: New file.
29869
29870         Tests for module 'unistr/u32-strncpy'.
29871         * modules/unistr/u32-strncpy-tests: New file.
29872         * tests/unistr/test-u32-strncpy.c: New file.
29873
29874         Tests for module 'unistr/u16-strncpy'.
29875         * modules/unistr/u16-strncpy-tests: New file.
29876         * tests/unistr/test-u16-strncpy.c: New file.
29877
29878         Tests for module 'unistr/u8-strncpy'.
29879         * modules/unistr/u8-strncpy-tests: New file.
29880         * tests/unistr/test-u8-strncpy.c: New file.
29881         * tests/unistr/test-strncpy.h: New file.
29882
29883         Tests for module 'unistr/u32-stpcpy'.
29884         * modules/unistr/u32-stpcpy-tests: New file.
29885         * tests/unistr/test-u32-stpcpy.c: New file.
29886
29887         Tests for module 'unistr/u16-stpcpy'.
29888         * modules/unistr/u16-stpcpy-tests: New file.
29889         * tests/unistr/test-u16-stpcpy.c: New file.
29890
29891         Tests for module 'unistr/u8-stpcpy'.
29892         * modules/unistr/u8-stpcpy-tests: New file.
29893         * tests/unistr/test-u8-stpcpy.c: New file.
29894         * tests/unistr/test-stpcpy.h: New file.
29895
29896         Tests for module 'unistr/u32-strcpy'.
29897         * modules/unistr/u32-strcpy-tests: New file.
29898         * tests/unistr/test-u32-strcpy.c: New file.
29899
29900         Tests for module 'unistr/u16-strcpy'.
29901         * modules/unistr/u16-strcpy-tests: New file.
29902         * tests/unistr/test-u16-strcpy.c: New file.
29903
29904         Tests for module 'unistr/u8-strcpy'.
29905         * modules/unistr/u8-strcpy-tests: New file.
29906         * tests/unistr/test-u8-strcpy.c: New file.
29907         * tests/unistr/test-strcpy.h: New file.
29908
29909         Tests for module 'unistr/u32-strnlen'.
29910         * modules/unistr/u32-strnlen-tests: New file.
29911         * tests/unistr/test-u32-strnlen.c: New file.
29912
29913         Tests for module 'unistr/u16-strnlen'.
29914         * modules/unistr/u16-strnlen-tests: New file.
29915         * tests/unistr/test-u16-strnlen.c: New file.
29916
29917         Tests for module 'unistr/u8-strnlen'.
29918         * modules/unistr/u8-strnlen-tests: New file.
29919         * tests/unistr/test-u8-strnlen.c: New file.
29920         * tests/unistr/test-strnlen.h: New file.
29921
29922         Tests for module 'unistr/u32-strlen'.
29923         * modules/unistr/u32-strlen-tests: New file.
29924         * tests/unistr/test-u32-strlen.c: New file.
29925
29926         Tests for module 'unistr/u16-strlen'.
29927         * modules/unistr/u16-strlen-tests: New file.
29928         * tests/unistr/test-u16-strlen.c: New file.
29929
29930         Tests for module 'unistr/u8-strlen'.
29931         * modules/unistr/u8-strlen-tests: New file.
29932         * tests/unistr/test-u8-strlen.c: New file.
29933
29934         Tests for module 'unistr/u32-prev'.
29935         * modules/unistr/u32-prev-tests: New file.
29936         * tests/unistr/test-u32-prev.c: New file.
29937
29938         Tests for module 'unistr/u16-prev'.
29939         * modules/unistr/u16-prev-tests: New file.
29940         * tests/unistr/test-u16-prev.c: New file.
29941
29942         Tests for module 'unistr/u8-prev'.
29943         * modules/unistr/u8-prev-tests: New file.
29944         * tests/unistr/test-u8-prev.c: New file.
29945
29946         Tests for module 'unistr/u32-next'.
29947         * modules/unistr/u32-next-tests: New file.
29948         * tests/unistr/test-u32-next.c: New file.
29949
29950         Tests for module 'unistr/u16-next'.
29951         * modules/unistr/u16-next-tests: New file.
29952         * tests/unistr/test-u16-next.c: New file.
29953
29954         Tests for module 'unistr/u8-next'.
29955         * modules/unistr/u8-next-tests: New file.
29956         * tests/unistr/test-u8-next.c: New file.
29957
29958         Tests for module 'unistr/u32-strmbtouc'.
29959         * modules/unistr/u32-strmbtouc-tests: New file.
29960         * tests/unistr/test-u32-strmbtouc.c: New file.
29961
29962         Tests for module 'unistr/u16-strmbtouc'.
29963         * modules/unistr/u16-strmbtouc-tests: New file.
29964         * tests/unistr/test-u16-strmbtouc.c: New file.
29965
29966         Tests for module 'unistr/u8-strmbtouc'.
29967         * modules/unistr/u8-strmbtouc-tests: New file.
29968         * tests/unistr/test-u8-strmbtouc.c: New file.
29969
29970         Tests for module 'unistr/u32-strmblen'.
29971         * modules/unistr/u32-strmblen-tests: New file.
29972         * tests/unistr/test-u32-strmblen.c: New file.
29973
29974         Tests for module 'unistr/u16-strmblen'.
29975         * modules/unistr/u16-strmblen-tests: New file.
29976         * tests/unistr/test-u16-strmblen.c: New file.
29977
29978         Tests for module 'unistr/u8-strmblen'.
29979         * modules/unistr/u8-strmblen-tests: New file.
29980         * tests/unistr/test-u8-strmblen.c: New file.
29981
29982         Tests for module 'unistr/u32-cpy-alloc'.
29983         * modules/unistr/u32-cpy-alloc-tests: New file.
29984         * tests/unistr/test-u32-cpy-alloc.c: New file.
29985
29986         Tests for module 'unistr/u16-cpy-alloc'.
29987         * modules/unistr/u16-cpy-alloc-tests: New file.
29988         * tests/unistr/test-u16-cpy-alloc.c: New file.
29989
29990         Tests for module 'unistr/u8-cpy-alloc'.
29991         * modules/unistr/u8-cpy-alloc-tests: New file.
29992         * tests/unistr/test-u8-cpy-alloc.c: New file.
29993         * tests/unistr/test-cpy-alloc.h: New file.
29994
29995         Tests for module 'unistr/u32-mbsnlen'.
29996         * modules/unistr/u32-mbsnlen-tests: New file.
29997         * tests/unistr/test-u32-mbsnlen.c: New file.
29998
29999         Tests for module 'unistr/u16-mbsnlen'.
30000         * modules/unistr/u16-mbsnlen-tests: New file.
30001         * tests/unistr/test-u16-mbsnlen.c: New file.
30002
30003         Tests for module 'unistr/u8-mbsnlen'.
30004         * modules/unistr/u8-mbsnlen-tests: New file.
30005         * tests/unistr/test-u8-mbsnlen.c: New file.
30006
30007         Tests for module 'unistr/u32-chr'.
30008         * modules/unistr/u32-chr-tests: New file.
30009         * tests/unistr/test-u32-chr.c: New file.
30010
30011         Tests for module 'unistr/u16-chr'.
30012         * modules/unistr/u16-chr-tests: New file.
30013         * tests/unistr/test-u16-chr.c: New file.
30014
30015         Tests for module 'unistr/u8-chr'.
30016         * modules/unistr/u8-chr-tests: New file.
30017         * tests/unistr/test-u8-chr.c: New file.
30018         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30019
30020         Tests for module 'unistr/u32-cmp2'.
30021         * modules/unistr/u32-cmp2-tests: New file.
30022         * tests/unistr/test-u32-cmp2.c: New file.
30023
30024         Tests for module 'unistr/u16-cmp2'.
30025         * modules/unistr/u16-cmp2-tests: New file.
30026         * tests/unistr/test-u16-cmp2.c: New file.
30027
30028         Tests for module 'unistr/u8-cmp2'.
30029         * modules/unistr/u8-cmp2-tests: New file.
30030         * tests/unistr/test-u8-cmp2.c: New file.
30031         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30032
30033         Tests for module 'unistr/u32-cmp'.
30034         * modules/unistr/u32-cmp-tests: New file.
30035         * tests/unistr/test-u32-cmp.c: New file.
30036
30037         Tests for module 'unistr/u16-cmp'.
30038         * modules/unistr/u16-cmp-tests: New file.
30039         * tests/unistr/test-u16-cmp.c: New file.
30040
30041         Tests for module 'unistr/u8-cmp'.
30042         * modules/unistr/u8-cmp-tests: New file.
30043         * tests/unistr/test-u8-cmp.c: New file.
30044         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30045
30046         Tests for module 'unistr/u32-set'.
30047         * modules/unistr/u32-set-tests: New file.
30048         * tests/unistr/test-u32-set.c: New file.
30049
30050         Tests for module 'unistr/u16-set'.
30051         * modules/unistr/u16-set-tests: New file.
30052         * tests/unistr/test-u16-set.c: New file.
30053
30054         Tests for module 'unistr/u8-set'.
30055         * modules/unistr/u8-set-tests: New file.
30056         * tests/unistr/test-u8-set.c: New file.
30057         * tests/unistr/test-set.h: New file.
30058
30059         Tests for module 'unistr/u32-move'.
30060         * modules/unistr/u32-move-tests: New file.
30061         * tests/unistr/test-u32-move.c: New file.
30062
30063         Tests for module 'unistr/u16-move'.
30064         * modules/unistr/u16-move-tests: New file.
30065         * tests/unistr/test-u16-move.c: New file.
30066
30067         Tests for module 'unistr/u8-move'.
30068         * modules/unistr/u8-move-tests: New file.
30069         * tests/unistr/test-u8-move.c: New file.
30070         * tests/unistr/test-move.h: New file.
30071
30072         Tests for module 'unistr/u32-cpy'.
30073         * modules/unistr/u32-cpy-tests: New file.
30074         * tests/unistr/test-u32-cpy.c: New file.
30075
30076         Tests for module 'unistr/u16-cpy'.
30077         * modules/unistr/u16-cpy-tests: New file.
30078         * tests/unistr/test-u16-cpy.c: New file.
30079
30080         Tests for module 'unistr/u8-cpy'.
30081         * modules/unistr/u8-cpy-tests: New file.
30082         * tests/unistr/test-u8-cpy.c: New file.
30083         * tests/unistr/test-cpy.h: New file.
30084
30085 2010-01-09  Bruno Haible  <bruno@clisp.org>
30086
30087         Tests for module 'unistr/u32-uctomb'.
30088         * modules/unistr/u32-uctomb-tests: New file.
30089         * tests/unistr/test-u32-uctomb.c: New file.
30090
30091         Tests for module 'unistr/u16-uctomb'.
30092         * modules/unistr/u16-uctomb-tests: New file.
30093         * tests/unistr/test-u16-uctomb.c: New file.
30094
30095         Tests for module 'unistr/u8-uctomb'.
30096         * modules/unistr/u8-uctomb-tests: New file.
30097         * tests/unistr/test-u8-uctomb.c: New file.
30098
30099         Tests for module 'unistr/u32-mbtoucr'.
30100         * modules/unistr/u32-mbtoucr-tests: New file.
30101         * tests/unistr/test-u32-mbtoucr.c: New file.
30102
30103         Tests for module 'unistr/u16-mbtoucr'.
30104         * modules/unistr/u16-mbtoucr-tests: New file.
30105         * tests/unistr/test-u16-mbtoucr.c: New file.
30106
30107         Tests for module 'unistr/u8-mbtoucr'.
30108         * modules/unistr/u8-mbtoucr-tests: New file.
30109         * tests/unistr/test-u8-mbtoucr.c: New file.
30110
30111         Tests for module 'unistr/u32-mbtouc'.
30112         * modules/unistr/u32-mbtouc-tests: New file.
30113         * tests/unistr/test-u32-mbtouc.c: New file.
30114
30115         Tests for module 'unistr/u16-mbtouc'.
30116         * modules/unistr/u16-mbtouc-tests: New file.
30117         * tests/unistr/test-u16-mbtouc.c: New file.
30118
30119         Tests for module 'unistr/u8-mbtouc'.
30120         * modules/unistr/u8-mbtouc-tests: New file.
30121         * tests/unistr/test-u8-mbtouc.c: New file.
30122
30123         Tests for module 'unistr/u32-mbtouc-unsafe'.
30124         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30125         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30126         * tests/unistr/test-u32-mbtouc.h: New file.
30127
30128         Tests for module 'unistr/u16-mbtouc-unsafe'.
30129         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30130         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30131         * tests/unistr/test-u16-mbtouc.h: New file.
30132
30133         Tests for module 'unistr/u8-mbtouc-unsafe'.
30134         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30135         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30136         * tests/unistr/test-u8-mbtouc.h: New file.
30137
30138         Tests for module 'unistr/u32-mblen'.
30139         * modules/unistr/u32-mblen-tests: New file.
30140         * tests/unistr/test-u32-mblen.c: New file.
30141
30142         Tests for module 'unistr/u16-mblen'.
30143         * modules/unistr/u16-mblen-tests: New file.
30144         * tests/unistr/test-u16-mblen.c: New file.
30145
30146         Tests for module 'unistr/u8-mblen'.
30147         * modules/unistr/u8-mblen-tests: New file.
30148         * tests/unistr/test-u8-mblen.c: New file.
30149
30150         Tests for module 'unistr/u32-to-u16'.
30151         * modules/unistr/u32-to-u16-tests: New file.
30152         * tests/unistr/test-u32-to-u16.c: New file.
30153
30154         Tests for module 'unistr/u32-to-u8'.
30155         * modules/unistr/u32-to-u8-tests: New file.
30156         * tests/unistr/test-u32-to-u8.c: New file.
30157
30158         Tests for module 'unistr/u16-to-u32'.
30159         * modules/unistr/u16-to-u32-tests: New file.
30160         * tests/unistr/test-u16-to-u32.c: New file.
30161
30162         Tests for module 'unistr/u16-to-u8'.
30163         * modules/unistr/u16-to-u8-tests: New file.
30164         * tests/unistr/test-u16-to-u8.c: New file.
30165
30166         Tests for module 'unistr/u8-to-u32'.
30167         * modules/unistr/u8-to-u32-tests: New file.
30168         * tests/unistr/test-u8-to-u32.c: New file.
30169
30170         Tests for module 'unistr/u8-to-u16'.
30171         * modules/unistr/u8-to-u16-tests: New file.
30172         * tests/unistr/test-u8-to-u16.c: New file.
30173
30174         Tests for module 'unistr/u32-check'.
30175         * modules/unistr/u32-check-tests: New file.
30176         * tests/unistr/test-u32-check.c: New file.
30177
30178         Tests for module 'unistr/u16-check'.
30179         * modules/unistr/u16-check-tests: New file.
30180         * tests/unistr/test-u16-check.c: New file.
30181
30182         Tests for module 'unistr/u8-check'.
30183         * modules/unistr/u8-check-tests: New file.
30184         * tests/unistr/test-u8-check.c: New file.
30185
30186         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30187         (category_equals): New function.
30188         (main): Add more tests.
30189         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30190
30191         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30192
30193 2010-01-10  Bruno Haible  <bruno@clisp.org>
30194
30195         unistr/u*-strcoll: Try harder to distinguish different strings.
30196         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30197         compare s1 and s2 to see if they are different.
30198
30199 2010-01-10  Bruno Haible  <bruno@clisp.org>
30200
30201         unistr/u*-stpncpy: Fix the return value.
30202         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30203         description of the return value consistent with stpncpy in glibc.
30204         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30205         written non-NUL unit.
30206
30207 2010-01-10  Bruno Haible  <bruno@clisp.org>
30208
30209         unistr/u*-next: Add missing dependencies.
30210         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30211         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30212         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30213
30214 2010-01-10  Bruno Haible  <bruno@clisp.org>
30215
30216         unistr/u8-mbsnlen: Fix return value for incomplete character.
30217         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30218         u8_mblen.
30219         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30220         Remove unistr/u8-mblen.
30221         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30222         u16_mblen.
30223         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30224         Remove unistr/u16-mblen.
30225
30226 2010-01-10  Bruno Haible  <bruno@clisp.org>
30227
30228         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30229         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30230         Reported by Brian Gough <bjg@gnu.org> and
30231         Chris Clayton <chris2553@googlemail.com> via
30232         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30233
30234 2010-01-09  Bruno Haible  <bruno@clisp.org>
30235
30236         unistr/u16-to-u32: Reject invalid input.
30237         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30238         u16_mbtouc.
30239         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30240         Remove unistr/u16-mbtouc.
30241
30242         unistr/u16-to-u8: Reject invalid input.
30243         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30244         u16_mbtouc.
30245         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30246         Remove unistr/u16-mbtouc.
30247
30248         unistr/u8-to-u32: Reject invalid input.
30249         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30250         u8_mbtouc.
30251         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30252         Remove unistr/u8-mbtouc.
30253
30254         unistr/u8-to-u16: Reject invalid input.
30255         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30256         u8_mbtouc.
30257         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30258         Remove unistr/u8-mbtouc.
30259
30260 2010-01-09  Bruno Haible  <bruno@clisp.org>
30261
30262         Tests for module 'getlogin'.
30263         * modules/getlogin-tests: New file.
30264         * tests/test-getlogin.c: New file.
30265
30266         New module 'getlogin'.
30267         * lib/unistd.in.h (getlogin): New declaration.
30268         * lib/getlogin.c: New file.
30269         * m4/getlogin.m4: New file.
30270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30271         HAVE_GETLOGIN.
30272         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30273         HAVE_GETLOGIN.
30274         * modules/getlogin: New file.
30275         * doc/posix-functions/getlogin.texi: Mention the new module.
30276         Reported by John W. Eaton <jwe@gnu.org>.
30277
30278 2010-01-09  Bruno Haible  <bruno@clisp.org>
30279
30280         getlogin_r: Support for native Windows.
30281         * lib/getlogin_r.c: Include <windows.h>
30282         (getlogin_r): Implement for native Windows.
30283         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30284         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30285         via John W. Eaton <jwe@gnu.org>.
30286
30287 2010-01-09  Bruno Haible  <bruno@clisp.org>
30288
30289         getlogin_r: Small fixes.
30290         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30291         succeeds.
30292         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30293         before testing whether getlogin_r is declared. No need to set
30294         HAVE_DECL_GETLOGIN_R to 1.
30295         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30296
30297 2010-01-09  Bruno Haible  <bruno@clisp.org>
30298
30299         * lib/unistd.in.h (getlogin_r): Add comment.
30300
30301 2010-01-09  Bruno Haible  <bruno@clisp.org>
30302
30303         Tests for module 'getlogin_r'.
30304         * modules/getlogin_r-tests: New file.
30305         * tests/test-getlogin_r.c: New file.
30306
30307 2010-01-09  Jim Meyering  <meyering@redhat.com>
30308
30309         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30310         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30311         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30312
30313 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30314
30315         * lib/dup2.c (rpl_dup2): Improve comment.
30316
30317 2010-01-08  Eric Blake  <ebb9@byu.net>
30318
30319         maint.mk: allow packages to add makefile @@ exceptions
30320         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30321         (sc_makefile_check): Rename...
30322         (sc_makefile_at_at_check): ...to this, and use hook.
30323
30324         dup2: work around mingw bug
30325         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30326         Reported by Simon Josefsson.
30327
30328 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30329
30330         glob: Fix C++ compilation.
30331         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30332         C++.
30333
30334 2010-01-07  Bruno Haible  <bruno@clisp.org>
30335
30336         Fix indentation of wctype.in.h, broken since 2007-01-06.
30337         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30338
30339 2010-01-07  Bruno Haible  <bruno@clisp.org>
30340
30341         mbslen: Avoid collision with system function.
30342         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30343         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30344         * m4/mbslen.m4: New file.
30345         * modules/mbslen (Files): Add it.
30346         (configure.ac): Invoke gl_MBSLEN.
30347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30348         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30349         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30350         via Ian Beckwith <ianb@erislabs.net>.
30351
30352 2010-01-07  Bruno Haible  <bruno@clisp.org>
30353
30354         dirent: Document the last fix.
30355         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30356
30357 2010-01-07  Bruno Haible  <bruno@clisp.org>
30358
30359         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30360         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30361         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30362         va_list are defined.
30363         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30364         Reported by Eric Blake.
30365
30366 2010-01-07  Bruno Haible  <bruno@clisp.org>
30367
30368         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30369         * modules/xlist (Depends-on): Add 'list',
30370         * modules/xoset (Depends-on): Add 'oset'.
30371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30372
30373 2010-01-07  Bruno Haible  <bruno@clisp.org>
30374
30375         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30376         * doc/posix-functions/strncasecmp.texi: Likewise.
30377
30378 2010-01-07  Bruno Haible  <bruno@clisp.org>
30379
30380         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30381
30382 2010-01-07  John W. Eaton  <jwe@octave.org>
30383
30384         wctype: allow C++ use
30385         * lib/wctype.in.h: Add extern "C" block for C++.
30386
30387 2010-01-06  Eric Blake  <ebb9@byu.net>
30388
30389         maint.mk: detect incorrect GFDL usage
30390         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30391
30392 2010-01-06  Jim Meyering  <meyering@redhat.com>
30393         and Eric Blake  <ebb9@byu.net>
30394
30395         maint.mk: ignore multi-line copyright in NEWS
30396         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30397
30398 2010-01-06  Eric Blake  <ebb9@byu.net>
30399
30400         select: add missing dependency
30401         * modules/select-tests (Depends-on): Move sockets dependency...
30402         * modules/select (Depends-on): ...here.
30403         Reported by Ian Beckwith.
30404
30405         doc: regenerate INSTALL
30406         * doc/INSTALL: Reflect recent autoconf update.
30407         * doc/INSTALL.ISO: Likewise.
30408         * doc/INSTALL.UTF-8: Likewise.
30409
30410         pread: fix compilation on glibc
30411         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30412         Reported by Ralf Wildenhues.
30413
30414         dirent: fix test failure
30415         * lib/dirent.in.h (includes): Guarantee ino_t.
30416         Reported by Ralf Wildenhues.
30417
30418 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30419
30420         linkat, renameat: avoid bad free
30421         * lib/at-func2.c (at_func2): Fix typo.
30422         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30423
30424 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30425
30426         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30427         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30428         to avoid failure of symlink test later.
30429
30430 2010-01-06  Eric Blake  <ebb9@byu.net>
30431
30432         stdio, unistd: guarantee ssize_t
30433         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30434         2008 are exposed when needed.
30435         * lib/stdio.in.h (includes): Likewise.
30436         Reported by Ralf Wildenhues.
30437
30438 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30439
30440         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30441         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30442         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30443
30444 2010-01-06  Jim Meyering  <meyering@redhat.com>
30445
30446         readtokens: this module *does* require xalloc.h
30447         It uses only functions that were omitted by the old syntax-check rule.
30448         * lib/readtokens.c: Include "xalloc.h" once again.
30449         * modules/readtokens (Depends-on): Add xalloc.
30450         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30451
30452 2010-01-05  Eric Blake  <ebb9@byu.net>
30453
30454         maint: support 'make announcement' from a VPATH build
30455         * top/maint.mk (announcement): Look for correct NEWS file.
30456
30457 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30458
30459         utimens (fdutimens): ignore a negative FD, per contract
30460         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30461         when we have a valid file descriptor.  Otherwise, using a brand
30462         new glibc (with just-patched futimens that now fails with EBADF)
30463         would cause this function to fail with ENOSYS.
30464         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30465         See also http://bugzilla.redhat.com/552320.
30466
30467 2010-01-05  Eric Blake  <ebb9@byu.net>
30468
30469         strcase: document what it provides
30470         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30471         gnulib module.
30472         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30473         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30474
30475 2010-01-05  Jim Meyering  <meyering@redhat.com>
30476
30477         maint: remove useless inclusions of "xalloc.h"
30478         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30479         * lib/readtokens.c: Likewise.
30480         * lib/same.c: Likewise.
30481         * modules/getloadavg (Depends-on): Remove xalloc.
30482         * modules/readtokens: Likewise.
30483         * modules/same: Likewise.
30484
30485         maint.mk: include 4 more function names in alloca.h-checking regexp
30486         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30487         regexp.  Before, we would give a false-positive (saying alloca.h
30488         is included unnecessarily) when the only uses involved omitted symbols.
30489
30490         xalloc.h: use consistent formatting
30491         * lib/xalloc.h: Move declarations to start in the first column.
30492
30493 2010-01-05  Eric Blake  <ebb9@byu.net>
30494
30495         mkdir: avoid xalloc
30496         * lib/mkdir.c (includes): Drop unused header.
30497         Reported by John W. Eaton.
30498
30499 2010-01-04  Jim Meyering  <meyering@redhat.com>
30500
30501         nl_langinfo: avoid configure-time syntax error
30502         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30503         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30504         the empty string.  Don't let that provoke a shell syntax error.
30505
30506         regcomp, regexec, fnmatch: avoid array bounds read error
30507         * lib/regcomp.c (build_equiv_class): From glibc:
30508         Use only the low 24 bits of a findidx return value as an index
30509         into the weights array.  Patch by Ulrich Drepper:
30510         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30511         * lib/regexec.c (check_node_accept_bytes): Likewise.
30512         * lib/fnmatch_loop.c (FCT): Likewise.
30513
30514         regcomp: skip collseq lookup when there are no rules
30515         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30516         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30517
30518         regcomp: recognize ill-formed { } expressions
30519         * lib/regcomp.c (parse_dup_op): From glibc:
30520         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30521
30522         regcomp: fix typo in comment
30523         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30524         s/satisfy/satisfies/.
30525
30526         regcomp: sync from glibc: remove dead store
30527         * lib/regcomp.c (duplicate_node_closure): Remove useless
30528         search_duplicated_node call and dead store.
30529
30530         regcomp: sync from glibc; always use nl_langinfo
30531         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30532         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30533         * modules/regex (Depends-on): Add nl_langinfo.
30534
30535 2010-01-04  Eric Blake  <ebb9@byu.net>
30536
30537         fdopendir: fix configure test
30538         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30539
30540 2010-01-01  Bruno Haible  <bruno@clisp.org>
30541
30542         wchar: Remove unused configure check.
30543         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30544
30545 2010-01-01  Eric Blake  <ebb9@byu.net>
30546
30547         headers: make check of system header explicit
30548         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30549         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30550         ourselves.
30551         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30552         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30553         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30554         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30555         internals.
30556         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30557         missing.
30558         Suggested by Bruno Haible.
30559
30560 2010-01-01  Jim Meyering  <meyering@redhat.com>
30561
30562         ChangeLog: tweak to eliminate unnecessary copyright line
30563         * ChangeLog: Remove a copyright line that was mistakenly updated
30564         by today's update-copyright run.  Reported by Eric Blake.
30565
30566         test-update-copyright: don't let envvar setting cause test failure
30567         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30568
30569 2010-01-01  Bruno Haible  <bruno@clisp.org>
30570
30571         localename: Avoid gcc warning.
30572         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30573         function if it is not used.
30574
30575 2010-01-01  Jim Meyering  <meyering@redhat.com>
30576
30577         update nearly all FSF copyright year lists to include 2010
30578         Use the same procedure as for 2009, outlined in
30579         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30580
30581         version-etc: set COPYRIGHT_YEAR to 2010
30582         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30583
30584 2009-12-31  Eric Blake  <ebb9@byu.net>
30585
30586         doc: correct availability of cygwin 1.5.x getopt
30587         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30588         variables.
30589         * doc/posix-functions/opterr.texi (opterr): Likewise.
30590         * doc/posix-functions/optind.texi (optind): Likewise.
30591         * doc/posix-functions/optopt.texi (optopt): Likewise.
30592         * doc/posix-functions/tzname.texi (tzname): Likewise.
30593
30594         openat: update maintainer
30595         * modules/openat (Maintainer): Add myself.
30596
30597         utimens: avoid shadowing warning
30598         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30599         buffers into one, to avoid shadowing, as well as avoiding a
30600         redundant stat.
30601         Reported by Jim Meyering.
30602
30603         test-dup2: avoid compiler warning
30604         * tests/test-dup2.c (is_inheritable): Only define if used.
30605
30606 2010-01-01  Bruno Haible  <bruno@clisp.org>
30607
30608         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30609         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30610         defined, use wctomb instead of wcrtomb.
30611
30612 2010-01-01  Bruno Haible  <bruno@clisp.org>
30613
30614         iconv: Reject native Solaris iconv.
30615         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30616         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30617
30618 2009-12-31  Bruno Haible  <bruno@clisp.org>
30619
30620         * tests/test-signal.c (main): Remove test of 'SIG'.
30621
30622 2009-12-31  Bruno Haible  <bruno@clisp.org>
30623
30624         spawn: Fix incomplete fix.
30625         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30626         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30627         warnings for GNULIB_POSIXCHECK again.
30628         Reported by Eric Blake.
30629
30630 2009-12-31  Bruno Haible  <bruno@clisp.org>
30631
30632         Avoid namespace pollution on glibc systems.
30633         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30634         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30635         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30636         glibc systems.
30637
30638 2009-12-31  Bruno Haible  <bruno@clisp.org>
30639
30640         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30641         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30642         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30643         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30644         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30645         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30646         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30647
30648 2009-12-31  Bruno Haible  <bruno@clisp.org>
30649
30650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30651         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30652         afterwards.
30653
30654 2009-12-31  Bruno Haible  <bruno@clisp.org>
30655
30656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30657         SYS_UTSNAME_H.
30658
30659 2009-12-31  Bruno Haible  <bruno@clisp.org>
30660
30661         spawn: Fix misapplied patch.
30662         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30663         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30664         warnings for GNULIB_POSIXCHECK.
30665
30666 2009-12-31  Bruno Haible  <bruno@clisp.org>
30667
30668         times: Update after sys_times changed.
30669         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30670         * modules/times (Files): Add it.
30671         (configure.ac): Invoke gl_FUNC_TIMES.
30672
30673 2009-12-31  Bruno Haible  <bruno@clisp.org>
30674
30675         Use AC_C_INLINE where necessary.
30676         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30677         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30679         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30680         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30681         * m4/mbiter.m4 (gl_MBITER): Likewise.
30682         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30683         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30684         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30685         * modules/u64 (configure.ac): Likewise.
30686
30687 2009-12-31  Bruno Haible  <bruno@clisp.org>
30688
30689         Use AC_C_INLINE instead of module 'inline' where possible.
30690         * modules/inline (Description): Clarify purpose.
30691         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30692         * modules/count-one-bits (Depends-on): Remove inline.
30693         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30694         * modules/openat (Depends-on): Remove inline.
30695         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30696         instead of depending on module 'inline'.
30697         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30698         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30699         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30700         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30701         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30702         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30703         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30704         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30705         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30706         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30707         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30708         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30709         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30710         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30711         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30712         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30713         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30714         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30715         Likewise.
30716         * modules/unictype/property-ascii-hex-digit (Depends-on,
30717         configure.ac): Likewise.
30718         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30719         configure.ac): Likewise.
30720         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30721         configure.ac): Likewise.
30722         * modules/unictype/property-bidi-block-separator (Depends-on,
30723         configure.ac): Likewise.
30724         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30725         configure.ac): Likewise.
30726         * modules/unictype/property-bidi-common-separator (Depends-on,
30727         configure.ac): Likewise.
30728         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30729         Likewise.
30730         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30731         configure.ac): Likewise.
30732         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30733         configure.ac): Likewise.
30734         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30735         configure.ac): Likewise.
30736         * modules/unictype/property-bidi-european-digit (Depends-on,
30737         configure.ac): Likewise.
30738         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30739         configure.ac): Likewise.
30740         * modules/unictype/property-bidi-left-to-right (Depends-on,
30741         configure.ac): Likewise.
30742         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30743         configure.ac): Likewise.
30744         * modules/unictype/property-bidi-other-neutral (Depends-on,
30745         configure.ac): Likewise.
30746         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30747         Likewise.
30748         * modules/unictype/property-bidi-segment-separator (Depends-on,
30749         configure.ac): Likewise.
30750         * modules/unictype/property-bidi-whitespace (Depends-on,
30751         configure.ac): Likewise.
30752         * modules/unictype/property-combining (Depends-on, configure.ac):
30753         Likewise.
30754         * modules/unictype/property-composite (Depends-on, configure.ac):
30755         Likewise.
30756         * modules/unictype/property-currency-symbol (Depends-on,
30757         configure.ac): Likewise.
30758         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30759         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30760         Likewise.
30761         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30762         configure.ac): Likewise.
30763         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30764         Likewise.
30765         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30766         Likewise.
30767         * modules/unictype/property-extender (Depends-on, configure.ac):
30768         Likewise.
30769         * modules/unictype/property-format-control (Depends-on, configure.ac):
30770         Likewise.
30771         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30772         Likewise.
30773         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30774         Likewise.
30775         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30776         Likewise.
30777         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30778         Likewise.
30779         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30780         Likewise.
30781         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30782         Likewise.
30783         * modules/unictype/property-id-start (Depends-on, configure.ac):
30784         Likewise.
30785         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30786         Likewise.
30787         * modules/unictype/property-ids-binary-operator (Depends-on,
30788         configure.ac): Likewise.
30789         * modules/unictype/property-ids-trinary-operator (Depends-on,
30790         configure.ac): Likewise.
30791         * modules/unictype/property-ignorable-control (Depends-on,
30792         configure.ac): Likewise.
30793         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30794         Likewise.
30795         * modules/unictype/property-join-control (Depends-on, configure.ac):
30796         Likewise.
30797         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30798         Likewise.
30799         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30800         Likewise.
30801         * modules/unictype/property-logical-order-exception (Depends-on,
30802         configure.ac): Likewise.
30803         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30804         Likewise.
30805         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30806         * modules/unictype/property-non-break (Depends-on, configure.ac):
30807         Likewise.
30808         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30809         Likewise.
30810         * modules/unictype/property-numeric (Depends-on, configure.ac):
30811         Likewise.
30812         * modules/unictype/property-other-alphabetic (Depends-on,
30813         configure.ac): Likewise.
30814         * modules/unictype/property-other-default-ignorable-code-point
30815         (Depends-on, configure.ac): Likewise.
30816         * modules/unictype/property-other-grapheme-extend (Depends-on,
30817         configure.ac): Likewise.
30818         * modules/unictype/property-other-id-continue (Depends-on,
30819         configure.ac): Likewise.
30820         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30821         Likewise.
30822         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30823         Likewise.
30824         * modules/unictype/property-other-math (Depends-on, configure.ac):
30825         Likewise.
30826         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30827         Likewise.
30828         * modules/unictype/property-paired-punctuation (Depends-on,
30829         configure.ac): Likewise.
30830         * modules/unictype/property-paragraph-separator (Depends-on,
30831         configure.ac): Likewise.
30832         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30833         Likewise.
30834         * modules/unictype/property-pattern-white-space (Depends-on,
30835         configure.ac): Likewise.
30836         * modules/unictype/property-private-use (Depends-on, configure.ac):
30837         Likewise.
30838         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30839         Likewise.
30840         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30841         Likewise.
30842         * modules/unictype/property-radical (Depends-on, configure.ac):
30843         Likewise.
30844         * modules/unictype/property-sentence-terminal (Depends-on,
30845         configure.ac): Likewise.
30846         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30847         Likewise.
30848         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30849         * modules/unictype/property-terminal-punctuation (Depends-on,
30850         configure.ac): Likewise.
30851         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30852         Likewise.
30853         * modules/unictype/property-unassigned-code-value (Depends-on,
30854         configure.ac): Likewise.
30855         * modules/unictype/property-unified-ideograph (Depends-on,
30856         configure.ac): Likewise.
30857         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30858         Likewise.
30859         * modules/unictype/property-variation-selector (Depends-on,
30860         configure.ac): Likewise.
30861         * modules/unictype/property-white-space (Depends-on, configure.ac):
30862         Likewise.
30863         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30864         Likewise.
30865         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30866         Likewise.
30867         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30868         Likewise.
30869         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30870         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30871         Likewise.
30872
30873 2009-12-31  Bruno Haible  <bruno@clisp.org>
30874
30875         Remove unnecessary AC_C_INLINE invocation.
30876         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30877         since 2009-08-21.
30878
30879 2009-12-31  Jim Meyering  <meyering@redhat.com>
30880
30881         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30882         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30883         With this change, we can all remove the gpg_key_ID = ... definition
30884         from our respective cfg.mk files.
30885
30886         maint.mk: create announcement template in ~/, not in /tmp
30887         * top/maint.mk (emit_upload_commands): Adjust.
30888         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30889         Remove temporary file, .ci-msg.
30890
30891 2009-12-31  Eric Blake  <ebb9@byu.net>
30892
30893         link-warning: always build headers with link warnings
30894         * modules/arpa_inet (Makefile.am): Always build replacement
30895         header.
30896         * modules/ctype (Makefile.am): Likewise.
30897         * modules/dirent (Makefile.am): Likewise.
30898         * modules/inttypes (Makefile.am): Likewise.
30899         * modules/langinfo (Makefile.am): Likewise.
30900         * modules/locale (Makefile.am): Likewise.
30901         * modules/spawn (Makefile.am): Likewise.
30902         * modules/sys_file (Makefile.am): Likewise.
30903         * modules/sys_ioctl (Makefile.am): Likewise.
30904         * modules/sys_select (Makefile.am): Likewise.
30905         * modules/sys_socket (Makefile.am): Likewise.
30906         * modules/sys_times (Makefile.am): Likewise.
30907         * modules/sys_utsname (Makefile.am): Likewise.
30908         * modules/sys_wait (Makefile.am): Likewise.
30909         * modules/wchar (Makefile.am): Likewise.
30910         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30911         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30912         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30913         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30914         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30915         Likewise.
30916         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30917         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30918         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30919         Likewise.
30920         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30921         Likewise.
30922         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30923         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30924         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30926         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30928         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30929         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30930         (gl_WCHAR_H_DEFAULTS): Likewise.
30931
30932 2009-12-31  Eric Blake  <ebb9@byu.net>
30933
30934         signal, spawn: use link warnings
30935         * lib/signal.in.h (sigset_t): Make unconditional.
30936         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30937         (sigpending, sigprocmask, sigaction): Add link warnings.
30938         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30939         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30940         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30941         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30942         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30943         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30944         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30945         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30946         (posix_spawn_file_actions_destroy)
30947         (posix_spawn_file_actions_addopen)
30948         (posix_spawn_file_actions_addclose)
30949         (posix_spawn_file_actions_adddup2): Likewise.
30950         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30951         * tests/test-signal.c (main): Enhance test.
30952
30953         spawn: improve wrapper support
30954         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30955         (gl_SPAWN_H_DEFAULTS): New defaults.
30956         * modules/spawn (Makefile.am): Substitute them.
30957         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30958         Only declare if missing or broken.
30959
30960         sys_times, sys_utsname: use include_next
30961         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30962         header.
30963         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30964         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30965         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30966         * modules/sys_times (Depends-on): Add include_next.
30967         (Makefile.am): Substitute additional values.
30968         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30969         * lib/sys_times.in.h (includes): Include native header, if
30970         available.
30971         * lib/sys_utsname.in.h (includes): Likewise.
30972         * tests/test-sys_times.c (main): Enhance test.
30973
30974         fdutimensat: revert prior patch
30975         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30976         utimens.h.
30977         Reported by Bruno Haible.
30978
30979 2009-12-30  Eric Blake  <ebb9@byu.net>
30980
30981         sys_wait: drop link-warning dependency
30982         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30983         link-warning efforts.
30984         * lib/sys_wait.in.h: Likewise.
30985
30986         fdutimensat: remove bogus dependency
30987         * modules/fdutimensat (Depends-on): Drop inline.
30988
30989         unistd: fix typo
30990         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30991
30992 2009-12-30  Bruno Haible  <bruno@clisp.org>
30993
30994         Fix compilation error with Solaris cc.
30995         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30996         * lib/unicase/u16-is-invariant.c: Likewise.
30997         * lib/unicase/u32-is-invariant.c: Likewise.
30998         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30999
31000 2009-12-30  Bruno Haible  <bruno@clisp.org>
31001
31002         Fix test crash.
31003         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31004         locales.
31005         Reported by Simon Josefsson <simon@josefsson.org>.
31006
31007 2009-12-30  Bruno Haible  <bruno@clisp.org>
31008
31009         Fix compilation error on most platforms.
31010         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31011         Reported by Simon Josefsson <simon@josefsson.org>
31012         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31013
31014 2009-12-30  Eric Blake  <ebb9@byu.net>
31015
31016         futimens, utimensat: work around ntfs-3g bug
31017         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31018         a ctime bug is present, and expand workaround to cover ntfs-3g.
31019         * lib/utimens.c (fdutimens, lutimens): Likewise.
31020         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31021         (validate_timespec): Adjust return value.
31022         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31023         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31024         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31025
31026 2009-12-29  Eric Blake  <ebb9@byu.net>
31027
31028         link-warning: make usage consistent
31029         * modules/ctype (Depends-on): Add link-warning.
31030         (Makefile.am): Update rules accordingly.
31031         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31032         * modules/locale (Depends-on, Makefile.am): Likewise.
31033         * modules/sys_file (Makefile.am): Likewise.
31034         * modules/getopt-posix (Makefile.am): Delete unused link warning
31035         efforts.
31036         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31037         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31038         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31039         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31040
31041         stdio: remove unused variables
31042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31043         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31044         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31045
31046         tests: test more substitute headers
31047         * modules/ctype-tests: New file.
31048         * modules/dirent-tests: Likewise.
31049         * modules/spawn-tests: Likewise.
31050         * modules/sys_file-tests: Likewise.
31051         * modules/sys_ioctl-tests: Likewise.
31052         * modules/sys_wait-tests: Likewise.
31053         * tests/test-ctype.c: Likewise.
31054         * tests/test-dirent.c: Likewise.
31055         * tests/test-spawn.c: Likewise.
31056         * tests/test-sys_file.c: Likewise.
31057         * tests/test-sys_ioctl.c: Likewise.
31058         * tests/test-sys_wait.c: Likewise.
31059         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31060         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31061         whether or not flock is in use.
31062
31063         tests: remove License section from module
31064         * modules/arpa_inet-tests: Remove unneeded section.
31065         * modules/byteswap-tests: Likewise.
31066         * modules/ceilf-tests: Likewise.
31067         * modules/ceill-tests: Likewise.
31068         * modules/crypto/des-tests: Likewise.
31069         * modules/crypto/gc-arcfour-tests: Likewise.
31070         * modules/crypto/gc-arctwo-tests: Likewise.
31071         * modules/crypto/gc-des-tests: Likewise.
31072         * modules/crypto/gc-hmac-md5-tests: Likewise.
31073         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31074         * modules/crypto/gc-md2-tests: Likewise.
31075         * modules/crypto/gc-md4-tests: Likewise.
31076         * modules/crypto/gc-md5-tests: Likewise.
31077         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31078         * modules/crypto/gc-rijndael-tests: Likewise.
31079         * modules/crypto/gc-sha1-tests: Likewise.
31080         * modules/crypto/gc-tests: Likewise.
31081         * modules/crypto/md2-tests: Likewise.
31082         * modules/crypto/md4-tests: Likewise.
31083         * modules/fcntl-h-tests: Likewise.
31084         * modules/floorf-tests: Likewise.
31085         * modules/floorl-tests: Likewise.
31086         * modules/frexp-nolibm-tests: Likewise.
31087         * modules/frexp-tests: Likewise.
31088         * modules/frexpl-nolibm-tests: Likewise.
31089         * modules/frexpl-tests: Likewise.
31090         * modules/getaddrinfo-tests: Likewise.
31091         * modules/inttypes-tests: Likewise.
31092         * modules/isfinite-tests: Likewise.
31093         * modules/isinf-tests: Likewise.
31094         * modules/ldexpl-tests: Likewise.
31095         * modules/locale-tests: Likewise.
31096         * modules/math-tests: Likewise.
31097         * modules/netdb-tests: Likewise.
31098         * modules/netinet_in-tests: Likewise.
31099         * modules/printf-frexp-tests: Likewise.
31100         * modules/printf-frexpl-tests: Likewise.
31101         * modules/priv-set-tests: Likewise.
31102         * modules/random_r-tests: Likewise.
31103         * modules/round-tests: Likewise.
31104         * modules/roundf-tests: Likewise.
31105         * modules/roundl-tests: Likewise.
31106         * modules/search-tests: Likewise.
31107         * modules/select-tests: Likewise.
31108         * modules/signal-tests: Likewise.
31109         * modules/stdbool-tests: Likewise.
31110         * modules/stddef-tests: Likewise.
31111         * modules/stdint-tests: Likewise.
31112         * modules/stdio-tests: Likewise.
31113         * modules/stdlib-tests: Likewise.
31114         * modules/string-tests: Likewise.
31115         * modules/strings-tests: Likewise.
31116         * modules/sys_select-tests: Likewise.
31117         * modules/sys_socket-tests: Likewise.
31118         * modules/sys_stat-tests: Likewise.
31119         * modules/sys_time-tests: Likewise.
31120         * modules/sys_utsname-tests: Likewise.
31121         * modules/sysexits-tests: Likewise.
31122         * modules/time-tests: Likewise.
31123         * modules/trunc-tests: Likewise.
31124         * modules/truncf-tests: Likewise.
31125         * modules/truncl-tests: Likewise.
31126         * modules/tsearch-tests: Likewise.
31127         * modules/unistd-tests: Likewise.
31128         * modules/wchar-tests: Likewise.
31129         * modules/wctype-tests: Likewise.
31130
31131         tests: fix license on several tests
31132         * tests/test-des.c: Update to GPLv3+.
31133         * tests/test-flock.c: Likewise.
31134         * tests/test-fsync.c: Likewise.
31135         * tests/test-futimens.h: Likewise.
31136         * tests/test-gc-arcfour.c: Likewise.
31137         * tests/test-gc-arctwo.c: Likewise.
31138         * tests/test-gc-des.c: Likewise.
31139         * tests/test-gc-hmac-md5.c: Likewise.
31140         * tests/test-gc-hmac-sha1.c: Likewise.
31141         * tests/test-gc-md2.c: Likewise.
31142         * tests/test-gc-md4.c: Likewise.
31143         * tests/test-gc-md5.c: Likewise.
31144         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31145         * tests/test-gc-rijndael.c: Likewise.
31146         * tests/test-gc-sha1.c: Likewise.
31147         * tests/test-gc.c: Likewise.
31148         * tests/test-getcwd.c: Likewise.
31149         * tests/test-link.c: Likewise.
31150         * tests/test-link.h: Likewise.
31151         * tests/test-lutimens.h: Likewise.
31152         * tests/test-md2.c: Likewise.
31153         * tests/test-md4.c: Likewise.
31154         * tests/test-mkdir.h: Likewise.
31155         * tests/test-rename.c: Likewise.
31156         * tests/test-rename.h: Likewise.
31157         * tests/test-safe-alloc.c: Likewise.
31158         * tests/test-utimens-common.h: Likewise.
31159         * tests/test-utimens.h: Likewise.
31160
31161         maint: sync license texts
31162         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31163         * doc/gpl-3.0.texi: Revert copyright year update.
31164         * doc/lgpl-3.0.texi: Likewise.
31165
31166 2009-12-29  Jim Meyering  <meyering@redhat.com>
31167
31168         update nearly all FSF copyright year lists to include 2009
31169         The files named by the following are exempted:
31170             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31171               test -f "$dst" && { echo "$dst"; continue; }
31172               test -d "$dst" || continue
31173               echo "$dst"/$(basename "$src")
31174             done > exempt
31175             git ls-files tests/unictype >> exempt
31176         In the remaining files, convert to all-interval notation if
31177         - there is already at least one year interval like 2000-2003
31178         - the file is maintained by me
31179         - the file is in lib/uni*/, where that style already prevails
31180         Otherwise, use update-copyright's default.
31181
31182 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31183         and Eric Blake  <ebb9@byu.net>
31184
31185         tests: don't require debug system() to pass
31186         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31187         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31188         * tests/test-unlink.h (test_unlink_func): Likewise.
31189         * tests/test-fstatat.c (main): ...into callers.
31190         * tests/test-lstat.c (main): Likewise.
31191         * tests/test-rmdir.c (main): Likewise.
31192         * tests/test-unlink.c (main): Likewise.
31193         * tests/test-unlinkat.c (main): Likewise.
31194         * tests/test-areadlink-with-size.c (main): Don't require a
31195         debug-only system call to pass, aiding cross-testing to mingw.
31196         * tests/test-areadlink.c (main): Likewise.
31197         * tests/test-areadlinkat-with-size.c (main): Likewise.
31198         * tests/test-areadlinkat.c (main): Likewise.
31199         * tests/test-canonicalize-lgpl.c (main): Likewise.
31200         * tests/test-canonicalize.c (main): Likewise.
31201         * tests/test-chown.c (main): Likewise.
31202         * tests/test-fchownat.c (main): Likewise.
31203         * tests/test-lchown.c (main): Likewise.
31204         * tests/test-fdutimensat.c (main): Likewise.
31205         * tests/test-futimens.c (main): Likewise.
31206         * tests/test-link.c (main): Likewise.
31207         * tests/test-linkat.c (main): Likewise.
31208         * tests/test-mkdir.c (main): Likewise.
31209         * tests/test-mkdirat.c (main): Likewise.
31210         * tests/test-mkfifo.c (main): Likewise.
31211         * tests/test-mkfifoat.c (main): Likewise.
31212         * tests/test-mknod.c (main): Likewise.
31213         * tests/test-readlink.c (main): Likewise.
31214         * tests/test-remove.c (main): Likewise.
31215         * tests/test-rename.c (main): Likewise.
31216         * tests/test-renameat.c (main): Likewise.
31217         * tests/test-symlink.c (main): Likewise.
31218         * tests/test-symlinkat.c (main): Likewise.
31219         * tests/test-utimens.c (main): Likewise.
31220         * tests/test-utimensat.c (main): Likewise.
31221
31222 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31223
31224         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31225         on $(UNUSED_PARAMETER_H) to avoid build failure.
31226
31227 2009-12-28  Jim Meyering  <meyering@redhat.com>
31228
31229         update-copyright: you may specify a max. line length other than 72
31230         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31231
31232         maint: use consistent FSF copyright line syntax
31233         * lib/posixtm.c: Add missing comma in FSF copyright line.
31234         * lib/posixtm.h: Likewise.
31235         * lib/getugroups.c: Add missing ", Inc.".
31236
31237         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31238         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31239         FSF copyright line.  Remove trailing blanks.
31240
31241 2009-12-28  Eric Blake  <ebb9@byu.net>
31242
31243         test-dup2: reduce dependencies
31244         * modules/cloexec (Configure.ac): Set witness.
31245         * modules/dup2-tests (Depends-on): Drop cloexec.
31246         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31247         not present.
31248         Suggested by Bruno Haible.
31249
31250 2009-12-26  Bruno Haible  <bruno@clisp.org>
31251
31252         Remove an unneeded dependency.
31253         * modules/fseterr (Depends-on): Remove dup2.
31254
31255 2009-12-26  Eric Blake  <ebb9@byu.net>
31256
31257         tests: use macros.h in more places
31258         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31259         (ASSERT_STREAM): Provide default of stderr.
31260         * tests/test-dirent-safer.c: Include macros.h, using alternate
31261         stream for assertions.
31262         * tests/test-dup-safer.c: Likewise.
31263         * tests/test-freopen-safer.c: Likewise.
31264         * tests/test-getopt.c: Likewise.
31265         * tests/test-openat-safer.c: Likewise.
31266         * tests/test-pipe.c: Likewise.
31267         * tests/test-popen-safer.c: Likewise.
31268         * modules/dirent-safer-tests (Files): Include macros.h.
31269         * modules/unistd-safer-tests (Files): Likewise.
31270         * modules/freopen-safer-tests (Files): Likewise.
31271         * modules/getopt-posix-tests (Files): Likewise.
31272         * modules/openat-safer-tests (Files): Likewise.
31273         * modules/pipe-tests (Files): Likewise.
31274
31275 2009-12-26  Bruno Haible  <bruno@clisp.org>
31276
31277         javacomp: Portability fix.
31278         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31279         that it also works on Solaris.
31280
31281 2009-12-26  Bruno Haible  <bruno@clisp.org>
31282
31283         localename: Fix storage allocation of gl_locale_name_thread's result.
31284         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31285         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31286         all platforms that have 'uselocale'.
31287         (gl_locale_name_thread_unsafe): New function, extracted from
31288         gl_locale_name_thread.
31289         (gl_locale_name_thread): Call struniq on all platforms that have
31290         'uselocale'.
31291         * tests/test-localename.c (test_locale_name_thread): Check that the
31292         resulting strings are permanently allocated.
31293         * modules/localename-tests (Depends-on): Add strdup.
31294
31295 2009-12-26  Bruno Haible  <bruno@clisp.org>
31296
31297         * tests/test-localename.c (categories): Fill in the strings.
31298
31299 2009-12-26  Jim Meyering  <meyering@redhat.com>
31300
31301         isdir: complete the removal of m4/isdir.m4
31302         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31303
31304         isdir: clean up, since at least grep still uses it
31305         * lib/isdir.c: Include "isdir.h".
31306         (S_ISDIR): Remove now-unneeded definition.
31307         * modules/isdir (Files): Add lib/isdir.h.
31308         * lib/isdir.h: New file, with declaration.
31309         * m4/isdir.m4: Remove file -- unneeded.
31310
31311 2009-12-25  Bruno Haible  <bruno@clisp.org>
31312
31313         selinux-h: Make generated .h files standalone.
31314         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31315         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31316         * lib/se-selinux.in.h: Likewise.
31317         * modules/selinux-h (Depends-on): Add unused-parameter.
31318         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31319         selinux/selinux.h and selinux/context.h.
31320         Suggested by Eric Blake.
31321
31322 2009-12-25  Bruno Haible  <bruno@clisp.org>
31323
31324         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31325         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31326         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31327         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31328         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31329
31330 2009-12-24  Bruno Haible  <bruno@clisp.org>
31331
31332         openat: Fix warning.
31333         * lib/openat-proc.c: Include <unistd.h>.
31334
31335 2009-12-24  Bruno Haible  <bruno@clisp.org>
31336
31337         New module 'unused-parameter'.
31338         * build-aux/unused-parameter.h: New file, extracted from earlier
31339         gnulib-common.m4.
31340         * modules/unused-parameter: New file.
31341         * lib/unistr.h: Include unused-parameter.h.
31342         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31343         _GL_UNUSED.
31344         * modules/unistr/base (Depends-on): Add unused-parameter.
31345
31346 2009-12-24  Bruno Haible  <bruno@clisp.org>
31347
31348         Add missing dependencies to 'extensions' module.
31349         * m4/extensions.m4: Add comment.
31350         * modules/accept4 (Depends-on): Add extensions.
31351         * modules/dup3 (Depends-on): Likewise.
31352         * modules/fcntl (Depends-on): Likewise.
31353         * modules/futimens (Depends-on): Likewise.
31354         * modules/mknod (Depends-on): Likewise.
31355         * modules/pipe2 (Depends-on): Likewise.
31356         * modules/stat-time (Depends-on): Likewise.
31357         * modules/strcasestr-simple (Depends-on): Likewise.
31358         * modules/strsignal (Depends-on): Likewise.
31359         * modules/utimensat (Depends-on): Likewise.
31360         * modules/localcharset (Depends-on): Likewise. Needed because of
31361         gl_FCNTL_O_FLAGS.
31362         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31363         AC_TYPE_MBSTATE_T.
31364         * modules/wcsnrtombs (Depends-on): Likewise.
31365         * modules/wcsrtombs (Depends-on): Likewise.
31366
31367 2009-12-24  Bruno Haible  <bruno@clisp.org>
31368
31369         binary-io: Avoid gcc warning due to SET_BINARY.
31370         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31371         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31372
31373 2009-12-24  Bruno Haible  <bruno@clisp.org>
31374
31375         Avoid future namespace pollution on glibc systems.
31376         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31377         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31378         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31379         glibc systems.
31380
31381 2009-12-24  Bruno Haible  <bruno@clisp.org>
31382
31383         Refactor common macros used in tests.
31384         * tests/macros.h: New file.
31385         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31386         and/or <stdlib.h>, if appropriate.
31387         (ASSERT, SIZEOF): Remove macros.
31388         * tests/test-areadlink-with-size.c: Likewise.
31389         * tests/test-areadlinkat.c: Likewise.
31390         * tests/test-areadlinkat-with-size.c: Likewise.
31391         * tests/test-argmatch.c: Likewise.
31392         * tests/test-argv-iter.c: Likewise.
31393         * tests/test-array-mergesort.c: Likewise.
31394         * tests/test-array_list.c: Likewise.
31395         * tests/test-array_oset.c: Likewise.
31396         * tests/test-avltree_list.c: Likewise.
31397         * tests/test-avltree_oset.c: Likewise.
31398         * tests/test-avltreehash_list.c: Likewise.
31399         * tests/test-base64.c: Likewise.
31400         * tests/test-binary-io.c: Likewise.
31401         * tests/test-bitrotate.c: Likewise.
31402         * tests/test-btowc.c: Likewise.
31403         * tests/test-byteswap.c: Likewise.
31404         * tests/test-c-ctype.c: Likewise.
31405         * tests/test-c-stack.c: Likewise.
31406         * tests/test-c-strcasecmp.c: Likewise.
31407         * tests/test-c-strcasestr.c: Likewise.
31408         * tests/test-c-strncasecmp.c: Likewise.
31409         * tests/test-c-strstr.c: Likewise.
31410         * tests/test-canonicalize-lgpl.c: Likewise.
31411         * tests/test-canonicalize.c: Likewise.
31412         * tests/test-carray_list.c: Likewise.
31413         * tests/test-ceilf1.c: Likewise.
31414         * tests/test-ceilf2.c: Likewise.
31415         * tests/test-ceill.c: Likewise.
31416         * tests/test-chown.c: Likewise.
31417         * tests/test-cloexec.c: Likewise.
31418         * tests/test-copy-acl.c: Likewise.
31419         * tests/test-copy-file.c: Likewise.
31420         * tests/test-count-one-bits.c: Likewise.
31421         * tests/test-dprintf-posix.c: Likewise.
31422         * tests/test-dup2.c: Likewise.
31423         * tests/test-dup3.c: Likewise.
31424         * tests/test-duplocale.c: Likewise.
31425         * tests/test-fbufmode.c: Likewise.
31426         * tests/test-fchdir.c: Likewise.
31427         * tests/test-fchownat.c: Likewise.
31428         * tests/test-fcntl-safer.c: Likewise.
31429         * tests/test-fcntl.c: Likewise.
31430         * tests/test-fdopendir.c: Likewise.
31431         * tests/test-fdutimensat.c: Likewise.
31432         * tests/test-fflush2.c: Likewise.
31433         * tests/test-file-has-acl.c: Likewise.
31434         * tests/test-filevercmp.c: Likewise.
31435         * tests/test-flock.c: Likewise.
31436         * tests/test-floorf1.c: Likewise.
31437         * tests/test-floorf2.c: Likewise.
31438         * tests/test-floorl.c: Likewise.
31439         * tests/test-fnmatch.c: Likewise.
31440         * tests/test-fopen.h: Likewise.
31441         * tests/test-fpending.c: Likewise.
31442         * tests/test-fprintf-posix.c: Likewise.
31443         * tests/test-fpurge.c: Likewise.
31444         * tests/test-freadable.c: Likewise.
31445         * tests/test-freadahead.c: Likewise.
31446         * tests/test-freading.c: Likewise.
31447         * tests/test-freadptr.c: Likewise.
31448         * tests/test-freadptr2.c: Likewise.
31449         * tests/test-freadseek.c: Likewise.
31450         * tests/test-freopen.c: Likewise.
31451         * tests/test-frexp.c: Likewise.
31452         * tests/test-frexpl.c: Likewise.
31453         * tests/test-fseek.c: Likewise.
31454         * tests/test-fseeko.c: Likewise.
31455         * tests/test-fstatat.c: Likewise.
31456         * tests/test-fstrcmp.c: Likewise.
31457         * tests/test-fsync.c: Likewise.
31458         * tests/test-ftell.c: Likewise.
31459         * tests/test-ftello.c: Likewise.
31460         * tests/test-func.c: Likewise.
31461         * tests/test-futimens.c: Likewise.
31462         * tests/test-fwritable.c: Likewise.
31463         * tests/test-fwriting.c: Likewise.
31464         * tests/test-getcwd.c: Likewise.
31465         * tests/test-getdate.c: Likewise.
31466         * tests/test-getdelim.c: Likewise.
31467         * tests/test-getdtablesize.c: Likewise.
31468         * tests/test-getgroups.c: Likewise.
31469         * tests/test-getline.c: Likewise.
31470         * tests/test-getndelim2.c: Likewise.
31471         * tests/test-glob.c: Likewise.
31472         * tests/test-hash.c: Likewise.
31473         * tests/test-i-ring.c: Likewise.
31474         * tests/test-iconv-utf.c: Likewise.
31475         * tests/test-iconv.c: Likewise.
31476         * tests/test-idpriv-drop.c: Likewise.
31477         * tests/test-idpriv-droptemp.c: Likewise.
31478         * tests/test-inet_ntop.c: Likewise.
31479         * tests/test-inet_pton.c: Likewise.
31480         * tests/test-isblank.c: Likewise.
31481         * tests/test-isfinite.c: Likewise.
31482         * tests/test-isinf.c: Likewise.
31483         * tests/test-isnan.c: Likewise.
31484         * tests/test-isnand.h: Likewise.
31485         * tests/test-isnanf.h: Likewise.
31486         * tests/test-isnanl.h: Likewise.
31487         * tests/test-lchown.c: Likewise.
31488         * tests/test-ldexpl.c: Likewise.
31489         * tests/test-link.c: Likewise.
31490         * tests/test-linkat.c: Likewise.
31491         * tests/test-linked_list.c: Likewise.
31492         * tests/test-linkedhash_list.c: Likewise.
31493         * tests/test-localename.c: Likewise.
31494         * tests/test-lseek.c: Likewise.
31495         * tests/test-lstat.c: Likewise.
31496         * tests/test-mbmemcasecmp.c: Likewise.
31497         * tests/test-mbmemcasecoll.c: Likewise.
31498         * tests/test-mbrtowc.c: Likewise.
31499         * tests/test-mbscasecmp.c: Likewise.
31500         * tests/test-mbscasestr1.c: Likewise.
31501         * tests/test-mbscasestr2.c: Likewise.
31502         * tests/test-mbscasestr3.c: Likewise.
31503         * tests/test-mbscasestr4.c: Likewise.
31504         * tests/test-mbschr.c: Likewise.
31505         * tests/test-mbscspn.c: Likewise.
31506         * tests/test-mbsinit.c: Likewise.
31507         * tests/test-mbsncasecmp.c: Likewise.
31508         * tests/test-mbsnrtowcs.c: Likewise.
31509         * tests/test-mbspbrk.c: Likewise.
31510         * tests/test-mbspcasecmp.c: Likewise.
31511         * tests/test-mbsrchr.c: Likewise.
31512         * tests/test-mbsrtowcs.c: Likewise.
31513         * tests/test-mbsspn.c: Likewise.
31514         * tests/test-mbsstr1.c: Likewise.
31515         * tests/test-mbsstr2.c: Likewise.
31516         * tests/test-mbsstr3.c: Likewise.
31517         * tests/test-memchr.c: Likewise.
31518         * tests/test-memchr2.c: Likewise.
31519         * tests/test-memcmp.c: Likewise.
31520         * tests/test-memmem.c: Likewise.
31521         * tests/test-memrchr.c: Likewise.
31522         * tests/test-mkdir.c: Likewise.
31523         * tests/test-mkdirat.c: Likewise.
31524         * tests/test-mkfifo.c: Likewise.
31525         * tests/test-mkfifoat.c: Likewise.
31526         * tests/test-mknod.c: Likewise.
31527         * tests/test-nanosleep.c: Likewise.
31528         * tests/test-nl_langinfo.c: Likewise.
31529         * tests/test-obstack-printf.c: Likewise.
31530         * tests/test-open.c: Likewise.
31531         * tests/test-openat.c: Likewise.
31532         * tests/test-pipe-filter-gi1.c: Likewise.
31533         * tests/test-pipe-filter-gi2-main.c: Likewise.
31534         * tests/test-pipe-filter-ii1.c: Likewise.
31535         * tests/test-pipe-filter-ii2-main.c: Likewise.
31536         * tests/test-pipe2.c: Likewise.
31537         * tests/test-popen.h: Likewise.
31538         * tests/test-posixtm.c: Likewise.
31539         * tests/test-pread.c: Likewise.
31540         * tests/test-printf-frexp.c: Likewise.
31541         * tests/test-printf-frexpl.c: Likewise.
31542         * tests/test-printf-posix.c: Likewise.
31543         * tests/test-priv-set.c: Likewise.
31544         * tests/test-quotearg.c: Likewise.
31545         * tests/test-random_r.c: Likewise.
31546         * tests/test-rawmemchr.c: Likewise.
31547         * tests/test-rbtree_list.c: Likewise.
31548         * tests/test-rbtree_oset.c: Likewise.
31549         * tests/test-rbtreehash_list.c: Likewise.
31550         * tests/test-readlink.c: Likewise.
31551         * tests/test-remove.c: Likewise.
31552         * tests/test-rename.c: Likewise.
31553         * tests/test-renameat.c: Likewise.
31554         * tests/test-rmdir.c: Likewise.
31555         * tests/test-round1.c: Likewise.
31556         * tests/test-roundf1.c: Likewise.
31557         * tests/test-roundl.c: Likewise.
31558         * tests/test-safe-alloc.c: Likewise.
31559         * tests/test-sameacls.c: Likewise.
31560         * tests/test-set-mode-acl.c: Likewise.
31561         * tests/test-setenv.c: Likewise.
31562         * tests/test-sigaction.c: Likewise.
31563         * tests/test-signbit.c: Likewise.
31564         * tests/test-sleep.c: Likewise.
31565         * tests/test-snprintf-posix.c: Likewise.
31566         * tests/test-snprintf.c: Likewise.
31567         * tests/test-sprintf-posix.c: Likewise.
31568         * tests/test-stat-time.c: Likewise.
31569         * tests/test-stat.c: Likewise.
31570         * tests/test-strcasestr.c: Likewise.
31571         * tests/test-strchrnul.c: Likewise.
31572         * tests/test-strerror.c: Likewise.
31573         * tests/test-striconv.c: Likewise.
31574         * tests/test-striconveh.c: Likewise.
31575         * tests/test-striconveha.c: Likewise.
31576         * tests/test-strsignal.c: Likewise.
31577         * tests/test-strstr.c: Likewise.
31578         * tests/test-strtod.c: Likewise.
31579         * tests/test-strverscmp.c: Likewise.
31580         * tests/test-symlink.c: Likewise.
31581         * tests/test-symlinkat.c: Likewise.
31582         * tests/test-trunc1.c: Likewise.
31583         * tests/test-trunc2.c: Likewise.
31584         * tests/test-truncf1.c: Likewise.
31585         * tests/test-truncf2.c: Likewise.
31586         * tests/test-truncl.c: Likewise.
31587         * tests/test-uname.c: Likewise.
31588         * tests/test-unlink.c: Likewise.
31589         * tests/test-unlinkat.c: Likewise.
31590         * tests/test-unsetenv.c: Likewise.
31591         * tests/test-usleep.c: Likewise.
31592         * tests/test-utimens.c: Likewise.
31593         * tests/test-utimensat.c: Likewise.
31594         * tests/test-vasnprintf-posix.c: Likewise.
31595         * tests/test-vasnprintf-posix2.c: Likewise.
31596         * tests/test-vasnprintf.c: Likewise.
31597         * tests/test-vasprintf-posix.c: Likewise.
31598         * tests/test-vasprintf.c: Likewise.
31599         * tests/test-vdprintf-posix.c: Likewise.
31600         * tests/test-vfprintf-posix.c: Likewise.
31601         * tests/test-vprintf-posix.c: Likewise.
31602         * tests/test-vsnprintf-posix.c: Likewise.
31603         * tests/test-vsnprintf.c: Likewise.
31604         * tests/test-vsprintf-posix.c: Likewise.
31605         * tests/test-wcrtomb.c: Likewise.
31606         * tests/test-wcsnrtombs.c: Likewise.
31607         * tests/test-wcsrtombs.c: Likewise.
31608         * tests/test-wctype.c: Likewise.
31609         * tests/test-wcwidth.c: Likewise.
31610         * tests/test-xfprintf-posix.c: Likewise.
31611         * tests/test-xmemdup0.c: Likewise.
31612         * tests/test-xprintf-posix.c: Likewise.
31613         * tests/test-xvasprintf.c: Likewise.
31614         * tests/unicase/test-locale-language.c: Likewise.
31615         * tests/unicase/test-mapping-part1.h: Likewise.
31616         * tests/unicase/test-predicate-part1.h: Likewise.
31617         * tests/unicase/test-u8-casecmp.c: Likewise.
31618         * tests/unicase/test-u8-casecoll.c: Likewise.
31619         * tests/unicase/test-u8-casefold.c: Likewise.
31620         * tests/unicase/test-u8-is-cased.c: Likewise.
31621         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31622         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31623         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31624         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31625         * tests/unicase/test-u8-tolower.c: Likewise.
31626         * tests/unicase/test-u8-totitle.c: Likewise.
31627         * tests/unicase/test-u8-toupper.c: Likewise.
31628         * tests/unicase/test-u16-casecmp.c: Likewise.
31629         * tests/unicase/test-u16-casecoll.c: Likewise.
31630         * tests/unicase/test-u16-casefold.c: Likewise.
31631         * tests/unicase/test-u16-is-cased.c: Likewise.
31632         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31633         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31634         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31635         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31636         * tests/unicase/test-u16-tolower.c: Likewise.
31637         * tests/unicase/test-u16-totitle.c: Likewise.
31638         * tests/unicase/test-u16-toupper.c: Likewise.
31639         * tests/unicase/test-u32-casecmp.c: Likewise.
31640         * tests/unicase/test-u32-casecoll.c: Likewise.
31641         * tests/unicase/test-u32-casefold.c: Likewise.
31642         * tests/unicase/test-u32-is-cased.c: Likewise.
31643         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31644         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31645         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31646         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31647         * tests/unicase/test-u32-tolower.c: Likewise.
31648         * tests/unicase/test-u32-totitle.c: Likewise.
31649         * tests/unicase/test-u32-toupper.c: Likewise.
31650         * tests/unicase/test-ulc-casecmp.c: Likewise.
31651         * tests/unicase/test-ulc-casecoll.c: Likewise.
31652         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31653         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31654         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31655         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31656         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31657         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31658         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31659         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31660         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31661         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31662         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31663         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31664         * tests/unictype/test-bidi_byname.c: Likewise.
31665         * tests/unictype/test-bidi_name.c: Likewise.
31666         * tests/unictype/test-bidi_of.c: Likewise.
31667         * tests/unictype/test-bidi_test.c: Likewise.
31668         * tests/unictype/test-block_list.c: Likewise.
31669         * tests/unictype/test-block_of.c: Likewise.
31670         * tests/unictype/test-block_test.c: Likewise.
31671         * tests/unictype/test-categ_and.c: Likewise.
31672         * tests/unictype/test-categ_and_not.c: Likewise.
31673         * tests/unictype/test-categ_byname.c: Likewise.
31674         * tests/unictype/test-categ_name.c: Likewise.
31675         * tests/unictype/test-categ_none.c: Likewise.
31676         * tests/unictype/test-categ_of.c: Likewise.
31677         * tests/unictype/test-categ_or.c: Likewise.
31678         * tests/unictype/test-categ_test_withtable.c: Likewise.
31679         * tests/unictype/test-combining.c: Likewise.
31680         * tests/unictype/test-decdigit.c: Likewise.
31681         * tests/unictype/test-digit.c: Likewise.
31682         * tests/unictype/test-mirror.c: Likewise.
31683         * tests/unictype/test-numeric.c: Likewise.
31684         * tests/unictype/test-pr_byname.c: Likewise.
31685         * tests/unictype/test-pr_test.c: Likewise.
31686         * tests/unictype/test-predicate-part1.h: Likewise.
31687         * tests/unictype/test-scripts.c: Likewise.
31688         * tests/unictype/test-sy_c_ident.c: Likewise.
31689         * tests/unictype/test-sy_java_ident.c: Likewise.
31690         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31691         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31692         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31693         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31694         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31695         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31696         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31697         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31698         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31699         * tests/uninorm/test-compat-decomposition.c: Likewise.
31700         * tests/uninorm/test-composition.c: Likewise.
31701         * tests/uninorm/test-decomposing-form.c: Likewise.
31702         * tests/uninorm/test-decomposition.c: Likewise.
31703         * tests/uninorm/test-u8-nfc.c: Likewise.
31704         * tests/uninorm/test-u8-nfd.c: Likewise.
31705         * tests/uninorm/test-u8-nfkc.c: Likewise.
31706         * tests/uninorm/test-u8-nfkd.c: Likewise.
31707         * tests/uninorm/test-u8-normcmp.c: Likewise.
31708         * tests/uninorm/test-u8-normcoll.c: Likewise.
31709         * tests/uninorm/test-u16-nfc.c: Likewise.
31710         * tests/uninorm/test-u16-nfd.c: Likewise.
31711         * tests/uninorm/test-u16-nfkc.c: Likewise.
31712         * tests/uninorm/test-u16-nfkd.c: Likewise.
31713         * tests/uninorm/test-u16-normcmp.c: Likewise.
31714         * tests/uninorm/test-u16-normcoll.c: Likewise.
31715         * tests/uninorm/test-u32-nfc.c: Likewise.
31716         * tests/uninorm/test-u32-nfd.c: Likewise.
31717         * tests/uninorm/test-u32-nfkc.c: Likewise.
31718         * tests/uninorm/test-u32-nfkd.c: Likewise.
31719         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31720         * tests/uninorm/test-u32-normcmp.c: Likewise.
31721         * tests/uninorm/test-u32-normcoll.c: Likewise.
31722         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31723         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31724         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31725         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31726         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31727         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31728         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31729         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31730         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31731         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31732         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31733         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31734         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31735         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31736         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31737         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31738         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31739         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31740         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31741         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31742         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31743         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31744         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31745         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31746         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31747         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31748         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31749         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31750         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31751         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31752         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31753         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31754         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31755         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31756         * tests/uniwidth/test-u8-width.c: Likewise.
31757         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31758         * tests/uniwidth/test-u16-width.c: Likewise.
31759         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31760         * tests/uniwidth/test-u32-width.c: Likewise.
31761         * tests/uniwidth/test-uc_width.c: Likewise.
31762         * tests/uniwidth/test-uc_width2.c: Likewise.
31763         * modules/acl-tests (Files): Add tests/macros.h.
31764         * modules/areadlink-tests (Files): Likewise.
31765         * modules/areadlink-with-size-tests (Files): Likewise.
31766         * modules/areadlinkat-tests (Files): Likewise.
31767         * modules/areadlinkat-with-size-tests (Files): Likewise.
31768         * modules/argmatch-tests (Files): Likewise.
31769         * modules/argv-iter-tests (Files): Likewise.
31770         * modules/array-list-tests (Files): Likewise.
31771         * modules/array-mergesort-tests (Files): Likewise.
31772         * modules/array-oset-tests (Files): Likewise.
31773         * modules/avltree-list-tests (Files): Likewise.
31774         * modules/avltree-oset-tests (Files): Likewise.
31775         * modules/avltreehash-list-tests (Files): Likewise.
31776         * modules/base64-tests (Files): Likewise.
31777         * modules/binary-io-tests (Files): Likewise.
31778         * modules/bitrotate-tests (Files): Likewise.
31779         * modules/btowc-tests (Files): Likewise.
31780         * modules/byteswap-tests (Files): Likewise.
31781         * modules/c-ctype-tests (Files): Likewise.
31782         * modules/c-stack-tests (Files): Likewise.
31783         * modules/c-strcase-tests (Files): Likewise.
31784         * modules/c-strcasestr-tests (Files): Likewise.
31785         * modules/c-strstr-tests (Files): Likewise.
31786         * modules/canonicalize-lgpl-tests (Files): Likewise.
31787         * modules/canonicalize-tests (Files): Likewise.
31788         * modules/carray-list-tests (Files): Likewise.
31789         * modules/ceilf-tests (Files): Likewise.
31790         * modules/ceill-tests (Files): Likewise.
31791         * modules/chown-tests (Files): Likewise.
31792         * modules/cloexec-tests (Files): Likewise.
31793         * modules/copy-file-tests (Files): Likewise.
31794         * modules/count-one-bits-tests (Files): Likewise.
31795         * modules/dprintf-posix-tests (Files): Likewise.
31796         * modules/dup2-tests (Files): Likewise.
31797         * modules/dup3-tests (Files): Likewise.
31798         * modules/duplocale-tests (Files): Likewise.
31799         * modules/fbufmode-tests (Files): Likewise.
31800         * modules/fchdir-tests (Files): Likewise.
31801         * modules/fcntl-safer-tests (Files): Likewise.
31802         * modules/fcntl-tests (Files): Likewise.
31803         * modules/fdopendir-tests (Files): Likewise.
31804         * modules/fdutimensat-tests (Files): Likewise.
31805         * modules/fflush-tests (Files): Likewise.
31806         * modules/filevercmp-tests (Files): Likewise.
31807         * modules/flock-tests (Files): Likewise.
31808         * modules/floorf-tests (Files): Likewise.
31809         * modules/floorl-tests (Files): Likewise.
31810         * modules/fnmatch-tests (Files): Likewise.
31811         * modules/fopen-safer-tests (Files): Likewise.
31812         * modules/fopen-tests (Files): Likewise.
31813         * modules/fpending-tests (Files): Likewise.
31814         * modules/fprintf-posix-tests (Files): Likewise.
31815         * modules/fpurge-tests (Files): Likewise.
31816         * modules/freadable-tests (Files): Likewise.
31817         * modules/freadahead-tests (Files): Likewise.
31818         * modules/freading-tests (Files): Likewise.
31819         * modules/freadptr-tests (Files): Likewise.
31820         * modules/freadseek-tests (Files): Likewise.
31821         * modules/freopen-tests (Files): Likewise.
31822         * modules/frexp-nolibm-tests (Files): Likewise.
31823         * modules/frexp-tests (Files): Likewise.
31824         * modules/frexpl-nolibm-tests (Files): Likewise.
31825         * modules/frexpl-tests (Files): Likewise.
31826         * modules/fseek-tests (Files): Likewise.
31827         * modules/fseeko-tests (Files): Likewise.
31828         * modules/fstrcmp-tests (Files): Likewise.
31829         * modules/fsync-tests (Files): Likewise.
31830         * modules/ftell-tests (Files): Likewise.
31831         * modules/ftello-tests (Files): Likewise.
31832         * modules/func-tests (Files): Likewise.
31833         * modules/futimens-tests (Files): Likewise.
31834         * modules/fwritable-tests (Files): Likewise.
31835         * modules/fwriting-tests (Files): Likewise.
31836         * modules/getcwd-tests (Files): Likewise.
31837         * modules/getdate-tests (Files): Likewise.
31838         * modules/getdelim-tests (Files): Likewise.
31839         * modules/getdtablesize-tests (Files): Likewise.
31840         * modules/getgroups-tests (Files): Likewise.
31841         * modules/getline-tests (Files): Likewise.
31842         * modules/getndelim2-tests (Files): Likewise.
31843         * modules/glob-tests (Files): Likewise.
31844         * modules/hash-tests (Files): Likewise.
31845         * modules/i-ring-tests (Files): Likewise.
31846         * modules/iconv-tests (Files): Likewise.
31847         * modules/iconv_open-utf-tests (Files): Likewise.
31848         * modules/idpriv-drop-tests (Files): Likewise.
31849         * modules/idpriv-droptemp-tests (Files): Likewise.
31850         * modules/inet_ntop-tests (Files): Likewise.
31851         * modules/inet_pton-tests (Files): Likewise.
31852         * modules/isblank-tests (Files): Likewise.
31853         * modules/isfinite-tests (Files): Likewise.
31854         * modules/isinf-tests (Files): Likewise.
31855         * modules/isnan-tests (Files): Likewise.
31856         * modules/isnand-nolibm-tests (Files): Likewise.
31857         * modules/isnand-tests (Files): Likewise.
31858         * modules/isnanf-nolibm-tests (Files): Likewise.
31859         * modules/isnanf-tests (Files): Likewise.
31860         * modules/isnanl-nolibm-tests (Files): Likewise.
31861         * modules/isnanl-tests (Files): Likewise.
31862         * modules/lchown-tests (Files): Likewise.
31863         * modules/ldexpl-tests (Files): Likewise.
31864         * modules/link-tests (Files): Likewise.
31865         * modules/linkat-tests (Files): Likewise.
31866         * modules/linked-list-tests (Files): Likewise.
31867         * modules/linkedhash-list-tests (Files): Likewise.
31868         * modules/localename-tests (Files): Likewise.
31869         * modules/lseek-tests (Files): Likewise.
31870         * modules/lstat-tests (Files): Likewise.
31871         * modules/mbmemcasecmp-tests (Files): Likewise.
31872         * modules/mbmemcasecoll-tests (Files): Likewise.
31873         * modules/mbrtowc-tests (Files): Likewise.
31874         * modules/mbscasecmp-tests (Files): Likewise.
31875         * modules/mbscasestr-tests (Files): Likewise.
31876         * modules/mbschr-tests (Files): Likewise.
31877         * modules/mbscspn-tests (Files): Likewise.
31878         * modules/mbsinit-tests (Files): Likewise.
31879         * modules/mbsncasecmp-tests (Files): Likewise.
31880         * modules/mbsnrtowcs-tests (Files): Likewise.
31881         * modules/mbspbrk-tests (Files): Likewise.
31882         * modules/mbspcasecmp-tests (Files): Likewise.
31883         * modules/mbsrchr-tests (Files): Likewise.
31884         * modules/mbsrtowcs-tests (Files): Likewise.
31885         * modules/mbsspn-tests (Files): Likewise.
31886         * modules/mbsstr-tests (Files): Likewise.
31887         * modules/memchr-tests (Files): Likewise.
31888         * modules/memchr2-tests (Files): Likewise.
31889         * modules/memcmp-tests (Files): Likewise.
31890         * modules/memmem-tests (Files): Likewise.
31891         * modules/memrchr-tests (Files): Likewise.
31892         * modules/mkdir-tests (Files): Likewise.
31893         * modules/mkfifo-tests (Files): Likewise.
31894         * modules/mkfifoat-tests (Files): Likewise.
31895         * modules/mknod-tests (Files): Likewise.
31896         * modules/nanosleep-tests (Files): Likewise.
31897         * modules/nl_langinfo-tests (Files): Likewise.
31898         * modules/obstack-printf-tests (Files): Likewise.
31899         * modules/open-tests (Files): Likewise.
31900         * modules/openat-tests (Files): Likewise.
31901         * modules/pipe-filter-gi-tests (Files): Likewise.
31902         * modules/pipe-filter-ii-tests (Files): Likewise.
31903         * modules/pipe2-tests (Files): Likewise.
31904         * modules/popen-safer-tests (Files): Likewise.
31905         * modules/popen-tests (Files): Likewise.
31906         * modules/posixtm-tests (Files): Likewise.
31907         * modules/pread-tests (Files): Likewise.
31908         * modules/printf-frexp-tests (Files): Likewise.
31909         * modules/printf-frexpl-tests (Files): Likewise.
31910         * modules/printf-posix-tests (Files): Likewise.
31911         * modules/priv-set-tests (Files): Likewise.
31912         * modules/quotearg-tests (Files): Likewise.
31913         * modules/random_r-tests (Files): Likewise.
31914         * modules/rawmemchr-tests (Files): Likewise.
31915         * modules/rbtree-list-tests (Files): Likewise.
31916         * modules/rbtree-oset-tests (Files): Likewise.
31917         * modules/rbtreehash-list-tests (Files): Likewise.
31918         * modules/readlink-tests (Files): Likewise.
31919         * modules/remove-tests (Files): Likewise.
31920         * modules/rename-tests (Files): Likewise.
31921         * modules/renameat-tests (Files): Likewise.
31922         * modules/rmdir-tests (Files): Likewise.
31923         * modules/round-tests (Files): Likewise.
31924         * modules/roundf-tests (Files): Likewise.
31925         * modules/roundl-tests (Files): Likewise.
31926         * modules/safe-alloc-tests (Files): Likewise.
31927         * modules/setenv-tests (Files): Likewise.
31928         * modules/sigaction-tests (Files): Likewise.
31929         * modules/signbit-tests (Files): Likewise.
31930         * modules/sleep-tests (Files): Likewise.
31931         * modules/snprintf-posix-tests (Files): Likewise.
31932         * modules/snprintf-tests (Files): Likewise.
31933         * modules/sprintf-posix-tests (Files): Likewise.
31934         * modules/stat-tests (Files): Likewise.
31935         * modules/stat-time-tests (Files): Likewise.
31936         * modules/strcasestr-tests (Files): Likewise.
31937         * modules/strchrnul-tests (Files): Likewise.
31938         * modules/strerror-tests (Files): Likewise.
31939         * modules/striconv-tests (Files): Likewise.
31940         * modules/striconveh-tests (Files): Likewise.
31941         * modules/striconveha-tests (Files): Likewise.
31942         * modules/strsignal-tests (Files): Likewise.
31943         * modules/strstr-tests (Files): Likewise.
31944         * modules/strtod-tests (Files): Likewise.
31945         * modules/strverscmp-tests (Files): Likewise.
31946         * modules/symlink-tests (Files): Likewise.
31947         * modules/symlinkat-tests (Files): Likewise.
31948         * modules/trunc-tests (Files): Likewise.
31949         * modules/truncf-tests (Files): Likewise.
31950         * modules/truncl-tests (Files): Likewise.
31951         * modules/uname-tests (Files): Likewise.
31952         * modules/unicase/cased-tests (Files): Likewise.
31953         * modules/unicase/ignorable-tests (Files): Likewise.
31954         * modules/unicase/locale-language-tests (Files): Likewise.
31955         * modules/unicase/tolower-tests (Files): Likewise.
31956         * modules/unicase/totitle-tests (Files): Likewise.
31957         * modules/unicase/toupper-tests (Files): Likewise.
31958         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31959         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31960         * modules/unicase/u8-casefold-tests (Files): Likewise.
31961         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31962         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31963         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31964         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31965         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31966         * modules/unicase/u8-tolower-tests (Files): Likewise.
31967         * modules/unicase/u8-totitle-tests (Files): Likewise.
31968         * modules/unicase/u8-toupper-tests (Files): Likewise.
31969         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31970         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31971         * modules/unicase/u16-casefold-tests (Files): Likewise.
31972         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31973         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31974         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31975         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31976         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31977         * modules/unicase/u16-tolower-tests (Files): Likewise.
31978         * modules/unicase/u16-totitle-tests (Files): Likewise.
31979         * modules/unicase/u16-toupper-tests (Files): Likewise.
31980         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31981         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31982         * modules/unicase/u32-casefold-tests (Files): Likewise.
31983         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31984         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31985         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31986         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31987         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31988         * modules/unicase/u32-tolower-tests (Files): Likewise.
31989         * modules/unicase/u32-totitle-tests (Files): Likewise.
31990         * modules/unicase/u32-toupper-tests (Files): Likewise.
31991         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31992         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31993         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31994         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31995         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31996         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31997         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31998         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31999         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32000         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32001         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32002         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32003         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32004         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32005         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32006         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32007         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32008         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32009         * modules/unictype/block-list-tests (Files): Likewise.
32010         * modules/unictype/block-of-tests (Files): Likewise.
32011         * modules/unictype/block-test-tests (Files): Likewise.
32012         * modules/unictype/category-C-tests (Files): Likewise.
32013         * modules/unictype/category-Cc-tests (Files): Likewise.
32014         * modules/unictype/category-Cf-tests (Files): Likewise.
32015         * modules/unictype/category-Cn-tests (Files): Likewise.
32016         * modules/unictype/category-Co-tests (Files): Likewise.
32017         * modules/unictype/category-Cs-tests (Files): Likewise.
32018         * modules/unictype/category-L-tests (Files): Likewise.
32019         * modules/unictype/category-Ll-tests (Files): Likewise.
32020         * modules/unictype/category-Lm-tests (Files): Likewise.
32021         * modules/unictype/category-Lo-tests (Files): Likewise.
32022         * modules/unictype/category-Lt-tests (Files): Likewise.
32023         * modules/unictype/category-Lu-tests (Files): Likewise.
32024         * modules/unictype/category-M-tests (Files): Likewise.
32025         * modules/unictype/category-Mc-tests (Files): Likewise.
32026         * modules/unictype/category-Me-tests (Files): Likewise.
32027         * modules/unictype/category-Mn-tests (Files): Likewise.
32028         * modules/unictype/category-N-tests (Files): Likewise.
32029         * modules/unictype/category-Nd-tests (Files): Likewise.
32030         * modules/unictype/category-Nl-tests (Files): Likewise.
32031         * modules/unictype/category-No-tests (Files): Likewise.
32032         * modules/unictype/category-P-tests (Files): Likewise.
32033         * modules/unictype/category-Pc-tests (Files): Likewise.
32034         * modules/unictype/category-Pd-tests (Files): Likewise.
32035         * modules/unictype/category-Pe-tests (Files): Likewise.
32036         * modules/unictype/category-Pf-tests (Files): Likewise.
32037         * modules/unictype/category-Pi-tests (Files): Likewise.
32038         * modules/unictype/category-Po-tests (Files): Likewise.
32039         * modules/unictype/category-Ps-tests (Files): Likewise.
32040         * modules/unictype/category-S-tests (Files): Likewise.
32041         * modules/unictype/category-Sc-tests (Files): Likewise.
32042         * modules/unictype/category-Sk-tests (Files): Likewise.
32043         * modules/unictype/category-Sm-tests (Files): Likewise.
32044         * modules/unictype/category-So-tests (Files): Likewise.
32045         * modules/unictype/category-Z-tests (Files): Likewise.
32046         * modules/unictype/category-Zl-tests (Files): Likewise.
32047         * modules/unictype/category-Zp-tests (Files): Likewise.
32048         * modules/unictype/category-Zs-tests (Files): Likewise.
32049         * modules/unictype/category-and-not-tests (Files): Likewise.
32050         * modules/unictype/category-and-tests (Files): Likewise.
32051         * modules/unictype/category-byname-tests (Files): Likewise.
32052         * modules/unictype/category-name-tests (Files): Likewise.
32053         * modules/unictype/category-none-tests (Files): Likewise.
32054         * modules/unictype/category-of-tests (Files): Likewise.
32055         * modules/unictype/category-or-tests (Files): Likewise.
32056         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32057         * modules/unictype/combining-class-tests (Files): Likewise.
32058         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32059         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32060         * modules/unictype/ctype-blank-tests (Files): Likewise.
32061         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32062         * modules/unictype/ctype-digit-tests (Files): Likewise.
32063         * modules/unictype/ctype-graph-tests (Files): Likewise.
32064         * modules/unictype/ctype-lower-tests (Files): Likewise.
32065         * modules/unictype/ctype-print-tests (Files): Likewise.
32066         * modules/unictype/ctype-punct-tests (Files): Likewise.
32067         * modules/unictype/ctype-space-tests (Files): Likewise.
32068         * modules/unictype/ctype-upper-tests (Files): Likewise.
32069         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32070         * modules/unictype/decimal-digit-tests (Files): Likewise.
32071         * modules/unictype/digit-tests (Files): Likewise.
32072         * modules/unictype/mirror-tests (Files): Likewise.
32073         * modules/unictype/numeric-tests (Files): Likewise.
32074         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32075         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32076         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32077         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32078         Likewise.
32079         * modules/unictype/property-bidi-block-separator-tests (Files):
32080         Likewise.
32081         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32082         Likewise.
32083         * modules/unictype/property-bidi-common-separator-tests (Files):
32084         Likewise.
32085         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32086         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32087         Likewise.
32088         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32089         Likewise.
32090         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32091         Likewise.
32092         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32093         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32094         Likewise.
32095         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32096         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32097         Likewise.
32098         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32099         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32100         * modules/unictype/property-bidi-segment-separator-tests (Files):
32101         Likewise.
32102         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32103         * modules/unictype/property-byname-tests (Files): Likewise.
32104         * modules/unictype/property-combining-tests (Files): Likewise.
32105         * modules/unictype/property-composite-tests (Files): Likewise.
32106         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32107         * modules/unictype/property-dash-tests (Files): Likewise.
32108         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32109         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32110         Likewise.
32111         * modules/unictype/property-deprecated-tests (Files): Likewise.
32112         * modules/unictype/property-diacritic-tests (Files): Likewise.
32113         * modules/unictype/property-extender-tests (Files): Likewise.
32114         * modules/unictype/property-format-control-tests (Files): Likewise.
32115         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32116         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32117         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32118         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32119         * modules/unictype/property-hyphen-tests (Files): Likewise.
32120         * modules/unictype/property-id-continue-tests (Files): Likewise.
32121         * modules/unictype/property-id-start-tests (Files): Likewise.
32122         * modules/unictype/property-ideographic-tests (Files): Likewise.
32123         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32124         * modules/unictype/property-ids-trinary-operator-tests (Files):
32125         Likewise.
32126         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32127         * modules/unictype/property-iso-control-tests (Files): Likewise.
32128         * modules/unictype/property-join-control-tests (Files): Likewise.
32129         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32130         * modules/unictype/property-line-separator-tests (Files): Likewise.
32131         * modules/unictype/property-logical-order-exception-tests (Files):
32132         Likewise.
32133         * modules/unictype/property-lowercase-tests (Files): Likewise.
32134         * modules/unictype/property-math-tests (Files): Likewise.
32135         * modules/unictype/property-non-break-tests (Files): Likewise.
32136         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32137         * modules/unictype/property-numeric-tests (Files): Likewise.
32138         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32139         * modules/unictype/property-other-default-ignorable-code-point-tests
32140         (Files): Likewise.
32141         * modules/unictype/property-other-grapheme-extend-tests (Files):
32142         Likewise.
32143         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32144         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32145         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32146         * modules/unictype/property-other-math-tests (Files): Likewise.
32147         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32148         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32149         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32150         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32151         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32152         * modules/unictype/property-private-use-tests (Files): Likewise.
32153         * modules/unictype/property-punctuation-tests (Files): Likewise.
32154         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32155         * modules/unictype/property-radical-tests (Files): Likewise.
32156         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32157         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32158         * modules/unictype/property-space-tests (Files): Likewise.
32159         * modules/unictype/property-terminal-punctuation-tests (Files):
32160         Likewise.
32161         * modules/unictype/property-test-tests (Files): Likewise.
32162         * modules/unictype/property-titlecase-tests (Files): Likewise.
32163         * modules/unictype/property-unassigned-code-value-tests (Files):
32164         Likewise.
32165         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32166         * modules/unictype/property-uppercase-tests (Files): Likewise.
32167         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32168         * modules/unictype/property-white-space-tests (Files): Likewise.
32169         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32170         * modules/unictype/property-xid-start-tests (Files): Likewise.
32171         * modules/unictype/property-zero-width-tests (Files): Likewise.
32172         * modules/unictype/scripts-tests (Files): Likewise.
32173         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32174         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32175         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32176         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32177         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32178         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32179         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32180         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32181         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32182         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32183         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32184         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32185         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32186         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32187         * modules/uninorm/composition-tests (Files): Likewise.
32188         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32189         * modules/uninorm/decomposition-tests (Files): Likewise.
32190         * modules/uninorm/filter-tests (Files): Likewise.
32191         * modules/uninorm/nfc-tests (Files): Likewise.
32192         * modules/uninorm/nfd-tests (Files): Likewise.
32193         * modules/uninorm/nfkc-tests (Files): Likewise.
32194         * modules/uninorm/nfkd-tests (Files): Likewise.
32195         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32196         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32197         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32198         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32199         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32200         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32201         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32202         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32203         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32204         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32205         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32206         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32207         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32208         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32209         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32210         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32211         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32212         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32213         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32214         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32215         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32216         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32217         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32218         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32219         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32220         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32221         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32222         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32223         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32224         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32225         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32226         * modules/uniwidth/u8-width-tests (Files): Likewise.
32227         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32228         * modules/uniwidth/u16-width-tests (Files): Likewise.
32229         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32230         * modules/uniwidth/u32-width-tests (Files): Likewise.
32231         * modules/uniwidth/width-tests (Files): Likewise.
32232         * modules/unlink-tests (Files): Likewise.
32233         * modules/unsetenv-tests (Files): Likewise.
32234         * modules/usleep-tests (Files): Likewise.
32235         * modules/utimens-tests (Files): Likewise.
32236         * modules/utimensat-tests (Files): Likewise.
32237         * modules/vasnprintf-posix-tests (Files): Likewise.
32238         * modules/vasnprintf-tests (Files): Likewise.
32239         * modules/vasprintf-posix-tests (Files): Likewise.
32240         * modules/vasprintf-tests (Files): Likewise.
32241         * modules/vdprintf-posix-tests (Files): Likewise.
32242         * modules/vfprintf-posix-tests (Files): Likewise.
32243         * modules/vprintf-posix-tests (Files): Likewise.
32244         * modules/vsnprintf-posix-tests (Files): Likewise.
32245         * modules/vsnprintf-tests (Files): Likewise.
32246         * modules/vsprintf-posix-tests (Files): Likewise.
32247         * modules/wcrtomb-tests (Files): Likewise.
32248         * modules/wcsnrtombs-tests (Files): Likewise.
32249         * modules/wcsrtombs-tests (Files): Likewise.
32250         * modules/wctype-tests (Files): Likewise.
32251         * modules/wcwidth-tests (Files): Likewise.
32252         * modules/xmemdup0-tests (Files): Likewise.
32253         * modules/xprintf-posix-tests (Files): Likewise.
32254         * modules/xvasprintf-tests (Files): Likewise.
32255
32256 2009-12-24  Eric Blake  <ebb9@byu.net>
32257
32258         test-nanosleep: fix typo
32259         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32260         patch.
32261         Reported by Bruno Haible.
32262
32263 2009-12-24  Bruno Haible  <bruno@clisp.org>
32264
32265         Reduce namespace pollution on glibc systems.
32266         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32267         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32268         systems.
32269         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32270         <getopt.h> on glibc systems.
32271         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32272         systems.
32273         * lib/fcntl.c: Include <unistd.h> here instead.
32274
32275 2009-12-24  Bruno Haible  <bruno@clisp.org>
32276
32277         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32278
32279 2009-12-24  Eric Blake  <ebb9@byu.net>
32280
32281         tests: add signature checks
32282         * tests/signature.h (SIGNATURE_CHECK): New file.
32283         * modules/atexit-tests (Files): Use it.
32284         * modules/btowc-tests (Files): Likewise.
32285         * modules/canonicalize-lgpl-tests (Files): Likewise.
32286         * modules/ceilf-tests (Files): Likewise.
32287         * modules/ceill-tests (Files): Likewise.
32288         * modules/chown-tests (Files): Likewise.
32289         * modules/dprintf-posix-tests (Files): Likewise.
32290         * modules/dup2-tests (Files): Likewise.
32291         * modules/dup3-tests (Files): Likewise.
32292         * modules/duplocale-tests (Files): Likewise.
32293         * modules/fchdir-tests (Files): Likewise.
32294         * modules/fcntl-tests (Files): Likewise.
32295         * modules/fdopendir-tests (Files): Likewise.
32296         * modules/fflush-tests (Files): Likewise.
32297         * modules/flock-tests (Files): Likewise.
32298         * modules/floorf-tests (Files): Likewise.
32299         * modules/floorl-tests (Files): Likewise.
32300         * modules/fnmatch-tests (Files): Likewise.
32301         * modules/fopen-tests (Files): Likewise.
32302         * modules/fprintf-posix-tests (Files): Likewise.
32303         * modules/freopen-tests (Files): Likewise.
32304         * modules/frexp-nolibm-tests (Files): Likewise.
32305         * modules/frexp-tests (Files): Likewise.
32306         * modules/frexpl-nolibm-tests (Files): Likewise.
32307         * modules/frexpl-tests (Files): Likewise.
32308         * modules/fseek-tests (Files): Likewise.
32309         * modules/fseeko-tests (Files): Likewise.
32310         * modules/fsync-tests (Files): Likewise.
32311         * modules/ftell-tests (Files): Likewise.
32312         * modules/ftello-tests (Files): Likewise.
32313         * modules/futimens-tests (Files): Likewise.
32314         * modules/getaddrinfo-tests (Files): Likewise.
32315         * modules/getcwd-tests (Files): Likewise.
32316         * modules/getdelim-tests (Files): Likewise.
32317         * modules/getdtablesize-tests (Files): Likewise.
32318         * modules/getgroups-tests (Files): Likewise.
32319         * modules/gethostname-tests (Files): Likewise.
32320         * modules/getline-tests (Files): Likewise.
32321         * modules/getopt-posix-tests (Files): Likewise.
32322         * modules/gettimeofday-tests (Files): Likewise.
32323         * modules/glob-tests (Files): Likewise.
32324         * modules/iconv-tests (Files): Likewise.
32325         * modules/inet_ntop-tests (Files): Likewise.
32326         * modules/inet_pton-tests (Files): Likewise.
32327         * modules/isblank-tests (Files): Likewise.
32328         * modules/lchown-tests (Files): Likewise.
32329         * modules/ldexpl-tests (Files): Likewise.
32330         * modules/link-tests (Files): Likewise.
32331         * modules/linkat-tests (Files): Likewise.
32332         * modules/lseek-tests (Files): Likewise.
32333         * modules/lstat-tests (Files): Likewise.
32334         * modules/mbrtowc-tests (Files): Likewise.
32335         * modules/mbsinit-tests (Files): Likewise.
32336         * modules/mbsnrtowcs-tests (Files): Likewise.
32337         * modules/mbsrtowcs-tests (Files): Likewise.
32338         * modules/memchr-tests (Files): Likewise.
32339         * modules/memcmp-tests (Files): Likewise.
32340         * modules/memmem-tests (Files): Likewise.
32341         * modules/memrchr-tests (Files): Likewise.
32342         * modules/mkdir-tests (Files): Likewise.
32343         * modules/mkfifo-tests (Files): Likewise.
32344         * modules/mkfifoat-tests (Files): Likewise.
32345         * modules/mknod-tests (Files): Likewise.
32346         * modules/nanosleep-tests (Files): Likewise.
32347         * modules/nl_langinfo-tests (Files): Likewise.
32348         * modules/obstack-printf-tests (Files): Likewise.
32349         * modules/open-tests (Files): Likewise.
32350         * modules/openat-tests (Files): Likewise.
32351         * modules/perror-tests (Files): Likewise.
32352         * modules/pipe2-tests (Files): Likewise.
32353         * modules/poll-tests (Files): Likewise.
32354         * modules/popen-tests (Files): Likewise.
32355         * modules/posix_spawn-tests (Files): Likewise.
32356         * modules/posix_spawnp-tests (Files): Likewise.
32357         * modules/pread-tests (Files): Likewise.
32358         * modules/printf-posix-tests (Files): Likewise.
32359         * modules/pty-tests (Files): Likewise.
32360         * modules/random_r-tests (Files): Likewise.
32361         * modules/rawmemchr-tests (Files): Likewise.
32362         * modules/readlink-tests (Files): Likewise.
32363         * modules/remove-tests (Files): Likewise.
32364         * modules/rename-tests (Files): Likewise.
32365         * modules/renameat-tests (Files): Likewise.
32366         * modules/rmdir-tests (Files): Likewise.
32367         * modules/round-tests (Files): Likewise.
32368         * modules/roundf-tests (Files): Likewise.
32369         * modules/roundl-tests (Files): Likewise.
32370         * modules/select-tests (Files): Likewise.
32371         * modules/setenv-tests (Files): Likewise.
32372         * modules/sigaction-tests (Files): Likewise.
32373         * modules/sleep-tests (Files): Likewise.
32374         * modules/snprintf-posix-tests (Files): Likewise.
32375         * modules/snprintf-tests (Files): Likewise.
32376         * modules/sprintf-posix-tests (Files): Likewise.
32377         * modules/stat-tests (Files): Likewise.
32378         * modules/strcasestr-tests (Files): Likewise.
32379         * modules/strchrnul-tests (Files): Likewise.
32380         * modules/strerror-tests (Files): Likewise.
32381         * modules/strsignal-tests (Files): Likewise.
32382         * modules/strstr-tests (Files): Likewise.
32383         * modules/strtod-tests (Files): Likewise.
32384         * modules/strverscmp-tests (Files): Likewise.
32385         * modules/symlink-tests (Files): Likewise.
32386         * modules/symlinkat-tests (Files): Likewise.
32387         * modules/times-tests (Files): Likewise.
32388         * modules/trunc-tests (Files): Likewise.
32389         * modules/truncf-tests (Files): Likewise.
32390         * modules/truncl-tests (Files): Likewise.
32391         * modules/tsearch-tests (Files): Likewise.
32392         * modules/uname-tests (Files): Likewise.
32393         * modules/unlink-tests (Files): Likewise.
32394         * modules/unsetenv-tests (Files): Likewise.
32395         * modules/usleep-tests (Files): Likewise.
32396         * modules/utimensat-tests (Files): Likewise.
32397         * modules/vasprintf-tests (Files): Likewise.
32398         * modules/vdprintf-posix-tests (Files): Likewise.
32399         * modules/vfprintf-posix-tests (Files): Likewise.
32400         * modules/vprintf-posix-tests (Files): Likewise.
32401         * modules/vsnprintf-posix-tests (Files): Likewise.
32402         * modules/vsnprintf-tests (Files): Likewise.
32403         * modules/vsprintf-posix-tests (Files): Likewise.
32404         * modules/wcrtomb-tests (Files): Likewise.
32405         * modules/wcsnrtombs-tests (Files): Likewise.
32406         * modules/wcsrtombs-tests (Files): Likewise.
32407         * modules/wcwidth-tests (Files): Likewise.
32408         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32409         * tests/test-isinf.c (isinf): Likewise.
32410         * tests/test-isnan.c (isnan): Likewise.
32411         * tests/test-signbit.c (signbit): Likewise.
32412         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32413         declaration, either as macro or with correct signature.
32414         (select): Ensure function under test is declared with correct
32415         signature in correct header.
32416         * tests/test-atexit.c (atexit): Likewise.
32417         * tests/test-btowc.c (btowc): Likewise.
32418         * tests/test-canonicalize-lgpl.c (realpath)
32419         (canonicalize_file_name): Likewise.
32420         * tests/test-ceilf1.c (ceilf): Likewise.
32421         * tests/test-ceill.c (ceill): Likewise.
32422         * tests/test-chown.c (chown): Likewise.
32423         * tests/test-dprintf-posix.c (dprintf): Likewise.
32424         * tests/test-dup2.c (dup2): Likewise.
32425         * tests/test-dup3.c (dup3): Likewise.
32426         * tests/test-duplocale.c (duplocale): Likewise.
32427         * tests/test-fchdir.c (fchdir): Likewise.
32428         * tests/test-fchownat.c (fchownat): Likewise.
32429         * tests/test-fcntl.c (fcntl): Likewise.
32430         * tests/test-fdopendir.c (fdopendir): Likewise.
32431         * tests/test-fflush.c (fflush): Likewise.
32432         * tests/test-flock.c (flock): Likewise.
32433         * tests/test-floorf1.c (floorf): Likewise.
32434         * tests/test-floorl.c (floorl): Likewise.
32435         * tests/test-fnmatch.c (fnmatch): Likewise.
32436         * tests/test-fopen.c (fopen): Likewise.
32437         * tests/test-fprintf-posix.c (fprintf): Likewise.
32438         * tests/test-freopen.c (freopen): Likewise.
32439         * tests/test-frexp.c (frexp): Likewise.
32440         * tests/test-frexpl.c (frexpl): Likewise.
32441         * tests/test-fseek.c (fseek): Likewise.
32442         * tests/test-fseeko.c (fseeko): Likewise.
32443         * tests/test-fstatat.c (fstatat): Likewise.
32444         * tests/test-fsync.c (fsync): Likewise.
32445         * tests/test-ftell.c (ftell): Likewise.
32446         * tests/test-ftello.c (ftello): Likewise.
32447         * tests/test-futimens.c (futimens): Likewise.
32448         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32449         (gai_strerror): Likewise.
32450         * tests/test-getcwd.c (getcwd): Likewise.
32451         * tests/test-getdelim.c (getdelim): Likewise.
32452         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32453         * tests/test-getgroups.c (getgroups): Likewise.
32454         * tests/test-gethostname.c (gethostname): Likewise.
32455         * tests/test-getline.c (getline): Likewise.
32456         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32457         Likewise.
32458         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32459         * tests/test-glob.c (glob, globfree): Likewise.
32460         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32461         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32462         * tests/test-inet_pton.c (inet_pton): Likewise.
32463         * tests/test-isblank.c (isblank): Likewise.
32464         * tests/test-lchown.c (lchown): Likewise.
32465         * tests/test-ldexpl.c (ldexpl): Likewise.
32466         * tests/test-link.c (link): Likewise.
32467         * tests/test-linkat.c (linkat): Likewise.
32468         * tests/test-lseek.c (lseek): Likewise.
32469         * tests/test-lstat.c (lstat): Likewise.
32470         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32471         * tests/test-mbsinit.c (mbsinit): Likewise.
32472         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32473         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32474         * tests/test-memchr.c (memchr): Likewise.
32475         * tests/test-memcmp.c (memcmp): Likewise.
32476         * tests/test-memmem.c (memmem): Likewise.
32477         * tests/test-memrchr.c (memrchr): Likewise.
32478         * tests/test-mkdir.c (mkdir): Likewise.
32479         * tests/test-mkdirat.c (mkdirat): Likewise.
32480         * tests/test-mkfifo.c (mkfifo): Likewise.
32481         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32482         * tests/test-mknod.c (mknod): Likewise.
32483         * tests/test-nanosleep.c (nanosleep): Likewise.
32484         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32485         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32486         Likewise.
32487         * tests/test-open.c (open): Likewise.
32488         * tests/test-openat.c (openat): Likewise.
32489         * tests/test-perror.c (perror): Likewise.
32490         * tests/test-pipe2.c (pipe2): Likewise.
32491         * tests/test-poll.c (poll): Likewise.
32492         * tests/test-popen.c (popen, pclose): Likewise.
32493         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32494         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32495         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32496         (posix_spawn_file_actions_destroy)
32497         (posix_spawn_file_actions_addclose)
32498         (posix_spawn_file_actions_addopen)
32499         (posix_spawn_file_actions_adddup2): Likewise.
32500         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32501         * tests/test-pread.c (pread): Likewise.
32502         * tests/test-printf-posix.c (printf): Likewise.
32503         * tests/test-pty.c (openpty, forkpty): Likewise.
32504         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32505         (random_r): Likewise.
32506         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32507         * tests/test-readlink.c (readlink): Likewise.
32508         * tests/test-remove.c (remove): Likewise.
32509         * tests/test-rename.c (rename): Likewise.
32510         * tests/test-renameat.c (renameat): Likewise.
32511         * tests/test-rmdir.c (rmdir): Likewise.
32512         * tests/test-round1.c (round): Likewise.
32513         * tests/test-roundf1.c (roundf): Likewise.
32514         * tests/test-roundl.c (roundl): Likewise.
32515         * tests/test-setenv.c (setenv): Likewise.
32516         * tests/test-sigaction.c (sigaction): Likewise.
32517         * tests/test-sleep.c (sleep): Likewise.
32518         * tests/test-snprintf.c (snprintf): Likewise.
32519         * tests/test-sprintf-posix.c (sprintf): Likewise.
32520         * tests/test-stat.c (stat): Likewise.
32521         * tests/test-stpncpy.c (stpncpy): Likewise.
32522         * tests/test-strcasestr.c (strcasestr): Likewise.
32523         * tests/test-strchrnul.c (strchrnul): Likewise.
32524         * tests/test-strerror.c (strerror): Likewise.
32525         * tests/test-strsignal.c (strsignal): Likewise.
32526         * tests/test-strstr.c (strstr): Likewise.
32527         * tests/test-strtod.c (strtod): Likewise.
32528         * tests/test-strverscmp.c (strverscmp): Likewise.
32529         * tests/test-symlink.c (symlink): Likewise.
32530         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32531         * tests/test-times.c (times): Likewise.
32532         * tests/test-trunc1.c (trunc): Likewise.
32533         * tests/test-truncf1.c (truncf): Likewise.
32534         * tests/test-truncl.c (truncl): Likewise.
32535         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32536         Likewise.
32537         * tests/test-uname.c (uname): Likewise.
32538         * tests/test-unlink.c (unlink): Likewise.
32539         * tests/test-unlinkat.c (unlinkat): Likewise.
32540         * tests/test-unsetenv.c (unsetenv): Likewise.
32541         * tests/test-usleep.c (usleep): Likewise.
32542         * tests/test-utimensat.c (utimensat): Likewise.
32543         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32544         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32545         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32546         * tests/test-vprintf-posix.c (vprintf): Likewise.
32547         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32548         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32549         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32550         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32551         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32552         * tests/test-wcwidth.c (wcwidth): Likewise.
32553
32554         build: pull in conditional headers during GNULIB_POSIXCHECK
32555         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32556         definitions from any conditionally-included headers.
32557         * lib/stdlib.in.h (includes): Likewise.
32558         * lib/unistd.in.h (includes): Likewise.
32559
32560 2009-12-24  Bruno Haible  <bruno@clisp.org>
32561
32562         * tests/test-argv-iter.c: Include header file being tested immediately
32563         after config.h.
32564         * tests/test-base64.c: Likewise.
32565         * tests/test-flock.c: Likewise.
32566         * tests/test-fsync.c: Likewise.
32567         * tests/test-getdate.c: Likewise.
32568         * tests/test-getndelim2.c: Likewise.
32569         * tests/test-isfinite.c: Likewise.
32570         * tests/test-isinf.c: Likewise.
32571         * tests/test-strerror.c: Likewise.
32572         * tests/test-strsignal.c: Likewise.
32573
32574 2009-12-23  Eric Blake  <ebb9@byu.net>
32575
32576         unistd: work around cygwin bug
32577         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32578         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32579         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32580
32581 2009-12-23  Bruno Haible  <bruno@clisp.org>
32582
32583         localename: More tests.
32584         * tests/test-localename.c (SIZEOF): New macro.
32585         (categories): New variable.
32586         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32587         test_locale_name_default): Add test w.r.t. thread locale.
32588         (test_locale_name_thread): New function.
32589         (main): Invoke it.
32590
32591         localename: Make aware of thread locale.
32592         * lib/localename.h (gl_locale_name_thread): New declaration.
32593         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32594         behaviour with respect to thread locale.
32595         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32596         <langinfo.h>, glthread/lock.h.
32597         (SIZE_BITS): New macro.
32598         (string_hash): New function.
32599         (struct hash_node): New type.
32600         (HASH_TABLE_SIZE): New macro.
32601         (struniq_hash_table, struniq_lock): New variables.
32602         (struniq): New function.
32603         (gl_locale_name_thread): New function.
32604         (gl_locale_name): Invoke it.
32605         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32606         * modules/localename (Depends-on): Add lock.
32607         Reported by Mike Gran <spk121@yahoo.com>.
32608
32609 2009-12-23  Eric Blake  <ebb9@byu.net>
32610
32611         va-args: new module
32612         * modules/va-args: New file.
32613         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32614         * MODULES.html.sh (Core language properties): Mention it.
32615
32616         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32617         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32618         named alias for __attribute__((__unused__)).
32619         * lib/chown.c: Update client.
32620         * lib/fchmodat.c: Likewise.
32621         * lib/fts.c: Likewise.
32622         * lib/getdate.y: Likewise.
32623         * lib/getgroups.c: Likewise.
32624         * lib/getopt.c: Likewise.
32625         * lib/getugroups.c: Likewise.
32626         * lib/mkdir.c: Likewise.
32627         * lib/mkfifo.c: Likewise.
32628         * lib/mkfifoat.c: Likewise.
32629         * lib/mknod.c: Likewise.
32630         * lib/mknodat.c: Likewise.
32631         * lib/readlink.c: Likewise.
32632         * lib/se-context.in.h: Likewise.
32633         * lib/se-selinux.in.h: Likewise.
32634         * lib/sockets.c: Likewise.
32635         * lib/symlink.c: Likewise.
32636         * lib/symlinkat.c: Likewise.
32637         * lib/unicodeio.c: Likewise.
32638         * lib/unistr.h: Likewise.
32639         * tests/test-areadlink.c: Likewise.
32640         * tests/test-areadlinkat.c: Likewise.
32641         * tests/test-filenamecat.c: Likewise.
32642         * tests/test-fseeko.c: Likewise.
32643         * tests/test-ftello.c: Likewise.
32644         * tests/test-getdate.c: Likewise.
32645         * tests/test-getgroups.c: Likewise.
32646         * tests/test-gethostname.c: Likewise.
32647         * tests/test-quotearg.c: Likewise.
32648         * tests/test-version-etc.c: Likewise.
32649         * tests/test-xalloc-die.c: Likewise.
32650         * tests/test-xfprintf-posix.c: Likewise.
32651         * tests/test-xprintf-posix.c: Likewise.
32652         * tests/test-xvasprintf.c: Likewise.
32653
32654         tests: avoid compiler warnings
32655         * tests/test-fcntl.c (main): Delete unused parameters.
32656         * tests/test-freopen-safer.c (main): Likewise.
32657         * tests/test-xalloc-die.c (main): Mark unused parameters.
32658         * tests/test-fseeko.c (main): Likewise.
32659         * tests/test-ftello.c (main): Likewise.
32660         * tests/test-nanosleep.c (main): Avoid declaration warning.
32661         * tests/test-sleep.c (main): Likewise.
32662         * tests/test-unsetenv.c (main): Silence warning about string
32663         literal.
32664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32665
32666 2009-12-23  Bruno Haible  <bruno@clisp.org>
32667
32668         * tests/test-localename.c (test_locale_name): New function, extracted
32669         from main. Also test mixed situations.
32670         (test_locale_name_posix, test_locale_name_environ,
32671         test_locale_name_default): New functions.
32672         (main): Invoke them all.
32673         * modules/localename-tests (configure.ac): Test for newlocale.
32674
32675 2009-12-23  Bruno Haible  <bruno@clisp.org>
32676
32677         unistd: Ensure getcwd gets declared before being overridden.
32678         * lib/unistd.in.h: Conditionally include <io.h>.
32679
32680 2009-12-22  Bruno Haible  <bruno@clisp.org>
32681
32682         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32683         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32684         (gl_WCHAR_H): Invoke it.
32685         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32686         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32687         Reported by Karl Berry <karl@freefriends.org>.
32688
32689 2009-12-22  Eric Blake  <ebb9@byu.net>
32690
32691         math, unistd: avoid redundant includes
32692         * lib/math.in.h (isnan): No need to re-include <math.h>.
32693         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32694
32695         getsubopt: work around cygwin bug
32696         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32697         avoid conflicting with system getsubopt.
32698         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32699         bug.
32700
32701         getopt: synchronize from glibc
32702         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32703         parameter order.  Adjust all callers.
32704         (_getopt_internal_r, main): Adjust quoting in error messages.
32705         Drop considerations for outdated POSIX 1003.2 error message.
32706         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32707         callers.
32708         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32709
32710         test-getopt: test stderr behavior
32711         * modules/getopt-posix-tests (Depends-on): Add dup2.
32712         * tests/test-getopt.c (ASSERT): Avoid stderr.
32713         (main): Move stderr to a temporary file.
32714         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32715         Instead, add parameter to inform caller if output occurred.
32716         (test_getopt): Adjust all existing tests to expect silence, and
32717         add new tests of leading ":".
32718         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32719         glibc shortcomings with leading "-:" or "+:" in optstring.
32720         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32721         Likewise.
32722         * doc/posix-functions/getopt.texi (getopt): Likewise.
32723
32724         test-getopt: enhance test
32725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32726         supports optind=0.
32727         * tests/test-getopt.c (OPTIND_MIN): Move...
32728         * tests/test-getopt.h (OPTIND_MIN): ...here.
32729         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32730         Require that optind=0 works, since modern BSD supports it in
32731         addition to optreset, and since coreutils expects it.
32732         (test_getopt_long_only): New test.
32733         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32734         glibc shortcomings with 'W;', and enforcement of optind=0.
32735         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32736         Likewise.
32737
32738 2009-12-21  Bruno Haible  <bruno@clisp.org>
32739
32740         localename: Improvements for MacOS X and Cygwin.
32741         * lib/localename.h (gl_locale_name_environ): New declaration.
32742         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32743         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32744         (gl_locale_name_posix): Invoke it.
32745         (gl_locale_name_default): Add comments. Use Windows native API also on
32746         Cygwin.
32747
32748 2009-12-21  Bruno Haible  <bruno@clisp.org>
32749
32750         Update list of Win32 locale ids.
32751         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32752         (LANG_SAMI): Renamed from LANG_SAAMI.
32753         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32754         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32755         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32756         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32757         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32758         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32759         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32760         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32761         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32762         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32763         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32764         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32765         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32766         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32767         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32768         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32769         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32770         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32771         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32772         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32773         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32774         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32775         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32776         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32777         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32778         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32779         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32780         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32781         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32782         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32783         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32784         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32785         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32786         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32787         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32788         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32789         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32790         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32791         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32792         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32793         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32794         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32795         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32796         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32797         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32798         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32799         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32800         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32801         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32802         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32803         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32804         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32805         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32806         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32807         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32808         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32809         Add more languages and countries for Sami, Sorbian. Add more countries
32810         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32811         for Pashto. Change country for Syriac, Tswana.
32812
32813 2009-12-21  Eric Blake  <ebb9@byu.net>
32814
32815         test-utimens: avoid spurious failure
32816         * tests/test-chown.h (nap): Factor...
32817         * tests/nap.h: ...into new file.
32818         * tests/test-lchown.h (nap): Avoid duplication.
32819         * tests/test-utimens-common.h (nap): Use shared implementation,
32820         necessary on file systems with 1-second resolution.
32821         * modules/chown-tests (Files): Include new file.
32822         * modules/fdutimensat-tests (Files): Likewise.
32823         * modules/futimens-tests (Files): Likewise.
32824         * modules/lchown-tests (Files): Likewise.
32825         * modules/openat-tests (Files): Likewise.
32826         * modules/utimens-tests (Files): Likewise.
32827         * modules/utimensat-tests (Files): Likewise.
32828
32829 2009-12-19  Eric Blake  <ebb9@byu.net>
32830
32831         futimens, utimensat: work around Linux bug
32832         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32833         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32834         * lib/utimensat.c (rpl_utimensat): Work around it.
32835         * lib/futimens.c (rpl_futimens): Adjust comment.
32836
32837         utimens: work around Linux ctime bug
32838         * lib/utimens.c (detect_ctime_bug): New helper function.
32839         (update_timespec): Differentiate between workaround needed for
32840         this bug vs. what is needed for systems that lack utimensat.
32841         (fdutimens, lutimens): Work around bug.
32842
32843         utimens: check for ctime update
32844         * tests/test-utimens-common.h (check_ctime): Define.
32845         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32846         * tests/test-futimens.h (test_futimens): Likewise.
32847         * tests/test-lutimens.h (test_lutimens): Likewise.
32848         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32849         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32850
32851 2009-12-19  Bruno Haible  <bruno@clisp.org>
32852
32853         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32854         * tests/test-dprintf-posix2.sh: New file.
32855         * tests/test-dprintf-posix2.c: New file.
32856         * modules/dprintf-posix-tests (Files): Add them.
32857         (configure.ac): Check for getrlimit and setrlimit.
32858         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32859
32860 2009-12-19  Bruno Haible  <bruno@clisp.org>
32861
32862         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32863         * tests/test-fprintf-posix3.sh: New file.
32864         * tests/test-fprintf-posix3.c: New file.
32865         * modules/fprintf-posix-tests (Files): Add them.
32866         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32867
32868 2009-12-19  Eric Blake  <ebb9@byu.net>
32869
32870         dirfd: fix prototype
32871         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32872         * lib/dirfd.c (dirfd): Likewise.
32873
32874         canonicalize: reduce memory usage
32875         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32876         allocation to size.
32877         Reported by Solar Designer <solar@openwall.com>.
32878
32879 2009-12-19  Bruno Haible  <bruno@clisp.org>
32880
32881         New module attribute 'Applicability'.
32882         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32883         * gnulib-tool: New option --extract-applicability.
32884         (func_usage): Document it.
32885         (sed_extract_prog): Recognize it.
32886         (func_get_applicability): New function.
32887         (func_import): Generalize handling of 'link-warning' module.
32888         * modules/link-warning (Applicability): New section.
32889         * modules/arg-nonnull (Applicability): New section.
32890         Repoted by Simon Josefsson <simon@josefsson.org>.
32891
32892 2009-12-19  Bruno Haible  <bruno@clisp.org>
32893
32894         fflush: tweak
32895         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32896         * lib/fseeko.c (rpl_fseeko): Likewise.
32897
32898 2009-12-16  JosĂ© E. Marchesi  <jemarch@gnu.org>  (tiny change)
32899
32900         * lib/gl_list.h: Fix typo in comment.
32901
32902 2009-12-16  Eric Blake  <ebb9@byu.net>
32903
32904         fcntl: use to simplify other modules
32905         * modules/cloexec (Depends-on): Add fcntl.
32906         * modules/fchdir (Depends-on): Likewise.
32907         * modules/fd-safer-flag (Depends-on): Likewise.
32908         * modules/unistd-safer (Depends-on): Likewise.
32909         * modules/dup3 (configure.ac): Set module indicator.
32910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32911         missing.
32912         * lib/fchdir.c (_gl_register_dup): Fix comment.
32913         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32914         * lib/dup-safer.c (dup_safer): Likewise.
32915         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32916         * lib/dup3.c (dup3): Likewise.
32917         * tests/test-fchdir.c (main): Enhance test.
32918         Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ă­k.
32919
32920         fcntl: port portions of fcntl to mingw
32921         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32922         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32923         replacement for mingw.
32924         * modules/fcntl (Description): Update.
32925         (Depends-on): Add dup2.
32926         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32927         * modules/fcntl-h (Makefile.am): Substitute it.
32928         * lib/fcntl.in.h (fcntl): Update declaration.
32929         (F_DUPFD, F_GETFD): New macros, when needed.
32930         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32931         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32932         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32933         we now guarantee.
32934
32935         fcntl: work around cygwin bug in F_DUPFD
32936         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32937         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32938         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32939         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32940         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32941
32942         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32943         * modules/fcntl (Files): List new files.
32944         (configure.ac): Run a test.
32945         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32946         * lib/fcntl.c (rpl_fcntl): Likewise.
32947         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32948         (gl_FCNTL_H): Always replace fcntl.h.
32949         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32950         * lib/fcntl.in.h (fcntl): Declare replacement.
32951         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32952         needed, plus a witness.
32953         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32954         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32955         * tests/test-fcntl.c: New file.
32956         * modules/fcntl-tests: Likewise.
32957
32958         binary-io: avoid potential compilation warning
32959         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32960         directives.
32961
32962         fflush: avoid compilation error on NetBSD
32963         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32964         between off_t and fpos_t, since the latter is sometimes a struct.
32965         * lib/fseeko.c (rpl_fseeko): Likewise.
32966         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32967
32968 2009-12-15  Eric Blake  <ebb9@byu.net>
32969
32970         fcntl-h, stdio, sys_ioctl: fix declarations
32971         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32972         function must not take arguments.
32973         * lib/sys_ioctl.in.h (ioctl): Likewise.
32974         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32975         (open): Add a link warning.
32976
32977 2009-12-15  Jim Meyering  <meyering@redhat.com>
32978
32979         areadlink, areadlink-with-size: relax license to LGPLv2+
32980         * modules/areadlink (License): Relax to LGPLv2+.
32981         * modules/areadlink-with-size (License): Likewise.
32982
32983 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32984             Bruno Haible  <bruno@clisp.org>
32985
32986         *printf: Fix memory leak.
32987         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32988         * lib/vfprintf.c (vfprintf): Likewise.
32989         * lib/dprintf.c (dprintf): Likewise.
32990         * lib/vdprintf.c (vdprintf): Likewise.
32991
32992 2009-12-14  Eric Blake  <ebb9@byu.net>
32993
32994         accept4: adjust module dependencies
32995         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32996
32997         utimens: one more try at avoiding compiler warning
32998         * lib/utimens.c (lutimens): Lower scope of result.
32999
33000 2009-12-13  Bruno Haible  <bruno@clisp.org>
33001
33002         Move the malloc checking from module 'list' to new module 'xlist'.
33003         * modules/xlist: New file.
33004         * lib/gl_xlist.h: New file.
33005         * lib/gl_xlist.c: New file.
33006         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33007         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33008         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33009         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33010         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33011         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33012         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33013         gl_sortedlist_nx_add): New declarations.
33014         (struct gl_list_implementation): Rename and change methods accordingly.
33015         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33016         (gl_list_nx_create): Renamed from gl_list_create.
33017         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33018         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33019         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33020         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33021         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33022         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33023         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33024         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33025         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33026         gl_list_create_empty.
33027         (gl_list_nx_create): Renamed from gl_list_create.
33028         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33029         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33030         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33031         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33032         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33033         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33034         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33035         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33036         * lib/gl_array_list.c: Don't include xalloc.h.
33037         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33038         NULL upon out-of-memory.
33039         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33040         out-of-memory.
33041         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33042         Change return type to 'int'.
33043         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33044         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33045         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33046         upon out-of-memory.
33047         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33048         upon out-of-memory.
33049         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33050         upon out-of-memory.
33051         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33052         upon out-of-memory.
33053         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33054         out-of-memory.
33055         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33056         Update.
33057         (gl_array_list_implementation): Update.
33058         * lib/gl_carray_list.c: Don't include xalloc.h.
33059         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33060         Return NULL upon out-of-memory.
33061         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33062         out-of-memory.
33063         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33064         Change return type to 'int'.
33065         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33066         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33067         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33068         upon out-of-memory.
33069         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33070         upon out-of-memory.
33071         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33072         out-of-memory.
33073         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33074         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33075         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33076         Update.
33077         (gl_carray_list_implementation): Update.
33078         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33079         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33080         gl_linked_create_empty. Return NULL upon out-of-memory.
33081         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33082         out-of-memory.
33083         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33084         Change return type to 'int'. Return -1 upon out-of-memory.
33085         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33086         out-of-memory.
33087         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33088         upon out-of-memory.
33089         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33090         upon out-of-memory.
33091         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33092         NULL upon out-of-memory.
33093         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33094         upon out-of-memory.
33095         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33096         out-of-memory.
33097         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33098         Update.
33099         * lib/gl_linked_list.c: Don't include xalloc.h.
33100         (gl_linked_list_implementation): Update.
33101         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33102         (add_to_bucket): Change return type to 'int'.
33103         (gl_linkedhash_list_implementation): Update.
33104         * lib/gl_anytree_list1.h (free_subtree): New function.
33105         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33106         gl_tree_create_empty. Return NULL upon out-of-memory.
33107         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33108         Change return type to 'int'. Return -1 upon out-of-memory.
33109         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33110         out-of-memory.
33111         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33112         (gl_tree_remove_node): New function, moved here from
33113         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33114         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33115         Update.
33116         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33117         malloc, not xmalloc. Return NULL upon out-of-memory.
33118         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33119         out-of-memory.
33120         (gl_tree_remove_node_from_tree): New function, extracted from
33121         gl_tree_remove_node.
33122         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33123         upon out-of-memory.
33124         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33125         out-of-memory.
33126         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33127         upon out-of-memory.
33128         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33129         upon out-of-memory.
33130         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33131         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33132         not xmalloc. Return NULL upon out-of-memory.
33133         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33134         out-of-memory.
33135         (gl_tree_remove_node_from_tree): New function, extracted from
33136         gl_tree_remove_node.
33137         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33138         upon out-of-memory.
33139         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33140         out-of-memory.
33141         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33142         upon out-of-memory.
33143         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33144         upon out-of-memory.
33145         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33146         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33147         gl_anytree_list1.h before gl_anyavltree_list2.h.
33148         (gl_avltree_list_implementation): Update.
33149         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33150         gl_anytree_list1.h before gl_anyavltree_list2.h.
33151         (gl_rbtree_list_implementation): Update.
33152         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33153         Change return type to 'int'. Return -1 upon out-of-memory. Use
33154         __builtin_expect.
33155         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33156         (gl_avltreehash_list_implementation): Update.
33157         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33158         (gl_rbtreehash_list_implementation): Update.
33159         * modules/array-list (Depends-on): Remove xalloc.
33160         * modules/carray-list (Depends-on): Likewise.
33161         * modules/linked-list (Depends-on): Likewise.
33162         * modules/linkedhash-list (Depends-on): Likewise.
33163         * modules/avltree-list (Depends-on): Likewise.
33164         * modules/rbtree-list (Depends-on): Likewise.
33165         * modules/avltreehash-list (Depends-on): Likewise.
33166         * modules/rbtreehash-list (Depends-on): Likewise.
33167
33168         * modules/xsublist: New file.
33169         * lib/gl_xsublist.h: New file.
33170         * lib/gl_xsublist.c: New file.
33171         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33172         (gl_sublist_nx_create): New declaration.
33173         * lib/gl_sublist.c: Don't include xalloc.h.
33174         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33175         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33176         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33177         Change return type to 'int'. Return -1 upon out-of-memory.
33178         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33179         upon out-of-memory.
33180         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33181         NULL upon out-of-memory.
33182         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33183         upon out-of-memory.
33184         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33185         NULL upon out-of-memory.
33186         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33187         NULL upon out-of-memory.
33188         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33189         upon out-of-memory.
33190         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33191         (gl_sublist_list_implementation): Update.
33192         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33193         upon out-of-memory.
33194         * modules/sublist (Depends-on): Remove xalloc.
33195
33196         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33197         * tests/test-carray_list.c: Likewise.
33198         * tests/test-linked_list.c: Likewise.
33199         * tests/test-linkedhash_list.c: Likewise.
33200         * tests/test-avltree_list.c: Likewise.
33201         * tests/test-rbtree_list.c: Likewise.
33202         * tests/test-avltreehash_list.c: Likewise.
33203         * tests/test-rbtreehash_list.c: Likewise.
33204         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33205         * modules/carray-list-tests (Makefile.am): Likewise.
33206         * modules/linked-list-tests (Makefile.am): Likewise.
33207         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33208         * modules/avltree-list-tests (Makefile.am): Likewise.
33209         * modules/rbtree-list-tests (Makefile.am): Likewise.
33210         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33211         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33212
33213         * NEWS: Mention the changes.
33214
33215         * lib/clean-temp.c: Include gl_xlist.h.
33216         * modules/clean-temp (Depends-on): Add xlist.
33217
33218         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33219         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33220
33221         * tests/test-array_oset.c: Include gl_xlist.h.
33222         * modules/array-oset-tests (Depends-on): Add xlist.
33223
33224         Reported by JosĂ© E. Marchesi <jemarch@gnu.org>.
33225
33226 2009-12-13  Bruno Haible  <bruno@clisp.org>
33227
33228         Move the malloc checking from module 'oset' to new module 'xoset'.
33229         * modules/xoset: New file.
33230         * lib/gl_xoset.h: New file.
33231         * lib/gl_xoset.c: New file.
33232         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33233         declarations.
33234         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33235         (struct gl_oset_implementation): Rename and change methods accordingly.
33236         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33237         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33238         'int'. Mark as __warn_unused_result__.
33239         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33240         gl_oset_create_empty.
33241         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33242         'int'.
33243         * lib/gl_array_oset.c: Don't include xalloc.h.
33244         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33245         malloc, not xmalloc.
33246         (grow): Change return type to 'int'. Don't call xalloc_die.
33247         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33248         to 'int'.
33249         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33250         'int'.
33251         (gl_array_oset_implementation): Update.
33252         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33253         gl_tree_create_empty.
33254         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33255         'int'.
33256         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33257         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33258         xmalloc.
33259         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33260         not xmalloc.
33261         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33262         xmalloc.
33263         (gl_avltree_oset_implementation): Update.
33264         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33265         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33266         xmalloc.
33267         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33268         not xmalloc.
33269         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33270         xmalloc.
33271         (gl_rbtree_oset_implementation): Update.
33272         * modules/array-oset (Depends-on): Remove xalloc.
33273         * modules/avltree-oset (Depends-on): Likewise.
33274         * modules/rbtree-oset (Depends-on): Likewise.
33275         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33276         * tests/test-avltree_oset.c: Likewise.
33277         * tests/test-rbtree_oset.c: Likewise.
33278         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33279         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33280         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33281         * NEWS: Mention the change.
33282
33283 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33284
33285         maint.mk: allow a project to override release-prep commands
33286         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33287         commands into a new rule.
33288         (release-prep): New rule.
33289         (release-prep-hook): New overridable variable.
33290
33291 2009-12-13  Bruno Haible  <bruno@clisp.org>
33292
33293         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33294
33295 2009-12-13  Jim Meyering  <meyering@redhat.com>
33296
33297         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33298         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33299
33300 2009-12-12  Bruno Haible  <bruno@clisp.org>
33301
33302         duplocale: Tweak.
33303         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33304
33305 2009-12-12  Karl Berry  <karl@gnu.org>
33306
33307         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33308
33309 2009-12-12  Bruno Haible  <bruno@clisp.org>
33310
33311         * m4/po.m4: Undo incorrect untabification.
33312
33313 2009-12-12  Bruno Haible  <bruno@clisp.org>
33314
33315         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33316         * modules/c-strtod (Depends-on): Add locale.
33317         * modules/c-strtold (Depends-on): Likewise.
33318
33319 2009-12-12  Bruno Haible  <bruno@clisp.org>
33320
33321         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33322
33323 2009-12-11  Eric Blake  <ebb9@byu.net>
33324
33325         setenv: relax requirement in light of POSIX ruling
33326         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33327         not NULL.
33328         * tests/test-setenv.c (main): Relax test.
33329         * tests/test-unsetenv.c (main): Likewise.
33330         * doc/posix-functions/setenv.texi (setenv): Document this.
33331         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33332
33333 2009-12-11  Bruno Haible  <bruno@clisp.org>
33334
33335         New module 'fd-safer-flag'.
33336         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33337         * lib/dup-safer.c (dup_safer_flag): Remove function.
33338         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33339         * lib/fd-safer.c (fd_safer_flag): Remove function.
33340         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33341         * modules/cloexec (configure.ac): Drop indicator macro.
33342         * modules/fd-safer-flag: New file.
33343         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33344         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33345         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33346
33347 2009-12-11  Bruno Haible  <bruno@clisp.org>
33348
33349         Tests for module 'nl_langinfo'.
33350         * modules/nl_langinfo-tests: New file.
33351         * tests/test-nl_langinfo.sh: New file.
33352         * tests/test-nl_langinfo.c: New file.
33353
33354         New module 'nl_langinfo'.
33355         * lib/nl_langinfo.c: New file.
33356         * m4/nl_langinfo.m4: New file.
33357         * modules/nl_langinfo: New file.
33358         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33359
33360 2009-12-11  Bruno Haible  <bruno@clisp.org>
33361
33362         Tests for module 'langinfo'.
33363         * modules/langinfo-tests: New file.
33364         * tests/test-langinfo.c: New file.
33365
33366         New module 'langinfo'.
33367         * lib/langinfo.in.h: New file.
33368         * m4/langinfo_h.m4: New file.
33369         * modules/langinfo: New file.
33370         * doc/posix-headers/langinfo.texi: Mention the new module.
33371
33372 2009-12-11  Bruno Haible  <bruno@clisp.org>
33373
33374         * lib/config.charset: Untabify.
33375
33376 2009-12-11  Bruno Haible  <bruno@clisp.org>
33377
33378         * modules/unistd-safer (configure.ac): Drop indicator macro.
33379
33380 2009-12-11  Bruno Haible  <bruno@clisp.org>
33381
33382         Move pipe2-safer code to its own file.
33383         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33384         * lib/pipe-safer.c (pipe2_safer): Remove function.
33385         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33386         (Makefile.am): Add it to lib_SOURCES.
33387
33388 2009-12-10  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33391
33392 2009-12-10  Bruno Haible  <bruno@clisp.org>
33393
33394         Declare which arguments expect non-NULL values, for GCC and clang.
33395         * build-aux/arg-nonnull.h: New file.
33396         * modules/arg-nonnull: New file.
33397         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33398         (inet_ntop, inet_pton): Use it.
33399         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33400         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33401         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33402         (open, openat): Use it.
33403         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33404         (fnmatch): Use it.
33405         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33406         (getopt, getopt_long, getopt_long_only): Use it.
33407         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33408         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33409         Use it.
33410         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33411         (iconv_open): Use it.
33412         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33413         (strtoimax, strtoumax): Use it.
33414         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33415         (duplocale): Use it.
33416         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33417         (frexp, frexpl): Use it.
33418         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33419         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33420         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33421         (tsearch, tfind, tdelete, twalk): Use it.
33422         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33423         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33424         sigpending): Use it.
33425         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33426         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33427         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33428         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33429         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33430         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33431         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33432         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33433         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33434         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33435         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33436         Use it.
33437         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33438         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33439         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33440         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33441         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33442         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33443         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33444         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33445         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33446         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33447         strtoull, unsetenv): Use it.
33448         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33449         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33450         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33451         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33452         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33453         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33454         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33455         (strcasecmp, strncasecmp): Use it.
33456         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33457         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33458         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33459         rpl_setsockopt): Use it.
33460         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33461         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33462         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33463         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33464         (gettimeofday): Use it.
33465         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33466         (times): Use it.
33467         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33468         (uname): Use it.
33469         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33470         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33471         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33472         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33473         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33474         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33475         unlinkat, write): Use it.
33476         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33477         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33478         * lib/argv-iter.h: Include arg-nonnull.h.
33479         (_ATTRIBUTE_NONNULL_): Remove macro.
33480         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33481         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33482         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33483         optimization.
33484         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33485         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33486         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33487         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33488         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33489         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33490         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33491         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33492         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33493         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33494         * modules/dirent (Depends-on): Add arg-nonnull.
33495         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33496         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33497         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33498         * modules/fnmatch (Depends-on): Add arg-nonnull.
33499         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33500         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33501         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33502         * modules/glob (Depends-on): Add arg-nonnull.
33503         (Makefile.am): Insert arg-nonnull.h into glob.h.
33504         * modules/iconv_open (Depends-on): Add arg-nonnull.
33505         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33506         * modules/inttypes (Depends-on): Add arg-nonnull.
33507         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33508         * modules/locale (Depends-on): Add arg-nonnull.
33509         (Makefile.am): Insert arg-nonnull.h into locale.h.
33510         * modules/math (Depends-on): Add arg-nonnull.
33511         (Makefile.am): Insert arg-nonnull.h into math.h.
33512         * modules/netdb (Depends-on): Add arg-nonnull.
33513         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33514         * modules/search (Depends-on): Add arg-nonnull.
33515         (Makefile.am): Insert arg-nonnull.h into search.h.
33516         * modules/signal (Depends-on): Add arg-nonnull.
33517         (Makefile.am): Insert arg-nonnull.h into signal.h.
33518         * modules/spawn (Depends-on): Add arg-nonnull.
33519         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33520         * modules/stdio (Depends-on): Add arg-nonnull.
33521         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33522         * modules/stdlib (Depends-on): Add arg-nonnull.
33523         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33524         * modules/string (Depends-on): Add arg-nonnull.
33525         (Makefile.am): Insert arg-nonnull.h into string.h.
33526         * modules/strings (Depends-on): Add arg-nonnull.
33527         (Makefile.am): Insert arg-nonnull.h into strings.h.
33528         * modules/sys_socket (Depends-on): Add arg-nonnull.
33529         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33530         * modules/sys_stat (Depends-on): Add arg-nonnull.
33531         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33532         * modules/sys_time (Depends-on): Add arg-nonnull.
33533         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33534         * modules/sys_times (Depends-on): Add arg-nonnull.
33535         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33536         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33537         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33538         * modules/time (Depends-on): Add arg-nonnull.
33539         (Makefile.am): Insert arg-nonnull.h into time.h.
33540         * modules/unistd (Depends-on): Add arg-nonnull.
33541         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33542         * modules/wchar (Depends-on): Add arg-nonnull.
33543         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33544         * modules/argv-iter (Depends-on): Add arg-nonnull.
33545         * tests/test-canonicalize.c (null_ptr): New function.
33546         (main): Use it.
33547         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33548         (main): Use it.
33549         * tests/test-memmem.c (null_ptr): New function.
33550         (main): Use it.
33551         Reported by Jim Meyering.
33552
33553 2009-12-10  Bruno Haible  <bruno@clisp.org>
33554
33555         Use spaces for indentation, not tabs.
33556         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33557         * m4/*.m4: Untabify.
33558         * build-aux/*.h: Untabify.
33559         * tests/**/*.[hc]: Untabify.
33560         * README: New section "Indent with spaces, not TABs", based on
33561         coreutils/HACKING and comments by PĂ¡draig Brady and Paolo Bonzini.
33562         * NEWS: Mention the change.
33563
33564 2009-12-10  Bruno Haible  <bruno@clisp.org>
33565
33566         pty test: Fix link error.
33567         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33568         test_pty_LDADD.
33569
33570 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33571
33572         * modules/pty: New file.
33573         * modules/pty-tests: New file.
33574         * m4/pty.m4: New file.
33575         * tests/test-pty.c: New file.
33576         * doc/glibc-headers/pty.texi: Modified.
33577         * doc/glibc-functions/forkpty.texi: Modified.
33578         * doc/glibc-functions/openpty.texi: Modified.
33579
33580 2009-12-10  Bruno Haible  <bruno@clisp.org>
33581
33582         Avoid syntax error in C++ mode.
33583         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33584
33585 2009-12-10  Bruno Haible  <bruno@clisp.org>
33586
33587         Use sed with option -e.
33588         * gnulib-tool (func_version, func_emit_copyright_notice,
33589         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33590         option -e to sed.
33591         * modules/link-warning (Makefile.am): Likewise.
33592
33593 2009-12-10  Jim Meyering  <meyering@redhat.com>
33594
33595         mgetgroups: do not write bytes beyond end of malloc'd buffer
33596         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33597         username, we call getgroups with a one-element-shorter buffer,
33598         but still told it the length was original, max_n_groups.
33599
33600 2009-12-09  Eric Blake  <ebb9@byu.net>
33601
33602         cloexec: relax license
33603         * modules/cloexec (Maintainer): Add myself.
33604         (License): Use LGPL, not GPL.
33605
33606         link-warning: optimize generation
33607         * modules/link-warning (Makefile.am): Reduce process usage.
33608
33609 2009-12-09  Bruno Haible  <bruno@clisp.org>
33610
33611         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33612         workaround was added on 2009-11-17.
33613
33614 2009-12-09  Jim Meyering  <meyering@redhat.com>
33615             Bruno Haible  <bruno@clisp.org>
33616
33617         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33618         * modules/link-warning (Makefile.am): Make the comment-removing sed
33619         command more robust in the face of bootstrap-prepended comment lines.
33620
33621 2009-12-09  Bruno Haible  <bruno@clisp.org>
33622
33623         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33624         most one group.
33625
33626 2009-12-09  Simon Josefsson <simon@josefsson.org>
33627             Bruno Haible  <bruno@clisp.org>
33628
33629         * build-aux/link-warning.h: Add copyright notice.
33630         * modules/link-warning (Makefile.am): Generate link-warning.h from
33631         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33632         * NEWS: Mention change in link-warning module.
33633         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33634         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33635         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33636         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33637         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33638         * modules/math (Makefile.am): Add dependency to math.h.
33639         * modules/search (Makefile.am): Add dependency to search.h.
33640         * modules/signal (Makefile.am): Add dependency to signal.h.
33641         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33642         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33643         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33644         * modules/string (Makefile.am): Add dependency to string.h.
33645         * modules/strings (Makefile.am): Add dependency to strings.h.
33646         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33647         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33648         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33649         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33650         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33651         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33652         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33653         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33654         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33655
33656 2009-12-09  Bruno Haible  <bruno@clisp.org>
33657
33658         fchdir: Optimize away rpl_fstat when possible.
33659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33660         REPLACE_OPEN_DIRECTORY.
33661         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33662
33663 2009-12-09  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/fchdir.c: Update comment.
33666
33667 2009-12-09  Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33670
33671 2009-12-08  Eric Blake  <ebb9@byu.net>
33672
33673         fchdir: avoid memory leak on re-registration.
33674         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33675
33676 2009-12-08  Jim Meyering  <meyering@redhat.com>
33677
33678         init.sh: avoid Solaris 10 /bin/sh portability problem
33679         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33680         sourced script:
33681           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33682           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33683           bar
33684         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33685         and two tests used that idiom.
33686         * tests/init.sh: Update suggested usage comments.
33687         (path_prepend_): New function, to be used in place
33688         of the --src-path=DIR option.
33689         (setup_): Move PATH-prepending code into path_prepend_.
33690         * tests/test-pread.sh: Adapt to new usage.
33691         * tests/test-xalloc-die.sh: Likewise.
33692
33693 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33694
33695         * doc/gnulib.texi (Glibc pty.h): Add.
33696         * doc/glibc-functions/forkpty.texi: Add.
33697         * doc/glibc-functions/openpty.texi: Add.
33698         Suggested by Bruno Haible.
33699
33700 2009-12-08  Eric Blake  <ebb9@byu.net>
33701
33702         fchdir: fix logic bugs
33703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33704         * tests/test-fchdir.c (main): Enhance test.
33705         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33706         is in use.
33707
33708         dup2: fix logic bugs
33709         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33710         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33711         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33712         exists.
33713         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33714
33715 2009-12-07  Eric Blake  <ebb9@byu.net>
33716
33717         unlink: fix m4 detection
33718         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33719
33720         unistd-safer: add unit test
33721         * modules/unistd-safer-tests: New file.
33722         * tests/test-dup-safer.c: Likewise.
33723         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33724         * tests/test-dup2.c (setmode): Likewise.
33725         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33726
33727         cloexec: preserve text vs. binary across dup_cloexec
33728         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33729         mode.
33730         * modules/dup2-tests (Depends-on): Add binary-io.
33731         * modules/cloexec-tests (Depends-on): Likewise.
33732         * tests/test-dup2.c (setmode, is_mode): New helpers.
33733         (main): Add tests that translation mode is preserved.
33734         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33735         Reported by Bruno Haible.
33736
33737         mgetgroups: reduce duplicate listings
33738         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33739         resulting array.
33740         * tests/test-chown.h (test_chown): Simplify client.
33741         * tests/test-lchown.h (test_lchown): Likewise.
33742
33743 2009-12-06  Bruno Haible  <bruno@clisp.org>
33744
33745         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33746         value.
33747
33748 2009-12-06  Bruno Haible  <bruno@clisp.org>
33749
33750         * lib/progname.c: Include stdio.h, stdlib.h.
33751         (set_program_name): Reject a NULL argument.
33752
33753 2009-12-05  Eric Blake  <ebb9@byu.net>
33754
33755         pipe2-safer: new module
33756         * modules/pipe2-safer: New file.
33757         * lib/unistd-safer.h (pipe2_safer): New prototype.
33758         * lib/unistd--.h (pipe2): New wrapper.
33759         * lib/pipe-safer.c (pipe2_safer): New function.
33760         * modules/pipe (Depends-on): Add pipe2-safer.
33761         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33762
33763         stdlib-safer: preserve cloexec flag for mkostemp[s]
33764         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33765         fd_safer_flag.
33766
33767         unistd-safer: allow preservation of cloexec status via flag
33768         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33769         prototypes.
33770         * lib/dup-safer.c (dup_safer_flag): New function.
33771         * lib/fd-safer.c (fd_safer_flag): Likewise.
33772         * modules/cloexec (configure.ac): Set witness.
33773
33774         test-dup2: enhance test
33775         * modules/dup2-tests (Depends-on): Add cloexec.
33776         * tests/test-dup2.c (main): Enhance test.
33777
33778         cloexec: add dup_cloexec
33779         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33780         header and comments.
33781         * lib/cloexec.c (set_cloexec_flag): Add comments.
33782         (dup_cloexec): New function, with mingw implementation borrowed
33783         from...
33784         * lib/w32spawn.h (dup_noinherit): ...here.
33785         * modules/execute (Depends-on): Add cloexec.
33786         * modules/pipe (Depends-on): Likewise.
33787         * modules/cloexec (Depends-on): Add dup2.
33788         * modules/cloexec-tests (Files): New file.
33789         * tests/test-cloexec.c: Likewise.
33790
33791         test-xalloc-die: fix test for mingw
33792         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33793         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33794         directory and .exe suffix off argv[0] output.
33795
33796         test-fseeko: fix test for mingw
33797         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33798         than undefining fseek, so test will pass on mingw.
33799
33800 2009-12-05  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/progname.h (set_program_name): Clarify specification.
33803         * lib/progname.c (set_program_name): Likewise.
33804         Reported by Jim Meyering.
33805
33806 2009-12-05  Jim Meyering  <meyering@redhat.com>
33807
33808         maint.mk: backslash-escape parens in default regexp
33809         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33810         backslash-escape the literal parentheses.
33811
33812         maint.mk: news-date-check: use grep -E
33813         * top/maint.mk (today): Define a Make variable, not a...
33814         (news-date-check): ...shell variable.
33815         (news-date-regexp): Use the Make variable.
33816         Use grep's -E option.  Change the failing diagnostic to mention
33817         the variable, $(news-date-regexp).
33818
33819 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33820
33821         maintainer-makefile: allow customization of NEWS entry format
33822         * top/maint.mk (news-date-regexp): New overridable variable.
33823         (news-date-check): Use it.
33824
33825 2009-12-04  Eric Blake  <ebb9@byu.net>
33826
33827         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33828         * lib/mgetgroups.h (xgetgroups): New prototype.
33829         * lib/mgetgroups.c (xgetgroups): New wrapper.
33830         (mgetgroups): Handle ENOSYS.
33831         * modules/mgetgroups (Depends-on): Add realloc.
33832         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33833
33834         mgetgroups: avoid argument promotion issues with -1
33835         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33836         for invalid gid_t.
33837         * tests/test-chown.h (getegid, test_chown): Likewise.
33838         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33839
33840 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33841
33842         exclude: Fix header file problems.
33843         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33844
33845 2009-12-01  Jim Meyering  <meyering@redhat.com>
33846
33847         fts: fts_open: do not let an empty string cause immediate failure
33848         This is required in support of GNU rm, for which the command
33849         "rm A '' B" must process and remove both A and B, in spite of
33850         the empty string argument.
33851         * lib/fts.c (fts_open): Do not let the presence of an empty string
33852         cause fts_open to fail immediately.  Most fts-using tools must be
33853         able to process all arguments, in order, and can be expected to
33854         diagnose such arguments themselves.
33855
33856 2009-11-30  Eric Blake  <ebb9@byu.net>
33857
33858         utimens: fix compilation error
33859         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33860         Declare variable at right scope.
33861
33862 2009-11-29  Jim Meyering  <meyering@redhat.com>
33863
33864         bootstrap: handle perl-5.11's changed --version output
33865         * build-aux/bootstrap (get_version): Handle perl separately,
33866         since perl-5.11's --version output is different.
33867
33868 2009-11-28  Jim Meyering  <meyering@redhat.com>
33869
33870         userspec: depend on the inttostr module, too
33871         * modules/userspec (Depends-on): Add inttostr.
33872
33873         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33874         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33875         number of MAXUID when it evaluates to (uid_t) -1.
33876         Likewise for group ID.  Reported by Matt McCutchen in
33877         <http://savannah.gnu.org/bugs/?28113>
33878
33879         userspec: reformat to use spaces, not TABs
33880         * lib/userspec.c: Expand TABs to spaces.
33881         Add Emacs' "indent-tabs-mode: nil" hint.
33882
33883 2009-11-27  Eric Blake  <ebb9@byu.net>
33884
33885         getopt-gnu: flush out another BSD bug
33886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33887         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33888         flush out BSD bug.
33889         * tests/test-getopt.h (test_getopt): End lists with NULL.
33890         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33891         (test_getopt_long_posix): Enhance test.
33892         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33893         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33894         getopt-gnu.
33895         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33896         Likewise.
33897
33898 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33899
33900         * modules/idpriv-droptemp-tests (Notice): Fix text.
33901
33902 2009-11-27  Jim Meyering  <meyering@redhat.com>
33903
33904         test-xalloc-die: avoid spurious failure due to libtool argv difference
33905         In a libtool-enabled project, this test would fail due to a difference
33906         in the emitted program name, e.g.,
33907         -test-xalloc-die: memory exhausted
33908         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33909         Use program to avoid that.
33910         * modules/xalloc-die-tests (Depends-on): Add progname.
33911         * tests/test-xalloc-die.c: Include progname.h".
33912         (program_name): Remove decl.
33913         (main): Call set_program_name.
33914         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33915
33916 2009-11-26  Richard Jones  <rjones@redhat.com>
33917
33918         w32sock: leave win32 error in place.
33919         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33920
33921 2009-11-26  Eric Blake  <ebb9@byu.net>
33922
33923         init.sh: suggest to use skip_ and fail_ functions in comments
33924         * tests/init.sh: Add a sentence.
33925
33926 2009-11-25  Bruno Haible  <bruno@clisp.org>
33927
33928         init.sh: add documentation in comments
33929         * tests/init.sh: Add some developer and user documentation.
33930
33931 2009-11-26  Jim Meyering  <meyering@redhat.com>
33932
33933         init.sh: accommodate even those who specify bogus srcdir manually
33934         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33935         configure-time tests to be sanitized, so that there is no need to
33936         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33937         (with no double quotes) suffices.  However, since tests may be
33938         invoked manually, and since you may explicitly set srcdir to the
33939         name of a directory containing spaces, do quote its uses here.
33940         * tests/test-pread.sh: Likewise.
33941         Suggested by Bruno Haible.
33942
33943         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33944         * tests/test-pread.sh: Write no data into the pipe, because
33945         test-pread actually reads none.  This avoids a diagnostic,
33946         "bash: echo: write error: Broken pipe", that arises in the unusual
33947         event something is ignoring SIGPIPE, and might be interpreted
33948         as some sort of failure.  Reported by Bruno Haible.
33949
33950 2009-11-25  Jim Meyering  <meyering@redhat.com>
33951
33952         test-pread: cover failure with ESPIPE and EINVAL
33953         * tests/test-pread.c (main): Test for failure, too.
33954         * tests/test-pread.sh: Invoke with stdin on a pipe.
33955         Suggested by Eric Blake.
33956
33957         pread: improvement and fix
33958         * modules/pread (Depends-on): Depend on lseek, for portability to
33959         e.g., mingw.  Suggested by Eric Blake.
33960         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33961
33962         unistd.in.h: correct declaration of pread
33963         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33964         Reported by Richard W.M. Jones.
33965
33966         test-pread.sh: distribute the test script
33967         * modules/pread-tests (Files): Include test-pread.sh.
33968
33969         test-pread.sh: clean up
33970         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33971         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33972         That is unnecessary, since it's always ".".
33973         Suggestion from Eric Blake.
33974
33975         test-pread.sh: make executable
33976         * tests/test-pread.sh: Set executable bit.
33977         Reported by Eric Blake.
33978
33979         correct typo in test-pread.sh
33980         * tests/test-pread.sh: Add #! line.
33981
33982         test pread
33983         * tests/test-pread.c: New file.
33984         * tests/test-pread.sh: Likewise.
33985         * modules/pread-tests: Likewise.
33986
33987         pread: new module
33988         * modules/pread: New file.
33989         * lib/unistd.in.h (pread): Define/declare.
33990         * lib/pread.c (pread): New file.
33991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33992         * modules/unistd (Makefile.am): Substitute witnesses.
33993         * doc/posix-functions/pread.texi (pread): Update.
33994         * MODULES.html.sh: Add pread.
33995
33996 2009-11-25  Jim Meyering  <meyering@redhat.com>
33997
33998         tests/init.sh: new file to be used via most *.sh tests
33999         * tests/init.sh: New file.
34000
34001 2009-11-25  Eric Blake  <ebb9@byu.net>
34002
34003         utimens: work around older Linux failure with symlinks
34004         * lib/utimens.c (lutimensat_works_really): New variable.
34005         (fdutimens, lutimens): Use it to manage kernels that support
34006         nanosecond times on files, but not on symlinks.
34007         Reported by OndÅ™ej VaÅ¡Ă­k.
34008
34009         utimes: fix configure grammar
34010         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34011
34012 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34013
34014         regex: Fix fastmap for multibyte character ranges.
34015         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34016         characters when a multibyte character range is included.
34017
34018 2009-11-22  Andy Wingo  <wingo@pobox.com>
34019
34020         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34021         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34022
34023 2009-11-24  Bruno Haible  <bruno@clisp.org>
34024
34025         doc: Most *_l functions exist in MacOS X 10.5.
34026         * doc/posix-functions/duplocale.texi: Update platforms list.
34027         * doc/posix-functions/freelocale.texi: Likewise.
34028         * doc/posix-functions/newlocale.texi: Likewise.
34029         * doc/posix-functions/uselocale.texi: Likewise.
34030         * doc/posix-functions/isalnum_l.texi: Likewise.
34031         * doc/posix-functions/isalpha_l.texi: Likewise.
34032         * doc/posix-functions/isblank_l.texi: Likewise.
34033         * doc/posix-functions/iscntrl_l.texi: Likewise.
34034         * doc/posix-functions/isdigit_l.texi: Likewise.
34035         * doc/posix-functions/isgraph_l.texi: Likewise.
34036         * doc/posix-functions/islower_l.texi: Likewise.
34037         * doc/posix-functions/isprint_l.texi: Likewise.
34038         * doc/posix-functions/ispunct_l.texi: Likewise.
34039         * doc/posix-functions/isspace_l.texi: Likewise.
34040         * doc/posix-functions/isupper_l.texi: Likewise.
34041         * doc/posix-functions/iswalnum_l.texi: Likewise.
34042         * doc/posix-functions/iswalpha_l.texi: Likewise.
34043         * doc/posix-functions/iswblank_l.texi: Likewise.
34044         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34045         * doc/posix-functions/iswctype_l.texi: Likewise.
34046         * doc/posix-functions/iswdigit_l.texi: Likewise.
34047         * doc/posix-functions/iswgraph_l.texi: Likewise.
34048         * doc/posix-functions/iswlower_l.texi: Likewise.
34049         * doc/posix-functions/iswprint_l.texi: Likewise.
34050         * doc/posix-functions/iswpunct_l.texi: Likewise.
34051         * doc/posix-functions/iswspace_l.texi: Likewise.
34052         * doc/posix-functions/iswupper_l.texi: Likewise.
34053         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34054         * doc/posix-functions/isxdigit_l.texi: Likewise.
34055         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34056         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34057         * doc/posix-functions/strcoll_l.texi: Likewise.
34058         * doc/posix-functions/strfmon_l.texi: Likewise.
34059         * doc/posix-functions/strftime_l.texi: Likewise.
34060         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34061         * doc/posix-functions/strxfrm_l.texi: Likewise.
34062         * doc/posix-functions/tolower_l.texi: Likewise.
34063         * doc/posix-functions/toupper_l.texi: Likewise.
34064         * doc/posix-functions/towctrans_l.texi: Likewise.
34065         * doc/posix-functions/towlower_l.texi: Likewise.
34066         * doc/posix-functions/towupper_l.texi: Likewise.
34067         * doc/posix-functions/wcscoll_l.texi: Likewise.
34068         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34069         * doc/posix-functions/wctrans_l.texi: Likewise.
34070         * doc/posix-functions/wctype_l.texi: Likewise.
34071         * doc/glibc-functions/strptime_l.texi: Likewise.
34072         * doc/glibc-functions/strtod_l.texi: Likewise.
34073         * doc/glibc-functions/strtof_l.texi: Likewise.
34074         * doc/glibc-functions/strtol_l.texi: Likewise.
34075         * doc/glibc-functions/strtold_l.texi: Likewise.
34076         * doc/glibc-functions/strtoll_l.texi: Likewise.
34077         * doc/glibc-functions/strtoul_l.texi: Likewise.
34078         * doc/glibc-functions/strtoull_l.texi: Likewise.
34079         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34080         * doc/glibc-functions/wcstod_l.texi: Likewise.
34081         * doc/glibc-functions/wcstof_l.texi: Likewise.
34082         * doc/glibc-functions/wcstol_l.texi: Likewise.
34083         * doc/glibc-functions/wcstold_l.texi: Likewise.
34084         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34085         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34086         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34087
34088 2009-11-24  Bruno Haible  <bruno@clisp.org>
34089
34090         duplocale: Fix logic bug.
34091         * lib/duplocale.c: Don't include <langinfo.h>.
34092         (_NL_LOCALE_NAME): Remove macro.
34093         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34094         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34095
34096 2009-11-23  Jim Meyering  <meyering@redhat.com>
34097
34098         test-update-copyright: don't hard-code /usr/bin/perl
34099         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34100         perl to print the current year.  Gilles Espinasse reported that
34101         the replaced use of perl was hard-coded as /usr/bin/perl.
34102
34103 2009-11-23  Bruno Haible  <bruno@clisp.org>
34104
34105         duplocale: Add support for glibc 2.3.x.
34106         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34107
34108 2009-11-22  Bruno Haible  <bruno@clisp.org>
34109
34110         vasnprintf: Tiny optimization.
34111         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34112         MacOS X.
34113
34114 2009-11-22  Bruno Haible  <bruno@clisp.org>
34115
34116         Tests for module 'duplocale'.
34117         * modules/duplocale-tests: New file.
34118         * tests/test-duplocale.c: New file.
34119
34120         New module 'duplocale'.
34121         * m4/duplocale.m4: New file.
34122         * lib/locale.in.h (duplocale): New declaration.
34123         * lib/duplocale.c: New file.
34124         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34125         gl_LOCALE_H_DEFAULTS): New macros.
34126         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34127         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34128         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34129         REPLACE_DUPLOCALE.
34130         * modules/duplocale: New file.
34131         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34132
34133 2009-11-22  Bruno Haible  <bruno@clisp.org>
34134
34135         * modules/locale-tests (configure.ac): Test for newlocale function.
34136         * tests/test-locale.c: When the system has extended locale functions,
34137         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34138
34139         locale: Make locale_t available when possible.
34140         * lib/locale.in.h: Include <xlocale.h> when it exists.
34141         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34142         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34143         * modules/locale (Depends-on): Add extensions.
34144         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34145         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34146
34147 2009-11-22  Bruno Haible  <bruno@clisp.org>
34148
34149         Add comments.
34150         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34151         invocation.
34152         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34153         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34154         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34155
34156 2009-11-22  Bruno Haible  <bruno@clisp.org>
34157
34158         error: account for the possibility of freopen (stdout).
34159         * lib/error.c: Include <unistd.h>.
34160         (flush_stdout): New function, extracted from error and error_at_line.
34161         Determine stdout's fd dynamically.
34162         (error, error_at_line): Invoke flush_stdout.
34163         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34164         * modules/error (Depends-on): Add unistd.
34165
34166 2009-11-22  Bruno Haible  <bruno@clisp.org>
34167
34168         diffseq: Add comment.
34169         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34170
34171 2009-11-22  Jim Meyering  <meyering@redhat.com>
34172
34173         c-stack: avoid defining an unused static function
34174         * lib/c-stack.c (find_stack_direction): Do not define this function
34175         when it will not be used.
34176
34177         diffseq: avoid spurious gcc warnings
34178         * lib/diffseq.h (IF_LINT2): Define.
34179         (compareseq): Use it to initialize two members of "part".
34180         This avoids two used-uninitialized warnings.
34181
34182 2009-11-21  Jim Meyering  <meyering@redhat.com>
34183
34184         c-stack: avoid "ignoring return value of `write'" warning
34185         * lib/c-stack.c: Include "ignore-value.h".
34186         (die): Explicitly ignore each write return value.
34187         * modules/c-stack (Depends-on): Add ignore-value.
34188
34189 2009-11-21  Bruno Haible  <bruno@clisp.org>
34190
34191         diffseq: reduce scope of variable 'best'.
34192         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34193         variable, earlier used for two different purposes.
34194
34195 2009-11-21  Jim Meyering  <meyering@redhat.com>
34196
34197         diffseq: remove useless assignment to "best"
34198         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34199         assignment.  At that point "best" is already guaranteed to be zero.
34200
34201 2009-11-20  Eric Blake  <ebb9@byu.net>
34202
34203         build: mention ftp redirector in release announcements
34204         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34205         values that used to come from cfg.mk; mention FTP redirect URL.
34206         * build-aux/announce-gen: Mention the mirror list.
34207         Suggested by Karl Berry.
34208
34209         nanosleep: improve port to mingw
34210         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34212         LIB_NANOSLEEP, but only when needed.
34213         * modules/select (Link): Document LIBSOCKET.
34214         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34215         enough.
34216
34217         nanosleep: work around cygwin bug
34218         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34219         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34220         bug.
34221         (getnow): Delete, not needed.
34222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34223         LIB_CLOCK_GETTIME.
34224         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34225         clock-time, gettime.
34226         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34227         bug.
34228         * modules/nanosleep-tests: New test.
34229         * tests/test-nanosleep.c: New file.
34230
34231         sleep: work around cygwin bug
34232         * lib/sleep.c (rpl_sleep): Work around the bug.
34233         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34234         (gl_PREREQ_SLEEP): Delete unused macro.
34235         * modules/sleep (Depends-on): Add verify.
34236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34237         * modules/unistd (Makefile.am): Substitute witness.
34238         * lib/unistd.in.h (sleep): Update prototype.
34239         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34240         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34241         * modules/sleep-tests (Depends-on): Check for alarm.
34242
34243 2009-11-20  Jim Meyering  <meyering@redhat.com>
34244
34245         maint.mk: improve sc_prohibit_magic_number_exit
34246         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34247         so it does not match uses like System.exit(1).
34248         Add comments showing how to correct all offenders.
34249
34250 2009-11-19  Eric Blake  <ebb9@byu.net>
34251
34252         xalloc-die-tests: add missing library
34253         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34254
34255         test-xvasprintf: silence compiler warnings
34256         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34257         empty string from gcc.
34258
34259 2009-11-19  Jim Meyering  <meyering@redhat.com>
34260
34261         xfreopen: new module, from coreutils
34262         * modules/xfreopen: New module.
34263         * lib/xfreopen.c: New file.
34264         * lib/xfreopen.h: New file.
34265         * MODULES.html.sh (File stream based Input/Output"): Add it.
34266
34267 2009-11-19  Eric Blake  <ebb9@byu.net>
34268
34269         manywarnings: depend on warnings
34270         * modules/manywarnings (Depends-on): Add warnings.
34271
34272         build: avoid compiler warnings
34273         * lib/select.c (rpl_select): Delete unused variable.
34274         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34275
34276 2009-11-18  Eric Blake  <ebb9@byu.net>
34277
34278         tests: avoid false negative with --with-packager
34279         * tests/test-version-etc.sh: Discard packager information.
34280         * tests/test-argp-version-etc-1.sh: Likewise.
34281         Reported by Mike Frysinger.
34282
34283         utimens: fix regression on Solaris
34284         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34285         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34286         can only change fd timestamps via futimesat.  Instead, use an
34287         additional witness macro to avoid BSD bug.
34288         Reported by Jim Meyering.
34289
34290 2009-11-17  Eric Blake  <ebb9@byu.net>
34291
34292         usleep: use it to simplify tests
34293         * modules/stat-time-tests (Depends-on): Add usleep.
34294         (configure.ac): Drop usleep check.
34295         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34296         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34297         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34298         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34299         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34300         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34301         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34302         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34303         Likewise.
34304         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34305         * tests/test-lchown.h (nap): Likewise.
34306         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34307         * tests/test-stat-time.c (nap): Likewise.
34308         * tests/test-utimens-common.h (nap): Update comments.
34309
34310         usleep: new module
34311         * modules/usleep: New file.
34312         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34313         * lib/usleep.c (usleep): Likewise.
34314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34315         * modules/unistd (Makefile.am): Substitute witnesses.
34316         * lib/unistd.in.h (usleep): Add declaration.
34317         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34318         * MODULES.html.sh (Date and time): Likewise.
34319         * modules/usleep-tests (Depends-on): New test.
34320         * tests/test-usleep.c: New file.
34321
34322         chown: work around OpenBSD bug
34323         * lib/chown.c (rpl_chown): Work around the bug.
34324         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34325         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34326         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34327         * modules/chown (Depends-on): Add stdbool.
34328         * modules/lchown (Depends-on): Likewise.
34329         * doc/posix-functions/chown.texi (chown): Document the bug.
34330         * doc/posix-functions/lchown.texi (lchown): Likewise.
34331         * tests/test-lchown.h (test_chown): Relax test.
34332
34333         mkstemp: avoid conflict with C++ keyword template
34334         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34335         * lib/mkostemp.c (mkostemp): Likewise.
34336         * lib/mkostemps.c (mkostemps): Likewise.
34337         * lib/mkstemp.c (mkstemp): Likewise.
34338         * lib/mkstemps.c (mkstemps): Likewise.
34339
34340         xalloc-die-tests: optimize
34341         * tests/test-xalloc-die.sh: Reduce number of processes.
34342
34343 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34344
34345         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34346         patch from ludo@gnu.org (Ludovic Courtès).
34347
34348 2009-11-17  Jim Meyering  <meyering@redhat.com>
34349
34350         version-etc: use proper license string
34351         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34352         * modules/version-etc-fsf: Likewise.
34353
34354 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34355
34356         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34357         printed to stdout.  Deal with EOL differences.
34358
34359 2009-11-17  Eric Blake  <ebb9@byu.net>
34360
34361         unsetenv: work around Solaris bug
34362         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34363         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34364         Reported by Jim Meyering.
34365
34366         vasnprintf: avoid compiler warnings
34367         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34368         variables.
34369         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34370
34371 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34372
34373         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34374         settings since xalloc-die is no longer the self test,
34375         xalloc-die.sh is.
34376
34377 2009-11-17  Jim Meyering  <meyering@redhat.com>
34378
34379         test-xalloc-die.sh: make the code agree with the commit log
34380         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34381         at the end, just in case you happen to have a test-xalloc-die
34382         program in some other PATH directory.
34383
34384         test-xalloc-die.sh: fix a portability bug
34385         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34386         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34387         Otherwise, argv[0] (as often seen in diagnostics) would be too
34388         system-dependent, sometimes with, and sometimes without the leading "./".
34389
34390         version-etc-fsf: relax license to LGPLv3+
34391         * modules/version-etc-fsf (License): Relax license.
34392
34393 2009-11-16  Eric Blake  <ebb9@byu.net>
34394
34395         xalloc-die-tests: avoid printing null pointer
34396         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34397         shell script.
34398         * tests/test-xalloc-die.c (program_name): Declare.
34399         * tests/test-xalloc-die.sh (tmpfiles): New file.
34400
34401         setenv, unsetenv: work around various bugs
34402         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34403         (setenv) [HAVE_SETENV]: Work around bugs.
34404         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34405         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34406         for bugs.
34407         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34408         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34410         * modules/stdlib (Makefile.am): Update substitutions.
34411         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34412         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34413         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34414         * modules/setenv-tests: New test.
34415         * modules/unsetenv-tests: Likewise.
34416         * tests/test-setenv.c: New file.
34417         * tests/test-unsetenv.c: Likewise.
34418
34419 2009-11-16  Jim Meyering  <meyering@redhat.com>
34420
34421         version-etc: relax license to LGPLv3+
34422         * modules/version-etc (License): Relax license.
34423
34424         better AC_REQUIRE expanded-before-required-warning avoidance
34425         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34426         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34427         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34428         which is no longer needed.
34429
34430 2009-11-16  Eric Blake  <ebb9@byu.net>
34431
34432         test-freading: clean up temporary file
34433         * tests/test-freading.c (main): Remove file on success, and use
34434         ASSERT more liberally.
34435         Reported by Jim Meyering.
34436
34437 2009-11-16  Jim Meyering  <meyering@redhat.com>
34438
34439         avoid new AC_REQUIRE expanded-before-required warnings
34440         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34441         merely using it.
34442         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34443         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34444
34445 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34446
34447         * tests/test-xalloc-die.c: New file.
34448         * modules/xalloc-die-tests: New file.
34449         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34450         XFAIL_TESTS so it can be appended by modules.
34451
34452 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34453
34454         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34455         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34456
34457 2009-11-14  Eric Blake  <ebb9@byu.net>
34458
34459         fnmatch: avoid compiler warning
34460         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34461         to silence compiler warning about mismatch signedness in ?:.
34462         Reported by Robert Millan.
34463
34464         intprops: add double-inclusion guard
34465         * lib/intprops.h: Allow idempotent includes.
34466         Suggested by Bruce Korb.
34467
34468         openat: detect Solaris fchownat bug
34469         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34470         penalizing glibc chownat when only lchownat is broken.
34471         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34472         trailing slash bugs.
34473         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34474         * modules/openat-tests (Files): Include more files.
34475         (Depends-on): Add mgetgroups, sleep, stat-time.
34476         (configure.ac): Add additional checks.
34477         (Makefile.am): Build new test.
34478         * tests/test-fchownat.c: New file.
34479
34480         lchown: detect Solaris and FreeBSD bug
34481         * lib/lchown.c (rpl_lchown): Work around bug.
34482         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34484         * modules/unistd (Makefile.am): Populate it.
34485         * lib/unistd.in.h (lchown): Update declaration.
34486         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34487         * modules/lchown-tests: New file.
34488         * tests/test-lchown.h (test_lchown): Likewise.
34489         * tests/test-lchown.c (main): Likewise.
34490
34491         chown: detect Solaris and FreeBSD bug
34492         * lib/chown.c (rpl_chown): Work around bug.
34493         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34494         (gl_PREREQ_CHOWN): Delete.
34495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34496         * modules/unistd (Makefile.am): Populate it.
34497         * lib/unistd.in.h (chown): Update declaration.
34498         * lib/lchown.c (chown): Update client.
34499         * modules/lchown (Depends-on): Add lstat.
34500         * doc/posix-functions/chown.texi (chown): Document the bug.
34501         * doc/posix-functions/getgroups.texi (getgroups): Document
34502         getgroups pitfall.
34503         * modules/chown-tests: New file.
34504         * tests/test-chown.h (test_chown): Likewise.
34505         * tests/test-chown.c (main): Likewise.
34506
34507 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34508
34509         gnulib-tool: correctly detect absence of m4 directories
34510         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34511
34512 2009-11-14  Jim Meyering  <meyering@redhat.com>
34513
34514         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34515         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34516
34517 2009-11-14  John W. Eaton  <jwe@gnu.org>
34518
34519         strftime.h: wrap funtion declaration in extern "C" block
34520         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34521
34522 2009-11-13  Eric Blake  <ebb9@byu.net>
34523
34524         getgroups: avoid compiler warning
34525         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34526
34527         getgroups: work around FreeBSD bug
34528         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34529         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34530         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34531         * tests/test-getgroups.c (main): Fix buffer overrun.
34532
34533         getgroups: avoid compilation failure
34534         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34535         * modules/getgroups (Depends-on): Add stdint.
34536
34537 2009-11-13  Jim Meyering  <meyering@redhat.com>
34538
34539         test-getgroups: avoid compilation failure
34540         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34541
34542 2009-11-13  Eric Blake  <ebb9@byu.net>
34543
34544         mgetgroups: new module, taken from coreutils
34545         * modules/mgetgroups: New file.
34546         * lib/mgetgroups.h: Likewise.
34547         * lib/mgetgroups.c (mgetgroups): Likewise.
34548         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34549         * MODULES.html.sh (Users and groups): Mention it.
34550
34551         getgroups: don't expose GETGROUPS_T to user
34552         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34553         an element at a time if GETGROUPS_T is wrong size.
34554         * lib/getugroups.h (getugroups): Change signature.
34555         * lib/unistd.in.h (getgroups): Likewise.
34556         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34557         signature needs fixing.
34558         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34559         AC_TYPE_GETGROUPS.
34560         * modules/group-member (Depends-on): Add getgroups.
34561         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34562         (group_member): Rely on getgroups replacement.
34563         * lib/getugroups.c (getugroups): Use gid_t.
34564         * tests/test-getgroups.c (main): Likewise.
34565         * NEWS: Mention the signature change.
34566         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34567         problem with signature.
34568         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34569         GETGROUPS_T is still useful for setgroups.
34570
34571         getgroups, getugroups: provide stubs for mingw
34572         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34573         * lib/getugroups.c (getugroups): Likewise.
34574         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34575         function.  Modernize replacement scheme.
34576         (gl_PREREQ_GETGROUPS): Delete.
34577         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34578         * modules/getgroups (configure.ac): Declare witness.
34579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34580         * modules/unistd (Depends-on): Substitute witness.
34581         * lib/unistd.in.h (getgroups): Declare replacement.
34582
34583         getgroups: avoid calling exit
34584         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34585         drop xalloc.
34586         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34587         dependencies.
34588         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34589         exiting, in the rare case of malloc failure.
34590
34591         getgroups: fix logic error
34592         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34593         has more than 20 groups.
34594         * modules/getgroups-tests: New test.
34595         * tests/test-getgroups.c: New file.
34596
34597 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34598
34599         * tests/test-base64.c: Improve.
34600
34601 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34602
34603         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34604         Blake <ebb9@byu.net>.
34605
34606 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34607
34608         * tests/test-xvasprintf.c: Add %s%s related checks.
34609
34610 2009-11-12  Eric Blake  <ebb9@byu.net>
34611
34612         version-etc: match standards.texi style
34613         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34614         and use <> only for URLs.
34615
34616 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34617
34618         fts: do not fail on a submount during traversal
34619         * lib/fts.c (fts_build): Read the stat info again after opening
34620         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34621         Original report at http://bugzilla.redhat.com/501848.
34622
34623 2009-11-12  Jim Meyering  <meyering@redhat.com>
34624
34625         bootstrap: sync from coreutils
34626         * build-aux/bootstrap (bootstrap_epilogue): New function.
34627         Use git_modules_config in one more place.  This make bootstrap's
34628         --gnulib-srcdir option more useful for testing.
34629
34630         bootstrap: generalize autoheader check
34631         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34632         AC_CONFIG_HEADERS.
34633
34634 2009-11-11  Eric Blake  <ebb9@byu.net>
34635
34636         mkfifoat: use new modules for Solaris and BSD bugs
34637         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34638         * lib/mkfifoat.c (mknodat): Split...
34639         * lib/mknodat.c (mknodat): ...into new file.
34640         * modules/mkfifoat (Files): Ship new file.
34641         (Depends-on): Add mkfifo, mknod.
34642         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34643         (Depends-on): Add symlink.
34644         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34645         redundant with test_mkfifo.h.
34646         (do_mkfifoat, do_mknodat): New helpers.
34647
34648         mknod: new module
34649         * modules/mknod: New file.
34650         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34651         * lib/mknod.c (mknod): Likewise.
34652         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34653         defaults.
34654         * modules/sys_stat (Makefile.am): Substitute them.
34655         * lib/sys_stat.in.h (mknod): Declare replacement.
34656         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34657         Document it.
34658         * doc/posix-functions/mknod.texi (mknod): Likewise.
34659         * modules/mknod-tests: New test.
34660         * tests/test-mknod.c: Likewise.
34661
34662         mkfifo: new module
34663         * modules/mkfifo: New file.
34664         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34665         * lib/mkfifo.c (mkfifo): Likewise.
34666         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34667         defaults.
34668         * modules/sys_stat (Makefile.am): Substitute them.
34669         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34670         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34671         Document it.
34672         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34673         * modules/mkfifo-tests: New test.
34674         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34675         from test-mkfifoat.c.
34676         * tests/test-mkfifo.c: New file.
34677
34678         readlink: detect FreeBSD bug
34679         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34680         slash on symlink.
34681         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34682         * tests/test-readlink.h (test_readlink): Enhance test.
34683
34684         symlink: detect FreeBSD bug
34685         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34686         slash on symlink.
34687         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34688         * tests/test-symlink.h (test_symlink): Enhance test.
34689
34690 2009-11-10  Eric Blake  <ebb9@byu.net>
34691
34692         link: detect FreeBSD bug
34693         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34694         symlink.
34695         * doc/posix-functions/link.texi (link): Document the bug.
34696         * tests/test-link.h (test_link): Enhance test.
34697         * tests/test-linkat.c (main): Update caller.
34698
34699         unlink, remove: detect FreeBSD bug
34700         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34701         slash on symlink.
34702         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34703         * doc/posix-functions/remove.texi (remove): Likewise.
34704         * tests/test-unlink.h (test_unlink): Enhance test.
34705         * tests/test-remove.c (main): Likewise.
34706
34707 2009-11-09  Eric Blake  <ebb9@byu.net>
34708
34709         rename: detect FreeBSD bug
34710         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34711         slash on symlink.
34712         * modules/renameat-tests (Depends-on): Add filenamecat.
34713         * tests/test-rename.h (test_rename): Allow one more errno.
34714         * tests/test-renameat.c (main): Likewise.
34715         * doc/posix-functions/rename.texi (rename): Document the bug.
34716
34717         open: detect FreeBSD bug
34718         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34719         symlink.
34720         * doc/posix-functions/open.texi (open): Document the bug.
34721         * doc/posix-functions/utimes.texi (utimes): Likewise.
34722         * tests/test-open.h (test_open): Add parameters, and test symlink
34723         handling.
34724         * tests/test-open.c (main): Adjust caller.
34725         * tests/test-fcntl-safer.c (main): Likewise.
34726         * modules/open-tests (Depends-on): Add stdbool, symlink.
34727         * modules/fcntl-safer-tests (Depends-on): Likewise.
34728         * tests/test-openat.c (main): Add test-open tests.
34729
34730         stat: detect FreeBSD bug
34731         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34732         symlink.
34733         * doc/posix-functions/stat.texi (stat): Document the bug.
34734         * tests/test-stat.h (test_stat_func): Add argument.
34735         * tests/test-stat.c (main): Adjust caller.
34736         * tests/test-fstatat.c (main): Likewise.
34737         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34738         Reported by Jim Meyering.
34739
34740 2009-11-09  James Youngman  <jay@gnu.org>
34741
34742         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34743         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34744
34745 2009-11-08  Jim Meyering  <meyering@redhat.com>
34746
34747         utimens: remove invalid futimesat call
34748         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34749         It used the file descriptor of the target file as the DIR_FD
34750         parameter and NULL as the file name.  That caused failure with
34751         errno == EFAULT on FreeBSD-8.0-rc2
34752
34753 2009-11-07  Eric Blake  <ebb9@byu.net>
34754
34755         fflush, freadseek: use fseeko, not fseek
34756         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34757         (clear_ungetc_buffer): Avoid potential problems on large files.
34758         * lib/freadseek.c (freadseek): Likewise.
34759         * modules/freadseek (Depends-on): Add fseeko.
34760         * modules/fseek (configure.ac): Set a witness.
34761         * tests/test-fflush.c (main): Use fseeko.
34762         * tests/test-fpurge.c (fseek): Disable link warning.
34763         * tests/test-freadable.c (fseek): Likewise.
34764         * tests/test-freading.c (fseek): Likewise.
34765         * tests/test-fseeko.c (fseek): Likewise.
34766         * tests/test-ftell.c (fseek): Likewise.
34767         * tests/test-ftello.c (fseek): Likewise.
34768         * tests/test-fwritable.c (fseek): Likewise.
34769         * tests/test-fwriting.c (fseek): Likewise.
34770
34771 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34772
34773         * modules/memchr (Depends-on): Drop getpagesize dependency.
34774
34775 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34776
34777         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34778         Reported by Ludovic Courtès.
34779         * build-aux/pmccabe2html: Improve example usage.
34780         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34781
34782 2009-11-06  Jim Meyering  <meyering@redhat.com>
34783
34784         do-release-commit-and-tag: New module.
34785         Automate the release-commit and tag process.
34786         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34787         * modules/do-release-commit-and-tag: New file.
34788         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34789
34790 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34791
34792         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34793         because test-select.c uses inet_pton.
34794
34795 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34796
34797         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34798         GETADDRINFO_LIB.  Bump serial number.
34799         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34800         Suggested by Eric Blake <ebb9@byu.net>.
34801
34802 2009-11-05  Eric Blake  <ebb9@byu.net>
34803
34804         strtod: detect darwin bug
34805         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34806         Reported by Leo Davis.
34807
34808         freopen-safer: new module
34809         * modules/freopen-safer: New module.
34810         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34811         * lib/freopen-safer.c (freopen_safer): New file.
34812         * lib/stdio-safer.h (freopen_safer): New declaration.
34813         * lib/stdio--.h (freopen): New override.
34814         * MODULES.html.sh (File stream based Input/Output): Mention it.
34815         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34816         freopen-safer module.
34817         * doc/posix-functions/stderr.texi (stderr): Likewise.
34818         * doc/posix-functions/stdin.texi (stdin): Likewise.
34819         * doc/posix-functions/stdout.texi (stdout): Likewise.
34820         * modules/freopen-safer-tests: New test.
34821         * tests/test-reopen-safer.c: New file.
34822
34823 2009-11-05  Jim Meyering  <meyering@redhat.com>
34824
34825         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34826         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34827
34828 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34829
34830         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34831
34832 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34833
34834         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34835
34836 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34837
34838         Fix link error.
34839         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34840         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34841
34842 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34843
34844         * tests/test-func.c: Also test value of __func__.
34845
34846 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34847
34848         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34849         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34850
34851 2009-11-05  Bruno Haible  <bruno@clisp.org>
34852
34853         Fix link error.
34854         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34855         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34856         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34857
34858 2009-11-05  Bruno Haible  <bruno@clisp.org>
34859
34860         Tests for module 'inet_pton'.
34861         * modules/inet_pton-tests: New file.
34862         * tests/test-inet_pton.c: New file.
34863
34864 2009-11-05  Bruno Haible  <bruno@clisp.org>
34865
34866         Tests for module 'inet_ntop'.
34867         * modules/inet_ntop-tests: New file.
34868         * tests/test-inet_ntop.c: New file.
34869
34870 2009-11-04  Eric Blake  <ebb9@byu.net>
34871
34872         stdlib-safer: wrap all mkstemp variants
34873         * modules/mkostemp (configure.ac): Set witness.
34874         * modules/mkostemps (configure.ac): Likewise.
34875         * modules/mkstemps (configure.ac): Likewise.
34876         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34877         (mkstemps_safer): Wrap more functions.
34878         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34879         wrapping.
34880         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34881         (mkstemps_safer): Implement the wrappers.
34882
34883         mkstemps, mkostemps: new modules
34884         * modules/mkostemps: New module.
34885         * modules/mkstemps: Likewise.
34886         * lib/mkostemps.c (mkostemps): New file.
34887         * lib/mkstemps.c (mkstemps): Likewise.
34888         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34889         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34891         * modules/stdlib (Makefile.am): Substitute them.
34892         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34893         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34894         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34895         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34896         * MODULES.html.sh (File system functions): Mention them.
34897
34898         tempname: resync from glibc
34899         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34900         same values for __GT_FILE as glibc.  Abort even when assertions
34901         are disabled.
34902         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34903         match its value otherwise.  Allow idempotent inclusion.
34904         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34905         * lib/mkostemp.c (mkostemp): Likewise.
34906         * lib/mkstemp.c (mkstemp): Likewise.
34907         * lib/tmpfile.c (tmpfile): Likewise.
34908         * NEWS: Document this.
34909
34910         utimens: fix use of futimens on older Linux
34911         * lib/utimens.c (fdutimens): Use updated, rather than original,
34912         timespec to avoid bug in older Linux kernel.
34913         Reported by Simon Josefsson.
34914
34915 2009-11-04  Bruno Haible  <bruno@clisp.org>
34916
34917         Make num_processors more flexible and consistent.
34918         * lib/nproc.h (enum nproc_query): New type.
34919         (num_processors): Add a 'query' argument.
34920         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34921         (num_processors): Add a 'query' argument. Test the value of the
34922         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34923         mingw, count the number of CPUs available for the current process.
34924         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34925         Check for sched_getaffinity and sched_getaffinity_np.
34926         * modules/nproc (Depends-on): Add c-ctype, extensions.
34927         * NEWS: Mention the change.
34928
34929 2009-11-03  Bruno Haible  <bruno@clisp.org>
34930
34931         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34932
34933 2009-11-03  Jim Meyering  <meyering@redhat.com>
34934
34935         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34936         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34937         if it is defined.
34938
34939 2009-11-02  Eric Blake  <ebb9@byu.net>
34940
34941         mktime, timegm: share common declaration
34942         * lib/mktime-internal.h: New file.
34943         * lib/mktime.c: Use it rather than open-coding a declaration.
34944         * lib/timegm.c: Likewise.
34945         * modules/mktime (Files): Ship it.
34946         * modules/timegm (Files): Likewise.
34947         Suggested by Bruno Haible.
34948
34949         test-update-copyright: update test to match script changes
34950         * tests/test-update-copyright.sh: Avoid hard-coding perl
34951         location.  Don't update *.bak created by earlier runs.
34952
34953 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34954             Simon Josefsson  <simon@josefsson.org>
34955             Bruno Haible  <bruno@clisp.org>
34956
34957         Fix link error on Solaris 8.
34958         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34959         also in libnsl. Define also INET_PTON_LIB.
34960         * modules/inet_pton (Link): New section.
34961
34962 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34963             Bruno Haible  <bruno@clisp.org>
34964
34965         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34966         * modules/inet_ntop (Link): New section.
34967         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34968
34969 2009-11-02  Eric Blake  <ebb9@byu.net>
34970
34971         maint: avoid compiler warnings in m4 macros
34972         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34974
34975 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34976
34977         * m4/pmccabe2html.m4: Remove file.
34978         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34979         function.  Change maintainer.
34980         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34981         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34982         Courtès).
34983
34984 2009-10-31  Eric Blake  <ebb9@byu.net>
34985
34986         fseeko: fix m4 regression
34987         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34988         regression from 2009-10-27.
34989         Reported by Ralf Wildenhues.
34990
34991 2009-10-31  Jim Meyering  <meyering@redhat.com>
34992
34993         inttostr: aesthetics and improved (compile-time) safety
34994         Define inttype_is_signed rather than inttype_is_unsigned,
34995         since the sole use is via "#if inttype_is_signed".
34996         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34997         inttype_is_unsigned.
34998         * lib/offtostr.c (inttype_is_signed): Likewise.
34999         * lib/uinttostr.c (inttype_is_signed): Likewise.
35000         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35001         * lib/inttostr.c (inttostr): Use verify to cross-check the
35002         inttype_is_signed value and the signedness of the actual type.
35003         * modules/inttostr (Depends-on): Add verify.
35004
35005 2009-10-30  Eric Blake  <ebb9@byu.net>
35006
35007         build: avoid compiler warnings
35008         * lib/fchmodat.c (lchmod): Mark unused variables.
35009         * lib/getopt.c (_getopt_initialize): Likewise.
35010         * lib/mktime.c (__mktime_internal): Provide prototype.
35011         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35012         older gcc that do not understand #pragma GCC diagnostic.
35013         * lib/uinttostr.c (inttype_is_unsigned): Define.
35014         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35015
35016 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35017
35018         stat: fix compilation on AIX
35019         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35020         only see struct stat64.
35021
35022 2009-10-30  Eric Blake  <ebb9@byu.net>
35023
35024         exclude: make more robust
35025         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35026         rather than masking a coding bug.
35027         Suggested by Bruno Haible.
35028
35029 2009-10-30  Jim Meyering  <meyering@redhat.com>
35030
35031         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35032         Rather than putting #!/usr/bin/perl on the first line,
35033         start with a variant of what's recommended by "man perlrun" that
35034         invokes the first "perl" program from your shell's search path.
35035         * build-aux/gitlog-to-changelog: Replace #!... as above.
35036         Add a "Local Variables" perl mode setting.
35037         Prompted by a patch from Ludovic Courtès.
35038         Improved by Eric Blake.
35039         * build-aux/useless-if-before-free: Likewise.
35040         * build-aux/announce-gen: Likewise.
35041         * build-aux/update-copyright: Likewise.
35042
35043 2009-10-29  Eric Blake  <ebb9@byu.net>
35044
35045         filenamecat-lgpl: adjust clients
35046         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35047         filenamecat.
35048         * modules/renameat (Depends-on): Likewise.
35049
35050         filenamecat: split into filenamecat-lgpl
35051         * modules/filenamecat-lgpl: New module.
35052         * modules/filenamecat (Files): Move library-safe files into
35053         filenamecat-lgpl.
35054         (Depends-on): Add filenamecat-lgpl.
35055         (configure.ac): Declare witness.
35056         * lib/filenamecat.h (file_name_concat): Only declare when using
35057         GPL module.
35058         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35059         Move...
35060         * lib/filenamecat-lgpl.c: ...into new file.
35061         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35062         (gl_FILE_NAME_CONCAT): Use it.
35063         * MODULES.html.sh (File system functions): Mention new module.
35064
35065         argp: avoid memory leak
35066         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35067         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35068         base_name, since the latter malloc()s and can call exit().
35069         Leak introduced 2006-07-03.
35070
35071         dirname-lgpl: adjust clients that don't need full dirname
35072         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35073         * modules/filenamecat (Depends-on): Likewise.
35074         * modules/linkat (Depends-on): Likewise.
35075         * modules/mkancesdirs (Depends-on): Likewise.
35076         * modules/mkdir (Depends-on): Likewise.
35077         * modules/openat (Depends-on): Likewise.
35078         * modules/savewd (Depends-on): Likewise.
35079         * modules/rename (Depends-on): Likewise.
35080         (License): Relax license.
35081         * modules/mkdir-tests (Depends-on): Drop progname.
35082         (Makefile.am): Delete unneeded LDADD.
35083         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35084
35085         dirname: split into dirname-lgpl
35086         * modules/dirname-lgpl: New module.
35087         * modules/dirname (Files): Move library-safe files into
35088         dirname-lgpl.
35089         (Depends-on): Add dirname-lgpl.
35090         (configure.ac): Declare witness.
35091         * modules/double-slash-root (License): Relax license.
35092         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35093         module.
35094         * lib/dirname.c (dir_len, mdir_name): Move...
35095         * lib/dirname-lgpl.c: ...into new file.
35096         * lib/basename.c (last_component, base_len): Move...
35097         * lib/basename-lgpl.c: ...into new file.
35098         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35099         (gl_DIRNAME): Use it.
35100         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35101         Mention new module.
35102         * modules/dirname-tests (Depends-on): Add progname.
35103         * tests/test-dirname.c (program_name): Delete.
35104
35105         mkdir: make safe for libraries
35106         * modules/mkdir (Depends-on): Drop xalloc.
35107         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35108         exit.
35109
35110         tests: avoid some compiler warnings
35111         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35112         literals.
35113         * tests/test-memchr.c (main): Avoid type mismatch.
35114         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35115         * tests/test-base64.c (main): Likewise.
35116         * tests/test-getdelim.c (main): Likewise.
35117         * tests/test-gethostname.c (main): Likewise.
35118         * tests/test-getline.c (main): Likewise.
35119         * tests/test-netinet_in.c (main): Likewise.
35120         * tests/test-select.c (open_server_socket, main): Likewise.
35121         * tests/test-select-stdin.c (main): Likewise.
35122         * tests/test-sockets.c (main): Likewise.
35123         * tests/test-strsignal.c (main): Likewise.
35124         * tests/test-sys_select.c (main): Likewise.
35125         * tests/test-sys_socket.c (main): Likewise.
35126         * tests/test-u64.c (main): Likewise.
35127         * tests/test-xfprintf-posix.c (main): Likewise.
35128         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35129
35130         sockets: avoid compiler warning
35131         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35132
35133         maint: detect usage(1) and other suspicious exits
35134         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35135
35136 2009-10-29  Jim Meyering  <meyering@redhat.com>
35137
35138         timespec: long-to-int truncation could make timespec_cmp malfunction
35139         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35140         a multiple of 2^32 nanoseconds as no difference.
35141
35142 2009-10-28  Jim Meyering  <meyering@redhat.com>
35143
35144         fprintftime: wrap macro code argument in "do {...} while(0)"
35145         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35146         cpy macro must be a statement that can be followed by a semicolon.
35147         Now that the else clause contains a comment and is hence longer
35148         than one line, I require curly braces.  That in turn requires
35149         that we wrap this code block in the standard do...while(0).
35150
35151         fprintftime: remove stray semicolon from previous change
35152         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35153
35154         fprintftime: avoid a warning about ignored fwrite return value
35155         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35156         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35157         that is unsafe.
35158         * modules/fprintftime (Depends-on): Add ignore-value.
35159
35160         exclude: avoid an unwarranted warning
35161         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35162
35163 2009-10-27  Eric Blake  <ebb9@byu.net>
35164
35165         fseek: avoid compilation failure when fflush is replaced
35166         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35167         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35168         module is in use.
35169         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35170         module is not in use; since REPLACE_FSEEK worked otherwise.
35171         (GNULIB_FTELLO): Likewise for ftell.
35172         Reported by Ian Beckwith and others.
35173
35174 2009-10-27  Bruno Haible  <bruno@clisp.org>
35175
35176         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35177         Reported by Jim Meyering.
35178
35179 2009-10-27  Jim Meyering  <jim@meyering.net>
35180             Bruno Haible  <bruno@clisp.org>
35181
35182         Avoid warning despite dropping the return value of fwrite.
35183         * lib/unicodeio.c: Include ignore-value.h.
35184         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35185         * modules/unicodeio (Depends-on): Add ignore-value.
35186
35187 2009-10-26  Eric Blake  <ebb9@byu.net>
35188
35189         areadlinkat: fix fallback path
35190         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35191         pointer and zero.
35192
35193 2009-10-22  PĂ¡draig Brady  <P@draigBrady.com>
35194
35195         Use a better IO block size for modern systems
35196         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35197         * lib/md2.c: Likewise.
35198         * lib/md4.c: Likewise.
35199         * lib/md5.c: Likewise.
35200         * lib/sha1.c: Likewise.
35201         * lib/sha256.c: Likewise.
35202         * lib/sha512.c: Likewise.
35203
35204 2009-10-22  Eric Blake  <ebb9@byu.net>
35205
35206         tests: avoid several compiler warnings
35207         * tests/test-getcwd.c (main): Avoid buffer underflow.
35208         * tests/test-getdate.c (main): String literals are not safe with
35209         putenv, so use setenv.  Declare unused argument.
35210         * modules/getdate-tests (Depends-on): Add setenv.
35211         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35212         problems with string literals in char *.
35213         * tests/test-hash.c (main): Avoid shadowing declaration.
35214         (insert_new): Treat string literals as char const *.
35215         * tests/test-getopt.h (test_getopt): Likewise.
35216         (getopt_loop): Alter types to minimize casting elsewhere.
35217         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35218         (test_getopt_long_posix): Likewise.
35219         (do_getopt_long): Add wrapper to minimize casting.
35220         * tests/test-atexit.c (clear_temp_file): Use void.
35221         * tests/test-areadlink-with-size.c (main): Declare unused
35222         arguments.
35223         * tests/test-areadlink.c (main): Likewise.
35224         * tests/test-areadlinkat-with-size.c (main): Likewise.
35225         * tests/test-areadlinkat.c (main): Likewise.
35226         * tests/test-canonicalize-lgpl.c (main): Likewise.
35227         * tests/test-canonicalize.c (main): Likewise.
35228         * tests/test-dirent-safer.c (main): Likewise.
35229         * tests/test-dirname.c (main): Likewise.
35230         * tests/test-dup2.c (main): Likewise.
35231         * tests/test-fchdir.c (main): Likewise.
35232         * tests/test-fcntl-h.c (main): Likewise.
35233         * tests/test-fcntl-safer.c (main): Likewise.
35234         * tests/test-fdopendir.c (main): Likewise.
35235         * tests/test-fdutimensat.c (main): Likewise.
35236         * tests/test-fflush.c (main): Likewise.
35237         * tests/test-filenamecat.c (main): Likewise.
35238         * tests/test-filevercmp.c (main): Likewise.
35239         * tests/test-fopen-safer.c (main): Likewise.
35240         * tests/test-fopen.c (main): Likewise.
35241         * tests/test-fpending.c (main): Likewise.
35242         * tests/test-fpurge.c (main): Likewise.
35243         * tests/test-freading.c (main): Likewise.
35244         * tests/test-fstatat.c (main): Likewise.
35245         * tests/test-fsync.c (main): Likewise.
35246         * tests/test-futimens.c (main): Likewise.
35247         * tests/test-getndelim2.c (main): Likewise.
35248         * tests/test-gettimeofday.c (main): Likewise.
35249         * tests/test-getopt.c (main): Likewise.
35250         * tests/test-i-ring.c (main): Likewise.
35251         * tests/test-inttypes.c (main): Likewise.
35252         * tests/test-link.c (main): Likewise.
35253         * tests/test-lstat.c (main): Likewise.
35254         * tests/test-math.c (main): Likewise.
35255         * tests/test-md5.c (main): Likewise.
35256         * tests/test-memchr2.c (main): Likewise.
35257         * tests/test-memrchr.c (main): Likewise.
35258         * tests/test-mkdir.c (main): Likewise.
35259         * tests/test-mkdirat.c (main): Likewise.
35260         * tests/test-mkfifoat.c (main): Likewise.
35261         * tests/test-open.c (main): Likewise.
35262         * tests/test-openat-safer.c (main): Likewise.
35263         * tests/test-openat.c (main): Likewise.
35264         * tests/test-quotearg.c (main): Likewise.
35265         * tests/test-rawmemchr.c (main): Likewise.
35266         * tests/test-readlink.c (main): Likewise.
35267         * tests/test-remove.c (main): Likewise.
35268         * tests/test-rename.c (main): Likewise.
35269         * tests/test-renameat.c (main): Likewise.
35270         * tests/test-rmdir.c (main): Likewise.
35271         * tests/test-sha1.c (main): Likewise.
35272         * tests/test-signal.c (main): Likewise.
35273         * tests/test-sigaction.c (main): Likewise.
35274         * tests/test-stat.c (main): Likewise.
35275         * tests/test-stat-time.c (main): Likewise.
35276         * tests/test-stddef.c (main): Likewise.
35277         * tests/test-stdint.c (main): Likewise.
35278         * tests/test-stdio.c (main): Likewise.
35279         * tests/test-stdlib.c (main): Likewise.
35280         * tests/test-strchrnul.c (main): Likewise.
35281         * tests/test-strerror.c (main): Likewise.
35282         * tests/test-string.c (main): Likewise.
35283         * tests/test-strtod.c (main): Likewise.
35284         * tests/test-strverscmp.c (main): Likewise.
35285         * tests/test-symlink.c (main): Likewise.
35286         * tests/test-symlinkat.c (main): Likewise.
35287         * tests/test-sys_stat.c (main): Likewise.
35288         * tests/test-sys_time.c (main): Likewise.
35289         * tests/test-time.c (main): Likewise.
35290         * tests/test-unistd.c (main): Likewise.
35291         * tests/test-unlink.c (main): Likewise.
35292         * tests/test-unlinkat.c (main): Likewise.
35293         * tests/test-utimens.c (main): Likewise.
35294         * tests/test-utimensat.c (main): Likewise.
35295         * tests/test-version-etc.c (main): Likewise.
35296         * tests/test-wchar.c (main): Likewise.
35297         * tests/test-wctype.c (main): Likewise.
35298         * tests/test-xprintf-posix.c (main): Likewise.
35299         * tests/test-posixtm.c (main): Likewise.
35300         (STREQ): Delete unused macro.
35301         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35302         shadowed variables.
35303         * tests/test-memchr.c (main): Likewise.
35304
35305 2009-10-21  Eric Blake  <ebb9@byu.net>
35306
35307         areadlinkat: avoid failure on older glibc
35308         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35309         rather than mis-comparing 0 against FUNC_RESULT of char*.
35310
35311 2009-10-21  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/stpncpy (License): Relicense under LGPLv2+.
35314         Reported by David Lutterkort <lutter@redhat.com>.
35315
35316 2009-10-20  Eric Blake  <ebb9@byu.net>
35317
35318         utimensat: work around Solaris 9 bug
35319         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35320         has trailing slash bugs.
35321         * tests/test-lutimens.h (test_lutimens): Enhance test.
35322         * tests/test-utimens.h (test_utimens): Likewise.
35323         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35324         * doc/posix-functions/utimes.texi (utimes): Likewise.
35325         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35326         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35327         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35328         * doc/posix-functions/futimens.texi (futimens): Likewise.
35329
35330         fdutimensat: new module
35331         * modules/fdutimensat: New file.
35332         * lib/fdutimensat.c (fdutimensat): Likewise.
35333         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35334         * MODULES.html.sh (File system functions): Mention module.
35335         * modules/fdutimensat-tests: New test.
35336         * tests/test-fdutimensat.c: Likewise.
35337
35338         doc: regenerate INSTALL
35339         * doc/INSTALL: Reflect recent autoconf update.
35340         * doc/INSTALL.ISO: Likewise.
35341         * doc/INSTALL.UTF-8: Likewise.
35342
35343 2009-10-20  PĂ¡draig Brady  <P@draigBrady.com>
35344
35345         acl: warn if ACL support is not detected
35346         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35347
35348 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35349
35350         * lib/nproc.h: Add extern "C" block for C++.
35351
35352 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35353             Bruno Haible  <bruno@clisp.org>
35354
35355         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35356         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35357         * doc/posix-functions/isalpha.texi: Likewise.
35358         * doc/posix-functions/isblank.texi: Likewise.
35359         * doc/posix-functions/iscntrl.texi: Likewise.
35360         * doc/posix-functions/isdigit.texi: Likewise.
35361         * doc/posix-functions/isgraph.texi: Likewise.
35362         * doc/posix-functions/islower.texi: Likewise.
35363         * doc/posix-functions/isprint.texi: Likewise.
35364         * doc/posix-functions/ispunct.texi: Likewise.
35365         * doc/posix-functions/isspace.texi: Likewise.
35366         * doc/posix-functions/isupper.texi: Likewise.
35367         * doc/posix-functions/isxdigit.texi: Likewise.
35368
35369 2009-10-18  Bruno Haible  <bruno@clisp.org>
35370
35371         Tests for module 'isblank'.
35372         * modules/isblank-tests: New file.
35373         * tests/test-isblank.c: New file.
35374
35375         New module 'isblank'.
35376         * lib/isblank.c: New file.
35377         * m4/isblank.m4: New file.
35378         * modules/isblank: New file.
35379         * doc/posix-functions/isblank.texi: Mention the new module.
35380
35381 2009-10-18  Bruno Haible  <bruno@clisp.org>
35382
35383         New module 'ctype'.
35384         * lib/ctype.in.h: New file.
35385         * m4/ctype.m4: New file.
35386         * modules/ctype: New file.
35387         * doc/posix-headers/ctype.texi: Mention the new module.
35388
35389 2009-10-18  Jim Meyering  <meyering@redhat.com>
35390
35391         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35392         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35393         right after its initialization, rather than farther down.
35394         Keeping these in close proximity makes it easier to ensure
35395         that each such variable is initialized.  E.g.,
35396
35397             LIB_CLOCK_GETTIME=
35398             AC_SUBST([LIB_CLOCK_GETTIME])
35399
35400         This change also increments these serial numbers.
35401         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35402         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35404
35405 2009-10-18  Bruno Haible  <bruno@clisp.org>
35406
35407         Don't let environment variables perturb build.
35408         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35409         (gl_PREREQ_GETHRXTIME): ... not here.
35410
35411 2009-10-18  Bruno Haible  <bruno@clisp.org>
35412
35413         Avoid symlink attack in localcharset module.
35414         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35415         (O_NOFOLLOW): Define fallback.
35416         (get_charset_aliases): Don't open the file if it is a symbolic link.
35417         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35418         gl_FCNTL_H.
35419         (gl_FCNTL_H): Require it.
35420         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35421         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35422         Reported by Fergal Glynn <fglynn@veracode.com>.
35423
35424 2009-10-18  Bruno Haible  <bruno@clisp.org>
35425
35426         Implement nproc for mingw.
35427         * lib/nproc.c: Include <windows.h>
35428         (num_processors): On native Windows platforms, try GetSystemInfo.
35429
35430 2009-10-18  Bruno Haible  <bruno@clisp.org>
35431
35432         Implement nproc for IRIX.
35433         * lib/nproc.c: Include <sys/sysmp.h>.
35434         (num_processors): On IRIX systems, try sysmp.
35435         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35436
35437 2009-10-18  Bruno Haible  <bruno@clisp.org>
35438
35439         Implement nproc for HP-UX.
35440         * lib/nproc.c: Include <sys/pstat.h>
35441         (num_processors): On HP-UX systems, try pstat_getdynamic.
35442         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35443         pstat_getdynamic.
35444
35445 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35446             Bruno Haible  <bruno@clisp.org>
35447
35448         Implement nproc for NetBSD, OpenBSD.
35449         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35450         (ARRAY_SIZE): New macro.
35451         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35452         * m4/nproc.m4: New file.
35453         * modules/nproc (Files): Add m4/nproc.m4.
35454         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35455         (Makefile.am): Instead, augment lib_SOURCES.
35456
35457 2009-10-18  Bruno Haible  <bruno@clisp.org>
35458
35459         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35460         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35461         sys/param.h.
35462
35463 2009-10-16  Eric Blake  <ebb9@byu.net>
35464
35465         utimensat: new module
35466         * modules/utimensat: New file.
35467         * lib/utimensat.c (utimensat): Likewise.
35468         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35469         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35470         so we can work around Linux bugs.
35471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35472         * modules/sys_stat (Makefile.am): Substitute them.
35473         * lib/sys_stat.in.h (utimensat): Declare it.
35474         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35475         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35476         * modules/utimensat-tests: New test.
35477         * tests/test-utimensat.c: Likewise.
35478
35479         utimens: let lutimens work on non-symlinks
35480         * lib/utimens.c (lutimens): Fall back to utimens rather than
35481         failing with ENOSYS, when file is not a symlink.
35482         (utimens): Reduce redirection.
35483         * tests/test-lutimens.h (test_lutimens): Update test to cover
35484         non-symlinks.
35485         * tests/test-utimens.h (test_utimens): Update test to cover
35486         symlinks.
35487         * tests/test-utimens.c (main): Update caller.
35488
35489         utimens: cache whether utimensat syscall works
35490         * lib/utimens.c (utimensat_works_really): New cache variable.
35491         (fdutimens, lutimens): Use it to avoid failing syscall.
35492
35493         test-stat-time, test-utimens: improve portability
35494         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35495         ext4 on alpha, and for cygwin.
35496         * tests/test-utimens-common.h: New file.
35497         (nap): Factor delays into single function.
35498         * tests/test-lutimens.h (test_lutimens): Use new header.
35499         * tests/test-futimens.h (test_futimens): Likewise.
35500         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35501         timestamps to occur from same machine, as was done previously for
35502         test_utimens.
35503         * modules/utimens-tests (Files): Ship new file.
35504         * modules/futimens-tests (Files): Likewise.
35505         Reported in part by Jim Meyering.
35506
35507         sys_stat: sort replacement declarations
35508         * lib/sys_stat.in.h: Sort declarations.
35509         * lib/futimens.c (futimens): Fix typo.
35510
35511 2009-10-15  Jim Meyering  <meyering@redhat.com>
35512
35513         don't let environment settings perturb build
35514         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35515         could cause a configure-time and/or build-time malfunction.
35516         Typically, a configure-time function-in-library test is performed
35517         via code like this:
35518
35519           LIB_VAR=
35520           AC_SUBST([LIB_VAR])
35521           prefix_saved_LIBS=$LIBS
35522             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35523                        [test "$ac_cv_search_FUNC" = "none required" ||
35524                         LIB_VAR=$ac_cv_search_FUNC])
35525           LIBS=$prefix_saved_LIBS
35526
35527         However, in each of the files affected by this change, the LIB_VAR=
35528         initialization was omitted.  Thus, when set in the environment, its
35529         value would propagate into generated Makefiles when FUNC is not found
35530         in LIB_NAME.
35531         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35532         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35534
35535 2009-10-14  Eric Blake  <ebb9@byu.net>
35536
35537         fchdir: avoid infinite recursion in mingw
35538         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35539         recursing.
35540
35541         test-stat-time: port to mingw
35542         * tests/test-stat-time.c (force_unlink): Return a value.
35543         (test_ctime) [W32]: Fix compilation error.
35544         (nap): Don't call usleep with too large an argument.  Use
35545         force_unlink.
35546         * doc/pastposix-functions/usleep.texi (usleep): Document the
35547         portability issue.
35548
35549 2009-10-13  Jim Meyering  <meyering@redhat.com>
35550
35551         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35552         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35553         * modules/pipe-filter-ii: Likewise.
35554         * modules/sys_socket-tests: Likewise.
35555         * modules/tsearch-tests: Likewise.
35556         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35557         (check): Depend on it.
35558
35559 2009-10-12  Eric Blake  <ebb9@byu.net>
35560
35561         utimens-tests: port to NFS file systems
35562         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35563         comparisons to avoid spurious failures from timestamp drift
35564         between NFS machines.
35565
35566 2009-10-12  Eric Blake  <ebb9@byu.net>
35567
35568         stat-time-tests: minor cleanups
35569         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35570         * tests/test-stat-time.c (nap): Separate assignment from call.
35571         Suggested by Paolo Bonzini and Bruno Haible.
35572
35573         sys_stat: guarantee struct timespec
35574         * lib/sys_stat.in.h (includes): Always include <time.h>
35575         * modules/sys_stat (Depends-on): Add time.
35576         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35577         mode_t permission values.
35578         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35579         get at subsecond timestamps.
35580
35581 2009-10-10  Eric Blake  <ebb9@byu.net>
35582
35583         futimens: new module
35584         * modules/futimens: New file.
35585         * lib/futimens.c (futimens): Likewise.
35586         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35587         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35588         we can work around Linux bugs.
35589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35590         * modules/sys_stat (Makefile.am): Substitute them.
35591         * lib/sys_stat.in.h (futimens): Declare it.
35592         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35593         * doc/posix-functions/futimens.texi (futimens): Likewise.
35594         * modules/futimens-tests: New test.
35595         * tests/test-futimens.c: Likewise.
35596
35597         utimens: introduce fdutimens
35598         * lib/utimens.h (fdutimens): New prototype.
35599         * lib/utimens.c (gl_futimens): Move guts...
35600         (fdutimens): ...to new interface.
35601         * tests/test-utimens.c (do_fdutimens): Use it.
35602
35603         utimens: add UTIME_NOW and UTIME_OMIT support
35604         * lib/utimens.c (validate_timespec, update_timespec): New helper
35605         functions.
35606         (gl_futimens, lutimens): Use them.
35607         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35608         stdbool, sys_stat.
35609         (Link): Mention resulting library dependency.
35610         * modules/utimecmp (Link): Likewise.
35611         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35612         (Makefile.am): Pick up library dependency.
35613         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35614         definition.
35615         * tests/test-sys_stat.c: Test the definitions.
35616         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35617         * NEWS: Document library dependency.
35618
35619         utimecmp: support symlink timestamps
35620         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35621         hashing when possible.  Use pathconf when available.
35622         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35623         * modules/utimecmp (Depends-on): Add lstat.
35624
35625         utimens: add lutimens interface
35626         * lib/utimens.c (lutimens): New function.
35627         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35628         * lib/utimens.h (lutimens): Declare new interface.
35629         * tests/test-utimens.c (main): Enhance test.
35630         * tests/test-lutimens.h (test_lutimens): New file.
35631         * modules/utimens-tests (Files): Distribute it.
35632         (Depends-on): Add symlink.
35633         (configure.ac): Check for usleep.
35634
35635         utimens: validate futimens usage
35636         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35637         fewer syscalls on failure later on.  Avoid compiler warning on
35638         mingw.
35639         * modules/utimens (Depends-on): Add dup2.
35640
35641         utimens: add test
35642         * modules/utimens-tests: New test.
35643         * tests/test-utimens.h: New file.
35644         * tests/test-futimens.h: Likewise.
35645         * tests/test-utimens.c: Likewise.
35646
35647         doc: mention timestamp portability issues
35648         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35649         instead.
35650         * doc/posix-functions/utime.texi (utime): Likewise.
35651         * doc/posix-functions/utimes.texi (utimes): Likewise.
35652         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35653         instead.
35654         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35655         module.
35656         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35657         Mention weakness with symlink timestamps.
35658         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35659         to utimensat/futimens instead.
35660         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35661
35662         test-dup2: enhance test
35663         * tests/test-dup2.c (main): Also check AT_FDCWD.
35664
35665         test-stat-time: avoid more spurious failures
35666         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35667         xfs; and avoid race if the two timestamps cross quantization edge.
35668
35669         relocatable: prefer 'file system' over 'filesystem'
35670         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35671         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35672         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35673         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35674         * lib/relocatable.c (compute_curr_prefix): Likewise.
35675
35676 2009-10-10  Jim Meyering  <meyering@redhat.com>
35677
35678         stat-time-tests: check for the usleep function
35679         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35680
35681 2009-10-10  Bruno Haible  <bruno@clisp.org>
35682
35683         * modules/xnanosleep: Put the Link section after the Include section.
35684
35685 2009-10-09  Eric Blake  <ebb9@byu.net>
35686
35687         dup2: work around FreeBSD 6.1 bug
35688         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35689         * doc/posix-functions/dup2.texi (dup2): Document it.
35690         Reported by Nelson H. F. Beebe and Jim Meyering.
35691
35692         test-stat-time: port to buggy NFS clients
35693         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35694         (test_ctime): Also skip test if mtime and ctime are skewed.
35695
35696         maint: prefer 'file system' over 'filesystem'
35697         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35698         * doc/posix-functions/lstat.texi (lstat): Likewise.
35699         * lib/file-has-acl.c (file_has_acl): Likewise.
35700         * lib/fwriteerror.c [TEST]: Likewise.
35701         * tests/test-areadlink.h (test_areadlink): Likewise.
35702         * tests/test-areadlinkat-with-size.c (main): Likewise.
35703         * tests/test-areadlinkat.c (main): Likewise.
35704         * tests/test-canonicalize-lgpl.c (main): Likewise.
35705         * tests/test-canonicalize.c (main): Likewise.
35706         * tests/test-fstatat.c (main): Likewise.
35707         * tests/test-linkat.c (main): Likewise.
35708         * tests/test-lstat.h (test_lstat_func): Likewise.
35709         * tests/test-mkdir.h (test_mkdir): Likewise.
35710         * tests/test-readlink.h (test_readlink): Likewise.
35711         * tests/test-remove.c (main): Likewise.
35712         * tests/test-rename.h (test_rename): Likewise.
35713         * tests/test-renameat.c (main): Likewise.
35714         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35715         * tests/test-symlink.h (test_symlink): Likewise.
35716         * tests/test-symlinkat.c (main): Likewise.
35717         * tests/test-unlink.h (test_unlink_func): Likewise.
35718         * tests/test-unlinkat.c (main): Likewise.
35719
35720         maint: make realtime library usage explicit
35721         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35722         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35723         * modules/settime (Link): Likewise.
35724         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35725
35726         test-stat-time: speed up execution
35727         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35728         warning on mingw.
35729         (nap): New helper function.
35730         (prepare_test): Use it to reduce sleep time.
35731         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35732         execution.
35733         * modules/stat-time-tests (configure.ac): Check for usleep.
35734
35735 2009-10-09  Jim Meyering  <meyering@redhat.com>
35736
35737         selinux-h: always use getfilecon wrappers
35738         * lib/getfilecon.c: New file.
35739         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35740         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35741         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35742         (fgetfilecon): Provide a stub.
35743         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35744         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35745         file unconditionally.
35746         When <selinux/selinux.h> is found, arrange to use wrappers.
35747         * modules/selinux-h (Files): Add getfilecon.c.
35748         (Makefile.am): Substitute include-next-related bits
35749         into the now-always-generated selinux/selinux.h file.
35750         * doc/glibc-functions/lgetfilecon.texi: New file.
35751         * doc/glibc-functions/fgetfilecon.texi: New file.
35752         * doc/glibc-functions/getfilecon.texi: New file.
35753         * doc/glibc-functions/getfilecon-desc.texi: New file.
35754         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35755         which to pull in the new files.
35756         * MODULES.html.sh (Misc): Add selinux-h.
35757
35758 2009-10-08  Jim Meyering  <meyering@redhat.com>
35759
35760         unistd: fix comment typo
35761         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35762
35763 2009-10-08  Eric Blake  <ebb9@byu.net>
35764
35765         areadlink: use SIZE_MAX consistently
35766         * modules/areadlink (Depends-on): Add stdint.
35767         * modules/areadlink-with-size (Depends-on): Likewise.
35768         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35769         gives NULL; drop sys/types, since unistd gives size_t; and add
35770         stdint for SIZE_MAX.
35771         (SIZE_MAX): Rely on headers.
35772         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35773         and add stdint.
35774         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35775         (SIZE_MAX): Likewise.
35776         (INITIAL_BUF_SIZE): Turn into enum.
35777         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35778
35779 2009-10-08  Jim Meyering  <meyering@redhat.com>
35780
35781         areadlinkat: avoid compilation failure
35782         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35783         Fix typo in comment.
35784
35785 2009-10-07  Eric Blake  <ebb9@byu.net>
35786
35787         areadlinkat-with-size: new module
35788         * modules/areadlinkat-with-size: New module.
35789         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35790         * lib/areadlink.h (areadlinkat): Declare it.
35791         * MODULES.html.sh (File system functions): Mention it.
35792         * modules/areadlinkat-with-size-tests: New test.
35793         * tests/test-areadlinkat-with-size.c: New file.
35794
35795         xreadlinkat: new module
35796         * modules/xreadlinkat: New module.
35797         * lib/xreadlinkat.c (xreadlinkat): New file.
35798         * lib/xreadlink.h (xreadlinkat): Declare it.
35799         * MODULES.html.sh (File system functions): Mention it.
35800
35801         areadlinkat: new module
35802         * lib/at-func.c (FUNC_FAIL): New define.
35803         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35804         * modules/areadlinkat: New module.
35805         * lib/linkat.c (areadlinkat): Move...
35806         * lib/areadlinkat.c (areadlinkat): ...to new file.
35807         * lib/areadlink.h (areadlinkat): Declare it.
35808         * modules/linkat (Depends-on): Add areadlinkat.
35809         * MODULES.html.sh (File system functions): Mention it.
35810         * modules/areadlinkat-tests: New test.
35811         * tests/test-areadlinkat.c: New file.
35812
35813         areadlink, areadlink-with-size: add tests
35814         * modules/areadlink-tests: New test.
35815         * modules/areadlink-with-size-tests: Likewise.
35816         * tests/test-areadlink.h: New file.
35817         * tests/test-areadlink.c: Likewise.
35818         * tests/test-areadlink-with-size.c: Likewise.
35819
35820         maint: minor cleanups
35821         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35822         _UNUSED_PARAMETER_ instead.
35823         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35824         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35825         * modules/linkat-tests (Files): Distribute test-link.h.
35826
35827         openat, utimens: whitespace cleanup
35828         * lib/openat.c: Prefer space throughout, rather than mix of 8
35829         spaces vs. tabs.
35830         * lib/at-func.c: Likewise.
35831         * lib/utimens.c: Likewise.
35832
35833         openat: avoid using wrong fd
35834         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35835         working directory chooses same fd.
35836         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35837
35838         mkdir, mkdirat: fix cygwin 1.5.x bug
35839         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35840         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35841         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35842         bug.
35843         (gl_PREREQ_MKDIR): Delete unused macro.
35844         * modules/mkdir (Files): Track file rename.
35845         (configure.ac): Update macro name.
35846         * modules/openat (Depends-on): Add mkdir.
35847         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35848
35849         mkdir, mkdirat: add tests
35850         * modules/mkdir-tests: New test.
35851         * tests/test-mkdir.h: New file.
35852         * tests/test-mkdir.c: Likewise.
35853         * tests/test-mkdirat.c: Likewise.
35854         * modules/openat-tests (Files): Add new files.
35855         (Makefile.am): Run new test.
35856
35857 2009-10-06  Eric Blake  <ebb9@byu.net>
35858
35859         doc: tweak *at function documentation
35860         * doc/posix-functions/faccessat.texi (faccessat): Mention
35861         known issue with replacement.
35862         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35863         * doc/posix-functions/linkat.texi (linkat): Likewise.
35864         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35865         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35866         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35867         * doc/posix-functions/renameat.texi (renameat): Likewise.
35868         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35869
35870         openat: fix GNU/Hurd bug in unlinkat
35871         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35872         broken.
35873         * doc/posix-functions/unlink.texi (unlink): Document this.
35874         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35875
35876         fdopendir: fix GNU/Hurd bug
35877         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35878         allowing non-directory fds.
35879         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35880         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35881         * modules/dirent (Makefile.am): Substitute it.
35882         * lib/dirent.in.h (fdopendir): Declare replacement.
35883         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35884         * tests/test-fdopendir.c (main): Test something other than
35885         /dev/null, since on Hurd that behaves like a directory.
35886
35887         test-symlink: port to GNU/Hurd
35888         * tests/test-symlink.h (test_symlink): Relax expected errno.
35889
35890         doc: tweak more cygwin information
35891         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35892         now compatible with glibc.
35893         * doc/posix-functions/getopt.texi (getopt): Likewise.
35894
35895         getopt-gnu: add another test
35896         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35897         guarantee behavior relied on by m4.
35898         * tests/test-getopt.c (main): Use it.
35899         * modules/getopt-posix-tests (Depends-on): Add setenv.
35900         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35901
35902         getopt: fix compilation on darwin
35903         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35904         include.
35905         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35906         Reported by Ludovic Courtès.
35907
35908 2009-10-06  Bruno Haible  <bruno@clisp.org>
35909
35910         * modules/size_max (Description): Discourage its use.
35911         Reported by Simon Josefsson.
35912
35913 2009-10-06  Jim Meyering  <meyering@redhat.com>
35914
35915         linkat: avoid compilation failure
35916         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35917
35918 2009-10-05  Eric Blake  <ebb9@byu.net>
35919
35920         linkat: support Linux 2.6.17
35921         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35922         linkat on Linux, but allow cache variable override.
35923         * lib/linkat.c (rpl_linkat): Define override.
35924         * modules/linkat (Depends-on): Add symlinkat.
35925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35926         * modules/unistd (Makefile.am): Substitute it.
35927         * lib/unistd.in.h (linkat): Declare replacement.
35928         Reported by PĂ¡draig Brady.
35929
35930         quotearg: port test to systems with C.UTF-8 locale
35931         * tests/test-quotearg.c (struct result_strings): Add another
35932         member, differentiating between C.ASCII and C.UTF-8 handling.
35933         (compare_strings): Add parameter.
35934         (main): Adjust all callers.
35935
35936         getopt: avoid clash with FreeBSD _getopt_internal
35937         * lib/getopt.in.h (_getopt_internal): Override the name.
35938         * lib/getopt_int.h (includes): Pick up any overrides.
35939         Reported by Reuben Thomas.
35940
35941         hash: allow C89 compilation
35942         * lib/hash.c (check_tuning): Move declaration before statement.
35943         Reported by Reuben Thomas.
35944
35945 2009-10-05  Karl Berry  <karl@gnu.org>
35946
35947         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35948
35949 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35950             Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/uname.c (uname): Use a table-driven algorithm to compute
35953         Windows NT versions.
35954
35955 2009-10-04  Bruno Haible  <bruno@clisp.org>
35956
35957         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35958         program_invocation_short_name.
35959         * modules/progname (configure.ac): Test for presence of
35960         program_invocation_short_name.
35961         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35962
35963 2009-10-04  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/progname.c (set_program_name): Fix comment.
35966         Reported by Jim Meyering.
35967
35968 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35969             Bruno Haible  <bruno@clisp.org>
35970
35971         * lib/uname.c: Include <string.h>.
35972         (uname): Do only one call to GetVersionEx in the common case.
35973
35974 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35975             Bruno Haible  <bruno@clisp.org>
35976
35977         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35978         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35979         (uname): Add support for Windows CE and various non-x86 CPU types.
35980
35981 2009-10-03  Bruno Haible  <bruno@clisp.org>
35982
35983         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35984         invocation to tests/configure.ac.
35985         Reported by Ian Beckwith <ianb@erislabs.net>.
35986
35987 2009-10-02  Eric Blake  <ebb9@byu.net>
35988
35989         fchdir: avoid compiler warning
35990         * lib/fchdir.c (canonicalize_file_name)
35991         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35992
35993         test-open: support mingw errno values
35994         * tests/test-open.h (test_open): Relax test.
35995         * tests/test-fopen.h (test_fopen): Likewise.
35996         * tests/test-openat-safer.c (main): Likewise.
35997
35998         open: fix opening directory on mingw
35999         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36000
36001         test-open: on GNU/Hurd, /dev/null is a directory
36002         * tests/test-fopen.h (main): Rename...
36003         (test_fopen): ...to this.  Use a guaranteed non-directory when
36004         confirming open behavior on trailing slash.
36005         * tests/test-openat-safer.c (main): Likewise.
36006         * tests/test-open.h (main): Likewise....
36007         (test_open): ...to this.
36008         * tests/test-fopen.c (main): Adjust caller.
36009         * tests/test-fopen-safer.c (main): Likewise.
36010         * tests/test-open.c (main): Likewise.
36011         * tests/test-fcntl-safer.c (main): Likewise.
36012         Reported by Samuel Thibault.
36013
36014         rename, fchdir: don't ignore chdir failure
36015         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36016         * lib/rename.c (rpl_rename) [W32]: Likewise.
36017         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36018         an empty destination directory if source cannot be renamed,
36019         although there is still possibility for failure.
36020         * doc/posix-functions/rename.texi (rename): Document the race.
36021         Reported by Jim Meyering.
36022
36023         maint: cleanup whitespace in recent commits
36024         * lib/rename.c (rpl_rename): Remove tabs.
36025         * tests/test-link.h (test_link): Likewise.
36026         * lib/fchdir.c (get_name): Likewise.
36027         Reported by Jim Meyering.
36028
36029 2009-10-02  Ben Pfaff  <blp@gnu.org>
36030
36031         relocatable-prog-wrapper: Add missing dependency on
36032         double-slash-root.
36033         * modules/relocatable-prog-wrapper: Add dependency.
36034         Reported by Ian Beckwith <ianb@erislabs.net>.
36035
36036 2009-10-02  Eric Blake  <ebb9@byu.net>
36037
36038         renameat: fix Solaris bugs
36039         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36040         needed fixing.
36041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36042         * modules/stdio (Makefile.am): Substitute it.
36043         * lib/stdio.in.h (renameat): Declare replacement.
36044         * lib/renameat.c (rpl_renameat): Implement fix.
36045
36046         renameat: new module
36047         * modules/renameat: New file.
36048         * lib/renameat.c (renameat): Likewise.
36049         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36051         * modules/stdio (Makefile.am): Substitute them.
36052         * lib/stdio.in.h (renameat): Declare it.
36053         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36054         * doc/posix-functions/renameat.texi (renameat): Likewise.
36055         * modules/renameat-tests: New test.
36056         * tests/test-renameat.c: Likewise.
36057
36058         rename: fix mingw bugs
36059         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36060         directory overwrite bugs.
36061
36062         rename: fix another cygwin 1.5 bug
36063         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36064         checks.
36065         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36066         unnecessary cygwin workarounds.  Also work around bug with moving
36067         full directory onto an empty one.
36068         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36069
36070         rename-dest-slash: merge into rename module
36071         * modules/rename-dest-slash (Status): Mark obsolete.
36072         (Depends-on): Add rename.
36073         (Files): Let rename do it all.
36074         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36075         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36076         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36077         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36078         * lib/rename.c (rpl_rename): Update comments.
36079
36080         rename: fix cygwin 1.5.x bugs
36081         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36082         * lib/rename.c (rpl_rename): Work around them.
36083         * modules/rename (Depends-on): Add same-inode.
36084
36085         rename: fix Solaris 10 bug
36086         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36087         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36088         was the only bug.
36089
36090         rename: fix Solaris 9 bug
36091         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36092         on non-directory.  Avoid calling exit.
36093         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36094         strdup.
36095         * modules/rename-tests (Depends-on): Drop lstat.
36096         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36097         (gl_PREREQ_RENAME): Delete unused macro.
36098
36099         rename-dest-slash: fix NetBSD bug
36100         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36101         links.
36102         * modules/rename-dest-slash (Depends-on): Add same-inode.
36103
36104         rename-tests: new test, exposes several platform bugs
36105         * modules/rename-tests: New file.
36106         * tests/test-rename.h: Likewise.
36107         * tests/test-rename.c: Likewise.
36108         * doc/posix-functions/rename.texi (rename): Improve documentation,
36109         including bugs that will eventually be fixed in gnulib.
36110
36111 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36112
36113         * lib/uname.c: Include <stdlib.h>
36114         (uname): Assume version info is available.
36115
36116 2009-10-02  Jim Meyering  <meyering@redhat.com>
36117
36118         gnu-web-doc-update: correct --help output
36119         * build-aux/gnu-web-doc-update: Make --help output relevant.
36120
36121         gnu-web-doc-update: add standard options
36122         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36123
36124         gnu-web-doc-update: New module.
36125         Use this script to automatically update the on-line web documentation
36126         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36127         * modules/gnu-web-doc-update: New file, from coreutils.
36128         * build-aux/gnu-web-doc-update: New script.
36129
36130 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36131
36132         link: LoadLibrary is not needed.
36133         * lib/link.c: Use GetModuleHandle.
36134
36135 2009-10-01  Eric Blake  <ebb9@byu.net>
36136
36137         getopt: bump serial number
36138         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36139         change.
36140
36141         tests: tighten link, rmdir, and remove tests
36142         * tests/test-link.h (includes): No need to use <config.h> here.
36143         Clean up if directory hard link was created, otherwise test for
36144         trailing '.'.
36145         * tests/test-linkat.c (main): Simplify.
36146         * tests/test-remove.c (main): Enhance test for trailing '.'.
36147         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36148
36149 2009-10-01  Jim Meyering  <meyering@redhat.com>
36150
36151         maint.mk: requiring "make major" was annoying, for a "minor" release.
36152         What is intended is "stable", to contrast with alpha and beta,
36153         so require "make stable", not "make major".
36154         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36155         (get_tool_versions): Likewise.
36156         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36157
36158 2009-09-30  Ben Pfaff  <blp@gnu.org>
36159
36160         Fix broken build of replacement for Windows tmpfile().
36161         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36162         flags argument added along with the 'mkostemp' module.
36163
36164 2009-09-28  Bruno Haible  <bruno@clisp.org>
36165
36166         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36167         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36168         to 'remove_elt'.
36169         (gl_list_remove): Update.
36170         * lib/gl_list.c (gl_list_remove): Update.
36171         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36172         to 'remove_elt'.
36173         (gl_oset_remove): Update.
36174         * lib/gl_list.c (gl_oset_remove): Update.
36175         Reported by Eric Blake.
36176
36177 2009-09-28  Eric Blake  <ebb9@byu.net>
36178
36179         doc: mention yet more cygwin 1.7 status
36180         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36181         cygwin.
36182         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36183         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36184
36185         argp: fix test failure
36186         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36187         that are not upper-case.  Pass correct range to tolower.
36188
36189 2009-09-27  Jim Meyering  <meyering@redhat.com>
36190
36191         test-yesno: work around sparc-dash here-document infelicity
36192         Without this change, the literal \177 byte in a here document
36193         would make dash 0.5.5.1-3 access uninitialized memory.
36194         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36195         Instead, use a marker, "@", and filter through tr to create the desired
36196         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36197
36198 2009-09-27  Bruno Haible  <bruno@clisp.org>
36199
36200         Disable untested support for new flavours of ACLs on AIX.
36201         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36202         progress.
36203         * lib/set-mode-acl.c (qset_acl): Likewise.
36204
36205 2008-12-07  Bruno Haible  <bruno@clisp.org>
36206
36207         Add support for new flavours of ACLs on AIX. (Untested.)
36208         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36209         (file_has_acl): Add support for newer AIX.
36210         * lib/set-mode-acl.c (qset_acl): Likewise.
36211         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36212         Rainer Tammer <tammer@tammer.net>.
36213
36214 2009-09-26  Eric Blake  <ebb9@byu.net>
36215
36216         argp: fix compilation of getopt
36217         * lib/getopt.in.h (includes): Use different guard than glibc.
36218         Reported by Sergey Poznyakoff.
36219
36220         doc: mention more cygwin 1.7 status
36221         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36222         bug.
36223         * doc/posix-functions/execl.texi (execl): Likewise.
36224         * doc/posix-functions/execle.texi (execle): Likewise.
36225         * doc/posix-functions/execlp.texi (execlp): Likewise.
36226         * doc/posix-functions/execv.texi (execv): Likewise.
36227         * doc/posix-functions/execve.texi (execve): Likewise.
36228         * doc/posix-functions/execvp.texi (execvp): Likewise.
36229         * doc/glibc-functions/canonicalize_file_name.texi
36230         (canonicalize_file_name): Cygwin 1.7 now provides this.
36231         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36232         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36233         on AT_SYMLINK_NOFOLLOW.
36234
36235 2009-09-24  Eric Blake  <ebb9@byu.net>
36236
36237         test-linkat: make test more robust
36238         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36239
36240         getopt: fix inclusion guards for cygwin
36241         * modules/getopt-posix (Depends-on): Add include-next.
36242         (Makefile.am): Substitute more items in replacement header.
36243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36244         <getopt.h>.
36245         * lib/getopt.in.h (includes): Use split inclusion guard, and
36246         prefer <getopt.h> over include <unistd.h> when one is present.
36247         (option): Also override name of 'struct option'.
36248
36249         same-inode: revert prior change; it is not yet ready
36250         * NEWS: Undo mention of this change.
36251         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36252         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36253         * lib/cycle-check.c (cycle_check): Likewise.
36254         * lib/same.c (same_name): Likewise.
36255         * lib/at-func2.c (at_func2): Likewise.
36256
36257 2009-09-23  Eric Blake  <ebb9@byu.net>
36258
36259         linkat: new module
36260         * modules/linkat: New file.
36261         * lib/at-func2.c (at_func2): Likewise.
36262         * lib/linkat.c (linkat): Likewise.
36263         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36264         * lib/openat-priv.h (at_func2): Add declaration.
36265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36266         * modules/unistd (Makefile.am): Substitute them.
36267         * lib/unistd.in.h (linkat): Declare it.
36268         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36269         * doc/posix-functions/linkat.texi (linkat): Likewise.
36270         * doc/posix-functions/link.texi (link): Tweak wording.
36271         * tests/test-link.c (main): Move guts...
36272         * tests/test-link.h (test_link): ...into new file.
36273         * modules/linkat-tests: New test.
36274         * tests/test-linkat.c: Likewise.
36275         * modules/link-tests (Files): Ship new file.
36276         (Depends-on): Add stdbool.
36277
36278         dirname: add library-safe mdir_name
36279         * lib/dirname.h (mdir_name): New prototype.
36280         * lib/dirname.c (dir_name): Move guts...
36281         (mdir_name): ...to new function that avoids xalloc_die.
36282
36283         fchdir: another mingw fix
36284         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36285         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36286         on mingw (where it has not yet been ported), and make it optional
36287         elsewhere.
36288         (_gl_register_fd): Use it.
36289
36290         same-inode: make SAME_INODE tri-state, to port to mingw
36291         * NEWS: Mention this change.
36292         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36293         st_ino always being 0.
36294         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36295         * lib/cycle-check.c (cycle_check): Likewise.
36296         * lib/same.c (same_name): Likewise.
36297
36298         lstat: avoid mingw compilation error
36299         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36300         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36301         lstat ourselves.
36302         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36303         was adequate.
36304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36305         the checks for lstat.
36306         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36307
36308         link: fix test failure on Solaris 9
36309         * lib/link.c (rpl_link): Don't assume link will catch bogus
36310         trailing slash on source.
36311
36312         test-symlinkat: enhance test
36313         * tests/test-readlink.c (main): Move guts...
36314         * tests/test-readlink.h (test_readlink): ...into new file.
36315         * tests/test-symlink.c (main): Move guts...
36316         * tests/test-symlink.h (test_symlink): ...into new file.
36317         * tests/test-symlinkat.c (main): Use new files for further
36318         coverage.
36319         (do_symlink, do_readlink): New helper functions.
36320         * modules/symlink-tests (Files): Ship new file.
36321         (Depends-on): Add stdbool.
36322         * modules/readlink-tests (Files): Ship new file.
36323         (Depends-on): Add stdbool.
36324         * modules/symlinkat-tests (Files): Use new files.
36325
36326 2009-09-23  Eric Blake  <ebb9@byu.net>
36327
36328         readlink: document portability issue with symlink length
36329         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36330         systems have bogus st_size on symlinks, and mention the
36331         areadlink-with-size module.
36332         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36333         * doc/posix-functions/readlink.texi (readlink): Mention the
36334         areadlink module, and ERANGE failure.
36335         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36336         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36337
36338         readlink: fix Solaris 9 bug with trailing slash
36339         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36340         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36341         * doc/posix-functions/readlink.texi (readlink): Document this.
36342         * modules/readlink-tests: New test.
36343         * tests/test-readlink.c: Likewise.
36344
36345         readlink: fix cygwin 1.5.x bug with return type
36346         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36347         * lib/unistd.in.h (readlink): Use ssize_t.
36348         * lib/readlink.c (readlink): Likewise.
36349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36350         * modules/unistd (Makefile.am): Substitute it.
36351         * lib/unistd.in.h (readlink): Declare replacement.
36352         * doc/posix-functions/readlink.texi (readlink): Document this.
36353
36354         symlink: use throughout gnulib
36355         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36356         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36357         symlink is not used.
36358         * modules/symlinkat (Depends-on): Add symlink.
36359         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36360         * modules/canonicalize-tests (Depends-on): Likewise.
36361         * modules/lstat-tests (Depends-on): Likewise.
36362         * modules/openat-tests (Depends-on): Likewise.
36363         * modules/remove-tests (Depends-on): Likewise.
36364         * modules/rmdir-tests (Depends-on): Likewise.
36365         * modules/unlink-tests (Depends-on): Likewise.
36366         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36367         * tests/test-canonicalize.c (symlink): Likewise.
36368         * tests/test-fstatat.c (symlink): Likewise.
36369         * tests/test-lstat.c (symlink): Likewise.
36370         * tests/test-remove.c (symlink): Likewise.
36371         * tests/test-rmdir.c (symlink): Likewise.
36372         * tests/test-unlink.c (symlink): Likewise.
36373         * tests/test-unlinkat.c (symlink): Likewise.
36374
36375         symlink: new module, for Solaris 9 bug
36376         * modules/symlink: New file.
36377         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36378         * lib/symlink.c: Likewise.
36379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36380         * modules/unistd (Makefile.am): Substitute them.
36381         * lib/unistd.in.h (symlink): Declare replacement.
36382         * MODULES.html.sh (File system functions): Mention it.
36383         * doc/posix-functions/symlink.texi (symlink): Likewise.
36384         * modules/symlink-tests: New test.
36385         * tests/test-symlink.c: Likewise.
36386
36387 2009-09-23  Bruno Haible  <bruno@clisp.org>
36388
36389         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36390         when needed.
36391         Test case: gnulib-tool --import --with-tests atexit inttypes.
36392         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36393
36394 2009-09-23  Bruno Haible  <bruno@clisp.org>
36395
36396         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36397         subcommand, not in a subshell.
36398
36399 2009-09-22  Eric Blake  <ebb9@byu.net>
36400
36401         unistd: sort replacement declarations
36402         * lib/unistd.in.h: Sort declarations.
36403
36404         open, openat: minor optimization
36405         * lib/open.c (open): If open succeeded, len is non-zero.
36406         * lib/openat.c (rpl_openat): Likewise.
36407
36408         link-follow: ensure correct result
36409         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36410         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36411         distinguish between possible failures.
36412
36413 2009-09-21  Eric Blake  <ebb9@byu.net>
36414
36415         fts: avoid compiler warning
36416         * lib/fts.c (dirent_inode_sort_may_be_useful)
36417         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36418
36419 2009-09-19  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/progreloc.c (canonicalize_file_name): New declaration.
36422
36423 2009-09-19  Eric Blake  <ebb9@byu.net>
36424
36425         link: fix quoting
36426         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36427
36428         openat: fix openat bugs on Solaris 9
36429         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36430         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36431         * modules/openat (Depends-on): Add open.
36432         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36433         * modules/fcntl-h (Makefile.am): Substitute it.
36434         * lib/fcntl.in.h (openat): Declare replacement.
36435         * doc/posix-functions/openat.texi (openat): Document this.
36436
36437         openat: move fstatat and unlinkat into correct files
36438         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36439         compiled.
36440         * lib/openat.c (fstatat, unlinkat): Move...
36441         * lib/fstatat.c (fstatat): ...into correct files.
36442         * lib/unlinkat.c (unlinkat): Likewise.
36443
36444         openat: fix unlinkat bugs on Solaris 9
36445         * lib/unlinkat.c (unlinkat): New file.
36446         * modules/openat (Depends-on): Add unlink.
36447         (Files): Distribute it.
36448         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36449         trailing slash behavior is broken.
36450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36451         * modules/unistd (Makefile.am): Substitute it.
36452         * lib/unistd.in.h (unlinkat): Declare replacement.
36453         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36454
36455         openat: fix fstatat bugs on Solaris 9
36456         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36457         stat.
36458         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36459
36460         test-unlinkat: enhance test, to expose Solaris 9 bug
36461         * tests/test-unlink.c (main): Factor guts...
36462         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36463         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36464         * tests/test-rmdir.c (main): Adjust caller.
36465         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36466         (unlinker): New helper function.
36467         (rmdirat): Enhance check.
36468         * modules/rmdir-tests (Depends-on): Add stdbool.
36469         * modules/unlink-tests (Depends-on): Likewise.
36470         (Files): Add test-unlink.h.
36471         * modules/openat-tests (Files): Likewise.
36472         (Depends-on): Add unlinkdir.
36473
36474         test-fstatat: new test, to expose Solaris 9 bugs
36475         * tests/test-stat.c (main): Factor guts...
36476         * tests/test-stat.h (test_stat_func): ...into new file.
36477         * tests/test-lstat.c (main): Factor guts...
36478         * tests/test-lstat.h (test_lstat_func): ...into new file.
36479         * tests/test-fstatat.c: New file.
36480         * modules/stat-tests (Files): Add test-stat.h.
36481         * modules/lstat-tests (Files): Add test-lstat.h.
36482         (Depends-on): Add stdbool.
36483         * modules/openat-tests (Depends-on): Add pathmax.
36484         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36485         (Makefile.am): Run new test.
36486
36487         remove: new module, for mingw and Solaris 9 bugs
36488         * modules/remove: New file.
36489         * lib/remove.c: Likewise.
36490         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36492         * modules/stdio (Makefile.am): Use them.
36493         * lib/stdio.in.h (remove): Declare replacement.
36494         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36495         * doc/posix-functions/remove.texi (remove): Likewise.
36496         * modules/remove-tests: New test.
36497         * tests/test-remove.c: Likewise.
36498
36499         unlink: new module, for Solaris 9 bug
36500         * modules/unlink: New file.
36501         * lib/unlink.c: Likewise.
36502         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36504         * modules/unistd (Makefile.am): Use them.
36505         * lib/unistd.in.h (stat): Declare replacement.
36506         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36507         * doc/posix-functions/unlink.texi (unlink): Likewise.
36508         * modules/unlink-tests: New test.
36509         * tests/test-unlink.c: Likewise.
36510
36511         lstat: fix Solaris 9 bug
36512         * lib/lstat.c (lstat): Also check for trailing slash on
36513         non-symlink, non-directories.  Use stat module to simplify logic.
36514         * doc/posix-functions/lstat.texi (lstat): Document it.
36515         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36516         (configure.ac): Check for symlink.
36517         * tests/test-lstat.c (main): Add more tests.
36518
36519         stat: add as dependency to other modules
36520         * modules/chown (Depends-on): Add stat.
36521         * modules/euidaccess (Depends-on): Likewise.
36522         * modules/fchdir (Depends-on): Likewise.
36523         * modules/isdir (Depends-on): Likewise.
36524         * modules/link (Depends-on): Likewise.
36525         * modules/lstat (Depends-on): Likewise.
36526         * modules/mkdir-p (Depends-on): Likewise.
36527         * modules/modechange (Depends-on): Likewise.
36528         * modules/open (Depends-on): Likewise.
36529         * modules/readlink (Depends-on): Likewise.
36530         * modules/same (Depends-on): Likewise.
36531
36532         stat: fix Solaris 9 bug
36533         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36534         slash.
36535         * lib/stat.c (rpl_stat): Work around it.
36536         * doc/posix-functions/stat.texi (stat): Update documentation.
36537
36538         stat: new module, for mingw bug
36539         * modules/stat: New file.
36540         * lib/stat.c: Likewise.
36541         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36543         * modules/sys_stat (Makefile.am): Use them.
36544         * lib/sys_stat.in.h (stat): Declare replacement.
36545         * lib/openat.c (fstatat): Deal with lstat and stat being function
36546         macros.
36547         * modules/openat (Depends-on): Add inline.
36548         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36549         * doc/posix-functions/stat.texi (stat): Likewise.
36550         * modules/stat-tests: New test.
36551         * tests/test-stat.c: Likewise.
36552
36553 2009-09-19  Jim Meyering  <meyering@redhat.com>
36554
36555         syntax-check: detect unnecessary inclusion of canonicalize.h
36556         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36557
36558 2009-09-19  Eric Blake  <ebb9@byu.net>
36559
36560         canonicalize-lgpl: adjust clients to use correct header
36561         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36562         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36563         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36564         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36565         * lib/progreloc.c (includes): Likewise.
36566
36567 2009-09-19  Jim Meyering  <meyering@redhat.com>
36568
36569         test-posixtm.c: correct a comment
36570         * tests/test-posixtm.c: Correct first-line comment.
36571         Spotted by Eric Blake.
36572
36573 2009-09-16  Jim Meyering  <meyering@redhat.com>
36574
36575         posixtm-tests: make T const-correct; add a test case
36576         * tests/test-posixtm.c (T): Declare const.
36577         Add a test for -(2^31+1).
36578         Remove useless can-succeed-only-in-2002 test.
36579
36580         posixtm-tests: adjust the sole failing test
36581         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36582         expected output matches what mktime now produces.  Cross-checked via
36583         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36584
36585         posixtm: move #ifdef'd tests into a new module
36586         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36587         * tests/test-posixtm.c: ... this new file.
36588         * modules/posixtm-tests: New module.
36589
36590 2009-09-19  Eric Blake  <ebb9@byu.net>
36591
36592         openat: simplify use of at-func.c
36593         * lib/at-func.c (includes): Include prerequisites here, to
36594         simplify requirements on client files.
36595         * lib/openat-priv.h: Add double-inclusion guard.
36596         * lib/faccessat.c (includes): Simplify.
36597         * lib/fchmodat.c (includes): Likewise.
36598         * lib/fchownat.c (includes): Likewise.
36599         * lib/mkdirat.c (includes): Likewise.
36600         * lib/mkfifoat.c (includes): Likewise.
36601         * lib/symlinkat.c (includes): Likewise.
36602
36603         openat: allow return of fd 0
36604         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36605         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36606         unistd-safer.
36607         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36608         <fcntl.h>; this module does not leak fds.
36609         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36610         must be allowed to return 0, leaving openat_safer to add the
36611         safety.
36612         (openat_permissive): Avoid writing to just-opened fd 2 if
36613         restoring the current directory fails.
36614         * lib/openat-die.c (openat_restore_fail): Add comment.
36615         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36616         (save_cwd): Guarantee safe fd, but without use of open_safer.
36617         * tests/test-openat.c: New test.
36618         * modules/openat-tests (Files, Makefile.am): Distribute and build
36619         new file.
36620
36621         relocatable-prog-wrapper: fix build
36622         * modules/relocatable-prog-wrapper (Files): Update name of
36623         canonicalize m4 file, broken on 2009-09-17.
36624         Reported by emad hajjar <aleppos@hotmail.com>.
36625
36626 2009-09-19  Bruno Haible  <bruno@clisp.org>
36627
36628         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36629         * lib/safe-alloc.c: Likewise.
36630         Reported by Ian Beckwith <ianb@erislabs.net>.
36631
36632 2009-09-18  Bruno Haible  <bruno@clisp.org>
36633
36634         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36635         Reported by <erobles@sensacd.com.mx>.
36636
36637 2009-09-17  Eric Blake  <ebb9@byu.net>
36638
36639         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36640         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36641         slashes when checking if last component is missing.
36642         * tests/test-canonicalize.c (main): Test this.
36643
36644         canonicalize, canonicalize-lgpl: honor // if distinct from /
36645         * modules/canonicalize (Files): Add double-slash-root.m4.
36646         * modules/canonicalize-lgpl (Files): Likewise.
36647         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36648         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36649         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36650         fallback definition.
36651         (canonicalize_filename_mode): Use it to protect //.
36652         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36653         (__realpath): Likewise.
36654         * tests/test-canonicalize.c (main): Test this.
36655         * tests/test-canonicalize-lgpl.c (main): Likewise.
36656         * modules/canonicalize-tests (Depends-on): Add same-inode.
36657         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36658
36659         canonicalize-lgpl: fix glibc bug with trailing slash
36660         * m4/canonicalize-lgpl.m4: Move contents...
36661         * m4/canonicalize.m4: ...here.
36662         (gl_CANONICALIZE_LGPL): Factor realpath check...
36663         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36664         glibc 2.3.5 bug, fixed 2005-04-27.
36665         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36666         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36667         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36668         * modules/canonicalize-lgpl (Files): Manage file rename.
36669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36670         * modules/stdlib (Makefile.am): Substitute witness.
36671         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36672         is needed.
36673         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36674         replacement is required.
36675         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36676         * doc/glibc-functions/canonicalize_file_name.texi
36677         (canonicalize_file_name): Document this.
36678         * doc/posix-functions/realpath.texi (realpath): Likewise.
36679
36680         canonicalize-lgpl: reject non-directory with trailing slash
36681         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36682         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36683         catches failures in glibc 2.3.5.
36684         * tests/test-canonicalize.c (main): Likewise.
36685
36686         canonicalize-lgpl: use native realpath if it works
36687         * lib/canonicalize-lgpl.c (realpath): Guard with
36688         FUNC_REALPATH_WORKS.
36689         * lib/stdlib.in.h (realpath): Make declaration optional based on
36690         HAVE_REALPATH.
36691         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36692         native realpath works.
36693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36694         * modules/stdlib (Makefile.am): Substitute witness.
36695
36696         canonicalize, canonicalize-lgpl: use <stdlib.h>
36697         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36698         (Include): Mention <stdlib.h>.
36699         (configure.ac): Mention functions we provide.
36700         * modules/canonicalize (configure.ac): Likewise.
36701         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36702         realpath if canonicalize_file_name is missing.
36703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36704         * modules/stdlib (Makefile.am): Substitute witnesses.
36705         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36706         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36707         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36708         * NEWS: Document this.
36709         * doc/glibc-functions/canonicalize_file_name.texi
36710         (canonicalize_file_name): Likewise.
36711         * doc/posix-functions/realpath.texi (realpath): Likewise.
36712         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36713
36714         test-canonicalize: consolidate into single C program
36715         * tests/test-canonicalize.sh: Delete; move setup into...
36716         * tests/test-canonicalize.c (main): ...the program, making it
36717         easier to run in debugger.  Add some tests.
36718         * modules/canonicalize-tests (Files): Remove unused file.
36719         (Depends-on): Add progname.
36720         (configure.ac, Makefile.am): Simplify.
36721
36722         test-canonicalize-lgpl: consolidate into single C program
36723         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36724         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36725         easier to run in debugger.  Add some tests.
36726         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36727         (configure.ac, Makefile.am): Simplify.
36728
36729         canonicalize: avoid resolvepath
36730         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36731         unnecessary checks.
36732         * lib/canonicalize.c (includes): Simplify.
36733         (canonicalize_file_name): Drop resolvepath implementation.
36734         * modules/canonicalize (Depends-on): Drop filenamecat.
36735
36736         canonicalize: don't lose errno
36737         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36738         over calls to free.
36739
36740         canonicalize: simplify errno handling
36741         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36742         assignment.
36743
36744         canonicalize, canonicalize-lgpl: update module dependencies
36745         * modules/canonicalize (Depends-on): Add extensions, lstat,
36746         pathmax, stdlib.
36747         (Files): Drop pathmax.h.
36748         (configure.ac): Adjust macro name.
36749         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36750         lstat, stdlib, sys_stat.
36751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36752         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36753         extensions.
36754         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36755         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36756         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36757         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36758         declaration, if available.
36759         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36760         we can rely on the readlink module.
36761         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36762         (includes): Use <unistd.h> unconditionally.
36763
36764 2009-09-17  Eric Blake  <ebb9@byu.net>
36765
36766         maint: make Include sections of modules consistent
36767         * modules/alloca: Use only header name; no need to list #include.
36768         * modules/alloca-opt: Likewise.
36769         * modules/arpa_inet: Likewise.
36770         * modules/canon-host: Likewise.
36771         * modules/configmake: Likewise.
36772         * modules/dirent: Likewise.
36773         * modules/eealloc: Likewise.
36774         * modules/environ: Likewise.
36775         * modules/fchdir: Likewise.
36776         * modules/fcntl: Likewise.
36777         * modules/fcntl-h: Likewise.
36778         * modules/gethrxtime: Likewise.
36779         * modules/gettime: Likewise.
36780         * modules/ignore-value: Likewise.
36781         * modules/inet_ntop: Likewise.
36782         * modules/inet_pton: Likewise.
36783         * modules/inttypes: Likewise.
36784         * modules/isnand-nolibm: Likewise.
36785         * modules/isnanf-nolibm: Likewise.
36786         * modules/mbchar: Likewise.
36787         * modules/mbfile: Likewise.
36788         * modules/mbiter: Likewise.
36789         * modules/mbuiter: Likewise.
36790         * modules/netdb: Likewise.
36791         * modules/netinet_in: Likewise.
36792         * modules/nproc: Likewise.
36793         * modules/pagealign_alloc: Likewise.
36794         * modules/poll: Likewise.
36795         * modules/printf-frexp: Likewise.
36796         * modules/pthread: Likewise.
36797         * modules/putenv: Likewise.
36798         * modules/random_r: Likewise.
36799         * modules/relocatable-prog: Likewise.
36800         * modules/search: Likewise.
36801         * modules/select: Likewise.
36802         * modules/selinux-h: Likewise.
36803         * modules/settime: Likewise.
36804         * modules/signal: Likewise.
36805         * modules/size_max: Likewise.
36806         * modules/socklen: Likewise.
36807         * modules/ssize_t: Likewise.
36808         * modules/stdarg: Likewise.
36809         * modules/stdbool: Likewise.
36810         * modules/stddef: Likewise.
36811         * modules/stdint: Likewise.
36812         * modules/stdio: Likewise.
36813         * modules/stdlib: Likewise.
36814         * modules/string: Likewise.
36815         * modules/strings: Likewise.
36816         * modules/sys_file: Likewise.
36817         * modules/sys_ioctl: Likewise.
36818         * modules/sys_select: Likewise.
36819         * modules/sys_socket: Likewise.
36820         * modules/sys_stat: Likewise.
36821         * modules/sys_time: Likewise.
36822         * modules/sys_times: Likewise.
36823         * modules/sys_utsname: Likewise.
36824         * modules/sys_wait: Likewise.
36825         * modules/sysexits: Likewise.
36826         * modules/time: Likewise.
36827         * modules/times: Likewise.
36828         * modules/tmpfile: Likewise.
36829         * modules/trim: Likewise.
36830         * modules/unistd: Likewise.
36831         * modules/wchar: Likewise.
36832         * modules/wctype: Likewise.
36833
36834 2009-09-17  Bruno Haible  <bruno@clisp.org>
36835
36836         Make getdate.y compile on QNX and NetBSD 5 / i386.
36837         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36838         TIME_T_FITS_IN_LONG_INT.
36839         * lib/getdate.y (long_time_t): New type.
36840         (relative_time): Change type of 'seconds' field to long_time_t.
36841         (get_date): Update types of local variables. Check against overflow
36842         during conversion from long_time_t to time_t.
36843         Reported by Matt Kraai <kraai@ftbfs.org>
36844         and Hasso Tepper <hasso@netbsd.org>.
36845
36846 2009-09-17  Bruno Haible  <bruno@clisp.org>
36847
36848         * modules/COPYING: Update copyright years.
36849         * modules/README: Likeiwse.
36850         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36851         Reported by Ian Beckwith <ianb@erislabs.net>.
36852
36853 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36854
36855         * users.txt: Update references for gnuit package.
36856
36857 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36858
36859         * m4/getdelim.m4: Fix typo in copyright line.
36860
36861 2009-09-17  Bruno Haible  <bruno@clisp.org>
36862
36863         * lib/atoll.c: Use the standard header with GPL copyright.
36864         * lib/argz.in.h: Likewise.
36865         * lib/glob.c: Likewise.
36866         * lib/glob-libc.h: Likewise.
36867         * lib/random_r.c: Likewise.
36868         * lib/siglist.h: Likewise.
36869         * lib/strsignal.c: Likewise.
36870         Reported by Ian Beckwith <ianb@erislabs.net>.
36871
36872 2009-09-17  Eric Blake  <ebb9@byu.net>
36873
36874         rmdir: ensure correct dependency order
36875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36876
36877 2009-09-17  Bruno Haible  <bruno@clisp.org>
36878
36879         Disable assertion that fails on NetBSD 5 / i386.
36880         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36881         Reported by Sam Steingold <sds@gnu.org>
36882         and Hasso Tepper <hasso@netbsd.org>.
36883
36884 2009-09-16  Eric Blake  <ebb9@byu.net>
36885
36886         unlinkdir: port to mingw
36887         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36888         on which no one can unlink a directory.
36889
36890         stdlib: sort witness names
36891         * modules/stdlib (Makefile.am): Sort replacements.
36892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36893         * lib/stdlib.in.h: Likewise.
36894
36895         parse-duration-tests: avoid link failure
36896         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36897         LIBINTL.
36898         Reported by Tom G. Christensen.
36899
36900         openat-tests: ensure unlinkat behaves like rmdir
36901         * tests/test-rmdir.c (main): Factor guts...
36902         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36903         * modules/rmdir-tests (Files): Ship new file.
36904         * modules/openat-tests: New test.
36905         * tests/test-unlinkat.c: Likewise.
36906
36907         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36908         * modules/rmdir-errno (Status, Notice): Now obsolete.
36909
36910         rmdir: work around cygwin 1.5.x and mingw bugs
36911         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36912         * lib/rmdir.c (rmdir): Work around it.
36913         * modules/rmdir (Status, Notice): No longer obsolete.
36914         (Files): Add dos.m4.
36915         (Depends-on): Add unistd.
36916         (configure.ac): Set witnesses.
36917         (License): Relax to LGPLv2+.
36918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36919         * modules/unistd (Makefile.am): Substitute witnesses.
36920         * lib/unistd.in.h (rmdir): Declare replacement.
36921         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36922         * modules/rmdir-tests: New tests.
36923         * tests/test-rmdir.c: Likewise.
36924
36925 2009-09-15  Eric Blake  <ebb9@byu.net>
36926
36927         fchdir: improve use of replacement functions
36928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36930         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36931         REPLACE_CLOSEDIR.
36932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36933         * modules/sys_stat (Makefile.am): Substitute correct witness.
36934         * modules/dirent (Makefile.am): Likewise.
36935         * modules/unistd (Makefile.am): Likewise.
36936         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36937         * lib/unistd.in.h (dup): Likewise.
36938         * lib/sys_stat.in.h (fstat): Likewise.
36939
36940         maint: ignore gnulib-tool temp files
36941         * .gitignore: Ignore files created during gnulib-tool --test.
36942
36943 2009-09-13  Jim Meyering  <meyering@redhat.com>
36944
36945         posixtm: don't reject a time that specify "60" as the number of seconds
36946         * lib/posixtm.c (posixtime): The code to reject invalid dates
36947         would also reject a time specified with the .60 suffix.
36948         But POSIX allows that, in order to accommodate leap seconds.
36949         So don't reject it.
36950         (main): Adjust tests accordingly.
36951         * modules/posixtm (Depends-on): Add stpcpy.
36952
36953 2009-09-11  Jim Meyering  <meyering@redhat.com>
36954
36955         announce-gen: include [$release_type] in emitted Subject:
36956         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36957         e.g., [stable] in the emitted Subject: line.
36958
36959 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36960
36961         Remove obsolete macros from several modules.
36962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36963         obsolete Autoconf macros with their modern counterparts.
36964         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36965         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36967         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36968         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36969         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36971         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36972         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36973         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36974         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36976         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36977         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36978         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36979         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36980         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36981         * m4/time_r.m4 (gl_TIME_R): Likewise.
36982         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36983         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36984         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36985
36986         Fix copyright header in build-aux scripts.
36987         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36988         recommendation.
36989         * build-aux/ncftpput-ftp: Likewise.
36990         * build-aux/update-copyright: Likewise.
36991
36992 2009-09-09  Eric Blake  <ebb9@byu.net>
36993
36994         test-link: allow Linux choice of errno
36995         * tests/test-link.c (main): Relax test for alternate error.
36996
36997         strndup: fix improper m4 caching
36998         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36999         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37000         (gl_PREREQ_STRNDUP): Delete.
37001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37002         * modules/string (Makefile.am): Substitute it.
37003         * lib/string.in.h (strndup): Modernize prototype.
37004
37005         getcwd: port to mingw
37006         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37007         different from the POSIX assumptions made throughout the getcwd
37008         module; fortunately, the mingw getcwd does not need replacement.
37009         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37010         * modules/getcwd-tests: New test.
37011         * tests/test-getcwd.c: Likewise.
37012
37013         link: fix platform bugs
37014         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37015         * lib/link.c (link): Work around them.  Fix related mingw bug.
37016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37017         * modules/unistd (Makefile.am): Substitute it.
37018         * lib/unistd.in.h (link): Declare replacement.
37019         * doc/posix-functions/link.texi (link): Document this.
37020         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37021
37022         test-link: consolidate into single C program, test more cases
37023         * tests/test-link.sh: Delete.
37024         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37025         at least Cygwin and Solaris.
37026         * modules/link-tests (Files): Remove unused file.
37027         (Depends-on): Add errno, sys_stat.
37028         (Makefile.am): Simplify.
37029
37030 2009-09-08  Bruno Haible  <bruno@clisp.org>
37031
37032         Work around towlower, towupper bug on mingw.
37033         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37034         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37035         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37036         * doc/posix-functions/towupper.texi: Likewise.
37037         Reported by Eric Blake.
37038
37039 2009-09-08  Jim Meyering  <meyering@redhat.com>
37040
37041         build: don't try to run autoheader if we don't use it
37042         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37043         is not used in configure.ac.
37044
37045 2009-09-08  Eric Blake  <ebb9@byu.net>
37046
37047         euidaccess: fix compilation error
37048         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37049
37050         rawmemchr: relax license
37051         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37052         okay.
37053         Reported by Jim Meyering.
37054
37055         mkfifoat: new module
37056         * modules/mkfifoat: New file.
37057         * lib/mkfifoat.c: Likewise.
37058         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37059         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37060         * modules/sys_stat (Makefile.am): Use them.
37061         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37062         * MODULES.html.sh (File system functions): Mention module.
37063         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37064         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37065         * modules/mkfifoat-tests: New test.
37066         * tests/test-mkfifoat.c: Likewise.
37067
37068         strchrnul: relax license
37069         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37070         okay.
37071         Reported by Jim Meyering.
37072
37073 2009-09-08  Eric Blake  <ebb9@byu.net>
37074
37075         fstatat: fix compilation on Solaris
37076         * lib/fstatat.c (includes): Add fcntl.h.
37077         Reported by PĂ¡draig Brady.
37078
37079 2009-09-07  Eric Blake  <ebb9@byu.net>
37080
37081         rename: modernize replacement
37082         * modules/rename (Depends-on): Add stdio.
37083         (configure.ac): Declare witness.
37084         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37085         stdio take care of replacement.
37086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37087         * modules/stdio (Makefile.am): Substitute them.
37088         * lib/stdio.in.h (rename): Declare replacement.
37089         * lib/rename.c (includes): Allow cross-compilation to non-windows
37090         machines.
37091         * doc/posix-functions/rename.texi (rename): Improve
37092         documentation.
37093
37094         stdio: sort witness names
37095         * modules/stdio (Makefile.am): Sort replacements.
37096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37097         * lib/stdio.in.h: Likewise.
37098
37099         getcwd: minor cleanups
37100         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37101         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37102
37103         openat: provide more convenience names
37104         * modules/faccessat (configure.ac): Add C witness.
37105         * lib/unistd.in.h (readlinkat): Fix typo.
37106         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37107         convenience wrappers.
37108         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37109         wrappers in syntax checks.
37110
37111 2009-09-06  Eric Blake  <ebb9@byu.net>
37112
37113         doc: fix comments in recent patches
37114         * lib/faccessat.c: Mention correct function.
37115         * lib/fchmodat.c: Likewise.
37116         * lib/fchownat.c: Likewise.
37117         * lib/symlinkat.c: Likewise.
37118         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37119         constants.
37120
37121         faccessat, symlinkat: continue cleanup of previous patch
37122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37123         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37124         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37126         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37127         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37128         set.
37129
37130 2009-09-06  Bruno Haible  <bruno@clisp.org>
37131
37132         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37133         (fstatat): Declare if GNULIB_FSTATAT is set.
37134         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37135         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37136         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37137         * modules/fcntl-h (Files): Remove m4/openat.m4.
37138         * modules/sys_stat (Files): Remove m4/openat.m4.
37139         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37140         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37141         * modules/unistd (Files): Remove m4/openat.m4.
37142         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37143         GNULIB_OPENAT.
37144         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37145         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37147         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37148         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37149         gl_OPENAT_DEFAULTS.
37150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37151         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37152         Don't require gl_OPENAT_DEFAULTS.
37153         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37154         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37155         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37156         (gl_OPENAT_DEFAULTS): Remove macro.
37157
37158 2009-09-06  Bruno Haible  <bruno@clisp.org>
37159
37160         * modules/openat (configure.ac): Remove unneeded witness.
37161
37162 2009-09-06  Bruno Haible  <bruno@clisp.org>
37163
37164         Set errno to ENOSYS when a function is entirely unsupported.
37165         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37166         EOPNOTSUPP.
37167         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37168         * modules/chown (Depends-on): Remove errno.
37169
37170 2009-09-06  Bruno Haible  <bruno@clisp.org>
37171
37172         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37173
37174 2009-09-06  Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37177
37178 2009-09-06  Ben Pfaff  <blp@gnu.org>
37179             Bruno Haible  <bruno@clisp.org>
37180
37181         Work around a glibc bug in strtok_r.
37182         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37183         Undefine if UNDEFINE_STRTOK_R is set.
37184         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37186         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37188         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37189         UNDEFINE_STRTOK_R.
37190         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37191
37192 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37193
37194         exclude: minor fix
37195         * lib/exclude.c: Include wctype.h
37196
37197 2009-09-06  Akim Demaille  <demaille@gostai.com>
37198
37199         bootstrap: improve error message
37200         * build-aux/bootstrap (find_tool): Upon failure, report the list
37201         of candidates.
37202         Honor the initial value of the envvar.
37203
37204 2009-09-05  Eric Blake  <ebb9@byu.net>
37205
37206         symlinkat: new module
37207         * modules/symlinkat: New file.
37208         * lib/symlinkat.c: Likewise.
37209         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37211         * modules/unistd (Makefile.am): Use them.
37212         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37213         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37214         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37215         * MODULES.html.sh (File system functions): Mention module.
37216         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37217         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37218         * modules/symlinkat-tests: New test.
37219         * tests/test-symlinkat.c: Likewise.
37220
37221         test-openat-safer: add more checks
37222         * tests/test-openat-safer.c (main): Check more code paths.
37223
37224 2009-09-05  Jim Meyering  <meyering@redhat.com>
37225
37226         syntax-check: detect unnecessary inclusion of openat.h
37227         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37228
37229 2009-09-05  Bruno Haible  <bruno@clisp.org>
37230
37231         Support towlower, towupper.
37232         * doc/posix-functions/towlower.texi: Mention module wctype.
37233         * doc/posix-functions/towupper.texi: Likewise.
37234         * lib/wctype.in.h (towlower, towupper): New functions.
37235         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37236         (ASSERT): New macro.
37237         (e): New variable.
37238         (main): Test also towlower, towupper. Test WEOF argument.
37239         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37240
37241 2009-09-05  Bruno Haible  <bruno@clisp.org>
37242
37243         Fix conversion behaviour when the input is invalid.
37244         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37245         mark occurring in first pass of indirect conversion.
37246         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37247         input.
37248         Found by clang's static analyzer.
37249
37250 2009-09-05  Bruno Haible  <bruno@clisp.org>
37251
37252         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37253         where direct conversion is possible.
37254
37255 2009-09-04  Eric Blake  <ebb9@byu.net>
37256
37257         openat: fail with ENOENT on empty name
37258         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37259         buffer.
37260
37261         link-follow: fix logic bug in prior patch
37262         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37263         reversed sense of yes and no in prior patch.  Avoid confusing
37264         compilation failure with desired semantics.
37265
37266         link-follow: accomodate mingw and cross-compilation
37267         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37268         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37269         cross-compilation results to -1, to make linkat easier to
37270         implement when cross-compiling.  Trivially support mingw.
37271         * modules/link-follow (configure.ac): Call new name.
37272         * NEWS: Mention this.
37273
37274 2009-09-03  Eric Blake  <ebb9@byu.net>
37275
37276         faccessat: compile replacement
37277         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37278         needed.
37279
37280         fts: fix compilation error
37281         * lib/fts.c (includes): Re-add "openat.h", for
37282         openat_needs_fchdir.
37283
37284         faccessat: new module
37285         * modules/faccessat: New file.
37286         * lib/faccessat.c: Likewise.
37287         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37289         * modules/unistd (Makefile.am): Use it.
37290         * lib/unistd.in.h (faccessat): Declare it.
37291         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37292         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37293         * MODULES.html.sh (File system functions): Mention it.
37294         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37295         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37296
37297         euidaccess: prefer POSIX over non-standard implementation
37298         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37299         * lib/euidaccess.c (euidaccess): Use it if available.
37300
37301         openat: make template easier to use
37302         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37303         AT_FUNC_F2 to be undefined.
37304         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37305         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37306         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37307         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37308         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37309         Likewise.
37310         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37311         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37312         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37313         Likewise.
37314
37315         openat: declare in POSIX headers
37316         * NEWS: Mention this.
37317         * modules/openat (configure.ac): Declare witnesses.
37318         (Depends-on): Add fcntl-h, sys_stat, unistd.
37319         (Include): Mention correct headers.
37320         * modules/fcntl-h (Depends-on): Add link-warning.
37321         (Files): Add openat.m4.
37322         (Makefile.am): Substitute witnesses.
37323         * modules/sys_stat (Files, Makefile.am): Likewise.
37324         * modules/unistd (Files, Makefile.am): Likewise.
37325         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37326         (gl_OPENAT_DEFAULTS): New macro.
37327         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37330         (SYS_STAT_H): Remove unused variable.
37331         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37332         * lib/fcntl--.h (includes): Remove unneeded header.
37333         * lib/openat-safer.c (includes): Likewise.
37334         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37335         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37336         appropriate headers.
37337         (__OPENAT_PREFIX): Delete.
37338         * lib/fcntl.in.h (openat): Provide declaration.
37339         (AT_FDCWD): Fix Solaris bug.
37340         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37341         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37342         * lib/fchmodat.c (includes):  Adjust to find declaration.
37343         * lib/fchownat.c (includes): Likewise.
37344         * lib/mkdirat.c (includes): Likewise.
37345         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37346         still visible.
37347
37348 2009-09-02  Eric Blake  <ebb9@byu.net>
37349
37350         errno: use consistently
37351         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37352         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37353         * lib/canonicalize.c (ELOOP): Likewise.
37354         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37355         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37356         * lib/lchown.c (EOPNOTSUPP): Likewise.
37357         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37358         * lib/savewd.c (ESTALE): Likewise.
37359         * lib/settime.c (ENOSYS): Likewise.
37360         * lib/utimens.c (ENOSYS): Likewise.
37361         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37362         * lib/chdir-safer.c (ELOOP): Likewise.
37363         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37364         * modules/c-stack (Depends-on): Add errno.
37365         * modules/canonicalize (Depends-on): Likewise.
37366         * modules/chdir-safer (Depends-on): Likewise.
37367         * modules/fdopendir (Depends-on): Likewise.
37368         * modules/inet_ntop (Depends-on): Likewise.
37369         * modules/inet_pton (Depends-on): Likewise.
37370         * modules/lchown (Depends-on): Likewise.
37371         * modules/openat (Depends-on): Likewise.
37372         * modules/savewd (Depends-on): Likewise.
37373         * modules/settime (Depends-on): Likewise.
37374         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37375
37376         fts: avoid leaking fds
37377         * modules/fts (Depends-on): Add cloexec.
37378         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37379         flag.
37380
37381         fts: make directory fds more robust
37382         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37383         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37384
37385         backupfile, chdir-long, fts, savedir: make safer
37386         * lib/backupfile.c (includes): Use "dirent--.h", since
37387         numbered_backup can write to stderr during readdir.
37388         * lib/savedir.c (includes): Likewise.
37389         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37390         emulation can write to stderr on failure.
37391         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37392         * lib/getcwd.c: Document why opendir_safer is unused.
37393         * lib/glob.c: Likewise.
37394         * lib/scandir.c: Likewise.
37395         * lib/openat-proc.c: Likewise, for open_safer.
37396         * modules/backupfile (Depends-on): Add dirent-safer.
37397         * modules/savedir (Depends-on): Likewise.
37398         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37399         * modules/chdir-long (Depends-on): Add openat-safer.
37400
37401         openat-safer: new module
37402         * modules/openat-safer: New file.
37403         * lib/openat-safer.c: Likewise.
37404         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37405         * lib/fcntl-safer.h (openat_safer): Declare.
37406         * lib/fcntl--.h (openat): Override.
37407         * MODULES.html.sh (File descriptor based I/O): Mention it.
37408         * lib/openat.h: Add double-inclusion guards.
37409         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37410         "fcntl--.h", so we can implement openat.
37411         * modules/openat-safer-tests: New test.
37412         * tests/test-openat-safer.c: New file.
37413
37414         dirent-safer: new module
37415         * modules/dirent-safer: New file.
37416         * lib/dirent--.h: Likewise.
37417         * lib/dirent-safer.h: Likewise.
37418         * lib/opendir-safer.c: Likewise.
37419         * m4/dirent-safer.m4: Likewise.
37420         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37421         * modules/dirent-safer-tests: New test.
37422         * tests/test-dirent-safer.c: New file.
37423         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37424
37425         fdopendir: optimize on mingw
37426         * lib/unistd.in.h (_gl_directory_name): New prototype.
37427         * lib/fchdir.c (_gl_directory_name): Implement it.
37428         (fchdir): Use it to simplify implementation.
37429         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37430         fchdir, when available, to avoid calling [f]chdir().
37431
37432         fdopendir: split into its own module
37433         * lib/openat.c (fdopendir): Move...
37434         * lib/fdopendir.c: ...into new file.
37435         * modules/fdopendir: New module.
37436         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37437         * modules/openat (Depends-on): Add fdopendir.
37438         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37439         fdopendir here.
37440         * modules/savedir (Depends-on): Only need fdopendir, not full
37441         openat.
37442         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37443         * lib/openat.h (fdopendir): Drop prototype.
37444         * lib/dirent.in.h (fdopendir): Provide prototype.
37445         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37446         * modules/dirent (Makefile.am): Substitute them.
37447         * MODULES.html.sh (File system functions): Mention it.
37448         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37449         * modules/fdopendir-tests: New file.
37450         * tests/test-fdopendir.c: Likewise.
37451
37452         fchdir: use more consistent macro convention
37453         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37454         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37455         REPLACE_FCHDIR, rather than relying on config.h macros.
37456         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37457         inside a single make-time REPLACE_FCHDIR block, rather than using
37458         the config.h FCHDIR_REPLACEMENT.
37459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37460         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37461         Manage fstat replacement.
37462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37463         REPLACE_FCHDIR.
37464         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37465         (Makefile.am): Substitute REPLACE_FCHDIR.
37466         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37467         FCHDIR_REPLACEMENT.
37468         * lib/dup-safer.c (dup_safer): Likewise.
37469         * lib/dup2.c (rpl_dup2): Likewise.
37470         * lib/dup3.c (rpl_dup3): Likewise.
37471         * lib/open.c (rpl_open): Likewise.
37472
37473         fchdir: simplify error handling, and support dup3
37474         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37475         stdbool, malloc-posix, realloc-posix.
37476         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37477         (ensure_dirs_slot): Return false on allocation failure.
37478         (rpl_dup2): Delete.
37479         (_gl_register_dup): New function.
37480         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37481         (_gl_register_fd): Close fd on allocation failure.
37482         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37483         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37484         prototype.
37485         (rpl_dup2_fchdir): Delete prototype.
37486         * lib/open.c (open): Update caller.
37487         * lib/dup2.c (dup2): Track fchdir metadata.
37488         * lib/dup3.c (dup3): Likewise.
37489         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37491
37492 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37493
37494         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37495         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37496         don't pass arguments to AC_OUTPUT.
37497
37498 2009-09-02  Bruno Haible  <bruno@clisp.org>
37499
37500         * modules/mkdtemp (License): Relicense under LGPLv2+.
37501         Reported by Paolo Bonzini.
37502
37503 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37504
37505         Replace uses of obsolete autoconf macros in Jim's modules.
37506         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37507         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37508         can evoke a warning from autoconf when run with -Wobsolete
37509         enabled.  They were declared obsolete for good reasons (see
37510         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37511         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37512         should not continue using the deprecated macros.
37513         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37514         obsolete Autoconf macros with modern counterparts.
37515         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37516         * m4/dos.m4 (gl_AC_DOS): Likewise.
37517         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37518         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37519         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37520         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37521         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37523         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37524         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37525         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37526         Likewise.
37527         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37528         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37529         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37530         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37531         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37532         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37533
37534 2009-09-01  Eric Blake  <ebb9@byu.net>
37535
37536         fchdir: fix off-by-one bug in previous patch
37537         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37538         (_gl_unregister_fd): Delete useless if.
37539
37540 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37541
37542         maint.mk: sort the list of syntax-check rules
37543         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37544         easier to get a sense of progress when the rules are run sequentially
37545         and take a long time.
37546
37547 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37548
37549         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37550         * modules/netinet_in: Likewise.
37551         * modules/sys_file: Likewise.
37552         * modules/sys_ioctl: Likewise.
37553         * modules/sys_select: Likewise.
37554         * modules/sys_socket: Likewise.
37555         * modules/sys_stat: Likewise.
37556         * modules/sys_time: Likewise.
37557         * modules/sys_times: Likewise.
37558         * modules/sys_utsname: Likewise.
37559         * modules/sys_wait: Likewise.
37560
37561 2009-09-01  Jim Meyering  <meyering@redhat.com>
37562
37563         fts: help ensure that return values are not ignored
37564         * lib/fts_.h (__GNUC_PREREQ): Define.
37565         (__attribute_warn_unused_result__): Define.
37566         (fts_children, fts_close, fts_open, fts_read): Declare with
37567         __attribute_warn_unused_result__.
37568
37569         fts: fts_close now fails also when closing a dir file descriptor fails
37570         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37571         and propagate to caller, along with errno.
37572
37573         announce-gen: correct formatting in --help output
37574         * build-aux/announce-gen (usage): Move the one-line description in
37575         --help output "up", to where it belongs, just after Usage:.
37576
37577 2009-08-31  Eric Blake  <ebb9@byu.net>
37578
37579         fchdir: port to mingw
37580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37581         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37582         opened, then use a substitute.
37583         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37584         replacement.
37585         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37586         (_gl_register_fd): No need to check stat if open already filters
37587         all directories.
37588         (fchdir): Fix error condition to match POSIX.
37589         * modules/fchdir (Depends-on): Add sys_stat.
37590         * doc/posix-functions/open.texi (open): Document the limitation.
37591         * modules/fchdir-tests: New file.
37592         * tests/test-fchdir.c: Likewise.
37593
37594         canonicalize: allow cross-testing from cygwin to mingw
37595         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37596         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37597         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37598         Likewise.
37599         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37600         target does not support symlinks.
37601         * tests/test-canonicalize-lgpl.sh: Likewise.
37602
37603         chown: avoid compilation warning on mingw
37604         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37605         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37606         mingw.
37607         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37608         * modules/chown (Depends-on): Add errno.
37609
37610 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37611
37612         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37613         command.
37614
37615 2009-08-31  Jim Meyering  <meyering@redhat.com>
37616
37617         canonicalize: remove useless initialization
37618         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37619         initialization of local, "end".
37620
37621 2009-08-30  Bruno Haible  <bruno@clisp.org>
37622
37623         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37624         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37625         ENOSYS.
37626
37627 2009-08-30  Bruno Haible  <bruno@clisp.org>
37628
37629         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37630         /usr/xpg4/bin/tr when it exists.
37631         * tests/test-pipe-filter-gi1.sh: Likewise.
37632
37633 2009-08-30  Bruno Haible  <bruno@clisp.org>
37634
37635         Work around deficient /usr/bin/id program on Solaris.
37636         * tests/test-file-has-acl.sh (ID): New variable.
37637         * tests/test-set-mode-acl.sh (ID): Likewise.
37638         * tests/test-copy-acl.sh (ID): Likewise.
37639         * tests/test-copy-file.sh (ID): Likewise.
37640
37641 2009-08-30  Bruno Haible  <bruno@clisp.org>
37642
37643         New module 'xstriconveh'.
37644         * lib/xstriconveh.h: New file.
37645         * lib/xstriconveh.c: New file.
37646         * modules/xstriconveh: New file.
37647
37648 2009-08-30  Bruno Haible  <bruno@clisp.org>
37649
37650         Make it easier to use mem_cd_iconveh.
37651         * lib/striconveh.h (iconveh_t): New type.
37652         (iconveh_open, iconveh_close): New declarations.
37653         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37654         with a single 'const iconveh_t *' argument.
37655         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37656         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37657         with a single 'const iconveh_t *' argument.
37658         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37659         * tests/test-striconveh.c (main): Update.
37660         * NEWS: Mention the change.
37661
37662 2009-08-30  Bruno Haible  <bruno@clisp.org>
37663
37664         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37665         problem.
37666
37667 2009-08-30  Bruno Haible  <bruno@clisp.org>
37668
37669         Work around iconv_open problem on Solaris.
37670         * lib/iconv_open-solaris.gperf: New file.
37671         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37672         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37673         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37674         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37675         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37676         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37677
37678 2009-08-29  Jim Meyering  <meyering@redhat.com>
37679
37680         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37681         * top/maint.mk (cvs-check): Remove target; it was just an alias
37682         to the better-named vc-diff-check.
37683         (maintainer-distcheck): Remove rule.  It was used only from
37684         the (alpha/beta/major) target, and all of its commands but one
37685         were coreutils-specific.
37686         (vc-dist): Remove rule.
37687         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37688         Run vc-diff-check, not vc-dist.
37689         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37690
37691 2009-08-27  Bruno Haible  <bruno@clisp.org>
37692
37693         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37694         of 0.
37695
37696 2009-08-27  Bruno Haible  <bruno@clisp.org>
37697
37698         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37699         compilers.
37700         * doc/func.texi: Document the SunPRO C bug.
37701
37702 2009-08-27  Bruno Haible  <bruno@clisp.org>
37703
37704         Fix link error on Solaris.
37705         * tests/test-parse-duration.c (xstrdup): Remove function.
37706
37707 2009-08-26  PĂ¡draig Brady  <P@draigbrady.com>
37708
37709         ignore-value: handle pointer types, too
37710         * lib/ignore-value.h (__attribute__): Remove definition.
37711         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37712         of a more concise and more-often effective "(void) i" statement.
37713         (ignore_ptr): New function to suppress warnings from functions that
37714         return pointers, and to make it explicit that one function doesn't
37715         handle all cases.
37716
37717 2009-08-25  Bruno Haible  <bruno@clisp.org>
37718
37719         dup2: work around a Linux bug.
37720         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37721         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37722         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37723         Reported by Simon Josefsson.
37724
37725 2009-08-25  Jim Meyering  <meyering@redhat.com>
37726
37727         libguestfs uses gnulib
37728         * users.txt: Add libguestfs.
37729
37730 2009-08-24  Eric Blake  <ebb9@byu.net>
37731
37732         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37733         * lib/pipe2.c (includes): Add binary-io.h.
37734         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37735
37736 2009-08-24  Bruno Haible  <bruno@clisp.org>
37737
37738         Tolerate declared but missing accept4 syscall.
37739         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37740         available.
37741         * lib/sys_socket.in.h (accept4): If the function is already present,
37742         override it.
37743         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37744         * modules/accept4 (Makefile.am): Compile accept4.c always.
37745         Reported by Paolo Bonzini and Eric Blake.
37746
37747 2009-08-23  Bruno Haible  <bruno@clisp.org>
37748
37749         New module 'accept4'.
37750         * lib/sys_socket.in.h (accept4): New declaration.
37751         * lib/accept4.c: New file.
37752         * m4/accept4.m4: New file.
37753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37754         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37755         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37756         HAVE_ACCEPT4.
37757         * modules/accept4: New file.
37758         * doc/glibc-functions/accept4.texi: Mention the new module.
37759
37760 2009-08-24  Jim Meyering  <meyering@redhat.com>
37761
37762         progname: also set global program_invocation_name, when possible
37763         Before this change, a libtool-enabled program that calls glibc's
37764         error function would report the program name as
37765         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37766         * modules/progname (configure.ac): Check for a declaration of
37767         program_invocation_name.
37768         * lib/progname.c:  Include <errno.h>.
37769         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37770         Set program_invocation_name.
37771
37772 2009-08-23  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/dup3.c: Include <string.h>.
37775
37776 2009-08-23  Bruno Haible  <bruno@clisp.org>
37777
37778         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37779         * lib/pipe2.c (pipe2): Likewise.
37780         Suggested by Eric Blake.
37781
37782 2009-08-23  Bruno Haible  <bruno@clisp.org>
37783
37784         Tolerate declared but missing dup3 syscall.
37785         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37786         * lib/unistd.in.h (dup3): If the function is already present,
37787         override it.
37788         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37789         * modules/dup3 (Makefile.am): Compile dup3.c always.
37790         Reported by Paolo Bonzini.
37791
37792 2009-08-23  Bruno Haible  <bruno@clisp.org>
37793
37794         Tolerate declared but missing pipe2 syscall.
37795         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37796         available.
37797         * lib/unistd.in.h (pipe2): If the function is already present,
37798         override it.
37799         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37800         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37801         Reported by Paolo Bonzini.
37802
37803 2009-08-23  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/pipe2.c (pipe2): Move #ifs inside function.
37806
37807 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37808
37809         quotearg: document limitations of quote_these_too
37810         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37811         those limitations are created.
37812         * lib/quotearg.h (set_char_quoting): Document that digits and
37813         letters that are special after backslash are not permitted.
37814         (quotearg_char): Cross-reference set_char_quoting documentation.
37815
37816 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37817
37818         quotearg: implement custom_quoting_style
37819         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37820         right_quote fields.
37821         (set_custom_quoting): New public function.
37822         (quotearg_buffer_restyled): Add left_quote and right_quote
37823         arguments, handle them very much like locale quoting, and update
37824         all uses.
37825         (quotearg_n_custom): New public function.
37826         (quotearg_n_custom_mem): New public function.
37827         (quotearg_custom): New public function.
37828         (quotearg_custom_mem): New public function.
37829         * lib/quotearg.h: Prototype and document new public functions.
37830         (enum quoting_style): For escape_quoting_style and
37831         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37832         ignored even though they're otherwise like c_quoting_style.
37833         Add custom_quoting_style member and document with comparison to
37834         clocale_quoting_style.
37835         * tests/test-quotearg.c (custom_quotes): New array.
37836         (custom_results): New array.
37837         (main): Extend to test custom quoting.
37838
37839 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37840
37841         quotearg: fix right quote escaping when it's in quote_these_too
37842         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37843         quote, be sure to prepend only one backslash.
37844         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37845         (main): Test it.
37846
37847 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37848
37849         quotearg-tests: test escaping of embedded locale quotes
37850         * tests/test-quotearg.c (struct result_strings): Add member for
37851         new input.
37852         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37853         (inputs): Add new input.
37854         (results_g): Add expected results.
37855         (flag_results): Likewise.
37856         (locale_results): Likewise.
37857         (compare_strings): Check those.
37858
37859 2009-08-23  Bruno Haible  <bruno@clisp.org>
37860
37861         Tests for module 'dup3'.
37862         * modules/dup3-tests: New file.
37863         * tests/test-dup3.c: New file.
37864
37865         New module 'dup3'.
37866         * lib/unistd.in.h (dup3): New declaration.
37867         * lib/dup3.c: New file.
37868         * m4/dup3.m4: New file.
37869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37870         HAVE_DUP3.
37871         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37872         * modules/dup3: New file.
37873         * doc/glibc-functions/dup3.texi: Mention the new module.
37874
37875 2009-08-23  Bruno Haible  <bruno@clisp.org>
37876
37877         Tweak the dup2 test.
37878         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37879         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37880         the test file is still empty. Fix argument order of lseek.
37881
37882 2009-08-23  Bruno Haible  <bruno@clisp.org>
37883
37884         Avoid test link errors when the modules getopt-gnu, gettext are used.
37885         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37887
37888 2009-08-23  Bruno Haible  <bruno@clisp.org>
37889
37890         Fix getdtablesize() on mingw.
37891         * lib/getdtablesize.c (getdtablesize): Implement differently.
37892         * lib/unistd.in.h (getdtablesize): Improve comment.
37893
37894 2009-08-23  Bruno Haible  <bruno@clisp.org>
37895
37896         New module 'mkostemp'.
37897         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37898         * lib/stdlib.in.h (mksotemp): New declaration.
37899         * lib/mkostemp.c: New file, from glibc with modifications.
37900         * lib/tempname.h (GT_FILE): Remove outdated comment.
37901         (gen_tempname): Add flags argument.
37902         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37903         (__GT_FILE): Map to 1.
37904         (small_open, large_open): Remove macros.
37905         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37906         * lib/mkstemp.c (mkstemp): Update.
37907         * lib/mkdtemp.c (mkdtemp): Likewise.
37908         * m4/mkostemp.m4: New file.
37909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37910         HAVE_MKOSTEMP.
37911         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37912         HAVE_MKOSTEMP.
37913         * modules/mkostemp: New file, based on modules/mkstemp.
37914         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37915         * NEWS: Mention the change.
37916
37917 2009-08-23  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37920         Reported by Eric Blake.
37921
37922 2009-08-23  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37925         Reported by Eric Blake.
37926
37927 2009-08-23  Bruno Haible  <bruno@clisp.org>
37928
37929         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37930         * modules/pipe2 (Depends-on): Likewise.
37931
37932 2009-08-23  Eric Blake  <ebb9@byu.net>
37933
37934         fcntl-h: add O_TTY_INIT support
37935         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37936         * tests/test-fcntl-h.c (o): Test it.
37937         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37938
37939         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37940         * modules/fcntl: Move <fcntl.h> header replacement...
37941         * modules/fcntl-h: ...to new name, so as not to collide with
37942         like-named function.
37943         * tests/test-fcntl.c: Rename...
37944         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37945         * modules/fcntl-tests: Rename...
37946         * modules/fcntl-h-tests: ...to this.  Update test file name.
37947         * modules/chdir-long (Depends-on): Update clients.
37948         * modules/chdir-safer (Depends-on): Likewise.
37949         * modules/fcntl-safer (Depends-on): Likewise.
37950         * modules/fts (Depends-on): Likewise.
37951         * modules/mkancesdirs (Depends-on): Likewise.
37952         * modules/mkdir-p (Depends-on): Likewise.
37953         * modules/open (Depends-on): Likewise.
37954         * modules/savewd (Depends-on): Likewise.
37955         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37956         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37957
37958 2009-08-22  Bruno Haible  <bruno@clisp.org>
37959
37960         * modules/binary-io (License): Relicense under LGPL.
37961         * modules/pipe2 (License): Likewise.
37962
37963 2009-08-22  Bruno Haible  <bruno@clisp.org>
37964
37965         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37966         return value.
37967         * lib/pipe-filter-gi.c (filter_init): Likewise.
37968         Reported by Eric Blake.
37969
37970 2009-08-22  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37973         * modules/pipe (Depends-on): Add pipe2.
37974
37975 2009-08-22  Bruno Haible  <bruno@clisp.org>
37976
37977         Tests for module 'pipe2'.
37978         * modules/pipe2-tests: New file.
37979         * tests/test-pipe2.c: New file.
37980
37981         New module 'pipe2'.
37982         * lib/unistd.in.h (pipe2): New declaration.
37983         * lib/pipe2.c: New file.
37984         * m4/pipe2.m4: New file.
37985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37986         HAVE_PIPE2.
37987         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37988         * modules/pipe2: New file.
37989         * doc/glibc-functions/pipe2.texi: Mention the new module.
37990
37991 2009-08-22  Bruno Haible  <bruno@clisp.org>
37992
37993         Reference some new glibc functions.
37994         * doc/glibc-functions/accept4.texi: New file.
37995         * doc/glibc-functions/dup3.texi: New file.
37996         * doc/glibc-functions/mkostemp.texi: New file.
37997         * doc/glibc-functions/pipe2.texi: New file.
37998         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37999         (Glibc sys/socket.h): Refer to accept4.
38000         (Glibc unistd.h): Refer to dup3, pipe2.
38001         Reported by Eric Blake.
38002
38003 2009-08-22  Jim Meyering  <meyering@redhat.com>
38004             Bruno Haible  <bruno@clisp.org>
38005
38006         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38007         This makes it so packages using automake-1.11's silent-rules option
38008         can print e.g., a single "GEN    configmake.h" line, rather than
38009         the 30+ statements that perform the job.  If you want to see the
38010         actual commands, you can still run "make V=1".
38011         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38012         so that make output is abbreviated when those variables are defined
38013         appropriately.
38014         * modules/argz: Likewise.
38015         * modules/arpa_inet: Likewise.
38016         * modules/byteswap: Likewise.
38017         * modules/configmake: Likewise.
38018         * modules/dirent: Likewise.
38019         * modules/errno: Likewise.
38020         * modules/fcntl: Likewise.
38021         * modules/float: Likewise.
38022         * modules/fnmatch: Likewise.
38023         * modules/getopt-posix: Likewise.
38024         * modules/glob: Likewise.
38025         * modules/iconv_open: Likewise.
38026         * modules/inttypes: Likewise.
38027         * modules/localcharset: Likewise.
38028         * modules/locale: Likewise.
38029         * modules/math: Likewise.
38030         * modules/netdb: Likewise.
38031         * modules/netinet_in: Likewise.
38032         * modules/poll: Likewise.
38033         * modules/posix_spawnp-tests: Likewise.
38034         * modules/sched: Likewise.
38035         * modules/search: Likewise.
38036         * modules/selinux-h: Likewise.
38037         * modules/signal: Likewise.
38038         * modules/spawn: Likewise.
38039         * modules/stdarg: Likewise.
38040         * modules/stdbool: Likewise.
38041         * modules/stddef: Likewise.
38042         * modules/stdint: Likewise.
38043         * modules/stdio: Likewise.
38044         * modules/stdlib: Likewise.
38045         * modules/string: Likewise.
38046         * modules/strings: Likewise.
38047         * modules/sys_file: Likewise.
38048         * modules/sys_ioctl: Likewise.
38049         * modules/sys_select: Likewise.
38050         * modules/sys_socket: Likewise.
38051         * modules/sys_stat: Likewise.
38052         * modules/sys_time: Likewise.
38053         * modules/sys_times: Likewise.
38054         * modules/sys_utsname: Likewise.
38055         * modules/sys_wait: Likewise.
38056         * modules/sysexits: Likewise.
38057         * modules/time: Likewise.
38058         * modules/unistd: Likewise.
38059         * modules/wchar: Likewise.
38060         * modules/wctype: Likewise.
38061
38062 2009-08-22  Jim Meyering  <meyering@redhat.com>
38063
38064         announce-gen: detect write failure
38065         * build-aux/announce-gen: Add Coda at end.
38066         Remove equivalent-but-more-verbose block at top.
38067
38068 2009-08-19  Akim Demaille  <demaille@gostai.com>
38069
38070         bootstrap: --help to stdout.
38071         * bootstrap (usage): Don't send --help to stderr.
38072         Use a here doc instead of a long string.
38073
38074 2009-08-21  Eric Blake  <ebb9@byu.net>
38075
38076         test-popen-safer: split from test-popen
38077         * tests/test-popen.c (main): Move...
38078         * tests/test-popen.h: ...into new file.
38079         * tests/test-popen-safer2.c: New file.
38080         * modules/popen-tests (Files): Add test-popen.h.
38081         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38082         Suggested by Bruno Haible.
38083
38084         test-fcntl-safer: split from test-open
38085         * tests/test-open.c (main): Move...
38086         * tests/test-open.h: ...into new file.
38087         * tests/test-fcntl-safer.c: New file.
38088         * modules/open-tests (Files): Add test-open.h.
38089         * modules/fcntl-safer-tests: New file.
38090         Suggested by Bruno Haible.
38091
38092         test-fopen-safer: split from test-fopen
38093         * tests/test-fopen.c (main): Move...
38094         * tests/test-fopen.h: ...into new file.
38095         * tests/test-fopen-safer.c: New file.
38096         * modules/fopen-tests (Files): Add test-fopen.h.
38097         * modules/fopen-safer-tests: New file.
38098         Suggested by Bruno Haible.
38099
38100 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38101
38102         popen-safer: test O_CLOEXEC at run-time.
38103         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38104
38105 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38106
38107         fcntl: move more flags to the header
38108         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38109         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38110         * lib/fcntl.in.h: Do both things here.
38111
38112 2009-08-21  Jim Meyering  <meyering@redhat.com>
38113
38114         consistently remove $@-t before redirecting to it
38115         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38116         * modules/alloca-opt: Likewise.
38117         * modules/byteswap: Likewise.
38118         * modules/fnmatch: Likewise.
38119         * modules/getopt-posix: Likewise.
38120         * modules/glob: Likewise.
38121         * modules/poll: Likewise.
38122         * modules/posix_spawnp-tests: Likewise.
38123         * modules/sys_socket: Likewise.
38124         * modules/sysexits: Likewise.
38125
38126 2009-08-21  Eric Blake  <ebb9@byu.net>
38127
38128         popen: simplify access to original popen
38129         * lib/popen.c (rpl_popen): No need to worry about popen being a
38130         macro.
38131         Reported by Bruno Haible.
38132
38133 2009-08-20  Eric Blake  <ebb9@byu.net>
38134
38135         build: avoid some compiler warnings
38136         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38137         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38138         type.
38139         (new_exclude_segment, excluded_file_pattern_p)
38140         (excluded_file_name_p): Reduce scope.
38141         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38142         old-style declaration.
38143
38144 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38145
38146         * tests/test-exclude1.sh: Handle Windows EOL.
38147         * tests/test-exclude2.sh: Likewise.
38148         * tests/test-exclude3.sh: Likewise.
38149         * tests/test-exclude4.sh: Likewise.
38150         * tests/test-exclude5.sh: Likewise.
38151         * tests/test-exclude6.sh: Likewise.
38152         * tests/test-exclude7.sh: Likewise.
38153
38154 2009-08-19  Akim Demaille  <demaille@gostai.com>
38155
38156         bootstrap: find sha1sum when named gsha1sum.
38157         * bootstrap (find_tool): New.
38158         ($SHA1SUM): New.
38159         Use it.
38160
38161 2009-08-20  Jim Meyering  <meyering@redhat.com>
38162
38163         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38164         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38165         expression that converts "." in a file name to "\." in the resulting
38166         regexp.  Start with a dummy statement, so that prior shell variable
38167         definitions are expanded portably.  Reported by Simon Josefsson.
38168
38169 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38170
38171         Fix polling for writeability of a screen buffer.
38172         * lib/poll.c: Distinguish input and screen buffers for the
38173         Win32 implementation.
38174         * lib/select.c: Likewise.
38175
38176 2009-08-19  Eric Blake  <ebb9@byu.net>
38177
38178         popen-safer: prevent popen from clobbering std descriptors
38179         * modules/popen-safer: New file.
38180         * lib/popen-safer.c: Likewise.
38181         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38182         * lib/stdio--.h (popen): Provide override.
38183         * lib/stdio-safer.h (popen_safer): Provide declaration.
38184         * tests/test-popen.c (includes): Partially test this.
38185         * modules/popen-safer-tests: New file, for more tests.
38186         * tests/test-popen-safer.c: Likewise.
38187         * MODULES.html.sh (file stream based Input/Output): Mention it.
38188
38189         tests: test some of the *-safer modules
38190         * modules/fopen-safer (Depends-on): Add fopen.
38191         * modules/fcntl-safer (Depends-on): Add fcntl.
38192         * modules/stdlib-safer (Depends-on): Add stdlib.
38193         (configure.ac): Set indicator.
38194         * modules/unistd-safer (configure.ac): Likewise.
38195         * modules/tmpfile-safer (configure.ac): Likewise.
38196         (Depends-on): Add tmpfile.
38197         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38198         active.
38199         * tests/test-fopen.c (includes): Test safer versions when they are
38200         in use.
38201         * tests/test-open.c (includes): Likewise.
38202
38203         popen: fix cygwin 1.5 bug when stdin closed
38204         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38205         * modules/popen: New file.
38206         * modules/popen-tests: Likewise.
38207         * tests/test-popen.c: Likewise.
38208         * m4/popen.m4: Likewise.
38209         * lib/popen.c: Likewise.
38210         * lib/stdio.in.h (popen): New declaration.
38211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38212         * modules/stdio (Makefile.am): Likewise.
38213         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38214
38215 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38216
38217         maint.mk: give full control over update-copyright exclusions
38218         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38219         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38220         (update-copyright): Don't force inclusion of top-level
38221         ChangeLog.  Don't force exclusion of all COPYING files, but make
38222         them the default exclusion instead.
38223
38224 2009-08-16  Bruno Haible  <bruno@clisp.org>
38225
38226         Fix test failures on Solaris 10.
38227         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38228         tests when Solaris iconv() is used.
38229         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38230         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38231         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38232         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38233         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38234
38235 2009-08-16  Bruno Haible  <bruno@clisp.org>
38236
38237         Fix test failures on Solaris 10.
38238         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38239         'tr' program and pass it as first argument.
38240         * tests/test-pipe-filter-gi1.sh: Likewise.
38241         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38242         program as first argument.
38243         * tests/test-pipe-filter-gi1.c (main): Likewise.
38244
38245 2009-08-16  Eric Blake  <ebb9@byu.net>
38246
38247         fpurge: fix previous commits
38248         * modules/fpurge (Makefile.am): Make replacement conditional,
38249         partially reverting 2007-04-29 change; missed in previous
38250         attempt.
38251         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38252         is missing.
38253
38254 2009-08-16  Bruno Haible  <bruno@clisp.org>
38255
38256         Clarify fpurge's effect on the file position.
38257         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38258         * tests/test-fpurge.c (main): Make a second pass for checking the file
38259         position.
38260
38261 2009-08-16  Bruno Haible  <bruno@clisp.org>
38262
38263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38264         declaration of fpurge is missing.
38265         * tests/test-fpurge.c (main): Check that the file has not more contents
38266         than expected. Close the file before removing it.
38267
38268 2009-08-15  Eric Blake  <ebb9@byu.net>
38269
38270         fpurge: don't wrap working cygwin implementation
38271         * lib/fpurge.c (fpurge): Fix comment typo.
38272         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38273         1.7 to avoid replacement.
38274         * tests/test-fpurge.c (main): Enhance test.
38275
38276 2009-08-15  Eric Blake  <ebb9@byu.net>
38277         and Jim Meyering  <meyering@redhat.com>
38278
38279         test-update-copyright: skip if perl is insufficient
38280         * tests/test-update-copyright.sh: Failure to run maintainer tool
38281         should not cause testsuite failure on cygwin 1.5.
38282
38283 2009-08-14  Eric Blake  <ebb9@byu.net>
38284
38285         doc: mention more functions added in cygwin 1.7.0
38286         * doc/posix-headers/limits.texi (limits.h): Update for recent
38287         cygwin additions.
38288         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38289         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38290         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38291         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38292         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38293
38294 2009-08-14  Eric Blake  <ebb9@byu.net>
38295
38296         maint.mk: simplify update-copyright rule
38297         * top/maint.mk (update-copyright-local): Delete, and document how
38298         to do it in cfg.mk instead.
38299         (update-copyright-exclude-regexp): Delete, and document how to do
38300         it in .x-update-copyright instead.
38301         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38302         exclude ChangeLog.
38303
38304 2009-08-14  Bruno Haible  <bruno@clisp.org>
38305
38306         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38307
38308 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38309
38310         maint.mk: support update-copyright-env
38311         * top/maint.mk (update-copyright-env): Define place-holder.
38312         (update-copyright): Expand $(update-copyright-env) before
38313         invoking update-copyright.
38314
38315 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38316
38317         update-copyright: implement forced reformatting
38318         * build-aux/update-copyright: Implement and document
38319         UPDATE_COPYRIGHT_FORCE.
38320         * tests/test-update-copyright.sh: Test it.
38321
38322 2009-08-14  Eric Blake  <ebb9@byu.net>
38323         and Bruno Haible  <bruno@clisp.org>
38324
38325         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38326         * tests/test-locale.c: Revert previous patch related to NULL.
38327         * tests/test-stdio.c: Likewise.
38328         * tests/test-stdlib.c: Likewise.
38329         * tests/test-string.c: Likewise.
38330         * tests/test-unistd.c: Likewise.
38331         * modules/time-tests (Depends-on): Add verify.
38332         * modules/wchar-tests (Depends-on): Likewise.
38333         * tests/test-time.c: Test for NULL compliance.
38334         * tests/test-wchar.c: Likewise.
38335         * modules/locale (Depends-on): Add stddef.
38336         * modules/stdio (Depends-on): Likewise.
38337         * modules/stdlib (Depends-on): Likewise.
38338         * modules/string (Depends-on): Likewise.
38339         * modules/time (Depends-on): Likewise.
38340         * modules/unistd (Depends-on): Likewise.
38341         * modules/wchar (Depends-on): Likewise.
38342         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38343         * lib/stdlib.in.h (includes): Likewise.
38344         * lib/string.in.h (includes): Likewise.
38345         * lib/time.in.h (includes): Likewise.
38346         * lib/unistd.in.h (includes): Likewise.
38347         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38348         replaced.
38349         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38350         * m4/stddef_h.m4: New file.
38351         * modules/stddef: Likewise.
38352         * lib/stddef.in.h: Likewise.
38353         * modules/stddef-tests: Likewise.
38354         * tests/test-stddef.c: Likewise.
38355         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38356         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38357         * doc/posix-headers/locale.texi (locale.h): Likewise.
38358         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38359         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38360         * doc/posix-headers/string.texi (string.h): Likewise.
38361         * doc/posix-headers/time.texi (time.h): Likewise.
38362         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38363         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38364
38365 2009-08-14  Eric Blake  <ebb9@byu.net>
38366
38367         doc: improve git diff of texinfo files
38368         * .gitattributes: Add rule for *.texi files, with hint on how to
38369         use it.
38370         Copied from m4, and based on a report by Bruno Haible.
38371
38372 2009-08-14  Bruno Haible  <bruno@clisp.org>
38373
38374         Disable multithread support by default on Cygwin 1.5.x for real.
38375         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38376
38377 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38378
38379         update-copyright: much ado about intervals
38380         * build-aux/update-copyright: Implement and document
38381         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38382         of copyright year intervals.
38383         Also, document UPDATE_COPYRIGHT_YEAR.
38384         * tests/test-update-copyright.sh: Test it.
38385
38386         update-copyright: convert 2-digit to 4-digit years
38387         * build-aux/update-copyright: Implement and document.
38388         * tests/test-update-copyright.sh: Update.
38389
38390 2009-08-14  Jim Meyering  <meyering@redhat.com>
38391
38392         test-exclude: avoid coreutils "make check" failure
38393         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38394         just as in test-argmatch.c.
38395
38396 2009-08-13  Eric Blake  <ebb9@byu.net>
38397
38398         test-dup2: fix bad assumption
38399         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38400         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38401
38402         test-version-etc: fix CRLF portability issue
38403         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38404         recognize \r.
38405         * tests/test-argp-version-etc-1.sh: Likewise.
38406
38407         getopt: update client modules
38408         * modules/argp (Depends-on): Use getopt-gnu.
38409         * modules/git-merge-changelog (Depends-on): Likewise.
38410         * modules/long-options (Depends-on): Likewise.
38411         * modules/xstrtol (Depends-on): Likewise.
38412
38413 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38414
38415         * tests/test-version-etc.sh: Don't fail on different
38416         project/version.  Don't fail on CRLF differences.  Rewrite to use
38417         multiple -e instead of multiple sed forks, suggested by Eric Blake
38418         <ebb9@byu.net>.
38419         * tests/test-argp-version-etc-1.sh: Likewise.
38420
38421 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38422
38423         * tests/test-version-etc.sh: Don't fail on different
38424         project/version.
38425
38426 2009-08-12  Bruno Haible  <bruno@clisp.org>
38427
38428         Tests for modules 'getopt-posix', 'getopt-gnu'.
38429         * modules/getopt-posix-tests: New file.
38430         * tests/test-getopt.c: New file.
38431         * tests/test-getopt.h: New file.
38432         * tests/test-getopt_long.h: New file.
38433
38434         New modules 'getopt-posix', 'getopt-gnu'.
38435         * modules/getopt-gnu: New file, renamed from modules/getopt.
38436         * modules/getopt-posix: New file.
38437         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38438         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38439         (gl_GETOPT): Remove macro.
38440         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38441         Disable the test against BSD systems that declare optreset. Test
38442         against mingw bug. Test against lack of support of optional arguments
38443         on many platforms.
38444         * doc/glibc-headers/getopt.texi: Update module name and list of
38445         relevant platforms.
38446         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38447         'getopt-gnu' and more portability problems.
38448         * NEWS: Mention the changes.
38449
38450 2009-08-12  Bruno Haible  <bruno@clisp.org>
38451
38452         Ensure that optarg etc. get declared by <unistd.h>.
38453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38454         AC_USE_SYSTEM_EXTENSIONS.
38455         * modules/getopt (Depends-on): Add 'extensions'.
38456
38457 2009-08-12  Bruno Haible  <bruno@clisp.org>
38458
38459         Avoid test link errors.
38460         * modules/pipe-filter-ii-tests (Makefile.am): Define
38461         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38462         * modules/pipe-filter-gi-tests (Makefile.am): Define
38463         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38465
38466 2009-08-12  Bruno Haible  <bruno@clisp.org>
38467
38468         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38469         gl_GETOPT_SUBSTITUTE before.
38470         (gl_GETOPT): Use it.
38471         * m4/argp.m4 (gl_ARGP): Update.
38472         Reported by Sergey Poznyakoff.
38473
38474         * m4/getopt.m4: Reorder macros.
38475         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38476         (gl_GETOPT_SUBSTITUTE): Remove macro.
38477
38478 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38479
38480         Minor improvement in gitlog-to-changelog
38481
38482         * build-aux/gitlog-to-changelog: New option `--format' makes
38483         output format string configurable.
38484
38485 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38486
38487         Optimize exclude: use hash tables for non-wildcard patterns.
38488
38489         * lib/exclude.c: Include hash.h and mbuiter.h
38490         (struct exclude_pattern, exclude_segment): New data types.
38491         (struct exclude): Rewrite.
38492         (fnmatch_pattern_has_wildcards): New function.
38493         (new_exclude_segment, free_exclude_segment): New functions.
38494         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38495         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38496         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38497         * modules/exclude: Depend on hash and mbuiter.
38498
38499         * modules/exclude-tests: New file.
38500         * tests/test-exclude.c: New file.
38501         * tests/test-exclude1.sh: New file.
38502         * tests/test-exclude2.sh: New file.
38503         * tests/test-exclude3.sh: New file.
38504         * tests/test-exclude4.sh: New file.
38505         * tests/test-exclude5.sh: New file.
38506         * tests/test-exclude6.sh: New file.
38507         * tests/test-exclude7.sh: New file.
38508
38509 2009-08-12  Bruno Haible  <bruno@clisp.org>
38510
38511         Ensure that getopt() gets declared by <unistd.h>.
38512         * lib/unistd.in.h: Conditionally include getopt.h.
38513         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38514         Set GNULIB_UNISTD_H_GETOPT.
38515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38516         GNULIB_UNISTD_H_GETOPT.
38517         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38518
38519 2009-08-12  Bruno Haible  <bruno@clisp.org>
38520
38521         Clarify logic.
38522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38523         gl_replace_getopt instead of GETOPT_H.
38524
38525 2009-08-12  Bruno Haible  <bruno@clisp.org>
38526
38527         * m4/getopt.m4: Add comments.
38528
38529 2009-08-12  Bruno Haible  <bruno@clisp.org>
38530
38531         Disable multithread support by default on Cygwin 1.5.x.
38532         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38533         set gl_use_threads=no if not specified otherwise.
38534
38535 2009-08-11  Bruno Haible  <bruno@clisp.org>
38536
38537         Avoid compilation error on NetBSD 5.0.
38538         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38539         * tests/test-stdio.c: Likewise.
38540         * tests/test-stdlib.c: Likewise.
38541         * tests/test-string.c: Likewise.
38542         * tests/test-unistd.c: Likewise.
38543         Reported by Greg Troxel <gdt@ir.bbn.com>
38544         at <https://savannah.gnu.org/support/?106973>.
38545
38546 2009-08-11  Bruno Haible  <bruno@clisp.org>
38547
38548         * modules/dup2-tests (Depends-on): Remove close.
38549
38550         Undo 2009-07-19 commit.
38551         * modules/acl-tests (Depends-on): Remove close.
38552         * modules/binary-io-tests (Depends-on): Likewise.
38553         * modules/closein-tests (Depends-on): Likewise.
38554         * modules/flock-tests (Depends-on): Likewise.
38555         * modules/fsync-tests (Depends-on): Likewise.
38556         * modules/lseek-tests (Depends-on): Likewise.
38557         * modules/pipe-tests (Depends-on): Likewise.
38558         * modules/posix_spawn-tests (Depends-on): Likewise.
38559         * modules/posix_spawnp-tests (Depends-on): Likewise.
38560         * modules/stat-time-tests (Depends-on): Likewise.
38561         * modules/yesno-tests (Depends-on): Likewise.
38562
38563 2009-08-10  Bruno Haible  <bruno@clisp.org>
38564
38565         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38566
38567 2009-08-10  Bruno Haible  <bruno@clisp.org>
38568
38569         Fix a gcc warning.
38570         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38571
38572 2009-08-10  Bruno Haible  <bruno@clisp.org>
38573
38574         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38575         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38576         not only the first time.
38577         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38578         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38579         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38580         is 1, not only the the first time.
38581
38582 2009-08-10  Bruno Haible  <bruno@clisp.org>
38583
38584         Make it possible to use module 'gethostname' without module 'close'.
38585         * lib/unistd.in.h (close): Evoke a link error only if
38586         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38588         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38589         * modules/unistd (Makefile.am): Substitute
38590         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38591         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38592         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38594         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38595         * modules/sys_ioctl (Makefile.am): Substitute
38596         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38597         * modules/socket (configure.ac): On native Windows, set
38598         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38599         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38600         Reported by Sam Steingold <sds@gnu.org>.
38601
38602 2009-08-10  Bruno Haible  <bruno@clisp.org>
38603
38604         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38605         * modules/ioctl (configure.ac): Likewise.
38606
38607 2009-08-10  Bruno Haible  <bruno@clisp.org>
38608
38609         Avoid collision between gnulib wrapper and libintl wrapper.
38610         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38611         already defined in intl/printf.c.
38612         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38613         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38614
38615 2009-08-09  Bruno Haible  <bruno@clisp.org>
38616
38617         Make <sys/select.h> really self-contained, also on Solaris 10.
38618         * lib/sys_select.in.h: Include <string.h>.
38619         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38620         Solaris 10 problem.
38621         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38622         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38623         Reported by Jim Meyering.
38624
38625 2009-08-09  Bruno Haible  <bruno@clisp.org>
38626
38627         Avoid warnings from 'aclocal' that are due to a use of macro name
38628         AM_XGETTEXT_OPTION that is not defined in automake.
38629         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38630         automake.
38631         * modules/error (configure.ac): Likewise.
38632         * modules/propername (configure.ac): Likewise.
38633         * modules/vasprintf (configure.ac): Likewise.
38634         * modules/verror (configure.ac): Likewise.
38635         * modules/xprintf (configure.ac): Likewise.
38636         * modules/xvasprintf (configure.ac): Likewise.
38637
38638 2009-08-08  Bruno Haible  <bruno@clisp.org>
38639
38640         Avoid compilation error in C++ mode.
38641         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38642         Reported by Sam Steingold <sds@gnu.org>.
38643
38644 2009-08-08  Bruno Haible  <bruno@clisp.org>
38645
38646         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38647         for the various Unix platforms.
38648         * doc/posix-headers/limits.texi: Update platforms list regarding
38649         HOST_NAME_MAX.
38650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38651
38652 2009-08-07  Jim Meyering  <meyering@redhat.com>
38653
38654         selinux-at: fix typo in a comment
38655         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38656         Spotted by Paolo Bonzini.
38657
38658         selinux-at: remove redundant m4 code, add documentation
38659         * modules/selinux-at (configure.ac): Remove redundant code.
38660         LIB_SELINUX is already set via the dependent module, selinux-h.
38661         (Include): Add quotes around selinux-at.h.
38662         * lib/selinux-at.h: Add documentation.
38663         Reported by Bruno Haible in
38664         http://marc.info/?l=gnulib-bug&m=124958988300749
38665
38666 2009-08-07  Bruno Haible  <bruno@clisp.org>
38667
38668         Avoid link error on MacOS X 10.3 and 10.4.
38669         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38670         on non-ELF systems.
38671         * lib/argp-pv.c (argp_program_version): Likewise.
38672         Reported by Simon Josefsson.
38673
38674 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38675
38676         * tests/test-version-etc.sh: Use $EXEEXT.
38677
38678 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38679
38680         update-copyright: update documentation to point to maint.mk
38681         * build-aux/update-copyright: Here.
38682
38683 2009-08-06  Jim Meyering  <meyering@redhat.com>
38684
38685         maint.mk: support update-copyright-local
38686         * top/maint.mk (update-copyright-local): Define place-holder.
38687         (update-copyright): Depend on $(update-copyright-local).
38688
38689 2009-08-06  Jim Meyering  <meyering@redhat.com>
38690
38691         selinux-at: new module
38692         Initially written for coreutils, this module will soon be
38693         used by findutils, too.
38694         * MODULES.html.sh [Misc]: Add selinux-at.
38695         * lib/selinux-at.h: New file, from coreutils.
38696         * lib/selinux-at.c: Likewise.
38697         * modules/selinux-at: Likewise.
38698         (License): Change from LGPL to GPL, since it depends
38699         on the GPL'd openat module.
38700
38701         doc: update README
38702         * README: Remove references to cogito.
38703         Remove cvs-repo-updating instructions from 2007.
38704         Don't imply that CVS is better if you have limited disk space.
38705
38706 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38707
38708         update-copyright: support C-style comments
38709         * build-aux/update-copyright: Implement and document.
38710         * tests/test-update-copyright.sh: Test.
38711
38712 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38713
38714         update-copyright: support omitted "(C)"
38715         * build-aux/update-copyright: Implement and document.  Also,
38716         allow variable whitespace before "(C)".
38717         * tests/test-update-copyright.sh: Test.
38718
38719 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38720
38721         update-copyright: don't trip on non-FSF copyright statements
38722         * build-aux/update-copyright: Fix so that the first correctly
38723         formatted FSF copyright statement is recognized no matter what
38724         appears before it.  Update documentation.
38725         * tests/test-update-copyright.sh: Test that.
38726
38727 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38728
38729         update-copyright: clean up code a little
38730         * build-aux/update-copyright: Append "_re" to the name of any
38731         variable holding a regular expression.
38732         Replace "old" and "new" with "stmt" in variable names.
38733         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38734         handled correctly.
38735         Format code more consistently.
38736
38737 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38738
38739         update-copyright-tests: improve portability
38740         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38741         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38742
38743 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38744
38745         update-copyright: support @copyright{} and &copy;
38746         * build-aux/update-copyright: Implement and document.
38747         * tests/test-update-copyright.sh: Test.
38748
38749 2009-08-04  Jim Meyering  <meyering@redhat.com>
38750
38751         update-copyright-tests: correctly test EOL=\r\n handling
38752         * tests/test-update-copyright.sh: Put \r at the end of some lines
38753         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38754
38755         maint.mk: make update-copyright exclusion list more configurable
38756         * top/maint.mk (update-copyright): Default to excluding COPYING,
38757         but allow an override, in case someone does want to update that file.
38758
38759         maint.mk: don't update copyright date in COPYING
38760         * top/maint.mk (update-copyright): Exclude COPYING.
38761
38762         maint.mk: add a copyright-updating rule
38763         * top/maint.mk (update-copyright): New rule.
38764         Derived from coreutils/Makefile.am.
38765
38766         update-copyright: rename some variables
38767         * build-aux/update-copyright: Rename a few variables for clarity.
38768         Tweak syntax.  List Joel E. Denny as coauthor.
38769
38770 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38771
38772         update-copyright: fix bug for 2-digit last year and add tests
38773         * build-aux/update-copyright: Fix bug.
38774         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38775         specified.
38776         * modules/update-copyright-tests: New
38777         * tests/test-update-copyright.sh: New.
38778
38779 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38780
38781         update-copyright: handle leading tabs in line prefix
38782         * build-aux/update-copyright: Count leading tabs as 8 spaces
38783         when computing margin.  This helps with the formatting of
38784         ChangeLogs, for example.
38785         Fix documentation a little.
38786
38787 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38788
38789         update-copyright: support EOL=\r\n
38790         * build-aux/update-copyright: Implement that.
38791
38792 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38793
38794         update-copyright: automatically format copyright statements
38795         * build-aux/update-copyright: Implement that.
38796         Also, be a little more predictable and safer by always failing
38797         when the full copyright format is not perfectly recognized as an
38798         unbroken whole.  Discussed at
38799         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38800         Rewrite documentation.
38801
38802 2009-08-03  Bruno Haible  <bruno@clisp.org>
38803
38804         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38805
38806 2009-08-02  Bruno Haible  <bruno@clisp.org>
38807
38808         Tests for module 'uname'.
38809         * modules/uname-tests: New file.
38810         * tests/test-uname.c: New file.
38811
38812         New module 'uname'.
38813         * lib/uname.c: New file.
38814         * m4/uname.m4: New file.
38815         * modules/uname: New file.
38816         * doc/posix-functions/uname.texi: Mention the new module.
38817
38818 2009-08-02  Bruno Haible  <bruno@clisp.org>
38819
38820         Tests for module 'sys_utsname'.
38821         * modules/sys_utsname-tests: New file.
38822         * tests/test-sys_utsname.c: New file.
38823
38824         New module 'sys_utsname'.
38825         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38826         * m4/sys_utsname_h.m4: New file.
38827         * modules/sys_utsname: New file.
38828         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38829
38830 2009-08-02  Bruno Haible  <bruno@clisp.org>
38831
38832         Implicitly initialize the sockets library.
38833         * lib/gethostname.c: Include sockets.h.
38834         (rpl_gethostname): Invoke gl_sockets_startup.
38835         * lib/socket.c: Include sockets.h.
38836         (rpl_socket): Invoke gl_sockets_startup.
38837         * modules/gethostname (Depends-on): Add sockets.
38838         * modules/socket (Depends-on): Likewise.
38839         * tests/test-poll.c: Don't include sockets.h.
38840         (main): Don't invoke gl_sockets_startup.
38841         * tests/test-select.c: Don't include sockets.h.
38842         (main): Don't invoke gl_sockets_startup.
38843
38844 2009-08-02  Bruno Haible  <bruno@clisp.org>
38845
38846         Allow multiple calls to gl_sockets_startup.
38847         * lib/sockets.c (initialized_sockets_version): New variable.
38848         (gl_sockets_startup): Do nothing if already called for this or a higher
38849         version.
38850         (gl_sockets_cleanup): Reset initialized_sockets_version.
38851
38852 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38853
38854         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38855         different project/version.
38856
38857 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38858             Bruno Haible  <bruno@clisp.org>
38859
38860         Tests for module 'pipe-filter-gi'.
38861         * modules/pipe-filter-gi-tests: New file.
38862         * tests/test-pipe-filter-gi1.sh: New file.
38863         * tests/test-pipe-filter-gi1.c: New file.
38864         * tests/test-pipe-filter-gi2.sh: New file.
38865         * tests/test-pipe-filter-gi2-main.c: New file.
38866         * tests/test-pipe-filter-gi2-child.c: New file.
38867
38868         New module 'pipe-filter-gi'.
38869         * lib/pipe-filter-gi.c: New file.
38870         * modules/pipe-filter-gi: New file.
38871
38872 2009-08-02  Bruno Haible  <bruno@clisp.org>
38873             Paolo Bonzini  <bonzini@gnu.org>
38874
38875         Tests for module 'pipe-filter-ii'.
38876         * modules/pipe-filter-ii-tests: New file.
38877         * tests/test-pipe-filter-ii1.sh: New file.
38878         * tests/test-pipe-filter-ii1.c: New file.
38879         * tests/test-pipe-filter-ii2.sh: New file.
38880         * tests/test-pipe-filter-ii2-main.c: New file.
38881         * tests/test-pipe-filter-ii2-child.c: New file.
38882
38883         New module 'pipe-filter-ii'.
38884         * lib/pipe-filter.h: New file.
38885         * lib/pipe-filter-ii.c: New file.
38886         * lib/pipe-filter-aux.h: New file.
38887         * modules/pipe-filter-ii: New file.
38888
38889 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38890
38891         * lib/gc-libgcrypt.c: Change copyright to FSF.
38892         * lib/gc-gnulib.c: Likewise.
38893
38894 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38895
38896         * lib/gethostname.c: Include limits.h.
38897
38898 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38899             Bruno Haible  <bruno@clisp.org>
38900
38901         Ensure HOST_NAME_MAX as part of the gethostname module.
38902         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38903         define also HOST_NAME_MAX.
38904         * tests/test-gethostname.c: Include <limits.h>.
38905         (main): Check also HOST_NAME_MAX.
38906         * doc/posix-headers/limits.texi: Document the mingw problem.
38907
38908 2009-08-02  Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38911         Add comments.
38912
38913 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38914
38915         * lib/gethostname.c: Add Windows wrapper.
38916         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38917         * modules/gethostname: Depend on sys_socket & errno, for also
38918         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38919         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38920
38921 2009-07-31  Jim Meyering  <meyering@redhat.com>
38922
38923         getloadavg: fix symbol name in comment
38924         * lib/getloadavg.c: Correct a typo I introduced when adding
38925         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38926         Matt Kraai spotted the problem.
38927
38928 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38929
38930         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38931         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38932         code also if ! defined N_NAME_POINTER.
38933         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38934         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38935         but the n_name member is a 12-byte array.
38936
38937 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38938
38939         update-copyright: generalize comment handling
38940         * build-aux/update-copyright: Handle copyright statements
38941         within more comment styles.
38942         Document usage.
38943         Report any file with an external copyright holder or parse failure.
38944
38945 2009-07-29  Jim Meyering  <meyering@redhat.com>
38946
38947         mktime: correct setting of REPLACE_MKTIME
38948         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38949
38950         update-copyright: new module
38951         * modules/update-copyright: New file.
38952         * build-aux/update-copyright: New file.
38953         * MODULES.html.sh (maint+release support): Add update-copyright.
38954
38955 2009-07-27  Bruno Haible  <bruno@clisp.org>
38956
38957         Fix compilation error when <ctime> is used and mktime is replaced.
38958         * lib/time.in.h (mktime): New declaration.
38959         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38960         REPLACE_MKTIME instead of defining mktime in config.h.
38961         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38962         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38963         Reported by Ross McFarland <rwmcfa1@neces.com>.
38964
38965 2009-07-27  Bruno Haible  <bruno@clisp.org>
38966
38967         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38968         Reported by Matt Kraai <mkraai@beckman.com>.
38969
38970 2009-07-25  Jim Meyering  <meyering@redhat.com>
38971
38972         maint.mk: avoid warnings about missing files
38973         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38974         diagnostic when .prev-version does not exist.
38975         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38976         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38977         nonexistent cfg.mk.
38978         Suggestions from Simon Josefsson.
38979
38980 2009-07-25  Bruno Haible  <bruno@clisp.org>
38981
38982         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38983         defined as macros. Needed on QNX 6.4.1.
38984         Reported by Matt Kraai <mkraai@beckman.com>.
38985
38986 2009-07-23  Jim Meyering  <meyering@redhat.com>
38987
38988         maint.mk: invoke "make dist" with a working value of XZ_OPT
38989         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38990
38991 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38992
38993         Make fseeko.c compile on QNX.
38994         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38995
38996 2009-07-22  Peter Simons  <simons@cryp.to>
38997
38998         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38999         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39000         * lib/md4.h: Likewise.
39001         * lib/md5.h: Likewise.
39002         * lib/sha1.h: Likewise.
39003         * lib/sha256.h: Likewise.
39004         * lib/sha512.h: Likewise.
39005
39006         tests-sha1: don't assign literal string to 'char *' variable
39007         * tests/test-sha1.c (main): Declare locals with "const" to match
39008         attributes of the right hand side.
39009
39010 2009-07-21  Eric Blake  <ebb9@byu.net>
39011
39012         dup2: fix more mingw problems
39013         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39014         fd to itself.
39015         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39016         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39017         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39018         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39019         care of mingw bugs.
39020
39021 2009-07-21  Jim Meyering  <meyering@redhat.com>
39022
39023         vc-list-files: avoid failure when /bin/sh is dash
39024         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39025         On some Debian based systems, /bin/sh is a symlink to dash, and running
39026         this command would omit the "/" following each 'tests' prefix:
39027           dash -x build-aux/vc-list-files -C . tests
39028         That is because bash and dash work differently:
39029           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39030           bash ok
39031           dash odd
39032
39033 2009-07-21  Eric Blake  <ebb9@byu.net>
39034
39035         dup2-tests: test previous patch
39036         * modules/dup2-tests: New file.
39037         * tests/test-dup2.c: Likewise.
39038         * tests/test-open.c (main): Avoid unspecified behavior.
39039         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39040         test.
39041
39042         dup2: work around mingw and cygwin 1.5 bug
39043         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39045         * modules/unistd (Makefile.am): Substitute it.
39046         * lib/unistd.in.h (dup2): Declare the replacement.
39047         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39048         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39049         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39050         * modules/execute (Depends-on): Add dup2.
39051         * modules/fseterr (Depends-on): Likewise.
39052         * modules/pipe (Depends-on): Likewise.
39053         * modules/posix_spawn-internal (Depends-on): Likewise.
39054
39055 2009-07-21  Bruno Haible  <bruno@clisp.org>
39056
39057         * modules/.gitattributes: New file.
39058
39059 2009-07-20  Bruno Haible  <bruno@clisp.org>
39060
39061         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39062         (main): Use it.
39063
39064 2009-07-20  Eric Blake  <ebb9@byu.net>
39065
39066         test-pipe: make a bit more robust.
39067         * tests/test-pipe.c (myerr): Allow error messages regardless of
39068         what we do to stderr.
39069         (test_pipe): Rearrange to avoid deadlock.
39070         (child_main): Try a larger read, to ensure we avoided deadlock.
39071         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39072         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39073         if misused.
39074
39075 2009-07-19  Jim Meyering  <meyering@redhat.com>
39076
39077         fts: avoid false-positive cycle-detection
39078         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39079         for each new command line argument.
39080
39081 2009-07-19  Bruno Haible  <bruno@clisp.org>
39082
39083         Fix build error on mingw with the modules sys_select and unistd.
39084         * modules/acl-tests (Depends-on): Add close.
39085         * modules/binary-io-tests (Depends-on): Likewise.
39086         * modules/closein-tests (Depends-on): Likewise.
39087         * modules/flock-tests (Depends-on): Likewise.
39088         * modules/fsync-tests (Depends-on): Likewise.
39089         * modules/lseek-tests (Depends-on): Likewise.
39090         * modules/pipe-tests (Depends-on): Likewise.
39091         * modules/posix_spawn-tests (Depends-on): Likewise.
39092         * modules/posix_spawnp-tests (Depends-on): Likewise.
39093         * modules/stat-time-tests (Depends-on): Likewise.
39094         * modules/yesno-tests (Depends-on): Likewise.
39095
39096 2009-07-19  Bruno Haible  <bruno@clisp.org>
39097
39098         Unify conditionals.
39099         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39100         macros, not at the compiler macros.
39101         * lib/pipe.c: Likewise.
39102         * lib/execute.c: Likewise.
39103         * lib/spawni.c: Likewise.
39104
39105 2009-07-19  Bruno Haible  <bruno@clisp.org>
39106
39107         Fix handling of closed stdin/stdout/stderr on mingw.
39108         * lib/w32spawn.h: Include unistd.h.
39109         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39110         file descriptor with O_NOINHERIT flag.
39111         (fd_safer_noinherit): New function, based on fd-safer.c.
39112         (dup_safer_noinherit): New function, based on dup-safer.c.
39113         (undup_safer_noinherit): New function.
39114         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39115         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39116         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39117         instead of fd_safer.
39118         * tests/test-pipe.c: Include <windows.h>.
39119         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39120         result.
39121
39122         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39123         from main.
39124         (test_pipe): Pass an extra argument for disambiguation.
39125         (main): Invoke parent_main or child_main.
39126
39127         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39128         consistently.
39129
39130 2009-07-18  Eric Blake  <ebb9@byu.net>
39131
39132         test-pipe: fix mingw build
39133         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39134
39135 2009-07-18  Bruno Haible  <bruno@clisp.org>
39136
39137         * modules/pipe-tests (Makefile.am): Fix typo.
39138
39139 2009-07-18  Eric Blake  <ebb9@byu.net>
39140
39141         error: fix mingw build
39142         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39143         Reported by Bruno Haible.
39144
39145         error: avoid undefined use of stdout
39146         * lib/error.c (error, error_at_line): Check that fd 1 is open
39147         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39148         is handling faults and the close_stdout module wants to report the
39149         detection of closed stdout as an error.
39150
39151 2009-07-17  Eric Blake  <ebb9@byu.net>
39152
39153         pipe: be robust in face of closed fds
39154         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39155         should cause child to misbehave.
39156         * modules/pipe-tests: New module.
39157         * tests/test-pipe.c: New file.
39158         * tests/test-pipe.sh: New file.
39159         Reported by Akim Demaille.
39160
39161 2009-07-14  Bruno Haible  <bruno@clisp.org>
39162
39163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39164         Reported by anonymous kc.
39165
39166 2009-07-07  Jim Meyering  <meyering@redhat.com>
39167
39168         maint.mk: don't look for translatable strings in *.m4 or *.mk
39169         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39170         when searching for translatable strings.
39171
39172 2009-07-05  Jim Meyering  <meyering@redhat.com>
39173
39174         remove superfluous parentheses in STREQ definition
39175         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39176         * lib/getugroups.c (STREQ): Likewise.
39177         * lib/fnmatch.c (STREQ): Likewise.
39178         Spotted by Bruno Haible.
39179
39180 2009-07-04  Jim Meyering  <meyering@redhat.com>
39181
39182         argv-iter: new module
39183         * MODULES.html.sh: Add argv-iter.
39184         * lib/argv-iter.c, lib/argv-iter.h: New files.
39185         * modules/argv-iter: New file.
39186         * modules/argv-iter-tests: New file.
39187         * tests/test-argv-iter.c: Test it.
39188
39189 2009-07-04  Bruno Haible  <bruno@clisp.org>
39190
39191         Fix assertion.
39192         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39193         contains more exact copies of a given entry than file2, leave the extra
39194         copies unpaired rather than aborting.
39195         Reported by Eric Blake.
39196
39197 2009-07-02  Bruno Haible  <bruno@clisp.org>
39198
39199         Speedup git-merge-changelog for git cherry-pick.
39200         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39201         (entries_mapping_get): New function, extracted from compute_mapping.
39202         (entries_mapping_reverse_get): New function.
39203         (compute_mapping): Add a 'full' argument. Return the result in a
39204         'struct entries_mapping'.
39205         (main): Update. Access the mappings through entries_mapping_get.
39206         Reported by Eric Blake.
39207
39208 2009-07-02  Bruno Haible  <bruno@clisp.org>
39209
39210         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39211         best_i.
39212
39213 2009-07-02  Bruno Haible  <bruno@clisp.org>
39214
39215         Speed up approximate search for matching ChangeLog entries.
39216         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39217         argument. Call fstrcmp_bounded instead of fstrcmp.
39218         (compute_mapping, try_split_merged_entry, main): Update callers.
39219
39220 2009-07-02  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39223
39224 2009-06-30  Bruno Haible  <bruno@clisp.org>
39225
39226         Reduce the number of uc_is_cased calls.
39227         * lib/unicase.h (casing_suffix_context_t): Add
39228         'first_char_except_ignorable' field.
39229         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39230         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39231         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39232         Update initializer.
39233         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39234         case-ignorable characters.
39235         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39236         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39237         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39238         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39239         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39240
39241 2009-06-30  Bruno Haible  <bruno@clisp.org>
39242
39243         Tests for module 'unicase/ignorable'.
39244         * modules/unicase/ignorable-tests: New file.
39245         * tests/unicase/test-ignorable.c: New file, generated by
39246         gen-uni-tables.
39247
39248         Tests for module 'unicase/cased'.
39249         * modules/unicase/cased-tests: New file.
39250         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39251         * tests/unicase/test-predicate-part1.h: New file, derived from
39252         tests/unictype/test-predicate-part1.h.
39253         * tests/unicase/test-predicate-part2.h: New file, same as
39254         tests/unictype/test-predicate-part2.h.
39255
39256         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39257         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39258         (output_casing_properties): New function.
39259         (main): Call it.
39260         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39261         * lib/unicase/cased.c: Include unictype/bitmap.h.
39262         (uc_is_cased): Define through a bitmap lookup.
39263         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39264         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39265         (uc_is_case_ignorable): Define through a bitmap lookup.
39266         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39267         lib/unictype/bitmap.h.
39268         (Depends-on): Add inline. Clean up.
39269         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39270         lib/unictype/bitmap.h.
39271         (Depends-on): Add inline. Clean up.
39272         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39273         recognition.
39274         * tests/unicase/test-u16-tolower.c (main): Likewise.
39275         * tests/unicase/test-u32-tolower.c (main): Likewise.
39276
39277 2009-06-30  Bruno Haible  <bruno@clisp.org>
39278
39279         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39280         * lib/unicase/u16-casemap.c: Likewise.
39281         * lib/unicase/u32-casemap.c: Likewise.
39282
39283 2009-06-29  Bruno Haible  <bruno@clisp.org>
39284
39285         Define u32_casefold as a wrapper around u32_ct_casefold.
39286         * lib/unicase/u32-casefold.c: Update.
39287         * modules/unicase/u32-casefold (Depends-on): Add
39288         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39289         unicase/empty-suffix-context. Clean up.
39290
39291         Define u16_casefold as a wrapper around u16_ct_casefold.
39292         * lib/unicase/u16-casefold.c: Update.
39293         * modules/unicase/u16-casefold (Depends-on): Add
39294         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39295         unicase/empty-suffix-context. Clean up.
39296
39297         Define u8_casefold as a wrapper around u8_ct_casefold.
39298         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39299         * lib/unicase/u8-casefold.c: Update.
39300         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39301         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39302
39303         Define u32_totitle as a wrapper around u32_ct_totitle.
39304         * lib/unicase/u32-totitle.c: Update.
39305         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39306         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39307
39308         Define u16_totitle as a wrapper around u16_ct_totitle.
39309         * lib/unicase/u16-totitle.c: Update.
39310         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39311         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39312
39313         Define u8_totitle as a wrapper around u8_ct_totitle.
39314         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39315         functions.
39316         (FUNC): Delegate to U_CT_TOTITLE.
39317         * lib/unicase/u8-totitle.c: Update.
39318         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39319         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39320
39321         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39322         invocation.
39323         * modules/unicase/u32-tolower (Depends-on): Add
39324         unicase/empty-prefix-context, unicase/empty-suffix-context.
39325
39326         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39327         invocation.
39328         * modules/unicase/u16-tolower (Depends-on): Add
39329         unicase/empty-prefix-context, unicase/empty-suffix-context.
39330
39331         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39332         * modules/unicase/u8-tolower (Depends-on): Add
39333         unicase/empty-prefix-context, unicase/empty-suffix-context.
39334
39335         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39336         invocation.
39337         * modules/unicase/u32-toupper (Depends-on): Add
39338         unicase/empty-prefix-context, unicase/empty-suffix-context.
39339
39340         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39341         invocation.
39342         * modules/unicase/u16-toupper (Depends-on): Add
39343         unicase/empty-prefix-context, unicase/empty-suffix-context.
39344
39345         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39346         * modules/unicase/u8-toupper (Depends-on): Add
39347         unicase/empty-prefix-context, unicase/empty-suffix-context.
39348
39349         New module 'unicase/u32-ct-casefold'.
39350         * lib/unicase/u32-ct-casefold.c: New file.
39351         * modules/unicase/u32-ct-casefold: New file.
39352
39353         New module 'unicase/u16-ct-casefold'.
39354         * lib/unicase/u16-ct-casefold.c: New file.
39355         * modules/unicase/u16-ct-casefold: New file.
39356
39357         New module 'unicase/u8-ct-casefold'.
39358         * lib/unicase/u8-ct-casefold.c: New file.
39359         * lib/unicase/u-ct-casefold.h: New file, derived from
39360         lib/unicase/u-casefold.h.
39361         * modules/unicase/u8-ct-casefold: New file.
39362
39363         New module 'unicase/u32-ct-totitle'.
39364         * lib/unicase/u32-ct-totitle.c: New file.
39365         * modules/unicase/u32-ct-totitle: New file.
39366
39367         New module 'unicase/u16-ct-totitle'.
39368         * lib/unicase/u16-ct-totitle.c: New file.
39369         * modules/unicase/u16-ct-totitle: New file.
39370
39371         New module 'unicase/u8-ct-totitle'.
39372         * lib/unicase/u8-ct-totitle.c: New file.
39373         * lib/unicase/u-ct-totitle.h: New file, derived from
39374         lib/unicase/u-totitle.h.
39375         * modules/unicase/u8-ct-totitle: New file.
39376
39377         New module 'unicase/u32-ct-tolower'.
39378         * lib/unicase/u32-ct-tolower.c: New file.
39379         * modules/unicase/u32-ct-tolower: New file.
39380
39381         New module 'unicase/u16-ct-tolower'.
39382         * lib/unicase/u16-ct-tolower.c: New file.
39383         * modules/unicase/u16-ct-tolower: New file.
39384
39385         New module 'unicase/u8-ct-tolower'.
39386         * lib/unicase/u8-ct-tolower.c: New file.
39387         * modules/unicase/u8-ct-tolower: New file.
39388
39389         New module 'unicase/u32-ct-toupper'.
39390         * lib/unicase/u32-ct-toupper.c: New file.
39391         * modules/unicase/u32-ct-toupper: New file.
39392
39393         New module 'unicase/u16-ct-toupper'.
39394         * lib/unicase/u16-ct-toupper.c: New file.
39395         * modules/unicase/u16-ct-toupper: New file.
39396
39397         New module 'unicase/u8-ct-toupper'.
39398         * lib/unicase/u8-ct-toupper.c: New file.
39399         * modules/unicase/u8-ct-toupper: New file.
39400
39401         Add context arguments to u*_casemap functions.
39402         * lib/unicase/unicasemap.h: Include unicase.h.
39403         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39404         suffix_context arguments.
39405         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39406         functions.
39407         (FUNC): Add prefix_context and suffix_context arguments. Use
39408         uc_is_cased and uc_is_case_ignorable.
39409         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39410         * lib/unicase/u16-casemap.c: Likewise.
39411         * lib/unicase/u32-casemap.c: Likewise.
39412         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39413         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39414         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39415         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39416         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39417         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39418
39419         New module 'unicase/u32-suffix-context'.
39420         * lib/unicase/u32-suffix-context.c: New file.
39421         * modules/unicase/u32-suffix-context: New file.
39422
39423         New module 'unicase/u16-suffix-context'.
39424         * lib/unicase/u16-suffix-context.c: New file.
39425         * modules/unicase/u16-suffix-context: New file.
39426
39427         New module 'unicase/u8-suffix-context'.
39428         * lib/unicase/u8-suffix-context.c: New file.
39429         * lib/unicase/u-suffix-context.h: New file.
39430         * modules/unicase/u8-suffix-context: New file.
39431
39432         New module 'unicase/empty-suffix-context'.
39433         * lib/unicase/empty-suffix-context.c: New file.
39434         * modules/unicase/empty-suffix-context: New file.
39435
39436         New module 'unicase/u32-prefix-context'.
39437         * lib/unicase/u32-prefix-context.c: New file.
39438         * modules/unicase/u32-prefix-context: New file.
39439
39440         New module 'unicase/u16-prefix-context'.
39441         * lib/unicase/u16-prefix-context.c: New file.
39442         * modules/unicase/u16-prefix-context: New file.
39443
39444         New module 'unicase/u8-prefix-context'.
39445         * lib/unicase/u8-prefix-context.c: New file.
39446         * lib/unicase/u-prefix-context.h: New file.
39447         * lib/unicase/context.h: New file.
39448         * modules/unicase/u8-prefix-context: New file.
39449
39450         New module 'unicase/empty-prefix-context'.
39451         * lib/unicase/empty-prefix-context.c: New file.
39452         * modules/unicase/empty-prefix-context: New file.
39453
39454         New module 'unicase/ignorable'.
39455         * lib/unicase/ignorable.c: New file.
39456         * modules/unicase/ignorable: New file.
39457
39458         New module 'unicase/cased'.
39459         * lib/unicase/caseprop.h: New file.
39460         * lib/unicase/cased.c: New file.
39461         * modules/unicase/cased: New file.
39462
39463         New functions for case mapping of substrings.
39464         * lib/unicase.h (casing_prefix_context_t): New type.
39465         (unicase_empty_prefix_context): New variable.
39466         (u8_casing_prefix_context, u16_casing_prefix_context,
39467         u32_casing_prefix_context, u8_casing_prefixes_context,
39468         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39469         declarations.
39470         (casing_suffix_context_t): New type.
39471         (unicase_empty_suffix_context): New variable.
39472         (u8_casing_suffix_context, u16_casing_suffix_context,
39473         u32_casing_suffix_context, u8_casing_suffixes_context,
39474         u16_casing_suffixes_context, u32_casing_suffixes_context,
39475         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39476         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39477         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39478         declarations.
39479
39480 2009-06-28  Jim Meyering  <meyering@redhat.com>
39481
39482         boostrap: indent only with spaces
39483         * build-aux/bootstrap: Indent only with spaces, never TABs.
39484
39485         bootstrap: split long lines
39486         * build-aux/bootstrap: Keep line length < 80.
39487
39488         bootstrap: sync from coreutils
39489         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39490         just as autoreconf does.  Verify a list of prerequisite
39491         package-name,version-number pairs if defined in bootstrap.conf.
39492         Refer to README-prereq, if prerequisites are not satisfied.
39493
39494 2009-06-27  Eric Blake  <ebb9@byu.net>
39495
39496         tests: add test for bogus NULL definition
39497         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39498         * tests/test-stdlib.c: Likewise.
39499         * tests/test-string.c: Likewise.
39500         * tests/test-locale.c: Likewise.
39501         * tests/test-unistd.c: Likewise.
39502         * modules/stdio-tests (Depends-on): Add verify.
39503         * modules/stdlib-tests (Depends-on): Likewise.
39504         * modules/string-tests (Depends-on): Likewise.
39505         * modules/locale-tests (Depends-on): Likewise.
39506         * modules/unistd-tests (Depends-on): Likewise.
39507
39508 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39509
39510         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39511         self-explaining comment.
39512         * m4/selinux-selinux-h: Update serial.
39513         (gl_LIBSELINUX): New macro, adding a warning for missing development
39514         packages to code extracted from...
39515         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39516         Add warning for missing development packages here, too.
39517
39518 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39519
39520         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39521
39522 2009-06-25  Eric Blake  <ebb9@byu.net>
39523
39524         version-etc: fix regression
39525         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39526         gcc.
39527         (version_etc): Use it, to catch bugs with trailing NULL.
39528         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39529         (version_etc_va): Fix logic bug.
39530         * modules/version-etc-tests: Add test.
39531         * tests/test-version-etc.c: New file.
39532         * tests/test-version-etc.sh: Likewise.
39533
39534 2009-06-25  Sam Steingold  <sds@gnu.org>
39535
39536         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39537         mbtowc declaration.
39538
39539 2009-06-25  Eric Blake  <ebb9@byu.net>
39540
39541         fpurge: migrate into <stdio.h>
39542         * lib/fpurge.h: Delete...
39543         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39544         * lib/fpurge.c (fpurge): Change declaring header.
39545         * modules/fpurge (Files): Drop deleted file.
39546         (Depends-on): Add stdio.
39547         (configure.ac): Set witness.
39548         * modules/stdio (Makefile.am): Support fpurge macros.
39549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39550         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39551         * lib/fflush.c: Update client.
39552         * tests/test-fpurge.c: Likewise.
39553         * NEWS: Mention the change.
39554
39555 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39556
39557         * lib/argp-version-etc.c (program_authors): Add const
39558         qualifier.
39559         * lib/version-etc.c: Fix typos in the comments.
39560         * modules/argp-version-etc: Depends on version-etc.
39561
39562 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39563
39564         argp-version-etc: new module.
39565
39566         * lib/argp-version-etc.c: New file.
39567         * lib/argp-version-etc.h: New file.
39568         * modules/argp-version-etc: New file.
39569         * modules/argp-version-etc-tests: New file.
39570         * tests/test-argp-version-etc.c: New test.
39571         * tests/test-argp-version-etc-1.sh: New test.
39572
39573 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39574
39575         Provide additional interfaces and documentation for version-etc
39576         module.
39577
39578         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39579         interfaces.
39580         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39581         prototypes.
39582
39583 2009-06-24  Bruno Haible  <bruno@clisp.org>
39584
39585         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39586         HAVE_LIB${NAME} macro.
39587         Reported by Sam Steingold <sds@gnu.org>.
39588
39589 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39590
39591         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39592         needed.
39593
39594 2009-06-21  Bruno Haible  <bruno@clisp.org>
39595
39596         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39597         work.
39598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39599         together with LIB${NAME}, LTLIB${NAME}.
39600         Reported by Sam Steingold <sds@gnu.org>.
39601
39602 2009-06-20  Jim Meyering  <meyering@redhat.com>
39603
39604         tests: make sc_require_test_exit_idiom more generic
39605         * top/maint.mk (Exit_witness_file): New overridable variable.
39606         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39607         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39608
39609 2009-06-19  Jim Meyering  <meyering@redhat.com>
39610
39611         hash: reverse order of src/dst parameters in an internal interface
39612         * lib/hash.c (transfer_entries): Reverse order of parameters to
39613         put DST before SRC.  Adjust callers.
39614
39615         tests: test-hash: avoid wholesale duplication
39616         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39617         Instead, use a loop and add a single conditional.
39618
39619         tests: test-hash: allow seed selection via a command line argument
39620         * tests/test-hash.c (get_seed): New function.
39621         (main): Use it.
39622
39623 2009-06-19  Eric Blake  <ebb9@byu.net>
39624
39625         hash: avoid memory leak on allocation failure
39626         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39627         failure.  Factor repeated algorithm...
39628         (transfer_entries): ...into new helper routine.
39629         (hash_delete): React to hash_rehash return value.
39630
39631         hash: reduce memory pressure in hash_rehash no-op case
39632         * lib/hash.c (next_prime): Avoid overflow.
39633         (hash_initialize): Factor bucket size computation...
39634         (compute_bucket_size): ...into new helper function.
39635         (hash_rehash): Use new function and open coding to reduce memory
39636         pressure, and avoid a memory leak in USE_OBSTACK code.
39637         Reported by Jim Meyering.
39638
39639 2009-06-18  Eric Blake  <ebb9@byu.net>
39640
39641         hash: make rotation more obvious
39642         * modules/hash (Depends-on): Add bitrotate and stdint.
39643         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39644         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39645         (SIZE_MAX): Rely on headers for definition.
39646         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39647         (raw_hasher): Use rotr_sz.
39648         Suggested by Jim Meyering.
39649
39650         hash: fix memory leak in last patch
39651         * lib/hash.c (hash_rehash): Avoid memory leak.
39652
39653         hash: avoid no-op rehashing
39654         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39655
39656         hash: provide default callback functions
39657         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39658         (hash_initialize): Use them as defaults.
39659         * tests/test-hash.c (main): Test this.
39660
39661         hash: minor optimization
39662         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39663         when possible.
39664         (hash_initialize): Document this promise.
39665         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39666         * tests/test-hash.c (hash_compare_strings): Test this.
39667
39668 2009-06-18  Bruno Haible  <bruno@clisp.org>
39669
39670         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39671         going to be replaced anyway.
39672
39673 2009-06-18  Bruno Haible  <bruno@clisp.org>
39674
39675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39676         in one place.
39677         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39678         be replaced anyway.
39679
39680 2009-06-18  Eric Blake  <ebb9@byu.net>
39681
39682         hash: check for resize before insertion
39683         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39684         threshold before insertion, so that a pathological hash_rehash
39685         that fills every bucket can still trigger another rehash.
39686
39687 2009-06-18  Jim Meyering  <meyering@redhat.com>
39688
39689         hash-tests: add a loop around the small tests
39690         * tests/test-hash.c (main): Repeat small tests with selected
39691         small initial table sizes.
39692
39693 2009-06-17  Eric Blake  <ebb9@byu.net>
39694
39695         hash: minor cleanups
39696         * lib/hash.h (hash_entry): Make opaque, by moving...
39697         * lib/hash.c (hash_entry): ...here.
39698         (hash_insert): Clarify restrictions on what can be inserted.
39699         (hash_get_next): Clarify when it is safe to remove an element
39700         during traversal.
39701         (check_tuning): Skip verification when tuning is known safe.
39702         (hash_initialize): Clarify restrictions on tuning.
39703
39704 2009-06-17  Jim Meyering  <jim@meyering.net>
39705         and Eric Blake  <ebb9@byu.net>
39706
39707         hash-tests: new module
39708         * modules/hash-tests: New file.
39709         * tests/test-hash.c: New file.
39710
39711 2009-06-17  Eric Blake  <ebb9@byu.net>
39712
39713         strstr-simple: document new module
39714         * MODULES.html.sh: Document new module.
39715
39716         strstr, strcasestr: replace on platforms with broken memchr
39717         * modules/strstr: Split into...
39718         * modules/strstr-simple: ...new module that does not care about
39719         performance, but does care about glibc bug.
39720         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39721         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39722         if platform memchr is broken, per Debian bug 521737.
39723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39724         memchr.
39725         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39726         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39727         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39728         * modules/mountlist (Depends-on): Add strstr-simple.
39729         * modules/gen-uni-tables (Depends-on): Likewise.
39730         * modules/argz (Depends-on): Add strstr.
39731
39732 2009-06-17  Bruno Haible  <bruno@clisp.org>
39733
39734         * modules/posix_spawn-internal (Depends-on): Add errno.
39735
39736 2009-06-17  Bruno Haible  <bruno@clisp.org>
39737
39738         Define missing ESTALE on Interix 3.5.
39739         * lib/errno.in.h (ESTALE): Assign a value if missing.
39740         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39742         missing.
39743         * doc/posix-headers/errno.texi: Mention the Interix bug.
39744         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39745
39746 2009-06-15  Eric Blake  <ebb9@byu.net>
39747
39748         memchr, memchr2: add valgrind exception
39749         * lib/memchr.valgrind: New file.
39750         * lib/memchr2.valgrind: New file.
39751         * modules/memchr (Files): Distribute valgrind file.
39752         * modules/memchr2 (Files): Likewise.
39753
39754         docs: memchr is no longer obsolete
39755         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39756         * lib/string.in.h (memchr): Simplify logic.
39757
39758 2009-06-14  Jim Meyering  <meyering@redhat.com>
39759
39760         link-follow: fix the "checking..." message to not mention trailing slash
39761         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39762         never considered trailing slashes.
39763
39764 2009-06-14  Bruno Haible  <bruno@clisp.org>
39765
39766         * m4/memchr.m4: Mention also the bug on IA-64.
39767         * doc/posix-functions/memchr.texi: Likewise.
39768
39769 2009-06-12  Eric Blake  <ebb9@byu.net>
39770
39771         memchr: detect broken x86_64 and alpha implementations
39772         * modules/memchr-tests (Depends-on): Move mmap detection...
39773         * modules/memchr (Depends-on): ...here.
39774         (configure.ac): Set indicator.
39775         * lib/string.in.h (memchr): Declare replacement.
39776         * modules/string (Makefile.am): Trigger replacement.
39777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39778         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39779         bugs.
39780         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39781         * modules/getpagesize (License): Relax license.
39782
39783 2009-06-11  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/idpriv.h: Add more references.
39786
39787 2009-06-08  Bruno Haible  <bruno@clisp.org>
39788
39789         Tests for module 'idpriv-droptemp'.
39790         * modules/idpriv-droptemp-tests: New file.
39791         * tests/test-idpriv-droptemp.sh: New file.
39792         * tests/test-idpriv-droptemp.su.sh: New file.
39793         * tests/test-idpriv-droptemp.c: New file.
39794
39795         New module 'idpriv-droptemp'.
39796         * lib/idpriv-droptemp.c: New file.
39797         * modules/idpriv-droptemp: New file.
39798
39799 2009-06-08  Bruno Haible  <bruno@clisp.org>
39800
39801         Tests for module 'idpriv-drop'.
39802         * modules/idpriv-drop-tests: New file.
39803         * tests/test-idpriv-drop.sh: New file.
39804         * tests/test-idpriv-drop.su.sh: New file.
39805         * tests/test-idpriv-drop.c: New file.
39806
39807         New module 'idpriv-drop'.
39808         * lib/idpriv.h: New file.
39809         * lib-idpriv-drop.c: New file.
39810         * m4/idpriv.m4: New file.
39811         * modules/idpriv-drop: New file.
39812
39813 2009-06-08  Bruno Haible  <bruno@clisp.org>
39814
39815         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39816         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39817         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39818         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39820         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39821         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39822
39823 2009-06-08  Eric Blake  <ebb9@byu.net>
39824
39825         test-strstr: use memory fence, when possible
39826         * tests/test-strstr.c (main): Use memory fence, in order to be
39827         more likely to trigger Debian bug 521737.
39828         * modules/strstr-tests (Files): Pull in additional files.
39829
39830         memchr: no longer obsolete, for wider field testing
39831         * modules/memchr (Status, Notice): Delete, this module is no
39832         longer obsolete.
39833         * modules/vasnprintf (Depends-on): Add memchr.
39834
39835 2009-06-07  Jim Meyering  <meyering@redhat.com>
39836
39837         hash: declare some functions with the warn_unused_result attribute
39838         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39839
39840 2009-06-07  Bruno Haible  <bruno@clisp.org>
39841
39842         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39843         Reported by Eric Blake.
39844
39845 2009-06-06  Eric Blake  <ebb9@byu.net>
39846
39847         test-alignof: fix typo with long double
39848         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39849         compiler error.
39850
39851 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39852
39853         Escape non-texinfo { and }s.
39854         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39855         markup error.
39856
39857 2009-06-04  Jim Meyering  <meyering@redhat.com>
39858
39859         gitlog-to-changelog: don't infloop on an empty commit log
39860         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39861         Reported by Boris Petersen <transacid@centerim.org>.
39862
39863 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39864
39865         version-etc: extend for packagers
39866         Add three new configure options, intended for packagers:
39867           --with-packager="packager name"
39868           --with-packager-version="packager-specific version"
39869           --with-packager-bug-reports="packager bug reporting"
39870         An example with coreutils:
39871           $ ./configure \
39872             --with-packager=Gentoo \
39873             --with-packager-bug-report=http://bugs.gentoo.org/ \
39874             --with-packager-version="patchset 1.6"
39875           $ ./src/ls --version | head -n2
39876           ls (GNU coreutils) 7.1-dirty
39877           Packaged by Gentoo (patchset 1.6)
39878         Note that the bug reporting info via --help doesn't show up because
39879         coreutils uses its own custom emit_bug_reporting_address() implementation
39880         in src/system.h.  If it didn't, it'd look like:
39881           $ ./src/ls --help | tail -n4
39882           Report bugs to <bug-coreutils@gnu.org>.
39883           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39884           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39885           General help using GNU software: <http://www.gnu.org/gethelp/>.
39886         * lib/version-etc.c: Print new information, if provided.
39887         * m4/version-etc.m4: New file.
39888         * modules/version-etc (Files): Add m4/version-etc.m4.
39889         (configure.ac): Add gl_VERSION_ETC.
39890
39891 2009-05-31  Bruno Haible  <bruno@clisp.org>
39892
39893         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39894         and 'int64_t'.
39895         * modules/alignof-tests (Dependencies): Add stdint.
39896         Reported by Eric Blake.
39897
39898 2009-05-31  Bruno Haible  <bruno@clisp.org>
39899
39900         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39901         restriction due to compiler bugs.
39902         Reported by Eric Blake.
39903
39904 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39905             Bruno Haible  <bruno@clisp.org>
39906
39907         Fix test-alignof failure.
39908         * lib/alignof.h (alignof_slot): New macro.
39909         (alignof_type): New macro, with the same semantics as the previous
39910         'alignof'.
39911         (alignof): Alias to alignof_slot.
39912         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39913         check that the results are usable as constant expressions.
39914
39915 2009-05-31  Bruno Haible  <bruno@clisp.org>
39916
39917         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39918         * tests/test-memchr.c (main): Check that memchr does not read past the
39919         first occurrence of the byte.
39920         * tests/test-strstr.c (main): Update comment.
39921         Suggested by Eric Blake.
39922
39923 2009-05-30  Bruno Haible  <bruno@clisp.org>
39924
39925         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39926         detail how to use dumpbin.
39927         Reported by David Byron <dbyron@dbyron.com>.
39928
39929 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39930
39931         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39932
39933 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39934
39935         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39936
39937 2009-05-28  Bruno Haible  <bruno@clisp.org>
39938
39939         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39940         build-aux/ files.
39941
39942 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39943
39944         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39945
39946 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39947
39948         * gnulib-tool (sed_transform_main_lib_file)
39949         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39950         regexps.
39951
39952 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39953
39954         * tests/test-strstr.c: Add another self-test.
39955         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39956         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39957
39958 2009-05-23  Bruno Haible  <bruno@clisp.org>
39959
39960         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39961         change.
39962
39963 2009-05-21  Bruno Haible  <bruno@clisp.org>
39964
39965         Simplify use of mode_t varargs.
39966         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39967         uses 'mode_t' or 'int'.
39968         * lib/openat.c (openat): Likewise.
39969         * lib/open-safer.c (open_safer): Likewise.
39970         * m4/mode_t.m4: New file.
39971         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39972         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39973         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39974         * modules/open (Files): Add m4/mode_t.m4.
39975         * modules/openat (Files): Likewise.
39976         * modules/fcntl-safer (Files): Likewise.
39977         Suggested by Eric Blake.
39978
39979 2009-05-21  PĂ¡draig Brady  <P@draigbrady.com>
39980
39981         * doc/glibc-functions/fallocate.texi: New file.
39982         * doc/gnulib.texi: Include it.
39983
39984 2009-05-21  Eric Blake  <ebb9@byu.net>
39985             Bruno Haible  <bruno@clisp.org>
39986
39987         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39988         invocations.
39989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39990
39991 2009-05-21  Eric Blake  <ebb9@byu.net>
39992             Bruno Haible  <bruno@clisp.org>
39993
39994         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39995         include_next. Fix of 2008-11-20 commit.
39996         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39997         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39998         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39999         NEXT_MATH_H.
40000         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40001         instead of NEXT_MATH_H.
40002
40003 2009-05-21  Bruno Haible  <bruno@clisp.org>
40004
40005         Avoid redefinition warnings for SIZE_MAX.
40006         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40007         Reported by Simon Josefsson.
40008
40009 2009-05-21  Bruno Haible  <bruno@clisp.org>
40010
40011         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40012         AC_CACHE_VAL.
40013
40014 2009-05-20  Bruno Haible  <bruno@clisp.org>
40015
40016         Make zeroptr.h work on mingw.
40017         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40018         mprotect.
40019         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40020         * modules/memchr2-tests (configure.ac): Likewise.
40021         * modules/memcmp-tests (configure.ac): Likewise.
40022         * modules/memmem-tests (configure.ac): Likewise.
40023         * modules/memrchr-tests (configure.ac): Likewise.
40024         Reported by Simon Josefsson.
40025
40026 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40027
40028         * tests/test-glob.c: Include string.h for strcmp prototype.
40029
40030 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40031
40032         * modules/getdelim (Depends-on): Add explicit stdint, although it
40033         was implicitly already pulled in via realloc-posix.
40034         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40035
40036 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40037
40038         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40039         G. Christensen" <tgc@jupiterrise.com>.
40040         * m4/sys_socket_h.m4: Check for sa_family_t.
40041         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40042         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40043         * tests/test-sys_socket.c: Check that sa_family_t works.
40044
40045 2009-05-18  Eric Blake  <ebb9@byu.net>
40046
40047         maint.mk: allow gnulib_dir in VPATH build
40048         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40049
40050 2009-05-15  Jim Meyering  <meyering@redhat.com>
40051
40052         maint.mk: Give gnulib_dir a default definition.
40053         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40054         Thus, most packages no longer need to specify this variable in cfg.mk
40055
40056 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40057
40058         rename.m4: fix typos that would make non-mingw cross-configure fail
40059         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40060
40061 2009-05-13  Eric Blake  <ebb9@byu.net>
40062
40063         mmap-anon: avoid out-of-order autoconf expansion
40064         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40065         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40066         * modules/memchr-tests (Depends-on): Add extensions.
40067         * modules/memchr2-tests (Depends-on): Add extensions.
40068         * modules/memcmp-tests (Depends-on): Add extensions.
40069         * modules/memmem-tests (Depends-on): Add extensions.
40070         * modules/memrchr-tests (Depends-on): Add extensions.
40071
40072 2009-05-13  Bruno Haible  <bruno@clisp.org>
40073
40074         Make some tests ISO C 99 compliant.
40075         * tests/zerosize-ptr.h: New file.
40076         * tests/test-memchr.c: Include zerosize-ptr.h.
40077         (main): Use a zero-size object pointer instead of NULL.
40078         * tests/test-memchr2.c: Include zerosize-ptr.h.
40079         (main): Use a zero-size object pointer instead of NULL.
40080         * tests/test-memcmp.c: Include zerosize-ptr.h.
40081         (main): Use a zero-size object pointer instead of NULL.
40082         * tests/test-memmem.c: Include zerosize-ptr.h.
40083         (main): Use a zero-size object pointer instead of NULL.
40084         * tests/test-memrchr.c: Include zerosize-ptr.h.
40085         (main): Use a zero-size object pointer instead of NULL.
40086         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40087         m4/mmap-anon.m4.
40088         (Depends-on): Add getpagesize.
40089         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40090         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40091         m4/mmap-anon.m4.
40092         (Depends-on): Add getpagesize.
40093         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40094         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40095         m4/mmap-anon.m4.
40096         (Depends-on): Add getpagesize.
40097         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40098         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40099         m4/mmap-anon.m4.
40100         (Depends-on): Add getpagesize.
40101         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40102         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40103         m4/mmap-anon.m4.
40104         (Depends-on): Add getpagesize.
40105         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40106
40107 2009-05-12  Bruno Haible  <bruno@clisp.org>
40108
40109         Tests for module 'alignof'.
40110         * modules/alignof-tests: New file.
40111         * tests/test-alignof.c: New file.
40112
40113 2009-05-12  Bruno Haible  <bruno@clisp.org>
40114
40115         Fix alignof macro.
40116         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40117         vendor compilers that are always correct.
40118
40119 2009-05-12  Bruno Haible  <bruno@clisp.org>
40120
40121         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40122         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40123         not whether its fully works.
40124
40125 2009-05-12  Bruno Haible  <bruno@clisp.org>
40126
40127         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40128
40129 2009-05-12  Jim Meyering  <meyering@redhat.com>
40130
40131         * top/maint.mk: Adjust backslash alignment.
40132
40133 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40134
40135         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40136
40137 2009-05-11  Eric Blake  <ebb9@byu.net>
40138
40139         argp: avoid undefined behavior
40140         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40141         macros.
40142
40143 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40144
40145         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40146         user.name to prevent git commit from complaining.
40147
40148 2009-05-10  Bruno Haible  <bruno@clisp.org>
40149
40150         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40151         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40152         it rewrites every file name only once.
40153         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40154
40155 2009-05-08  Bruno Haible  <bruno@clisp.org>
40156
40157         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40158         instead of 'max'.
40159
40160 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40161
40162         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40163         sockaddr_storage test.
40164
40165 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40166
40167         * modules/sys_socket (Makefile.am): Substitute
40168         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40169         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40170         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40171         * tests/test-sys_socket.c: Check sockaddr_storage.
40172
40173 2009-05-08  Bruno Haible  <bruno@clisp.org>
40174
40175         New module 'alignof'.
40176         * lib/alignof.h: New file.
40177         * modules/alignof: New file.
40178
40179 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40180             Bruno Haible  <bruno@clisp.org>
40181
40182         Fix test-file-has-acl on FreeBSD.
40183         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40184         mask is implicitly added.
40185         * tests/test-file-has-acl.c: Include <signal.h>.
40186         (main): Terminate the test after 5 seconds.
40187         * modules/acl-tests (configure.ac): Check for alarm function.
40188
40189 2009-05-04  Bruno Haible  <bruno@clisp.org>
40190
40191         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40193         * modules/errno (configure.ac): Drop AC_REQUIRE.
40194         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40195         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40196
40197 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40198
40199         * modules/glob-tests: New module.
40200         * tests/test-glob.c: Add.
40201
40202 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40203
40204         * modules/fnmatch-tests: New module.
40205         * tests/test-fnmatch.c: Add.
40206
40207 2009-05-04  Eric Blake  <ebb9@byu.net>
40208
40209         maint: make the new no-submodule-changes rule VPATH-safe
40210         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40211
40212 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40213             Bruno Haible  <bruno@clisp.org>
40214
40215         acl: Fix infinite loop on FreeBSD.
40216         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40217         of return value from acl_get_entry.
40218         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40219         Likewise.
40220
40221 2009-05-03  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/acl-internal.h (acl_entries): Clarify return value.
40224         * lib/acl_entries.c (acl_entries): Likewise.
40225
40226 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40227
40228         Bug fix in acl module.
40229         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40230
40231 2009-05-03  Bruno Haible  <bruno@clisp.org>
40232
40233         Create gperf-generated file in the source dir, not in the build dir.
40234         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40235         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40236         * modules/unicase/locale-language (unicase/locale-languages.h):
40237         Likewise.
40238         * modules/unicase/special-casing (unicase/special-casing-table.h):
40239         Likewise.
40240         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40241         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40242         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40243         Reported by Ralf Wildenhues.
40244
40245 2009-05-03  Bruno Haible  <bruno@clisp.org>
40246
40247         * modules/fnmatch (Description, configure.ac): Taken from
40248         fnmatch-posix.
40249         * modules/fnmatch-posix: Turn into a symbolic reference to the
40250         'fnmatch' module, and deprecate.
40251         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40252
40253 2009-05-03  Bruno Haible  <bruno@clisp.org>
40254
40255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40256         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40257         Reported by Ralf Wildenhues.
40258
40259 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40260
40261         * m4/fnmatch.m4: Fix fnmatch re-define.
40262
40263 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40264
40265         priv-set: new module and tests; adapt write-any-file
40266         * lib/priv-set.c: New file.
40267         * lib/priv-set.h: New file.
40268         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40269         * lib/write-any-file.c: Simplify by using priv-set module.
40270         * m4/priv-set.m4: New file.
40271         * modules/priv-set: New file.
40272         * modules/unlinkdir: Add dependency on priv-set module.
40273         * modules/write-any-file: Likewise.
40274
40275         Tests for module 'priv-set'.
40276         * modules/priv-set-tests: New file.
40277         * tests/test-priv-set.c: New file.
40278
40279 2009-05-03  Jim Meyering  <meyering@redhat.com>
40280             Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40283         use the converted UTF-8 variant of the name instead.
40284
40285 2009-05-03  Jim Meyering  <meyering@redhat.com>
40286
40287         tests: tighten some getdate tests
40288         * tests/test-getdate.c (main): Tighten tests: require equality,
40289         not just greater than.  Set TZ envvar to UTC0.
40290
40291 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40292
40293         getdate: correctly interpret "next monday" when run on a Monday
40294         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40295         that e.g., "next tues" (when run on a tuesday) results in a date
40296         that is one week in the future, and not today's date.
40297         I.e., add a week when the wday is the same as the current one.
40298         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40299         and earlier by Martin Bernreuther and Jan MinĂ¡Å™.
40300         * tests/test-getdate.c (main): Check that "next DAY" is always in
40301         the future and that "last DAY" is always in the past.
40302
40303 2009-05-02  Jim Meyering  <meyering@redhat.com>
40304
40305         build: ensure that a release build fails when a submodule is unclean
40306         * top/maint.mk (no-submodule-changes): New rule.
40307         (alpha beta major): Depend on it.
40308
40309 2009-05-02  Bruno Haible  <bruno@clisp.org>
40310
40311         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40312         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40313         shell variable gl_fnmatch_required to detect which variant is
40314         requested.
40315         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40316         gl_FUNC_FNMATCH_POSIX.
40317         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40318         exclude fnmatch-posix.
40319
40320 2009-05-02  Bruno Haible  <bruno@clisp.org>
40321
40322         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40323         * modules/mbsrtowcs (License): Change to LGPLv2+.
40324         * modules/strnlen1 (License): Likewise.
40325         Reported by Simon Josefsson.
40326
40327 2009-05-02  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40330         "cross".
40331         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40332         gnulib-tool was called with option --source-base=lib.
40333
40334 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40335
40336         Use automake *-local hooks without commands, for extensibility.
40337         * modules/localcharset (Makefile.am): Rename install-exec-local
40338         rule to install-exec-localcharset, and make it a prerequisite of
40339         install-exec-local.  Likewise, rename the uninstall-local rule to
40340         uninstall-localcharset, and make it a prerequisite of the former.
40341
40342 2009-05-01  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40345         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40346         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40348         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40349         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40350         m4/locale-zh.m4, m4/codeset.m4.
40351
40352         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40353         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40354         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40355         m4/locale-zh.m4.
40356
40357         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40358         REPLACE_WCRTOMB if mbstate_t must be replaced.
40359         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40360         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40361
40362 2009-05-01  Bruno Haible  <bruno@clisp.org>
40363
40364         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40365         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40366         dngettext, dcngettext, textdomain, bindtextdomain,
40367         bind_textdomain_codeset): Undefine before redefining.
40368
40369 2009-04-30  Bruno Haible  <bruno@clisp.org>
40370
40371         Fix bug introduced on 2009-04-25.
40372         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40373         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40374         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40375         is defined.
40376         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40377         is defined.
40378         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40379         is defined.
40380         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40381
40382 2009-04-28  Bruno Haible  <bruno@clisp.org>
40383
40384         Comment tweaks.
40385         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40386         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40387         * lib/unicase.h (u*_casexfrm): Likewise.
40388         Reported by Paolo Bonzini.
40389
40390 2009-04-28  Bruno Haible  <bruno@clisp.org>
40391
40392         Fix a compilation error.
40393         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40394         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40395         Reported by Jim Meyering.
40396
40397 2009-04-27  Bruno Haible  <bruno@clisp.org>
40398
40399         New module 'libunistring'.
40400         * modules/libunistring: New file.
40401         * m4/libunistring.m4: New file.
40402         * MODULES.html.sh (Unicode string functions): Add it.
40403
40404 2009-04-27  Eric Blake  <ebb9@byu.net>
40405
40406         maint.mk: allow package-specific header to provide <config.h>
40407         * top/maint.mk (sc_require_config_h): New variable.
40408         (sc_require_config_h, sc_require_config_h_first): Use it.
40409
40410 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40411
40412         * top/maint.mk (sc_avoid_if_before_free): Except
40413         useless-if-before-free script.
40414
40415 2009-04-27  Eric Blake  <ebb9@byu.net>
40416
40417         maintainer-makefile: depend on all required helper scripts
40418         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40419         useless-if-before-free.
40420         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40421         version, rather than assuming gnulib checkout is available.
40422         Reported by Simen Josefsson.
40423
40424 2009-04-26  Bruno Haible  <bruno@clisp.org>
40425
40426         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40427         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40428         "../" or "..".
40429
40430 2009-04-26  Bruno Haible  <bruno@clisp.org>
40431
40432         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40433         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40434         AC_LIB_HAVE_LINKFLAGS.
40435
40436 2009-04-26  Bruno Haible  <bruno@clisp.org>
40437
40438         Simplify calling convention of u*_conv_from_encoding.
40439         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40440         u32_conv_from_encoding): Expect a resultbuf argument and return the
40441         result directly as a pointer.
40442         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40443         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40444         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40445         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40446         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40447         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40448         Update.
40449         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40450         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40451         * lib/vasnprintf.c (VASNPRINTF): Update.
40452         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40453         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40454         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40455         * NEWS: Mention the change.
40456
40457 2009-04-26  Bruno Haible  <bruno@clisp.org>
40458
40459         Simplify calling convention of u*_conv_to_encoding.
40460         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40461         u32_conv_to_encoding): Expect a resultbuf argument and return the
40462         result directly as a pointer.
40463         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40464         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40465         freeing scaled_offsets if mem_iconveha failed.
40466         * lib/unicase/u-casexfrm.h (FUNC): Update.
40467         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40468         * lib/vasnprintf.c (VASNPRINTF): Update.
40469         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40470         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40471         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40472         * NEWS: Mention the change.
40473
40474 2009-04-26  Bruno Haible  <bruno@clisp.org>
40475
40476         Avoid test failures on AIX and OSF/1.
40477         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40478         malloc(0).
40479         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40480         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40481         Likewise.
40482         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40483         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40484         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40485         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40486         * doc/posix-functions/malloc.texi: Document the portability problem
40487         related to malloc(0).
40488
40489 2009-04-26  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40492         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40493         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40494
40495 2009-04-25  Bruno Haible  <bruno@clisp.org>
40496
40497         Avoid link error when creating a namespace clean library.
40498         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40499         as macro with arguments if already defined as an alias.
40500         * lib/signbitf.c (gl_signbitf): Don't undefine.
40501         * lib/signbitd.c (gl_signbitd): Don't undefine.
40502         * lib/signbitl.c (gl_signbitl): Don't undefine.
40503
40504 2009-04-25  Jim Meyering  <meyering@redhat.com>
40505
40506         vc-list-files: fix another quoting bug
40507         * build-aux/vc-list-files: Avoid sed backslash expansion
40508         of pathological directory names.
40509
40510 2009-04-25  Eric Blake  <ebb9@byu.net>
40511
40512         vc-list-files: fix shell quoting error
40513         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40514         timestamp.
40515
40516 2009-04-25  Jim Meyering  <meyering@redhat.com>
40517
40518         vc-list-files: restore lost functionality with subdir argument
40519         * build-aux/vc-list-files: When given a non-"." sub-directory
40520         argument, substitute the $dir/ prefix back onto each resulting name.
40521         Otherwise, coreutils' root_tests check would fail.
40522
40523 2009-04-24  Eric Blake  <ebb9@byu.net>
40524
40525         vc-list-files: ignore git symlinks
40526         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40527         than ls-files, to ignore git symlinks.
40528
40529         maint.mk: import improvements from m4
40530         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40531         (move_if_change): Delete unused macro.
40532         (news-date-check, vc-diff-check): Support VPATH builds.
40533         (announcement): Likewise.  Split --bootstrap-tools list...
40534         (boostrap-tools): ...into separate list, which can be overridden
40535         in cfg.mk.
40536         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40537         requiring dependency on useless-if-before-free module.
40538         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40539         Support VPATH builds.
40540
40541 2009-04-24  Jim Meyering  <meyering@redhat.com>
40542
40543         maint.mk: remove coreutils-specific rules and variables
40544         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40545         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40546         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40547
40548         maint.mk: remove obsolete rule
40549         * top/maint.mk (rel-check): Remove rule.
40550         (WGET, WGETFLAGS): Remove now-unused variables.
40551
40552 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40553
40554         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40555         consistency.
40556
40557         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40558         '$(PATH_SEPARATOR)' instead of ':'.
40559
40560 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40561
40562         * lib/getopt1.c (main): Use 'const' for static array.
40563
40564 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40565
40566         * top/maint.mk: Sync with coreutils.
40567         * NEWS: Explain incompatibilities.
40568
40569 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40570             Bruno Haible  <bruno@clisp.org>
40571
40572         Fix cross-compilation results.
40573         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40574         statement, as third argument of AC_TRY_RUN.
40575         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40576         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40577         Likewise.
40578         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40579         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40580         Likewise.
40581         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40582         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40583         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40584
40585 2009-04-20  Bruno Haible  <bruno@clisp.org>
40586
40587         Avoid test failure on mingw.
40588         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40589
40590 2009-04-20  Bruno Haible  <bruno@clisp.org>
40591
40592         Avoid compilation error on mingw.
40593         * modules/localename-tests (Depends-on): Add locale.
40594
40595 2009-04-19  Bruno Haible  <bruno@clisp.org>
40596
40597         Support for building a shared library on Windows platforms.
40598         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40599         (main): Test the presence of UNINORM_NFC here.
40600         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40601         (main): Test the presence of UNINORM_NFD here.
40602         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40603         (main): Test the presence of UNINORM_NFKC here.
40604         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40605         (main): Test the presence of UNINORM_NFKD here.
40606
40607 2009-04-19  Bruno Haible  <bruno@clisp.org>
40608
40609         Avoid a compiler warning.
40610         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40611         Change type of variable 'sequence'.
40612
40613 2009-04-19  Bruno Haible  <bruno@clisp.org>
40614
40615         * modules/configmake (Makefile.am): When the contents of configmake.h
40616         does not change, arrange to preserve its modification time.
40617
40618 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40619
40620         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40621         gettext domain.
40622
40623 2009-04-16  Jim Meyering  <meyering@redhat.com>
40624
40625         useless-if-before-free: improve conversion code
40626         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40627         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40628
40629 2009-04-14  Bruno Haible  <bruno@clisp.org>
40630
40631         * modules/fcntl (Depends-on): Add extensions.
40632         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40633
40634 2009-04-12  Ben Pfaff  <blp@gnu.org>
40635
40636         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40637         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40638
40639 2009-03-20  Ben Pfaff  <blp@gnu.org>
40640
40641         Make rename replace existing destinations on Windows.
40642         * m4/rename.m4: Add test for Mingw.
40643         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40644         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40645         * doc/posix-functions/rename.texi: Document.
40646
40647 2009-04-10  Bruno Haible  <bruno@clisp.org>
40648
40649         New include file "iconveh.h".
40650         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40651         * lib/striconveh.h: Include it.
40652         (enum iconv_ilseq_handler): Remove definition.
40653         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40654         striconveh.h.
40655         * lib/striconveha.c: Include striconveh.h.
40656         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40657         * modules/striconveh (Files): Add lib/iconveh.h.
40658         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40659         lib/striconveh.h.
40660
40661 2009-04-10  Bruno Haible  <bruno@clisp.org>
40662
40663         * lib/uniconv.h: Update comment.
40664
40665 2009-04-10  Bruno Haible  <bruno@clisp.org>
40666
40667         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40668         always.
40669         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40670         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40671         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40672         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40673         "unistring-notinline.h", so that the function gets defined always.
40674         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40675         * lib/unistr/u8-uctomb.c: Likewise.
40676         * lib/unistr/u16-mbtouc.c: Likewise.
40677         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40678         * lib/unistr/u16-uctomb.c: Likewise.
40679         * lib/unistr/u32-mbtouc.c: Likewise.
40680         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40681         * lib/unistr/u32-uctomb.c: Likewise.
40682
40683 2009-04-10  Bruno Haible  <bruno@clisp.org>
40684
40685         Mark 'utime' obsolete.
40686         * modules/utime (Status, Notice): New sections.
40687         Suggested by Jim Meyering.
40688
40689         Fix cross-compile guess for utime test.
40690         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40691         autoconf.
40692         * doc/posix-functions/utime.texi: Give more precisions.
40693         Reported by Jan <ipif@ymail.com>.
40694
40695 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40696
40697         filevercmp: correct today's change
40698         * lib/filevercmp.c: Also handle coreutils' test inputs.
40699         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40700
40701         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40702         for reporting it.
40703         * lib/filevercmp.c: Special handle for "", "." and "..".
40704         * tests/test-filevercmp.c: Enlarge the set suite.
40705
40706 2009-04-07  Jim Meyering  <meyering@redhat.com>
40707
40708         useless-if-before-free: show how to remove braced useless free, too
40709         * build-aux/useless-if-before-free: still only in a comment, though.
40710
40711 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40712
40713         maint.mk: import changes to syntax-check macros from coreutils
40714         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40715         Use them in the relevant macros.
40716
40717 2009-04-06  Bruno Haible  <bruno@clisp.org>
40718
40719         Fix unportable use of bit-fields.
40720         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40721         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40722         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40723
40724 2009-04-06  Bruno Haible  <bruno@clisp.org>
40725
40726         Avoid test failures on AIX and OSF/1.
40727         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40728         that malloc(0) = NULL.
40729         * tests/unicase/test-u8-tolower.c (check): Likewise.
40730         * tests/unicase/test-u8-totitle.c (check): Likewise.
40731         * tests/unicase/test-u8-toupper.c (check): Likewise.
40732         * tests/unicase/test-u16-casefold.c (check): Likewise.
40733         * tests/unicase/test-u16-tolower.c (check): Likewise.
40734         * tests/unicase/test-u16-totitle.c (check): Likewise.
40735         * tests/unicase/test-u16-toupper.c (check): Likewise.
40736         * tests/unicase/test-u32-casefold.c (check): Likewise.
40737         * tests/unicase/test-u32-tolower.c (check): Likewise.
40738         * tests/unicase/test-u32-totitle.c (check): Likewise.
40739         * tests/unicase/test-u32-toupper.c (check): Likewise.
40740         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40741         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40742         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40743         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40744         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40745         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40746         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40747         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40748         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40749         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40750         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40751         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40752
40753 2009-04-05  Bruno Haible  <bruno@clisp.org>
40754
40755         Work around an autoconf limitation.
40756         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40757         comment line if it would be longer than 3 KB.
40758
40759 2009-04-05  Bruno Haible  <bruno@clisp.org>
40760
40761         Avoid test failure with libiconv-1.13.
40762         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40763         of the expected test results.
40764
40765 2009-04-05  Bruno Haible  <bruno@clisp.org>
40766
40767         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40768         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40769         that it should be installed.
40770
40771 2009-04-05  Bruno Haible  <bruno@clisp.org>
40772
40773         * gnulib-tool: New option --copy-file.
40774         (func_usage): Document it.
40775         (func_dest_tmpfilename): Moved out of func_import.
40776         (func_add_file, func_update_file): New functions, extracted from
40777         func_import.
40778         (func_import): Update.
40779
40780 2009-04-05  Karl Berry  <karl@gnu.org>
40781
40782         * README: prominently mention gnulib-tool.
40783         Rearrange sections so getting the code is near the top.
40784
40785 2009-04-05  Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/unicase.h: Mention u*_cmp2.
40788         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40789         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40790         * lib/unicase/ulc-casecmp.c: Likewise.
40791         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40792         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40793         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40794         unistr/u8-cmp.
40795         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40796         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40797         unistr/u16-cmp.
40798         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40799         unistr/u32-cmp.
40800
40801         * lib/uninorm.h: Mention u*_cmp2.
40802         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40803         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40804         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40805         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40806         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40807         unistr/u8-cmp.
40808         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40809         unistr/u16-cmp.
40810         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40811         unistr/u32-cmp.
40812
40813         New module 'unistr/u32-cmp2'.
40814         * lib/unistr/u32-cmp2.c: New file.
40815         * modules/unistr/u32-cmp2: New file.
40816
40817         New module 'unistr/u16-cmp2'.
40818         * lib/unistr/u16-cmp2.c: New file.
40819         * modules/unistr/u16-cmp2: New file.
40820
40821         New module 'unistr/u8-cmp2'.
40822         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40823         * lib/unistr/u8-cmp2.c: New file.
40824         * lib/unistr/u-cmp2.h: New file.
40825         * modules/unistr/u8-cmp2: New file.
40826
40827 2009-04-05  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/unictype.h (uc_property_is_valid): New macro.
40830         * tests/unictype/test-pr_byname.c (main): Use it.
40831
40832         * lib/unistr.h: Doc fixes.
40833         * lib/uniconv.h: Doc fixes.
40834         * lib/unictype.h: Doc fixes.
40835
40836 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40837
40838         Port coreutils 7.2 to Solaris 8.
40839
40840         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40841         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40842         for Solaris 8.  This is a bit of a hack, as it means it's the
40843         caller's responsibility to add -lnsl if needed, but most likely it
40844         won't be needed since only getaddrinfo uses this and getaddrinfo
40845         isn't needed on Solaris 8.
40846
40847         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40848         problem to Solaris 8 encountered with coreutils 7.2, which
40849         resulted in a message "fnmatch.c:292: warning: passing argument 4
40850         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40851         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40852
40853 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40854
40855         * m4/ld-version-script.m4: Add FIXME comment.
40856
40857 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40858
40859         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40860         SOVERSION variable.
40861
40862 2009-04-02  Bruno Haible  <bruno@clisp.org>
40863
40864         * Makefile (info, html, dvi, pdf): Combine the rules.
40865         Suggested by Jim Meyering.
40866
40867 2009-04-01  Bruno Haible  <bruno@clisp.org>
40868
40869         * Makefile (info, html, dvi, pdf): New targets.
40870         Reported by Reuben Thomas <rrt@sc3d.org>.
40871
40872 2009-04-01  Bruno Haible  <bruno@clisp.org>
40873
40874         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40875         can be put into PATH.
40876         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40877
40878 2009-04-01  Bruno Haible  <bruno@clisp.org>
40879
40880         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40881
40882 2009-04-01  Bruno Haible  <bruno@clisp.org>
40883
40884         Rename module 'visibility'.
40885         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40886         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40887         * doc/gnulib.texi: Update.
40888         * MODULES.html.sh (Misc): Update.
40889         * NEWS: Mention the change.
40890
40891 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40892
40893         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40894         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40895         Eric Blake <ebb9@byu.net> for review.
40896         * MODULES.html.sh: Add lib-msvc-compat.
40897         * doc/gnulib.texi: Link to new section.
40898         * m4/ld-output-def.m4: New file.
40899         * doc/ld-output-def.texi: New file.
40900
40901 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40902
40903         Rename ld-version-script to lib-symbol-versions.  Suggested by
40904         Bruno Haible <bruno@clisp.org>.
40905         * modules/ld-version-script: Renamed to lib-symbol-versions.
40906         * doc/ld-version-script.texi: Fix module name.
40907         * MODULES.html.sh: Add lib-symbol-versions.
40908
40909 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40910
40911         * modules/u64-tests: New file.
40912         * tests/test-u64.c: New file.
40913
40914 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40915
40916         * MODULES.html.sh: Mention u64.
40917         * modules/u64: New module.
40918         * modules/crypto/sha512: Depend on u64 module instead of providing
40919         u64.h.
40920
40921 2009-03-27  Eric Blake  <ebb9@byu.net>
40922
40923         test-strerror: make debugging EAI_SYSTEM easier
40924         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40925         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40926         failure was EAI_SYSTEM.
40927
40928 2009-03-25  Bruno Haible  <bruno@clisp.org>
40929
40930         Fix a problem with --enable-relocatable on Solaris 7.
40931         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40932         since 2008-02-24.
40933
40934 2009-03-25  Eric Blake  <ebb9@byu.net>
40935
40936         test-sockets: avoid gcc warning
40937         * tests/test-sockets.c (main): Silence compiler warning.
40938
40939 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40940
40941         New modules nproc, pthread, contributed by Glen Lenker.
40942
40943         * MODULES.html.sh: Add pthread, nproc.
40944         * lib/nproc.c: New file.
40945         * lib/nproc.h: New file.
40946         * lib/pthread.in.h: New file.
40947         * m4/pthread.m4: New file.
40948         * modules/nproc: New file.
40949         * modules/pthread: New file.
40950
40951 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40952
40953         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40954         New variable.
40955
40956 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40957
40958         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40959         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40960         * tests/test-filevercmp.c: Add tests for backup suffixes.
40961
40962 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40963
40964         * modules/stdlib (Depends-on): Add stdint, needed when defining
40965         struct random_data on, for example, HP-UX 10.20.  Reported by
40966         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40967
40968 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40969
40970         * lib/readline.c (readline): Call fflush on stdout after printing
40971         prompt.
40972
40973 2009-03-20  Bruno Haible  <bruno@clisp.org>
40974
40975         Remove dependency from 'close' module to -lws2_32 on native Windows.
40976         * lib/close-hook.h: New file.
40977         * lib/close-hook.c: New file.
40978         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40979         w32sock.h.
40980         (_gl_close_fd_maybe_socket): Remove function.
40981         (rpl_close): Invoke execute_all_close_hooks instead of
40982         _gl_close_fd_maybe_socket.
40983         * lib/sockets.c: Include close-hook.h, w32sock.h.
40984         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40985         (close_sockets_hook): New variable.
40986         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40987         (gl_sockets_cleanup): Unregister it.
40988         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40989         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40990         * modules/close-hook: New file.
40991         * modules/close (Files): Remove lib/w32sock.h.
40992         (Depends-on): Add close-hook.
40993         (Link): Remove section.
40994         * modules/sockets (Files): Add lib/w32sock.h.
40995         (Depends-on): Add close-hook.
40996         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40997         invocation.
40998         * NEWS: Mention that LIB_CLOSE is gone.
40999
41000 2009-03-23  Eric Blake  <ebb9@byu.net>
41001
41002         signal-tests: test previous patch
41003         * tests/test-signal.c: New file.
41004         * modules/signal-tests: Likewise.
41005
41006         signal.h: always support 'volatile sig_atomic_t'
41007         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41008         (gl_SIGNAL_H_DEFAULTS): Add a default.
41009         * modules/signal (Makefile.am): Substitute if needed.
41010         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41011         users can blindly add volatile.
41012         * doc/posix-headers/signal.texi (signal.h): Document it.
41013         Reported by Matthew Woehlke.
41014
41015 2009-03-23  Jim Meyering  <meyering@redhat.com>
41016
41017         pathmax: PATH_MAX: use pathconf only when available
41018         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41019         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41020         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41021         This avoids a link failure in a PSP cross-compilation environment
41022         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41023
41024         * lib/vasnprintf.c (divide): Fix typo in comment.
41025
41026 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41027
41028         * gnulib-tool (func_filter_filelist): Fix comment.
41029
41030 2009-03-20  Bruno Haible  <bruno@clisp.org>
41031
41032         Make sockets.h self-contained.
41033         * lib/sockets.c: Include sockets.h first.
41034         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41035
41036 2009-03-19  Eric Blake  <ebb9@byu.net>
41037
41038         doc: mention more functions added in cygwin 1.7.0
41039         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41040         addition.
41041         * doc/posix-functions/log2f.texi: Likewise.
41042
41043 2009-03-19  Jim Meyering  <meyering@redhat.com>
41044
41045         fsusage: avoid syntax error due to statement-before-declaration
41046         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41047         after all declarations.  Reported by Matthew Woehlke in
41048         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41049
41050 2009-03-18  Eric Blake  <ebb9@byu.net>
41051
41052         build-aux/compile: sync from automake
41053         * build-aux/compile: New file, from automake.
41054         * config/srclist.txt: Mention build-aux/compile.
41055
41056 2009-03-17  Bruno Haible  <bruno@clisp.org>
41057
41058         * lib/git-merge-changelog.c: Fix typo in comment.
41059         Reported by Reuben Thomas <rrt@sc3d.org>.
41060
41061 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41062
41063         * m4/regex.m4: update and improve help for
41064         --without-included-regex.
41065
41066 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41067
41068         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41069         failure on missing include files.
41070
41071 2009-03-17  Eric Blake  <ebb9@byu.net>
41072
41073         doc: mention more functions added in cygwin 1.7.0
41074         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41075         addition.
41076         * doc/posix-functions/fwscanf.texi: Likewise.
41077         * doc/posix-functions/swprintf.texi: Likewise.
41078         * doc/posix-functions/swscanf.texi: Likewise.
41079         * doc/posix-functions/vfwprintf.texi: Likewise.
41080         * doc/posix-functions/vfwscanf.texi: Likewise.
41081         * doc/posix-functions/vswprintf.texi: Likewise.
41082         * doc/posix-functions/vswscanf.texi: Likewise.
41083         * doc/posix-functions/vwprintf.texi: Likewise.
41084         * doc/posix-functions/vwscanf.texi: Likewise.
41085         * doc/posix-functions/wcscasecmp.texi: Likewise.
41086         * doc/posix-functions/wcsdup.texi: Likewise.
41087         * doc/posix-functions/wcsftime.texi: Likewise.
41088         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41089         * doc/posix-functions/wprintf.texi: Likewise.
41090         * doc/posix-functions/wscanf.texi: Likewise.
41091         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41092
41093 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41094
41095         maint.mk: really add $(AM_MAKEFLAGS)
41096         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41097         was inadvertently omitted in the last commit.
41098         Spotted by Bruno Haible.
41099
41100         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41101         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41102         $(AM_MAKEFLAGS)' rather than plain `make'.
41103
41104         gnulib-tool: execute $MAKE not make
41105         * gnulib-tool: Default $MAKE to 'make'.
41106         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41107         than make.  Initialize $MAKE in the do-autobuild script.
41108
41109         gnulib-tool: use $MAKE not make in generated files
41110         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41111         make, in generated files.  Initialize $MAKE in the do-autobuild
41112         script.
41113
41114         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41115
41116         GNUmakefile: disable parallelism only for multiple, recursive targets
41117         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41118         additions in the Makefile.
41119         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41120         by Automake.
41121         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41122         are listed on the command line and at least one of them is
41123         listed in $(ALL_RECURSIVE_TARGETS).
41124
41125 2009-03-14  Bruno Haible  <bruno@clisp.org>
41126
41127         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41128         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41129         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41130         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41131         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41132         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41133         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41134         unistr/u8-uctomb.
41135         * modules/unistr/u8-strchr (Depends-on): Likewise.
41136         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41137         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41138         unistr/u16-uctomb.
41139         * modules/unistr/u16-strchr (Depends-on): Likewise.
41140         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41141
41142 2009-03-12  Bruno Haible  <bruno@clisp.org>
41143
41144         Work around select() bug on Interix 3.5.
41145         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41146         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41147         * m4/select.m4: New file.
41148         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41149         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41150         * modules/select (Files): Add m4/select.m4.
41151         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41152         * modules/nanosleep (Depends-on): Add select.
41153         * modules/poll (Depends-on): Likewise.
41154         * doc/posix-functions/select.texi: Mention the Interix bug.
41155         Reported by Markus Duft <mduft@gentoo.org>.
41156
41157         * lib/select.c: Renamed from lib/winsock-select.c.
41158         * modules/select (Files): Add lib/select.c, remove
41159         lib/winsock-select.c.
41160         (configure.ac): Update.
41161
41162 2009-03-12  Jim Meyering  <meyering@redhat.com>
41163
41164         avoid gcc warnings about unused macro definitions
41165         * lib/readtokens.c (STREQ): Remove unused definition.
41166         * lib/xmalloc.c (SIZE_MAX): Likewise.
41167         * lib/openat-die.c (N_): Likewise.
41168         * lib/mountlist.c (SIZE_MAX): Remove definition.
41169         Instead, include <stdint.h>.
41170         * lib/readutmp.c: Likewise.
41171         * modules/readutmp (Depends-on): Add stdint.
41172         * modules/mountlist (Depends-on): Add stdint.
41173         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41174
41175 2009-03-10  Bruno Haible  <bruno@clisp.org>
41176
41177         Tests for module 'mbmemcasecoll'.
41178         * modules/mbmemcasecoll-tests: New file.
41179         * tests/test-mbmemcasecoll1.sh: New file.
41180         * tests/test-mbmemcasecoll2.sh: New file.
41181         * tests/test-mbmemcasecoll3.sh: New file.
41182         * tests/test-mbmemcasecoll.c: New file.
41183
41184         New module 'mbmemcasecoll'.
41185         * lib/mbmemcasecoll.h: New file.
41186         * lib/mbmemcasecoll.c: New file.
41187         * modules/mbmemcasecoll: New file.
41188
41189         * tests/test-mbmemcasecmp.h: New file, extracted from
41190         tests/test-mbmemcasecmp.c.
41191         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41192         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41193         (main): Update.
41194         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41195
41196 2009-03-09  Bruno Haible  <bruno@clisp.org>
41197
41198         Tests for module 'mbmemcasecmp'.
41199         * modules/mbmemcasecmp-tests: New file.
41200         * tests/test-mbmemcasecmp1.sh: New file.
41201         * tests/test-mbmemcasecmp2.sh: New file.
41202         * tests/test-mbmemcasecmp3.sh: New file.
41203         * tests/test-mbmemcasecmp.c: New file.
41204
41205         New module 'mbmemcasecmp'.
41206         * lib/mbmemcasecmp.h: New file.
41207         * lib/mbmemcasecmp.c: New file.
41208         * modules/mbmemcasecmp: New file.
41209
41210 2009-03-09  Bruno Haible  <bruno@clisp.org>
41211
41212         Tests for module 'unicase/ulc-casecoll'.
41213         * modules/unicase/ulc-casecoll-tests: New file.
41214         * tests/unicase/test-ulc-casecoll1.sh: New file.
41215         * tests/unicase/test-ulc-casecoll2.sh: New file.
41216         * tests/unicase/test-ulc-casecoll.c: New file.
41217
41218         New module 'unicase/ulc-casecoll'.
41219         * lib/unicase.h (ulc_casecoll): New declaration.
41220         * lib/unicase/ulc-casecoll.c: New file.
41221         * modules/unicase/ulc-casecoll: New file.
41222
41223         New module 'unicase/ulc-casexfrm'.
41224         * lib/unicase.h (ulc_casexfrm): New declaration.
41225         * lib/unicase/ulc-casexfrm.c: New file.
41226         * modules/unicase/ulc-casexfrm: New file.
41227
41228 2009-03-09  Bruno Haible  <bruno@clisp.org>
41229
41230         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41231         invocations.
41232
41233         * m4/mbscasecmp.m4: Remove file.
41234         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41235         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41236
41237         * m4/mbscasestr.m4: Remove file.
41238         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41239         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41240
41241         * m4/mbschr.m4: Remove file.
41242         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41243         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41244
41245         * m4/mbscspn.m4: Remove file.
41246         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41247         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41248
41249         * m4/mbslen.m4: Remove file.
41250         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41251         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41252
41253         * m4/mbsncasecmp.m4: Remove file.
41254         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41255         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41256
41257         * m4/mbsnlen.m4: Remove file.
41258         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41259         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41260
41261         * m4/mbspbrk.m4: Remove file.
41262         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41263         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41264
41265         * m4/mbspcasecmp.m4: Remove file.
41266         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41267         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41268
41269         * m4/mbsrchr.m4: Remove file.
41270         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41271         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41272
41273         * m4/mbssep.m4: Remove file.
41274         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41275         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41276
41277         * m4/mbsspn.m4: Remove file.
41278         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41279         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41280
41281         * m4/mbsstr.m4: Remove file.
41282         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41283         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41284
41285         * m4/mbstok_r.m4: Remove file.
41286         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41287         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41288
41289         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41290
41291         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41292         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41293
41294         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41295
41296 2009-03-08  Bruno Haible  <bruno@clisp.org>
41297
41298         Tests for module 'unicase/ulc-casecmp'.
41299         * modules/unicase/ulc-casecmp-tests: New file.
41300         * tests/unicase/test-ulc-casecmp1.sh: New file.
41301         * tests/unicase/test-ulc-casecmp2.sh: New file.
41302         * tests/unicase/test-ulc-casecmp.c: New file.
41303
41304         New module 'unicase/ulc-casecmp'.
41305         * lib/unicase.h (ulc_casecmp): New declaration.
41306         * lib/unicase/ulc-casecmp.c: New file.
41307         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41308         'const SRC_UNIT *'.
41309         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41310         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41311         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41312         * modules/unicase/ulc-casecmp: New file.
41313
41314         Tests for module 'unicase/u32-is-cased'.
41315         * modules/unicase/u32-is-cased-tests: New file.
41316         * tests/unicase/test-u32-is-cased.c: New file.
41317
41318         Tests for module 'unicase/u16-is-cased'.
41319         * modules/unicase/u16-is-cased-tests: New file.
41320         * tests/unicase/test-u16-is-cased.c: New file.
41321
41322         Tests for module 'unicase/u8-is-cased'.
41323         * modules/unicase/u8-is-cased-tests: New file.
41324         * tests/unicase/test-u8-is-cased.c: New file.
41325         * tests/unicase/test-is-cased.h: New file.
41326
41327         New module 'unicase/u32-is-cased'.
41328         * lib/unicase/u32-is-cased.c: New file.
41329         * modules/unicase/u32-is-cased: New file.
41330
41331         New module 'unicase/u16-is-cased'.
41332         * lib/unicase/u16-is-cased.c: New file.
41333         * modules/unicase/u16-is-cased: New file.
41334
41335         New module 'unicase/u8-is-cased'.
41336         * lib/unicase/u8-is-cased.c: New file.
41337         * lib/unicase/u-is-cased.h: New file.
41338         * modules/unicase/u8-is-cased: New file.
41339
41340         Tests for module 'unicase/u32-is-casefolded'.
41341         * modules/unicase/u32-is-casefolded-tests: New file.
41342         * tests/unicase/test-u32-is-casefolded.c: New file.
41343
41344         Tests for module 'unicase/u16-is-casefolded'.
41345         * modules/unicase/u16-is-casefolded-tests: New file.
41346         * tests/unicase/test-u16-is-casefolded.c: New file.
41347
41348         Tests for module 'unicase/u8-is-casefolded'.
41349         * modules/unicase/u8-is-casefolded-tests: New file.
41350         * tests/unicase/test-u8-is-casefolded.c: New file.
41351         * tests/unicase/test-is-casefolded.h: New file.
41352
41353         New module 'unicase/u32-is-casefolded'.
41354         * lib/unicase/u32-is-casefolded.c: New file.
41355         * modules/unicase/u32-is-casefolded: New file.
41356
41357         New module 'unicase/u16-is-casefolded'.
41358         * lib/unicase/u16-is-casefolded.c: New file.
41359         * modules/unicase/u16-is-casefolded: New file.
41360
41361         New module 'unicase/u8-is-casefolded'.
41362         * lib/unicase/u8-is-casefolded.c: New file.
41363         * modules/unicase/u8-is-casefolded: New file.
41364
41365         Tests for module 'unicase/u32-is-titlecase'.
41366         * modules/unicase/u32-is-titlecase-tests: New file.
41367         * tests/unicase/test-u32-is-titlecase.c: New file.
41368
41369         Tests for module 'unicase/u16-is-titlecase'.
41370         * modules/unicase/u16-is-titlecase-tests: New file.
41371         * tests/unicase/test-u16-is-titlecase.c: New file.
41372
41373         Tests for module 'unicase/u8-is-titlecase'.
41374         * modules/unicase/u8-is-titlecase-tests: New file.
41375         * tests/unicase/test-u8-is-titlecase.c: New file.
41376         * tests/unicase/test-is-titlecase.h: New file.
41377
41378         New module 'unicase/u32-is-titlecase'.
41379         * lib/unicase/u32-is-titlecase.c: New file.
41380         * modules/unicase/u32-is-titlecase: New file.
41381
41382         New module 'unicase/u16-is-titlecase'.
41383         * lib/unicase/u16-is-titlecase.c: New file.
41384         * modules/unicase/u16-is-titlecase: New file.
41385
41386         New module 'unicase/u8-is-titlecase'.
41387         * lib/unicase/u8-is-titlecase.c: New file.
41388         * modules/unicase/u8-is-titlecase: New file.
41389
41390         Tests for module 'unicase/u32-is-lowercase'.
41391         * modules/unicase/u32-is-lowercase-tests: New file.
41392         * tests/unicase/test-u32-is-lowercase.c: New file.
41393
41394         Tests for module 'unicase/u16-is-lowercase'.
41395         * modules/unicase/u16-is-lowercase-tests: New file.
41396         * tests/unicase/test-u16-is-lowercase.c: New file.
41397
41398         Tests for module 'unicase/u8-is-lowercase'.
41399         * modules/unicase/u8-is-lowercase-tests: New file.
41400         * tests/unicase/test-u8-is-lowercase.c: New file.
41401         * tests/unicase/test-is-lowercase.h: New file.
41402
41403         New module 'unicase/u32-is-lowercase'.
41404         * lib/unicase/u32-is-lowercase.c: New file.
41405         * modules/unicase/u32-is-lowercase: New file.
41406
41407         New module 'unicase/u16-is-lowercase'.
41408         * lib/unicase/u16-is-lowercase.c: New file.
41409         * modules/unicase/u16-is-lowercase: New file.
41410
41411         New module 'unicase/u8-is-lowercase'.
41412         * lib/unicase/u8-is-lowercase.c: New file.
41413         * modules/unicase/u8-is-lowercase: New file.
41414
41415         Tests for module 'unicase/u32-is-uppercase'.
41416         * modules/unicase/u32-is-uppercase-tests: New file.
41417         * tests/unicase/test-u32-is-uppercase.c: New file.
41418
41419         Tests for module 'unicase/u16-is-uppercase'.
41420         * modules/unicase/u16-is-uppercase-tests: New file.
41421         * tests/unicase/test-u16-is-uppercase.c: New file.
41422
41423         Tests for module 'unicase/u8-is-uppercase'.
41424         * modules/unicase/u8-is-uppercase-tests: New file.
41425         * tests/unicase/test-u8-is-uppercase.c: New file.
41426         * tests/unicase/test-is-uppercase.h: New file.
41427
41428         New module 'unicase/u32-is-uppercase'.
41429         * lib/unicase/u32-is-uppercase.c: New file.
41430         * modules/unicase/u32-is-uppercase: New file.
41431
41432         New module 'unicase/u16-is-uppercase'.
41433         * lib/unicase/u16-is-uppercase.c: New file.
41434         * modules/unicase/u16-is-uppercase: New file.
41435
41436         New module 'unicase/u8-is-uppercase'.
41437         * lib/unicase/u8-is-uppercase.c: New file.
41438         * modules/unicase/u8-is-uppercase: New file.
41439
41440         New module 'unicase/u32-is-invariant'.
41441         * lib/unicase/u32-is-invariant.c: New file.
41442         * modules/unicase/u32-is-invariant: New file.
41443
41444         New module 'unicase/u16-is-invariant'.
41445         * lib/unicase/u16-is-invariant.c: New file.
41446         * modules/unicase/u16-is-invariant: New file.
41447
41448         New module 'unicase/u8-is-invariant'.
41449         * lib/unicase/u8-is-invariant.c: New file.
41450         * lib/unicase/invariant.h: New file.
41451         * lib/unicase/u-is-invariant.h: New file.
41452         * modules/unicase/u8-is-invariant: New file.
41453
41454         Tests for module 'unicase/u32-casecoll'.
41455         * modules/unicase/u32-casecoll-tests: New file.
41456         * tests/unicase/test-u32-casecoll.c: New file.
41457
41458         Tests for module 'unicase/u16-casecoll'.
41459         * modules/unicase/u16-casecoll-tests: New file.
41460         * tests/unicase/test-u16-casecoll.c: New file.
41461
41462         Tests for module 'unicase/u8-casecoll'.
41463         * modules/unicase/u8-casecoll-tests: New file.
41464         * tests/unicase/test-u8-casecoll.c: New file.
41465
41466         New module 'unicase/u32-casecoll'.
41467         * lib/unicase/u32-casecoll.c: New file.
41468         * modules/unicase/u32-casecoll: New file.
41469
41470         New module 'unicase/u16-casecoll'.
41471         * lib/unicase/u16-casecoll.c: New file.
41472         * modules/unicase/u16-casecoll: New file.
41473
41474         New module 'unicase/u8-casecoll'.
41475         * lib/unicase/u8-casecoll.c: New file.
41476         * lib/unicase/u-casecoll.h: New file.
41477         * modules/unicase/u8-casecoll: New file.
41478
41479         New module 'unicase/u32-casexfrm'.
41480         * lib/unicase/u32-casexfrm.c: New file.
41481         * modules/unicase/u32-casexfrm: New file.
41482
41483         New module 'unicase/u16-casexfrm'.
41484         * lib/unicase/u16-casexfrm.c: New file.
41485         * modules/unicase/u16-casexfrm: New file.
41486
41487         New module 'unicase/u8-casexfrm'.
41488         * lib/unicase/u8-casexfrm.c: New file.
41489         * lib/unicase/u-casexfrm.h: New file.
41490         * modules/unicase/u8-casexfrm: New file.
41491
41492         Tests for module 'unicase/u32-casecmp'.
41493         * modules/unicase/u32-casecmp-tests: New file.
41494         * tests/unicase/test-u32-casecmp.c: New file.
41495
41496         Tests for module 'unicase/u16-casecmp'.
41497         * modules/unicase/u16-casecmp-tests: New file.
41498         * tests/unicase/test-u16-casecmp.c: New file.
41499
41500         Tests for module 'unicase/u8-casecmp'.
41501         * modules/unicase/u8-casecmp-tests: New file.
41502         * tests/unicase/test-u8-casecmp.c: New file.
41503         * tests/unicase/test-casecmp.h: New file.
41504
41505         New module 'unicase/u32-casecmp'.
41506         * lib/unicase/u32-casecmp.c: New file.
41507         * modules/unicase/u32-casecmp: New file.
41508
41509         New module 'unicase/u16-casecmp'.
41510         * lib/unicase/u16-casecmp.c: New file.
41511         * modules/unicase/u16-casecmp: New file.
41512
41513         New module 'unicase/u8-casecmp'.
41514         * lib/unicase/u8-casecmp.c: New file.
41515         * lib/unicase/u-casecmp.h: New file.
41516         * modules/unicase/u8-casecmp: New file.
41517
41518         Tests for module 'unicase/u32-casefold'.
41519         * modules/unicase/u32-casefold-tests: New file.
41520         * tests/unicase/test-u32-casefold.c: New file.
41521
41522         Tests for module 'unicase/u16-casefold'.
41523         * modules/unicase/u16-casefold-tests: New file.
41524         * tests/unicase/test-u16-casefold.c: New file.
41525
41526         Tests for module 'unicase/u8-casefold'.
41527         * modules/unicase/u8-casefold-tests: New file.
41528         * tests/unicase/test-u8-casefold.c: New file.
41529
41530         New module 'unicase/u32-casefold'.
41531         * lib/unicase/u32-casefold.c: New file.
41532         * modules/unicase/u32-casefold: New file.
41533
41534         New module 'unicase/u16-casefold'.
41535         * lib/unicase/u16-casefold.c: New file.
41536         * modules/unicase/u16-casefold: New file.
41537
41538         New module 'unicase/u8-casefold'.
41539         * lib/unicase/u8-casefold.c: New file.
41540         * lib/unicase/u-casefold.h: New file.
41541         * modules/unicase/u8-casefold: New file.
41542
41543         New module 'unicase/tocasefold'.
41544         * lib/unicase/casefold.h: New file.
41545         * lib/unicase/tocasefold.c: New file.
41546         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41547         * modules/unicase/tocasefold: New file.
41548
41549         Tests for module 'unicase/u32-totitle'.
41550         * modules/unicase/u32-totitle-tests: New file.
41551         * tests/unicase/test-u32-totitle.c: New file.
41552
41553         Tests for module 'unicase/u16-totitle'.
41554         * modules/unicase/u16-totitle-tests: New file.
41555         * tests/unicase/test-u16-totitle.c: New file.
41556
41557         Tests for module 'unicase/u8-totitle'.
41558         * modules/unicase/u8-totitle-tests: New file.
41559         * tests/unicase/test-u8-totitle.c: New file.
41560
41561         New module 'unicase/u32-totitle'.
41562         * lib/unicase/u32-totitle.c: New file.
41563         * modules/unicase/u32-totitle: New file.
41564
41565         New module 'unicase/u16-totitle'.
41566         * lib/unicase/u16-totitle.c: New file.
41567         * modules/unicase/u16-totitle: New file.
41568
41569         New module 'unicase/u8-totitle'.
41570         * lib/unicase/u8-totitle.c: New file.
41571         * lib/unicase/u-totitle.h: New file.
41572         * modules/unicase/u8-totitle: New file.
41573
41574         Tests for module 'unicase/u32-tolower'.
41575         * modules/unicase/u32-tolower-tests: New file.
41576         * tests/unicase/test-u32-tolower.c: New file.
41577
41578         Tests for module 'unicase/u16-tolower'.
41579         * modules/unicase/u16-tolower-tests: New file.
41580         * tests/unicase/test-u16-tolower.c: New file.
41581
41582         Tests for module 'unicase/u8-tolower'.
41583         * modules/unicase/u8-tolower-tests: New file.
41584         * tests/unicase/test-u8-tolower.c: New file.
41585
41586         New module 'unicase/u32-tolower'.
41587         * lib/unicase/u32-tolower.c: New file.
41588         * modules/unicase/u32-tolower: New file.
41589
41590         New module 'unicase/u16-tolower'.
41591         * lib/unicase/u16-tolower.c: New file.
41592         * modules/unicase/u16-tolower: New file.
41593
41594         New module 'unicase/u8-tolower'.
41595         * lib/unicase/u8-tolower.c: New file.
41596         * modules/unicase/u8-tolower: New file.
41597
41598         Tests for module 'unicase/u32-toupper'.
41599         * modules/unicase/u32-toupper-tests: New file.
41600         * tests/unicase/test-u32-toupper.c: New file.
41601
41602         Tests for module 'unicase/u16-toupper'.
41603         * modules/unicase/u16-toupper-tests: New file.
41604         * tests/unicase/test-u16-toupper.c: New file.
41605
41606         Tests for module 'unicase/u8-toupper'.
41607         * modules/unicase/u8-toupper-tests: New file.
41608         * tests/unicase/test-u8-toupper.c: New file.
41609
41610         New module 'unicase/u32-toupper'.
41611         * lib/unicase/u32-toupper.c: New file.
41612         * modules/unicase/u32-toupper: New file.
41613
41614         New module 'unicase/u16-toupper'.
41615         * lib/unicase/u16-toupper.c: New file.
41616         * modules/unicase/u16-toupper: New file.
41617
41618         New module 'unicase/u8-toupper'.
41619         * lib/unicase/u8-toupper.c: New file.
41620         * modules/unicase/u8-toupper: New file.
41621
41622         New module 'unicase/u32-casemap'.
41623         * lib/unicase/u32-casemap.c: New file.
41624         * modules/unicase/u32-casemap: New file.
41625
41626         New module 'unicase/u16-casemap'.
41627         * lib/unicase/u16-casemap.c: New file.
41628         * modules/unicase/u16-casemap: New file.
41629
41630         New module 'unicase/u8-casemap'.
41631         * lib/unicase/unicasemap.h: New file.
41632         * lib/unicase/u8-casemap.c: New file.
41633         * lib/unicase/u-casemap.h: New file.
41634         * modules/unicase/u8-casemap: New file.
41635
41636         New module 'unicase/special-casing'.
41637         * lib/unicase/special-casing.h: New file.
41638         * lib/unicase/special-casing.c: New file.
41639         * lib/unicase/special-casing-table.gperf: New file, generated by
41640         gen-uni-tables.c.
41641         * modules/unicase/special-casing: New file.
41642
41643         Tests for module 'unicase/locale-language'.
41644         * modules/unicase/locale-language-tests: New file.
41645         * tests/unicase/test-locale-language.sh: New file.
41646         * tests/unicase/test-locale-language.c: New file.
41647
41648         New module 'unicase/locale-language'.
41649         * lib/unicase/locale-language.c: New file.
41650         * lib/unicase/locale-languages.gperf: New file.
41651         * modules/unicase/locale-language: New file.
41652
41653         Generate more tables for case conversion and case folding.
41654         * lib/gen-uni-tables.c (SCC_*): New enum items.
41655         (struct special_casing_rule): New type.
41656         (casing_rules, num_casing_rules, allocated_casing_rules): New
41657         variables.
41658         (add_casing_rule, fill_casing_rules): New functions.
41659         (struct casefold_rule): New type.
41660         (casefolding_rules, num_casefolding_rules,
41661         allocated_casefolding_rules): New variables.
41662         (fill_casefolding_rules): New function.
41663         (unicode_casefold): New variable.
41664         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41665         sort_casing_rules, output_casing_rules): New functions.
41666         (main): Accept to more arguments: SpecialCasing.txt and
41667         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41668         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41669         Output mapping for casefolding.
41670
41671         * lib/unicase.h: Include stdbool.h, uninorm.h.
41672         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41673         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41674         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41675         arguments.
41676         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41677         resultp arguments.
41678         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41679         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41680         resultp arguments.
41681         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41682         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41683         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41684         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41685         declarations.
41686         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41687
41688 2009-03-08  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41691         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41692         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41693         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41694
41695 2009-03-07  Bruno Haible  <bruno@clisp.org>
41696
41697         Adjust u*_normcmp, u*_normcoll API.
41698         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41699         u16_normcoll, u32_normcoll): Change failure conventions.
41700         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41701         errno and return -1.
41702         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41703
41704 2009-03-07  Bruno Haible  <bruno@clisp.org>
41705
41706         Tests for module 'uninorm/u32-normcoll'.
41707         * modules/uninorm/u32-normcoll-tests: New file.
41708         * tests/uninorm/test-u32-normcoll.c: New file.
41709
41710         Tests for module 'uninorm/u16-normcoll'.
41711         * modules/uninorm/u16-normcoll-tests: New file.
41712         * tests/uninorm/test-u16-normcoll.c: New file.
41713
41714         Tests for module 'uninorm/u8-normcoll'.
41715         * modules/uninorm/u8-normcoll-tests: New file.
41716         * tests/uninorm/test-u8-normcoll.c: New file.
41717
41718 2009-03-07  Bruno Haible  <bruno@clisp.org>
41719
41720         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41721         tests/uninorm/test-u32-normcmp.c.
41722         * tests/uninorm/test-u32-normcmp.c: Include it.
41723         (test_nonascii): New function, extracted from main. Add some more
41724         tests.
41725         (main): Invoke test_ascii and test_nonascii.
41726         * modules/uninorm/u32-normcmp-tests (Files): Add
41727         tests/uninorm/test-u32-normcmp.h.
41728         (Depends-on): Remove uninorm/u32-normcmp.
41729
41730         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41731         tests/uninorm/test-u16-normcmp.c.
41732         * tests/uninorm/test-u16-normcmp.c: Include it.
41733         (test_nonascii): New function, extracted from main. Add some more
41734         tests.
41735         (main): Invoke test_ascii and test_nonascii.
41736         * modules/uninorm/u16-normcmp-tests (Files): Add
41737         tests/uninorm/test-u16-normcmp.h.
41738         (Depends-on): Remove uninorm/u16-normcmp.
41739
41740         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41741         tests/uninorm/test-u8-normcmp.c.
41742         * tests/uninorm/test-u8-normcmp.c: Include it.
41743         (test_nonascii): New function, extracted from main. Add some more
41744         tests.
41745         (main): Invoke test_ascii and test_nonascii.
41746         * modules/uninorm/u8-normcmp-tests (Files): Add
41747         tests/uninorm/test-u8-normcmp.h.
41748         (Depends-on): Remove uninorm/u8-normcmp.
41749
41750 2009-03-07  Bruno Haible  <bruno@clisp.org>
41751
41752         New module 'uninorm/u32-normcoll'.
41753         * lib/uninorm/u32-normcoll.c: New file.
41754         * modules/uninorm/u32-normcoll: New file.
41755
41756         New module 'uninorm/u16-normcoll'.
41757         * lib/uninorm/u16-normcoll.c: New file.
41758         * modules/uninorm/u16-normcoll: New file.
41759
41760         New module 'uninorm/u8-normcoll'.
41761         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41762         declarations.
41763         * lib/uninorm/u8-normcoll.c: New file.
41764         * lib/uninorm/u-normcoll.h: New file.
41765         * modules/uninorm/u8-normcoll: New file.
41766
41767         New module 'uninorm/u32-normxfrm'.
41768         * lib/uninorm/u32-normxfrm.c: New file.
41769         * modules/uninorm/u32-normxfrm: New file.
41770
41771         New module 'uninorm/u16-normxfrm'.
41772         * lib/uninorm/u16-normxfrm.c: New file.
41773         * modules/uninorm/u16-normxfrm: New file.
41774
41775         New module 'uninorm/u8-normxfrm'.
41776         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41777         declarations.
41778         * lib/uninorm/u8-normxfrm.c: New file.
41779         * lib/uninorm/u-normxfrm.h: New file.
41780         * modules/uninorm/u8-normxfrm: New file.
41781
41782 2009-03-07  Bruno Haible  <bruno@clisp.org>
41783
41784         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41785         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41786         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41787
41788 2009-03-07  Bruno Haible  <bruno@clisp.org>
41789
41790         New module 'memxfrm'.
41791         * lib/memxfrm.h: New file.
41792         * lib/memxfrm.c: New file.
41793         * modules/memxfrm: New file.
41794
41795 2009-03-07  Bruno Haible  <bruno@clisp.org>
41796
41797         New module 'memcmp2'.
41798         * lib/memcmp2.h: New file.
41799         * lib/memcmp2.c: New file.
41800         * modules/memcmp2: New file.
41801
41802 2009-03-07  Bruno Haible  <bruno@clisp.org>
41803
41804         Tests for module 'uninorm/decomposing-form'.
41805         * modules/uninorm/decomposing-form-tests: New file.
41806         * tests/uninorm/test-decomposing-form.c: New file.
41807
41808         New module 'uninorm/decomposing-form'.
41809         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41810         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41811         Add 'decomposing_variant' field.
41812         * lib/uninorm/decomposing-form.c: New file.
41813         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41814         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41815         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41816         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41817         * modules/uninorm/decomposing-form: New file.
41818         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41819         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41820
41821 2009-03-07  Bruno Haible  <bruno@clisp.org>
41822
41823         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41824         strings.
41825
41826 2009-03-06  Bruno Haible  <bruno@clisp.org>
41827
41828         Tests for module 'uninorm/u32-normcmp'.
41829         * tests/uninorm/test-u32-normcmp.c: New file.
41830         * modules/uninorm/u32-normcmp-tests: New file.
41831
41832         Tests for module 'uninorm/u16-normcmp'.
41833         * tests/uninorm/test-u16-normcmp.c: New file.
41834         * modules/uninorm/u16-normcmp-tests: New file.
41835
41836         Tests for module 'uninorm/u8-normcmp'.
41837         * tests/uninorm/test-u8-normcmp.c: New file.
41838         * modules/uninorm/u8-normcmp-tests: New file.
41839
41840         New module 'uninorm/u32-normcmp'.
41841         * lib/uninorm/u32-normcmp.c: New file.
41842         * modules/uninorm/u32-normcmp: New file.
41843
41844         New module 'uninorm/u16-normcmp'.
41845         * lib/uninorm/u16-normcmp.c: New file.
41846         * modules/uninorm/u16-normcmp: New file.
41847
41848         New module 'uninorm/u8-normcmp'.
41849         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41850         declarations.
41851         * lib/uninorm/u8-normcmp.c: New file.
41852         * lib/uninorm/u-normcmp.h: New file.
41853         * modules/uninorm/u8-normcmp: New file.
41854
41855 2009-03-06  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41858         Reported by Eric Blake.
41859
41860 2009-03-06  Eric Blake  <ebb9@byu.net>
41861             Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41864         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41865         condition.
41866         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41867         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41868         condition.
41869         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41870
41871 2009-03-06  Eric Blake  <ebb9@byu.net>
41872
41873         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41874         to avoid compiler warnings.
41875         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41876
41877 2009-03-05  Bruno Haible  <bruno@clisp.org>
41878
41879         * tests/test-ftell.c (main): Disable test beyond end of file on
41880         FreeMiNT.
41881         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41882
41883 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41884
41885         * lib/filevercmp.c: Move hidden files up in ordering.
41886         * tests/test-filevercmp.c: Add tests for hidden files.
41887
41888 2009-03-04  Bruno Haible  <bruno@clisp.org>
41889
41890         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41891         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41892         AM_CFLAGS.
41893         Reported by Simon Josefsson.
41894
41895 2009-03-03  Bruno Haible  <bruno@clisp.org>
41896
41897         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41898         Reported by Simon Josefsson.
41899
41900         * doc/ld-version-script.texi: Update node reference.
41901
41902 2009-03-03  Bruno Haible  <bruno@clisp.org>
41903
41904         * modules/visibility (License): Change to 'unlimited'.
41905         Suggested by Simon Josefsson.
41906
41907 2009-03-03  Jim Meyering  <meyering@redhat.com>
41908
41909         unlinkdir: cannot_unlink_dir may modify process state
41910         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41911         it's neither thread-safe nor appropriate for use in a library.
41912
41913 2009-03-03  Eric Blake  <ebb9@byu.net>
41914
41915         test-closein: silence test under Darwin
41916         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41917         care if it dies from EPIPE or EBADF.
41918
41919 2009-03-03  Bruno Haible  <bruno@clisp.org>
41920
41921         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41922         earlier.
41923         * doc/visibility.texi: Fix @node and @section.
41924
41925 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41926
41927         * doc/gnulib.texi: Link to sections for ld version script and
41928         visibility.
41929         * doc/visibility.texi: Add @node and @section.
41930         * modules/ld-version-script: New module.
41931         * m4/ld-version-script.m4: New file.
41932         * doc/ld-version-script.texi: New file.
41933
41934 2009-03-02  David Lutterkort  <lutter@redhat.com>
41935
41936         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41938
41939 2009-03-02  Bruno Haible  <bruno@clisp.org>
41940
41941         * doc/visibility.texi: Mention libtool's -export-symbols option.
41942
41943 2009-03-02  Jim Meyering  <meyering@redhat.com>
41944
41945         announce-gen: new option: --no-print-checksums
41946         * build-aux/announce-gen (usage): Describe it.
41947         (print_checksums): Print a newline here, not in the [*] footnote.
41948         (main): Honor it.
41949
41950 2009-03-01  Bruno Haible  <bruno@clisp.org>
41951
41952         Use socklen_t in the native Windows replacements prototypes.
41953         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41954         instead of 'int'.
41955         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41956         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41957         * modules/getsockopt (Depends-on): Add socklen.
41958         * modules/setsockopt (Depends-on): Add socklen.
41959
41960 2009-03-01  Bruno Haible  <bruno@clisp.org>
41961
41962         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41963         least 4.2.
41964
41965 2009-03-01  Eric Blake  <ebb9@byu.net>
41966             Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41969         error messages.
41970         * lib/wait-process.c (wait_subprocess): Omit error message about
41971         deadly signal sent to the child of termsigp != NULL.
41972
41973 2009-03-01  Eric Blake  <ebb9@byu.net>
41974
41975         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41976
41977 2009-03-01  Bruno Haible  <bruno@clisp.org>
41978
41979         Avoid a gcc warning.
41980         * tests/test-sched.c (b): Make global.
41981         Reported by Eric Blake.
41982
41983 2009-01-19  Martin Lambers  <marlam@marlam.de>
41984
41985         Provide POSIX semantics for socket timeout options on W32.
41986         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41987         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41988         * modules/setsockopt: Depend on sys_time module for struct timeval.
41989         * modules/getsockopt: Depend on sys_time module for struct timeval.
41990
41991 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41992
41993         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41994         __USE_GNU, for consistency with netdb.in.h.
41995         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41996
41997 2009-03-01  Bruno Haible  <bruno@clisp.org>
41998
41999         More support for FreeMiNT.
42000         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42001         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42002
42003 2009-03-01  Bruno Haible  <bruno@clisp.org>
42004
42005         More support for FreeMiNT.
42006         * lib/fpurge.c (fpurge): Correct last commit.
42007         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42008
42009 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42010
42011         Fix unportable awk script in vc-list-files.
42012         * build-aux/vc-list-files: In the replacement awk script, use
42013         substr with a second argument of 1, not zero.
42014         Report by Simon Josefsson.
42015
42016 2009-02-28  Bruno Haible  <bruno@clisp.org>
42017
42018         More support for FreeMiNT.
42019         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42020         to FreeMiNT today.
42021         * lib/fwriting.c (fwriting): Likewise.
42022         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42023
42024 2009-02-28  Bruno Haible  <bruno@clisp.org>
42025
42026         * tests/test-freadseek.c (main): Disable test beyond end of file on
42027         FreeMiNT.
42028         * tests/test-ftello.c (main): Likewise.
42029         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42030
42031 2009-02-28  Bruno Haible  <bruno@clisp.org>
42032
42033         Add tentative support for FreeMiNT.
42034         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42035         * lib/fpurge.c (fpurge): Likewise.
42036         * lib/freadable.c (freadable): Likewise.
42037         * lib/freading.c (freading): Likewise.
42038         * lib/freadptr.c (freadptr): Likewise.
42039         * lib/freadseek.c (freadptrinc): Likewise.
42040         * lib/fseeko.c (rpl_fseeko): Likewise.
42041         * lib/fseterr.c (fseterr): Likewise.
42042         * lib/fwritable.c (fwritable): Likewise.
42043         * lib/fwriting.c (fwriting): Likewise.
42044         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42045         Hourihane.
42046         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42047
42048 2009-02-28  Bruno Haible  <bruno@clisp.org>
42049
42050         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42051         SIGCHLD.
42052         Reported by Jim Meyering.
42053
42054 2009-02-28  Bruno Haible  <bruno@clisp.org>
42055
42056         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42057         Mention the results of these tests on various platforms.
42058         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42059         order.
42060         * doc/posix-functions/printf.texi: Likewise.
42061         * doc/posix-functions/snprintf.texi: Likewise.
42062         * doc/posix-functions/sprintf.texi: Likewise.
42063         * doc/posix-functions/vfprintf.texi: Likewise.
42064         * doc/posix-functions/vprintf.texi: Likewise.
42065         * doc/posix-functions/vsnprintf.texi: Likewise.
42066         * doc/posix-functions/vsprintf.texi: Likewise.
42067         * doc/glibc-functions/obstack_printf.texi: Likewise.
42068         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42069
42070 2009-02-28  Bruno Haible  <bruno@clisp.org>
42071
42072         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42073         Reported by LoĂ¯c Minier <lool@dooz.org>.
42074
42075 2009-02-27  Bruno Haible  <bruno@clisp.org>
42076
42077         * gnulib-tool (func_import): Make the sed expression used to create the
42078         sed script for updating the .gitignore file POSIX compliant.
42079         Reported by Eric Blake.
42080
42081 2009-02-27  Bruno Haible  <bruno@clisp.org>
42082
42083         * gnulib-tool (sed): Don't alias as "sed --posix".
42084         Reported by Eric Blake.
42085
42086 2009-02-27  Bruno Haible  <bruno@clisp.org>
42087
42088         Avoid test link errors.
42089         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42090         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42091         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42092         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42094
42095 2009-02-27  Bruno Haible  <bruno@clisp.org>
42096
42097         Avoid spurious "(cached)" in configure output.
42098         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42099         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42100         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42101         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42102         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42103         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42104         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42105         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42106         Reported by Eric Blake.
42107
42108 2009-02-27  Eric Blake  <ebb9@byu.net>
42109
42110         printf: fix regression in previous patch
42111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42112
42113 2009-02-27  Bruno Haible  <bruno@clisp.org>
42114
42115         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42116         value.
42117         * lib/stdint.in.h: Likewise.
42118         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42119
42120 2009-02-27  Eric Blake  <ebb9@byu.net>
42121
42122         doc: mention more functions added in cygwin 1.7.0
42123         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42124         addition.
42125         * doc/posix-functions/open_wmemstream.texi: Likewise.
42126         * doc/posix-functions/wcsnlen.texi: Likewise.
42127         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42128         * doc/posix-functions/wcstod.texi: Likewise.
42129         * doc/posix-functions/wcstof.texi: Likewise.
42130         * doc/posix-functions/wcstoimax.texi: Likewise.
42131         * doc/posix-functions/wcstok.texi: Likewise.
42132         * doc/posix-functions/wcstoumax.texi: Likewise.
42133
42134         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42136         * doc/posix-functions/fprintf.texi: Update.
42137         * doc/posix-functions/printf.texi: Update.
42138         * doc/posix-functions/snprintf.texi: Update.
42139         * doc/posix-functions/sprintf.texi: Update.
42140         * doc/posix-functions/vfprintf.texi: Update.
42141         * doc/posix-functions/vprintf.texi: Update.
42142         * doc/posix-functions/vsnprintf.texi: Update.
42143         * doc/posix-functions/vsprintf.texi: Update.
42144         * doc/glibc-functions/obstack_printf.texi: Update.
42145         * doc/glibc-functions/obstack_vprintf.texi: Update.
42146
42147 2009-02-26  Eric Blake  <ebb9@byu.net>
42148
42149         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42150         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42151         compilation bug by using runtime conversion.
42152         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42153         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42154         * modules/ceill-tests (Files): Use nan.h.
42155         * modules/floorl-tests (Files): Likewise.
42156         * modules/frexpl-tests (Files): Likewise.
42157         * modules/isnanl-tests (Files): Likewise.
42158         * modules/ldexpl-tests (Files): Likewise.
42159         * modules/roundl-tests (Files): Likewise.
42160         * modules/truncl-tests (Files): Likewise.
42161         * tests/test-ceill.c (main): Use a working NaN.
42162         * tests/test-floorl.c (main): Likewise.
42163         * tests/test-frexpl.c (main): Likewise.
42164         * tests/test-isnan.c (test_long_double): Likewise.
42165         * tests/test-isnanl.h (main): Likewise.
42166         * tests/test-ldexpl.h (main): Likewise.
42167         * tests/test-roundl.h (main): Likewise.
42168         * tests/test-truncl.h (main): Likewise.
42169         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42170
42171 2009-02-26  Eric Blake  <ebb9@byu.net>
42172             Bruno Haible  <bruno@clisp.org>
42173
42174         Work around a *printf bug with %ls on Solaris.
42175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42176         precision is specified, sprintf stops converting the wide string
42177         argument when the number of bytes that have been produced by this
42178         conversion equals or exceeds the precision.
42179         * doc/posix-functions/fprintf.texi: Update.
42180         * doc/posix-functions/printf.texi: Update.
42181         * doc/posix-functions/snprintf.texi: Update.
42182         * doc/posix-functions/sprintf.texi: Update.
42183         * doc/posix-functions/vfprintf.texi: Update.
42184         * doc/posix-functions/vprintf.texi: Update.
42185         * doc/posix-functions/vsnprintf.texi: Update.
42186         * doc/posix-functions/vsprintf.texi: Update.
42187         * doc/glibc-functions/obstack_printf.texi: Update.
42188         * doc/glibc-functions/obstack_vprintf.texi: Update.
42189
42190 2009-02-26  Eric Blake  <ebb9@byu.net>
42191
42192         stdlib: favor compiler check of random.h
42193         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42194         to avoid an ObjC random.h installed by Swarm.
42195
42196 2009-02-26  Bruno Haible  <bruno@clisp.org>
42197
42198         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42199         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42200         Reported by Gary V. Vaughan <gary@gnu.org>.
42201
42202 2009-02-26  Bruno Haible  <bruno@clisp.org>
42203
42204         Fix *printf behaviour regarding the %ls directive.
42205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42206         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42207         NEED_PRINTF_DIRECTIVE_LS.
42208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42209         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42211         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42212         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42213         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42214         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42219         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42220         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42222         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42223         * doc/posix-functions/fprintf.texi: Update.
42224         * doc/posix-functions/printf.texi: Update.
42225         * doc/posix-functions/snprintf.texi: Update.
42226         * doc/posix-functions/sprintf.texi: Update.
42227         * doc/posix-functions/vfprintf.texi: Update.
42228         * doc/posix-functions/vprintf.texi: Update.
42229         * doc/posix-functions/vsnprintf.texi: Update.
42230         * doc/posix-functions/vsprintf.texi: Update.
42231         * doc/glibc-functions/obstack_printf.texi: Update.
42232         * doc/glibc-functions/obstack_vprintf.texi: Update.
42233         Reported by Eric Blake.
42234
42235 2009-02-25  Bruno Haible  <bruno@clisp.org>
42236
42237         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42238         with known value.
42239         Reported by Gary V. Vaughan <gary@gnu.org>.
42240
42241 2009-02-25  Bruno Haible  <bruno@clisp.org>
42242
42243         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42244         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42245         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42246         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42247         Reported by Gary V. Vaughan <gary@gnu.org>.
42248
42249 2009-02-25  Bruno Haible  <bruno@clisp.org>
42250
42251         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42252         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42253         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42254         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42255         Reported by Gary V. Vaughan <gary@gnu.org>.
42256
42257 2009-02-25  Eric Blake  <ebb9@byu.net>
42258
42259         tests: skip fseek/ftell tests if ungetc is broken
42260         * m4/ungetc.m4: New file.
42261         * modules/fseek-tests: Split test, so ungetc dependency is
42262         separate from rest of test.
42263         * modules/fseeko-tests: Likewise.
42264         * modules/ftell-tests: Likewise.
42265         * modules/ftello-tests: Likewise.
42266         * tests/test-fseek.c (main): Isolate ungetc dependency.
42267         * tests/test-fseeko.c (main): Likewise.
42268         * tests/test-ftell.c (main): Likewise.
42269         * tests/test-ftello.c (main): Likewise.
42270         * tests/test-fseek2.sh: New file.
42271         * tests/test-fseeko2.sh: Likewise.
42272         * tests/test-ftell2.sh: Likewise.
42273         * tests/test-ftello2.sh: Likewise.
42274
42275 2009-02-25  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
42276
42277         test-getaddrinfo: fix usage of skip return code 77
42278         * tests/test-gettaddrinfo.c: Return skip code 77 only
42279         for first occurance of skip (4x77 is not 77)
42280
42281 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42282
42283         strtod: avoid C99 decl-after-statement
42284         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42285
42286 2009-02-24  Eric Blake  <ebb9@byu.net>
42287
42288         strtod: detect HP-UX 11.31 bug
42289         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42290         Reported by Gary V. Vaughan.
42291
42292 2009-02-23  Bruno Haible  <bruno@clisp.org>
42293
42294         Fix invalid read past end of memory block.
42295         * lib/vasnprintf.c (DCHAR_SET): Define.
42296         (local_wcslen): Define only when needed.
42297         (local_strnlen, local_wcsnlen): New functions.
42298         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42299         directives that involve a conversion ourselves.
42300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42301         wcsnlen, mbrtowc, wcrtomb.
42302         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42303         * tests/test-vasprintf-posix.c (test_function): Likewise.
42304         * tests/test-snprintf-posix.h (test_function): Likewise.
42305         * tests/test-sprintf-posix.h (test_function): Likewise.
42306         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42307
42308 2009-02-22  Bruno Haible  <bruno@clisp.org>
42309
42310         Implement new clarified decomposition of Hangul syllables.
42311         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42312         of type LTV, return only a pairwise decomposition.
42313         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42314         Likewise.
42315         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42316         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42317         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42318
42319 2009-02-22  Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42322         zero-length results and shrink excess allocated memory.
42323         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42324         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42325         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42326         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42327         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42328         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42329         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42330         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42331         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42332         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42333         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42334         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42335
42336 2009-02-21  Bruno Haible  <bruno@clisp.org>
42337
42338         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42339         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42340         spaces after a period. Put a space between a macro name and its
42341         argument list. Trivial rewordings.
42342         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42343         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42344         (main): Return 0 explicitly.
42345
42346 2009-02-21  Bruno Haible  <bruno@clisp.org>
42347
42348         Tests for module 'uninorm/filter'.
42349         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42350         * modules/uninorm/filter-tests: New file.
42351
42352         New module 'uninorm/filter'.
42353         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42354         uninorm_filter_flush, uninorm_filter_free): New declarations.
42355         * lib/uninorm/uninorm-filter.c: New file.
42356         * modules/uninorm/filter: New file.
42357
42358 2009-02-21  Bruno Haible  <bruno@clisp.org>
42359
42360         Tests for module 'uninorm/nfkc'.
42361         * tests/uninorm/test-nfkc.c: New file.
42362         * tests/uninorm/test-u8-nfkc.c: New file.
42363         * tests/uninorm/test-u16-nfkc.c: New file.
42364         * tests/uninorm/test-u32-nfkc.c: New file.
42365         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42366         * tests/uninorm/test-u32-nfkc-big.c: New file.
42367         * modules/uninorm/nfkc-tests: New file.
42368
42369         New module 'uninorm/nfkc'.
42370         * lib/uninorm/nfkc.c: New file.
42371         * modules/uninorm/nfkc: New file.
42372
42373         Tests for module 'uninorm/nfkd'.
42374         * tests/uninorm/test-nfkd.c: New file.
42375         * tests/uninorm/test-u8-nfkd.c: New file.
42376         * tests/uninorm/test-u16-nfkd.c: New file.
42377         * tests/uninorm/test-u32-nfkd.c: New file.
42378         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42379         * tests/uninorm/test-u32-nfkd-big.c: New file.
42380         * modules/uninorm/nfkd-tests: New file.
42381
42382         New module 'uninorm/nfkd'.
42383         * lib/uninorm/nfkd.c: New file.
42384         * modules/uninorm/nfkd: New file.
42385
42386         Tests for module 'uninorm/nfc'.
42387         * tests/uninorm/test-nfc.c: New file.
42388         * tests/uninorm/test-u8-nfc.c: New file.
42389         * tests/uninorm/test-u16-nfc.c: New file.
42390         * tests/uninorm/test-u32-nfc.c: New file.
42391         * tests/uninorm/test-u32-nfc-big.sh: New file.
42392         * tests/uninorm/test-u32-nfc-big.c: New file.
42393         * modules/uninorm/nfc-tests: New file.
42394
42395         New module 'uninorm/nfc'.
42396         * lib/uninorm/nfc.c: New file.
42397         * modules/uninorm/nfc: New file.
42398
42399         Tests for module 'uninorm/nfd'.
42400         * tests/uninorm/test-nfd.c: New file.
42401         * tests/uninorm/test-u8-nfd.c: New file.
42402         * tests/uninorm/test-u16-nfd.c: New file.
42403         * tests/uninorm/test-u32-nfd.c: New file.
42404         * tests/uninorm/test-u32-nfd-big.sh: New file.
42405         * tests/uninorm/test-u32-nfd-big.c: New file.
42406         * tests/uninorm/test-u32-normalize-big.h: New file.
42407         * tests/uninorm/test-u32-normalize-big.c: New file.
42408         * tests/uninorm/NormalizationTest.txt: New file, created from
42409         Unicode 5.1.0 NormalizationTest.txt.
42410         * modules/uninorm/nfd-tests: New file.
42411
42412         New module 'uninorm/nfd'.
42413         * lib/uninorm/nfd.c: New file.
42414         * modules/uninorm/nfd: New file.
42415
42416         New module 'uninorm/u32-normalize'.
42417         * lib/uninorm/u32-normalize.c: New file.
42418         * modules/uninorm/u32-normalize: New file.
42419
42420         New module 'uninorm/u16-normalize'.
42421         * lib/uninorm/u16-normalize.c: New file.
42422         * modules/uninorm/u16-normalize: New file.
42423
42424         New module 'uninorm/u8-normalize'.
42425         * lib/uninorm/u8-normalize.c: New file.
42426         * lib/uninorm/normalize-internal.h: New file.
42427         * lib/uninorm/u-normalize-internal.h: New file.
42428         * modules/uninorm/u8-normalize: New file.
42429
42430         New module 'uninorm/decompose-internal'.
42431         * lib/uninorm/decompose-internal.c: New file.
42432         * modules/uninorm/decompose-internal: New file.
42433
42434         Tests for module 'uninorm/composition'.
42435         * tests/uninorm/test-composition.c: New file.
42436         * modules/uninorm/composition-tests: New file.
42437
42438         New module 'uninorm/composition'.
42439         * lib/uninorm/composition.c: New file.
42440         * lib/uninorm/composition-table.gperf: New file, generated by
42441         gen-uni-tables.
42442         * modules/uninorm/composition: New file.
42443
42444         Tests for module 'uninorm/compat-decomposition'.
42445         * tests/uninorm/test-compat-decomposition.c: New file.
42446         * modules/uninorm/compat-decomposition-tests: New file.
42447
42448         New module 'uninorm/compat-decomposition'.
42449         * lib/uninorm/decompose-internal.h: New file.
42450         * lib/uninorm/compat-decomposition.c: New file.
42451         * modules/uninorm/compat-decomposition: New file.
42452
42453         Tests for module 'uninorm/canonical-decomposition'.
42454         * tests/uninorm/test-canonical-decomposition.c: New file.
42455         * modules/uninorm/canonical-decomposition-tests: New file.
42456
42457         New module 'uninorm/canonical-decomposition'.
42458         * lib/uninorm/canonical-decomposition.c: New file.
42459         * modules/uninorm/canonical-decomposition: New file.
42460
42461         Tests for module 'uninorm/decomposition'.
42462         * tests/uninorm/test-decomposition.c: New file.
42463         * modules/uninorm/decomposition-tests: New file.
42464
42465         New module 'uninorm/decomposition'.
42466         * lib/uninorm/decomposition.c: New file.
42467         * modules/uninorm/decomposition: New file.
42468
42469         New module 'uninorm/decomposition-table'.
42470         * lib/uninorm/decomposition-table.h: New file.
42471         * lib/uninorm/decomposition-table.c: New file.
42472         * lib/uninorm/decomposition-table1.h: New file, generated by
42473         gen-uni-tables.
42474         * lib/uninorm/decomposition-table2.h: New file, generated by
42475         gen-uni-tables.
42476         * modules/uninorm/decomposition-table: New file.
42477
42478         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42479         (UC_DECOMP_*): New enumeration items.
42480         (get_decomposition): New function.
42481         (struct decomp_table): New type.
42482         (output_decomposition, output_decomposition_tables): New functions.
42483         (unicode_composition_exclusions): New variable.
42484         (fill_composition_exclusions, debug_output_composition_tables): New
42485         functions.
42486         (main): Accept one more argument. Invoke fill_composition_exclusions.
42487         Output decomposition and composition tables.
42488
42489         New module 'uninorm/base'.
42490         * lib/uninorm.h: New file.
42491         * lib/unictype.h: Update comment.
42492         * modules/uninorm/base: New file.
42493
42494 2009-02-21  David Lutterkort  <lutter@redhat.com>
42495
42496         Tests for module 'safe-alloc'.
42497         * tests/test-safe-alloc.c: New file.
42498         * modules/safe-alloc-tests: New file.
42499
42500         New module 'safe-alloc'.
42501         * lib/safe-alloc.h: New file.
42502         * lib/safe-alloc.c: New file.
42503         * m4/safe-alloc.m4: New file.
42504         * modules/safe-alloc: New file.
42505         * doc/safe-alloc.texi: New file.
42506         * doc/gnulib.texi: Include it.
42507         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42508         safe-alloc.
42509
42510 2009-02-18  Bruno Haible  <bruno@clisp.org>
42511
42512         Fix link error on non-glibc systems.
42513         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42514         variable.
42515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42516
42517 2009-02-18  Jim Meyering  <meyering@redhat.com>
42518
42519         fts: avoid used-uninitialized error due to recent change
42520         * lib/fts.c (fts_read): Guard uses of the new member,
42521         parent->fts_n_dirs_remaining, since it's not relevant for
42522         the parent of a directory specified on the command-line.
42523
42524 2009-02-17  James Youngman  <jay@gnu.org>
42525             Bruno Haible  <bruno@clisp.org>
42526
42527         * m4/include_next.m4: Reformulate comment.
42528
42529 2009-02-16  Jim Meyering  <meyering@redhat.com>
42530
42531         fts: add #if guards so that the fts_lgpl module still builds
42532         * lib/fts.c: Guard just-added hash-table-using parts with
42533         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42534         Reported by Simon Josefsson.
42535
42536 2009-02-15  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/array-mergesort-tests: New file.
42539         * tests/test-array-mergesort.c: New file.
42540
42541         New module 'array-mergesort'.
42542         * modules/array-mergesort: New file.
42543         * lib/array-mergesort.h: New file.
42544
42545 2009-02-15  Bruno Haible  <bruno@clisp.org>
42546
42547         Fix 2009-02-07 commit.
42548         * lib/gen-uni-tables.c (output_predicate, output_category,
42549         output_combclass, output_bidi_category, output_decimal_digit,
42550         output_digit, output_numeric, output_mirror, output_scripts,
42551         output_ident_category, output_simple_mapping): Fix format directives.
42552         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42553
42554 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42555
42556         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42557         fixes are available from IBM.
42558
42559 2009-02-13  Jim Meyering  <meyering@redhat.com>
42560
42561         fts: arrange not to stat non-directories in more cases
42562         This makes GNU find (when it doesn't need to stat each file)
42563         *much* more efficient at traversing reiserfs file systems.
42564         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42565         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42566         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42567         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42568         (leaf_optimization_applies): New function.
42569         (LCO_hash, LCO_compare): New helper functions.
42570         (link_count_optimize_ok): New function.
42571         (fts_stat): Initialize new member (if dir).
42572         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42573         we've just stat'ed a directory.  Skip the stat call when possible.
42574         ---
42575         Note this AFS-related exchange:
42576         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42577         and note find's pioctl call in find/fstype.c.
42578         But that is necessary only if you want to enable the
42579         optimization for AFS, and for now, I don't.
42580
42581         fts: move a function definition "up" (no semantic change)
42582         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42583         "up" to precede upcoming use of a related function.
42584
42585 2009-02-11  Jim Meyering  <meyering@redhat.com>
42586
42587         fts: correct internal computation of nlinks (optimization-related)
42588         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42589         whether the current entry is a directory, so don't test it.
42590
42591 2009-02-10  Bruno Haible  <bruno@clisp.org>
42592
42593         Tests for module 'uniwbrk/ulc-wordbreaks'.
42594         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42595         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42596         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42597
42598         Tests for module 'uniwbrk/u32-wordbreaks'.
42599         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42600         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42601
42602         Tests for module 'uniwbrk/u16-wordbreaks'.
42603         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42604         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42605
42606         Tests for module 'uniwbrk/u8-wordbreaks'.
42607         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42608         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42609
42610 2009-02-10  Bruno Haible  <bruno@clisp.org>
42611
42612         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42613         property.
42614         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42615         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42616         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42617
42618 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42619
42620         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42621         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42622
42623 2009-02-10  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42626         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42627         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42628         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42629         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42630         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42631
42632 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42633
42634         * lib/sockets.h (gl_fd_to_handle): New function.
42635
42636         * tests/test-sockets.c: Call gl_fd_to_handle.
42637
42638 2009-02-09  Bruno Haible  <bruno@clisp.org>
42639
42640         * doc/havelib.texi: Document the conventions on bi-arch systems.
42641
42642 2009-02-08  Bruno Haible  <bruno@clisp.org>
42643
42644         Document the AC_LIB_LINKFLAGS macro.
42645         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42646         * doc/gnulib.texi: Include it.
42647
42648 2009-02-08  Bruno Haible  <bruno@clisp.org>
42649
42650         Fix wrong order of sections, compared to TOC.
42651         * doc/gnulib.texi: Include relocatable-maint.texi after the
42652         "Regular expressions" node, not before.
42653
42654 2009-02-08  Bruno Haible  <bruno@clisp.org>
42655
42656         Tests for module 'unicase/totitle'.
42657         * modules/unicase/totitle-tests: New file.
42658
42659         Tests for module 'unicase/tolower'.
42660         * modules/unicase/tolower-tests: New file.
42661
42662         Tests for module 'unicase/toupper'.
42663         * modules/unicase/toupper-tests: New file.
42664         * tests/unicase/test-mapping-part1.h: New file.
42665         * tests/unicase/test-mapping-part2.h: New file.
42666
42667         New module 'unicase/totitle'.
42668         * modules/unicase/totitle: New file.
42669         * lib/unicase/totitle.c: New file.
42670
42671         New module 'unicase/tolower'.
42672         * modules/unicase/tolower: New file.
42673         * lib/unicase/tolower.c: New file.
42674
42675         New module 'unicase/toupper'.
42676         * modules/unicase/toupper: New file.
42677         * lib/unicase/toupper.c: New file.
42678         * lib/unicase/simple-mapping.h: New file.
42679
42680         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42681         (mapping_table): New structure.
42682         (output_simple_mapping): New function.
42683         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42684         * modules/gen-uni-tables (Description): Update.
42685         * lib/unicase/toupper.h: New file, automatically generated by
42686         gen-uni-tables.
42687         * lib/unicase/tolower.h: New file, automatically generated by
42688         gen-uni-tables.
42689         * lib/unicase/totitle.h: New file, automatically generated by
42690         gen-uni-tables.
42691         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42692         gen-uni-tables.
42693         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42694         gen-uni-tables.
42695         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42696         gen-uni-tables.
42697
42698         New module 'unicase/base'.
42699         * modules/unicase/base: New file.
42700         * lib/unicase.h: New file.
42701
42702 2009-02-08  Bruno Haible  <bruno@clisp.org>
42703
42704         New module 'uniwbrk/ulc-wordbreaks'.
42705         * modules/uniwbrk/ulc-wordbreaks: New file.
42706         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42707
42708         New module 'uniwbrk/u32-wordbreaks'.
42709         * modules/uniwbrk/u32-wordbreaks: New file.
42710         * lib/uniwbrk/u32-wordbreaks.c: New file.
42711
42712         New module 'uniwbrk/u16-wordbreaks'.
42713         * modules/uniwbrk/u16-wordbreaks: New file.
42714         * lib/uniwbrk/u16-wordbreaks.c: New file.
42715
42716         New module 'uniwbrk/u8-wordbreaks'.
42717         * modules/uniwbrk/u8-wordbreaks: New file.
42718         * lib/uniwbrk/u8-wordbreaks.c: New file.
42719         * lib/uniwbrk/u-wordbreaks.h: New file.
42720
42721         New module 'uniwbrk/table'.
42722         * modules/uniwbrk/table: New file.
42723         * lib/uniwbrk/wbrktable.h: New file.
42724         * lib/uniwbrk/wbrktable.c: New file.
42725
42726         New module 'uniwbrk/wordbreak-property'.
42727         * modules/uniwbrk/wordbreak-property: New file.
42728         * lib/uniwbrk/wordbreak-property.c: New file.
42729
42730         * lib/gen-uni-tables.c (WBP_*): New enum items.
42731         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42732         (unicode_org_wbp): New variable.
42733         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42734         New functions.
42735         (wbp_table): New structure.
42736         (output_wbp, output_wbrk_tables): New functions.
42737         (main): Accept additional argument. Invoke fill_org_wbp,
42738         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42739         output_wbrk_tables.
42740         * modules/gen-uni-tables (Description): Update.
42741         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42742         gen-uni-tables.
42743
42744         New module 'uniwbrk/base'.
42745         * modules/uniwbrk/base: New file.
42746         * lib/uniwbrk.h: New file.
42747
42748 2009-02-08  Bruno Haible  <bruno@clisp.org>
42749
42750         Update to Unicode 5.1.0.
42751         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42752         U+2185..U+2188.
42753         (is_property_default_ignorable_code_point): Don't include characters
42754         of category Cc or Cs and not-a-characters.
42755         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42756         U+0D79, U+109E, U+109F, U+A60C.
42757         * lib/unictype/bidi_of.h: Regenerated.
42758         * lib/unictype/blocks.h: Regenerated.
42759         * lib/unictype/categ_C.h: Regenerated.
42760         * lib/unictype/categ_Cf.h: Regenerated.
42761         * lib/unictype/categ_Cn.h: Regenerated.
42762         * lib/unictype/categ_L.h: Regenerated.
42763         * lib/unictype/categ_Ll.h: Regenerated.
42764         * lib/unictype/categ_Lm.h: Regenerated.
42765         * lib/unictype/categ_Lo.h: Regenerated.
42766         * lib/unictype/categ_Lu.h: Regenerated.
42767         * lib/unictype/categ_M.h: Regenerated.
42768         * lib/unictype/categ_Mc.h: Regenerated.
42769         * lib/unictype/categ_Me.h: Regenerated.
42770         * lib/unictype/categ_Mn.h: Regenerated.
42771         * lib/unictype/categ_N.h: Regenerated.
42772         * lib/unictype/categ_Nd.h: Regenerated.
42773         * lib/unictype/categ_Nl.h: Regenerated.
42774         * lib/unictype/categ_No.h: Regenerated.
42775         * lib/unictype/categ_P.h: Regenerated.
42776         * lib/unictype/categ_Pd.h: Regenerated.
42777         * lib/unictype/categ_Pe.h: Regenerated.
42778         * lib/unictype/categ_Pf.h: Regenerated.
42779         * lib/unictype/categ_Pi.h: Regenerated.
42780         * lib/unictype/categ_Po.h: Regenerated.
42781         * lib/unictype/categ_Ps.h: Regenerated.
42782         * lib/unictype/categ_S.h: Regenerated.
42783         * lib/unictype/categ_Sk.h: Regenerated.
42784         * lib/unictype/categ_Sm.h: Regenerated.
42785         * lib/unictype/categ_So.h: Regenerated.
42786         * lib/unictype/categ_of.h: Regenerated.
42787         * lib/unictype/combining.h: Regenerated.
42788         * lib/unictype/ctype_alnum.h: Regenerated.
42789         * lib/unictype/ctype_alpha.h: Regenerated.
42790         * lib/unictype/ctype_graph.h: Regenerated.
42791         * lib/unictype/ctype_lower.h: Regenerated.
42792         * lib/unictype/ctype_print.h: Regenerated.
42793         * lib/unictype/ctype_punct.h: Regenerated.
42794         * lib/unictype/ctype_upper.h: Regenerated.
42795         * lib/unictype/decdigit.h: Regenerated.
42796         * lib/unictype/digit.h: Regenerated.
42797         * lib/unictype/mirror.h: Regenerated.
42798         * lib/unictype/numeric.h: Regenerated.
42799         * lib/unictype/pr_alphabetic.h: Regenerated.
42800         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42801         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42802         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42803         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42804         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42805         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42806         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42807         * lib/unictype/pr_combining.h: Regenerated.
42808         * lib/unictype/pr_dash.h: Regenerated.
42809         * lib/unictype/pr_decimal_digit.h: Regenerated.
42810         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42811         * lib/unictype/pr_deprecated.h: Regenerated.
42812         * lib/unictype/pr_diacritic.h: Regenerated.
42813         * lib/unictype/pr_extender.h: Regenerated.
42814         * lib/unictype/pr_format_control.h: Regenerated.
42815         * lib/unictype/pr_grapheme_base.h: Regenerated.
42816         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42817         * lib/unictype/pr_grapheme_link.h: Regenerated.
42818         * lib/unictype/pr_id_continue.h: Regenerated.
42819         * lib/unictype/pr_id_start.h: Regenerated.
42820         * lib/unictype/pr_ideographic.h: Regenerated.
42821         * lib/unictype/pr_ignorable_control.h: Regenerated.
42822         * lib/unictype/pr_lowercase.h: Regenerated.
42823         * lib/unictype/pr_math.h: Regenerated.
42824         * lib/unictype/pr_numeric.h: Regenerated.
42825         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42826         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42827         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42828         * lib/unictype/pr_other_id_continue.h: Regenerated.
42829         * lib/unictype/pr_other_lowercase.h: Regenerated.
42830         * lib/unictype/pr_other_math.h: Regenerated.
42831         * lib/unictype/pr_punctuation.h: Regenerated.
42832         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42833         * lib/unictype/pr_soft_dotted.h: Regenerated.
42834         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42835         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42836         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42837         * lib/unictype/pr_uppercase.h: Regenerated.
42838         * lib/unictype/pr_xid_continue.h: Regenerated.
42839         * lib/unictype/pr_xid_start.h: Regenerated.
42840         * lib/unictype/pr_zero_width.h: Regenerated.
42841         * lib/unictype/scripts.h: Regenerated.
42842         * lib/unictype/scripts_byname.gperf: Regenerated.
42843         * lib/unictype/sy_java_ident.h: Regenerated.
42844         * lib/unilbrk/lbrkprop1.h: Regenerated.
42845         * lib/unilbrk/lbrkprop2.h: Regenerated.
42846         * tests/unictype/test-categ_C.c: Regenerated.
42847         * tests/unictype/test-categ_Cf.c: Regenerated.
42848         * tests/unictype/test-categ_Cn.c: Regenerated.
42849         * tests/unictype/test-categ_L.c: Regenerated.
42850         * tests/unictype/test-categ_Ll.c: Regenerated.
42851         * tests/unictype/test-categ_Lm.c: Regenerated.
42852         * tests/unictype/test-categ_Lo.c: Regenerated.
42853         * tests/unictype/test-categ_Lu.c: Regenerated.
42854         * tests/unictype/test-categ_M.c: Regenerated.
42855         * tests/unictype/test-categ_Mc.c: Regenerated.
42856         * tests/unictype/test-categ_Me.c: Regenerated.
42857         * tests/unictype/test-categ_Mn.c: Regenerated.
42858         * tests/unictype/test-categ_N.c: Regenerated.
42859         * tests/unictype/test-categ_Nd.c: Regenerated.
42860         * tests/unictype/test-categ_Nl.c: Regenerated.
42861         * tests/unictype/test-categ_No.c: Regenerated.
42862         * tests/unictype/test-categ_P.c: Regenerated.
42863         * tests/unictype/test-categ_Pd.c: Regenerated.
42864         * tests/unictype/test-categ_Pe.c: Regenerated.
42865         * tests/unictype/test-categ_Pf.c: Regenerated.
42866         * tests/unictype/test-categ_Pi.c: Regenerated.
42867         * tests/unictype/test-categ_Po.c: Regenerated.
42868         * tests/unictype/test-categ_Ps.c: Regenerated.
42869         * tests/unictype/test-categ_S.c: Regenerated.
42870         * tests/unictype/test-categ_Sk.c: Regenerated.
42871         * tests/unictype/test-categ_Sm.c: Regenerated.
42872         * tests/unictype/test-categ_So.c: Regenerated.
42873         * tests/unictype/test-ctype_alnum.c: Regenerated.
42874         * tests/unictype/test-ctype_alpha.c: Regenerated.
42875         * tests/unictype/test-ctype_graph.c: Regenerated.
42876         * tests/unictype/test-ctype_lower.c: Regenerated.
42877         * tests/unictype/test-ctype_print.c: Regenerated.
42878         * tests/unictype/test-ctype_punct.c: Regenerated.
42879         * tests/unictype/test-ctype_upper.c: Regenerated.
42880         * tests/unictype/test-decdigit.h: Regenerated.
42881         * tests/unictype/test-digit.h: Regenerated.
42882         * tests/unictype/test-numeric.h: Regenerated.
42883         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42884         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42885         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42886         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42887         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42888         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42889         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42890         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42891         * tests/unictype/test-pr_combining.c: Regenerated.
42892         * tests/unictype/test-pr_dash.c: Regenerated.
42893         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42894         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42895         * tests/unictype/test-pr_deprecated.c: Regenerated.
42896         * tests/unictype/test-pr_diacritic.c: Regenerated.
42897         * tests/unictype/test-pr_extender.c: Regenerated.
42898         * tests/unictype/test-pr_format_control.c: Regenerated.
42899         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42900         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42901         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42902         * tests/unictype/test-pr_id_continue.c: Regenerated.
42903         * tests/unictype/test-pr_id_start.c: Regenerated.
42904         * tests/unictype/test-pr_ideographic.c: Regenerated.
42905         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42906         * tests/unictype/test-pr_lowercase.c: Regenerated.
42907         * tests/unictype/test-pr_math.c: Regenerated.
42908         * tests/unictype/test-pr_numeric.c: Regenerated.
42909         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42910         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42911         Regenerated.
42912         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42913         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42914         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42915         * tests/unictype/test-pr_other_math.c: Regenerated.
42916         * tests/unictype/test-pr_punctuation.c: Regenerated.
42917         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42918         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42919         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42920         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42921         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42922         * tests/unictype/test-pr_uppercase.c: Regenerated.
42923         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42924         * tests/unictype/test-pr_xid_start.c: Regenerated.
42925         * tests/unictype/test-pr_zero_width.c: Regenerated.
42926
42927         Update to Unicode 5.1.0.
42928         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42929         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42930         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42931         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42932         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42933         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42934         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42935         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42936         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42937         (nonspacing_table_ind): Update.
42938         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42939
42940         Update to Unicode 5.1.0.
42941         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42942         code transform.
42943         * lib/uniname/uniname.c (unicode_character_name,
42944         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42945         * lib/uniname/uninames.h: Regenerated.
42946         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42947
42948 2009-02-07  Bruno Haible  <bruno@clisp.org>
42949
42950         Merge gen-ctype and gen-lbrk into a single program.
42951         * lib/gen-uni-tables.c: New file, incorporating
42952         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42953         Add directory prefixes to the names of the generated files.
42954         * lib/unictype/gen-ctype.c: Remove file.
42955         * lib/unilbrk/gen-lbrk.c: Remove file.
42956         * modules/gen-uni-tables: New file.
42957         * modules/unictype/gen-ctype: Remove file.
42958         * modules/unilbrk/gen-lbrk: Remove file.
42959
42960 2009-02-07  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42963
42964         New module 'unistr/u32-strcoll'.
42965         * modules/unistr/u32-strcoll: New file.
42966         * lib/unistr/u32-strcoll.c: New file.
42967
42968         New module 'unistr/u16-strcoll'.
42969         * modules/unistr/u16-strcoll: New file.
42970         * lib/unistr/u16-strcoll.c: New file.
42971
42972         New module 'unistr/u8-strcoll'.
42973         * modules/unistr/u8-strcoll: New file.
42974         * lib/unistr/u8-strcoll.c: New file.
42975         * lib/unistr/u-strcoll.h: New file.
42976
42977 2009-02-07  Bruno Haible  <bruno@clisp.org>
42978
42979         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42980         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42981         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42982         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42983         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42984         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42985
42986 2009-02-07  Bruno Haible  <bruno@clisp.org>
42987
42988         Make 64-bit clean.
42989         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42990         output_combclass, output_bidi_category, output_decimal_digit,
42991         output_digit, output_numeric, output_mirror, output_scripts,
42992         output_ident_category): Use proper width specifier in format strings.
42993
42994 2009-02-07  Bruno Haible  <bruno@clisp.org>
42995
42996         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42997         failure behaviour.
42998
42999 2009-02-07  Jim Meyering  <meyering@redhat.com>
43000
43001         regex: avoid compilation failure with upcoming gcc-4.4
43002         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43003         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43004         "... error: integer overflow in preprocessor expression".
43005
43006 2009-02-05  Ben Pfaff  <blp@gnu.org>
43007
43008         Fix link errors on Windows when close module is used.
43009         * modules/close: Add $(LIB_CLOSE) to Link section.
43010         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43011         $(LIB_CLOSE) on Windows.
43012
43013 2009-02-05  Jim Meyering  <meyering@redhat.com>
43014
43015         still avoid unused-parameter warnings, but do it cleanly
43016         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43017         (get_fs_usage): Cast to void instead.
43018         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43019         (dev_from_mount_options, read_file_system_list): Cast to void.
43020         Prompted by Bruno Haible.
43021
43022 2009-02-04  Jim Meyering  <meyering@redhat.com>
43023
43024         fsusage.c: correct copyright year
43025         * lib/fsusage.c: Reflect year in which the change is pushed into
43026
43027         avoid misc. warnings
43028         * lib/fsusage.c (UNUSED_PARAM): Define.
43029         (get_fs_usage): Mark parameter "disk" as unused.
43030         * lib/getugroups.c (getgrent): Use "void" in prototype.
43031         * lib/mountlist.c: Mark unused parameters.
43032         (read_file_system_list): Declare a local with "const".
43033         * lib/nanosleep.c (getnow): Declare static.
43034         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43035
43036         dirfd: set errno upon failure
43037         * lib/dirfd.c: Include <errno.h>.
43038         Set errno to ENOTSUP when returning -1.
43039         * modules/dirfd (Depends-on): Add errno.
43040         Suggested by John Kodis <kodis@comcast.net>.
43041
43042 2009-02-01  Bruno Haible  <bruno@clisp.org>
43043
43044         Don't assume sizeof (long) >= sizeof (void *).
43045         * lib/memcmp.c: Include stdint.h.
43046         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43047         srcp2 to 'const byte *'.
43048         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43049         types to uintptr_t.
43050         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43051         * modules/memcmp (Depends-on): Add stdint.
43052         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43053
43054 2009-01-30  Eric Blake  <ebb9@byu.net>
43055
43056         fix more require-before-expand issues
43057         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43058         expand, AC_PROG_AWK.
43059         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43060
43061 2009-01-28  Eric Blake  <ebb9@byu.net>
43062
43063         version-etc: use consistent URL formatting
43064         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43065         Improve formatting.  Use fputs for string without %.
43066
43067 2009-01-28  Jim Meyering  <meyering@redhat.com>
43068
43069         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43070         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43071         "underquoted definition of NAME" from autoconf-2.59.
43072
43073 2009-01-28  Bruno Haible  <bruno@clisp.org>
43074
43075         * doc/gnulib.texi: Add "Obsolete modules" to index.
43076
43077 2009-01-28  Jim Meyering  <meyering@redhat.com>
43078
43079         useless-if-before-free: recognize more variants
43080         * build-aux/useless-if-before-free: Also recognize e.g.,
43081         if (NULL != p) free (p);
43082
43083 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43084
43085         test-getaddrinfo: skip (don't fail) this test when there's no network
43086         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43087         on the presumption that it means you lack network access.
43088
43089 2009-01-26  Jim Meyering  <meyering@redhat.com>
43090
43091         fflush: avoid warnings on modern systems
43092         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43093         pos and result, into scopes where they're used.
43094
43095 2009-01-26  Eric Blake  <ebb9@byu.net>
43096
43097         Silence warning reintroduced by recent extensions patch.
43098         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43099         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43100         autoconf.
43101
43102         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43103         * m4/00gnulib.m4: New file.
43104         * gnulib-tool (func_get_filelist): Always use it.
43105         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43106         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43107
43108 2009-01-25  Bruno Haible  <bruno@clisp.org>
43109
43110         Make test-quotearg work on MacOS X and AIX.
43111         * tests/test-quotearg.sh: New file.
43112         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43113         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43114         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43115         include <libintl.h>.
43116         (fake_locale): Remove variable.
43117         (gettext, dgettext, dcgettext): Remove functions.
43118         (main): Instead of setting a fake locale, set a real locale. Call
43119         textdomain and bindtextdomain.
43120         * modules/quotearg-tests (Files): Add the new files.
43121         (Depends-on): Add gettext, setenv, unsetenv.
43122         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43123         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43124         Augment TESTS_ENVIRONMENT.
43125
43126 2009-01-25  Bruno Haible  <bruno@clisp.org>
43127
43128         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43129         fr_FR.ISO8859-1 locale on MacOS X.
43130         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43131         ja_JP.eucJP locale on MacOS X.
43132         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43133         zh_CN.GB18030 locale on MacOS X.
43134
43135 2009-01-25  Bruno Haible  <bruno@clisp.org>
43136
43137         Avoid link errors on MacOS X 10.3.
43138         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43139         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43140
43141 2009-01-25  Bruno Haible  <bruno@clisp.org>
43142
43143         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43144         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43145         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43146         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43147         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43148         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43149         posix_spawnattr_init, posix_spawnattr_setsigmask,
43150         posix_spawnattr_setflags, posix_spawnattr_destroy.
43151
43152         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43153         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43154         * modules/execute (Files): Remove m4/posix_spawn.m4.
43155         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43156         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43157         posix_spawnattr_init, posix_spawnattr_setsigmask,
43158         posix_spawnattr_setflags, posix_spawnattr_destroy.
43159
43160 2009-01-25  Bruno Haible  <bruno@clisp.org>
43161
43162         * lib/glthread/threadlib.c: Include <stdlib.h>.
43163
43164 2009-01-25  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/glthread/threadlib.c (dummy): New declaration.
43167
43168 2009-01-25  Bruno Haible  <bruno@clisp.org>
43169
43170         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43171         multibyte characters also for the GB18030 encoding. Don't crash when
43172         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43173
43174 2009-01-25  Bruno Haible  <bruno@clisp.org>
43175
43176         Avoid redefining 'struct random_data' on OSF/1 5.1.
43177         * lib/stdlib.in.h: Include <random.h> if it exists.
43178         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43179         HAVE_RANDOM_H. Include <random.h> when testing whether
43180         'struct random_data' exists.
43181         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43182
43183 2009-01-25  Bruno Haible  <bruno@clisp.org>
43184
43185         Don't install charset.alias on MacOS X >= 10.3.
43186         * lib/localcharset.c (DARWIN7): New macro.
43187         (get_charset_aliases): Hardcode the result for Darwin7.
43188         * modules/localcharset (install-exec-local): Don't install
43189         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43190
43191 2009-01-25  Bruno Haible  <bruno@clisp.org>
43192
43193         Don't install charset.alias on mingw and Cygwin.
43194         * modules/localcharset (install-exec-local): Don't install
43195         charset.alias on mingw and Cygwin, if the file does not yet exist.
43196         The result for these platforms is hardcoded in localcharset.c.
43197
43198 2009-01-25  Bruno Haible  <bruno@clisp.org>
43199
43200         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43202         before requiring AC_USE_SYSTEM_EXTENSIONS.
43203
43204 2009-01-25  Jim Meyering  <meyering@redhat.com>
43205
43206         c-strtod: avoid warnings
43207         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43208         "assignment discards qualifiers from pointer target type" warnings.
43209
43210 2009-01-24  Bruno Haible  <bruno@clisp.org>
43211
43212         Add support for non-UTF-8 locales on MacOS X.
43213         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43214         canonical encodings. For Darwin 7 and newer, don't map traditional
43215         encodings to UTF-8.
43216         Reported by Vincent Lefevre <vincent@vinc17.org>
43217         at <http://savannah.gnu.org/bugs/?25235>.
43218
43219 2009-01-24  Bruno Haible  <bruno@clisp.org>
43220
43221         * doc/gnulib.texi (Obsolete modules): New section.
43222         Reported by Mike Frysinger <vapier@gentoo.org>.
43223
43224 2009-01-24  Bruno Haible  <bruno@clisp.org>
43225
43226         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43227         (%.dvi): New rule.
43228
43229 2009-01-24  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43232         Reported by Eric Blake.
43233
43234 2009-01-24  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43237         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43238         Reported by Gary V. Vaughan <gary@gnu.org>.
43239
43240 2009-01-24  Bruno Haible  <bruno@clisp.org>
43241
43242         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43243
43244 2009-01-23  Bruno Haible  <bruno@clisp.org>
43245
43246         Make c-strtod, c-strtold usable in libraries.
43247         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43248         (C_STRTOD): Call strdup instead of xstrdup.
43249         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43250         * modules/c-strtold (Depends-on): Likewise.
43251         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43252         * NEWS: Mention the change.
43253         Reported by Michael Gold <mgold@ncf.ca>.
43254
43255 2009-01-23  Jim Meyering  <meyering@redhat.com>
43256
43257         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43258         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43259         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43260
43261 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43262
43263         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43264         GNU CoreUtils.
43265         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43266         * modules/version-etc (Description): Update.
43267
43268 2009-01-22  Bruno Haible  <bruno@clisp.org>
43269
43270         Cache the C locale object.
43271         * lib/c-strtod.c (c_locale_cache): New variable.
43272         (c_locale): New function.
43273         (C_STRTOD): Use it, and don't call freelocale.
43274         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43275         Suggested by Paolo Bonzini.
43276
43277 2009-01-21  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43280         conditions other than overflow.
43281
43282 2009-01-21  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/c-strtod.c: Include errno.h.
43285         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43286         value from STRTOD_L and STRTOD.
43287
43288 2009-01-21  Bruno Haible  <bruno@clisp.org>
43289         and Jim Meyering  <meyering@redhat.com>
43290
43291         nanosleep: skip configure test (fail it) for apple universal builds
43292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43293         universal builds, assume that nanosleep does not work.
43294         * modules/nanosleep (Depends-on): Add multiarch.
43295
43296         mktime: skip configure test (fail it) for apple universal builds
43297         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43298         universal builds, assume that mktime does not work.
43299         * modules/mktime (Depends-on): Add multiarch.
43300
43301 2009-01-21  Eric Blake  <ebb9@byu.net>
43302
43303         multiarch: avoid expand-before-require warning
43304         * modules/multiarch (configure.ac): Require, rather than expand,
43305         gl_MULTIARCH.
43306         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43307         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43308         enforce that all clients require it.  Partial reversion of
43309         2008-12-29 patch.
43310
43311         error: avoid expand-before-require warning
43312         * modules/errno (configure.ac): Require, rather than expand,
43313         gl_HEADER_ERRNO_H.
43314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43315         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43316         enforce that all clients require it.
43317
43318         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43319         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43320         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43321         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43322
43323 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43324
43325         Revert:
43326         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43327
43328         regex: do not depend on obsolete modules.
43329         * modules/regex: Remove memcmp and memmove.
43330
43331 2009-01-20  Bruno Haible  <bruno@clisp.org>
43332
43333         Make the 'link' module link on Windows NT 4.
43334         * lib/link.c (_WIN32_WINNT): Don't define.
43335         (CreateHardLinkFuncType): New type.
43336         (CreateHardLinkFunc, initialized): New variables.
43337         (initialize): New function.
43338         (link): Invoke CreateHardLink indirectly through the function pointer.
43339
43340 2009-01-20  Bruno Haible  <bruno@clisp.org>
43341
43342         Fix compilation failure on mingw.
43343         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43344
43345 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43346
43347         * doc/c-strtod.texi: Mention a couple of restrictions.
43348
43349 2009-01-20  Jim Meyering  <meyering@redhat.com>
43350
43351         gettimeofday: move more declarations out of functions
43352         * lib/gettimeofday.c: Move extern declarations of tzset and
43353         gmtime out of containing functions.  Prompted by Bruno Haible.
43354
43355 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43356
43357         regex: do not depend on obsolete modules.
43358         * modules/regex: Remove memcmp and memmove.
43359
43360 2009-01-19  Bruno Haible  <bruno@clisp.org>
43361
43362         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43363         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43364         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43365         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43366         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43367
43368 2009-01-19  Bruno Haible  <bruno@clisp.org>
43369
43370         * tests/test-link.c: Include <errno.h>.
43371         (main): Exit with code 77 when a hard link cannot be created due to
43372         the file system.
43373         * tests/test-link.sh: Skip test when a hard link cannot be created due
43374         to the file system.
43375         Suggested by Eric Blake.
43376
43377 2009-01-19  Martin Lambers  <marlam@marlam.de>
43378
43379         * modules/link-tests: New file.
43380         * tests/test-link.sh: New file.
43381         * tests/test-link.c: New file.
43382
43383 2009-01-19  Eric Blake  <ebb9@byu.net>
43384
43385         doc: mention another function added in cygwin 1.7.0
43386         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43387         Another new function in cygwin 1.7.
43388
43389 2009-01-19  Bruno Haible  <bruno@clisp.org>
43390
43391         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43392         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43393         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43394         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43395         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43396         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43397         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43398         * m4/md4.m4 (gl_MD4): Likewise.
43399         * m4/md5.m4 (gl_MD5): Likewise.
43400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43401         * m4/sha1.m4 (gl_SHA1): Likewise.
43402         * m4/sha256.m4 (gl_SHA256): Likewise.
43403         * m4/sha512.m4 (gl_SHA512): Likewise.
43404
43405 2009-01-19  Bruno Haible  <bruno@clisp.org>
43406
43407         * modules/uniname/uniname-tests (Depends-on): Add progname.
43408         * tests/uniname/test-uninames.c: Include progname.h.
43409         (main): Call set_program_name.
43410
43411         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43412         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43413         (main): Call set_program_name.
43414
43415         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43416         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43417         (main): Call set_program_name.
43418
43419         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43420         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43421         (main): Call set_program_name.
43422
43423         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43424         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43425         (main): Call set_program_name.
43426
43427         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43428         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43429         (main): Call set_program_name.
43430
43431         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43432         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43433         (main): Call set_program_name.
43434
43435         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43436         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43437         (main): Call set_program_name.
43438
43439         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43440         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43441         (main): Call set_program_name.
43442
43443 2009-01-19  Eric Blake  <ebb9@byu.net>
43444
43445         test-unistd: test previous patch
43446         * tests/test-unistd.c: Test *_FILENO macros.
43447
43448         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43449         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43450         Guarantee a definition.
43451         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43452         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43453         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43454         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43455         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43456         Likewise.
43457         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43458         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43459         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43460         Likewise.
43461         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43462         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43463         (STDERR_FILENO): Likewise.
43464         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43465         (STDERR_FILENO): Likewise.
43466         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43467         (STDERR_FILENO): Likewise.
43468         Reported by Elbert Pol.
43469
43470 2009-01-19  Eric Blake  <ebb9@byu.net>
43471
43472         doc: mention more functions added in cygwin 1.7.0
43473         * doc/posix-functions/abort.texi (abort): Update wording related
43474         to cygwin.
43475         * doc/posix-functions/daylight.texi (daylight): Likewise.
43476         * doc/posix-functions/optarg.texi (optarg): Likewise.
43477         * doc/posix-functions/optarg.texi (opterr): Likewise.
43478         * doc/posix-functions/optarg.texi (optind): Likewise.
43479         * doc/posix-functions/optarg.texi (optopt): Likewise.
43480         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43481         worked in 1.5.x, and was withdrawn in 1.7.
43482         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43483         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43484         cygwin versions.
43485         * doc/posix-functions/perror.texi (perror): Likewise.
43486         * doc/posix-functions/printf.texi (printf): Likewise.
43487         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43488         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43489         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43490         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43491         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43492         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43493         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43494         Likewise.
43495         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43496         Likewise.
43497         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43498         this function.
43499         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43500         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43501         Likewise.
43502         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43503         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43504         * doc/posix-functions/confstr.texi (confstr): Likewise.
43505         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43506         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43507         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43508         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43509         * doc/posix-functions/fputws.texi (fputws): Likewise.
43510         * doc/posix-functions/fwide.texi (fwide): Likewise.
43511         * doc/posix-functions/getwc.texi (getwc): Likewise.
43512         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43513         * doc/posix-functions/putwc.texi (putwc): Likewise.
43514         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43515         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43516         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43517         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43518         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43519         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43520         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43521         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43522         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43523         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43524         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43525
43526 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43527
43528         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43529         * lib/ioctl.c: Include <sys/ioctl.h>.
43530
43531 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43532
43533         * modules/getdate-tests (Depends-on): Add progname.
43534         * tests/test-getdate.c: Use progname module, to avoid link errors
43535         on non-glibc systems.
43536
43537 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43538
43539         * modules/filenamecat-tests (Depends-on): Add progname.
43540         * modules/fstrcmp-tests (Depends-on): Likewise.
43541
43542         * tests/test-filenamecat.c: Use progname module, to avoid link
43543         errors on non-glibc systems.
43544         * tests/test-fstrcmp.c: Likewise.
43545
43546 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43547
43548         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43549         * lib/gettimeofday.c: Move extern declaration out of function.
43550
43551 2009-01-18  Bruno Haible  <bruno@clisp.org>
43552
43553         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43554         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43555         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43556
43557 2009-01-18  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/strftime.c (MEMPCPY): Remove unused macro.
43560         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43561
43562 2009-01-18  Martin Lambers  <marlam@marlam.de>
43563
43564         New module 'link'.
43565         * lib/unistd.in.h (link): New declaration.
43566         * lib/link.c: New file.
43567         * m4/link.m4: New file.
43568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43569         HAVE_LINK.
43570         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43571         * modules/link: New file.
43572         * doc/posix-functions/link.texi: Mention the new module.
43573
43574 2009-01-18  Bruno Haible  <bruno@clisp.org>
43575
43576         * tests/test-avltree_list.c (main): Call set_program_name.
43577         * tests/test-avltree_oset.c (main): Likewise.
43578         * tests/test-obstack-printf.c: Include progname.h.
43579         (main): Call set_program_name.
43580         * tests/test-quotearg.c: Include progname.h.
43581         (main): Call set_program_name.
43582         * tests/test-xmemdup0.c: Include progname.h.
43583         (main): Call set_program_name.
43584
43585 2009-01-18  Bruno Haible  <bruno@clisp.org>
43586
43587         New module 'alphasort'.
43588         * lib/dirent.in.h (alphasort): New declaration.
43589         * lib/alphasort.c: New file, from glibc with modifications.
43590         * m4/alphasort.m4: New file.
43591         * modules/alphasort: New file.
43592         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43593         HAVE_ALPHASORT.
43594         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43595         HAVE_ALPHASORT.
43596         * doc/posix-functions/alphasort.texi: Mention the new module and the
43597         portability problems.
43598
43599 2009-01-18  Bruno Haible  <bruno@clisp.org>
43600
43601         New module 'scandir'.
43602         * lib/dirent.in.h (scandir): New declaration.
43603         * lib/scandir.c: New file, from glibc with modifications.
43604         * m4/scandir.m4: New file.
43605         * modules/scandir: New file.
43606         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43607         HAVE_SCANDIR.
43608         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43609         HAVE_SCANDIR.
43610         * doc/posix-functions/scandir.texi: Mention the new module and the
43611         portability problems.
43612
43613 2009-01-17  Bruno Haible  <bruno@clisp.org>
43614
43615         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43616         Update documentation.
43617         (func_remove_suffix): Escape all dots in the suffix. Update
43618         documentation.
43619         (func_filter_filelist): Update documentation.
43620         Reported by Ralf Wildenhues.
43621
43622 2009-01-17  Bruno Haible  <bruno@clisp.org>
43623
43624         * modules/dprintf-posix-tests: New file.
43625         * tests/test-dprintf-posix.sh: New file.
43626         * tests/test-dprintf-posix.c: New file.
43627
43628         New modules 'dprintf', 'dprintf-posix'.
43629         * lib/stdio.in.h (dprintf): New declaration.
43630         * lib/dprintf.c: New file.
43631         * m4/dprintf.m4: New file.
43632         * m4/dprintf-posix.m4: New file.
43633         * modules/dprintf: New file.
43634         * modules/dprintf-posix: New file.
43635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43636         HAVE_DPRINTF, REPLACE_DPRINTF.
43637         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43638         HAVE_DPRINTF, REPLACE_DPRINTF.
43639         * doc/posix-functions/dprintf.texi: Mention the new modules.
43640
43641 2009-01-17  Bruno Haible  <bruno@clisp.org>
43642
43643         * modules/vdprintf-posix-tests: New file.
43644         * tests/test-vdprintf-posix.sh: New file.
43645         * tests/test-vdprintf-posix.c: New file.
43646
43647         New modules 'vdprintf', 'vdprintf-posix'.
43648         * lib/stdio.in.h (vdprintf): New declaration.
43649         * lib/vdprintf.c: New file.
43650         * m4/vdprintf.m4: New file.
43651         * m4/vdprintf-posix.m4: New file.
43652         * modules/vdprintf: New file.
43653         * modules/vdprintf-posix: New file.
43654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43655         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43656         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43657         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43658         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43659
43660 2009-01-17  Bruno Haible  <bruno@clisp.org>
43661
43662         Fix replacement of fopen on mingw.
43663         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43664         mingw.
43665
43666 2009-01-17  Bruno Haible  <bruno@clisp.org>
43667
43668         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43669         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43670
43671 2009-01-17  Bruno Haible  <bruno@clisp.org>
43672
43673         Avoid test-fflush2.sh failure on mingw.
43674         * tests/test-fflush2.c: Include binary-io.h.
43675         (main): Put standard input into binary mode.
43676         * modules/fflush-tests (Depends-on): Add binary-io.
43677
43678 2009-01-17  Bruno Haible  <bruno@clisp.org>
43679
43680         * lib/wchar.in.h: In another particular situation, include only the
43681         system's <wchar.h> file.
43682         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43683         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43684         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43685
43686 2009-01-17  Bruno Haible  <bruno@clisp.org>
43687
43688         Support for stripping executables in --enable-relocatable.
43689         * build-aux/install-reloc: Expect one more argument, or an environment
43690         variable RELOC_STRIP_PROG. If set, strip the destination program and
43691         its wrapper.
43692         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43693         RELOC_STRIP_PROG.
43694         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43695         to set RELOCATABLE_STRIP.
43696         * NEWS: Mention the new Makefile requirement.
43697
43698 2009-01-17  Bruno Haible  <bruno@clisp.org>
43699
43700         * build-aux/install-reloc: Remove debugging information left over by
43701         C compiler on MacOS X.
43702
43703 2009-01-17  Bruno Haible  <bruno@clisp.org>
43704
43705         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43706         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43707         _NSGetExecutablePath.
43708
43709 2009-01-16  Jim Meyering  <meyering@redhat.com>
43710
43711         strerror: avoid warnings about discarding "const"
43712         * lib/strerror.c (rpl_strerror): Instead of returning a const
43713         string from each and every "case", use a variable, and add a single
43714         cast after the switch.
43715
43716 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43717
43718         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43719
43720 2009-01-16  Bruno Haible  <bruno@clisp.org>
43721
43722         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43723         array initializer syntax that also works in C++ mode.
43724         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43725
43726 2009-01-16  Jim Meyering  <meyering@redhat.com>
43727
43728         poll: suppress a warning
43729         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43730         to ignore "...unsigned expression < 0 is always false" warnings.
43731
43732 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43733
43734         poll: remove declarations of unused variables
43735         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43736         sockbuf and optlen.
43737
43738 2009-01-15  Bruno Haible  <bruno@clisp.org>
43739
43740         Make fflush-after-ungetc POSIX compliant on BSD systems.
43741         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43742         (clear_ungetc_buffer): Implement also for other systems.
43743         (rpl_fflush): On glibc systems, invoke
43744         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43745         clear_ungetc_buffer after fetching the stream's position, not before.
43746
43747 2009-01-15  Bruno Haible  <bruno@clisp.org>
43748
43749         Make fflush-after-ungetc POSIX compliant on glibc systems.
43750         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43751         after ungetc.
43752         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43753         (rpl_fflush): On glibc systems, simply call the system's fflush
43754         function after clearing the ungetc buffer.
43755         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43756         Instead, lseek only to the end of file, then use the system's fseeko
43757         for the rest. On glibc systems, reset the EOF indicator bit.
43758
43759 2009-01-15  Jim Meyering  <meyering@redhat.com>
43760
43761         openmp.m4: revert quote-adding change, for portability to older autoconf
43762         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43763         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43764         Simon Josefsson noticed the problem when using autoconf-2.61.
43765
43766 2009-01-15  Bruno Haible  <bruno@clisp.org>
43767
43768         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43769         * tests/test-fflush2.c (ASSERT): Always fail.
43770         (main): Add two tests for fflush() after ungetc(), taking into account
43771         the Austin Group's clarification.
43772         Suggested by Eric Blake.
43773
43774 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43775
43776         mktime.m4: remove K&R-style function prototypes
43777         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43778         for the Sun C++ compiler.
43779
43780 2009-01-14  Bruno Haible  <bruno@clisp.org>
43781
43782         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43783         while including <wchar.h>.
43784         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43785         the system's <wchar.h> file.
43786         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43787
43788 2009-01-14  Bruno Haible  <bruno@clisp.org>
43789
43790         * m4/csharp.m4: Don't mention gettext on the serial number line.
43791         * m4/csharpexec.m4: Likewise.
43792         * m4/eaccess.m4: Likewise.
43793         * m4/javaexec.m4: Likewise.
43794         * m4/sig_atomic_t.m4: Likewise.
43795         * m4/tmpdir.m4: Likewise.
43796         * m4/intldir.m4: Bump gettext version.
43797         * m4/lib-ld.m4: Likewise.
43798
43799 2009-01-14  Bruno Haible  <bruno@clisp.org>
43800
43801         * lib/progname.c (set_program_name): Add more comments.
43802         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43803
43804 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43805
43806         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43807         were sys/stat.h does not define it.
43808
43809 2009-01-14  Jim Meyering  <meyering@redhat.com>
43810
43811         many *.m4 files: improve m4 quoting
43812         99% of this change was performed by running the following commands:
43813         git ls-files | grep '\.m4$' | xargs perl -pi \
43814           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43815           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43816           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43817           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43818         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43819         The remainder were to add Copyright dates, increment serial numbers,
43820         undo some changes in comments, exclude m4/intl.m4, and add quotes
43821         around the "1" in ",1" where the unusual spacing prohibited the
43822         above regexps from doing the job.  For more details, see
43823         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43824         * m4/acl.m4: Modified.
43825         * m4/afs.m4: Likewise.
43826         * m4/alloca.m4: Likewise.
43827         * m4/argp.m4: Likewise.
43828         * m4/argz.m4: Likewise.
43829         * m4/atexit.m4: Likewise.
43830         * m4/bison-i18n.m4: Likewise.
43831         * m4/bison.m4: Likewise.
43832         * m4/byteswap.m4: Likewise.
43833         * m4/c-stack.m4: Likewise.
43834         * m4/c-strtod.m4: Likewise.
43835         * m4/calloc.m4: Likewise.
43836         * m4/canonicalize-lgpl.m4: Likewise.
43837         * m4/chown.m4: Likewise.
43838         * m4/clock_time.m4: Likewise.
43839         * m4/codeset.m4: Likewise.
43840         * m4/copy-file.m4: Likewise.
43841         * m4/csharp.m4: Likewise.
43842         * m4/csharpcomp.m4: Likewise.
43843         * m4/csharpexec.m4: Likewise.
43844         * m4/d-ino.m4: Likewise.
43845         * m4/d-type.m4: Likewise.
43846         * m4/dirfd.m4: Likewise.
43847         * m4/double-slash-root.m4: Likewise.
43848         * m4/eaccess.m4: Likewise.
43849         * m4/eealloc.m4: Likewise.
43850         * m4/environ.m4: Likewise.
43851         * m4/errno_h.m4: Likewise.
43852         * m4/euidaccess.m4: Likewise.
43853         * m4/execute.m4: Likewise.
43854         * m4/fatal-signal.m4: Likewise.
43855         * m4/fchdir.m4: Likewise.
43856         * m4/fcntl_h.m4: Likewise.
43857         * m4/fileblocks.m4: Likewise.
43858         * m4/filenamecat.m4: Likewise.
43859         * m4/findprog.m4: Likewise.
43860         * m4/flexmember.m4: Likewise.
43861         * m4/fnmatch.m4: Likewise.
43862         * m4/fopen.m4: Likewise.
43863         * m4/fpending.m4: Likewise.
43864         * m4/fprintf-posix.m4: Likewise.
43865         * m4/free.m4: Likewise.
43866         * m4/frexp.m4: Likewise.
43867         * m4/frexpl.m4: Likewise.
43868         * m4/fsusage.m4: Likewise.
43869         * m4/ftruncate.m4: Likewise.
43870         * m4/gc-camellia.m4: Likewise.
43871         * m4/gc-random.m4: Likewise.
43872         * m4/gc.m4: Likewise.
43873         * m4/getaddrinfo.m4: Likewise.
43874         * m4/getcwd-abort-bug.m4: Likewise.
43875         * m4/getcwd-path-max.m4: Likewise.
43876         * m4/getdate.m4: Likewise.
43877         * m4/getdomainname.m4: Likewise.
43878         * m4/getgroups.m4: Likewise.
43879         * m4/gethostname.m4: Likewise.
43880         * m4/gethrxtime.m4: Likewise.
43881         * m4/getline.m4: Likewise.
43882         * m4/getloadavg.m4: Likewise.
43883         * m4/getndelim2.m4: Likewise.
43884         * m4/getpass.m4: Likewise.
43885         * m4/gettext.m4: Likewise.
43886         * m4/gettime.m4: Likewise.
43887         * m4/gettimeofday.m4: Likewise.
43888         * m4/gnulib-common.m4: Likewise.
43889         * m4/group-member.m4: Likewise.
43890         * m4/host-os.m4: Likewise.
43891         * m4/iconv.m4: Likewise.
43892         * m4/iconv_open.m4: Likewise.
43893         * m4/inet_ntop.m4: Likewise.
43894         * m4/inet_pton.m4: Likewise.
43895         * m4/inline.m4: Likewise.
43896         * m4/intldir.m4: Likewise.
43897         * m4/intlmacosx.m4: Likewise.
43898         * m4/intmax.m4: Likewise.
43899         * m4/intmax_t.m4: Likewise.
43900         * m4/inttypes.m4: Likewise.
43901         * m4/inttypes_h.m4: Likewise.
43902         * m4/inttypes-pri.m4: Likewise.
43903         * m4/isapipe.m4: Likewise.
43904         * m4/isnand.m4: Likewise.
43905         * m4/isnanf.m4: Likewise.
43906         * m4/isnanl.m4: Likewise.
43907         * m4/javacomp.m4: Likewise.
43908         * m4/javaexec.m4: Likewise.
43909         * m4/jm-winsz1.m4: Likewise.
43910         * m4/jm-winsz2.m4: Likewise.
43911         * m4/lchown.m4: Likewise.
43912         * m4/lcmessage.m4: Likewise.
43913         * m4/ldexpl.m4: Likewise.
43914         * m4/lib-ld.m4: Likewise.
43915         * m4/lib-link.m4: Likewise.
43916         * m4/libsigsegv.m4: Likewise.
43917         * m4/link-follow.m4: Likewise.
43918         * m4/localcharset.m4: Likewise.
43919         * m4/locale-fr.m4: Likewise.
43920         * m4/locale-ja.m4: Likewise.
43921         * m4/locale-tr.m4: Likewise.
43922         * m4/locale-zh.m4: Likewise.
43923         * m4/lock.m4: Likewise.
43924         * m4/longlong.m4: Likewise.
43925         * m4/ls-mntd-fs.m4: Likewise.
43926         * m4/lstat.m4: Likewise.
43927         * m4/malloc.m4: Likewise.
43928         * m4/mathl.m4: Likewise.
43929         * m4/mbrtowc.m4: Likewise.
43930         * m4/mbstate_t.m4: Likewise.
43931         * m4/mbswidth.m4: Likewise.
43932         * m4/memchr.m4: Likewise.
43933         * m4/memcmp.m4: Likewise.
43934         * m4/memcpy.m4: Likewise.
43935         * m4/memmem.m4: Likewise.
43936         * m4/memmove.m4: Likewise.
43937         * m4/mempcpy.m4: Likewise.
43938         * m4/memrchr.m4: Likewise.
43939         * m4/memset.m4: Likewise.
43940         * m4/minmax.m4: Likewise.
43941         * m4/mkdir-slash.m4: Likewise.
43942         * m4/mkdtemp.m4: Likewise.
43943         * m4/mktime.m4: Likewise.
43944         * m4/mmap-anon.m4: Likewise.
43945         * m4/mountlist.m4: Likewise.
43946         * m4/nanosleep.m4: Likewise.
43947         * m4/nls.m4: Likewise.
43948         * m4/nocrash.m4: Likewise.
43949         * m4/open.m4: Likewise.
43950         * m4/openat.m4: Likewise.
43951         * m4/openmp.m4: Likewise.
43952         * m4/pathmax.m4: Likewise.
43953         * m4/perl.m4: Likewise.
43954         * m4/physmem.m4: Likewise.
43955         * m4/pipe.m4: Likewise.
43956         * m4/po.m4: Likewise.
43957         * m4/poll.m4: Likewise.
43958         * m4/posixtm.m4: Likewise.
43959         * m4/posixver.m4: Likewise.
43960         * m4/printf-frexp.m4: Likewise.
43961         * m4/printf-frexpl.m4: Likewise.
43962         * m4/printf-posix.m4: Likewise.
43963         * m4/printf-posix-rpl.m4: Likewise.
43964         * m4/printf.m4: Likewise.
43965         * m4/progtest.m4: Likewise.
43966         * m4/putenv.m4: Likewise.
43967         * m4/readline.m4: Likewise.
43968         * m4/readlink.m4: Likewise.
43969         * m4/readutmp.m4: Likewise.
43970         * m4/realloc.m4: Likewise.
43971         * m4/regex.m4: Likewise.
43972         * m4/relocatable.m4: Likewise.
43973         * m4/relocatable-lib.m4: Likewise.
43974         * m4/rename-dest-slash.m4: Likewise.
43975         * m4/rename.m4: Likewise.
43976         * m4/rmdir-errno.m4: Likewise.
43977         * m4/rmdir.m4: Likewise.
43978         * m4/roundf.m4: Likewise.
43979         * m4/roundl.m4: Likewise.
43980         * m4/rpmatch.m4: Likewise.
43981         * m4/save-cwd.m4: Likewise.
43982         * m4/selinux-selinux-h.m4: Likewise.
43983         * m4/setenv.m4: Likewise.
43984         * m4/settime.m4: Likewise.
43985         * m4/sig2str.m4: Likewise.
43986         * m4/sig_atomic_t.m4: Likewise.
43987         * m4/signalblocking.m4: Likewise.
43988         * m4/signbit.m4: Likewise.
43989         * m4/sigpipe.m4: Likewise.
43990         * m4/sockets.m4: Likewise.
43991         * m4/sockpfaf.m4: Likewise.
43992         * m4/st_dm_mode.m4: Likewise.
43993         * m4/stat-time.m4: Likewise.
43994         * m4/stdbool.m4: Likewise.
43995         * m4/stdint.m4: Likewise.
43996         * m4/stdint_h.m4: Likewise.
43997         * m4/stpcpy.m4: Likewise.
43998         * m4/stpncpy.m4: Likewise.
43999         * m4/strcase.m4: Likewise.
44000         * m4/strchrnul.m4: Likewise.
44001         * m4/strcspn.m4: Likewise.
44002         * m4/strdup.m4: Likewise.
44003         * m4/strftime.m4: Likewise.
44004         * m4/strndup.m4: Likewise.
44005         * m4/strnlen.m4: Likewise.
44006         * m4/strpbrk.m4: Likewise.
44007         * m4/strptime.m4: Likewise.
44008         * m4/strsep.m4: Likewise.
44009         * m4/strtod.m4: Likewise.
44010         * m4/strtoimax.m4: Likewise.
44011         * m4/strtok_r.m4: Likewise.
44012         * m4/strtol.m4: Likewise.
44013         * m4/strtoll.m4: Likewise.
44014         * m4/strtoul.m4: Likewise.
44015         * m4/strtoull.m4: Likewise.
44016         * m4/strtoumax.m4: Likewise.
44017         * m4/strverscmp.m4: Likewise.
44018         * m4/threadlib.m4: Likewise.
44019         * m4/timegm.m4: Likewise.
44020         * m4/tm_gmtoff.m4: Likewise.
44021         * m4/tmpdir.m4: Likewise.
44022         * m4/tmpfile.m4: Likewise.
44023         * m4/tzset.m4: Likewise.
44024         * m4/uintmax_t.m4: Likewise.
44025         * m4/unlinkdir.m4: Likewise.
44026         * m4/unlocked-io.m4: Likewise.
44027         * m4/uptime.m4: Likewise.
44028         * m4/userspec.m4: Likewise.
44029         * m4/utimbuf.m4: Likewise.
44030         * m4/utime.m4: Likewise.
44031         * m4/utimes-null.m4: Likewise.
44032         * m4/utimes.m4: Likewise.
44033         * m4/vararrays.m4: Likewise.
44034         * m4/vasnprintf.m4: Likewise.
44035         * m4/vfprintf-posix.m4: Likewise.
44036         * m4/vprintf-posix.m4: Likewise.
44037         * m4/wait-process.m4: Likewise.
44038         * m4/wchar_t.m4: Likewise.
44039         * m4/wint_t.m4: Likewise.
44040         * m4/write-any-file.m4: Likewise.
44041         * m4/yield.m4: Likewise.
44042
44043 2009-01-13  Bruno Haible  <bruno@clisp.org>
44044
44045         Avoid test-copy-file.sh failures when ACL support insufficient.
44046         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44047         TESTS_ENVIRONMENT.
44048         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44049         Reported by Jim Meyering.
44050
44051 2009-01-13  Bruno Haible  <bruno@clisp.org>
44052
44053         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44054         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44055         * modules/unistdio/u8-printf-parse (Files): Likewise.
44056         * modules/unistdio/u32-printf-parse (Files): Likewise.
44057         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44058
44059 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44060
44061         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44062         and m4/inttypes_h.m4 too.
44063
44064 2009-01-12  Eric Blake  <ebb9@byu.net>
44065
44066         tests: IRIX 6.2 cc can't compile -0.0 into .data
44067         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44068         rather than at compile-time.
44069         * tests/test-floorl.c (minus_zero): Likewise.
44070         * tests/test-frexpl.c (minus_zero): Likewise.
44071         * tests/test-isnan.c (minus_zerol): Likewise.
44072         * tests/test-isnanl.h (minus_zero): Likewise.
44073         * tests/test-ldexpl.c (minus_zero): Likewise.
44074         * tests/test-roundl.c (minus_zero): Likewise.
44075         * tests/test-signbit.c (minus_zerol): Likewise.
44076         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44077         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44078         * tests/test-truncl.c (minus_zero): Likewise.
44079         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44080         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44081         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44082
44083 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44084
44085         regex: fix glibc bug 9697
44086         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44087         handling.
44088
44089 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44090
44091         regex: fix glibc bug 697
44092         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44093         being NULL also if there are no backreferences.
44094
44095 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44096
44097         regex: merge glibc changes
44098         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44099         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44100         re_string_skip_chars, re_string_reconstruct): Likewise.
44101         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44102
44103 2009-01-07  Jim Meyering  <meyering@redhat.com>
44104
44105         poll: filter through cppi
44106         * lib/poll.c: Indent cpp directives to reflect nesting.
44107
44108 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44109
44110         poll: don't return uninitialized
44111         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44112
44113 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44114
44115         avoid compile failure on AIX 6.1
44116         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44117         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44118
44119 2009-01-04  Jim Meyering  <meyering@redhat.com>
44120
44121         remove duplicate inclusion of <stdio.h>
44122         * tests/test-fprintf-posix.c: Likewise.
44123         * tests/test-printf-posix.c: Likewise.
44124         * tests/test-snprintf-posix.c: Likewise.
44125         * tests/test-sprintf-posix.c: Likewise.
44126         * tests/test-vasprintf-posix.c: Likewise.
44127         * tests/test-vfprintf-posix.c: Likewise.
44128         * tests/test-vprintf-posix.c: Likewise.
44129         * tests/test-vsnprintf-posix.c: Likewise.
44130         * tests/test-vsprintf-posix.c: Likewise.
44131
44132 2009-01-03  Jim Meyering  <meyering@redhat.com>
44133
44134         gnulib-tool: fix sed-based filtering
44135         * gnulib-tool (func_filter_filelist): Remove extra backslash
44136         in sed_fff_filter definition.
44137
44138 2009-01-02  Jim Meyering  <meyering@redhat.com>
44139
44140         strftime: avoid compilation failure on Solaris 2.6
44141         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44142         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44143         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44144         be available.  Reported by Tom G. Christensen.  Details in
44145         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44146
44147 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44148             Bruno Haible  <bruno@clisp.org>
44149
44150         Speed up gnulib-tool by doing more string processing through shell
44151         built-ins.
44152         * gnulib-tool (fast_func_append): New variable.
44153         (func_remove_prefix, func_remove_suffix): New functions.
44154         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44155         (func_filter_filelist): New function.
44156         (func_get_dependencies): Use func_remove_suffix instead of sed.
44157         (func_get_automake_snippet): Use func_filter_filelist instead of a
44158         subshell and sed invocation.
44159
44160 2009-01-01  Bruno Haible  <bruno@clisp.org>
44161
44162         Fix a security bug.
44163         * gnulib-tool (func_import, import, update): Don't allow the characters
44164         '"', '$', '`', '\' in macro arguments that become part of commands that
44165         are evaluated.
44166
44167 2009-01-01  Bruno Haible  <bruno@clisp.org>
44168
44169         * gnulib-tool (func_reset_sigpipe): Add more comments.
44170
44171 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44172
44173         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44174         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44175         already know the answer.
44176
44177 2009-01-01  Jim Meyering  <meyering@redhat.com>
44178
44179         * lib/version-etc.c (version_etc_va): Update copyright year.
44180
44181 2008-12-30  Bruno Haible  <bruno@clisp.org>
44182
44183         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44184         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44185         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44186
44187 2008-12-29  Eric Blake  <ebb9@byu.net>
44188
44189         multiarch: avoid autoconf AC_REQUIRE bug
44190         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44191         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44192         2.63 and older.
44193         Reported by Bruno Haible, and analyzed in
44194         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44195
44196 2008-12-29  Bruno Haible  <bruno@clisp.org>
44197
44198         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44199         files in subdirectories correctly.
44200         Reported by Ralf Wildenhues.
44201
44202 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44203
44204         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44205         rather than 'join FILE -', for Solaris join.
44206
44207 2008-12-29  Bruno Haible  <bruno@clisp.org>
44208
44209         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44210         quoting.
44211         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44212         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44213         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44214         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44215         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44216         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44217         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44218         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44219         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44220         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44221         * m4/nls.m4 (AM_NLS): Likewise.
44222         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44223         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44224         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44225         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44226         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44227         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44228         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44229         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44230         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44231         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44232         * m4/xsize.m4 (gl_XSIZE): Likewise.
44233         Suggested by Jim Meyering.
44234
44235 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44236
44237         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44238         * lib/parse-duration.c: use a switch instead of cascading if's.
44239
44240 2008-12-29  Eric Blake  <ebb9@byu.net>
44241
44242         wchar.h: supply WEOF on Irix 5.3
44243         * lib/wchar.in.h (wint_t): Also supply WEOF.
44244         * lib/wctype.in.h (wint_t): Likewise.
44245         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44246         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44247         Reported by Tom G. Christensen.
44248
44249 2008-12-26  Bruno Haible  <bruno@clisp.org>
44250
44251         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44252         i486, i586, i686.
44253
44254 2008-12-26  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44257
44258 2008-12-26  Bruno Haible  <bruno@clisp.org>
44259
44260         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44261         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44262         not __STDC_CONSTANT_MACROS.
44263         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44264
44265 2008-12-25  Bruno Haible  <bruno@clisp.org>
44266
44267         Add support for universal builds to vasnprintf.
44268         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44269         universal builds, guess no.
44270         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44271         * modules/vasprintf-posix (Depends-on): Likewise.
44272         * modules/fprintf-posix (Depends-on): Likewise.
44273         * modules/vfprintf-posix (Depends-on): Likewise.
44274         * modules/snprintf-posix (Depends-on): Likewise.
44275         * modules/vsnprintf-posix (Depends-on): Likewise.
44276         * modules/sprintf-posix (Depends-on): Likewise.
44277         * modules/vsprintf-posix (Depends-on): Likewise.
44278         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44279         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44280         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44281         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44282         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44283         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44284         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44285
44286         Add support for universal builds to <inttypes.h>.
44287         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44288         _SCNu64_PREFIX): In Apple
44289         universal builds, define directly, using _LP64.
44290         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44291         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44292         * modules/inttypes (Depends-on): Add multiarch.
44293         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44294
44295         Add support for universal builds to <stdint.h>.
44296         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44297         universal builds, define directly, using _LP64.
44298         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44299         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44300         and size_t.
44301         * modules/stdint (Depends-on): Add multiarch.
44302         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44303
44304         New module 'multiarch'.
44305         * modules/multiarch: New file.
44306         * m4/multiarch.m4: New file.
44307
44308 2008-12-25  Bruno Haible  <bruno@clisp.org>
44309
44310         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44311
44312 2008-12-25  Bruno Haible  <bruno@clisp.org>
44313
44314         * modules/btowc (License): Relicense under LGPLv2+.
44315         * modules/mbsinit (License): Likewise.
44316         * modules/mbrtowc (License): Likewise.
44317         * modules/wcrtomb (License): Likewise.
44318         * modules/streq (License): Likewise.
44319         Reported by David Lutterkort <lutter@redhat.com>.
44320
44321 2008-12-23  Bruno Haible  <bruno@clisp.org>
44322
44323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44324
44325 2008-12-23  Bruno Haible  <bruno@clisp.org>
44326
44327         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44329         GETADDRINFO_LIB, not in LIBS.
44330         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44331         * modules/canon-host (Link): Likewise.
44332         * NEWS: Mention the change.
44333         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44334         GETADDRINFO_LIB.
44335
44336 2008-12-22  Bruno Haible  <bruno@clisp.org>
44337
44338         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44339         * doc/posix-functions/iswalpha_l.texi: Likewise.
44340         * doc/posix-functions/iswblank_l.texi: Likewise.
44341         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44342         * doc/posix-functions/iswctype_l.texi: Likewise.
44343         * doc/posix-functions/iswdigit_l.texi: Likewise.
44344         * doc/posix-functions/iswgraph_l.texi: Likewise.
44345         * doc/posix-functions/iswlower_l.texi: Likewise.
44346         * doc/posix-functions/iswprint_l.texi: Likewise.
44347         * doc/posix-functions/iswpunct_l.texi: Likewise.
44348         * doc/posix-functions/iswspace_l.texi: Likewise.
44349         * doc/posix-functions/iswupper_l.texi: Likewise.
44350         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44351         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44352         * doc/posix-functions/open_wmemstream.texi: Likewise.
44353         * doc/posix-functions/swscanf.texi: Likewise.
44354         * doc/posix-functions/towctrans_l.texi: Likewise.
44355         * doc/posix-functions/towlower.texi: Likewise.
44356         * doc/posix-functions/towlower_l.texi: Likewise.
44357         * doc/posix-functions/towupper.texi: Likewise.
44358         * doc/posix-functions/towupper_l.texi: Likewise.
44359         * doc/posix-functions/vfwprintf.texi: Likewise.
44360         * doc/posix-functions/vfwscanf.texi: Likewise.
44361         * doc/posix-functions/vswscanf.texi: Likewise.
44362         * doc/posix-functions/vwprintf.texi: Likewise.
44363         * doc/posix-functions/vwscanf.texi: Likewise.
44364         * doc/posix-functions/wcpcpy.texi: Likewise.
44365         * doc/posix-functions/wcpncpy.texi: Likewise.
44366         * doc/posix-functions/wcscasecmp.texi: Likewise.
44367         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44368         * doc/posix-functions/wcscoll_l.texi: Likewise.
44369         * doc/posix-functions/wcsdup.texi: Likewise.
44370         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44371         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44372         * doc/posix-functions/wcsnlen.texi: Likewise.
44373         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44374         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44375         * doc/posix-functions/wctrans_l.texi: Likewise.
44376         * doc/posix-functions/wctype_l.texi: Likewise.
44377         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44378         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44379         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44380         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44381         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44382         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44383         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44384         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44385         * doc/glibc-functions/wcschrnul.texi: Likewise.
44386         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44387         * doc/glibc-functions/wcstod_l.texi: Likewise.
44388         * doc/glibc-functions/wcstof_l.texi: Likewise.
44389         * doc/glibc-functions/wcstol_l.texi: Likewise.
44390         * doc/glibc-functions/wcstold_l.texi: Likewise.
44391         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44392         * doc/glibc-functions/wcstoq.texi: Likewise.
44393         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44394         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44395         * doc/glibc-functions/wcstouq.texi: Likewise.
44396         * doc/glibc-functions/wmempcpy.texi: Likewise.
44397
44398 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44399             Eric Blake  <ebb9@byu.net>
44400             Paolo Bonzini  <bonzini@gnu.org>
44401             Bruno Haible  <bruno@clisp.org>
44402
44403         Make c-stack work on Haiku.
44404         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44405         (c_stack_action): Use SA_ONSTACK flag.
44406
44407 2008-12-22  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44410
44411 2008-12-22  Bruno Haible  <bruno@clisp.org>
44412
44413         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44414         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44415         being overridden.
44416         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44417         New macros.
44418         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44420         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44421         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44422
44423 2008-12-22  Bruno Haible  <bruno@clisp.org>
44424
44425         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44426         from test code.
44427
44428 2008-12-22  Eric Blake  <ebb9@byu.net>
44429
44430         Avoid gcc warnings on cygwin.
44431         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44432         Avoid unused variable.
44433         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44434         Likewise.
44435
44436 2008-12-22  Bruno Haible  <bruno@clisp.org>
44437
44438         Remove HAVE_MBRTOWC conditionals.
44439         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44440         (mbscasecmp): Assume mbrtowc function.
44441         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44442         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44443         * lib/mbschr.c: Include mbuiter.h unconditionally.
44444         (mbschr): Assume mbrtowc function.
44445         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44446         (mbscspn): Assume mbrtowc function.
44447         * lib/mbslen.c: Include mbuiter.h unconditionally.
44448         (mbslen): Assume mbrtowc function.
44449         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44450         (mbsncasecmp): Assume mbrtowc function.
44451         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44452         (mbsnlen): Assume mbrtowc function.
44453         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44454         (mbspbrk): Assume mbrtowc function.
44455         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44456         (mbspcasecmp): Assume mbrtowc function.
44457         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44458         (mbsrchr): Assume mbrtowc function.
44459         * lib/mbssep.c: Include mbuiter.h unconditionally.
44460         (mbssep): Assume mbrtowc function.
44461         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44462         (mbsspn): Assume mbrtowc function.
44463         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44464         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44465         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44466         (mbstok_r): Assume mbrtowc function.
44467         * lib/propername.c: Include mbuiter.h unconditionally.
44468         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44469         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44470         (trim2): Assume mbrtowc function.
44471         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44472         (mbsnwidth): Assume mbrtowc function.
44473         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44474         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44475         fallback definitions.
44476         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44477
44478 2008-12-22  Bruno Haible  <bruno@clisp.org>
44479
44480         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44481
44482 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44483
44484         * modules/regex: Request emulations for the mb*/wc* functions we need.
44485         * m4/regex.m4: Don't look for those functions here.
44486         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44487
44488 2008-12-22  Bruno Haible  <bruno@clisp.org>
44489
44490         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44491
44492 2008-12-21  Bruno Haible  <bruno@clisp.org>
44493
44494         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44495         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44496         (Include): Remove conditionalization.
44497         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44498         (Include): Remove conditionalization.
44499         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44500         (Include): Remove conditionalization.
44501         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44502         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44503         * NEWS: Mention the change.
44504         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44505         via Sergey Poznyakoff <gray@gnu.org.ua>.
44506
44507 2008-12-21  Bruno Haible  <bruno@clisp.org>
44508
44509         * MODULES.html.sh (Extended multibyte and wide character utilities
44510         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44511         wcrtomb, wcsrtombs.
44512         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44513         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44514         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44515         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44516
44517 2008-12-21  Bruno Haible  <bruno@clisp.org>
44518
44519         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44520
44521 2008-12-21  Bruno Haible  <bruno@clisp.org>
44522
44523         * modules/wcsnrtombs-tests: New file.
44524         * tests/test-wcsnrtombs1.sh: New file.
44525         * tests/test-wcsnrtombs2.sh: New file.
44526         * tests/test-wcsnrtombs3.sh: New file.
44527         * tests/test-wcsnrtombs4.sh: New file.
44528         * tests/test-wcsnrtombs.c: New file.
44529
44530         New module 'wcsnrtombs'.
44531         * lib/wchar.in.h (wcsnrtombs): New declaration.
44532         * lib/wcsnrtombs.c: New file.
44533         * lib/wcsrtombs-state.c: New file.
44534         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44535         (internal_state): Remove variable.
44536         * m4/wcsnrtombs.m4: New file.
44537         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44538         compilation units.
44539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44540         HAVE_WCSNRTOMBS.
44541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44542         HAVE_WCSNRTOMBS.
44543         * modules/wcsnrtombs: New file.
44544         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44545         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44546
44547 2008-12-21  Bruno Haible  <bruno@clisp.org>
44548
44549         * modules/wcsrtombs-tests: New file.
44550         * tests/test-wcsrtombs1.sh: New file.
44551         * tests/test-wcsrtombs2.sh: New file.
44552         * tests/test-wcsrtombs3.sh: New file.
44553         * tests/test-wcsrtombs4.sh: New file.
44554         * tests/test-wcsrtombs.c: New file.
44555
44556         New module 'wcsrtombs'.
44557         * lib/wchar.in.h (wcsrtombs): New declaration.
44558         * lib/wcsrtombs.c: New file.
44559         * m4/wcsrtombs.m4: New file.
44560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44561         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44563         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44564         * modules/wcsrtombs: New file.
44565         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44566         bugs.
44567
44568 2008-12-21  Bruno Haible  <bruno@clisp.org>
44569
44570         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44571         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44572         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44573         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44574         if not correct.
44575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44576         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44577         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44578         m4/locale-zh.m4, m4/codeset.m4.
44579         * doc/posix-functions/wcrtomb.texi: Document the bug.
44580
44581 2008-12-21  Bruno Haible  <bruno@clisp.org>
44582
44583         Work around a btowc() bug on IRIX 6.5.
44584         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44585         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44586         REPLACE_WTOBC if not.
44587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44588         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44589         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44590
44591 2008-12-21  Bruno Haible  <bruno@clisp.org>
44592
44593         * modules/wcrtomb-tests: New file.
44594         * tests/test-wcrtomb.sh: New file.
44595         * tests/test-wcrtomb.c: New file.
44596
44597         New module 'wcrtomb'.
44598         * lib/wchar.in.h (wcrtomb): New declaration.
44599         * lib/wcrtomb.c: New file.
44600         * m4/wcrtomb.m4: New file.
44601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44602         HAVE_WCRTOMB.
44603         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44604         HAVE_WCRTOMB.
44605         * modules/wcrtomb: New file.
44606         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44607
44608 2008-12-21  Bruno Haible  <bruno@clisp.org>
44609
44610         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44611         * modules/mbsrtowcs (Files): Likewise.
44612         * modules/wctob (Files): Likewise.
44613         * modules/c-strcase-tests (Files): Likewise.
44614         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44615         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44616         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44617         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44618         * modules/vasnprintf-posix-tests (Files): Likewise.
44619
44620 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44621
44622         gitlog-to-changelog: pass all command-line arguments to git-log
44623         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44624         it is sometimes convenient to filter the commits in various ways.
44625         gitlog-to-changelog only allows --since to specify a start date,
44626         but git-log itself supports many other filtering mechanisms.
44627         At the moment, I want to filter by branch name.  Rather than
44628         adding a --branch option to gitlog-to-changelog, it seems more
44629         flexible to simply pass all options directly to git-log and let
44630         git do the work.  Notice that this effectively makes --since a
44631         redundant option for gitlog-to-changelog, but removing it would
44632         require current usage to change since calls would then require
44633         an additional '--'.
44634
44635 2008-12-21  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/mbsnrtowcs-tests: New file.
44638         * tests/test-mbsnrtowcs1.sh: New file.
44639         * tests/test-mbsnrtowcs2.sh: New file.
44640         * tests/test-mbsnrtowcs3.sh: New file.
44641         * tests/test-mbsnrtowcs4.sh: New file.
44642         * tests/test-mbsnrtowcs.c: New file.
44643
44644         New module 'mbsnrtowcs'.
44645         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44646         * lib/mbsnrtowcs.c: New file.
44647         * lib/mbsrtowcs-state.c: New file.
44648         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44649         (internal_state): Remove variable.
44650         * m4/mbsnrtowcs.m4: New file.
44651         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44652         compilation units.
44653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44654         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44655         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44656         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44657         * modules/mbsnrtowcs: New file.
44658         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44659         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44660         portability problem.
44661
44662 2008-12-21  Bruno Haible  <bruno@clisp.org>
44663
44664         Work around mbsrtowcs bug.
44665         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44666         (gl_FUNC_MBSRTOWCS): Invoke it.
44667         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44668         m4/locale-zh.m4.
44669         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44670
44671 2008-12-21  Bruno Haible  <bruno@clisp.org>
44672
44673         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44674
44675 2008-12-21  Bruno Haible  <bruno@clisp.org>
44676
44677         Update doc for AIX.
44678         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44679         16-bit wchar_t type.
44680         * doc/posix-functions/btowc.texi: Likewise.
44681         * doc/posix-functions/fgetwc.texi: Likewise.
44682         * doc/posix-functions/fgetws.texi: Likewise.
44683         * doc/posix-functions/fputwc.texi: Likewise.
44684         * doc/posix-functions/fputws.texi: Likewise.
44685         * doc/posix-functions/fwide.texi: Likewise.
44686         * doc/posix-functions/fwprintf.texi: Likewise.
44687         * doc/posix-functions/fwscanf.texi: Likewise.
44688         * doc/posix-functions/getwchar.texi: Likewise.
44689         * doc/posix-functions/getwc.texi: Likewise.
44690         * doc/posix-functions/iswalnum.texi: Likewise.
44691         * doc/posix-functions/iswalpha.texi: Likewise.
44692         * doc/posix-functions/iswblank.texi: Likewise.
44693         * doc/posix-functions/iswcntrl.texi: Likewise.
44694         * doc/posix-functions/iswctype.texi: Likewise.
44695         * doc/posix-functions/iswdigit.texi: Likewise.
44696         * doc/posix-functions/iswgraph.texi: Likewise.
44697         * doc/posix-functions/iswlower.texi: Likewise.
44698         * doc/posix-functions/iswprint.texi: Likewise.
44699         * doc/posix-functions/iswpunct.texi: Likewise.
44700         * doc/posix-functions/iswspace.texi: Likewise.
44701         * doc/posix-functions/iswupper.texi: Likewise.
44702         * doc/posix-functions/iswxdigit.texi: Likewise.
44703         * doc/posix-functions/mbrtowc.texi: Likewise.
44704         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44705         * doc/posix-functions/mbstowcs.texi: Likewise.
44706         * doc/posix-functions/mbtowc.texi: Likewise.
44707         * doc/posix-functions/putwchar.texi: Likewise.
44708         * doc/posix-functions/putwc.texi: Likewise.
44709         * doc/posix-functions/swprintf.texi: Likewise.
44710         * doc/posix-functions/tolower.texi: Likewise.
44711         * doc/posix-functions/toupper.texi: Likewise.
44712         * doc/posix-functions/towctrans.texi: Likewise.
44713         * doc/posix-functions/ungetwc.texi: Likewise.
44714         * doc/posix-functions/vswprintf.texi: Likewise.
44715         * doc/posix-functions/wcrtomb.texi: Likewise.
44716         * doc/posix-functions/wcscat.texi: Likewise.
44717         * doc/posix-functions/wcschr.texi: Likewise.
44718         * doc/posix-functions/wcscmp.texi: Likewise.
44719         * doc/posix-functions/wcscoll.texi: Likewise.
44720         * doc/posix-functions/wcscpy.texi: Likewise.
44721         * doc/posix-functions/wcscspn.texi: Likewise.
44722         * doc/posix-functions/wcsftime.texi: Likewise.
44723         * doc/posix-functions/wcslen.texi: Likewise.
44724         * doc/posix-functions/wcsncat.texi: Likewise.
44725         * doc/posix-functions/wcsncmp.texi: Likewise.
44726         * doc/posix-functions/wcsncpy.texi: Likewise.
44727         * doc/posix-functions/wcspbrk.texi: Likewise.
44728         * doc/posix-functions/wcsrchr.texi: Likewise.
44729         * doc/posix-functions/wcsrtombs.texi: Likewise.
44730         * doc/posix-functions/wcsspn.texi: Likewise.
44731         * doc/posix-functions/wcsstr.texi: Likewise.
44732         * doc/posix-functions/wcstod.texi: Likewise.
44733         * doc/posix-functions/wcstof.texi: Likewise.
44734         * doc/posix-functions/wcstoimax.texi: Likewise.
44735         * doc/posix-functions/wcstok.texi: Likewise.
44736         * doc/posix-functions/wcstold.texi: Likewise.
44737         * doc/posix-functions/wcstoll.texi: Likewise.
44738         * doc/posix-functions/wcstol.texi: Likewise.
44739         * doc/posix-functions/wcstombs.texi: Likewise.
44740         * doc/posix-functions/wcstoull.texi: Likewise.
44741         * doc/posix-functions/wcstoul.texi: Likewise.
44742         * doc/posix-functions/wcstoumax.texi: Likewise.
44743         * doc/posix-functions/wcswidth.texi: Likewise.
44744         * doc/posix-functions/wcsxfrm.texi: Likewise.
44745         * doc/posix-functions/wctob.texi: Likewise.
44746         * doc/posix-functions/wctomb.texi: Likewise.
44747         * doc/posix-functions/wctrans.texi: Likewise.
44748         * doc/posix-functions/wctype.texi: Likewise.
44749         * doc/posix-functions/wcwidth.texi: Likewise.
44750         * doc/posix-functions/wmemchr.texi: Likewise.
44751         * doc/posix-functions/wmemcmp.texi: Likewise.
44752         * doc/posix-functions/wmemcpy.texi: Likewise.
44753         * doc/posix-functions/wmemmove.texi: Likewise.
44754         * doc/posix-functions/wmemset.texi: Likewise.
44755         * doc/posix-functions/wprintf.texi: Likewise.
44756         * doc/posix-functions/wscanf.texi: Likewise.
44757
44758 2008-12-21  Bruno Haible  <bruno@clisp.org>
44759
44760         Update doc for HP-UX 11.11.
44761         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44762         in HP-UX version 11.00, not in all versions of HP-UX 11.
44763         * doc/posix-functions/fwide.texi: Likewise.
44764         * doc/posix-functions/fwprintf.texi: Likewise.
44765         * doc/posix-functions/fwscanf.texi: Likewise.
44766         * doc/posix-functions/inet_ntop.texi: Likewise.
44767         * doc/posix-functions/inet_pton.texi: Likewise.
44768         * doc/posix-functions/mbrlen.texi: Likewise.
44769         * doc/posix-functions/mbrtowc.texi: Likewise.
44770         * doc/posix-functions/mbsinit.texi: Likewise.
44771         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44772         * doc/posix-functions/swprintf.texi: Likewise.
44773         * doc/posix-functions/swscanf.texi: Likewise.
44774         * doc/posix-functions/towctrans.texi: Likewise.
44775         * doc/posix-functions/vfwprintf.texi: Likewise.
44776         * doc/posix-functions/vswprintf.texi: Likewise.
44777         * doc/posix-functions/vwprintf.texi: Likewise.
44778         * doc/posix-functions/wcrtomb.texi: Likewise.
44779         * doc/posix-functions/wcsrtombs.texi: Likewise.
44780         * doc/posix-functions/wcsstr.texi: Likewise.
44781         * doc/posix-functions/wctob.texi: Likewise.
44782         * doc/posix-functions/wctrans.texi: Likewise.
44783         * doc/posix-functions/wmemchr.texi: Likewise.
44784         * doc/posix-functions/wmemcmp.texi: Likewise.
44785         * doc/posix-functions/wmemcpy.texi: Likewise.
44786         * doc/posix-functions/wmemmove.texi: Likewise.
44787         * doc/posix-functions/wmemset.texi: Likewise.
44788         * doc/posix-functions/wprintf.texi: Likewise.
44789         * doc/posix-functions/wscanf.texi: Likewise.
44790
44791 2008-12-21  Bruno Haible  <bruno@clisp.org>
44792
44793         Work around a portability problem.
44794         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44795         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44796
44797 2008-12-20  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44800         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44801         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44803         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44804
44805         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44806         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44807         set.
44808         (GNULIB_defined_mbstate_t): New macro.
44809         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44810         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44811         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44812         reuses the system's mbrtowc function but works around the bugs.
44813         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44814         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44815         macros.
44816         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44817         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44818         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44819         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44820         REPLACE_MBSINIT if mbsinit needs to be overridden.
44821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44822         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44823         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44824         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44825         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44826         m4/locale-zh.m4.
44827         (Depends): Add mbsinit.
44828         * modules/mbsinit (Depends): Add mbrtowc.
44829         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44830
44831 2008-12-20  Bruno Haible  <bruno@clisp.org>
44832
44833         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44834         so that there are no conversion errors on AIX.
44835         * tests/test-mbsrtowcs.c (main): LIkewise.
44836
44837 2008-12-20  Bruno Haible  <bruno@clisp.org>
44838
44839         Work around wctob bug on Solaris <= 9.
44840         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44841         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44843         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44844         * modules/wctob (Files): Add m4/locale-fr.m4.
44845         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44846
44847 2008-12-20  Bruno Haible  <bruno@clisp.org>
44848
44849         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44850         /dev/null.
44851         * tests/test-select-in.sh: Likewise.
44852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44853
44854 2008-12-20  Bruno Haible  <bruno@clisp.org>
44855
44856         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44857         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44858         Cygwin 1.5.x.
44859
44860 2008-12-20  Bruno Haible  <bruno@clisp.org>
44861
44862         Ensure mbstate_t is defined on HP-UX 11.11.
44863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44864         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44865         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44866         AC_USE_SYSTEM_EXTENSIONS.
44867         * modules/fnmatch (Depends-on): Add extensions.
44868         * modules/mbrlen (Depends-on): Likewise.
44869         * modules/mbrtowc (Depends-on): Likewise.
44870         * modules/mbsinit (Depends-on): Likewise.
44871         * modules/mbsrtowcs (Depends-on): Likewise.
44872         * modules/mbswidth (Depends-on): Likewise.
44873         * modules/quotearg (Depends-on): Likewise.
44874         * modules/strftime (Depends-on): Likewise.
44875
44876 2008-12-20  Bruno Haible  <bruno@clisp.org>
44877
44878         Ensure wctob is declared on IRIX 6.5.
44879         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44880         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44881         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44883         of HAVE_WCTOB.
44884         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44885         HAVE_WCTOB.
44886         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44887
44888 2008-12-19  Bruno Haible  <bruno@clisp.org>
44889
44890         * modules/mbsrtowcs-tests: New file.
44891         * tests/test-mbsrtowcs1.sh: New file.
44892         * tests/test-mbsrtowcs2.sh: New file.
44893         * tests/test-mbsrtowcs3.sh: New file.
44894         * tests/test-mbsrtowcs4.sh: New file.
44895         * tests/test-mbsrtowcs.c: New file.
44896
44897         New module 'mbsrtowcs'.
44898         * lib/wchar.in.h (mbsrtowcs): New declaration.
44899         * lib/mbsrtowcs.c: New file.
44900         * m4/mbsrtowcs.m4: New file.
44901         * modules/mbsrtowcs: New file.
44902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44903         HAVE_MBSRTOWCS.
44904         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44905         HAVE_MBSRTOWCS.
44906         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44907
44908 2008-12-19  Bruno Haible  <bruno@clisp.org>
44909
44910         New module 'mbrlen'.
44911         * lib/wchar.in.h (mbrlen): New declaration.
44912         * lib/mbrlen.c: New file.
44913         * m4/mbrlen.m4: New file.
44914         * modules/mbrlen: New file.
44915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44916         HAVE_MBRLEN.
44917         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44918         HAVE_MBRLEN.
44919         * doc/posix-functions/mbrlen.texi: Document the new module.
44920
44921 2008-12-19  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44924         * modules/mbrtowc (Depends-on): Add verify.
44925         Suggested by Paul Eggert.
44926
44927 2008-12-18  Bruno Haible  <bruno@clisp.org>
44928
44929         * modules/mbsinit-tests: New file.
44930         * tests/test-mbsinit.sh: New file.
44931         * tests/test-mbsinit.c: New file.
44932
44933 2008-12-18  Bruno Haible  <bruno@clisp.org>
44934
44935         * modules/mbrtowc-tests: New file.
44936         * tests/test-mbrtowc1.sh: New file.
44937         * tests/test-mbrtowc2.sh: New file.
44938         * tests/test-mbrtowc3.sh: New file.
44939         * tests/test-mbrtowc4.sh: New file.
44940         * tests/test-mbrtowc.c: New file.
44941
44942         New module 'mbrtowc'.
44943         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44944         mbsinit and mbrtowc.
44945         (mbrtowc): New declaration.
44946         * lib/mbrtowc.c: New file.
44947         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44948         * modules/mbrtowc: New file.
44949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44950         HAVE_MBRTOWC.
44951         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44952         HAVE_MBRTOWC.
44953         * doc/posix-functions/mbrtowc.texi: Document the new module.
44954
44955 2008-12-18  Bruno Haible  <bruno@clisp.org>
44956
44957         New module 'wctob'.
44958         * lib/wchar.in.h (wctob): New declaration.
44959         * lib/wctob.c: New file.
44960         * m4/wctob.m4: New file.
44961         * modules/wctob: New file.
44962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44963         HAVE_WCTOB.
44964         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44965         * doc/posix-functions/wctob.texi: Document the new module.
44966
44967 2008-12-18  Bruno Haible  <bruno@clisp.org>
44968
44969         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44970         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44971
44972 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44973
44974         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44975         G. Christensen" <tgc@jupiterrise.com>.
44976
44977         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44978         G. Christensen" <tgc@jupiterrise.com>.
44979
44980         * lib/flock.c: Need to include string.h.  Reported by "Tom
44981         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44982         <ebb9@byu.net>.
44983
44984 2008-12-18  Bruno Haible  <bruno@clisp.org>
44985
44986         * m4/locale-ja.m4: New file, from GNU gettext.
44987
44988 2008-12-17  Bruno Haible  <bruno@clisp.org>
44989
44990         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44991         Suggested by Eric Blake.
44992
44993 2008-12-17  Bruno Haible  <bruno@clisp.org>
44994
44995         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44996
44997 2008-12-17  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45000         * modules/mbsinit (Depends-on): Add verify.
45001         Suggested by Paul Eggert.
45002
45003 2008-12-17  Bruno Haible  <bruno@clisp.org>
45004
45005         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45006         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45007         gl_FUNC_MBRTOWC.
45008         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45009         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45010         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45011         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45012         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45013         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45014         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45015         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45016         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45017         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45018         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45019         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45020         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45021         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45022         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45023         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45024         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45025         * modules/trim (configure.ac): Likewise.
45026
45027 2008-12-17  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/btowc-tests: New file.
45030         * tests/test-btowc1.sh: New file.
45031         * tests/test-btowc2.sh: New file.
45032         * tests/test-btowc.c: New file.
45033
45034         New module 'btowc'.
45035         * lib/wchar.in.h (btowc): New declaration.
45036         * lib/btowc.c: New file.
45037         * m4/btowc.m4: New file.
45038         * modules/btowc: New file.
45039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45040         HAVE_BTOWC.
45041         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45042         * doc/posix-functions/btowc.texi: Document the new module.
45043
45044 2008-12-17  Bruno Haible  <bruno@clisp.org>
45045
45046         New module 'mbsinit'.
45047         * lib/wchar.in.h (mbsinit): New declaration.
45048         * lib/mbsinit.c: New file.
45049         * m4/mbsinit.m4: New file.
45050         * modules/mbsinit: New file.
45051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45052         HAVE_MBSINIT.
45053         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45054         HAVE_MBSINIT.
45055         * doc/posix-functions/mbsinit.texi: Document the new module.
45056
45057 2008-12-16  Bruno Haible  <bruno@clisp.org>
45058
45059         * lib/unistd.in.h: Add comment.
45060         * tests/test-environ.c: Don't include <stdlib.h>.
45061
45062 2008-12-16  Bruno Haible  <bruno@clisp.org>
45063
45064         * lib/parse-duration.h (parse_duration): Document return value
45065         convention.
45066         * lib/parse-duration.c: Include specification header first. Add
45067         comments.
45068         (_): Remove macro.
45069         (parse_year_month_day, parse_hour_minute_second): Move side effects
45070         outside of strchr call.
45071         (parse_non_iso8601): Move side effects outside of isspace call.
45072         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45073         call.
45074
45075 2008-12-16  Bruno Haible  <bruno@clisp.org>
45076
45077         * tests/test-parse-duration.sh: Produce no output when the test
45078         succeeds.
45079
45080 2008-12-16  Bruno Haible  <bruno@clisp.org>
45081
45082         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45083         expressions.
45084
45085 2008-12-15  Bruno Haible  <bruno@clisp.org>
45086
45087         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45088         * doc/glibc-functions/flistxattr.texi: Likewise.
45089         * doc/glibc-functions/fopencookie.texi: Likewise.
45090         * doc/glibc-functions/fremovexattr.texi: Likewise.
45091         * doc/glibc-functions/fsetxattr.texi: Likewise.
45092         * doc/glibc-functions/getxattr.texi: Likewise.
45093         * doc/glibc-functions/lgetxattr.texi: Likewise.
45094         * doc/glibc-functions/listxattr.texi: Likewise.
45095         * doc/glibc-functions/llistxattr.texi: Likewise.
45096         * doc/glibc-functions/lremovexattr.texi: Likewise.
45097         * doc/glibc-functions/lsetxattr.texi: Likewise.
45098         * doc/glibc-functions/removexattr.texi: Likewise.
45099         * doc/glibc-functions/setxattr.texi: Likewise.
45100         * doc/posix-functions/open_memstream.texi: Likewise.
45101
45102 2008-12-15  Eric Blake  <ebb9@byu.net>
45103
45104         Update doc for cygwin 1.7.
45105         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45106         functions.
45107         * doc/posix-functions/fchmodat.texi: Likewise.
45108         * doc/posix-functions/fchownat.texi: Likewise.
45109         * doc/posix-functions/fdopendir.texi: Likewise.
45110         * doc/posix-functions/fmemopen.texi: Likewise.
45111         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45112         * doc/posix-functions/fstatat.texi: Likewise.
45113         * doc/posix-functions/futimens.texi: Likewise.
45114         * doc/posix-functions/gai_strerror.texi: Likewise.
45115         * doc/posix-functions/getaddrinfo.texi: Likewise.
45116         * doc/posix-functions/getnameinfo.texi: Likewise.
45117         * doc/posix-functions/if_freenameindex.texi: Likewise.
45118         * doc/posix-functions/if_indextoname.texi: Likewise.
45119         * doc/posix-functions/if_nameindex.texi: Likewise.
45120         * doc/posix-functions/if_nametoindex.texi: Likewise.
45121         * doc/posix-functions/insque.texi: Likewise.
45122         * doc/posix-functions/linkat.texi: Likewise.
45123         * doc/posix-functions/llrint.texi: Likewise.
45124         * doc/posix-functions/llrintf.texi: Likewise.
45125         * doc/posix-functions/llrintl.texi: Likewise.
45126         * doc/posix-functions/lockf.texi: Likewise.
45127         * doc/posix-functions/lrintl.texi: Likewise.
45128         * doc/posix-functions/mkdirat.texi: Likewise.
45129         * doc/posix-functions/mkfifoat.texi: Likewise.
45130         * doc/posix-functions/mknodat.texi: Likewise.
45131         * doc/posix-functions/mq_close.texi: Likewise.
45132         * doc/posix-functions/mq_getattr.texi: Likewise.
45133         * doc/posix-functions/mq_notify.texi: Likewise.
45134         * doc/posix-functions/mq_open.texi: Likewise.
45135         * doc/posix-functions/mq_receive.texi: Likewise.
45136         * doc/posix-functions/mq_send.texi: Likewise.
45137         * doc/posix-functions/mq_setattr.texi: Likewise.
45138         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45139         * doc/posix-functions/mq_timedsend.texi: Likewise.
45140         * doc/posix-functions/mq_unlink.texi: Likewise.
45141         * doc/posix-functions/open_memstream.texi: Likewise.
45142         * doc/posix-functions/openat.texi: Likewise.
45143         * doc/posix-functions/posix_fadvise.texi: Likewise.
45144         * doc/posix-functions/posix_fallocate.texi: Likewise.
45145         * doc/posix-functions/posix_madvise.texi: Likewise.
45146         * doc/posix-functions/posix_memalign.texi: Likewise.
45147         * doc/posix-functions/posix_openpt.texi: Likewise.
45148         * doc/posix-functions/readlinkat.texi: Likewise.
45149         * doc/posix-functions/remque.texi: Likewise.
45150         * doc/posix-functions/renameat.texi: Likewise.
45151         * doc/posix-functions/rintl.texi: Likewise.
45152         * doc/posix-functions/sem_unlink.texi: Likewise.
45153         * doc/posix-functions/shm_open.texi: Likewise.
45154         * doc/posix-functions/shm_unlink.texi: Likewise.
45155         * doc/posix-functions/signgam.texi: Likewise.
45156         * doc/posix-functions/sigset.texi: Likewise.
45157         * doc/posix-functions/stpcpy.texi: Likewise.
45158         * doc/posix-functions/stpncpy.texi: Likewise.
45159         * doc/posix-functions/strerror.texi: Likewise.
45160         * doc/posix-functions/strtod.texi: Likewise.
45161         * doc/posix-functions/symlinkat.texi: Likewise.
45162         * doc/posix-functions/unlinkat.texi: Likewise.
45163         * doc/posix-functions/utimensat.texi: Likewise.
45164         * doc/glibc-functions/bindresvport.texi: Likewise.
45165         * doc/glibc-functions/dn_expand.texi: Likewise.
45166         * doc/glibc-functions/exp10.texi: Likewise.
45167         * doc/glibc-functions/exp10f.texi: Likewise.
45168         * doc/glibc-functions/fgetxattr.texi: Likewise.
45169         * doc/glibc-functions/flistxattr.texi: Likewise.
45170         * doc/glibc-functions/fopencookie.texi: Likewise.
45171         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45172         * doc/glibc-functions/fremovexattr.texi: Likewise.
45173         * doc/glibc-functions/fsetxattr.texi: Likewise.
45174         * doc/glibc-functions/getifaddrs.texi: Likewise.
45175         * doc/glibc-functions/getxattr.texi: Likewise.
45176         * doc/glibc-functions/lgetxattr.texi: Likewise.
45177         * doc/glibc-functions/listxattr.texi: Likewise.
45178         * doc/glibc-functions/llistxattr.texi: Likewise.
45179         * doc/glibc-functions/lremovexattr.texi: Likewise.
45180         * doc/glibc-functions/lsetxattr.texi: Likewise.
45181         * doc/glibc-functions/pow10.texi: Likewise.
45182         * doc/glibc-functions/pow10f.texi: Likewise.
45183         * doc/glibc-functions/rcmd_af.texi: Likewise.
45184         * doc/glibc-functions/removexattr.texi: Likewise.
45185         * doc/glibc-functions/res_init.texi: Likewise.
45186         * doc/glibc-functions/res_mkquery.texi: Likewise.
45187         * doc/glibc-functions/res_query.texi: Likewise.
45188         * doc/glibc-functions/res_querydomain.texi: Likewise.
45189         * doc/glibc-functions/res_send.texi: Likewise.
45190         * doc/glibc-functions/rresvport_af.texi: Likewise.
45191         * doc/glibc-functions/setxattr.texi: Likewise.
45192         * doc/glibc-functions/strcasestr.texi: Likewise.
45193
45194 2008-12-15  Bruno Haible  <bruno@clisp.org>
45195
45196         Fix compilation error on OSF/1 4.0.
45197         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45198         <sys/time.h>, simply delegate to the system header.
45199         Reported by Daniel Richard G. <oss@teragram.com>.
45200
45201 2008-12-15  Bruno Haible  <bruno@clisp.org>
45202
45203         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45204         * doc/posix-functions/fchmodat.texi: Likewise.
45205         * doc/posix-functions/fchownat.texi: Likewise.
45206         * doc/posix-functions/fdopendir.texi: Likewise.
45207         * doc/posix-functions/fstatat.texi: Likewise.
45208         * doc/posix-functions/mkdirat.texi: Likewise.
45209         * doc/posix-functions/unlinkat.texi: Likewise.
45210
45211 2008-12-14  Bruno Haible  <bruno@clisp.org>
45212
45213         Update doc for POSIX:2008.
45214         * doc/posix-functions/faccessat.texi: New file.
45215         * doc/posix-functions/fchmodat.texi: New file.
45216         * doc/posix-functions/fchownat.texi: New file.
45217         * doc/posix-functions/fdopendir.texi: New file.
45218         * doc/posix-functions/fstatat.texi: New file.
45219         * doc/posix-functions/futimens.texi: New file.
45220         * doc/posix-functions/linkat.texi: New file.
45221         * doc/posix-functions/mkdirat.texi: New file.
45222         * doc/posix-functions/mkfifoat.texi: New file.
45223         * doc/posix-functions/mknodat.texi: New file.
45224         * doc/posix-functions/open_wmemstream.texi: New file.
45225         * doc/posix-functions/openat.texi: New file.
45226         * doc/posix-functions/psiginfo.texi: New file.
45227         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45228         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45229         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45230         * doc/posix-functions/readlinkat.texi: New file.
45231         * doc/posix-functions/renameat.texi: New file.
45232         * doc/posix-functions/strerror_l.texi: New file.
45233         * doc/posix-functions/symlinkat.texi: New file.
45234         * doc/posix-functions/unlinkat.texi: New file.
45235         * doc/posix-functions/utimensat.texi: New file.
45236         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45237
45238 2008-12-14  Bruno Haible  <bruno@clisp.org>
45239
45240         Update doc for POSIX:2008.
45241         * doc/posix-functions/alphasort.texi: Renamed from
45242         doc/glibc-functions/alphasort.texi.
45243         * doc/posix-functions/dirfd.texi: Renamed from
45244         doc/glibc-functions/dirfd.texi.
45245         * doc/posix-functions/dprintf.texi: Renamed from
45246         doc/glibc-functions/dprintf.texi.
45247         * doc/posix-functions/duplocale.texi: Renamed from
45248         doc/glibc-functions/duplocale.texi.
45249         * doc/posix-functions/fexecve.texi: Renamed from
45250         doc/glibc-functions/fexecve.texi.
45251         * doc/posix-functions/fmemopen.texi: Renamed from
45252         doc/glibc-functions/fmemopen.texi.
45253         * doc/posix-functions/freelocale.texi: Renamed from
45254         doc/glibc-functions/freelocale.texi.
45255         * doc/posix-functions/getdate_err.texi: Renamed from
45256         doc/glibc-functions/getdate_err.texi.
45257         * doc/posix-functions/isalnum_l.texi: Renamed from
45258         doc/glibc-functions/isalnum_l.texi.
45259         * doc/posix-functions/isalpha_l.texi: Renamed from
45260         doc/glibc-functions/isalpha_l.texi.
45261         * doc/posix-functions/isblank_l.texi: Renamed from
45262         doc/glibc-functions/isblank_l.texi.
45263         * doc/posix-functions/iscntrl_l.texi: Renamed from
45264         doc/glibc-functions/iscntrl_l.texi.
45265         * doc/posix-functions/isdigit_l.texi: Renamed from
45266         doc/glibc-functions/isdigit_l.texi.
45267         * doc/posix-functions/isgraph_l.texi: Renamed from
45268         doc/glibc-functions/isgraph_l.texi.
45269         * doc/posix-functions/islower_l.texi: Renamed from
45270         doc/glibc-functions/islower_l.texi.
45271         * doc/posix-functions/isprint_l.texi: Renamed from
45272         doc/glibc-functions/isprint_l.texi.
45273         * doc/posix-functions/ispunct_l.texi: Renamed from
45274         doc/glibc-functions/ispunct_l.texi.
45275         * doc/posix-functions/isspace_l.texi: Renamed from
45276         doc/glibc-functions/isspace_l.texi.
45277         * doc/posix-functions/isupper_l.texi: Renamed from
45278         doc/glibc-functions/isupper_l.texi.
45279         * doc/posix-functions/iswalnum_l.texi: Renamed from
45280         doc/glibc-functions/iswalnum_l.texi.
45281         * doc/posix-functions/iswalpha_l.texi: Renamed from
45282         doc/glibc-functions/iswalpha_l.texi.
45283         * doc/posix-functions/iswblank_l.texi: Renamed from
45284         doc/glibc-functions/iswblank_l.texi.
45285         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45286         doc/glibc-functions/iswcntrl_l.texi.
45287         * doc/posix-functions/iswctype_l.texi: Renamed from
45288         doc/glibc-functions/iswctype_l.texi.
45289         * doc/posix-functions/iswdigit_l.texi: Renamed from
45290         doc/glibc-functions/iswdigit_l.texi.
45291         * doc/posix-functions/iswgraph_l.texi: Renamed from
45292         doc/glibc-functions/iswgraph_l.texi.
45293         * doc/posix-functions/iswlower_l.texi: Renamed from
45294         doc/glibc-functions/iswlower_l.texi.
45295         * doc/posix-functions/iswprint_l.texi: Renamed from
45296         doc/glibc-functions/iswprint_l.texi.
45297         * doc/posix-functions/iswpunct_l.texi: Renamed from
45298         doc/glibc-functions/iswpunct_l.texi.
45299         * doc/posix-functions/iswspace_l.texi: Renamed from
45300         doc/glibc-functions/iswspace_l.texi.
45301         * doc/posix-functions/iswupper_l.texi: Renamed from
45302         doc/glibc-functions/iswupper_l.texi.
45303         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45304         doc/glibc-functions/iswxdigit_l.texi.
45305         * doc/posix-functions/isxdigit_l.texi: Renamed from
45306         doc/glibc-functions/isxdigit_l.texi.
45307         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45308         doc/glibc-functions/mbsnrtowcs.texi.
45309         * doc/posix-functions/mkdtemp.texi: Renamed from
45310         doc/glibc-functions/mkdtemp.texi.
45311         * doc/posix-functions/newlocale.texi: Renamed from
45312         doc/glibc-functions/newlocale.texi.
45313         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45314         doc/glibc-functions/nl_langinfo_l.texi.
45315         * doc/posix-functions/open_memstream.texi: Renamed from
45316         doc/glibc-functions/open_memstream.texi.
45317         * doc/posix-functions/opterr.texi: Renamed from
45318         doc/glibc-functions/opterr.texi.
45319         * doc/posix-functions/optind.texi: Renamed from
45320         doc/glibc-functions/optind.texi.
45321         * doc/posix-functions/optopt.texi: Renamed from
45322         doc/glibc-functions/optopt.texi.
45323         * doc/posix-functions/psignal.texi: Renamed from
45324         doc/glibc-functions/psignal.texi.
45325         * doc/posix-functions/scandir.texi: Renamed from
45326         doc/glibc-functions/scandir.texi.
45327         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45328         doc/glibc-functions/sched_get_priority_min.texi.
45329         * doc/posix-functions/signgam.texi: Renamed from
45330         doc/glibc-functions/signgam.texi.
45331         * doc/posix-functions/stpcpy.texi: Renamed from
45332         doc/glibc-functions/stpcpy.texi.
45333         * doc/posix-functions/stpncpy.texi: Renamed from
45334         doc/glibc-functions/stpncpy.texi.
45335         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45336         doc/glibc-functions/strcasecmp_l.texi.
45337         * doc/posix-functions/strcoll_l.texi: Renamed from
45338         doc/glibc-functions/strcoll_l.texi.
45339         * doc/posix-functions/strfmon_l.texi: Renamed from
45340         doc/glibc-functions/strfmon_l.texi.
45341         * doc/posix-functions/strftime_l.texi: Renamed from
45342         doc/glibc-functions/strftime_l.texi.
45343         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45344         doc/glibc-functions/strncasecmp_l.texi.
45345         * doc/posix-functions/strndup.texi: Renamed from
45346         doc/glibc-functions/strndup.texi.
45347         * doc/posix-functions/strnlen.texi: Renamed from
45348         doc/glibc-functions/strnlen.texi.
45349         * doc/posix-functions/strsignal.texi: Renamed from
45350         doc/glibc-functions/strsignal.texi.
45351         * doc/posix-functions/strxfrm_l.texi: Renamed from
45352         doc/glibc-functions/strxfrm_l.texi.
45353         * doc/posix-functions/timer_gettime.texi: Renamed from
45354         doc/glibc-functions/timer_gettime.texi.
45355         * doc/posix-functions/tolower_l.texi: Renamed from
45356         doc/glibc-functions/tolower_l.texi.
45357         * doc/posix-functions/toupper_l.texi: Renamed from
45358         doc/glibc-functions/toupper_l.texi.
45359         * doc/posix-functions/towctrans_l.texi: Renamed from
45360         doc/glibc-functions/towctrans_l.texi.
45361         * doc/posix-functions/towlower_l.texi: Renamed from
45362         doc/glibc-functions/towlower_l.texi.
45363         * doc/posix-functions/towupper_l.texi: Renamed from
45364         doc/glibc-functions/towupper_l.texi.
45365         * doc/posix-functions/uselocale.texi: Renamed from
45366         doc/glibc-functions/uselocale.texi.
45367         * doc/posix-functions/vdprintf.texi: Renamed from
45368         doc/glibc-functions/vdprintf.texi.
45369         * doc/posix-functions/wcpcpy.texi:
45370         Renamed from doc/glibc-functions/wcpcpy.texi.
45371         * doc/posix-functions/wcpncpy.texi: Renamed from
45372         doc/glibc-functions/wcpncpy.texi.
45373         * doc/posix-functions/wcscasecmp.texi: Renamed from
45374         doc/glibc-functions/wcscasecmp.texi.
45375         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45376         doc/glibc-functions/wcscasecmp_l.texi.
45377         * doc/posix-functions/wcscoll_l.texi: Renamed from
45378         doc/glibc-functions/wcscoll_l.texi.
45379         * doc/posix-functions/wcsdup.texi: Renamed from
45380         doc/glibc-functions/wcsdup.texi.
45381         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45382         doc/glibc-functions/wcsncasecmp.texi.
45383         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45384         doc/glibc-functions/wcsncasecmp_l.texi.
45385         * doc/posix-functions/wcsnlen.texi: Renamed from
45386         doc/glibc-functions/wcsnlen.texi.
45387         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45388         doc/glibc-functions/wcsnrtombs.texi.
45389         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45390         doc/glibc-functions/wcsxfrm_l.texi.
45391         * doc/posix-functions/wctrans_l.texi: Renamed from
45392         doc/glibc-functions/wctrans_l.texi.
45393         * doc/posix-functions/wctype_l.texi: Renamed from
45394         doc/glibc-functions/wctype_l.texi.
45395         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45396         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45397         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45398         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45399         these subsections.
45400         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45401         Remove sections.
45402
45403 2008-12-14  Bruno Haible  <bruno@clisp.org>
45404
45405         Update doc for POSIX:2008.
45406         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45407
45408 2008-12-14  Bruno Haible  <bruno@clisp.org>
45409
45410         Update doc for POSIX:2008.
45411         * doc/pastposix-functions/bcmp.texi: Renamed from
45412         doc/posix-functions/bcmp.texi.
45413         * doc/pastposix-functions/bcopy.texi: Renamed from
45414         doc/posix-functions/bcopy.texi.
45415         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45416         doc/posix-functions/bsd_signal.texi.
45417         * doc/pastposix-functions/bzero.texi: Renamed from
45418         doc/posix-functions/bzero.texi.
45419         * doc/pastposix-functions/ecvt.texi: Renamed from
45420         doc/posix-functions/ecvt.texi.
45421         * doc/pastposix-functions/fcvt.texi: Renamed from
45422         doc/posix-functions/fcvt.texi.
45423         * doc/pastposix-functions/ftime.texi: Renamed from
45424         doc/posix-functions/ftime.texi.
45425         * doc/pastposix-functions/gcvt.texi: Renamed from
45426         doc/posix-functions/gcvt.texi.
45427         * doc/pastposix-functions/getcontext.texi: Renamed from
45428         doc/posix-functions/getcontext.texi.
45429         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45430         doc/posix-functions/gethostbyaddr.texi.
45431         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45432         doc/posix-functions/gethostbyname.texi.
45433         * doc/pastposix-functions/getwd.texi: Renamed from
45434         doc/posix-functions/getwd.texi.
45435         * doc/pastposix-functions/h_errno.texi: Renamed from
45436         doc/posix-functions/h_errno.texi.
45437         * doc/pastposix-functions/index.texi: Renamed from
45438         doc/posix-functions/index.texi.
45439         * doc/pastposix-functions/makecontext.texi: Renamed from
45440         doc/posix-functions/makecontext.texi.
45441         * doc/pastposix-functions/mktemp.texi: Renamed from
45442         doc/posix-functions/mktemp.texi.
45443         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45444         doc/posix-functions/pthread_attr_getstackaddr.texi.
45445         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45446         doc/posix-functions/pthread_attr_setstackaddr.texi.
45447         * doc/pastposix-functions/rindex.texi: Renamed from
45448         doc/posix-functions/rindex.texi.
45449         * doc/pastposix-functions/scalb.texi: Renamed from
45450         doc/posix-functions/scalb.texi.
45451         * doc/pastposix-functions/setcontext.texi: Renamed from
45452         doc/posix-functions/setcontext.texi.
45453         * doc/pastposix-functions/swapcontext.texi: Renamed from
45454         doc/posix-functions/swapcontext.texi.
45455         * doc/pastposix-functions/ualarm.texi: Renamed from
45456         doc/posix-functions/ualarm.texi.
45457         * doc/pastposix-functions/usleep.texi: Renamed from
45458         doc/posix-functions/usleep.texi.
45459         * doc/pastposix-functions/vfork.texi: Renamed from
45460         doc/posix-functions/vfork.texi.
45461         * doc/pastposix-functions/wcswcs.texi: Renamed from
45462         doc/posix-functions/wcswcs.texi.
45463         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45464         (Function Substitutes): Update.
45465
45466 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45467
45468         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45469         m4/strerror.m4.
45470
45471 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45472             Bruno Haible  <bruno@clisp.org>
45473
45474         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45475
45476 2008-12-13  Bruno Haible  <bruno@clisp.org>
45477
45478         * modules/strtoull (Depends-on): Remove unistd.
45479
45480 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45481
45482         * modules/strtoull (Depends-on): Add stdlib.
45483
45484 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45485
45486         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45487
45488 2008-12-10  Jim Meyering  <meyering@redhat.com>
45489
45490         gl_ASSERT: don't say assertions are disabled when they're not
45491         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45492         "checking whether to enable assertions... no", when they are in
45493         fact enabled.  This is solely a bug in the output of configure.
45494         In spite of saying "no", NDEBUG was not defined in that case.
45495         Also, as noted by Eric Blake, leave assertions enabled upon
45496         --enable-assert=INVALID.
45497
45498 2008-12-10  Bruno Haible  <bruno@clisp.org>
45499
45500         Change MODULES.html to refer to POSIX:2008 where possible.
45501         * MODULES.html.sh (POSIX2008_URL): New variable.
45502         (posix_headers): Remove sys/timeb, ucontext.
45503         (posix2001_headers): New variable.
45504         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45505         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45506         index, makecontext, mktemp, pthread_attr_getstackaddr,
45507         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45508         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45509         (posix2001_functions): New variable.
45510         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45511         otherwise.
45512
45513 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45514
45515         add missing include to parse-duration.c
45516         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45517         * modules/parse-duration (Depends-on): Add xalloc.
45518
45519         fix sed script reading maint.mk
45520         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45521         (syntax-check-rules): Use it.
45522
45523 2008-12-09  Bruno Haible  <bruno@clisp.org>
45524
45525         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45526         MacOS X 10.4/PowerPC.
45527         Reported by Simon Josefsson.
45528
45529 2008-12-08  Jim Meyering  <meyering@redhat.com>
45530
45531         work around mingw's lack of some S_IF definitions
45532         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45533         Reported by Simon Josefsson.
45534
45535 2008-12-08  Bruno Haible  <bruno@clisp.org>
45536
45537         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45538         applied to variables. Needed on MacOS X 10.4/PowerPC.
45539         Reported by Simon Josefsson.
45540
45541 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45542         and Eric Blake  <ebb9@byu.net>
45543
45544         assert: honor --enable-assert
45545         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45546         order to honor --enable-assert, rather than treating it as a
45547         synonym for --disable-assert.
45548
45549 2008-12-08  Jim Meyering  <meyering@redhat.com>
45550
45551         * lib/posixtm.c: Remove now-useless declaration of mktime.
45552
45553         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45554
45555 2008-12-07  Bruno Haible  <bruno@clisp.org>
45556
45557         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45558         test_once): Mark functions as static.
45559         * tests/test-tls.c (test_tls): Likewise.
45560
45561 2008-12-07  Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45564         iconv_register_autodetect.
45565
45566 2008-12-07  Jim Meyering  <meyering@redhat.com>
45567
45568         posixtm.c: avoid a warning
45569         * lib/posixtm.c (posixtime): Don't initialize tm0.
45570         It's no longer needed to placate gcc4's -Wuninitialized,
45571         and the attempt to placate would elicit a new warning.
45572
45573         unicodeio.c: mark unused parameters
45574         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45575         (fallback_failure_callback): Likewise.
45576
45577 2008-12-07  Bruno Haible  <bruno@clisp.org>
45578
45579         * gnulib-tool (func_create_testdir): When building the tests
45580         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45581         Reported by Simon Josefsson.
45582
45583 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45584
45585         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45586
45587 2008-12-06  Bruno Haible  <bruno@clisp.org>
45588
45589         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45590         Suggested by Eric Blake.
45591
45592 2008-12-06  Bruno Haible  <bruno@clisp.org>
45593
45594         Fix a c-stack test failure on MacOS X.
45595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45596         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45597         handler for SIGBUS as well.
45598         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45599         install a signal handler for SIGBUS as well.
45600         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45601
45602 2008-12-06  Bruno Haible  <bruno@clisp.org>
45603
45604         Advocacy documentation.
45605         * doc/gnulib-intro.texi (Benefits): New section.
45606         * doc/gnulib.texi: Update.
45607
45608 2008-12-06  Bruno Haible  <bruno@clisp.org>
45609
45610         Document the 'manywarnings' module.
45611         * doc/manywarnings.texi: New file.
45612         * doc/gnulib.texi: Include it.
45613
45614 2008-12-05  Eric Blake  <ebb9@byu.net>
45615
45616         tests: silence some gcc warnings
45617         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45618         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45619         type mismatches.
45620
45621 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45622             Bruno Haible  <bruno@clisp.org>
45623
45624         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45625
45626 2008-11-29  Jim Meyering  <meyering@redhat.com>
45627
45628         unicodeio.c: mark unused parameters
45629         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45630         (fallback_failure_callback): Likewise.
45631
45632         fts: fix a thinko
45633         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45634         (set_stat_type): Return S_IF*-valued "type" directly.
45635         Prompted by James Youngman's spotting a related bug.
45636         Confirmed by further testing through find.
45637
45638         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45639         * lib/fts.c (D_TYPE): Define.
45640         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45641         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45642         (s_ifmt_shift_bits): New function.
45643         (set_stat_type): New function.
45644         (fts_build): When not calling fts_stat, call set_stat_type
45645         to propagate dirent.d_type info to fts_read caller.
45646         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45647         fts_statp->st_mode type information may be valid.
45648
45649 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45650
45651         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45652         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45653         <sds@gnu.org>.
45654
45655 2008-11-20  Bruno Haible  <bruno@clisp.org>
45656
45657         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45658         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45659         INCLUDE_NEXT.
45660         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45661         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45662         * modules/math (Makefile.am): Substitute
45663         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45665
45666 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45667             Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/stdint.in.h: Define all type macros so that their expansion is
45670         a single typedef'ed token. Fixes a compilation failure in Boost which
45671         does "using ::int8_t;".
45672
45673 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45674
45675         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45676         gl_MANYWARN_ALL_GCC.
45677         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45678         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45679         * modules/manywarnings: New file.
45680         * MODULES.html.sh: Mention manywarnings module.
45681
45682 2008-11-18  Bruno Haible  <bruno@clisp.org>
45683
45684         * doc/gnulib-tool.texi (Unit tests): New section.
45685
45686 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45687
45688         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45689         paths like 'lib/po/foo.po'.
45690
45691 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45692
45693         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45694         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45695
45696 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45697
45698         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45699         parameter works.
45700
45701 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45702
45703         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45704
45705 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45706
45707         * modules/parse-duration-tests: New file.
45708         * tests/test-parse-duration.sh: New file.
45709         * tests/test-parse-duration.c: New file.
45710
45711         New module 'parse-duration'.
45712         * lib/parse-duration.h: New file.
45713         * lib/parse-duration.c: New file.
45714         * modules/parse-duration: New file.
45715
45716 2008-11-17  Bruno Haible  <bruno@clisp.org>
45717
45718         * tests/test-select-out.sh: Comment out the first pipe test.
45719         Reported by Simon Josefsson.
45720
45721 2008-11-17  Bruno Haible  <bruno@clisp.org>
45722
45723         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45724         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45725         gl_HOSTENT.
45726
45727 2008-11-17  Bruno Haible  <bruno@clisp.org>
45728
45729         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45730         -lnetwork and -lnet. Needed for Haiku and BeOS.
45731
45732 2008-11-16  Bruno Haible  <bruno@clisp.org>
45733
45734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45735
45736 2008-11-16  Bruno Haible  <bruno@clisp.org>
45737
45738         Avoid test failure on Haiku.
45739         * tests/test-fsync.c: Include <errno.h>.
45740         (main): Don't require that fsync (0) fails.
45741
45742 2008-11-15  Bruno Haible  <bruno@clisp.org>
45743
45744         New module 'hostent'.
45745         * modules/hostent: New file.
45746         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45747
45748 2008-11-15  Bruno Haible  <bruno@clisp.org>
45749
45750         New module 'servent'.
45751         * modules/servent: New file.
45752         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45753
45754 2008-11-15  Bruno Haible  <bruno@clisp.org>
45755
45756         Avoid generating same test program with two different rules.
45757         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45758         test-frexp to test-frexp-nolibm.
45759         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45760         test-frexpl to test-frexpl-nolibm.
45761
45762 2008-11-15  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45765         $(FREXPL_LIBM).
45766
45767 2008-11-15  Bruno Haible  <bruno@clisp.org>
45768
45769         * lib/netdb.in.h: Activate the definitions also when the system's
45770         <netdb.h> has 'struct addrinfo'.
45771         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45772         EAI_OVERFLOW or AI_NUMERICSERV.
45773         * doc/posix-headers/netdb.texi: Document the problem.
45774
45775 2008-11-15  Bruno Haible  <bruno@clisp.org>
45776
45777         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45778
45779         Make the 'sched' module work on platforms where <sched.h> exists but
45780         is incomplete (such as Haiku).
45781         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45782         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45783         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45784         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45785         HAVE_STRUCT_SCHED_PARAM.
45786         * modules/sched (Depends-on): Add include_next.
45787         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45788         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45789         * doc/posix-headers/sched.texi: Document the issue.
45790
45791 2008-11-13  Jim Meyering  <meyering@redhat.com>
45792
45793         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45794         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45795         test would fail due to the difference in the Report bugs to ...
45796         line.  The expected address is empty, "<>", while the actual
45797         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45798
45799 2008-11-12  Bruno Haible  <bruno@clisp.org>
45800
45801         lstat: don't compile lstat.c on systems lacking lstat
45802         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45803         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45804         Reported by Daniel P. Berrange via Jim Meyering.
45805
45806 2008-11-12  Jim Meyering  <meyering@redhat.com>
45807
45808         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45809
45810 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45811
45812         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45813         instead.
45814
45815 2008-11-12  Bruno Haible  <bruno@clisp.org>
45816
45817         * lib/unicodeio.c: Include unistr.h.
45818         (utf8_wctomb): Remove function.
45819         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45820
45821 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45822
45823         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45824         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45825         <bruno@clisp.org>.
45826         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45827
45828 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45829
45830         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45831         * doc/gnulib.texi: Add section for warnings.
45832
45833 2008-11-11  Bruno Haible  <bruno@clisp.org>
45834
45835         * lib/sockets.h: Add a comment.
45836
45837 2008-11-11  Karl Berry  <karl@gnu.org>
45838
45839         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45840
45841 2008-11-11  Eric Blake  <ebb9@byu.net>
45842
45843         fdl.texi: avoid git symlinks
45844         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45845
45846 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45847
45848         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45849
45850 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45851
45852         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45853         (gl_WARN_ADD): Substitute $2 if literal.
45854
45855 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45856
45857         * m4/warning.m4: Remove.
45858
45859 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45860
45861         * m4/warnings.m4: Almost complete rewrite. :-)
45862
45863 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45864
45865         * modules/warnings: New module.
45866         * m4/warnings.m4: New file.
45867         * MODULES.html.sh: Mention warnings module.
45868         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45869         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45870
45871 2008-11-10  Eric Blake  <ebb9@byu.net>
45872
45873         fdl.texi: make a symlink to the latest version
45874         * doc/standards.texi: Revert today's earlier change.
45875         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45876         * doc/fdl.texi: ...and replace this with a symlink to the newer
45877         fdl-1.3.texi.
45878
45879 2008-11-10  Bruno Haible  <bruno@clisp.org>
45880
45881         * tests/test-select-fd.c (main): Accept the result file name as fourth
45882         argument.
45883         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45884         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45885
45886 2008-11-10  Bruno Haible  <bruno@clisp.org>
45887
45888         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45889         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45890         as autoconf-substituted macros.
45891         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45892         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45893         gl_NETDB_H_DEFAULTS. Set these variables.
45894         * modules/netdb (Makefile.am): Substitute these variables.
45895
45896 2008-11-10  Eric Blake  <ebb9@byu.net>
45897
45898         standards.texi: include correct file for FDL 1.3
45899         * doc/standards.texi (GNU Free Documentation License): Change
45900         include file to pull in FDL 1.3, not 1.2.
45901
45902         fdl.texi: revert accidental change to license
45903         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45904
45905 2008-11-10  Bruno Haible  <bruno@clisp.org>
45906
45907         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45908         cross-compiling guesses also when the native compile gives no result.
45909
45910 2008-11-10  Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/spawni.c (__spawni): Force variable into the stack.
45913
45914 2008-11-10  Bruno Haible  <bruno@clisp.org>
45915
45916         Add support for Haiku.
45917         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45918         glibc and BeOS, but also on Haiku.
45919         * lib/fpurge.c (fpurge): Likewise.
45920         * lib/freadable.c (freadable): Likewise.
45921         * lib/freadahead.c (freadahead): Likewise.
45922         * lib/freading.c (freading): Likewise.
45923         * lib/freadptr.c (freadptr): Likewise.
45924         * lib/freadseek.c (freadptrinc): Likewise.
45925         * lib/fseeko.c (rpl_fseeko): Likewise.
45926         * lib/fseterr.c (fseterr): Likewise.
45927         * lib/fwritable.c (fwritable): Likewise.
45928         * lib/fwriting.c (fwriting): Likewise.
45929         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45930
45931 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45932
45933         * lib/config.charset: Treat Haiku like BeOS.
45934
45935 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45936
45937         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45938         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45939
45940 2008-11-08  Bruno Haible  <bruno@clisp.org>
45941
45942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45943         AC_CACHE_CHECK.
45944
45945 2008-11-08  Bruno Haible  <bruno@clisp.org>
45946
45947         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45948
45949 2008-11-08  Bruno Haible  <bruno@clisp.org>
45950
45951         * tests/test-select-fd.c: New file.
45952         * tests/test-select-in.sh: New file.
45953         * tests/test-select-out.sh: New file.
45954         * tests/test-select-stdin.c: New file.
45955         * modules/select-tests (Files): Add the new files.
45956         (Depends-on): Add gettimeofday.
45957         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45958         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45959         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45960
45961 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45962             Bruno Haible  <bruno@clisp.org>
45963
45964         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45965
45966 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45967
45968         * build-aux/pmccabe2html: Added support for C++ source files.
45969
45970 2008-11-05  Ben Pfaff  <blp@gnu.org>
45971
45972         Fix lib/close.c build on Windows.
45973         * modules/close (Files): Add lib/w32sock.h.
45974
45975 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45976
45977         Accept Bison's NEWS format.
45978         * build-aux/announce-gen (print_news_deltas): Tweak
45979         $re_prefix.
45980
45981 2008-11-04  Bruno Haible  <bruno@clisp.org>
45982
45983         * modules/random_r (Maintainer): Add glibc.
45984
45985 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45986
45987         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45988         by karl@freefriends.org (Karl Berry).
45989         * doc/alloca.texi: Likewise.
45990         * doc/c-ctype.texi: Likewise.
45991         * doc/c-strcase.texi: Likewise.
45992         * doc/c-strcaseeq.texi: Likewise.
45993         * doc/c-strcasestr.texi: Likewise.
45994         * doc/c-strstr.texi: Likewise.
45995         * doc/c-strtod.texi: Likewise.
45996         * doc/c-strtold.texi: Likewise.
45997         * doc/ctime.texi: Likewise.
45998         * doc/error.texi: Likewise.
45999         * doc/fdl.texi: Likewise.
46000         * doc/gcd.texi: Likewise.
46001         * doc/getdate.texi: Likewise.
46002         * doc/gnulib-intro.texi: Likewise.
46003         * doc/gnulib-tool.texi: Likewise.
46004         * doc/gnulib.texi: Likewise.
46005         * doc/inet_ntoa.texi: Likewise.
46006         * doc/maintain.texi: Likewise.
46007         * doc/make-stds.texi: Likewise.
46008         * doc/quote.texi: Likewise.
46009         * doc/regexprops-generic.texi: Likewise.
46010         * doc/standards.texi: Likewise.
46011         * doc/verify.texi: Likewise.
46012         * doc/visibility.texi: Likewise.
46013         * doc/gnulib.texi (GNU Free Documentation License): Include
46014         fdl-1.3.texi instead of fdl.texi.
46015
46016 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46017
46018         * doc/fdl-1.3.texi: New file, from
46019         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46020         * modules/fdl-1.3: Add.
46021         * MODULES.html.sh: Add fdl-1.3.
46022
46023 2008-11-03  Bruno Haible  <bruno@clisp.org>
46024
46025         Make determination of absolute name of header file work with AIX xlc.
46026         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46027         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46028         preprocessing.
46029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46030         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46031
46032 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46033
46034         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46035         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46036         <ludo@gnu.org>.
46037
46038 2008-11-02  Bruno Haible  <bruno@clisp.org>
46039
46040         Mark 'strpbrk' obsolete.
46041         * modules/strpbrk (Status, Notice): New sections.
46042         * modules/strtok_r (Depends-on): Add strpbrk.
46043
46044 2008-11-02  Bruno Haible  <bruno@clisp.org>
46045
46046         Mark 'strdup' obsolete.
46047         * modules/strdup (Status, Notice): New sections.
46048         * modules/findprog (Depends-on): Add strdup.
46049         * modules/getaddrinfo (Depends-on): Likewise.
46050         * modules/localename (Depends-on): Likewise.
46051         * modules/relocatable-lib (Depends-on): Likewise.
46052         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46053         * modules/relocatable-prog (Depends-on): Likewise.
46054         * modules/trim (Depends-on): Likewise.
46055         * modules/unictype/gen-ctype (Depends-on): Likewise.
46056         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46057
46058 2008-11-02  Bruno Haible  <bruno@clisp.org>
46059
46060         Mark 'strcspn' obsolete.
46061         * modules/strcspn (Status, Notice): New sections.
46062
46063 2008-11-02  Bruno Haible  <bruno@clisp.org>
46064
46065         Mark 'rmdir' obsolete.
46066         * modules/rmdir (Status, Notice): New sections.
46067         * modules/clean-temp (Depends-on): Add rmdir.
46068         * modules/openat (Depends-on): Likewise.
46069
46070 2008-11-02  Bruno Haible  <bruno@clisp.org>
46071
46072         Mark 'raise' obsolete.
46073         * modules/raise (Status, Notice): New sections.
46074         (Include): Specify <signal.h>.
46075         * modules/stdio (Depends-on): Add raise.
46076         * modules/write (Depends-on): Likewise.
46077
46078 2008-11-02  Bruno Haible  <bruno@clisp.org>
46079
46080         Mark 'memset' obsolete.
46081         * modules/memset (Status, Notice): New sections.
46082
46083 2008-11-02  Bruno Haible  <bruno@clisp.org>
46084
46085         Mark 'memmove' obsolete.
46086         * modules/memmove (Status, Notice): New sections.
46087         * modules/argp (Depends-on): Add memmove.
46088         * modules/argz (Depends-on): Likewise.
46089         * modules/canonicalize (Depends-on): Likewise.
46090         * modules/canonicalize-lgpl (Depends-on): Likewise.
46091         * modules/fts (Depends-on): Likewise.
46092         * modules/getcwd (Depends-on): Likewise.
46093         * modules/human (Depends-on): Likewise.
46094         * modules/regex (Depends-on): Likewise.
46095         * modules/striconveh (Depends-on): Likewise.
46096         * modules/trim (Depends-on): Likewise.
46097         * modules/unistr/u8-move (Depends-on): Likewise.
46098         * modules/unistr/u16-move (Depends-on): Likewise.
46099         * modules/unistr/u32-move (Depends-on): Likewise.
46100
46101 2008-11-02  Bruno Haible  <bruno@clisp.org>
46102
46103         Mark 'memcpy' obsolete.
46104         * modules/memcpy (Status, Notice): New sections.
46105
46106 2008-11-02  Bruno Haible  <bruno@clisp.org>
46107
46108         Mark 'memcmp' obsolete.
46109         * modules/memcmp (Status, Notice): New sections.
46110         * modules/argmatch (Depends-on): Add memchr.
46111         * modules/backupfile (Depends-on): Likewise.
46112         * modules/c-strcasestr (Depends-on): Likewise.
46113         * modules/crypto/des (Depends-on): Likewise.
46114         * modules/csharpcomp (Depends-on): Likewise.
46115         * modules/fnmatch (Depends-on): Likewise.
46116         * modules/git-merge-changelog (Depends-on): Likewise.
46117         * modules/isnand (Depends-on): Likewise.
46118         * modules/isnand-nolibm (Depends-on): Likewise.
46119         * modules/isnanf (Depends-on): Likewise.
46120         * modules/isnanf-nolibm (Depends-on): Likewise.
46121         * modules/isnanl (Depends-on): Likewise.
46122         * modules/isnanl-nolibm (Depends-on): Likewise.
46123         * modules/mbchar (Depends-on): Likewise.
46124         * modules/memcoll (Depends-on): Likewise.
46125         * modules/quotearg (Depends-on): Likewise.
46126         * modules/regex (Depends-on): Likewise.
46127         * modules/relocatable-prog (Depends-on): Likewise.
46128         * modules/same (Depends-on): Likewise.
46129         * modules/signbit (Depends-on): Likewise.
46130         * modules/strcasestr-simple (Depends-on): Likewise.
46131         * modules/unictype/gen-ctype (Depends-on): Likewise.
46132         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46133         * modules/uniname/uniname (Depends-on): Likewise.
46134         * modules/unistr/u8-cmp (Depends-on): Likewise.
46135
46136 2008-11-02  Bruno Haible  <bruno@clisp.org>
46137
46138         Mark 'memchr' obsolete.
46139         * modules/memchr (Status, Notice): New sections.
46140         * modules/argp (Depends-on): Add memchr.
46141         * modules/base64 (Depends-on): Likewise.
46142         * modules/c-strcasestr (Depends-on): Likewise.
46143         * modules/chdir-long (Depends-on): Likewise.
46144         * modules/fnmatch (Depends-on): Likewise.
46145         * modules/getsubopt (Depends-on): Likewise.
46146         * modules/git-merge-changelog (Depends-on): Likewise.
46147         * modules/glob (Depends-on): Likewise.
46148         * modules/strcasestr-simple (Depends-on): Likewise.
46149         * modules/strnlen (Depends-on): Likewise.
46150
46151 2008-11-02  Bruno Haible  <bruno@clisp.org>
46152
46153         Mark 'atexit' obsolete.
46154         * modules/atexit (Status, Notice): New sections.
46155         * modules/chdir-long (Depends-on): Add atexit.
46156         * modules/wait-process (Depends-on): Likewise.
46157
46158 2008-11-02  Bruno Haible  <bruno@clisp.org>
46159
46160         * gnulib-tool: New option --with-obsolete.
46161         (func_usage): Document it.
46162         (func_modules_transitive_closure): Drop obsolete dependencies if
46163         incobsolete is not true.
46164         (func_import): Read and save the incobsolete variable to the cache.
46165
46166 2008-11-02  Bruno Haible  <bruno@clisp.org>
46167
46168         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46169         * gnulib-tool: New option --extract-status.
46170         (func_usage): Document it.
46171         (sed_extract_prog): Recognize it.
46172         (func_get_status): New function.
46173
46174 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46175
46176         * modules/sockets (License): Change from LGPL to LGPLv2+.
46177
46178 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46179
46180         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46181
46182 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46183
46184         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46185         Mention times and sys_times.
46186         * modules/sys_times, modules/sys_times-tests: New modules.
46187         * modules/times, modules/times-tests: Likewise
46188         * m4/sys_times_h.m4: New file.
46189         * lib/sys_times.in.h: Likewise
46190         * lib/times.c: Likewise.
46191         * tests/test-sys_times.c: Likewise.
46192         * tests/test-times.c: Likewise.
46193         * doc/posix-headers/sys_times.texi: Update.
46194         * doc/posix-functions/times.texi: Update.
46195
46196 2008-10-28  Jim Meyering  <meyering@redhat.com>
46197
46198         * modules/tempname (Depends-on): Add lstat.
46199
46200         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46201
46202 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46203
46204         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46205         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46206         using idiom used elsewhere in gnulib.
46207
46208 2008-10-27  Jim Meyering  <meyering@redhat.com>
46209
46210         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46211
46212 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46213
46214         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46215         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46216         programs.
46217         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46218
46219 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46220
46221         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46222
46223 2008-10-27  Bruno Haible  <bruno@clisp.org>
46224
46225         * tests/test-lstat.c: Include <stdio.h>.
46226
46227 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46228
46229         * modules/lstat-tests: New module.
46230         * tests/test-lstat.c: New file.
46231
46232 2008-10-26  Jim Meyering  <meyering@redhat.com>
46233
46234         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46235
46236 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46237             Bruno Haible  <bruno@clisp.org>
46238
46239         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46240         * modules/configmake (Include): Add a note that the include must come
46241         after all system headers.
46242         * lib/javaversion.c: Include configmake.h after all other includes.
46243
46244 2008-10-26  Bruno Haible  <bruno@clisp.org>
46245
46246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46247         HAVE_STRUCT_RANDOM_DATA to 1.
46248         (gl_STDLIB_H): Simplify.
46249
46250 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46251
46252         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46253         substitute HAVE_STRUCT_RANDOM_DATA.
46254         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46255         random_data.
46256         * modules/stdlib (Makefile.am): Substitute
46257         HAVE_STRUCT_RANDOM_DATA.
46258
46259 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46260
46261         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46262         * doc/gnulib-intro.texi (Copyright): Likewise.
46263
46264 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46265
46266         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46267         findings.
46268
46269 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46270             Bruno Haible  <bruno@clisp.org>
46271
46272         * lib/unistd.in.h: Include <winsock2.h>.
46273         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46274         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46275         Provide dummy declarations.
46276         (gethostname): Override.
46277         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46278         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46279         gl_PREREQ_SYS_H_WINSOCK2.
46280         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46281         * doc/posix-functions/gethostname.texi: More details.
46282
46283 2008-10-25  Bruno Haible  <bruno@clisp.org>
46284
46285         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46286         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46287         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46288
46289         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46290         here ...
46291         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46292         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46293         gl_UNISTD_H_DEFAULTS.
46294
46295 2008-10-25  Eric Blake  <ebb9@byu.net>
46296
46297         signbit: avoid spurious compiler failure
46298         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46299         declarations inside function.
46300
46301 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46302             Bruno Haible  <bruno@clisp.org>
46303
46304         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46305         * modules/random_r (Depends-on): Add stdint.
46306
46307 2008-10-24  Bruno Haible  <bruno@clisp.org>
46308
46309         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46310         Eggert.
46311         * modules/strerror (License): Likewise.
46312
46313 2008-10-24  Jim Meyering  <meyering@redhat.com>
46314
46315         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46316         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46317
46318 2008-10-24  Eric Blake  <ebb9@byu.net>
46319
46320         getgroups: fix compilation when getgroups is available
46321         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46322         but with <config.h> override of getgroups disabled.
46323
46324 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46325
46326         * doc/gnulib.texi (Header files): Add note about C++ problems.
46327         Explained by Bruno Haible <bruno@clisp.org>.
46328
46329 2008-10-23  Bruno Haible  <bruno@clisp.org>
46330
46331         Define a dummy SA_NODEFER macro on Interix.
46332         * lib/signal.in.h (SA_NODEFER): Define fallback.
46333         Reported by Aleksey Cheusov <cheusov@tut.by> via
46334         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46335
46336 2008-10-23  Bruno Haible  <bruno@clisp.org>
46337
46338         * modules/freadahead (License): Change to LGPLv2+.
46339         Suggested by Simon Josefsson.
46340
46341 2008-10-23  Jim Meyering  <meyering@redhat.com>
46342
46343         random_r: new module
46344         * modules/random_r: New file.
46345         * m4/random_r.m4: New file.
46346         * lib/random_r.c: New file, from glibc.
46347         * modules/random_r-tests: New file.
46348         * tests/test-random_r.c: New file.
46349         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46350          Declare.
46351         (RAND_MAX): Define.
46352         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46353         * modules/stdlib: Substitute them, too.
46354         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46355         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46356         * doc/glibc-functions/random_r.texi: Likewise.
46357         * doc/glibc-functions/setstate_r.texi: Likewise.
46358         * doc/glibc-functions/srandom_r.texi: Likewise.
46359         * config/srclist.txt: Mention it.
46360
46361 2008-10-23  David Lutterkort  <lutter@redhat.com>
46362
46363         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46364         link requirement
46365
46366 2008-10-23  Jim Meyering  <meyering@redhat.com>
46367
46368         selinux-h: mark parameters of stub functions as intentionally unused
46369         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46370         * lib/se-context.in.h: Likewise.
46371
46372 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46373
46374         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46375
46376 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46377
46378         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46379
46380 2008-10-22  Eric Blake  <ebb9@byu.net>
46381
46382         glthread/thread: avoid compiler warning
46383         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46384         Add unreachable abort to silence compiler.
46385
46386 2008-10-22  Eric Blake  <ebb9@byu.net>
46387
46388         netdb: also supply struct addrinfo for cygwin 1.5.x
46389         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46390         older cygwin.
46391         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46392         cygwin.
46393         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46394
46395 2008-10-22  Bruno Haible  <bruno@clisp.org>
46396
46397         * users.txt: Update entry about pspp.
46398
46399 2008-10-21  Bruno Haible  <bruno@clisp.org>
46400
46401         Simplification.
46402         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46403         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46404
46405         Simplification.
46406         * lib/ioctl.c (ioctl): Don't undefine.
46407         * lib/socket.c (socket): Don't undefine.
46408
46409         Remove unused module indicator macros.
46410         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46411         GNULIB_$1 as a C macro.
46412
46413         * doc/posix-functions/close.texi: Undo last change.
46414         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46415         Windows platforms.
46416
46417 2008-10-21  Bruno Haible  <bruno@clisp.org>
46418
46419         Add gethostname() declaration to <unistd.h>.
46420         * lib/unistd.in.h (gethostname): New declaration.
46421         * lib/gethostname.c: Include <unistd.h>.
46422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46423         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46425         and HAVE_GETHOSTNAME.
46426         * modules/gethostname (Depends-on): Add unistd.
46427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46428         (Include): Specify <unistd.h>.
46429         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46430         HAVE_GETHOSTNAME.
46431         * tests/test-gethostname.c: Include <unistd.h> first.
46432
46433 2008-10-21  Bruno Haible  <bruno@clisp.org>
46434
46435         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46436         * modules/select-tests (Depends-on): Likewise.
46437         Reported by Simon Josefsson.
46438
46439 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46440
46441         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46442         * lib/accept.c: New file, based on winsock.c.
46443         * lib/bind.c: New file, based on winsock.c.
46444         * lib/connect.c: New file, based on winsock.c.
46445         * lib/getpeername.c: New file, based on winsock.c.
46446         * lib/getsockname.c: New file, based on winsock.c.
46447         * lib/getsockopt.c: New file, based on winsock.c.
46448         * lib/ioctl.c: New file, based on winsock.c.
46449         * lib/listen.c: New file, based on winsock.c.
46450         * lib/recv.c: New file, based on winsock.c.
46451         * lib/recvfrom.c: New file, based on winsock.c.
46452         * lib/send.c: New file, based on winsock.c.
46453         * lib/sendto.c: New file, based on winsock.c.
46454         * lib/setsockopt.c: New file, based on winsock.c.
46455         * lib/shutdown.c: New file, based on winsock.c.
46456         * lib/socket.c: New file, based on winsock.c.
46457         * lib/w32sock.h: New file, based on winsock.c.
46458         * lib/winsock.c: Remove file.
46459         * modules/accept: Likewise.
46460         * modules/bind: Likewise.
46461         * modules/connect: Likewise.
46462         * modules/getpeername: Likewise.
46463         * modules/getsockname: Likewise.
46464         * modules/getsockopt: Likewise.
46465         * modules/ioctl: Likewise.
46466         * modules/listen: Likewise.
46467         * modules/recv: Likewise.
46468         * modules/recvfrom: Likewise.
46469         * modules/send: Likewise.
46470         * modules/sendto: Likewise.
46471         * modules/setsockopt: Likewise.
46472         * modules/shutdown: Likewise.
46473         * modules/socket: Use socket.c instead of winsock.c.
46474         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46475         * doc/posix-functions/accept.texi: Doc fix.
46476         * doc/posix-functions/bind.texi: Doc fix.
46477         * doc/posix-functions/close.texi: Doc fix.
46478         * doc/posix-functions/connect.texi: Doc fix.
46479         * doc/posix-functions/getpeername.texi: Doc fix.
46480         * doc/posix-functions/getsockname.texi: Doc fix.
46481         * doc/posix-functions/getsockopt.texi: Doc fix.
46482         * doc/posix-functions/ioctl.texi: Doc fix.
46483         * doc/posix-functions/listen.texi: Doc fix.
46484         * doc/posix-functions/recv.texi: Doc fix.
46485         * doc/posix-functions/recvfrom.texi: Doc fix.
46486         * doc/posix-functions/send.texi: Doc fix.
46487         * doc/posix-functions/sendto.texi: Doc fix.
46488         * doc/posix-functions/setsockopt.texi: Doc fix.
46489         * doc/posix-functions/shutdown.texi: Doc fix.
46490         * doc/posix-functions/socket.texi: Doc fix.
46491
46492 2008-10-20  Bruno Haible  <bruno@clisp.org>
46493
46494         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46495         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46496         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46497         as an alias for SIGABRT.
46498         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46499         (sigaction): Map it to SIGABRT.
46500         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46501
46502 2008-10-20  Bruno Haible  <bruno@clisp.org>
46503
46504         * lib/fts.c: Don't include lstat.h.
46505         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46506
46507         Move the lstat() declaration to <sys/stat.h>.
46508         * lib/lstat.h: Remove file.
46509         * lib/sys_stat.in.h: Add special invocation convention.
46510         (lstat): New declaration.
46511         * lib/lstat.c (orig_lstat): New function.
46512         (rpl_lstat): Use orig_lstat instead of lstat.
46513         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46514         AC_C_INLINE. Set REPLACE_LSTAT.
46515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46516         and REPLACE_LSTAT.
46517         * modules/lstat (Files): Remove lib/lstat.h.
46518         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46519         (Include): Specify <sys/stat.h> instead of lstat.h.
46520         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46521         REPLACE_LSTAT.
46522         * NEWS: Mention the change.
46523
46524 2008-10-20  Bruno Haible  <bruno@clisp.org>
46525
46526         * modules/posix_spawn-tests: New file.
46527         * tests/test-posix_spawn3.c: New file.
46528
46529 2008-10-20  Bruno Haible  <bruno@clisp.org>
46530
46531         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46532         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46533         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46534         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46535         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46536
46537 2008-10-20  Bruno Haible  <bruno@clisp.org>
46538
46539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46540         of posix_spawn on AIX 5.3.
46541
46542 2008-10-20  Bruno Haible  <bruno@clisp.org>
46543
46544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46545
46546 2008-10-20  Bruno Haible  <bruno@clisp.org>
46547
46548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46549         of AC_LANG_PROGRAM.
46550
46551 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46552
46553         * lib/netdb.in.h: Don't define GNU specific constants until they
46554         are supported or needed.  Reported by Bruno Haible
46555         <bruno@clisp.org>.
46556
46557 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46558
46559         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46560
46561 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46562
46563         * lib/getaddrinfo.h: Remove file.
46564         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46565         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46566         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46567         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46568         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46569         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46570         * tests/test-getaddrinfo.c: Likewise.
46571         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46572         * NEWS: Mention change.
46573
46574 2008-10-19  Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46577
46578 2008-10-19  Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/wait-process.c: Include simply <sys/wait.h>.
46581         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46582         WIFSTOPPED): Remove fallback definitions.
46583         * modules/wait-process (Depends-on): Add sys_wait.
46584
46585         New module 'sys_wait'.
46586         * modules/sys_wait: New file.
46587         * lib/sys_wait.in.h: New file, partially copied from
46588         lib/wait-process.c.
46589         * m4/sys_wait_h.m4: New file.
46590         * doc/posix-headers/sys_wait.texi: Mention the new module.
46591
46592 2008-10-19  Bruno Haible  <bruno@clisp.org>
46593
46594         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46595
46596 2008-10-19  Bruno Haible  <bruno@clisp.org>
46597
46598         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46599         * lib/wait-process.c (WAIT_T): Remove type.
46600         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46601         (wait_subprocess): Update.
46602
46603 2008-10-19  Bruno Haible  <bruno@clisp.org>
46604
46605         New module 'atoll'.
46606         * modules/atoll: New file.
46607         * lib/stdlib.in.h (atoll): New declaration.
46608         * lib/atoll.c: New file, from glibc with modifications.
46609         * m4/atoll.m4: New file.
46610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46611         HAVE_ATOLL.
46612         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46613         * doc/posix-functions/atoll.texi: Mention the new module.
46614
46615 2008-10-19  Bruno Haible  <bruno@clisp.org>
46616
46617         Add strtoull() declaration to <stdlib.h>.
46618         * lib/stdlib.in.h (strtoull): New declaration.
46619         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46620         Set HAVE_STRTOULL.
46621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46622         HAVE_STRTOULL.
46623         * modules/strtoull (Depends-on): Add stdlib.
46624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46625         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46626         HAVE_STRTOULL.
46627
46628 2008-10-19  Bruno Haible  <bruno@clisp.org>
46629
46630         Add strtoll() declaration to <stdlib.h>.
46631         * lib/stdlib.in.h (strtoll): New declaration.
46632         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46633         Set HAVE_STRTOLL.
46634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46635         HAVE_STRTOLL.
46636         * modules/strtoll (Depends-on): Add stdlib.
46637         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46638         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46639
46640 2008-10-19  Bruno Haible  <bruno@clisp.org>
46641
46642         * modules/bcopy (Depends-on): Add strings.
46643         (Include): Specify <strings.h>.
46644
46645 2008-10-19  Bruno Haible  <bruno@clisp.org>
46646
46647         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46648
46649 2008-10-19  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46652         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46653         mingw.
46654
46655 2008-10-19  Bruno Haible  <bruno@clisp.org>
46656
46657         * lib/atanl.c: Don't include isnanl.h.
46658         * lib/cosl.c: Likewise.
46659         * lib/ldexpl.c: Likewise.
46660         * lib/logl.c: Likewise.
46661         * lib/sinl.c: Likewise.
46662         * lib/sqrtl.c: Likewise.
46663         * lib/tanl.c: Likewise.
46664
46665         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46666         * lib/isnanf.h: Remove file.
46667         * lib/isnand.h: Remove file.
46668         * lib/isnanl.h: Remove file.
46669         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46670         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46671         macros.
46672         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46673         HAVE_ISNANF, don't define it as a C macro.
46674         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46675         HAVE_ISNAND, don't define it as a C macro.
46676         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46677         HAVE_ISNANL, don't define it as a C macro.
46678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46679         HAVE_ISNAN[FDL].
46680         * modules/isnanf (Files): Remove lib/isnanf.h.
46681         (Depends-on): Add math.
46682         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46683         (Include): Specify <math.h> instead of isnanf.h.
46684         * modules/isnand (Files): Remove lib/isnand.h.
46685         (Depends-on): Add math.
46686         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46687         (Include): Specify <math.h> instead of isnand.h.
46688         * modules/isnanl (Files): Remove lib/isnanl.h.
46689         (Depends-on): Add math.
46690         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46691         (Include): Specify <math.h> instead of isnanl.h.
46692         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46693         HAVE_ISNAN[FDL].
46694         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46695         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46696         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46697         * NEWS: Mention the change.
46698
46699 2008-10-18  Bruno Haible  <bruno@clisp.org>
46700
46701         Add getusershell(), setusershell(), endusershell() declarations to
46702         <unistd.h>.
46703         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46704         declarations.
46705         * lib/getusershell.c: Include unistd.h.
46706         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46707         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46708         HAVE_GETUSERSHELL.
46709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46710         and HAVE_GETUSERSHELL.
46711         * modules/getusershell (Depends-on): Add unistd, extensions.
46712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46713         (Include): Specify <unistd.h>.
46714         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46715         HAVE_GETUSERSHELL.
46716
46717 2008-10-18  Bruno Haible  <bruno@clisp.org>
46718
46719         Add a getloadavg() declaration to <stdlib.h>.
46720         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46721         getloadavg declaration.
46722         (getloadavg): New declaration.
46723         * lib/getloadavg.c: Include <stdlib.h> first.
46724         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46725         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46726         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46728         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46729         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46730         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46731         (Include): Specify <stdlib.h>.
46732         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46733         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46734
46735 2008-10-18  Bruno Haible  <bruno@clisp.org>
46736
46737         * lib/dirchownmod.c: Don't include lchmod.h.
46738
46739         Move the lchmod() declaration to <sys/stat.h>.
46740         * lib/lchmod.h: Remove file.
46741         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46742         (lchmod): New declaration, moved here from lib/lchown.h.
46743         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46744         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46745         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46746         and HAVE_LCHMOD.
46747         * modules/lchmod (Files): Remove lib/lchmod.h.
46748         (Depends-on): Add sys_stat, extensions.
46749         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46750         (Include): Specify <sys/stat.h> instead of lchmod.h.
46751         * modules/sys_stat (Depends-on): Add link-warning.
46752         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46753         definition of GL_LINK_WARNING.
46754         * NEWS: Mention the change.
46755
46756 2008-10-18  Bruno Haible  <bruno@clisp.org>
46757
46758         * lib/fchdir.c: Don't include dirfd.h.
46759         * lib/fts.c: Likewise.
46760         * lib/getcwd.c: Likewise.
46761         * lib/glob.c: Likewise.
46762
46763         Move the dirfd() declaration to <dirent.h>.
46764         * lib/dirfd.h: Remove file.
46765         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46766         (dirfd): New declaration.
46767         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46768         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46769         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46770         HAVE_DECL_DIRFD.
46771         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46772         HAVE_DECL_DIRFD.
46773         * modules/dirfd (Files): Remove lib/dirfd.h.
46774         (Depends-on): Add dirent, extensions.
46775         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46776         (Include): Specify <dirent.h> instead of dirfd.h.
46777         * modules/dirent (Depends-on): Add link-warning.
46778         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46779         definition of GL_LINK_WARNING.
46780         * NEWS: Mention the change.
46781
46782 2008-10-18  Bruno Haible  <bruno@clisp.org>
46783
46784         Move the euidaccess() declaration to <unistd.h>.
46785         * lib/euidaccess.h: Remove file.
46786         * lib/unistd.in.h (euidaccess): New declaration.
46787         * lib/euidaccess.c: Don't include euidaccess.h.
46788         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46789         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46791         and HAVE_EUIDACCESS.
46792         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46793         (Depends-on): Add unistd.
46794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46795         (Include): Specify <unistd.h> instead of euidaccess.h.
46796         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46797         HAVE_EUIDACCESS.
46798         * NEWS: Mention the change.
46799
46800 2008-10-18  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46803
46804         Move the getdomainname() declaration to <unistd.h>.
46805         * lib/getdomainname.h: Remove file.
46806         * lib/unistd.in.h (getdomainname): New declaration.
46807         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46808         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46809         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46810         HAVE_GETDOMAINNAME.
46811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46812         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46813         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46814         (Depends-on): Add unistd, extensions.
46815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46816         (Includes): Specify <unistd.h> instead of getdomainname.h.
46817         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46818         HAVE_GETDOMAINNAME.
46819         * NEWS: Mention the change.
46820
46821 2008-10-18  Bruno Haible  <bruno@clisp.org>
46822
46823         * modules/dirent: New file.
46824         * m4/dirent_h.m4: New file.
46825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46826         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46827         * modules/fchdir (Files): Remove lib/dirent.in.h.
46828         (Depends-on): Add dirent.
46829         (Makefile.am): Move rules to modules/dirent.
46830         * doc/posix-headers/dirent.texi: Mention the new module.
46831
46832 2008-10-18  Bruno Haible  <bruno@clisp.org>
46833
46834         Avoid -Wunused-parameter warnings in public gnulib header files.
46835         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46836         macro.
46837         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46838
46839 2008-10-18  Bruno Haible  <bruno@clisp.org>
46840
46841         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46842         * doc/glibc-functions/error.texi: Mention the module 'error'.
46843         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46844         * doc/glibc-functions/getdomainname.texi: Mention the module
46845         'getdomainname'.
46846         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46847         * doc/glibc-functions/getpagesize.texi: Mention the module
46848         'getpagesize'.
46849         * doc/glibc-functions/getusershell.texi: Mention the module
46850         'getusershell'.
46851         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46852         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46853         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46854         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46855         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46856         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46857         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46858         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46859         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46860         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46861         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46862         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46863         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46864         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46865
46866 2008-10-17  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46869         HP-UX and IRIX, use -0.0L.
46870         * tests/test-ceill.c (minus_zero): Likewise.
46871         * tests/test-floorl.c (minus_zero): Likewise.
46872         * tests/test-frexpl.c (minus_zero): Likewise.
46873         * tests/test-isnan.c (minus_zerol): Likewise.
46874         * tests/test-isnanl.h (minus_zero): Likewise.
46875         * tests/test-ldexpl.c (minus_zero): Likewise.
46876         * tests/test-roundl.c (minus_zero): Likewise.
46877         * tests/test-signbit.c (minus_zerol): Likewise.
46878         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46879         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46880         * tests/test-truncl.c (minus_zero): Likewise.
46881         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46882         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46883         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46884         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46885
46886 2008-10-17  Bruno Haible  <bruno@clisp.org>
46887
46888         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46889         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46890         that it gets activated only for gcc >= 3.0.
46891         * lib/dirent.in.h: Likewise.
46892         * lib/errno.in.h: Likewise.
46893         * lib/fcntl.in.h: Likewise.
46894         * lib/float.in.h: Likewise.
46895         * lib/iconv.in.h: Likewise.
46896         * lib/inttypes.in.h: Likewise.
46897         * lib/locale.in.h: Likewise.
46898         * lib/math.in.h: Likewise.
46899         * lib/netdb.in.h: Likewise.
46900         * lib/netinet_in.in.h: Likewise.
46901         * lib/search.in.h: Likewise.
46902         * lib/signal.in.h: Likewise.
46903         * lib/spawn.in.h: Likewise.
46904         * lib/stdarg.in.h: Likewise.
46905         * lib/stdint.in.h: Likewise.
46906         * lib/stdio.in.h: Likewise.
46907         * lib/stdlib.in.h: Likewise.
46908         * lib/string.in.h: Likewise.
46909         * lib/strings.in.h: Likewise.
46910         * lib/sys_file.in.h: Likewise.
46911         * lib/sys_ioctl.in.h: Likewise.
46912         * lib/sys_select.in.h: Likewise.
46913         * lib/sys_socket.in.h: Likewise.
46914         * lib/sys_stat.in.h: Likewise.
46915         * lib/sys_time.in.h: Likewise.
46916         * lib/sysexits.in.h: Likewise.
46917         * lib/time.in.h: Likewise.
46918         * lib/unistd.in.h: Likewise.
46919         * lib/wchar.in.h: Likewise.
46920         * lib/wctype.in.h: Likewise.
46921         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46922
46923 2008-10-17  Jim Meyering  <meyering@redhat.com>
46924
46925         ignore-value: don't depend on inline module
46926         * modules/ignore-value (Depends-on): Remove 'inline'.
46927         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46928         Suggestion from Bruno Haible.
46929
46930 2008-10-17  Bruno Haible  <bruno@clisp.org>
46931
46932         New implementation of condition variables for Win32.
46933         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46934         (gl_linked_waitqueue_t): New type.
46935         (gl_cond_t): Use it.
46936         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46937         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46938         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46939         (glthread_cond_init_func, glthread_cond_wait_func,
46940         glthread_cond_timedwait_func, glthread_cond_signal_func,
46941         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46942         Reimplemented on the basis of gl_linked_waitqueue_t.
46943         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46944         gl_waitqueue_t.
46945         (gl_rwlock_t): Update.
46946         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46947
46948 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46949
46950         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46951         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46952
46953 2008-10-17  Jim Meyering  <meyering@redhat.com>
46954
46955         ignore-value: new module
46956         * modules/ignore-value: New file.
46957         * lib/ignore-value.h: New file.
46958         * MODULES.html.sh (Compiler warning management): New section,
46959         just for this module.  More to come.
46960
46961 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46962
46963         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46964         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46965         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46966
46967 2008-10-16  Jim Meyering  <meyering@redhat.com>
46968
46969         openat-die.c: avoid 'no previous prototype' warning
46970         * lib/openat-die.c: Include "openat.h".
46971         Reported by Reuben Thomas <rrt@sc3d.org>.
46972
46973 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46974
46975         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46976         * lib/netdb.in.h: Fix typo.
46977         Reported by Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/netdb.in.h: Include sys/socket.h for platforms without
46980         netdb.h, to get structures like hostent on MinGW.
46981         * modules/netdb (Depends-on): Add sys_socket.
46982
46983 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46984
46985         * modules/netdb, modules/netdb-tests: New file.
46986         * m4/netdb_h.m4: New file.
46987         * lib/netdb.in.h: Add, currently just an empty file pending
46988         definitions.
46989         * tests/test-netdb.c: New file.
46990         * doc/posix-headers/netdb.texi: Mention that we replace it if
46991         needed.
46992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46993         netdb.
46994
46995 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46996
46997         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46998         with code.
46999
47000 2008-10-13  Bruno Haible  <bruno@clisp.org>
47001
47002         * lib/glthread/cond.c (glthread_cond_wait_func,
47003         glthread_cond_timedwait_func): Add a comment.
47004
47005 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47006
47007         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47008         * tests/test-select.c: Likewise,
47009
47010 2008-10-13  Bruno Haible  <bruno@clisp.org>
47011
47012         * lib/glthread/cond.c (glthread_cond_wait_func,
47013         glthread_cond_timedwait_func): Fix variable name.
47014         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47015
47016 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47017
47018         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47019         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47020         struct sockaddr.sa_len.
47021         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47022
47023 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47024
47025         * build-aux/pmccabe2html: Add css and css_url parameters.
47026
47027 2008-10-12  Bruno Haible  <bruno@clisp.org>
47028
47029         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47030         calling aclx_get.
47031         Reported by Rainer Tammer <tammer@tammer.net>.
47032
47033 2008-10-12  Bruno Haible  <bruno@clisp.org>
47034
47035         Use msvcrt aware primitives for creation/termination of Win32 threads.
47036         * lib/glthread/thread.c: Include <process.h>.
47037         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47038         (wrapper_func): Update signature.
47039         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47040
47041 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47042             Bruno Haible  <bruno@clisp.org>
47043
47044         Provide a Win32 implementation of the 'cond' module.
47045         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47046         * lib/glthread/cond.c (glthread_cond_init_func,
47047         glthread_cond_wait_func, glthread_cond_timedwait_func,
47048         glthread_cond_signal_func, glthread_cond_broadcast_func,
47049         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47050         * modules/cond (Dependencies): Add gettimeofday.
47051
47052 2008-10-11  Bruno Haible  <bruno@clisp.org>
47053
47054         Make sleep work on older versions of mingw.
47055         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47056         only whether it exists.
47057         * doc/posix-functions/sleep.texi: Mention the problem with older
47058         versions of mingw.
47059
47060 2008-10-11  Bruno Haible  <bruno@clisp.org>
47061
47062         New module 'shutdown'.
47063         * modules/shutdown: New file.
47064         * lib/sys_socket.in.h (shutdown): New declaration.
47065         * lib/winsock.c (shutdown): New function.
47066         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47067         GNULIB_SHUTDOWN.
47068         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47069         * doc/posix-functions/shutdown.texi: Document the new module.
47070
47071 2008-10-11  Jim Meyering  <meyering@redhat.com>
47072
47073         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47074
47075 2008-10-11  Bruno Haible  <bruno@clisp.org>
47076
47077         New module 'fclose'.
47078         * modules/fclose: New file.
47079         * lib/stdio.in.h (fclose): New declaration.
47080         * lib/fclose.c: New file.
47081         * m4/fclose.m4: New file.
47082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47083         REPLACE_FCLOSE.
47084         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47085         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47086         REPLACE_FCLOSE.
47087         * modules/close (Depends-on): fclose.
47088         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47089
47090 2008-10-11  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47093         set errno and don't call _close.
47094
47095 2008-10-10  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47098         ACL, not afterwards. Fixes test failure on Cygwin.
47099
47100 2008-10-09  Ben Pfaff  <blp@gnu.org>
47101
47102         * build-aux/announce-gen: Fix gnulib version related part of usage
47103         message.  Die with a useful error message if no tarballs are
47104         found.
47105
47106 2008-10-10  Jim Meyering  <meyering@redhat.com>
47107
47108         bootstrap: use git's --depth=N option only if it's supported
47109         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47110         recognize the --depth option.  Reported by PĂ¡draig Brady.
47111
47112 2008-10-09  Bruno Haible  <bruno@clisp.org>
47113
47114         New module 'ioctl'.
47115         * modules/ioctl: New file.
47116         * lib/sys_socket.in.h (ioctl): Remove declaration.
47117         * lib/winsock.c: Include <sys/ioctl.h>.
47118         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47119         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47120         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47121         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47122         * doc/posix-functions/ioctl.texi: Mention the new module.
47123
47124 2008-10-09  Bruno Haible  <bruno@clisp.org>
47125
47126         New module 'sys_ioctl'.
47127         * lib/sys_ioctl.in.h: New file.
47128         * m4/sys_ioctl_h.m4: New file.
47129         * modules/sys_ioctl: New file.
47130         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47131
47132 2008-10-09  Bruno Haible  <bruno@clisp.org>
47133
47134         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47135         * lib/winsock.c: Include <stdarg.h>.
47136         (rpl_ioctl): Change to second argument 'int' and then varargs.
47137
47138 2008-10-09  Bruno Haible  <bruno@clisp.org>
47139
47140         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47141         when the sys_socket module is present and the system has <winsock2.h>.
47142
47143 2008-10-09  Bruno Haible  <bruno@clisp.org>
47144
47145         * doc/posix-functions/close.texi: Mention module 'close' instead of
47146         module 'sys_socket'.
47147
47148 2008-10-09  Bruno Haible  <bruno@clisp.org>
47149
47150         * doc/glibc-headers/sys_ioctl.texi: New file.
47151         * doc/gnulib.texi: Include it.
47152
47153 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47154             Bruno Haible  <bruno@clisp.org>
47155
47156         Combine the two replacements of 'close'.
47157         * lib/sys_socket.in.h (close): Define to a reminder to include
47158         <unistd.h>.
47159         (_gl_close_fd_maybe_socket): New declaration.
47160         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47161         * lib/winsock.c (close): Remove undefinition.
47162         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47163         needed for the gnulib module 'close'.
47164         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47165         define to an error symbol or to a warning, if suitable.
47166         * lib/close.c: Include <sys/socket.h>.
47167         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47168         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47169         UNISTD_H_HAVE_WINSOCK2_H.
47170         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47172         UNISTD_H_HAVE_WINSOCK2_H.
47173         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47174         (configure.ac): Set a module indicator.
47175         (Makefile.am): Substitute GNULIB_CLOSE.
47176         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47177         * modules/poll-tests (Depends-on): Add close.
47178         * modules/select-tests (Depends-on): Likewise.
47179
47180 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47181             Bruno Haible  <bruno@clisp.org>
47182
47183         New module 'close'.
47184         * modules/close: New file.
47185         * lib/unistd.in.h (close): Move declaration out of the
47186         FCHDIR_REPLACEMENT scope.
47187         (_gl_unregister_fd): New declaration.
47188         * lib/close.c: New file.
47189         * lib/fchdir.c (rpl_close): Remove function.
47190         * m4/close.m4: New file.
47191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47192         close.
47193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47194         REPLACE_CLOSE.
47195         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47196         REPLACE_CLOSE.
47197         * modules/fchdir (Depends-on): Add close.
47198
47199 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47200             Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/fcntl.in.h (open): Simplify conditionals.
47203         (_gl_register_fd): New declaration.
47204         * lib/fchdir.c (rpl_open): Remove function.
47205         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47206         also.
47207         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47209         open.
47210
47211 2008-10-09  Jim Meyering  <meyering@redhat.com>
47212
47213         GNUmakefile: use the more name-space-friendly "_version"
47214         * top/GNUmakefile (_dummy): Update.
47215         (_version): Rename from "version".
47216
47217 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47218             Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47221         rpl_close.
47222         (_gl_register_fd): New function, extracted from rpl_open.
47223         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47224         (rpl_open, rpl_opendir): Use _gl_register_fd.
47225
47226 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47227
47228         Fix organization of 'open' replacement.
47229         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47230         (gl_FUNC_OPEN): Use it.
47231         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47232
47233 2008-10-08  Bruno Haible  <bruno@clisp.org>
47234
47235         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47236
47237 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47238
47239         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47240         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47241         listen).
47242
47243 2008-10-08  Eric Blake  <ebb9@byu.net>
47244
47245         GNUmakefile: add 'make version' target
47246         * top/GNUmakefile (_curr-ver): Split version update rules...
47247         (version): ...into a target.
47248
47249 2008-10-07  Bruno Haible  <bruno@clisp.org>
47250
47251         Use a more portable replacement expression for -0.0L.
47252         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47253         instead of -0.0L. Fix m4 quotation.
47254
47255         * tests/test-signbit.c: Include <float.h>.
47256         (minus_zero): New variable.
47257         (test_signbitl): Use minus_zero instead of -zero.
47258         * modules/signbit-tests (Depends-on): Add float.
47259
47260         * tests/test-ceill.c: Include <float.h>.
47261         (zero): Remove variable.
47262         (minus_zero): New variable.
47263         (main): Use minus_zero instead of -zero.
47264         * modules/ceill-tests (Depends-on): Add float.
47265
47266         * tests/test-floorl.c: Include <float.h>.
47267         (zero): Remove variable.
47268         (minus_zero): New variable.
47269         (main): Use minus_zero instead of -zero.
47270         * modules/floorl-tests (Depends-on): Add float.
47271
47272         * tests/test-roundl.c: Include <float.h>.
47273         (zero): Remove variable.
47274         (minus_zero): New variable.
47275         (main): Use minus_zero instead of -zero.
47276         * modules/roundl-tests (Depends-on): Add float.
47277
47278         * tests/test-truncl.c: Include <float.h>.
47279         (zero): Remove variable.
47280         (minus_zero): New variable.
47281         (main): Use minus_zero instead of -zero.
47282         * modules/truncl-tests (Depends-on): Add float.
47283
47284         * tests/test-frexpl.c (zero): Remove variable.
47285         (minus_zero): New variable.
47286         (main): Use minus_zero instead of -zero.
47287         * modules/frexpl-tests (Depends-on): Add float.
47288
47289         * tests/test-isnan.c (zerol): Remove variable.
47290         (minus_zerol): New variable.
47291         (test_long_double): Use minus_zerol instead of -zerol.
47292         * modules/isnan-tests (Depends-on): Add float.
47293
47294         * tests/test-isnanl.h (zero): Remove variable.
47295         (minus_zero): New variable.
47296         (main): Use minus_zero instead of -zero.
47297         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47298         * modules/isnanl-tests (Depends-on): Add float.
47299
47300         * tests/test-ldexpl.c (zero): Remove variable.
47301         (minus_zero): New variable.
47302         (main): Use minus_zero instead of -zero.
47303         * modules/ldexpl-tests (Depends-on): Add float.
47304
47305         * tests/test-snprintf-posix.h (zerol): Remove variable.
47306         (minus_zerol): New variable.
47307         (test_function): Use minus_zerol instead of -zerol.
47308         * modules/snprintf-posix-tests (Depends-on): Add float.
47309         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47310
47311         * tests/test-sprintf-posix.h (zerol): Remove variable.
47312         (minus_zerol): New variable.
47313         (test_function): Use minus_zerol instead of -zerol.
47314         * modules/sprintf-posix-tests (Depends-on): Add float.
47315         * modules/vsprintf-posix-tests (Depends-on): Add float.
47316
47317         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47318         (minus_zerol): New variable.
47319         (test_function): Use minus_zerol instead of -zerol.
47320         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47321
47322         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47323         (minus_zerol): New variable.
47324         (test_function): Use minus_zerol instead of -zerol.
47325         * modules/vasprintf-posix-tests (Depends-on): Add float.
47326
47327 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47328
47329         * MODULES.html.sh (Support for building documentation): Mention
47330         pmccabe2html.  Sort entries.
47331
47332         Add pmccabe2html module, from gnupdf.
47333         * build-aux/pmccabe.css: New file.
47334         * build-aux/pmccabe2html: New file.
47335         * m4/pmccabe2html.m4: New file.
47336         * modules/pmccabe2html: New file.
47337
47338 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47339
47340         flock: new module
47341         * MODULES.html.sh: Add to list of modules.
47342         * lib/flock.c: flock implementation for Windows and Unix systems
47343         which have fcntl.
47344         * doc/glibc-functions/flock.texi: Update documentation.
47345         * lib/sys_file.in.h: <sys/file.h> header file.
47346         * m4/flock.m4: M4 macros.
47347         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47348         * modules/flock: flock module.
47349         * modules/flock-tests: flock tests module.
47350         * modules/sys_file: sys/file.h module.
47351         * tests/test-flock.c: test suite for flock.
47352
47353 2008-10-06  Jim Meyering  <meyering@redhat.com>
47354
47355         bootstrap: check for LT_INIT more portably still ;-)
47356         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47357         Spotted by Bruno Haible.
47358
47359 2008-10-06  Eric Blake  <ebb9@byu.net>
47360
47361         test-signbit: avoid tripping Irix cc bug on -0.0L
47362         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47363         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47364         entire testsuite consistent and avoids an Irix 6.2 bug.
47365
47366 2008-10-05  Bruno Haible  <bruno@clisp.org>
47367             Jim Meyering  <jim@meyering.net>
47368
47369         Add an option for ignoring EPIPE during close_stdout.
47370         * lib/closeout.h: Include <stdbool.h>.
47371         (close_stdout_set_ignore_EPIPE): New declaration.
47372         * lib/closeout.c: Include <stdbool.h>.
47373         (ignore_EPIPE): New variable.
47374         (close_stdout_set_ignore_EPIPE): New function.
47375         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47376         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47377         failure.
47378         * modules/closeout (Depends-on): Add stdbool.
47379
47380 2008-10-05  Bruno Haible  <bruno@clisp.org>
47381
47382         * modules/accept: New file.
47383         * modules/bind: New file.
47384         * modules/connect: New file.
47385         * modules/getpeername: New file.
47386         * modules/getsockname: New file.
47387         * modules/getsockopt: New file.
47388         * modules/listen: New file.
47389         * modules/recv: New file.
47390         * modules/recvfrom: New file.
47391         * modules/send: New file.
47392         * modules/sendto: New file.
47393         * modules/setsockopt: New file.
47394         * modules/socket: New file.
47395         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47396         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47397         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47398         the particular module is requested. Add a link warning when the
47399         particular module is not requested.
47400         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47401         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47402         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47403         the particular module is requested.
47404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47405         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47406         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47407         * modules/sys_socket (Depends-on): Add link-warning.
47408         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47409         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47410         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47411         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47412         GL_LINK_WARNING.
47413         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47414         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47415         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47416         * doc/posix-functions/getpeername.texi: Mention the new module
47417         'getpeername'.
47418         * doc/posix-functions/getsockname.texi: Mention the new module
47419         'getsockname'.
47420         * doc/posix-functions/getsockopt.texi: Mention the new module
47421         'getsockopt'.
47422         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47423         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47424         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47425         * doc/posix-functions/send.texi: Mention the new module 'send'.
47426         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47427         * doc/posix-functions/setsockopt.texi: Mention the new module
47428         'setsockopt'.
47429         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47430         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47431         listen, connect, accept.
47432         * modules/select-tests (Depends-on): Likewise.
47433
47434 2008-10-05  Bruno Haible  <bruno@clisp.org>
47435
47436         * lib/winsock.c (strerror): Remove unused #undef.
47437         (rpl_close): Remove unused local variable.
47438
47439         * modules/sys_socket (Depends-on); Add errno.
47440
47441 2008-10-05  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47444         (select): Add a link warning when the 'select' module is not used.
47445         * modules/sys_select (Depends-on): Add link-warning.
47446         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47447         Suggested by Paolo Bonzini.
47448
47449 2008-10-05  Jim Meyering  <meyering@redhat.com>
47450
47451         bootstrap: check for LT_INIT more portably
47452         * build-aux/bootstrap: Avoid using grep -E, since it's not
47453         portable enough.  Suggestion from Bruno Haible.
47454
47455 2008-10-05  Bruno Haible  <bruno@clisp.org>
47456
47457         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47458         as being fixed by gnulib.
47459
47460 2008-10-05  Bruno Haible  <bruno@clisp.org>
47461
47462         * modules/select-tests: New file, mostly copied from
47463         modules/sys_select-tests.
47464         * tests/test-select.c: New file, mostly copied from
47465         tests/test-sys_select.c.
47466         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47467         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47468         (Makefile.am): Remove test_sys_select_LDADD.
47469
47470         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47471         to an undefined symbol, for an error message.
47472         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47473         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47474         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47475         winsock-select.c here.
47476         * modules/sys_select (Files): Remove lib/winsock-select.c.
47477         (Depends-on): Remove alloca.
47478         (Makefile.am): Substitute GNULIB_SELECT.
47479         * modules/select: New file.
47480         * doc/posix-functions/select.texi: Update.
47481
47482 2008-10-05  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47485         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47486         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47487         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47488         getdtablesize.
47489         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47490         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47491
47492 2008-10-05  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/getdtablesize-tests: New file.
47495         * tests/test-getdtablesize.c: New file.
47496
47497         New module 'getdtablesize'.
47498         * lib/unistd.in.h (getdtablesize): New declaration.
47499         * lib/getdtablesize.c: New file.
47500         * m4/getdtablesize.m4: New file.
47501         * modules/getdtablesize: New file.
47502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47503         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47504         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47505         HAVE_GETDTABLESIZE.
47506         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47507
47508 2008-10-05  Bruno Haible  <bruno@clisp.org>
47509
47510         * modules/sched (Makefile.am): Fix typo.
47511         Reported by Simon Josefsson.
47512
47513 2008-10-05  Jim Meyering  <meyering@redhat.com>
47514
47515         bootstrap: check for LT_INIT, too
47516         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47517         are deprecated.  Suggestion from Ralf Wildenhues.
47518
47519 2008-10-05  Bruno Haible  <bruno@clisp.org>
47520
47521         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47522         overriding them by ours.
47523         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47524
47525 2008-10-05  Jim Meyering  <meyering@redhat.com>
47526
47527         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47528         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47529         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47530
47531 2008-10-04  Bruno Haible  <bruno@clisp.org>
47532
47533         * modules/dup2 (License): Change to LGPLv2+.
47534         * modules/sleep (License): Likewise.
47535         * modules/perror (License): Likewise.
47536         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47537         Blake.
47538         * modules/signal (License): Likewise.
47539         * modules/sigprocmask (License): Likewise.
47540         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47541         Meyering.
47542
47543 2008-10-04  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47546         Reported by Rainer Tammer <tammer@tammer.net>.
47547
47548 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47549             Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47552         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47553         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47554
47555 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47556
47557         filevercmp: new module
47558         * lib/filevercmp.h: New function filevercmp comparing version strings.
47559         * lib/filevercmp.c: Implementation of filevercmp function.
47560         * modules/filevercmp: Module metadata.
47561         * tests/test-filevercmp.c: Unit test for new module.
47562         * modules/filevercmp-tests: Unit test metadata.
47563         * MODULES.html.sh: Add filevercmp module.
47564
47565 2008-10-03  Bruno Haible  <bruno@clisp.org>
47566
47567         * lib/c-ctype.h: Add comment.
47568         Reported by Jim Meyering.
47569
47570 2008-10-02  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47573
47574 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47575
47576         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47577         name of bootstrap.conf accordingly.
47578
47579 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47580
47581         * build-aux/bootstrap: Install git-merge-changelog configuration
47582         items into .gitconfig if needed.
47583
47584 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47585
47586         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47587         git repository, and initialize/update it accordingly.
47588
47589 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47590
47591         * modules/fsync-tests: New file.
47592         * tests/test-fsync.c: New file.
47593
47594         New module 'fsync'.
47595         * lib/fsync.c: New file.
47596         * m4/fsync.m4: New file.
47597         * modules/fsync: New file.
47598         * lib/unistd.in.h (fsync): New declaration.
47599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47600         GNULIB_FSYNC and HAVE_FSYNC.
47601         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47602         * MODULES.html.sh (posix_functions): Add fsync.
47603         * doc/posix-functions/fsync.texi: Mention the new module.
47604
47605 2008-10-02  Jim Meyering  <meyering@redhat.com>
47606
47607         fts.c: sync with similar code from coreutils' remove.c
47608         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47609         Guard also with "#if defined __linux__", since for now at least,
47610         this code is Linux-kernel-specific.
47611
47612 2008-10-02  Jim Meyering  <meyering@redhat.com>
47613
47614         fts: bug fixes
47615         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47616         Include <sys/vfs.h>, not <sys/statfs.h>.
47617
47618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47619         Include <sys/vfs.h>, not <sys/statfs.h>.
47620
47621 2008-10-01  Bruno Haible  <bruno@clisp.org>
47622
47623         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47624         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47625         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47626         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47627         * doc/posix-functions/posix_spawnp.texi: Likewise.
47628         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47629         whether posix_spawn actually works.
47630         * m4/pipe.m4 (gl_PIPE): Likewise.
47631         * modules/execute (Files): Add m4/posix_spawn.m4.
47632         * modules/pipe (Files): Add m4/posix_spawn.m4.
47633         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47634
47635 2008-10-01  Jim Meyering  <meyering@redhat.com>
47636
47637         remove trailing spaces
47638         * NEWS: Likewise.
47639         * lib/poll.c (poll): Likewise.
47640         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47641         * lib/winsock.c (rpl_close): Likewise.
47642         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47643         * modules/yield: Likewise.
47644         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47645         * tests/test-sys_select.c (connect_to_socket): Likewise.
47646
47647         fts.c: adjust a new interface to be more generally useful
47648         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47649         (fts_build): Adjust caller.
47650
47651 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47652
47653         * modules/cond-tests: New file.
47654         * tests/test-cond.c: New file.
47655
47656 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47657             Bruno Haible  <bruno@clisp.org>
47658
47659         * modules/cond (Dependencies): Add errno, time.
47660         * lib/glthread/cond.h: Include <time.h>.
47661         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47662         across platforms.
47663
47664 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47665             Bruno Haible  <bruno@clisp.org>
47666
47667         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47668
47669 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47670             Bruno Haible  <bruno@clisp.org>
47671
47672         * modules/tls-tests (Depends-on): Add thread, yield.
47673         (configure.ac): Remove all checks.
47674         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47675         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47676         gl_thread_self): Remove definitions. Include glthread/thread.h and
47677         glthread/yield.h instead.
47678         (test_tls): Pass an additional NULL argument to gl_thread_join.
47679
47680 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47681             Bruno Haible  <bruno@clisp.org>
47682
47683         * modules/lock-tests (Depends-on): Add thread, yield.
47684         (configure.ac): Remove all checks.
47685         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47686         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47687         gl_thread_self): Remove definitions. Include glthread/thread.h and
47688         glthread/yield.h instead.
47689         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47690         additional NULL argument to gl_thread_join.
47691
47692 2008-09-30  Bruno Haible  <bruno@clisp.org>
47693
47694         Fix the Win32 implementation of the 'thread' module.
47695         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47696         pointer type.
47697         (gl_thread_self): Invoke gl_thread_self_func.
47698         (gl_thread_self_func): New declaration.
47699         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47700         (do_init_self_key, init_self_key): New functions.
47701         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47702         Remove some fields.
47703         (running_threads, running_lock): Remove variables.
47704         (get_current_thread_handle): New function.
47705         (gl_thread_self_func, wrapper_func, glthread_create_func,
47706         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47707         simplified.
47708
47709 2008-09-30  Bruno Haible  <bruno@clisp.org>
47710
47711         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47712         files.
47713
47714 2008-09-30  Jim Meyering  <meyering@redhat.com>
47715
47716         fts.m4: correct the test for statfs.f_type
47717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47718         when checking for statfs.f_type.
47719
47720 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47721
47722         tests: avoid some compiler warnings
47723         * tests/test-memchr.c (main): Pass NULL indirectly.
47724         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47725
47726 2008-09-29  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
47727
47728         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47729         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47730         exactly specified dayshifts.
47731         (dayshift): New rule.
47732         (rel): Add dayshift.
47733         (relative_time_table) [tomorrow, yesterday, today, now]:
47734         Use tDAY_SHIFT in place of tDAY_UNIT.
47735         * tests/test-getdate.c: Add tests for now-disallowed countable
47736         dayshifts, e.g., "4 yesterday ago".
47737
47738 2008-09-29  Bruno Haible  <bruno@clisp.org>
47739
47740         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47741         * tests/test-posix_spawn1.in.sh: Renamed from
47742         tests/test-posix_spawn.in.sh.
47743         * tests/test-posix_spawn2.c: New file.
47744         * tests/test-posix_spawn2.in.sh: New file.
47745         * modules/posix_spawnp-tests (Files): Update.
47746         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47747
47748 2008-09-29  Bruno Haible  <bruno@clisp.org>
47749
47750         Propagate effects of putenv/setenv/unsetenv to child processes.
47751         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47752         * lib/pipe.c (create_pipe): Likewise.
47753
47754 2008-09-29  Bruno Haible  <bruno@clisp.org>
47755
47756         Enable use of shell scripts as executables in mingw.
47757         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47758         run the program as a shell script.
47759         * lib/pipe.c (create_pipe): Likewise.
47760         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47761         resulting array.
47762
47763 2008-09-29  Eric Blake  <ebb9@byu.net>
47764
47765         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47766
47767 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47768
47769         * doc/posix-functions/accept.texi: Update mingw problems.
47770         * doc/posix-functions/bind.texi: Update mingw problems.
47771         * doc/posix-functions/close.texi: Update mingw problems.
47772         * doc/posix-functions/connect.texi: Update mingw problems.
47773         * doc/posix-functions/getpeername.texi: Update mingw problems.
47774         * doc/posix-functions/getsockname.texi: Update mingw problems.
47775         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47776         * doc/posix-functions/ioctl.texi: Update mingw problems.
47777         * doc/posix-functions/listen.texi: Update mingw problems.
47778         * doc/posix-functions/recv.texi: Update mingw problems.
47779         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47780         * doc/posix-functions/select.texi: Update mingw problems.
47781         * doc/posix-functions/send.texi: Update mingw problems.
47782         * doc/posix-functions/sendto.texi: Update mingw problems.
47783         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47784         * doc/posix-functions/socket.texi: Update mingw problems.
47785
47786 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47787             Bruno Haible  <bruno@clisp.org>
47788
47789         * lib/sys_select.in.h: Include sys/time.h.
47790         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47791         * modules/sys_select: Depend on sys_time.
47792         * tests/test-sys_select.c: Test that sys/select.h defines struct
47793         timeval fully.
47794
47795 2008-09-29  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47798         * lib/sys_select.in.h: Likewise.
47799
47800 2008-09-29  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47803
47804 2008-09-29  Bruno Haible  <bruno@clisp.org>
47805
47806         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47807         Set LIBSOCKET instead of augmenting LIBS.
47808         * modules/sockets (Link): New section.
47809         * modules/sockets-tests (test_sockets_LDADD): New variable.
47810         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47811         * modules/poll-tests (test_poll_LDADD): New variable.
47812         * NEWS: Document the change.
47813
47814 2008-09-29  Bruno Haible  <bruno@clisp.org>
47815
47816         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47817         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47818         ARPA_INET_H directly.
47819         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47820
47821 2008-09-28  Bruno Haible  <bruno@clisp.org>
47822
47823         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47824         from gl_HEADER_SYS_SOCKET.
47825         (gl_HEADER_SYS_SOCKET): Invoke it.
47826         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47827
47828 2008-09-28  Bruno Haible  <bruno@clisp.org>
47829
47830         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47831         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47832         Needed on OSF/1 4.0.
47833
47834 2008-09-28  Bruno Haible  <bruno@clisp.org>
47835
47836         Override open more carefully.
47837         * lib/open.c (orig_open): New function.
47838         (rpl_open): Use orig_open instead of open.
47839         * lib/fcntl.in.h: Add special invocation convention.
47840         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47841         (gl_FUNC_OPEN): Invoke it.
47842
47843         Override freopen more carefully.
47844         * lib/freopen.c (orig_freopen): New function.
47845         (rpl_freopen): Use orig_freopen instead of freopen.
47846         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47847         (gl_FUNC_FREOPEN): Invoke it.
47848
47849         Override fopen more carefully.
47850         * lib/fopen.c (orig_fopen): New function.
47851         (rpl_fopen): Use orig_fopen instead of fopen.
47852         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47853         (gl_FUNC_FOPEN): Invoke it.
47854         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47855
47856 2008-09-28  Bruno Haible  <bruno@clisp.org>
47857
47858         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47859         SIGPIPE.
47860
47861 2008-09-28  Bruno Haible  <bruno@clisp.org>
47862
47863         * tests/test-sigaction.c (handler, main): Disable the check whether
47864         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47865         glibc systems with LinuxThreads.
47866
47867 2008-09-28  Bruno Haible  <bruno@clisp.org>
47868
47869         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47870
47871         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47872         with AIX xlc.
47873         * lib/fcntl.in.h (open): Likewise.
47874         Reported by Rainer Tammer <tammer@tammer.net>.
47875
47876 2008-09-28  Bruno Haible  <bruno@clisp.org>
47877
47878         * modules/posix_spawnp-tests: New file.
47879         * tests/test-posix_spawn.c: New file.
47880         * tests/test-posix_spawn.in.sh: New file.
47881
47882         New module 'posix_spawnp'.
47883         * modules/posix_spawnp: New file.
47884         * lib/spawnp.c: New file, from GNU libc with modifications.
47885         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47886
47887         New module 'posix_spawn'.
47888         * modules/posix_spawn: New file.
47889         * lib/spawn.c: New file, from GNU libc with modifications.
47890         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47891
47892         New module 'posix_spawnattr_destroy'.
47893         * modules/posix_spawnattr_destroy: New file.
47894         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47895         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47896         module.
47897
47898         New module 'posix_spawnattr_setsigmask'.
47899         * modules/posix_spawnattr_setsigmask: New file.
47900         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47901         modifications.
47902         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47903         new module.
47904
47905         New module 'posix_spawnattr_getsigmask'.
47906         * modules/posix_spawnattr_getsigmask: New file.
47907         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47908         modifications.
47909         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47910         new module.
47911
47912         New module 'posix_spawnattr_setsigdefault'.
47913         * modules/posix_spawnattr_setsigdefault: New file.
47914         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47915         modifications.
47916         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47917         new module.
47918
47919         New module 'posix_spawnattr_getsigdefault'.
47920         * modules/posix_spawnattr_getsigdefault: New file.
47921         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47922         modifications.
47923         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47924         new module.
47925
47926         New module 'posix_spawnattr_setschedpolicy'.
47927         * modules/posix_spawnattr_setschedpolicy: New file.
47928         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47929         modifications.
47930         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47931         new module.
47932
47933         New module 'posix_spawnattr_getschedpolicy'.
47934         * modules/posix_spawnattr_getschedpolicy: New file.
47935         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47936         modifications.
47937         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47938         new module.
47939
47940         New module 'posix_spawnattr_setschedparam'.
47941         * modules/posix_spawnattr_setschedparam: New file.
47942         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47943         modifications.
47944         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47945         new module.
47946
47947         New module 'posix_spawnattr_getschedparam'.
47948         * modules/posix_spawnattr_getschedparam: New file.
47949         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47950         modifications.
47951         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47952         new module.
47953
47954         New module 'posix_spawnattr_setpgroup'.
47955         * modules/posix_spawnattr_setpgroup: New file.
47956         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47957         modifications.
47958         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47959         module.
47960
47961         New module 'posix_spawnattr_getpgroup'.
47962         * modules/posix_spawnattr_getpgroup: New file.
47963         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47964         modifications.
47965         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47966         module.
47967
47968         New module 'posix_spawnattr_setflags'.
47969         * modules/posix_spawnattr_setflags: New file.
47970         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47971         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47972         module.
47973
47974         New module 'posix_spawnattr_getflags'.
47975         * modules/posix_spawnattr_getflags: New file.
47976         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47977         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47978         module.
47979
47980         New module 'posix_spawnattr_init'.
47981         * modules/posix_spawnattr_init: New file.
47982         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47983         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47984         module.
47985
47986         New module 'posix_spawn_file_actions_destroy'.
47987         * modules/posix_spawn_file_actions_destroy: New file.
47988         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47989         modifications.
47990         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47991         the new module.
47992
47993         New module 'posix_spawn_file_actions_addopen'.
47994         * modules/posix_spawn_file_actions_addopen: New file.
47995         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47996         modifications.
47997         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47998         the new module.
47999
48000         New module 'posix_spawn_file_actions_adddup2'.
48001         * modules/posix_spawn_file_actions_adddup2: New file.
48002         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48003         modifications.
48004         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48005         the new module.
48006
48007         New module 'posix_spawn_file_actions_addclose'.
48008         * modules/posix_spawn_file_actions_addclose: New file.
48009         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48010         modifications.
48011         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48012         the new module.
48013
48014         New module 'posix_spawn_file_actions_init'.
48015         * modules/posix_spawn_file_actions_init: New file.
48016         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48017         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48018         new module.
48019
48020         New module 'posix_spawn-internal'.
48021         * modules/posix_spawn-internal: New file.
48022         * lib/spawn_int.h: New file, from GNU libc with modifications.
48023         * lib/spawni.c: New file, from GNU libc with modifications.
48024         * m4/posix_spawn.m4: New file.
48025
48026         New module 'spawn'.
48027         * modules/spawn: New file.
48028         * lib/spawn.in.h: New file, from GNU libc with modifications.
48029         * m4/spawn_h.m4: New file.
48030         * doc/posix-headers/spawn.texi: Mention the new module.
48031
48032 2008-09-28  Bruno Haible  <bruno@clisp.org>
48033
48034         * modules/sched-tests: New file.
48035         * tests/test-sched.c: New file.
48036
48037         New module 'sched'.
48038         * modules/sched: New file.
48039         * lib/sched.in.h: New file.
48040         * m4/sched_h.m4: New file.
48041         * doc/posix-headers/sched.texi: Mention the new module.
48042
48043 2008-09-27  Eric Blake  <ebb9@byu.net>
48044
48045         Fix previous patch, and tweak references to $0.
48046         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48047         (func_version, func_gnulib_dir): Don't call this program
48048         gnulib-tool.
48049         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48050         with using $0 in function.
48051         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48052         (func_fatal_error): Reuse the name the user invoked us with.
48053
48054 2008-09-27  Bruno Haible  <bruno@clisp.org>
48055
48056         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48057         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48058         (gl_ICONV_H): Not here.
48059         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48060         instead of assigning ICONV_H directly.
48061
48062         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48064         WCHAR_H directly.
48065
48066 2008-09-27  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48069         * modules/arpa_inet (Depends-on): Add link-warning.
48070         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48071         * modules/unistd (Makefile.am): Likewise.
48072
48073 2008-09-26  Bruno Haible  <bruno@clisp.org>
48074
48075         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48076         variables.
48077         (func_version): Essentially copied from gnulib-tool.
48078         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48079         func_readlink): Copied from gnulib-tool.
48080
48081 2008-09-26  Bruno Haible  <bruno@clisp.org>
48082
48083         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48084         invoking git-version-gen.
48085
48086 2008-09-26  Bruno Haible  <bruno@clisp.org>
48087
48088         * posix-modules: Update to directory names changed on 2008-01-19.
48089         Remove commas in output before splitting into words. No more need to
48090         avoid 'ftruncate' since 2007-02-19.
48091
48092 2008-09-26  Bruno Haible  <bruno@clisp.org>
48093
48094         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48095
48096 2008-09-26  Bruno Haible  <bruno@clisp.org>
48097
48098         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48099         * modules/fwriteerror (Depends-on): Add errno.
48100
48101 2008-09-26  Bruno Haible  <bruno@clisp.org>
48102
48103         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48104         * tests/test-vc-list-files-cvs.sh: Likewise.
48105
48106 2008-09-26  Bruno Haible  <bruno@clisp.org>
48107
48108         * doc/posix-headers/sys_resource.texi: Reorder items.
48109
48110 2008-09-26  Jim Meyering  <meyering@redhat.com>
48111
48112         fts: tweak inode comparison function
48113         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48114         inode numbers, as documented.
48115
48116         fts: sort dirent entries on inode number before traversing
48117         This avoids a quadratic, seek-related performance penalty when
48118         operating on a directory containing many entries (measurable at 10k;
48119         3.5 hours at 2 million entries with a cold cache) on certain types
48120         of file systems, including ext3 and ext4, but not tmpfs.
48121         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48122         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48123         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48124         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48125         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48126         (fts_build): Set the stat.st_ino member from D_INO.
48127         If it is likely to be useful, sort dirent entries on inode number.
48128
48129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48130         and the struct statfs.f_type member.
48131         * modules/fts (Depends-on): Add d-ino.
48132
48133 2008-09-26  Bruno Haible  <bruno@clisp.org>
48134
48135         * modules/sigpipe-die (Depends-on): Add sigpipe.
48136
48137         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48138         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48139         and GNULIB_STDIO_H_SIGPIPE are set.
48140         * lib/stdio-write.c: New file.
48141         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48142         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48143         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48144         REPLACE_STDIO_WRITE_FUNCS.
48145         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48146         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48147         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48148         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48149         * modules/stdio (Files): Add lib/stdio-write.c.
48150         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48151         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48152         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48153         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48154         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48155         REPLACE_FPRINTF_POSIX.
48156         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48157         REPLACE_PRINTF_POSIX.
48158         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48159         REPLACE_VFPRINTF_POSIX.
48160         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48161         REPLACE_VPRINTF_POSIX.
48162         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48163         SIGPIPE issue.
48164         * doc/posix-functions/fputc.texi: Likewise.
48165         * doc/posix-functions/fputs.texi: Likewise.
48166         * doc/posix-functions/fwrite.texi: Likewise.
48167         * doc/posix-functions/printf.texi: Likewise.
48168         * doc/posix-functions/putc.texi: Likewise.
48169         * doc/posix-functions/putchar.texi: Likewise.
48170         * doc/posix-functions/puts.texi: Likewise.
48171         * doc/posix-functions/vfprintf.texi: Likewise.
48172         * doc/posix-functions/vprintf.texi: Likewise.
48173
48174         * modules/safe-write (Depends-on): Add write.
48175
48176         * modules/sigpipe-tests: New file.
48177         * tests/test-sigpipe.c: New file.
48178         * tests/test-sigpipe.sh: New file.
48179
48180         * modules/write: New file.
48181         * lib/unistd.in.h: Include <sys/types.h>.
48182         (write): New declaration.
48183         * lib/write.c: New file.
48184         * m4/write.m4: New file.
48185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48186         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48187         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48188         GNULIB_WRITE, REPLACE_WRITE.
48189         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48190         and the SIGPIPE issue.
48191
48192         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48193         (raise): New declaration.
48194         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48195         (ext_signal): New function.
48196         (rpl_raise): New function.
48197         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48198         GNULIB_SIGNAL_H_SIGPIPE.
48199         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48200         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48201
48202         * modules/sigpipe: New file.
48203         * m4/sigpipe.m4: New file.
48204
48205 2008-09-25  Derek Price  <derek@ximbiot.com>
48206             Bruno Haible  <bruno@clisp.org>
48207
48208         * gnulib-tool (func_import): Report all license incompatibilities, not
48209         just the first one.
48210
48211 2008-09-25  Bruno Haible  <bruno@clisp.org>
48212
48213         * gnulib-tool (func_import): When computing the edits, consider not
48214         only the Makefile.ams that exist but also those that will be generated.
48215
48216 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48217
48218         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48219         fixes gnulib-tool --test warning about duplicate dependency.
48220
48221 2008-09-25  Bruno Haible  <bruno@clisp.org>
48222
48223         * gnulib-tool: Don't ask the user to perform edits in the generated
48224         Makefile.ams.
48225         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48226         apply to the Makefile.am being generated.
48227         (func_emit_tests_Makefile_am): Execute edits that apply to the
48228         Makefile.am being generated.
48229         (func_import): Setup list of Makefile.am edits before emitting the
48230         Makefile.ams, not at the end.
48231         (func_create_testdir): Update.
48232         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48233
48234 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48235
48236         * gnulib-tool (func_import): Store the --tests-base option in the
48237         comment in gnulib-cache.m4.
48238
48239 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48240
48241         * NEWS: Document increased portability that sys_select now provides.
48242
48243         * lib/sys_select.in.h: Install select wrapper.
48244         * lib/sys_socket.in.h: Use more descriptive name when there is no
48245         select wrapper.
48246         * lib/winsock-select.c: New.
48247         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48248         Require gl_HEADER_SYS_SOCKET.
48249         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48250         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48251         * tests/test-sys_select.c: Add functional tests.
48252
48253 2008-09-24  Eric Blake  <ebb9@byu.net>
48254
48255         open, fopen: close fd leak in last patch
48256         * lib/open.c (rpl_open): Close fd before returning error.
48257         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48258         * doc/posix-functions/open.texi (open): Document that Irix also
48259         has the bug.
48260         * doc/posix-functions/fopen.texi (fopen): Likewise.
48261         Reported by Paolo Bonzini.
48262
48263 2008-09-24  Bruno Haible  <bruno@clisp.org>
48264
48265         Ensure that a filename ending in a slash cannot be used to access a
48266         non-directory.
48267         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48268         to check whether it's really a directory.
48269         * lib/fopen.c: Include fcntl.h, unistd.h.
48270         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48271         and fdopen().
48272         * modules/fopen (Depends-on): Add unistd.
48273         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48274         * tests/test-fopen.c (main): Likewise.
48275         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48276         * doc/posix-functions/fopen.texi: Likewise.
48277         Reported by Eric Blake.
48278
48279 2008-09-23  Eric Blake  <ebb9@byu.net>
48280
48281         c-stack: avoid compiler optimizations when provoking overflow
48282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48283         recursion harder to optimize, to ensure a stack overflow occurs.
48284         * tests/test-c-stack.c (recurse): Likewise.
48285         Borrowed from libsigsegv.
48286
48287         c-stack: work around Irix sigaltstack bug
48288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48289         whether sigaltstack uses wrong end of stack_t (copied in part from
48290         libsigsegv).
48291         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48292         Irix bug, without requiring an over-allocation.
48293         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48294         bug.
48295
48296         fopen: document mingw bug on directories
48297         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48298         not allowing a stream visiting a directory, even though reading
48299         from such a stream is not portable.
48300
48301 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48302
48303         * lib/poll.c: Rewrite.
48304         * modules/poll: Depend on alloca.
48305
48306 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48307
48308         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48309         instead define prototypes for a full set of wrappers.  Ensure
48310         that Cygwin does not use the compatibility code, which is only
48311         for MinGW.
48312         * lib/winsock.c: New.
48313         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48314         * modules/sys_socket: Add lib/winsock.c.
48315
48316         * modules/poll-tests: Add errno and perror.
48317         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48318
48319 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48320
48321         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48322
48323 2008-09-23  Bruno Haible  <bruno@clisp.org>
48324
48325         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48326         * doc/glibc-functions/*: Likewise.
48327
48328 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48329
48330         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48331         success.
48332
48333 2008-09-22  Eric Blake  <ebb9@byu.net>
48334             Bruno Haible  <bruno@clisp.org>
48335
48336         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48337         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48338         supply %A but mishandle pseudo-NaN.
48339         Reported by Simon Josefsson.
48340
48341 2008-09-21  Bruno Haible  <bruno@clisp.org>
48342
48343         * tests/test-lock.c (main): Tweak skip message.
48344         * tests/test-tls.c (main): Likewise.
48345
48346 2008-09-21  Bruno Haible  <bruno@clisp.org>
48347
48348         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48349         whether 'struct sigaction' has sa_sigaction here...
48350         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48351         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48352
48353 2008-09-21  Bruno Haible  <bruno@clisp.org>
48354
48355         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48356         section.
48357         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48358         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48359         the new section.
48360         (Support for obsolete systems lacking POSIX:2001): New section.
48361         (String handling <string.h>): Move strdup to the new section.
48362         Suggested by Simon Josefsson and Paolo Bonzini.
48363
48364 2008-09-21  Bruno Haible  <bruno@clisp.org>
48365
48366         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48367         exponents in %e and %g results on 'long double'. Needed for mingw's
48368         improved *printf functions.
48369         * tests/test-vasprintf-posix.c (test_function): Likewise.
48370         * tests/test-snprintf-posix.h (test_function): Likewise.
48371         * tests/test-sprintf-posix.h (test_function): Likewise.
48372         Reported by Eric Blake.
48373
48374 2008-09-21  Bruno Haible  <bruno@clisp.org>
48375
48376         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48377         * tests/test-sprintf-posix.h (test_function): Likewise.
48378
48379 2008-09-21  Bruno Haible  <bruno@clisp.org>
48380
48381         * modules/getpass (Depends-on): Add strdup-posix.
48382
48383         New module 'strdup-posix'.
48384         * modules/strdup-posix: New file.
48385         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48386         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48388         REPLACE_STRDUP.
48389         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48390         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48392         strdup-posix.
48393
48394         * modules/strdup (Depends-on): Remove malloc-posix.
48395
48396 2008-09-20  Bruno Haible  <bruno@clisp.org>
48397
48398         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48399         Wildenhues.
48400
48401 2008-09-20  Bruno Haible  <bruno@clisp.org>
48402
48403         Ensure that wint_t gets defined on IRIX 5.3.
48404         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48405         * lib/wctype.in.h (wint_t): Likewise.
48406         (__wctype_wint_t): Remove type.
48407         (isw*): Use wint_t instead of __wctype_wint_t.
48408         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48409         * modules/wchar (Files): Add m4/wint_t.m4.
48410         (Makefile.am): Substitute HAVE_WINT_T.
48411         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48412         * tests/test-wctype.c: Check that wint_t is defined.
48413         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48414         * doc/posix-headers/wctype.texi: Likewise.
48415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48416
48417 2008-09-18  Bruno Haible  <bruno@clisp.org>
48418
48419         * gnulib-tool (func_exit): Update comment.
48420
48421 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48422
48423         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48424         assumes strdup exists and does not depend on strdup to return
48425         ENOMEM on out of memory conditions.
48426
48427 2008-09-18  Bruno Haible  <bruno@clisp.org>
48428
48429         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48430         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48431         digits for the exponent.
48432
48433 2008-09-18  Jim Meyering  <meyering@redhat.com>
48434             Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/vasnprintf.c (decimal_point_char): Define also if
48437         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48438
48439 2008-09-16  Bruno Haible  <bruno@clisp.org>
48440         and Eric Blake  <ebb9@byu.net>
48441
48442         vasnprintf: support Irix 5.3
48443         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48444         that mishandle long double infinity.
48445         Reported by Tom G. Christensen.
48446
48447 2008-09-16  Bruno Haible  <bruno@clisp.org>
48448
48449         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48450         Solaris 9.
48451         * doc/glibc-functions/alphasort.texi: Likewise.
48452         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48453
48454 2008-09-16  Jim Meyering  <meyering@redhat.com>
48455
48456         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48457         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48458         a umask modification leak out of a subshell.  Otherwise, the
48459         opensolaris /bin/sh would be accepted and thus cause unwarranted
48460         failures in the coreutils test suite.
48461
48462 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48463
48464         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48465         to succeed.
48466
48467 2008-09-16  Jim Meyering  <meyering@redhat.com>
48468
48469         avoid spurious test failure when library is built without ACL support
48470         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48471         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48472         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48473         * tests/test-copy-acl.sh: Likewise.
48474
48475 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48476
48477         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48478         based on character occurrence counts.
48479
48480 2008-09-15  Eric Blake  <ebb9@byu.net>
48481
48482         tests: avoid some compiler warnings
48483         * tests/test-memchr.c (main): Pass NULL indirectly.
48484         * tests/test-closein.c (main): Avoid unused variable.
48485
48486 2008-09-15  Bruno Haible  <bruno@clisp.org>
48487
48488         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48489         are missing on OpenBSD 4.0 individually.
48490         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48491
48492 2008-09-15  Bruno Haible  <bruno@clisp.org>
48493
48494         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48495         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48496         * doc/posix-functions/perror.texi: Likewise.
48497         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48498         is missing.
48499         Reported by Eric Blake.
48500
48501         * lib/errno.in.h: Use replacement values >= 2000.
48502         Reported by Eric Blake.
48503
48504 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48505
48506         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48507         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48508         limit.
48509         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48510         compareseq was aborted.
48511
48512 2008-09-14  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48515         yvec_edit_count.
48516         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48517         (fstrcmp_bounded): Simplify result computation accordingly.
48518
48519 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48520
48521         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48522         (fstrcmp): Define in terms of fstrcmp_bounded.
48523         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48524         lower_bound argument.
48525         Return quickly if the result is certainly < lower_bound.
48526         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48527
48528 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48529
48530         * lib/diffseq.h (EARLY_ABORT): New macro.
48531         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48532         evaluates to true.
48533
48534 2008-09-14  Bruno Haible  <bruno@clisp.org>
48535
48536         * modules/perror-tests: New file.
48537         * tests/test-perror.sh: New file.
48538         * tests/test-perror.c: New file.
48539
48540         New module 'perror'.
48541         * lib/stdio.in.h (perror): New declaration.
48542         * lib/perror.c: New file.
48543         * m4/perror.m4: New file.
48544         * modules/perror: New file.
48545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48546         * doc/posix-functions/perror.texi: Mention the perror module.
48547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48548         REPLACE_PERROR.
48549         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48550         REPLACE_PERROR.
48551
48552 2008-09-14  Bruno Haible  <bruno@clisp.org>
48553
48554         * modules/stdio (Makefile.am): Reorder to match the order in
48555         lib/stdio.in.h.
48556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48557
48558 2008-09-13  Bruno Haible  <bruno@clisp.org>
48559
48560         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48561
48562 2008-09-13  Bruno Haible  <bruno@clisp.org>
48563
48564         Extend strerror to cover the added errno values.
48565         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48566         (rpl_strerror): Provide error messages for the added errno values and
48567         for the WSA* values.
48568         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48569         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48570         strerror.
48571         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48572         * modules/strerror (Depends-on): Add errno.
48573         * doc/posix-functions/strerror.texi: Document the change.
48574         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48575         and EOVERFLOW.
48576
48577 2008-09-13  Bruno Haible  <bruno@clisp.org>
48578
48579         * modules/EOVERFLOW: Remove file.
48580         * m4/eoverflow.m4: Remove file.
48581         * modules/EOVERFLOW-tests: Remove file.
48582         * tests/test-EOVERFLOW.c: Remove file.
48583         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48584         * modules/ftell (Depends-on): Likewise.
48585         * modules/getdelim (Depends-on): Likewise.
48586         * modules/getugroups (Depends-on): Likewise.
48587         * modules/poll (Depends-on): Likewise.
48588         * modules/snprintf (Depends-on): Likewise.
48589         * modules/sprintf-posix (Depends-on): Likewise.
48590         * modules/vasnprintf (Depends-on): Likewise.
48591         * modules/vasprintf (Depends-on): Likewise.
48592         * modules/vfprintf-posix (Depends-on): Likewise.
48593         * modules/vsnprintf (Depends-on): Likewise.
48594         * modules/vsprintf-posix (Depends-on): Likewise.
48595         * modules/xvasprintf (Depends-on): Likewise.
48596         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48597         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48598         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48599         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48600         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48601         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48602         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48603         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48604         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48605         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48606         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48607         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48608         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48609         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48610         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48611         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48612         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48613         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48614         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48615         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48616         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48617         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48618         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48619         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48620         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48621         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48622         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48623         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48624         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48625         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48626         * MODULES.html.sh: Remove EOVERFLOW.
48627         * NEWS: Mention the change.
48628
48629 2008-09-13  Bruno Haible  <bruno@clisp.org>
48630
48631         * modules/errno-tests: New file.
48632         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48633
48634         * lib/errno.in.h: New file.
48635         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48636         * modules/errno: New file.
48637         * doc/posix-headers/errno.texi: Update documentation.
48638         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48639
48640 2008-09-13  Bruno Haible  <bruno@clisp.org>
48641
48642         * tests/test-poll.c: Use #if for native Windows, rather than testing
48643         __MSVCRT__.
48644
48645 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48646             Bruno Haible  <bruno@clisp.org>
48647
48648         * lib/glob.c: Don't include <pwd.h> on native Windows.
48649         (WINDOWS32): New macro.
48650         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48651
48652 2008-09-13  Bruno Haible  <bruno@clisp.org>
48653
48654         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48655         (ETIMEDOUT): Remove macro.
48656         (glthread_cond_timedwait_multithreaded): New declaration.
48657         (glthread_cond_timedwait): Use it.
48658         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48659         (glthread_cond_timedwait_multithreaded): New function.
48660
48661 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48662
48663         * modules/poll-tests: Do not check for io.h.
48664         * tests/test-poll.c: Check for __MSVCRT__ instead.
48665
48666 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48667
48668         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48669         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48670         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48671
48672 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48673
48674         * modules/poll-tests: New.
48675         * tests/test-poll.c: New.
48676
48677 2008-09-12  Eric Blake  <ebb9@byu.net>
48678
48679         frexp: test for NetBSD failure on -0.0
48680         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48681         not all, bugs from NetBSD 3.0 have been fixed.
48682         * doc/posix-functions/frexp.texi (frexp): Document bug.
48683         Reported by Thomas Klausner.
48684
48685         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48686         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48687         literal -0.0.
48688         Reported by Jonathan C. Patschke <jp@centtech.com>.
48689
48690 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48691
48692         * lib/glthread/cond.h: Use dummy implementation also if
48693         USE_WIN32_THREADS.
48694
48695 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48696
48697         * modules/fnmatch-posix (License): Change to LGPLv2+.
48698         * modules/fnmatch-gnu (License): Likewise.
48699
48700 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48701
48702         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48703
48704 2008-09-11  Jim Meyering  <meyering@redhat.com>
48705
48706         * users.txt: Add gtk-vnc.
48707
48708 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48709
48710         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48711         rotate amounts.
48712
48713         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48714         required for 16-bit and 8-bit rotates.
48715         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48716         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48717         UINT8_MAX instead of hard-coded constants.
48718         Suggested by Paul Eggert.
48719
48720 2008-09-07  Bruno Haible  <bruno@clisp.org>
48721
48722         * tests/test-striconveh.c (main): Check behaviour when converting from
48723         UTF-7.
48724
48725         Make striconveh work better with stateful encodings.
48726         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48727         that iconv does not increment the inptr when returning -1/EINVAL.
48728
48729 2008-09-07  Bruno Haible  <bruno@clisp.org>
48730
48731         * build-aux/config.rpath: Update according to libtool-2.2.6.
48732         * build-aux/config.libpath: Likewise.
48733
48734 2008-09-06  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48737         * lib/freadptr.c (freadptr): Likewise.
48738         * lib/freadseek.c (freadptrinc): Likewise.
48739         Reported by Simon Josefsson.
48740
48741 2008-09-06  Bruno Haible  <bruno@clisp.org>
48742
48743         * modules/freadptr (License): Change to LGPLv2+.
48744         * modules/freadseek (License): Likewise.
48745         Suggested by Eric Blake.
48746
48747         * modules/memchr2 (License): Change to LGPLv2+.
48748         Approved by Eric Blake.
48749
48750 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48751             Bruno Haible  <bruno@clisp.org>
48752
48753         Make gnulib-tool work with native 'sed' on AIX.
48754         * gnulib-tool (sed_noop): New variable.
48755         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48756         func_add_or_update, func_create_testdir): Use it to initialize sed
48757         script variables.
48758         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48759
48760 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48761             Bruno Haible  <bruno@clisp.org>
48762
48763         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48764         also works after #include directives.
48765
48766 2008-09-04  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
48767
48768         getdate.y: reject an out-of-range timezone value
48769         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48770         the range [-24...+24].  When specified with only one or two digits,
48771         * tests/test-getdate.c: Tests for the fix.
48772         * doc/getdate.texi: Document this change.
48773
48774 2008-09-03  Bruno Haible  <bruno@clisp.org>
48775
48776         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48777
48778 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48779
48780         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48781         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48782         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48783         Blake <ebb9@byu.net>.
48784
48785         * tests/test-bitrotate.c: Add more test vectors.
48786
48787 2008-09-02  Eric Blake  <ebb9@byu.net>
48788
48789         vasnprintf-posix: handle large precision via %.*d
48790         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48791         when handling it ourselves.
48792         * tests/test-vasnprintf-posix.c (test_function): Add test.
48793         * tests/test-snprintf-posix.h (test_function): Likewise.
48794         * tests/test-sprintf-posix.h (test_function): Likewise.
48795         * tests/test-vasprintf-posix.c (test_function): Likewise.
48796         Reported by Alain Guibert.
48797
48798 2008-09-01  Eric Blake  <ebb9@byu.net>
48799
48800         c-stack: make configure-time check more robust
48801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48802         successful sigaction call.
48803         Reported by Tom G. Christensen.
48804
48805 2008-09-01  Bruno Haible  <bruno@clisp.org>
48806
48807         New module 'findprog-lgpl'.
48808         * modules/findprog-lgpl: New file.
48809         * lib/findprog-lgpl.c: New file.
48810         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48811         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48812         to decide whether to use strdup or xstrdup, concatenated_filename or
48813         xconcatenated_filename.
48814
48815 2008-09-01  Bruno Haible  <bruno@clisp.org>
48816
48817         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48818         'xconcat-filename' (GPL).
48819         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48820         (License): Change to LGPLv2+.
48821         * modules/xconcat-filename: New file.
48822         * lib/concat-filename.h (concatenated_filename): Change specification.
48823         (xconcatenated_filename): New declaration.
48824         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48825         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48826         memory situations.
48827         * lib/xconcat-filename.c: New file.
48828         * NEWS: Mention the change.
48829         * lib/findprog.c: Include concat-filename.h, not filename.h.
48830         (find_in_path): Use xconcatenated_filename instead of
48831         concatenated_filename.
48832         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48833         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48834         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48835         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48836         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48837         instead of concatenated_filename.
48838         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48839         (execute_java_class): Use xconcatenated_filename instead of
48840         concatenated_filename.
48841         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48842         * modules/javacomp (Depends-on): Likewise.
48843         * modules/javaexec (Depends-on): Likewise.
48844
48845 2008-09-01  Bruno Haible  <bruno@clisp.org>
48846
48847         Split module 'filename' into 'filename' and 'concat-filename'.
48848         * modules/filename: Keep only lib/filename.h.
48849         (License): Change to LGPLv2+.
48850         * modules/concat-filename: New file, extracted from modules/filename.
48851         * lib/filename.h (concatenated_filename): Remove declaration.
48852         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48853         * lib/concat-filename.c: Include concat-filename.h.
48854         * NEWS: Mention the change.
48855
48856 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48857
48858         * lib/bitrotate.h (rotl8, rotr8): Add.
48859
48860         * modules/bitrotate (configure.ac): Need
48861         AC_REQUIRE([AC_C_INLINE]).
48862         (Description): Mention stdint.h.  Reported by Bruno Haible
48863         <bruno@clisp.org>.
48864
48865         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48866         Paolo Bonzini <bonzini@gnu.org>.
48867
48868 2008-08-31  Bruno Haible  <bruno@clisp.org>
48869
48870         Assume Solaris specific bi-arch conventions on Solaris systems.
48871         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48872         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48874         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48875         like acl_libdirstem.
48876         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48877         acl_libdirstem.
48878         * NEWS: Mention the change.
48879         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48880
48881 2008-08-31  Jim Meyering  <meyering@redhat.com>
48882
48883         * lib/strftime.h: Add comments describing the two added arguments.
48884
48885         remove duplicate #include directives
48886         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48887         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48888
48889 2008-08-31  Bruno Haible  <bruno@clisp.org>
48890
48891         New module 'sigpipe-die'.
48892         * modules/sigpipe-die: New file.
48893         * lib/sigpipe-die.h: New file.
48894         * lib/sigpipe-die.c: New file.
48895         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48896
48897 2008-08-31  Bruno Haible  <bruno@clisp.org>
48898
48899         Don't override previously installed signal handlers.
48900         * lib/fatal-signal.c (saved_sigactions): New variable.
48901         (uninstall_handlers): Reset the signal to the saved handler, not
48902         to SIG_DFL (except when ignored).
48903         (install_handlers): Save the previous handlers.
48904
48905 2008-08-30  Bruno Haible  <bruno@clisp.org>
48906
48907         * gnulib-tool (func_reset_sigpipe): New function.
48908         (func_get_automake_snippet, func_modules_transitive_closure,
48909         func_import): Invoke it before a join command that reads from stdin,
48910         to avoid "echo: write error: Broken pipe" error messages on stderr.
48911         Reported by Sam Steingold <sds@gnu.org>.
48912
48913 2008-08-30  Bruno Haible  <bruno@clisp.org>
48914
48915         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48916         Code copied from m4/open.m4.
48917         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48918         access and the filename ends in a slash. Code copied from lib/open.c.
48919         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48920         * tests/test-fopen.c (main): Check against bug with trailing slash.
48921
48922 2008-08-29  Bruno Haible  <bruno@clisp.org>
48923
48924         Avoid some "gcc -pedantic" warnings.
48925         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48926         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48927         * lib/dirent.in.h: Likewise.
48928         * lib/fcntl.in.h: Likewise.
48929         * lib/float.in.h: Likewise.
48930         * lib/iconv.in.h: Likewise.
48931         * lib/inttypes.in.h: Likewise.
48932         * lib/locale.in.h: Likewise.
48933         * lib/math.in.h: Likewise.
48934         * lib/netinet_in.in.h: Likewise.
48935         * lib/search.in.h: Likewise.
48936         * lib/signal.in.h: Likewise.
48937         * lib/stdarg.in.h: Likewise.
48938         * lib/stdint.in.h: Likewise.
48939         * lib/stdio.in.h: Likewise.
48940         * lib/stdlib.in.h: Likewise.
48941         * lib/string.in.h: Likewise.
48942         * lib/strings.in.h: Likewise.
48943         * lib/sys_select.in.h: Likewise.
48944         * lib/sys_socket.in.h: Likewise.
48945         * lib/sys_stat.in.h: Likewise.
48946         * lib/sys_time.in.h: Likewise.
48947         * lib/sysexits.in.h: Likewise.
48948         * lib/time.in.h: Likewise.
48949         * lib/unistd.in.h: Likewise.
48950         * lib/wchar.in.h: Likewise.
48951         * lib/wctype.in.h: Likewise.
48952         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48953         * modules/fchdir (Makefile.am): Likewise.
48954         * modules/fcntl (Makefile.am): Likewise.
48955         * modules/float (Makefile.am): Likewise.
48956         * modules/iconv_open (Makefile.am): Likewise.
48957         * modules/inttypes (Makefile.am): Likewise.
48958         * modules/locale (Makefile.am): Likewise.
48959         * modules/math (Makefile.am): Likewise.
48960         * modules/netinet_in (Makefile.am): Likewise.
48961         * modules/search (Makefile.am): Likewise.
48962         * modules/signal (Makefile.am): Likewise.
48963         * modules/stdarg (Makefile.am): Likewise.
48964         * modules/stdint (Makefile.am): Likewise.
48965         * modules/stdio (Makefile.am): Likewise.
48966         * modules/stdlib (Makefile.am): Likewise.
48967         * modules/string (Makefile.am): Likewise.
48968         * modules/strings (Makefile.am): Likewise.
48969         * modules/sys_select (Makefile.am): Likewise.
48970         * modules/sys_socket (Makefile.am): Likewise.
48971         * modules/sys_stat (Makefile.am): Likewise.
48972         * modules/sys_time (Makefile.am): Likewise.
48973         * modules/sysexits (Makefile.am): Likewise.
48974         * modules/time (Makefile.am): Likewise.
48975         * modules/unistd (Makefile.am): Likewise.
48976         * modules/wchar (Makefile.am): Likewise.
48977         * modules/wctype (Makefile.am): Likewise.
48978         Reported by Reuben Thomas <rrt@sc3d.org>.
48979
48980 2008-08-29  Bruno Haible  <bruno@clisp.org>
48981
48982         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48983         any more.
48984
48985 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48986
48987         * MODULES.html.sh (Misc): Add bitrotate.
48988
48989         * modules/bitrotate: New file.
48990
48991         * lib/bitrotate.h: New file.
48992
48993         * modules/bitrotate-tests: New file.
48994
48995         * tests/test-bitrotate.c: New file.
48996
48997         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48998         on the bitrotate module.
48999
49000         * lib/arctwo.c: Use new bitrotate module.
49001
49002 2008-08-29  Jim Meyering  <meyering@redhat.com>
49003
49004         bootstrap: merge changes from coreutils
49005         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49006         of copied files.  Remove a kludge, now that this is fixed.
49007         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49008         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49009         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49010
49011 2008-08-29  Bruno Haible  <bruno@clisp.org>
49012
49013         * MODULES.html.sh: Remove --cvs-urls option.
49014
49015 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49016
49017         maint.mk: adjust to file name change
49018         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49019
49020 2008-08-28  Jim Meyering  <meyering@redhat.com>
49021
49022         * modules/getndelim2 (License): Relicense to LGPLv2+.
49023         Approved by Richard Stallman for the version of 1995, and by
49024         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49025
49026 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49027
49028         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49029         dummy if one is not available.  Do not touch them if
49030         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49031         (getc_maybe_unlocked): New.
49032         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49033
49034 2008-08-26  Eric Blake  <ebb9@byu.net>
49035
49036         doc/INSTALL: resync from autoconf
49037         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49038         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49039         moving...
49040         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49041         * INSTALL: Regenerate.
49042         * INSTALL.ISO: New file.
49043         * INSTALL.UTF-8: Likewise.
49044
49045 2008-08-26  Jim Meyering  <meyering@redhat.com>
49046
49047         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49048         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49049         these definitions conditional, so that they may be overridden, too.
49050
49051 2008-08-26  Bruno Haible  <bruno@clisp.org>
49052
49053         Generate INSTALL file variants with prettier quotes.
49054         * doc/Makefile (INSTALL_PRELUDE): New macro.
49055         (INSTALL): Use it.
49056         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49057
49058 2008-08-26  Bruno Haible  <bruno@clisp.org>
49059
49060         Run makeinfo in an English locale.
49061         * doc/Makefile (MAKEINFO): New variable.
49062
49063 2008-08-26  Bruno Haible  <bruno@clisp.org>
49064
49065         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49066         Suggested by Eric Blake.
49067
49068 2008-08-25  Bruno Haible  <bruno@clisp.org>
49069
49070         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49071
49072 2008-08-25  Eric Blake  <ebb9@byu.net>
49073
49074         c-stack: test that stack overflow can be caught
49075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49076         that platform allows handling stack overflow; at least OS/2 EMX
49077         has sigaltstack, but crashes before transferring control to
49078         handler on stack overflow.
49079         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49080         check for HAVE_STACK_OVERFLOW_HANDLING.
49081         Reported by Elbert Pol.
49082
49083 2008-08-25  Bruno Haible  <bruno@clisp.org>
49084
49085         * doc/posix-functions/strftime.texi: Fix description of strftime
49086         module.
49087
49088 2008-08-24  Bruno Haible  <bruno@clisp.org>
49089
49090         * tests/uniwidth/test-uc_width2.c: New file.
49091         * tests/uniwidth/test-uc_width2.sh: New file.
49092         * modules/uniwidth/width-tests (Files): Add the new files.
49093         (TESTS): Add uniwidth/test-uc_width2.sh.
49094         (TESTS_ENVIRONMENT): New variable.
49095         (check_PROGRAMS): Add test-uc_width2.
49096         (test_uc_width2_SOURCES): New variable.
49097
49098         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49099         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49100         not 0x00AB.
49101         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49102
49103 2008-08-22  Eric Blake  <ebb9@byu.net>
49104
49105         test-lock, test-tls: mention why a test is skipped
49106         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49107         skipped.
49108         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49109
49110         count-one-bits: relax license
49111         * modules/count-one-bits (License): Relicense to LGPLv2+.
49112         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49113
49114 2008-08-22  Andreas Schwab  <schwab@suse.de>
49115
49116         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49117         Remove spurious space in assignment.
49118
49119 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49120
49121         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49122         Paul Eggert <eggert@CS.UCLA.EDU>.
49123
49124 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49125
49126         * modules/gettext: Add m4/threadlib.m4.
49127
49128 2008-08-19  Eric Blake  <ebb9@byu.net>
49129
49130         test-c-stack: fix compilation failure on FreeBSD 5.0
49131         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49132         headers before <sys/resource.h>.
49133         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49134         the bug.
49135         Reported by Nelson H. F. Beebe.
49136
49137         strverscmp: migrate from "strverscmp.h" to <string.h>
49138         * modules/string (Makefile.am): Add new hooks.
49139         * modules/strverscmp (Files): Remove strverscmp.h.
49140         (Depends-on): Add string.
49141         (configure.ac): Add indicator.
49142         (Include): Mention new header.
49143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49144         defaults.
49145         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49146         results.
49147         * lib/strverscmp.h: Delete.
49148         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49149         * tests/test-strverscmp.c (includes): Adjust client.
49150         * lib/check-version.c (includes): Likewise.
49151         * NEWS: Document the change.
49152
49153         strverscmp: add unit test
49154         * modules/strverscmp-tests: New file.
49155         * tests/test-strverscmp.c: Likewise.
49156
49157 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49158
49159         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49160         regarding Windows crypto stuff, from Mono.
49161
49162 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49163
49164         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49165         if present, for intel RND.  Return error on failures.
49166
49167 2008-08-18  Ben Pfaff  <blp@gnu.org>
49168
49169         gitlog-to-changelog: give better diagnostic for failed pipe-open
49170         * build-aux/gitlog-to-changelog: Improve error message: suggest
49171         that the version of Git may be too old.
49172
49173 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49174
49175         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49176         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49177
49178 2008-08-18  Bruno Haible  <bruno@clisp.org>
49179
49180         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49181         pthread_in_use().
49182
49183 2008-08-18  Bruno Haible  <bruno@clisp.org>
49184
49185         * lib/glthread/threadlib.c: Include <pthread.h>.
49186
49187 2008-08-18  Bruno Haible  <bruno@clisp.org>
49188
49189         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49190         glthread_recursive_lock_* macros.
49191         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49192         Fix syntax error.
49193
49194 2008-08-18  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/glthread/thread.c: Avoid forcing a context switch right after
49197         thread creation.
49198
49199 2008-08-17  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49202         * lib/glthread/thread.h: Provide Win32 specific implementation.
49203         * modules/thread (Files): Add lib/glthread/thread.c.
49204         (Depends-on): Add lock.
49205         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49206
49207 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49208
49209         New module 'yield'.
49210         * modules/yield: New file.
49211         * lib/glthread/yield.h: New file.
49212         * m4/yield.m4: New file.
49213         * MODULES.html.sh (Multithreading): Add yield.
49214
49215 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49216
49217         New module 'thread'.
49218         * modules/thread: New file.
49219         * lib/glthread/thread.h: New file.
49220         * m4/thread.m4: New file.
49221         * MODULES.html.sh (Multithreading): Add thread.
49222
49223 2008-08-17  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/glthread/lock.h: Include <stdlib.h> always.
49226         * lib/glthread/tls.h: Likewise.
49227         * lib/glthread/cond.h: Likewise.
49228
49229 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49230
49231         New module 'cond'.
49232         * modules/cond: New file.
49233         * lib/glthread/cond.h: New file.
49234         * lib/glthread/cond.c: New file.
49235         * m4/cond.m4: New file.
49236         * MODULES.html.sh (Multithreading): Add cond.
49237
49238 2008-08-16  Eric Blake  <ebb9@byu.net>
49239
49240         c-stack: fix regression on Irix 5.3 from 2008-06-21
49241         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49242         sa_sigaction...
49243         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49244         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49246         * modules/signal (Makefile.am): Use the value.
49247         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49248         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49249         * doc/posix-headers/signal.texi (signal.h): Document this
49250         portability issue.
49251         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49252         Reported by Tom G. Christensen.
49253
49254 2008-08-17  Bruno Haible  <bruno@clisp.org>
49255
49256         New module 'threadlib'.
49257         * modules/threadlib: New file.
49258         * lib/glthread/threadlib.c: New file, extracted from
49259         lib/glthread/lock.c.
49260         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49261         functions.
49262         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49263         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49264         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49265         macros.
49266         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49267         (gl_DISABLE_THREADS): Remove macro.
49268         * modules/lock (Files): Remove build-aux/config.rpath.
49269         (Depends-on): Remove havelib. Add threadlib.
49270         (configure.ac-early): Remove section.
49271         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49272         * modules/tls (Depends-on): Remove lock. Add threadlib.
49273         (Link): New section, copied from threadlib.
49274         * MODULES.html.sh (Multithreading): Add threadlib.
49275
49276 2008-08-14  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49279         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49280         glthread_rwlock_unlock, glthread_rwlock_destroy,
49281         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49282         glthread_recursive_lock_destroy): Define as macros always.
49283         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49284         glthread_lock_lock.
49285         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49286         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49287         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49288         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49289         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49290         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49291         (glthread_recursive_lock_lock_func): Renamed from
49292         glthread_recursive_lock_lock.
49293         (glthread_recursive_lock_unlock_func): Renamed from
49294         glthread_recursive_lock_unlock.
49295         (glthread_recursive_lock_destroy_func): Renamed from
49296         glthread_recursive_lock_destroy.
49297
49298 2008-08-14  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/glthread/lock.h: Renamed from lib/lock.h.
49301         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49302         * lib/glthread/tls.h: Renamed from lib/tls.h.
49303         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49304         * lib/fstrcmp.c: Update includes.
49305         * lib/strsignal.c: Update includes.
49306         * modules/lock (Files, Makefile.am): Update.
49307         (Include): Change to "glthread/lock.h".
49308         * modules/tls (Files, Makefile.am): Update.
49309         (Include): Change to "glthread/tls.h".
49310         * tests/test-lock.c: Update includes.
49311         * tests/test-tls.c: Update includes.
49312         * NEWS: Mention the renamed header files.
49313
49314 2008-08-11  Jim Meyering  <meyering@redhat.com>
49315
49316         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49317
49318 2008-08-11  Eric Blake  <ebb9@byu.net>
49319
49320         test-c-stack: avoid C99-ism
49321         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49322         before statement.
49323         Reported by Alain Guibert.
49324
49325 2008-08-10  Jim Meyering  <meyering@redhat.com>
49326
49327         ensure that return value of uinttostr et al are not ignored
49328         * lib/inttostr.h (__GNUC_PREREQ): Define.
49329         (__attribute_warn_unused_result__): Define.
49330         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49331
49332 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49333
49334         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49335         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49336
49337 2008-08-07  Jim Meyering  <meyering@redhat.com>
49338
49339         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49340
49341         * modules/mkstemp (License): Relicense under LGPLv2+.
49342         * modules/tempname (License): Likewise.
49343
49344 2008-08-06  Bruno Haible  <bruno@clisp.org>
49345
49346         * lib/poll.c (poll): Further micro-optimization.
49347
49348 2008-08-06  Jim Meyering  <meyering@redhat.com>
49349
49350         inet_pton.c: use locale-independent tolower
49351         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49352         (inet_pton6): Use c_tolower rather than tolower.
49353         * modules/inet_pton (Depends-on): Add c-ctype.
49354
49355 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49356
49357         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49358         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49359
49360 2008-08-06  Jim Meyering  <meyering@redhat.com>
49361
49362         * modules/inet_pton (License): Relicense under LGPLv2+.
49363
49364 2008-08-03  Bruno Haible  <bruno@clisp.org>
49365
49366         Additional non-aborting API for lock and tls.
49367         * lib/lock.h: Include <errno.h>.
49368         (glthread_lock_init): New macro/function.
49369         (gl_lock_init): Define as wrapper around glthread_lock_init.
49370         (glthread_lock_lock): New macro/function.
49371         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49372         (glthread_lock_unlock): New macro/function.
49373         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49374         (glthread_lock_destroy): New macro/function.
49375         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49376         (glthread_rwlock_init): New macro/function.
49377         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49378         (glthread_rwlock_rdlock): New macro/function.
49379         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49380         (glthread_rwlock_wrlock): New macro/function.
49381         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49382         (glthread_rwlock_unlock): New macro/function.
49383         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49384         (glthread_rwlock_destroy): New macro/function.
49385         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49386         (glthread_recursive_lock_init): New macro/function.
49387         (gl_recursive_lock_init): Define as wrapper around
49388         glthread_recursive_lock_init.
49389         (glthread_recursive_lock_lock): New macro/function.
49390         (gl_recursive_lock_lock): Define as wrapper around
49391         glthread_recursive_lock_lock.
49392         (glthread_recursive_lock_unlock): New macro/function.
49393         (gl_recursive_lock_unlock): Define as wrapper around
49394         glthread_recursive_lock_unlock.
49395         (glthread_recursive_lock_destroy): New macro/function.
49396         (gl_recursive_lock_destroy): Define as wrapper around
49397         glthread_recursive_lock_destroy.
49398         (glthread_once): New macro/function.
49399         (gl_once): Define as wrapper around glthread_once.
49400         Update function declarations.
49401         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49402         glthread_rwlock_init. Return error code.
49403         (glthread_rwlock_rdlock_multithreaded): Renamed from
49404         glthread_rwlock_rdlock. Return error code.
49405         (glthread_rwlock_wrlock_multithreaded): Renamed from
49406         glthread_rwlock_wrlock. Return error code.
49407         (glthread_rwlock_unlock_multithreaded): Renamed from
49408         glthread_rwlock_unlock. Return error code.
49409         (glthread_rwlock_destroy_multithreaded): Renamed from
49410         glthread_rwlock_destroy. Return error code.
49411         (glthread_recursive_lock_init_multithreaded): Renamed from
49412         glthread_recursive_lock_init. Return error code.
49413         (glthread_recursive_lock_lock_multithreaded): Renamed from
49414         glthread_recursive_lock_lock. Return error code.
49415         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49416         glthread_recursive_lock_unlock. Return error code.
49417         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49418         glthread_recursive_lock_destroy. Return error code.
49419         (glthread_once_call): Make static.
49420         (glthread_once_multithreaded): Renamed from glthread_once.
49421         * lib/tls.h: Include <errno.h>.
49422         (glthread_tls_key_init): New macro/function.
49423         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49424         (glthread_tls_set): New macro/function.
49425         (gl_tls_set): Define as wrapper around glthread_tls_set.
49426         (glthread_tls_key_destroy): New macro/function.
49427         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49428         Update function declarations.
49429         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49430         glthread_tls_get.
49431         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49432
49433 2008-08-04  Eric Blake  <ebb9@byu.net>
49434
49435         gnumakefile: use space, not TAB, outside of targets
49436         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49437
49438 2008-08-02  Jim Meyering  <meyering@redhat.com>
49439
49440         getdate.y: avoid locale-dependent date parsing failure
49441         In Turkish locales, getdate would fail to recognize keywords
49442         containing a lowercase "i".  The solution is not to rely on
49443         locale-sensitive case-conversion.
49444         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49445         (lookup_word): Use c_toupper in place of toupper.
49446         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49447         Reported by Vefa Bicakci <bicave@superonline.com> in
49448         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49449         * modules/getdate (Depends-on): Add c-ctype.
49450
49451 2008-08-02  Bruno Haible  <bruno@clisp.org>
49452
49453         * gnulib-tool (func_import): When updating or creating a .gitignore
49454         file, prepend each added line with a slash, and ignore leading slashes
49455         from the existing lines.
49456         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49457
49458 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49459
49460         Portability fix for GNU make 3.79.1.
49461         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49462         versions do not understand.
49463
49464 2008-08-01  Bruno Haible  <bruno@clisp.org>
49465
49466         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49467         * tests/test-isnanf.h (zero): New variable.
49468         (main): Avoid literal -0.0f.
49469         * tests/test-isnand.h (zero): New variable.
49470         (main): Avoid literal -0.0.
49471         * tests/test-isnanl.h (zero): New variable.
49472         (main): Avoid literal -0.0L.
49473         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49474         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49475         -0.0, -0.0L.
49476         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49477         (test_signbitd): Avoid literal -0.0.
49478         (test_signbitl): Avoid literal -0.0L.
49479         * tests/test-ceilf1.c (zero): New variable.
49480         (main): Avoid literal -0.0f.
49481         * tests/test-ceill.c (zero): New variable.
49482         (main): Avoid literal -0.0L.
49483         * tests/test-floorf1.c (zero): New variable.
49484         (main): Avoid literal -0.0f.
49485         * tests/test-floorl.c (zero): New variable.
49486         (main): Avoid literal -0.0L.
49487         * tests/test-roundf1.c (zero): New variable.
49488         (main): Avoid literal -0.0f.
49489         * tests/test-round1.c (zero): New variable.
49490         (main): Avoid literal -0.0.
49491         * tests/test-roundl.c (zero): New variable.
49492         (main): Avoid literal -0.0L.
49493         * tests/test-truncf1.c (zero): New variable.
49494         (main): Avoid literal -0.0f.
49495         * tests/test-trunc1.c (zero): New variable.
49496         (main): Avoid literal -0.0.
49497         * tests/test-truncl.c (zero): New variable.
49498         (main): Avoid literal -0.0L.
49499         * tests/test-frexp.c (zero): New variable.
49500         (main): Avoid literal -0.0.
49501         * tests/test-frexpl.c (zero): New variable.
49502         (main): Avoid literal -0.0L.
49503         * tests/test-ldexpl.c (zero): New variable.
49504         (main): Avoid literal -0.0L.
49505         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49506         (zerod, zerol): New variables.
49507         (test_function): Avoid literals -0.0, -0.0L.
49508         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49509         (zerod, zerol): New variables.
49510         (test_function): Avoid literals -0.0, -0.0L.
49511         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49512         (zerod, zerol): New variables.
49513         (test_function): Avoid literals -0.0, -0.0L.
49514         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49515         (zerod, zerol): New variables.
49516         (test_function): Avoid literals -0.0, -0.0L.
49517         * tests/test-strtod.c (zero): New variable.
49518         (main): Avoid literal -0.0.
49519         Reported by Jonathan C. Patschke <jp@centtech.com>.
49520
49521 2008-07-31  Jim Meyering  <meyering@redhat.com>
49522
49523         sha256.h: correct definition of SHA224_DIGEST_SIZE
49524         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49525         Reported by Paulie Pena IV <paulie4@gmail.com>.
49526         Define as 224 / 8, rather than as a literal.
49527         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49528         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49529         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49530
49531 2008-07-31  Bruno Haible  <bruno@clisp.org>
49532
49533         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49534         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49535         Reported by Jonathan Patschke <jp@centtech.com>.
49536
49537 2008-07-31  Bruno Haible  <bruno@clisp.org>
49538
49539         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49540         Reported by Paolo Bonzini <bonzini@gnu.org>.
49541
49542 2008-07-30  Eric Blake  <ebb9@byu.net>
49543
49544         test-strtod: allow compilation without -lm
49545         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49546         Reported by Dennis Clarke <blastwave@gmail.com>.
49547
49548 2008-07-28  Jim Meyering  <meyering@redhat.com>
49549
49550         bootstrap: work also when there are no .po files in po/
49551         * build-aux/bootstrap (update_po_files): Complete the change
49552         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49553
49554 2008-07-27  Jim Meyering  <meyering@redhat.com>
49555
49556         * users.txt: Add zile.
49557
49558 2008-07-26  Ben Pfaff  <blp@gnu.org>
49559
49560         Add missing dependencies on new m4/exponent[fdl].m4 files.
49561         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49562         * modules/isnand-nolibm: Add m4/exponentd.m4.
49563         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49564         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49565         m4/isnan[fdl].m4, because the macros actually used moved.
49566         Reported by Jim Meyering.
49567
49568 2008-07-14  Ben Pfaff  <blp@gnu.org>
49569
49570         Add isinf module.
49571         * lib/isinf.c: New file.
49572         * lib/math.in.h: Define isinf macro if we have decided to replace
49573         it.
49574         * m4/isinf.m4: New file.
49575         * m4/math_h.m4: Initialize and substitute variables for isinf
49576         module.
49577         * modules/isinf: New file.
49578         * modules/isinf-tests: New file.
49579         * modules/math: Add substitutions for new module.
49580         * tests/test-isinf.c: New file.
49581         * doc/posix-functions/isinf.texi: Mention new module.
49582         * MODULES.html.sh: Mention new module.
49583
49584 2008-07-14  Ben Pfaff  <blp@gnu.org>
49585
49586         Factor out some macros for use by additional modules.
49587         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49588         exponentf.m4.
49589         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49590         exponentd.m4.
49591         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49592         file exponentl.m4.
49593         * m4/exponentf.m4: New file.
49594         * m4/exponentd.m4: New file.
49595         * m4/exponentl.m4: New file.
49596         * modules/isnanf: Use new file m4/exponentf.m4.
49597         * modules/isnand: Use new file m4/exponentd.m4.
49598         * modules/isnanl: Use new file m4/exponentl.m4.
49599
49600 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49601
49602         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49603         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49604         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49605         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49606
49607         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49608         readlink on platforms without PATH_MAX.
49609
49610 2008-07-21  Eric Blake  <ebb9@byu.net>
49611
49612         Warn, not fail, on stale version.
49613         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49614
49615         Don't allow installation with stale devel version number.
49616         * top/GNUmakefile (_is-install-target): New macro.
49617         (_curr-ver): Forbid installation with stale version number.
49618
49619 2008-07-20  Bruno Haible  <bruno@clisp.org>
49620
49621         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49622         TESTS_ENVIRONMENT.
49623         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49624
49625 2008-07-20  Bruno Haible  <bruno@clisp.org>
49626
49627         * lib/c-stack.h (c_stack_action): Add documentation.
49628         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49629
49630 2008-07-20  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49633         * modules/readlink (License): Likewise.
49634
49635 2008-07-17  Eric Blake  <ebb9@byu.net>
49636
49637         * modules/c-stack (Link): Fix typo.
49638
49639         Make c-stack use libsigsegv, when available.
49640         * modules/c-stack (Depends-on): Add libsigsegv.
49641         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49642         needed.
49643         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49644         (segv_handler, overflow_handler, c_stack_action)
49645         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49646         implementation when libsigsegv is available, but only when using
49647         the library is necessary.
49648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49649         comment, explaining why XSI check fails on Linux.
49650         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49651         * tests/test-c-stack2.sh: Tweak skip message.
49652         * NEWS: Document new link-time requirements.
49653
49654 2008-07-16  Eric Blake  <ebb9@byu.net>
49655
49656         c-stack: Expose false positives when not using libsigsegv.
49657         * modules/c-stack-tests (Files): Expand test.
49658         * tests/test-c-stack.c (main): Add means to conditionally trigger
49659         non-overflow SIGSEGV.
49660         * tests/test-c-stack2.sh: New file.
49661
49662 2008-07-14  Bruno Haible  <bruno@clisp.org>
49663
49664         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49665         Reported by Eric Blake.
49666
49667 2008-07-14  Sam Steingold  <sds@gnu.org>
49668             Bruno Haible  <bruno@clisp.org>
49669
49670         New module libsigsegv.
49671         * modules/libsigsegv: New file.
49672         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49673         modifications.
49674         * MODULES.html.sh (Signal handling): New section.
49675
49676 2008-07-14  Bruno Haible  <bruno@clisp.org>
49677
49678         * modules/unictype/ctype-* (Description): Add the word "function".
49679         Improves the resulting doc in MODULES.html.
49680
49681 2008-07-12  Ben Pfaff  <blp@gnu.org>
49682
49683         Add longlong module.
49684         * modules/longlong: New file.
49685
49686 2008-07-12  Bruno Haible  <bruno@clisp.org>
49687
49688         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49689         to empty.
49690
49691 2008-07-10  Ben Pfaff  <blp@gnu.org>
49692
49693         Add isnan module.
49694         * doc/posix-functions/isnan.texi: Mention new module.
49695         * lib/math.in.h: Define isnan macro if we have decided to replace
49696         it.
49697         * m4/isnan.m4: New file.
49698         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49699         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49700         also.
49701         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49702         redundancy.
49703         * m4/math_h.m4: Initialize and substitute variables for isnan
49704         module.
49705         * modules/isnan: New file.
49706         * modules/isnan-tests: New file.
49707         * modules/math: Add substitutions for new module.
49708         * tests/test-isnan.c: New file.
49709         * MODULES.html.sh: Mention new module.
49710
49711 2008-07-10  Ben Pfaff  <blp@gnu.org>
49712
49713         Add isnanf module.
49714         * lib/isnanf.m4: New file.
49715         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49716         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49717         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49718         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49719         * modules/isnanf: New file.
49720         * modules/isnanf-tests: New file.
49721         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49722         files.
49723         * tests/test-isnanf-nolibm.c: factored most of its contents into
49724         new file tests/test-isnanf.h.
49725         * tests/test-isnanf.h: New file.
49726         * tests/test-isnanf.c: New file.
49727         * MODULES.html.sh: Mention new module.
49728         * doc/glibc-functions/isnanf.texi: Mention new module.
49729
49730 2008-07-10  Ben Pfaff  <blp@gnu.org>
49731
49732         Add isnand module.
49733         * lib/isnand.h: New file.
49734         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49735         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49736         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49737         functionality also.
49738         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49739         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49740         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49741         * modules/isnand: New file.
49742         * modules/isnand-tests: New file.
49743         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49744         files.
49745         * tests/test-isnand-nolibm.c: factored most of its contents into
49746         new file tests/test-isnand.h.
49747         * tests/test-isnand.h: New file.
49748         * tests/test-isnand.c: New file.
49749         * MODULES.html.sh: Mention new module.
49750
49751 2008-07-10  Ben Pfaff  <blp@gnu.org>
49752
49753         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49754         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49755         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49756         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49757         * modules/isnanf-nolibm: Update references to renamed files.
49758         * modules/isnand-nolibm: Likewise.
49759         * modules/isnanf-nolibm-tests: Likewise.
49760         * modules/isnand-nolibm-tests: Likewise.
49761         * lib/frexp.c: Likewise.
49762         * lib/isfinite.c: Likewise.
49763         * lib/signbitd.c: Likewise.
49764         * lib/signbitf.c: Likewise.
49765         * lib/vasnprintf.c: Likewise.
49766         * tests/test-ceilf1.c: Likewise.
49767         * tests/test-ceilf2.c: Likewise.
49768         * tests/test-floorf1.c: Likewise.
49769         * tests/test-floorf2.c: Likewise.
49770         * tests/test-frexp.c: Likewise.
49771         * tests/test-round1.c: Likewise.
49772         * tests/test-round2.c: Likewise.
49773         * tests/test-roundf1.c: Likewise.
49774         * tests/test-strtod.c: Likewise.
49775         * tests/test-trunc1.c: Likewise.
49776         * tests/test-trunc2.c: Likewise.
49777         * tests/test-truncf1.c: Likewise.
49778         * tests/test-truncf2.c: Likewise.
49779         * NEWS: Mention the renamed header files.
49780
49781 2008-07-11  Jim Meyering  <meyering@redhat.com>
49782
49783         vc-list-files: make the last-resort awk code more portable
49784         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49785         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49786         does not support it.
49787
49788 2008-07-10  Eric Blake  <ebb9@byu.net>
49789
49790         Work with tar's bootstrap.
49791         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49792         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49793         an m4 comment.
49794
49795 2008-07-09  Jim Meyering  <meyering@redhat.com>
49796
49797         posix-shell.m4: fix typo that made this test malfunction
49798         * m4/posix-shell.m4: Remove capitalization in variable name.
49799
49800 2008-07-08  Bruno Haible  <bruno@clisp.org>
49801
49802         * m4/onceonly.m4: Update comments.
49803         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49804
49805 2008-07-04  Jim Meyering  <meyering@redhat.com>
49806
49807         * users.txt: Add vc-dwim.
49808         (bison, coreutils): Use the gitweb URL.
49809
49810 2008-07-03  Jim Meyering  <meyering@redhat.com>
49811
49812         * users.txt: Add libffcall.  From Sam Steingold.
49813
49814 2008-07-03  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
49815
49816         getdate.y: do not ignore TZ with relative day, month or year offset
49817         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49818         relative-date-handling, since otherwise, the latter would clobber the
49819         sole output (an updated Start value) of the tz-handling block.
49820         * tests/test-getdate.c: Tests for the fix
49821
49822 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49823
49824         Recognize 'foo_LIBRARIES += libgnu.a'.
49825         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49826         makefile snippet has already specified an installation location,
49827         also using '+='.
49828
49829 2008-07-02  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
49830
49831         getdate.y: factor out common actions
49832         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49833         Use them in place of open-coded actions.
49834
49835 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49836
49837         Add self-test for getdate module.
49838         * modules/getdate-tests: New file.
49839         * tests/test-getdate.c: New file.
49840
49841 2008-06-29  Bruno Haible  <bruno@clisp.org>
49842
49843         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49844         .gitignore.
49845         Reported by Sylvain Beucler <beuc@beuc.net>.
49846
49847 2008-06-29  Bruno Haible  <bruno@clisp.org>
49848
49849         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49850         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49851
49852 2008-06-29  Bruno Haible  <bruno@clisp.org>
49853
49854         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49855         EXTRA_DIST.
49856         Reported by Sylvain Beucler <beuc@beuc.net>.
49857
49858 2008-06-26  Jim Meyering  <meyering@redhat.com>
49859
49860         make several modules depend on the "open" module
49861         This provides slightly increased consistency when opening-for-write
49862         the name of a non-directory spelled with a trailing slash.
49863         * modules/chdir-safer: Likewise.
49864         * modules/chown: Likewise.
49865         * modules/clean-temp: Likewise.
49866         * modules/copy-file: Likewise.
49867         * modules/fchdir: Likewise.
49868         * modules/fcntl-safer: Likewise.
49869         * modules/pipe: Likewise.
49870         * modules/utime: Likewise.
49871         Prompted by Eric Blake and Bruno Haible.
49872
49873 2008-06-24  Andreas Schwab  <schwab@suse.de>
49874
49875         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49876         literals can be used as initializers for global variables.
49877
49878 2008-06-23  Eric Blake  <ebb9@byu.net>
49879
49880         Make gnulib-cache.m4 easier to diff.
49881         * gnulib-tool (func_import): Allow newlines when reading cached
49882         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49883
49884 2008-06-23  Bruno Haible  <bruno@clisp.org>
49885
49886         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49887         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49888         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49889         m4/signalblocking.m4.
49890         (gl_PREREQ_SIGACTION): Don't invoke it.
49891         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49892         gl_PREREQ_SIG_HANDLER_H.
49893         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49894         Don't check for sigaction here.
49895
49896 2008-06-23  Bruno Haible  <bruno@clisp.org>
49897
49898         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49899         (install_handlers): Don't set the SA_RESETHAND flag.
49900
49901 2008-06-23  Bruno Haible  <bruno@clisp.org>
49902
49903         * m4/sigaction.m4: Comment fixes.
49904         * lib/signal.in.h: Likewise.
49905
49906 2008-06-23  Eric Blake  <ebb9@byu.net>
49907
49908         Fix typo.
49909         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49910
49911         Avoid SA_ namespace.
49912         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49913         Reported by Ralf Wildenhues.
49914
49915         Avoid test failure due to SA_RESTORER.
49916         * tests/test-sigaction.c (SA_MASK): New macro.
49917         (main): Avoid failing due to extension flags being set.
49918         Reported by Jim Meyering.
49919
49920         Revert use of sig-handler.h in sigprocmask.c.
49921         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49922         it requires the existence of struct sigaction.
49923         * lib/sigprocmask.c (handler_t): Restore typedef.
49924         (rpl_signal, old_handlers): Use local type.
49925
49926 2008-06-22  Bruno Haible  <bruno@clisp.org>
49927
49928         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49929         conditionally.
49930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49931
49932 2008-06-22  Bruno Haible  <bruno@clisp.org>
49933
49934         * doc/posix-functions/siginterrupt.texi: Move note.
49935
49936         * lib/signal.in.h (SA_RESTART): New macro.
49937         * lib/sigaction.c: Update comment.
49938
49939         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49940
49941         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49942         (gl_PREREQ_SIGPROCMASK): Invoke it.
49943         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49944
49945         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49946
49947         * lib/sigprocmask.c: Update a comment.
49948
49949 2008-06-21  Eric Blake  <ebb9@byu.net>
49950
49951         Use sigaction module rather than signal().
49952         * modules/c-stack (Depends-on): Add sigaction.
49953         * modules/fatal-signal (Depends-on): Likewise.
49954         * modules/nanosleep (Depends-on): Likewise.
49955         * modules/sigprocmask (Files): Add sig-handler.h.
49956         * modules/sigaction (Files): Likewise.
49957         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49958         Eggert.
49959         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49960         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49961         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49962         (init_fatal_signals): Likewise.
49963         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49964         (siginterrupt): Delete fallback.
49965         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49966         instead.
49967         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49968         siginterrupt.
49969
49970         New module sigaction, for mingw.
49971         * modules/sigaction: New module...
49972         * modules/sigaction-tests: ...and its test.
49973         * m4/sigaction.m4: New file.
49974         * lib/sigaction.c: Likewise.
49975         * tests/test-sigaction.c: Likewise.
49976         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49977         * modules/signal (Makefile.am): Likewise.
49978         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49979         needed.
49980         * doc/posix-headers/signal.texi (signal.h): Mention provided
49981         types.
49982         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49983         that sigaction is preferable.
49984         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49985         module.
49986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49987         sigaction.
49988
49989         Improve robustness of sigprocmask by overriding signal.
49990         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49991         is in use.
49992         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49993         (SIGKILL, SIGSTOP): Provide fallbacks.
49994         (rpl_signal): Implement.
49995         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49996         signal can be called inside handlers.
49997
49998         Fix nanosleep module on mingw.
49999         * modules/nanosleep (Depends-on): Add sys_select.
50000         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50001
50002         Fix licensing of sigprocmask.
50003         * modules/raise (License): Relicense as LGPL.
50004
50005 2008-06-21  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50008         result if it contains question marks.
50009         Reported by Michael Geng <linux@michaelgeng.de>.
50010
50011 2008-06-19  Bruno Haible  <bruno@clisp.org>
50012
50013         Fix CVS-ism.
50014         * doc/gnulib.texi: Include updated-stamp.texi.
50015         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50016         (updated-stamp.texi): New rule.
50017         (gnulib.info): Depend on it.
50018         * doc/.gitignore: Add updated-stamp.texi.
50019         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50020
50021 2008-06-19  Bruno Haible  <bruno@clisp.org>
50022
50023         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50024         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50025
50026 2008-06-19  Eric Blake  <ebb9@byu.net>
50027
50028         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50029         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50030         Reported by Stepan Kasal.
50031
50032 2008-06-18  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50035         Reported by Eric Blake.
50036
50037 2008-06-18  Eric Blake  <ebb9@byu.net>
50038
50039         Work around cygwin 1.5.25 strsignal bug.
50040         * tests/test-strsignal.c: Allow for const char *.
50041         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50042
50043 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50044
50045         * users.txt: Update URL to article and add author/date
50046         information.
50047
50048 2008-06-17  Bruno Haible  <bruno@clisp.org>
50049
50050         New macro gl_DISABLE_THREADS.
50051         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50052         if the user did not pass --enable-threads or --disable-threads option.
50053         (gl_DISABLE_THREADS): New macro.
50054         Reported by Eric Blake <ebb9@byu.net>.
50055
50056 2008-06-17  Bruno Haible  <bruno@clisp.org>
50057
50058         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50059         when the macro ignores it.
50060         Based on a patch by Eric Blake <ebb9@byu.net>.
50061
50062 2008-06-17  Bruno Haible  <bruno@clisp.org>
50063
50064         * modules/tls (License): Change to LGPLv2+.
50065         Reported by Eric Blake.
50066
50067 2008-06-17  Eric Blake  <ebb9@byu.net>
50068
50069         Simplify c-stack prerequisites.
50070         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50071         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50072         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50073         check.
50074         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50075         <sys/resource.h>.
50076
50077         Move c-stack test into testsuite.
50078         * modules/c-stack-tests: New file.
50079         * lib/c-stack.c [DEBUG]: Move test program...
50080         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50081         fail test if sigaltstack is lacking.
50082         * tests/test-c-stack.sh: New driver file.
50083
50084 2008-06-16  Eric Blake  <ebb9@byu.net>
50085
50086         Use raise module consistently.
50087         * modules/fatal-signal (Depends-on): Add raise.
50088         * modules/sigprocmask (Depends-on): Likewise.
50089         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50090         * lib/sigprocmask.c (sigprocmask): Likewise.
50091         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50092         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50093
50094         Fix compliance bug in sigpending.
50095         * lib/sigprocmask.c (sigpending): Return pending array via
50096         parameter, not return value.
50097
50098 2008-06-14  Eric Blake  <ebb9@byu.net>
50099
50100         Improve obstack-printf test code.
50101         * tests/test-obstack-printf.c (test_function): Fix comment, and
50102         simplify usage of obstack_* in macros.  Add a test for coverage.
50103         Reported by Bruno Haible.
50104
50105 2008-06-14  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50108         array size as a constant, not as a const variable.
50109         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50110         AC_USE_SYSTEM_EXTENSIONS.
50111         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50112         Test whether the obstack_printf function actually exists.
50113         * modules/obstack-printf (Depends-on): Add extensions.
50114         (Include): Remove obstack.h.
50115         * modules/obstack-printf-posix (Depends-on): Add extensions.
50116         (Include): Remove obstack.h.
50117
50118 2008-06-13  Eric Blake  <ebb9@byu.net>
50119
50120         Add obstack-printf and obstack-printf-posix modules.
50121         * modules/obstack-printf: New file.
50122         * modules/obstack-printf-posix: Likewise.
50123         * MODULES.html.sh (Misc): Mention them.
50124         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50125         Likewise.
50126         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50127         Likewise.
50128         * modules/stdio (Makefile.am): Accomodate new modules.
50129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50130         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50131         Declare.
50132         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50133         functions.
50134         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50135         (gl_REPLACE_OBSTACK_PRINTF): New macros
50136         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50137         * tests/test-obstack-printf.c: New file.
50138         * modules/obstack-printf-tests: Likewise.
50139         * modules/obstack-printf-posix-tests: Likewise.
50140
50141 2008-06-11  Bruno Haible  <bruno@clisp.org>
50142
50143         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50144         * lib/open.c: Include errno.h.
50145         (open): Fail when attempting to write to a file that has a trailing
50146         slash.
50147         * tests/test-open.c (main): Test against trailing slash bug.
50148         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50149
50150 2008-06-10  Bruno Haible  <bruno@clisp.org>
50151
50152         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50153         for $? to work inside the trap command, with various /bin/sh-s.
50154         * tests/test-vc-list-files-cvs.sh: Likewise.
50155
50156 2008-06-10  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/acl-internal.h: Don't include gettext.h here.
50159         * lib/set-mode-acl.c: Include gettext.h here.
50160         * lib/copy-acl.c: Likewise.
50161
50162 2008-06-10  Bruno Haible  <bruno@clisp.org>
50163
50164         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50165         * lib/wait-process.c (wait_subprocess): Likewise.
50166         * lib/execute.h (execute): Add termsigp argument.
50167         * lib/execute.c (execute): Likewise.
50168         * lib/csharpcomp.c (compile_csharp_using_pnet,
50169         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50170         * lib/csharpexec.c (execute_csharp_using_pnet,
50171         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50172         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50173         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50174         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50175         is_jikes_present): Update.
50176         * lib/javaexec.c (execute_java_class): Update.
50177         * lib/javaversion.c (execute_and_read_line): Update.
50178         * NEWS: Document the changes.
50179         Reported by Eric Blake.
50180
50181 2008-06-10  Eric Blake  <ebb9@byu.net>
50182
50183         Add missing include.
50184         * tests/test-strstr.c (includes): Add <signal.h>.
50185         * tests/test-strcasestr.c (includes): Likewise.
50186         * tests/test-memmem.c (includes): Likewise.
50187
50188 2008-06-10  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/wait-process.c (wait_subprocess): Add an assertion.
50191
50192 2008-06-10  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50195
50196 2008-06-10  Bruno Haible  <bruno@clisp.org>
50197
50198         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50199         using alarm().
50200         * tests/test-strcasestr.c (main): Likewise.
50201         * tests/test-strstr.c (main): Likewise.
50202
50203 2008-06-09  Bruno Haible  <bruno@clisp.org>
50204
50205         Work around the Solaris 10 ACE ACLs ABI change.
50206         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50207         declare if ACL_NO_TRIVIAL is present.
50208         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50209         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50210         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50211         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50212         define if ACL_NO_TRIVIAL is present.
50213         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50214         and use the current ABI.
50215         (file_has_acl): Use same #if condition as elsewhere.
50216         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50217         in use, and use the current ABI.
50218         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50219         Reported by Jim Meyering.
50220
50221 2008-06-09  Eric Blake  <ebb9@byu.net>
50222
50223         Work around environments that (stupidly) ignore SIGALRM.
50224         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50225         before using alarm().
50226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50228         Reported by Ian Beckwith <ianb@erislabs.net>.
50229
50230         Produce autobuild blurb earlier in log.
50231         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50232
50233 2008-06-09  Jim Meyering  <meyering@redhat.com>
50234         and OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
50235
50236         utimens.c: correct kernel bug work-around
50237         OndÅ™ej VaÅ¡Ă­k found that the invalid return value of 280 indicates
50238         failure, not success, and the kernel bug we're trying to work
50239         around affects not just the utimensat call, but also the fallback
50240         futimens call.
50241         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50242         not success.
50243         [HAVE_FUTIMENS]: Use the same work-around, here.
50244
50245 2008-06-09  Jim Meyering  <meyering@redhat.com>
50246
50247         add more guards around definition of ACE_-related code
50248         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50249         ALLOW and ACE_OWNER are also defined.
50250
50251 2008-06-08  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/acl-internal.h: Add me as co-author.
50254         * lib/file-has-acl.c: Likewise.
50255         * lib/set-mode-acl.c: Likewise.
50256         * lib/copy-acl.c: Likewise.
50257
50258 2008-06-08  Bruno Haible  <bruno@clisp.org>
50259
50260         Add support for AIX ACLs.
50261         * lib/acl-internal.h (acl_nontrivial): New declaration.
50262         * lib/file-has-acl.c (acl_nontrivial): New function.
50263         (file_has_acl): Add implementation using AIX 4 ACL API.
50264         * lib/set-mode-acl.c (qset_acl): Likewise.
50265         * lib/copy-acl.c (qcopy_acl): Likewise.
50266
50267 2008-06-08  Bruno Haible  <bruno@clisp.org>
50268
50269         Add support for HP-UX ACLs.
50270         * lib/acl-internal.h (acl_nontrivial): New declaration.
50271         * lib/file-has-acl.c (acl_nontrivial): New function.
50272         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50273         * lib/set-mode-acl.c (qset_acl): Likewise.
50274         * lib/copy-acl.c (qcopy_acl): Likewise.
50275
50276 2008-06-08  Bruno Haible  <bruno@clisp.org>
50277
50278         Add support for Cygwin ACLs.
50279         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50280         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50281         the chmod_or_fchmod call.
50282         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50283
50284 2008-06-08  Bruno Haible  <bruno@clisp.org>
50285
50286         Fix bug with setuid modes in Solaris 10+ code.
50287         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50288         succeeded, when the mode contains some special bits.
50289
50290 2008-06-08  Bruno Haible  <bruno@clisp.org>
50291
50292         Add support for Solaris 7..10 ACLs.
50293         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50294         declarations.
50295         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50296         functions.
50297         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50298         * lib/set-mode-acl.c (qset_acl): Likewise.
50299         * lib/copy-acl.c (qcopy_acl): Likewise.
50300
50301 2008-06-08  Bruno Haible  <bruno@clisp.org>
50302
50303         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50304         declaration.
50305         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50306         (acl_access_nontrivial): Remove MacOS X case.
50307         (file_has_acl): Use acl_extended_nontrivial.
50308         * lib/copy-acl.c (qcopy_acl): Likewise.
50309
50310 2008-06-08  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50313
50314 2008-06-08  Jim Meyering  <meyering@redhat.com>
50315
50316         * modules/acl (Maintainer): Add Bruno Haible.
50317
50318 2008-06-07  Bruno Haible  <bruno@clisp.org>
50319
50320         Improve support for Tru64 ACLs.
50321         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50322         ACL on OSF/1.
50323
50324 2008-06-07  Bruno Haible  <bruno@clisp.org>
50325
50326         Add support for MacOS X ACLs.
50327         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50328         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50329         * lib/set-mode-acl.c (qset_acl): Likewise.
50330         * lib/copy-acl.c (qcopy_acl): Likewise.
50331
50332 2008-06-07  Bruno Haible  <bruno@clisp.org>
50333
50334         Fix memory leak introduced on 2008-05-22.
50335         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50336         use.
50337
50338 2008-06-07  Bruno Haible  <bruno@clisp.org>
50339
50340         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50341         to construct an empty ACL.
50342
50343 2008-06-07  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50346         precisely.
50347         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50348
50349 2008-06-07  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50352         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50353
50354 2008-06-07  Bruno Haible  <bruno@clisp.org>
50355
50356         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50357         regardless of POSIX.
50358         * doc/posix-functions/_longjmp.texi: Likewise.
50359         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50360         SystemV platform in this case.
50361
50362 2008-06-06  Eric Blake  <ebb9@byu.net>
50363
50364         Document abort() bugs.
50365         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50366
50367         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50368         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50369         sigsetjmp.
50370         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50371         siglongjmp, but only as a macro.
50372         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50373         is obsolete.
50374         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50375
50376         Tweak documentation to cover cygwin argz bugs.
50377         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50378         argz bug fix; no code change needed since no cygwin releases
50379         occurred between the last fix and the bug being tested.
50380         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50381         module and recently fixed cygwin bugs.
50382         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50383         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50384         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50385         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50386         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50387         Likewise.
50388         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50389         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50390         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50391         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50392         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50393         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50394         Likewise.
50395
50396         Avoid gcc warning on cygwin.
50397         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50398         !ACL_NO_TRIVIAL]: Avoid unused variable.
50399
50400 2008-06-05  Eric Blake  <ebb9@byu.net>
50401
50402         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50403         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50404         git-version-gen fails to come up with a version.
50405         Reported by Simon Josefsson.
50406
50407 2008-06-05  Jim Meyering  <meyering@redhat.com>
50408             Paul Eggert  <eggert@cs.ucla.edu>
50409
50410         utimens.c: work around a probable Linux kernel bug
50411         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50412         appears to be a kernel bug that causes utimensat to return 280
50413         instead of 0, indicating success.
50414
50415 2008-06-04  Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50418         2008-06-01 commit.
50419
50420 2008-06-04  Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50423         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50424         (file_has_acl): Use it. Save errno afterwards.
50425         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50426
50427 2008-06-03  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50430         draft code. Simplify #ifs.
50431         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50432         Put Solaris code after POSIX-draft code. Fix comments regarding
50433         Solaris 10, HP-UX. Mention Cygwin.
50434         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50435
50436 2008-06-03  Eric Blake  <ebb9@byu.net>
50437
50438         Provide fallback for older kernels.
50439         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50440         Provide runtime fallback if kernel lacks support.
50441         Reported by Mike Frysinger.
50442
50443 2008-06-02  Bruno Haible  <bruno@clisp.org>
50444
50445         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50446         it exists.
50447
50448 2008-06-02  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50451         * lib/copy-acl.c (qcopy_acl): Update comment.
50452
50453 2008-06-02  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50456         like ACL APIs.
50457
50458 2008-06-02  Bruno Haible  <bruno@clisp.org>
50459
50460         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50461         * tests/test-set-mode-acl.sh: Likewise.
50462         * tests/test-copy-acl.sh: Likewise.
50463         * tests/test-copy-file.sh: Likewise.
50464
50465 2008-06-02  Bruno Haible  <bruno@clisp.org>
50466
50467         * tests/test-file-has-acl.sh: Remove unused code.
50468
50469 2008-06-01  Bruno Haible  <bruno@clisp.org>
50470
50471         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50472         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50473         messages.
50474         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50475
50476 2008-06-01  Bruno Haible  <bruno@clisp.org>
50477
50478         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50479         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50480         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50481         APIs.
50482         * modules/acl-tests (configure.ac): Remove tests now contained in
50483         m4/acl.m4.
50484
50485 2008-06-02  Jim Meyering  <meyering@redhat.com>
50486
50487         announce-gen: use a better key-server host name
50488         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50489         it may be more consistently reliable.  Suggested by Werner Koch
50490         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50491
50492 2008-06-01  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50495         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50496
50497 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50498
50499         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50500
50501 2008-06-01  Bruno Haible  <bruno@clisp.org>
50502
50503         New ACL tests.
50504         * tests/test-file-has-acl.sh: New file.
50505         * tests/test-file-has-acl.c: New file.
50506         * tests/test-set-mode-acl.sh: New file.
50507         * tests/test-set-mode-acl.c: New file.
50508         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50509         * tests/test-copy-acl.c: New file.
50510         * modules/acl-tests: New file, based on modules/copy-file-tests.
50511         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50512         (Depends-on): Add acl-tests.
50513         (configure.ac): Remove checks.
50514         (Makefile.am): Don't create test-sameacls program here any more.
50515
50516 2008-06-01  Bruno Haible  <bruno@clisp.org>
50517
50518         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50519         * tests/test-sameacls.c: Include progname.h.
50520         (main): Invoke set_program_name. Portability fixes for MacOS X,
50521         Solaris, HP-UX.
50522
50523 2008-06-01  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50526         function.
50527         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50528
50529 2008-06-01  Bruno Haible  <bruno@clisp.org>
50530
50531         * modules/rpmatch (Depends-on): Add strdup.
50532
50533 2008-06-01  Bruno Haible  <bruno@clisp.org>
50534
50535         * lib/pipe.c: Include unistd-safer.h.
50536         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50537         * modules/pipe (Depends-on): Add unistd-safer.
50538
50539 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50540
50541         * modules/autobuild (configure.ac): Call AB_INIT.
50542
50543 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50544
50545         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50546         Suggested by Bruno Haible <bruno@clisp.org>.
50547
50548 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50549
50550         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50551         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50552         <bruno@clisp.org>.
50553
50554 2008-05-29  Eric Blake  <ebb9@byu.net>
50555
50556         Prefer new POSIX 200x interfaces over futimesat.
50557         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50558         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50559         when available.
50560         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50561
50562 2008-05-28  Bruno Haible  <bruno@clisp.org>
50563
50564         * modules/stpcpy (License): Change to LGPLv2+.
50565         Requested by David Lutterkort <dlutter@redhat.com>.
50566
50567 2008-05-27  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50570         current mingw.
50571         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50572
50573 2008-05-27  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/iconv_open (Link): New section, from module 'iconv'.
50576         * modules/striconv (Link): Likewise.
50577         * modules/striconveh (Link): Likewise.
50578         * modules/xstriconv (Link): Likewise.
50579         * modules/unicodeio (Link): Likewise.
50580         * modules/propername (Link): Likewise.
50581         Reported by Jim Meyering.
50582
50583 2008-05-26  Jim Meyering  <meyering@redhat.com>
50584
50585         sha256: do not artificially restrict buffer length to be < 2^32
50586         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50587         uint32_t to size_t.
50588         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50589         to match.
50590
50591         avoid unaligned access errors, e.g., on sparc
50592         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50593         direct access through a possibly-unaligned uint64* pointer.
50594         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50595         direct access through a possibly-unaligned uint32* pointer.
50596         Prompted by this patch from Tom "spot" Callaway:
50597         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50598
50599         sha512.c: fix typo in comment
50600         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50601
50602 2008-05-25  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50605         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50606         (Makefile.am): Update lib_SOURCES.
50607
50608 2008-05-25  Bruno Haible  <bruno@clisp.org>
50609
50610         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50611
50612 2008-05-25  Jim Meyering  <meyering@redhat.com>
50613
50614         useless-if-before-free: freed expr may have white-space differences
50615         * build-aux/useless-if-before-free: Recognize cases in which the
50616         freed expression differs from the tested one in embedded white
50617         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50618         $1 was used, so we can't make any regexp shy.  Improved tests now
50619         detect this.
50620
50621         useless-if-before-free: accept white space in the expression.
50622         * build-aux/useless-if-before-free: For now, any white space
50623         in the expression must be identical in the free argument.
50624
50625         useless-if-before-free: efficiency tweak
50626         * build-aux/useless-if-before-free: Make the expression-matching
50627         regexp "shy".
50628         Make the *outer* regexp shy, not the expr-matching one.
50629
50630         update code-in-comment to accept cast of free arg
50631         * build-aux/useless-if-before-free: Update regexp.
50632
50633 2008-05-25  Bruno Haible  <bruno@clisp.org>
50634
50635         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50636         * modules/copy-file-tests (Files, Makefile.am): Update.
50637         * tests/test-copy-file.c (func_test_copy): Update.
50638
50639 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50640
50641         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50642
50643 2008-05-23  Bruno Haible  <bruno@clisp.org>
50644
50645         Improve support for ACLs on OSF/1.
50646         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50647         Remove fallback for unknown flavors of ACLs.
50648
50649 2008-05-22  Bruno Haible  <bruno@clisp.org>
50650
50651         Add support for ACLs on OSF/1.
50652         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50653         replacements.
50654         (acl_free_text): New macro fallback.
50655         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50656         acl_free.
50657         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50658         acl_free_text function. Require AC_C_INLINE.
50659
50660 2008-05-22  Bruno Haible  <bruno@clisp.org>
50661
50662         Make copy_acl work on MacOS X 10.5.
50663         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50664         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50665         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50666         If MODE_INSIDE_ACL, don't assume that every system has the same text
50667         representation for ACLs as FreeBSD.
50668         * lib/copy-acl.c (copy_acl): Add support for platforms with
50669         !MODE_INSIDE_ACL.
50670         * lib/file-has-acl.c (file_has_acl): Likewise.
50671         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50672         FreeBSD, MacOS X, or IRIX, respectively.
50673
50674 2008-05-22  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/acl.h: Don't include <sys/acl.h>.
50677         (GETACLCNT): Move fallback to lib/acl-internal.h.
50678         * lib/acl-internal.h: Include <sys/acl.h> here.
50679         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50680
50681 2008-05-22  Bruno Haible  <bruno@clisp.org>
50682
50683         Split off copy_acl function to separate file.
50684         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50685         * lib/acl.c (copy_acl): Moved function to separate file.
50686         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50687         * modules/acl (Files): Add lib/copy-acl.c.
50688         (Makefiles.am): Augment lib_SOURCES.
50689
50690 2008-05-22  Bruno Haible  <bruno@clisp.org>
50691
50692         * modules/copy-file-tests: New file.
50693         * tests/test-copy-file.sh: New file.
50694         * tests/test-copy-file.c: New file.
50695         * tests/test-copy-file-sameacls.c: New file.
50696
50697 2008-05-22  Eric Blake  <ebb9@byu.net>
50698
50699         Avoid gcc warning.
50700         * tests/test-memcmp.c (main): Pass NULL indirectly.
50701
50702 2008-05-21  Bruno Haible  <bruno@clisp.org>
50703
50704         Add reference doc about ACLs.
50705         * doc/acl-resources.txt: New file.
50706         * doc/acl-cygwin.txt: New file.
50707
50708 2008-05-21  Bruno Haible  <bruno@clisp.org>
50709
50710         Avoid one more warning from gcc.
50711         * lib/vasnprintf.c (IF_LINT): Update comments.
50712         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50713
50714 2008-05-21  Jim Meyering  <meyering@redhat.com>
50715
50716         avoid a warning from gcc
50717         * lib/vasnprintf.c (IF_LINT): Define.
50718         (scale10_round_decimal_long_double):
50719         Use it to avoid a "may be used uninitialized" warning.
50720         (scale10_round_decimal_double): Likewise.
50721
50722 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50723
50724         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50725         declared.
50726
50727 2008-05-20  Bruno Haible  <bruno@clisp.org>
50728
50729         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50730         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50731
50732 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50733
50734         * modules/memcmp-tests: New file.
50735         * tests/test-memcmp.c: New file.
50736
50737 2008-05-19  Bruno Haible  <bruno@clisp.org>
50738
50739         * modules/propername (Notice, configure.ac): Put quoted "..." into
50740         --keyword option.
50741         * lib/propername.h: Update comments accordingly.
50742         Reported by Eric Blake.
50743
50744 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50745
50746         * modules/getpass-gnu (Depends-on): Add fseeko.
50747
50748 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50749
50750         * modules/base64-tests: New file.
50751
50752 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50753
50754         * lib/base64.c (base64_decode_ctx): If a decode context structure
50755         was passed in use it to ignore newlines.  If a context structure
50756         was _not_ passed in, continue to treat newlines as garbage (this
50757         is the historical behavior).  Formerly base64_decode.
50758         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50759         takes a decode context structure.
50760         * lib/base64.h (base64_decode): Macro for four-argument calls.
50761         (base64_decode_alloc): Likewise.
50762         * lib/base64.c (base64_decode_ctx): If a decode context structure
50763         was passed in use it to ignore newlines.  If a context structure
50764         was _not_ passed in, continue to treat newlines as garbage (this
50765         is the historical behavior).  Formerly base64_decode.
50766         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50767         takes a decode context structure.
50768         * lib/base64.h (base64_decode): Macro for four-argument calls.
50769         (base64_decode_alloc): Likewise.
50770
50771 2008-05-19  Jim Meyering  <meyering@redhat.com>
50772
50773         avoid a warning from gcc
50774         * lib/trim.c (IF_LINT): Define.
50775         (trim2): Use it to avoid a "may be used uninitialized" warning.
50776
50777         Fix doc typo.
50778         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50779
50780 2008-05-19  Bruno Haible  <bruno@clisp.org>
50781
50782         * doc/glibc-functions/getpass.texi: Document limits of other
50783         implementations.
50784
50785 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50786             Bruno Haible <bruno@clisp.org>
50787
50788         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50789
50790 2008-05-18  Bruno Haible  <bruno@clisp.org>
50791
50792         * modules/propername: New file, from GNU gettext.
50793         * lib/propername.h: New file, from GNU gettext.
50794         * lib/propername.c: New file, from GNU gettext.
50795         * MODULES.html.sh (Internationalization functions): Add propername.
50796
50797 2008-05-16  Jim Meyering  <meyering@redhat.com>
50798             Bruno Haible  <bruno@clisp.org>
50799
50800         Avoid some warnings from "gcc -Wshadow".
50801         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50802
50803 2008-05-15  Eric Blake  <ebb9@byu.net>
50804
50805         Extend previous patch to cygwin 1.7.0.
50806         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50807         fast implementation in cygwin >= 1.7.0.
50808         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50810
50811 2008-05-15  Bruno Haible  <bruno@clisp.org>
50812
50813         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50814         implementation in glibc >= 2.9.
50815         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50817
50818 2008-05-15  Bruno Haible  <bruno@clisp.org>
50819
50820         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50821         (Unicode string functions): Add unilbrk/*.
50822         Reported by Karl Berry.
50823
50824 2008-05-15  Eric Blake  <ebb9@byu.net>
50825
50826         Fix violation of <stdbool.h> replacement in regex.
50827         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50828         * lib/regexec.c (re_search_internal): Likewise.
50829         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50830
50831 2008-05-15  Jim Meyering  <meyering@redhat.com>
50832
50833         avoid distracting test output when git or cvs is not found
50834         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50835         * tests/test-vc-list-files-git.sh: Likewise.
50836
50837 2008-05-15  Eric Blake  <ebb9@byu.net>
50838
50839         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50840         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50841         glibc version.
50842         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50843         * doc/posix-functions/strstr.texi (strstr): Likewise.
50844         * lib/str-two-way.h (MAX): Sychronize with glibc.
50845
50846 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50847
50848         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50849         opr.ctx_type.
50850         (calc_first): Initialize constraint field.
50851         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50852         Fix grammar.
50853         (duplicate_node): Merge constraint field for all node types.
50854         (calc_eclosure_iter): Look at constraint field for all node types.
50855         * lib/regex_internal.c (create_cd_newstate): Don't look at
50856         opr.ctx_type.
50857
50858 2008-05-14  Bruno Haible  <bruno@clisp.org>
50859
50860         Help GCC to do better code generation.
50861         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50862         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50863         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50864         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50865         Declare with attribute 'malloc' if supported.
50866
50867 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50868
50869         use "echo STR|wc -c" rather than unportable "expr length STR"
50870         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50871         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50872
50873 2008-05-14  Jim Meyering  <meyering@redhat.com>
50874
50875         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50876         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50877         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50878         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50879         via Collin Lasse.
50880
50881 2008-05-14  Eric Blake  <ebb9@byu.net>
50882
50883         Avoid quadratic growth in gl_LIBSOURCES.
50884         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50885         Suggested by Bruno Haible.
50886
50887         Test xmemdup0.
50888         * modules/xmemdup0-tests: New file.
50889         * tests/test-xmemdup0.c: Likewise.
50890
50891 2008-05-13  Eric Blake  <ebb9@byu.net>
50892
50893         Split xmemdup0 into its own module.
50894         * modules/xmemdup0: New file.
50895         * lib/xmemdup0.h: Likewise.
50896         * lib/xmemdup0.c: Likewise.
50897         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50898         * lib/xalloc.h (xmemdup0): Remove.
50899         * lib/xmalloc.c (xmemdup0): Likewise.
50900
50901 2008-05-13  Eric Blake  <ebb9@byu.net>
50902             Bruno Haible  <bruno@clisp.org>
50903
50904         Reduce number of forks required during autoconf.
50905         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50906         and gl_LIBSOURCES_DIR.
50907         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50908         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50909         m4_syscmd per file.
50910         <m4_foreach_w>: Move...
50911         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50912
50913 2008-05-13  Eric Blake  <ebb9@byu.net>
50914
50915         * gnulib-tool: Fix various comment typos.
50916
50917 2008-05-12  Bruno Haible  <bruno@clisp.org>
50918
50919         Tailor the linebreaking algorithm.
50920         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50921
50922 2008-05-12  Bruno Haible  <bruno@clisp.org>
50923
50924         Update to Unicode 5.0.0.
50925         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50926         LBP_JV, LBP_JT. Redistribute values.
50927         (unilbrk_table): Change size.
50928         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50929         Unicode TR#14 rev. 22.
50930         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50931         LBP_JV, LBP_JT. Redistribute values.
50932         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50933         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50934         Update.
50935         * lib/unilbrk/lbrkprop1.h: Regenerated.
50936         * lib/unilbrk/lbrkprop2.h: Regenerated.
50937         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50938         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50939         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50940         Likewise.
50941         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50942         Likewise.
50943         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50944         result.
50945         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50946         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50947         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50948         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50949         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50950         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50951
50952 2008-05-11  Bruno Haible  <bruno@clisp.org>
50953
50954         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50955
50956 2008-05-11  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50959         * modules/unilbrk/gen-lbrk: New file.
50960
50961 2008-05-11  Bruno Haible  <bruno@clisp.org>
50962
50963         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50964         * m4/sha512.m4 (gl_SHA512): Likewise.
50965
50966 2008-05-11  Jim Meyering  <meyering@redhat.com>
50967
50968         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50969         * modules/crypto/sha256: New file.
50970         * modules/crypto/sha512: Likewise.
50971         * lib/sha256.c: Likewise.
50972         * lib/sha256.h: Likewise.
50973         * lib/sha512.c: Likewise.
50974         * lib/sha512.h: Likewise.
50975         * lib/u64.h: Likewise.
50976         * m4/sha256.m4: Likewise.
50977         * m4/sha512.m4: Likewise.
50978         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50979
50980 2008-05-10  Bruno Haible  <bruno@clisp.org>
50981
50982         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50983         (Input/Output <stdio.h>): Add xprintf.
50984         (Signal handling <signal.h>): Add strsignal.
50985         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50986         (Core language properties): Add func.
50987         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50988         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50989         strings.
50990         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50991         (Input/output): New section.
50992         (File system functions): Add openat-die, stat-macros.
50993         (Networking functions): Add sockets.
50994         (Unicode string functions): Add unictype/*.
50995         (Support for building libraries and executables): Add gperf.
50996         (Support for building documentation): Add agpl-3.0.
50997         (Misc): Add nocrash.
50998
50999 2008-05-10  Bruno Haible  <bruno@clisp.org>
51000
51001         * modules/unictype/gen-ctype: New file.
51002
51003 2008-05-10  Jim Meyering  <meyering@redhat.com>
51004
51005         Make chdir-safer.c more efficient on a system with no symlinks.
51006         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51007         also if ELOOP is zero.  Suggested by Bruno Haible.
51008
51009         Make chdir-safer.c slightly safer.
51010         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51011         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51012
51013         Avoid compile failure on systems without ELOOP (like mingw).
51014         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51015         Reported by Bruno Haible.
51016
51017 2008-05-10  Bruno Haible  <bruno@clisp.org>
51018
51019         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51020         (is_utf8_encoding): Use a case-insensitive comparison.
51021         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51022         streq.
51023
51024 2008-05-10  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51027         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51028         * lib/unilbrk/ulc-common.h (iconv_string_length,
51029         iconv_string_keeping_offsets): Remove declarations.
51030         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51031         Don't include <iconv.h>, streq.h, xsize.h.
51032         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51033         conversion.
51034         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51035         <iconv.h>, streq.h, xsize.h.
51036         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51037         conversion.
51038         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51039         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51040         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51041         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51042
51043 2008-05-10  Bruno Haible  <bruno@clisp.org>
51044
51045         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51046         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51047
51048         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51049         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51050
51051         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51052         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51053
51054         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51055         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51056
51057         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51058         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51059
51060         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51061         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51062
51063         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51064         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51065
51066         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51067         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51068
51069 2008-05-10  Bruno Haible  <bruno@clisp.org>
51070
51071         Split up 'linebreak' module.
51072         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51073         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51074         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51075         modifications.
51076         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51077         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51078         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51079         lib/linebreak.c.
51080         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51081         lib/linebreak.c.
51082         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51083         lib/linebreak.c.
51084         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51085         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51086         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51087         lib/linebreak.c.
51088         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51089         lib/linebreak.c.
51090         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51091         lib/linebreak.c.
51092         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51093         lib/linebreak.c.
51094         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51095         lib/linebreak.c.
51096         * modules/unilbrk/base: New file.
51097         * modules/unilbrk/tables: New file.
51098         * modules/unilbrk/u8-possible-linebreaks: New file.
51099         * modules/unilbrk/u16-possible-linebreaks: New file.
51100         * modules/unilbrk/u32-possible-linebreaks: New file.
51101         * modules/unilbrk/ulc-common: New file.
51102         * modules/unilbrk/ulc-possible-linebreaks: New file.
51103         * modules/unilbrk/u8-width-linebreaks: New file.
51104         * modules/unilbrk/u16-width-linebreaks: New file.
51105         * modules/unilbrk/u32-width-linebreaks: New file.
51106         * modules/unilbrk/ulc-width-linebreaks: New file.
51107         * lib/linebreak.h: Remove file.
51108         * lib/linebreak.c: Remove file.
51109         * m4/linebreak.m4: Remove file.
51110         * modules/linebreak: Remove file.
51111         * NEWS: Mention the changes.
51112
51113 2008-05-09  Eric Blake  <ebb9@byu.net>
51114
51115         Add xmemdup0.
51116         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51117         implementation.
51118         * lib/xmalloc.c (xmemdup0): New C implementation.
51119
51120 2008-05-08  Bruno Haible  <bruno@clisp.org>
51121
51122         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51123
51124 2008-05-07  Eric Blake  <ebb9@byu.net>
51125
51126         Support cross-compilation of <wctype.h>.
51127         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51128         AC_CACHE_CHECK.
51129
51130 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51131
51132         * build-aux/vc-list-files: Add support for bzr.
51133
51134 2008-05-03  Jim Meyering  <meyering@redhat.com>
51135
51136         avoid failed assertion with tight malloc
51137         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51138
51139 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51140
51141         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51142         are needed from arpa/inet.h.
51143         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51144         Reported by Bruno Haible.
51145
51146 2008-05-02  Jim Meyering  <meyering@redhat.com>
51147
51148         avoid compilation error on FreeBSD 6
51149         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51150
51151 2008-05-01  Jim Meyering  <meyering@redhat.com>
51152
51153         useless-if-before-free: correct --help's exit status description
51154         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51155         for one or more matches, etc.  Reported by Bruno Haible.
51156
51157         vc-list-files: make the stand-alone gnulib test work
51158         * modules/vc-list-files-tests (configure.ac):
51159         Define and AC_SUBST abs_aux_dir.
51160         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51161         $(abs_top_srcdir) to each script and having each of them
51162         duplicate the work of setting PATH, set PATH here, using
51163         the new variable, abs_aux_dir instead.
51164         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51165         * tests/test-vc-list-files-git.sh: Likewise.
51166         Reported by Bruno Haible.
51167
51168 2008-05-01  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51171         reallocation. Rename 'done' to 'found_delimiter'.
51172
51173 2008-05-01  Jim Meyering  <meyering@redhat.com>
51174
51175         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51176         * build-aux/vc-list-files: Use `...`, not $(...).
51177
51178 2008-04-30  Jim Meyering  <meyering@redhat.com>
51179
51180         add tests for vc-list-files
51181         * modules/vc-list-files-tests: New module.
51182         * tests/test-vc-list-files-cvs.sh: New file.
51183         * tests/test-vc-list-files-git.sh: New file.
51184
51185         avoid a warning from gcc
51186         * lib/getndelim2.c (IF_LINT): Define.
51187         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51188
51189         vc-list-files: work properly with build-aux/cvsu, too
51190         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51191         to all cvs-based clauses.
51192
51193         vc-list-files: work properly in the CVS+awk case, too
51194         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51195
51196         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51197         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51198         take more than one file argument, so .  Add quotes, just in case $dir
51199         ever contains a shell meta-character.  Prompted by Soren Hansen in
51200         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51201
51202 2008-04-29  Eric Blake  <ebb9@byu.net>
51203
51204         Optimize getndelim2 to use block operations when possible.
51205         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51206         freadseek, and memchr2.
51207         * lib/getndelim2.c (getndelim2): Use them for block reads.
51208
51209 2008-04-29  Bruno Haible  <bruno@clisp.org>
51210
51211         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51212         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51213         * modules/inet_ntop (Depends-on): Add extensions.
51214         * modules/inet_pton (Depends-on): Likewise.
51215         Reported by Simon Josefsson.
51216
51217 2008-04-29  Jim Meyering  <meyering@redhat.com>
51218
51219         When the is more than one match in a block, match all of them.
51220         * build-aux/useless-if-before-free: Iterate through each block
51221         until there are no more matches.
51222
51223         Fix broken useless-if-before-free script.
51224         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51225         the expression to match cast of argument to free-like function.
51226
51227 2008-04-29  Eric Blake  <ebb9@byu.net>
51228
51229         Use new header.
51230         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51231
51232 2008-04-29  Jim Meyering  <meyering@redhat.com>
51233
51234         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51235         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51236         by gnulib to exist and to declare e.g., inet_ntop.
51237         Don't include "inet_ntop.h", now removed.
51238
51239         * m4/arpa_inet_h.m4: Remove trailing blanks.
51240
51241 2008-04-29  Eric Blake  <ebb9@byu.net>
51242
51243         Silence valgrind on safe reads beyond potential array bounds.
51244         * lib/rawmemchr.valgrind: New file.
51245         * lib/strchrnul.valgrind: Likewise.
51246         * modules/rawmemchr (Files): Distribute new file.
51247         * modules/strchrnul (Files): Likewise.
51248         Suggested by Bruno Haible.
51249
51250 2008-04-29  Bruno Haible  <bruno@clisp.org>
51251
51252         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51253         (inet_ntop, inet_pton): Change portability warning's wording.
51254         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51255         Invoke gl_CHECK_NEXT_HEADERS.
51256         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51257         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51258         set ARPA_INET_H.
51259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51260         * modules/arpa_inet (Description): No longer only for systems that
51261         lack it.
51262         (Depends-on): Add include_next.
51263         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51264         HAVE_ARPA_INET_H.
51265
51266 2008-04-29  Jim Meyering  <meyering@redhat.com>
51267
51268         * modules/mkdir (License): Re-license as LGPLv2+.
51269
51270 2008-04-29  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/rawmemchr (Maintainer): Set to Eric.
51273         * modules/strchrnul (Maintainer): Likewise.
51274
51275 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51276
51277         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51278         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51279
51280         * modules/arpa_inet (arpa/inet.h): Use them.
51281
51282 2008-04-28  Eric Blake  <ebb9@byu.net>
51283
51284         Test getndelim2.
51285         * modules/getndelim2-tests: New file.
51286         * tests/test-getndelim2.c: Likewise.
51287         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51288         stream.
51289         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51290
51291         * MODULES.html.sh: Document new module.
51292
51293 2008-04-20  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/c-stack.c (die): Use raise.
51296         * modules/c-stack (Depends-on): Add raise.
51297
51298 2008-04-28  Bruno Haible  <bruno@clisp.org>
51299
51300         Expect rpmatch to be declared.
51301         * lib/yesno.c (rpmatch): Remove declaration.
51302
51303         Declare rpmatch.
51304         * lib/stdlib.in.h (rpmatch): New declaration.
51305         * lib/rpmatch.c: Include <stdlib.h> first.
51306         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51307         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51309         HAVE_RPMATCH.
51310         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51311         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51312         (Include): Set to <stdlib.h>.
51313         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51314         HAVE_RPMATCH.
51315         * NEWS: Document the change.
51316
51317 2008-04-28  Bruno Haible  <bruno@clisp.org>
51318
51319         Change rpmatch to use nl_langinfo when appropriate.
51320         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51321         (N_): New macro.
51322         (localized_pattern): New function/macro.
51323         (try): Remove match, nomatch arguments. Copy the pattern into safe
51324         memory before caching it.
51325         (rpmatch): Use localized_pattern. Add translator comments.
51326         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51327         Suggested by Eric Blake.
51328         * modules/rpmatch (Depends-on): Add stdbool.
51329
51330 2008-04-28  Eric Blake  <ebb9@byu.net>
51331
51332         Add rawmemchr module, matching glibc.
51333         * modules/string (Makefile.am): New indicator.
51334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51335         * lib/string.in.h (rawmemchr): Declare when appropriate.
51336         * modules/rawmemchr: New file.
51337         * m4/rawmemchr.m4: Likewise.
51338         * lib/rawmemchr.c: Likewise.
51339         * modules/rawmemchr-tests: Likewise.
51340         * tests/test-rawmemchr.c: Likewise.
51341         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51342         module.
51343         * modules/strchrnul (Depends-on): Add rawmemchr.
51344         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51345
51346         Whitespace cleanup.
51347         * tests/test-strchrnul.c: Reindent.
51348         * lib/strchrnul.c: Likewise.
51349
51350         Optimize and test strchrnul.
51351         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51352         * modules/strchrnul-tests: New file.
51353         * tests/test-strchrnul.c: Likewise.
51354
51355         Remove intprops dependency.
51356         * modules/memchr (Depends-on): Remove intprops.
51357         * modules/memrchr (Depends-on): Likewise.
51358         * modules/memchr2 (Depends-on): Likewise.
51359         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51360         * lib/memrchr.c (__memrchr): Likewise.
51361         * lib/memrchr2.c (memchr2): Likewise.
51362         Reported by Simon Josefsson.
51363
51364 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51365
51366         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51367         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51368
51369 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51370
51371         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51372
51373         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51374
51375         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51376
51377         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51378         declarations.
51379         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51380
51381         * m4/inet_pton.m4: Don't check for header files.
51382
51383         * m4/inet_ntop.m4: Don't check for header files.
51384
51385 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51386
51387         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51388         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51389         trigger for cygwin).
51390         Reported by Bruno Haible  <bruno@clisp.org>.
51391
51392 2008-04-28  Bruno Haible  <bruno@clisp.org>
51393
51394         * doc/posix-functions/strdup.texi: Mention mingw problem.
51395
51396 2008-04-27  Bruno Haible  <bruno@clisp.org>
51397
51398         * modules/stat-time-tests (Depends-on): Add sleep.
51399         * tests/test-stat-time.c (force_unlink): New function.
51400         (cleanup): Use it.
51401         (test_mtime): Remove the ctime related tests.
51402         (test_ctime): New function, containing the ctime related tests.
51403         (main): Call test_ctime, except on native Windows platforms.
51404
51405 2008-04-27  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/rpmatch.c (rpmatch): Add some comments.
51408         Reported by James Youngman <jay@gnu.org>.
51409
51410 2008-04-27  Bruno Haible  <bruno@clisp.org>
51411
51412         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51413         quiet NaNs.
51414
51415 2008-04-27  Bruno Haible  <bruno@clisp.org>
51416
51417         Make test-yesno.sh work on mingw.
51418         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51419         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51420         (main): Set stdin to binary mode.
51421         * modules/yesno-tests (Depends-on): Add binary-io.
51422
51423 2008-04-27  Bruno Haible  <bruno@clisp.org>
51424
51425         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51426         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51427         argument that lie outside the IEEE 854 domain.
51428         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51429         (gl_ISFINITE): Use it.
51430         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51431
51432 2008-04-27  Bruno Haible  <bruno@clisp.org>
51433
51434         Allow local renaming in config.h.
51435         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51436
51437 2008-04-27  Bruno Haible  <bruno@clisp.org>
51438
51439         * lib/memchr.c (__memchr): Change type of 'i'.
51440         * lib/memchr2.c (memchr2): Likewise.
51441
51442 2008-04-26  Eric Blake  <ebb9@byu.net>
51443         and Bruno Haible  <bruno@clisp.org>
51444
51445         Optimize and test memrchr.
51446         * modules/memrchr (Depends-on): Add intprops.
51447         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51448         * modules/memrchr-tests: New file.
51449         * tests/test-memrchr.c: New file.
51450
51451 2008-04-26  Bruno Haible  <bruno@clisp.org>
51452
51453         Add tentative support for DragonFly BSD.
51454         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51455         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51456         fp.
51457         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51458         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51459         * lib/fpurge.c (fpurge): Likewise.
51460         * lib/freadable.c (freaadable): Likewise.
51461         * lib/freadahead.c (freadahead): Likewise.
51462         * lib/freading.c (freading): Likewise.
51463         * lib/freadptr.c (freadptr): Likewise.
51464         * lib/freadseek.c (freadptrinc): Likewise.
51465         * lib/fseeko.c (fseeko): Likewise.
51466         * lib/fseterr.c (fseterr): Likewise.
51467         * lib/fwritable.c (fwritable): Likewise.
51468         * lib/fwriting.c (fwriting): Likewise.
51469
51470 2008-04-26  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/stdio-impl.h: New file.
51473         * lib/fbufmode.c: Include stdio-impl.h.
51474         (fbufmode): Use fp_, remove redundant #defines.
51475         * lib/fflush.c: Include stdio-impl.h.
51476         (clear_ungetc_buffer): Remove redundant #defines.
51477         * lib/fpurge.c: Include stdio-impl.h.
51478         (fpurge): Remove redundant #defines.
51479         * lib/freadable.c: Include stdio-impl.h.
51480         (freadable): Remove redundant #defines.
51481         * lib/freadahead.c: Include stdio-impl.h.
51482         (freadahead): Remove redundant #defines.
51483         * lib/freading.c: Include stdio-impl.h.
51484         (freading): Remove redundant #defines.
51485         * lib/freadptr.c: Include stdio-impl.h.
51486         (freadptr): Remove redundant #defines.
51487         * lib/freadseek.c: Include stdio-impl.h.
51488         (freadptrinc): Remove redundant #defines.
51489         * lib/fseeko.c: Include stdio-impl.h.
51490         (rpl_fseeko): Remove redundant #defines.
51491         * lib/fseterr.c: Include stdio-impl.h.
51492         (fseterr): Remove redundant #defines.
51493         * lib/fwritable.c: Include stdio-impl.h.
51494         (fwritable: Remove redundant #defines.
51495         * lib/fwriting.c: Include stdio-impl.h.
51496         (fwriting): Remove redundant #defines.
51497         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51498         * modules/fflush (Files): Likewise.
51499         * modules/fpurge (Files): Likewise.
51500         * modules/freadable (Files): Likewise.
51501         * modules/freadahead (Files): Likewise.
51502         * modules/freading (Files): Likewise.
51503         * modules/freadptr (Files): Likewise.
51504         * modules/freadseek (Files): Likewise.
51505         * modules/fseeko (Files): Likewise.
51506         * modules/fseterr (Files): Likewise.
51507         * modules/fwritable (Files): Likewise.
51508         * modules/fwriting (Files): Likewise.
51509
51510 2008-04-26  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51513         restore_seek_optimization, update_fpos_cache): New functions, extracted
51514         from rpl_fflush.
51515         (rpl_fflush): Use them.
51516         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51517         (gl_REPLACE_FFLUSH): Use it.
51518
51519 2008-04-26  Bruno Haible  <bruno@clisp.org>
51520
51521         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51522         on Solaris.
51523         * tests/test-xstrtoimax.sh: Likewise.
51524         * tests/test-xstrtoumax.sh: Likewise.
51525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51526
51527 2008-04-26  Bruno Haible  <bruno@clisp.org>
51528
51529         * modules/memchr-tests: New file.
51530         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51531
51532 2008-04-26  Eric Blake  <ebb9@byu.net>
51533             Bruno Haible  <bruno@clisp.org>
51534
51535         * lib/memchr.c: Include intprops.h.
51536         (__memchr): Optimize parallel detection of matching bytes. Rename local
51537         variables. Add explanatory comments.
51538
51539 2008-04-26  Bruno Haible  <bruno@clisp.org>
51540
51541         Fix module 'memchr', broken since 2000-10-28.
51542         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51543
51544 2008-04-26  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51547         comments.
51548
51549 2008-04-25  Eric Blake  <ebb9@byu.net>
51550
51551         Use native fstatat on cygwin 1.7.0.
51552         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51553         first.
51554
51555 2008-04-23  Eric Blake  <ebb9@byu.net>
51556
51557         Improve memchr2 performance.
51558         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51559         NUL bytes.
51560         * modules/memchr2 (Depends-on): Use intprops.h.
51561
51562 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51563
51564         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51565         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51566         <blp@cs.stanford.edu>.
51567
51568 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51569
51570         * lib/arpa_inet.in.h: New file.
51571
51572         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51573         (Makefile.am): Sed in substitute header file.
51574
51575         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51576         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51577
51578         * modules/inet_ntop (configure.ac): Use
51579         gl_ARPA_INET_MODULE_INDICATOR.
51580
51581         * modules/inet_pton (configure.ac): Use
51582         gl_ARPA_INET_MODULE_INDICATOR.
51583
51584 2008-04-22  Jim Meyering  <meyering@redhat.com>
51585
51586         * modules/verify (License): Re-license as LGPLv2+.
51587
51588 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51589
51590         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51591         parameter to void* as per POSIX standard (MinGW uses char*).
51592
51593 2008-04-21  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51596         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51597         Define to replacements if REPLACE_ISWCNTRL is 1.
51598         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51599         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51600         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51601         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51602         what it fixes.
51603         * doc/posix-functions/iswalpha.texi: Likewise.
51604         * doc/posix-functions/iswblank.texi: Likewise.
51605         * doc/posix-functions/iswcntrl.texi: Likewise.
51606         * doc/posix-functions/iswdigit.texi: Likewise.
51607         * doc/posix-functions/iswgraph.texi: Likewise.
51608         * doc/posix-functions/iswlower.texi: Likewise.
51609         * doc/posix-functions/iswprint.texi: Likewise.
51610         * doc/posix-functions/iswpunct.texi: Likewise.
51611         * doc/posix-functions/iswspace.texi: Likewise.
51612         * doc/posix-functions/iswupper.texi: Likewise.
51613         * doc/posix-functions/iswxdigit.texi: Likewise.
51614         Reported by Alain Guibert.
51615
51616 2008-04-21  Bruno Haible  <bruno@clisp.org>
51617
51618         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51619         Patch by Alain Guibert.
51620
51621 2008-04-21  Bruno Haible  <bruno@clisp.org>
51622
51623         Fix test failures on mingw.
51624         * tests/test-xstrtol.c (print_no_progname): New function.
51625         (main): Install it in error_print_progname hook.
51626         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51627         * tests/test-xstrtoimax.sh: Likewise.
51628         * tests/test-xstrtoumax.sh: Likewise.
51629
51630 2008-04-21  Bruno Haible  <bruno@clisp.org>
51631
51632         Fix test failure on mingw.
51633         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51634
51635 2008-04-21  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51638         Actually assign a value.
51639
51640 2008-04-20  Bruno Haible  <bruno@clisp.org>
51641
51642         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51643         take 2.
51644         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51645         'canonicalize-lgpl' module is also used.
51646         * lib/canonicalize-lgpl.c: Undo last change.
51647         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51648
51649 2008-04-20  Bruno Haible  <bruno@clisp.org>
51650
51651         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51652         config.h. Provide _mkdir based fallback for mingw.
51653         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51654         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51655         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51656         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51657         rather than defining mkdir in config.h.
51658         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51659         (gl_SYS_STAT_H_DEFAULTS): New macro.
51660         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51661         HAVE_IO_H any more.
51662         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51663         HAVE_DECL_MKDIR and HAVE_IO_H.
51664
51665 2008-04-20  Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/isapipe.c: Port to native Windows platforms.
51668
51669 2008-04-20  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51672
51673 2008-04-21  Eric Blake  <ebb9@byu.net>
51674
51675         Work around preprocessors that don't handle UINTMAX_MAX.
51676         * lib/memchr2.c (memchr2): Avoid embedded #if.
51677         Reported by Alain Guibert, fix suggested by Bruno Haible.
51678
51679 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51680
51681         * doc/posix-functions/strftime.texi (strftime): Explain better
51682         Windows incompatibility.  Suggested by Micah Cowan
51683         <micah@cowan.name>.
51684
51685 2008-04-20  Bruno Haible  <bruno@clisp.org>
51686
51687         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51688         unistr/u8-mblen.
51689
51690 2008-04-20  Bruno Haible  <bruno@clisp.org>
51691
51692         Fix test failure on platforms with non-GNU iconv.
51693         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51694         (U_TO_U8): Use it, rather than u16_to_u8.
51695         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51696         units at the end of the input string.
51697         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51698
51699 2008-04-20  Bruno Haible  <bruno@clisp.org>
51700
51701         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51702         when the resulting length is 0.
51703         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51704
51705 2008-04-20  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51708         works.
51709         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51710
51711 2008-04-20  Bruno Haible  <bruno@clisp.org>
51712
51713         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51714         * modules/tsearch-tests (configure.ac): Test for initstate function.
51715
51716 2008-04-20  Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51719         for nlink_t if missing.
51720         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51721
51722 2008-04-19  Bruno Haible  <bruno@clisp.org>
51723
51724         Work around snprintf bug on Linux libc5.
51725         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51727         gl_SNPRINTF_SIZE1.
51728         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51729         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51730         that test failed.
51731         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51732         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51733         * modules/snprintf (Files): Add m4/printf.m4.
51734         * modules/vsnprintf (Files): Likewise.
51735         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51736         * doc/posix-functions/vsnprintf.texi: Likewise.
51737
51738 2008-04-19  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51741         from 0.0058 to less than 10^-7.
51742
51743 2008-04-19  Bruno Haible  <bruno@clisp.org>
51744
51745         Fix rounding when a precision is given.
51746         * lib/vasnprintf.c (is_borderline): New function.
51747         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51748         9...9x.
51749         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51750         %e, %g.
51751         * tests/test-vasprintf-posix.c (test_function): Likewise.
51752         * tests/test-snprintf-posix.h (test_function): Likewise.
51753         * tests/test-sprintf-posix.h (test_function): Likewise.
51754         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51755         * tests/test-printf-posix.h (test_function): Likewise.
51756         * tests/test-printf-posix.output: Update.
51757         Reported by John Darrington <john@darrington.wattle.id.au> via
51758         Ben Pfaff <blp@cs.stanford.edu>.
51759
51760 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51761
51762         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51763         Suggested by Bruno Haible <bruno@clisp.org>.
51764
51765 2008-04-17  Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51768         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51769         implementation.
51770         Patch by Bruce Merry <bmerry@gmail.com>.
51771
51772 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51773
51774         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51775         doesn't work under Windows.
51776
51777 2008-04-16  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51780         New macros.
51781         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51782         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51783         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51784         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51785         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51786         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51787         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51788         macros.
51789         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51790         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51791         Northern Sotho, Uighur.
51792
51793 2008-04-16  Bruno Haible  <bruno@clisp.org>
51794
51795         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51796         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51797         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51798         Reported by Daniel Bergström <daniel@octocode.com>.
51799
51800 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51801             Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51804         function.
51805         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51806         New functions, mostly extracted from gl_locale_name_default.
51807         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51808
51809 2008-04-16  Eric Blake  <ebb9@byu.net>
51810
51811         Adjust strtod detection to catch glibc 2.7 bug.
51812         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51813         Reported by John Gatewood Ham.
51814
51815 2008-04-16  Bruno Haible  <bruno@clisp.org>
51816
51817         Add tentative support for Linux libc5.
51818         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51819         * lib/fpurge.c (fpurge): Likewise.
51820         * lib/freadable.c (freadable): Likewise.
51821         * lib/freadahead.c (freadahead): Likewise.
51822         * lib/freading.c (freading): Likewise.
51823         * lib/freadptr.c (freadptr): Likewise.
51824         * lib/freadseek.c (freadptrinc): Likewise.
51825         * lib/fseeko.c (rpl_fseeko): Likewise.
51826         * lib/fseterr.c (fseterr): Likewise.
51827         * lib/fwritable.c (fwritable): Likewise.
51828         * lib/fwriting.c (fwriting): Likewise.
51829         Reported by Alain Guibert <alguibert+bts@free.fr>.
51830
51831 2008-04-15  Bruno Haible  <bruno@clisp.org>
51832
51833         * modules/mathl (configure.ac): Define module indicator.
51834
51835 2008-04-15  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/logl.c (logl): Remove unused variables.
51838
51839 2008-04-15  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51842         fails.
51843
51844 2008-04-15  Bruno Haible  <bruno@clisp.org>
51845
51846         * lib/trim.c (trim2): Fix argument of isspace() macro.
51847
51848 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51849
51850         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51851         to 0.
51852         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51853
51854 2008-04-14  Bruno Haible  <bruno@clisp.org>
51855
51856         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51857         AC_LANG_PROGRAM argument.
51858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51859         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51862         * m4/math_h.m4 (gl_MATH_H): Likewise.
51863         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51865         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51866         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51867         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51868         * m4/regex.m4 (gl_REGEX): Likewise.
51869         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51870         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51873         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51874         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51875         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51877
51878 2008-04-14  Jim Meyering  <meyering@redhat.com>
51879
51880         test-strtod: fix typos: s/abs/fabs/
51881         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51882
51883 2008-04-13  Bruno Haible  <bruno@clisp.org>
51884
51885         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51886         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51887         module is also used and while not building the reloc-wrapper.
51888
51889 2008-04-13  Bruno Haible  <bruno@clisp.org>
51890
51891         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51892
51893 2008-04-13  Bruno Haible  <bruno@clisp.org>
51894
51895         Fix AIX compilation failure introduced on 2008-04-02.
51896         * tests/test-frexp.c (exp): Undefine before redefining.
51897         * tests/test-frexpl.c (exp): Likewise.
51898
51899 2008-04-13  Bruno Haible  <bruno@clisp.org>
51900
51901         Work around a HP-UX stdio bug.
51902         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51903         * tests/test-ftello.c (main): Likewise.
51904         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51905         * doc/posix-functions/ftello.texi: Likewise.
51906
51907 2008-04-13  Bruno Haible  <bruno@clisp.org>
51908
51909         Make test-signbit pass on HP-UX/hppa.
51910         * tests/test-signbit.c (minus_zerol): New variable.
51911         (test_signbitl): Use it.
51912
51913 2008-04-13  Bruno Haible  <bruno@clisp.org>
51914
51915         Make truncl work on OSF/1 4.0.
51916         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51917         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51918         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51920         HAVE_DECL_TRUNCL.
51921         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51922         HAVE_DECL_TRUNCL.
51923         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51924
51925 2008-04-13  Bruno Haible  <bruno@clisp.org>
51926
51927         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51928
51929 2008-04-13  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51932         expression, so as to avoid HP-UX 11 cc compiler bug.
51933
51934 2008-04-13  Bruno Haible  <bruno@clisp.org>
51935
51936         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51937
51938 2008-04-13  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/git-merge-changelog.c: Remove empty declaration outside of
51941         functions.
51942
51943 2008-04-13  Bruno Haible  <bruno@clisp.org>
51944
51945         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51946
51947 2008-04-13  Bruno Haible  <bruno@clisp.org>
51948
51949         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51950         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51952         also if it exists but lacks definitions of the SHUT_* macros.
51953         * modules/sys_socket (Description): Update.
51954         Reported by Elbert Pol <e.pol@chello.nl>.
51955
51956 2008-04-13  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/localcharset.c (OS2): Don't redefine if already defined.
51959         Reported by Elbert Pol <e.pol@chello.nl>.
51960
51961 2008-04-13  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/binary-io.h [__EMX__]: Include <io.h>.
51964         Reported by Elbert Pol <e.pol@chello.nl>.
51965
51966 2008-04-12  Bruno Haible  <bruno@clisp.org>
51967
51968         * lib/fpucw.h: Enable the definitions also for x86_64.
51969         Needed for NetBSD/x86_64.
51970         Reported by Thomas Klausner <tk@giga.or.at>.
51971
51972 2008-04-12  Bruno Haible  <bruno@clisp.org>
51973
51974         * tests/test-strtod.c: Include isnand.h.
51975         (main): Use isnand instead of isnan.
51976         Reported by Jim Meyering.
51977
51978 2008-04-12  Bruno Haible  <bruno@clisp.org>
51979
51980         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51981         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51982
51983 2008-04-12  Jim Meyering  <meyering@redhat.com>
51984
51985         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51986
51987 2008-04-12  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51990         Reported by Elbert Pol <e.pol@chello.nl>.
51991
51992 2008-04-12  Eric Blake  <ebb9@byu.net>
51993
51994         Work around Solaris 10 math.h bug.
51995         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51996         (gl_MATH_H_DEFAULTS): Set up default.
51997         * modules/math (Makefile.am): Replace new indicators.
51998         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51999         * tests/test-math.c (main): Test this.
52000         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52001         * doc/posix-headers/math.texi (math.h): Mention bug.
52002         Reported by Nelson H. F. Beebe and Jim Meyering.
52003
52004 2008-04-11  Bruno Haible  <bruno@clisp.org>
52005
52006         Adapt to future versions of Apple GCC.
52007         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52008         Reported by Peter O'Gorman <peter@pogma.com>.
52009
52010 2008-04-11  Bruno Haible  <bruno@clisp.org>
52011
52012         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52013
52014 2008-04-11  Bruno Haible  <bruno@clisp.org>
52015
52016         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52017
52018         * modules/getaddrinfo-tests (Makefile.am): Define
52019         test_getaddrinfo_LDADD.
52020
52021 2008-04-11  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52024         (init): Fix syntax error.
52025         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52026         is declared.
52027
52028 2008-04-11  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52031         * modules/glob (Depends-on): Add stdbool.
52032
52033 2008-04-11  Bruno Haible  <bruno@clisp.org>
52034
52035         * lib/trim.c: Include <string.h>.
52036
52037 2008-04-11  Eric Blake  <ebb9@byu.net>
52038
52039         Avoid compile failure on OS/2.
52040         * lib/regex_internal.h (internal_function): Disable optimization
52041         on OS/2 (__EMX__), where it caused compiler error.
52042         Reported by Elbert Pol.
52043
52044 2008-04-11  Bruno Haible  <bruno@clisp.org>
52045
52046         Flush the standard error stream before aborting. Needed on mingw.
52047         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52048         * tests/test-array_list.c (ASSERT): Likewise.
52049         * tests/test-array_oset.c (ASSERT): Likewise.
52050         * tests/test-avltree_list.c (ASSERT): Likewise.
52051         * tests/test-avltree_oset.c (ASSERT): Likewise.
52052         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52053         * tests/test-binary-io.c (ASSERT): Likewise.
52054         * tests/test-byteswap.c (ASSERT): Likewise.
52055         * tests/test-c-ctype.c (ASSERT): Likewise.
52056         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52057         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52058         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52059         * tests/test-c-strstr.c (ASSERT): Likewise.
52060         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52061         * tests/test-canonicalize.c (ASSERT): Likewise.
52062         * tests/test-carray_list.c (ASSERT): Likewise.
52063         * tests/test-ceilf1.c (ASSERT): Likewise.
52064         * tests/test-ceilf2.c (ASSERT): Likewise.
52065         * tests/test-ceill.c (ASSERT): Likewise.
52066         * tests/test-count-one-bits.c (ASSERT): Likewise.
52067         * tests/test-fbufmode.c (ASSERT): Likewise.
52068         * tests/test-fflush2.c (ASSERT): Likewise.
52069         * tests/test-floorf1.c (ASSERT): Likewise.
52070         * tests/test-floorf2.c (ASSERT): Likewise.
52071         * tests/test-floorl.c (ASSERT): Likewise.
52072         * tests/test-fopen.c (ASSERT): Likewise.
52073         * tests/test-fpending.c (ASSERT): Likewise.
52074         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52075         * tests/test-fpurge.c (ASSERT): Likewise.
52076         * tests/test-freadable.c (ASSERT): Likewise.
52077         * tests/test-freadahead.c (ASSERT): Likewise.
52078         * tests/test-freading.c (ASSERT): Likewise.
52079         * tests/test-freadptr.c (ASSERT): Likewise.
52080         * tests/test-freadptr2.c (ASSERT): Likewise.
52081         * tests/test-freadseek.c (ASSERT): Likewise.
52082         * tests/test-freopen.c (ASSERT): Likewise.
52083         * tests/test-frexp.c (ASSERT): Likewise.
52084         * tests/test-frexpl.c (ASSERT): Likewise.
52085         * tests/test-fseek.c (ASSERT): Likewise.
52086         * tests/test-fseeko.c (ASSERT): Likewise.
52087         * tests/test-fstrcmp.c (ASSERT): Likewise.
52088         * tests/test-ftell.c (ASSERT): Likewise.
52089         * tests/test-ftello.c (ASSERT): Likewise.
52090         * tests/test-func.c (ASSERT): Likewise.
52091         * tests/test-fwritable.c (ASSERT): Likewise.
52092         * tests/test-fwriting.c (ASSERT): Likewise.
52093         * tests/test-getdelim.c (ASSERT): Likewise.
52094         * tests/test-getline.c (ASSERT): Likewise.
52095         * tests/test-i-ring.c (ASSERT): Likewise.
52096         * tests/test-iconv-utf.c (ASSERT): Likewise.
52097         * tests/test-iconv.c (ASSERT): Likewise.
52098         * tests/test-isfinite.c (ASSERT): Likewise.
52099         * tests/test-isnand.c (ASSERT): Likewise.
52100         * tests/test-isnanf.c (ASSERT): Likewise.
52101         * tests/test-isnanl.h (ASSERT): Likewise.
52102         * tests/test-ldexpl.c (ASSERT): Likewise.
52103         * tests/test-linked_list.c (ASSERT): Likewise.
52104         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52105         * tests/test-localename.c (ASSERT): Likewise.
52106         * tests/test-lseek.c (ASSERT): Likewise.
52107         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52108         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52109         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52110         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52111         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52112         * tests/test-mbschr.c (ASSERT): Likewise.
52113         * tests/test-mbscspn.c (ASSERT): Likewise.
52114         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52115         * tests/test-mbspbrk.c (ASSERT): Likewise.
52116         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52117         * tests/test-mbsrchr.c (ASSERT): Likewise.
52118         * tests/test-mbsspn.c (ASSERT): Likewise.
52119         * tests/test-mbsstr1.c (ASSERT): Likewise.
52120         * tests/test-mbsstr2.c (ASSERT): Likewise.
52121         * tests/test-mbsstr3.c (ASSERT): Likewise.
52122         * tests/test-memchr2.c (ASSERT): Likewise.
52123         * tests/test-memmem.c (ASSERT): Likewise.
52124         * tests/test-open.c (ASSERT): Likewise.
52125         * tests/test-printf-frexp.c (ASSERT): Likewise.
52126         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52127         * tests/test-printf-posix.c (ASSERT): Likewise.
52128         * tests/test-quotearg.c (ASSERT): Likewise.
52129         * tests/test-rbtree_list.c (ASSERT): Likewise.
52130         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52131         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52132         * tests/test-round1.c (ASSERT): Likewise.
52133         * tests/test-roundf1.c (ASSERT): Likewise.
52134         * tests/test-roundl.c (ASSERT): Likewise.
52135         * tests/test-signbit.c (ASSERT): Likewise.
52136         * tests/test-sleep.c (ASSERT): Likewise.
52137         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52138         * tests/test-snprintf.c (ASSERT): Likewise.
52139         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52140         * tests/test-stat-time.c (ASSERT): Likewise.
52141         * tests/test-strcasestr.c (ASSERT): Likewise.
52142         * tests/test-strerror.c (ASSERT): Likewise.
52143         * tests/test-striconv.c (ASSERT): Likewise.
52144         * tests/test-striconveh.c (ASSERT): Likewise.
52145         * tests/test-striconveha.c (ASSERT): Likewise.
52146         * tests/test-strsignal.c (ASSERT): Likewise.
52147         * tests/test-strstr.c (ASSERT): Likewise.
52148         * tests/test-strtod.c (ASSERT): Likewise.
52149         * tests/test-trunc1.c (ASSERT): Likewise.
52150         * tests/test-trunc2.c (ASSERT): Likewise.
52151         * tests/test-truncf1.c (ASSERT): Likewise.
52152         * tests/test-truncf2.c (ASSERT): Likewise.
52153         * tests/test-truncl.c (ASSERT): Likewise.
52154         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52155         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52156         * tests/test-vasnprintf.c (ASSERT): Likewise.
52157         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52158         * tests/test-vasprintf.c (ASSERT): Likewise.
52159         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52160         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52161         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52162         * tests/test-vsnprintf.c (ASSERT): Likewise.
52163         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52164         * tests/test-wcwidth.c (ASSERT): Likewise.
52165         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52166         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52167         * tests/test-xvasprintf.c (ASSERT): Likewise.
52168         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52169         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52170         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52171         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52172         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52173         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52174         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52175         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52176         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52177         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52178         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52179         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52180         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52181         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52182         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52183         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52184         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52185         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52186         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52187         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52188         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52189         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52190         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52191         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52192         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52193         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52194         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52195         * tests/unictype/test-combining.c (ASSERT): Likewise.
52196         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52197         * tests/unictype/test-digit.c (ASSERT): Likewise.
52198         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52199         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52200         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52201         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52202         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52203         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52204         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52205         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52206         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52207         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52208         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52209         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52210         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52211         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52212         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52213         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52214         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52215         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52216         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52217         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52218         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52219         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52220         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52221         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52222         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52223         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52224         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52225         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52226         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52227         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52228         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52229         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52230         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52231         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52232         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52233         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52234         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52235         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52236         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52237         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52238         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52239         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52240         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52241         Reported by Eric Blake.
52242
52243 2008-04-11  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/wchar.in.h: Tweak comment.
52246
52247 2008-04-11  Bruno Haible  <bruno@clisp.org>
52248
52249         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52250         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52251         gl_COMMON.
52252         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52253
52254 2008-04-11  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52257
52258 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52259
52260         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52261         of attempting to use non-existing /dev/*random.  Based on patch
52262         from Adam Strzelecki <ono@java.pl> in
52263         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52264
52265 2008-04-08  Bruno Haible  <bruno@clisp.org>
52266
52267         Add tentative support for emx+gcc.
52268         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52269         * lib/fpurge.c (fpurge): Likewise.
52270         * lib/freadable.c (freadable): Likewise.
52271         * lib/freadahead.c (freadahead): Likewise.
52272         * lib/freading.c (freading): Likewise.
52273         * lib/freadptr.c (freadptr): Likewise.
52274         * lib/freadseek.c (freadptrinc): Likewise.
52275         * lib/fseeko.c (rpl_fseeko): Likewise.
52276         * lib/fseterr.c (fseterr): Likewise.
52277         * lib/fwritable.c (fwritable): Likewise.
52278         * lib/fwriting.c (fwriting): Likewise.
52279         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52280
52281 2008-04-09  Eric Blake  <ebb9@byu.net>
52282
52283         Avoid some autoconf warnings.
52284         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52285         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52286         * m4/afs.m4 (gl_AFS): Likewise.
52287         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52288         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52289         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52290         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52291         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52292         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52293         (AC_CHECK_DECLS_ONCE): Likewise.
52294         Rename file...
52295         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52296         gnulib-tool requires autoconf 2.59 or better.
52297         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52298
52299 2008-04-08  Eric Blake  <ebb9@byu.net>
52300
52301         Use 'git describe --match' if present (added in git 1.5.5).
52302         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52303         if possible.
52304
52305 2008-04-08  Bruno Haible  <bruno@clisp.org>
52306
52307         Add tentative support for OpenServer.
52308         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52309         _ptr, _cnt.
52310         * lib/fpurge.c (fpurge): Likewise.
52311         * lib/freadable.c (freadable): Likewise.
52312         * lib/freadahead.c (freadahead): Likewise.
52313         * lib/freading.c (freading): Likewise.
52314         * lib/freadptr.c (freadptr): Likewise.
52315         * lib/freadseek.c (freadptrinc): Likewise.
52316         * lib/fseeko.c (rpl_fseeko): Likewise.
52317         * lib/fseterr.c (fseterr): Likewise.
52318         * lib/fwritable.c (fwritable): Likewise.
52319         * lib/fwriting.c (fwriting): Likewise.
52320         Reported by Roger Cornelius <rac@tenzing.org> and
52321         Brian K. White <brian@aljex.com>.
52322
52323 2008-04-06  Jim Meyering  <meyering@redhat.com>
52324
52325         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52326
52327 2008-04-06  Bruno Haible  <bruno@clisp.org>
52328
52329         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52330         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52331         * tests/test-printf-posix.sh: Likewise.
52332         * tests/test-vfprintf-posix.sh: Likewise.
52333         * tests/test-vprintf-posix.sh: Likewise.
52334         * tests/test-xprintf-posix.sh: Likewise.
52335
52336 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52337
52338         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52339         hide error from 'ls', needed on OS/2.
52340         Report by Elbert Pol <elbert.pol@gmail.com>.
52341
52342 2008-04-04  Eric Blake  <ebb9@byu.net>
52343
52344         Make test-fseeko.c failures meaningful.
52345         * tests/test-fseeko.c: Print line number on failure.
52346         * tests/test-fseek.c: Likewise.
52347         Reported by Nelson H. F. Beebe.
52348
52349         Improve strtod bug detection check.
52350         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52351         required for Solaris 10.
52352         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52353
52354 2008-04-04  Bruno Haible  <bruno@clisp.org>
52355
52356         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52357         by m4/setenv.m4.
52358
52359 2008-04-03  Eric Blake  <ebb9@byu.net>
52360
52361         Ensure sane .version contents.
52362         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52363         version string.
52364         * build-aux/git-version-gen: Improve documentation.
52365
52366         Make GNU make output nicer.
52367         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52368         MAKECMDGOALS to enforce message for all command line targets.  Set
52369         srcdir for use in maint.mk.
52370
52371         Another maintainer tweak.
52372         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52373         a target that regenerates version.
52374
52375 2008-04-03  Jim Meyering  <meyering@redhat.com>
52376
52377         vc-list-files: don't cause coreutils "make po-check" failure
52378         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52379
52380 2008-04-03  Eric Blake  <ebb9@byu.net>
52381
52382         Allow VPATH usage of vc-list-files.
52383         * build-aux/vc-list-files (scriptversion): Add timestamp.
52384         (options): Add --help, --version, -C.
52385         (CVS): Support installed cvsu.
52386
52387 2008-04-02  Bruno Haible  <bruno@clisp.org>
52388
52389         Avoid some "statement with no effect" warnings from gcc.
52390         * tests/test-wctype.c (main): Explicitly ignore unused values.
52391         Reported by Jim Meyering.
52392
52393 2008-04-02  Jim Meyering  <meyering@redhat.com>
52394
52395         Avoid some warnings from "gcc -Wshadow".
52396         * tests/test-frexp.c (exp): Define to a different identifier.
52397         * tests/test-frexpl.c (exp): Likewise.
52398
52399 2008-04-03  Jim Meyering  <meyering@redhat.com>
52400
52401         bootstrap: remove dangling *.[ch] symlinks from lib
52402         * build-aux/bootstrap [dangling symlink removal]: Move find's
52403         -depth option to precede all others, to avoid a warning.
52404         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52405
52406 2008-04-02  Bruno Haible  <bruno@clisp.org>
52407
52408         Avoid some warnings from "gcc -Wshadow".
52409         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52410         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52411         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52412         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52413         Reported by Jim Meyering.
52414
52415 2008-04-01  Bruno Haible  <bruno@clisp.org>
52416
52417         Fix test to work on IRIX 6.5 with cc.
52418         * tests/test-math.c (numeric_equal): New function.
52419         (main): Use it.
52420
52421 2008-04-01  Bruno Haible  <bruno@clisp.org>
52422
52423         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52424
52425 2008-04-01  Bruno Haible  <bruno@clisp.org>
52426
52427         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52428         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52429         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52430         (Depends-on): Remove math.
52431
52432         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52433         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52434         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52435         (Depends-on): Remove math.
52436
52437         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52438         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52439         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52440         (Depends-on): Remove math.
52441         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52442         (Depends-on): Remove math.
52443
52444         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52445         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52446         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52447         (Depends-on): Remove math.
52448         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52449         (Depends-on): Remove math.
52450
52451         * tests/test-round1.c: Include nan.h.
52452         (main): Use NaNd instead of NAN.
52453         * modules/round-tests (Files): Add tests/nan.h.
52454
52455         * tests/test-trunc1.c: Include nan.h.
52456         (main): Use NaNd instead of NAN.
52457         * modules/trunc-tests (Files): Add tests/nan.h.
52458
52459         * tests/test-roundf1.c: Include nan.h.
52460         (main): Use NaNf instead of NAN.
52461         * modules/roundf-tests (Files): Add tests/nan.h.
52462
52463         * tests/test-truncf1.c: Include nan.h.
52464         (main): Use NaNf instead of NAN.
52465         * modules/truncf-tests (Files): Add tests/nan.h.
52466
52467         * tests/test-ceilf1.c: Include nan.h.
52468         (main): Use NaNf instead of NAN.
52469         * modules/ceilf-tests (Files): Add tests/nan.h.
52470
52471         * tests/test-floorf1.c: Include nan.h.
52472         (main): Use NaNf instead of NAN.
52473         * modules/floorf-tests (Files): Add tests/nan.h.
52474
52475         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52476         (main): Use NaNf instead of NAN.
52477         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52478
52479         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52480         (main): Use NaNd instead of NAN.
52481         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52482
52483         * tests/test-frexp.c: Include nan.h.
52484         (main): Use NaNd instead of NAN.
52485         * modules/frexp-tests (Files): Add tests/nan.h.
52486
52487         * lib/isnan.c: Don't include <math.h>.
52488         (FUNC): Don't use NAN macro.
52489         * modules/isnand-nolibm (Depends-on): Remove math.
52490         * modules/isnanf-nolibm (Depends-on): Remove math.
52491         * modules/isnanl (Depends-on): Remove math.
52492         * modules/isnanl-nolibm (Depends-on): Remove math.
52493
52494         * tests/nan.h: New file.
52495
52496 2008-04-01  Eric Blake  <ebb9@byu.net>
52497
52498         Fix typos.
52499         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52500         values to be the right type.
52501
52502         For now, cater to gnulib strtod inaccuracies.
52503         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52504         fractional results.  While not as nice from a QoI perspective, it
52505         is a quicker patch than correctly implementing decimal to binary
52506         rounding.
52507
52508 2008-03-31  Eric Blake  <ebb9@byu.net>
52509
52510         Guarantee a definition of NAN.
52511         * lib/math.in.h (NAN): Define if missing.
52512         * tests/test-math.c (main): Test it.
52513         * doc/posix-headers/math.texi (math.h): Document this.
52514         * lib/isnan.c (rpl_isnand): Use it.
52515         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52516         * tests/test-floorf1.c (NaN): Likewise.
52517         * tests/test-frexp.c (NaN): Likewise.
52518         * tests/test-isnand.c (NaN): Likewise.
52519         * tests/test-isnanf.c (NaN): Likewise.
52520         * tests/test-round1.c (NaN): Likewise.
52521         * tests/test-roundf1.c (NaN): Likewise.
52522         * tests/test-snprintf-posix.h (NaN): Likewise.
52523         * tests/test-sprintf-posix.h (NaN): Likewise.
52524         * tests/test-trunc1.c (NaN): Likewise.
52525         * tests/test-truncf1.c (NaN): Likewise.
52526         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52527         * tests/test-vasprintf-posix.c (NaN): Likewise.
52528         * modules/isnand-nolibm (Depends-on): Add math.
52529         * modules/isnanf-nolibm (Depends-on): Likewise.
52530         * modules/isnanl (Depends-on): Likewise.
52531         * modules/isnanl-nolibm (Depends-on): Likewise.
52532         * modules/snprintf-posix-tests (Depends-on): Likewise.
52533         * modules/sprintf-posix-tests (Depends-on): Likewise.
52534         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52535         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52536         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52537         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52538
52539 2008-03-31  Bruno Haible  <bruno@clisp.org>
52540
52541         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52542         * doc/posix-functions/strtod.texi: Likewise.
52543
52544 2008-03-31  Bruno Haible  <bruno@clisp.org>
52545
52546         * tests/test-strtod.c (main): Don't use C99 syntax.
52547
52548 2008-03-31  Bruno Haible  <bruno@clisp.org>
52549
52550         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52551         Reported by Eric Blake.
52552
52553 2008-03-31  Jim Meyering  <meyering@redhat.com>
52554
52555         Don't compare actual signbit return values.
52556         * tests/test-strtod.c (main): Rather, compare only their
52557         zero/non-zero nature.
52558
52559 2008-03-31  Eric Blake  <ebb9@byu.net>
52560
52561         More strtod documentation.
52562         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52563         failures as distinct bugs.
52564
52565 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52568         Problem reported by Erik Benada in
52569         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52570
52571 2008-03-30  Bruno Haible  <bruno@clisp.org>
52572
52573         * tests/test-strtod.c: Add comments about which assertion fails on which
52574         platform.
52575         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52576
52577 2008-03-30  Eric Blake  <ebb9@byu.net>
52578
52579         Test signbit behavior on zeros.
52580         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52581         (test_signbitd, test_signbitl): Likewise.
52582
52583         More strtod touchups.
52584         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52585         sign of negative underflow, for now.  Use .5, not .1.
52586         * doc/posix-functions/strtod.texi (strtod): Mention these
52587         limitations.
52588         Reported by Jim Meyering.
52589
52590 2008-03-30  Bruno Haible  <bruno@clisp.org>
52591
52592         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52593         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52594
52595 2008-03-30  Bruno Haible  <bruno@clisp.org>
52596
52597         Avoid failure when attempting to return empty iconv results on some
52598         platforms.
52599         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52600         allocation, don't report ENOMEM when the resulting string is empty.
52601
52602 2008-03-30  Bruno Haible  <bruno@clisp.org>
52603
52604         Fix buffer overrun.
52605         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52606         Don't consider the width for tmp_length. Check count against tmp_length
52607         before doing the padding. Ensure enough allocation during padding.
52608
52609 2008-03-30  Eric Blake  <ebb9@byu.net>
52610
52611         strtod touchups.
52612         * lib/strtod.c (strtod): Avoid compiler warnings.
52613         Reported by Jim Meyering.
52614
52615 2008-03-30  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52618         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52619         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52620         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52621         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52622         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52623         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52624         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52625
52626         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52627         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52628         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52629         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52630         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52631         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52632         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52633         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52634
52635         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52636         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52637         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52638         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52639         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52640         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52641         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52642         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52643
52644         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52645         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52646
52647         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52648         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52649
52650         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52651         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52652
52653         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52655         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52656
52657         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52659         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52660
52661         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52663         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52664
52665         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52666         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52667         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52668
52669         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52670         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52672         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52673         (Depends-on): Add EOVERFLOW.
52674         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52675         (Depends-on): Add EOVERFLOW.
52676         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52677         (Depends-on): Add EOVERFLOW.
52678         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52679         (Depends-on): Add EOVERFLOW.
52680         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52681         (Depends-on): Add EOVERFLOW.
52682         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52683         (Depends-on): Add EOVERFLOW.
52684         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52685         (Depends-on): Add EOVERFLOW.
52686         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52687         (Depends-on): Add EOVERFLOW.
52688
52689         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52690         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52691         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52692
52693         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52695         * modules/snprintf (Depends-on): Add EOVERFLOW.
52696
52697         * lib/poll.c (EOVERFLOW): Remove fallback.
52698         * modules/poll (Depends-on): Add EOVERFLOW.
52699
52700         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52701         * modules/getugroups (Depends-on): Add EOVERFLOW.
52702
52703         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52704         * modules/getdelim (Depends-on): Add EOVERFLOW.
52705
52706         * lib/ftell.c (EOVERFLOW): Remove fallback.
52707         * modules/ftell (Depends-on): Add EOVERFLOW.
52708
52709         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52711         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52712
52713         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52714
52715         * modules/EOVERFLOW-tests: New file.
52716         * tests/test-EOVERFLOW.c: New file.
52717
52718         * modules/EOVERFLOW: New file.
52719         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52720
52721 2008-03-30  Bruno Haible  <bruno@clisp.org>
52722
52723         Fix bug introduced on 2007-06-10.
52724         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52725         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52726
52727 2008-03-30  Bruno Haible  <bruno@clisp.org>
52728
52729         Improve freadseek's efficiency after ungetc.
52730         * lib/freadseek.c: Include freadahead.h.
52731         (freadptrinc): New function, extracted from freadseek.
52732         (freadseek): Use it in a loop. Use freadahead to determine the number
52733         of loop iterations.
52734         * modules/freadseek (Depends-on): Add freadahead.
52735         (configure.ac): Require AC_C_INLINE.
52736
52737 2008-03-30  Bruno Haible  <bruno@clisp.org>
52738
52739         * lib/freadseek.c (freadseek): Don't ignore the return value of
52740         freadptr.
52741
52742 2008-03-29  Eric Blake  <ebb9@byu.net>
52743
52744         Add hex float support.
52745         * modules/strtod (Depends-on): Add c-ctype.
52746         (Link): Mention POW_LIB.
52747         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52748         whitespace between 'e' and exponent.
52749         * tests/test-strtod.c (main): Enable hex float tests.
52750         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52751         now provides.
52752
52753         Document various strtod bugs, with some fixes.
52754         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52755         "-0x", "inf", "nan", and hex constants.
52756         * doc/posix-functions/atof.texi (atof): Likewise.
52757         * modules/stdlib (Makefile.am): Support strtod.
52758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52759         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52760         detect additional strtod bugs.
52761         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52762         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52763         bool where appropriate.  Parse 'inf' and 'nan'.
52764         * tests/test-strtod.c: New file.
52765         * modules/strtod (Depends-on): Add stdbool, stdlib.
52766         (configure.ac): Turn on module indicator.
52767         * modules/strtod-tests: New module.
52768
52769 2008-03-29  Eric Blake  <ebb9@byu.net>
52770
52771         Fix ftell on mingw.
52772         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52773         * modules/ftell-tests (Depends-on): Add binary-io.
52774         * modules/ftello-tests (Depends-on): Likewise.
52775         * tests/test-ftell.c (main): Enhance test to cover behavior after
52776         ungetc.  Enforce binary mode.
52777         * tests/test-ftello.c (main): Likewise.
52778
52779         Pass test-freadseek on cygwin.
52780         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52781         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52782         ungetc buffer.
52783
52784         * tests/test-fflush2.c (main): Fix typo.
52785
52786 2008-03-29  Bruno Haible  <bruno@clisp.org>
52787
52788         * tests/test-fflush2.c (main): Temporarily disable the contents of
52789         this test.
52790         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52791         Reported by Eric Blake.
52792
52793 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52794
52795         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52796         (GC_SHA224_DIGEST_SIZE): Add.
52797
52798         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52799         (gc_hash_digest_length): Likewise.
52800         (gc_hash_buffer): Likewise.
52801
52802 2008-03-25  Bruno Haible  <bruno@clisp.org>
52803
52804         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52805         detail which gettext release to use.
52806         Reported by Simon Josefsson.
52807
52808 2008-03-26  Jim Meyering  <meyering@redhat.com>
52809
52810         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52811         * modules/gnumakefile (clean-GNUmakefile): Also, use
52812         test ... && ... || : syntax rather than if-then ... fi.
52813
52814         gnumakefile: Don't double-quote-expand $(VPATH) value.
52815         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52816
52817 2008-03-24  Eric Blake  <ebb9@byu.net>
52818
52819         Alter GNUmakefile to install into top directory.
52820         * modules/maintainer-makefile: Split, and add dependency...
52821         * modules/gnumakefile: to this new module.
52822         * build-aux/GNUmakefile: Move...
52823         * top/GNUmakefile: ...here.
52824         * build-aux/maint.mk: Move...
52825         * top/maint.mk: ...here.
52826         * MODULES.html.sh (Support for maintaining...): Document new
52827         module.
52828
52829 2008-03-23  Bruno Haible  <bruno@clisp.org>
52830
52831         * gnulib-tool: New options --vc-files, --no-vc-files.
52832         (func_usage): Document them.
52833         (vc_files): New variable.
52834         (func_import): Consider vc_files.
52835         (func_create_testdir): Set vc_files to empty.
52836         Suggested by Jim Meyering and Karl Berry.
52837
52838 2008-03-23  Bruno Haible  <bruno@clisp.org>
52839
52840         Fix regex compilation error on HP-UX 11.
52841         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52842         * modules/regex (Files): Add m4/mbstate_t.m4.
52843         Reported by Ton Voon <ton.voon@altinity.com>.
52844
52845 2008-03-23  Bruno Haible  <bruno@clisp.org>
52846
52847         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52848
52849 2008-03-23  Eric Blake  <ebb9@byu.net>
52850             Bruno Haible  <bruno@clisp.org>
52851
52852         Install files from top/ in the destination directory.
52853         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52854         augmentation also for the files from top/.
52855         (func_import, func_create_testdir): Rewrite file names:
52856         top/filename -> filename.
52857
52858 2008-03-23  Bruno Haible  <bruno@clisp.org>
52859
52860         Tweak "gnulib --version" output.
52861         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52862
52863 2008-03-23  Bruno Haible  <bruno@clisp.org>
52864
52865         Tweak "gnulib --version" output.
52866         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52867         rather than contents of ChangeLog, when possible.
52868
52869 2008-03-21  Eric Blake  <ebb9@byu.net>
52870
52871         More --version tweaks.
52872         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52873         date of last ChangeLog entry.
52874
52875 2008-03-21  Jim Meyering  <meyering@redhat.com>
52876
52877         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52878
52879 2008-03-20  Eric Blake  <ebb9@byu.net>
52880
52881         VPATH fix.
52882         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52883
52884 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52885
52886         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52887         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52888
52889 2008-03-20  Eric Blake  <ebb9@byu.net>
52890
52891         Sync GNUmakefile with coreutils.
52892         * build-aux/GNUmakefile (have-Makefile): Rename...
52893         (_have-Makefile): ...to this, for namespace consideration.
52894         (GNUmakefile.cfg): Include, if present.
52895         (_autoreconf): Define a default.
52896         (_is-dist-target): New rule for rebuilds to pick up intra-release
52897         version.
52898         (maint-cfg.mk): Rename...
52899         (cfg.mk): ...to this.
52900
52901 2008-03-18  Jim Meyering  <meyering@redhat.com>
52902
52903         New script and module: mktempd
52904         * MODULES.html.sh (maint+release support): Add mktempd.
52905         * build-aux/mktempd: New file.
52906         * modules/mktempd: New file.
52907
52908 2008-03-15  Jim Meyering  <meyering@redhat.com>
52909
52910         Undo last change.
52911         * lib/sha1.c, lib/md5.c: 63 != ~63.
52912         Reported by Andreas Schwab.
52913
52914         sha1.c, md5.c: Hoist a redundant expression.
52915         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52916         "ctx->buflen" only once, before calling *_process_block.
52917         * lib/md5.c (md5_process_bytes): Likewise.
52918
52919 2008-03-14  Eric Blake  <ebb9@byu.net>
52920
52921         Bump copyright year in files generated by gnulib-tool.
52922         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52923         gnulib-tool, rather than hard-coding it.
52924
52925         Fix 'gnulib-tool --version' output to work with git.
52926         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52927         (startup): ...here.
52928         (func_version): Use it to invoke git-version-gen, rather than
52929         relying on CVS keyword expansion.  Modernize wording.
52930         (cvsdatestamp, last_checkin_date, version): Kill unused
52931         variables.
52932
52933 2008-03-12  Jim Meyering  <meyering@redhat.com>
52934
52935         Recognize optional cast of the argument to free.
52936         * build-aux/useless-if-before-free: Update regexps.
52937
52938         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52939
52940 2008-03-11  Bruno Haible  <bruno@clisp.org>
52941
52942         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52943         by a single package.
52944         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52945         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52946         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52947         Reported by Sam Steingold <sds@gnu.org>.
52948
52949 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52950
52951         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52952         repositories.
52953
52954 2008-03-11  Bruno Haible  <bruno@clisp.org>
52955
52956         Avoid conflicts between local macro definitions.
52957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52958         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52959
52960 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52961             Bruno Haible  <bruno@clisp.org>
52962
52963         Make va_copy work with some version of xlc on AIX 5.1.
52964         * lib/stdarg.in.h: New file.
52965         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52966         On AIX, use a <stdarg.h> file substitute.
52967         * modules/stdarg (Files): Add lib/stdarg.in.h.
52968         (Depends-on): Add include_next.
52969         (Makefile.am): Build a stdarg.h substitute if requested.
52970         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52971
52972 2008-03-10  Bruno Haible  <bruno@clisp.org>
52973
52974         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52975         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52976         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52977
52978 2008-03-10  Bruno Haible  <bruno@clisp.org>
52979
52980         * modules/stdlib (Depends-on): Add include_next, remove
52981         absolute-header.
52982
52983 2008-03-09  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/freadahead.h (freadahead): Document more precisely.
52986         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52987         the sum of both buffer sizes.
52988         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52989         * NEWS: Document the change.
52990
52991 2008-03-09  Bruno Haible  <bruno@clisp.org>
52992
52993         Extend freadptr to return also the buffer size.
52994         * lib/freadptr.h (freadptr): Add sizep argument.
52995         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52996         (freadptr): Add sizep argument. Determine buffer size like freadahead
52997         does.
52998         * tests/test-freadptr.c: Don't include freadahead.h.
52999         (main): Adapt for new calling convention of freadptr.
53000         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53001         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53002         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53003         tests/test-freadptr2.sh.
53004         (Depends): Remove freadahead.
53005         (TESTS): Add test-freadptr2.sh.
53006         (check_PROGRAMS): Add test-freadptr2.
53007
53008 2008-03-09  Bruno Haible  <bruno@clisp.org>
53009
53010         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53011         Report and solution by Simon Josefsson.
53012
53013 2008-03-06  Bruno Haible  <bruno@clisp.org>
53014
53015         Make fflush after ungetc work on BSD platforms.
53016         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53017         * tests/test-fflush2.c: New file.
53018         * tests/test-fflush2.sh: New file.
53019         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53020         tests/test-fflush2.c.
53021         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53022         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53023
53024 2008-03-06  Eric Blake  <ebb9@byu.net>
53025
53026         Likewise for ftello.
53027         * modules/ftello (Dependencies): Add extensions.
53028         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53029
53030 2008-03-06  Bruno Haible  <bruno@clisp.org>
53031
53032         * modules/fseeko (Dependencies): Add extensions.
53033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53034         Needed on glibc systems.
53035
53036 2008-03-06  Bruno Haible  <bruno@clisp.org>
53037
53038         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53039         email address.
53040         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53041
53042 2008-03-06  Bruno Haible  <bruno@clisp.org>
53043
53044         * users.txt: Add libgnupdf.
53045
53046 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53047
53048         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53049         (Header File Substitutes, Function Substitutes,
53050         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53051         (Build robot for gnulib): Fix typo.
53052
53053 2008-03-06  Bruno Haible  <bruno@clisp.org>
53054
53055         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53056         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53057
53058 2008-03-06  Bruno Haible  <bruno@clisp.org>
53059
53060         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53061         * doc/gnulib.texi: Include it.
53062
53063 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53064
53065         * modules/func (License): Change license to unlimited; there was
53066         no LGPL parts in the module anyway.
53067
53068 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53069
53070         * modules/__func__: Renamed to modules/func.
53071         * modules/__func__-tests: Renamed to modules/func-tests.
53072         * tests/test-__func__.c: Renamed to tests/test-func.c.
53073         * m4/__func__.m4: Renamed to m4/func.m4.
53074         * doc/gnulib.texi (__func__): Section renamed to func.
53075         Suggested by Eric Blake <ebb9@byu.net>.
53076
53077 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53078
53079         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53080         about __func__.  Make example self-contained.  Suggested by Eric
53081         Blake <ebb9@byu.net>.
53082
53083         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53084         Suggested by Eric Blake <ebb9@byu.net>.
53085
53086 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53087
53088         * modules/__func__: New file.
53089         * modules/__func__-tests: New file.
53090         * tests/test-__func__.c: New file.
53091         * m4/__func__.m4: New file.
53092         * doc/gnulib.texi (__func__): Document __func__ module.
53093
53094 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53095
53096         * modules/byteswap (License): Re-license as LGPLv2+.
53097
53098 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53099
53100         * doc/Makefile: Add pdf target.
53101
53102 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53103
53104         * modules/inline (License): Use 'unlimited', since there are only
53105         *.m4 files in this module.
53106
53107 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53108             Bruno Haible  <bruno@clisp.org>
53109
53110         Add support for HP C 7.1 on OpenVMS 8.3.
53111         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53112
53113 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53114
53115         Update VMS specifics.
53116         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53117
53118 2008-03-02  Jim Meyering  <meyering@redhat.com>
53119
53120         Remove the last dependency on the "free" module.
53121         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53122         Reported by Bob Proulx.
53123
53124         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53125
53126         Remove useless "if" tests before free.  Deprecate "free" module.
53127         * doc/posix-functions/free.texi: Mention that this
53128         module is no longer useful.
53129         * modules/free (Notice): Say this module is obsolete.
53130         * modules/readutmp (Depends-on): Remove free.
53131         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53132         * lib/putenv.c (putenv): Likewise.
53133         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53134         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53135         * tests/test-c-strcasestr.c (main): Likewise.
53136         * tests/test-c-strstr.c (main): Likewise.
53137         * tests/test-mbscasestr1.c (main): Likewise.
53138         * tests/test-mbscasestr2.c (main): Likewise.
53139         * tests/test-mbsstr1.c (main): Likewise.
53140         * tests/test-mbsstr2.c (main): Likewise.
53141         * tests/test-memmem.c (main): Likewise.
53142         * tests/test-strcasestr.c (main): Likewise.
53143         * tests/test-striconv.c (main): Likewise.
53144         * tests/test-striconveh.c (main): Likewise.
53145         * tests/test-striconveha.c (main): Likewise.
53146         * tests/test-strstr.c (main): Likewise.
53147
53148         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53149
53150         bootstrap: sync from coreutils again
53151         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53152
53153 2008-03-01  Jim Meyering  <meyering@redhat.com>
53154
53155         bootstrap: sync from coreutils
53156         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53157         also when the target doesn't exist.
53158
53159 2008-03-01  Eric Blake  <ebb9@byu.net>
53160
53161         Fix bugs in last patch.
53162         * lib/memchr2.c (memchr2): Fix typo.
53163         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53164         extension.
53165         Reported by Bruce Korb.
53166
53167         New module 'memchr2'.
53168         * modules/memchr2: New file.
53169         * modules/memchr2-tests: Likewise.
53170         * lib/memchr2.h: Likewise.
53171         * lib/memchr2.c: Likewise, based on memchr.c.
53172         * tests/test-memchr2.c: New test.
53173         * MODULES.html.sh (String handling): Add memchr2.
53174
53175 2008-02-29  Bruno Haible  <bruno@clisp.org>
53176
53177         * modules/freadseek-tests: New file.
53178         * tests/test-freadseek.sh: New file.
53179         * tests/test-freadseek.c: New file.
53180
53181         New module 'freadseek'.
53182         * modules/freadseek: New file.
53183         * lib/freadseek.h: New file.
53184         * lib/freadseek.c: New file.
53185         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53186
53187 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53188
53189         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53190         wydawca.
53191
53192         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53193         program_invocation_name and program_invocation_short_name are
53194         present.
53195
53196 2008-02-28  Bruno Haible  <bruno@clisp.org>
53197
53198         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53199         * tests/test-freadptr.sh: Also test non-seekable stdin.
53200
53201 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53202
53203         * build-aux/bootstrap (source_base, m4_base)
53204         (doc_base, tests_base): New variables.
53205         (gnulib_tool_options): Do not hardcode base directories, use
53206         the above variables instead.
53207
53208 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53209
53210         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53211
53212 2008-02-28  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/freadptr-tests: New file.
53215         * tests/test-freadptr.sh: New file.
53216         * tests/test-freadptr.c: New file.
53217
53218         New module 'freadptr'.
53219         * modules/freadptr: New file.
53220         * lib/freadptr.h: New file.
53221         * lib/freadptr.c: New file.
53222         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53223
53224 2008-02-26  Karl Berry  <karl@freefriends.org>
53225
53226         Sync from Libtool:
53227         * libltdl/argz.c (argz_add, argz_count): New functions.
53228         * libltdl/argz.in.h: Declare them.
53229         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53230
53231 2008-02-22  Bruno Haible  <bruno@clisp.org>
53232
53233         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53234         is a pointer type.  Needed for HP-UX 10.
53235         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53236         * doc/posix-functions/gmtime_r.texi: Likewise.
53237         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53238
53239 2008-02-24  Bruno Haible  <bruno@clisp.org>
53240
53241         * modules/environ-tests: New file.
53242         * tests/test-environ.c: New file.
53243
53244         New module 'environ'.
53245         * modules/environ: New file.
53246         * lib/unistd.in.h (environ): New declaration.
53247         * m4/environ.m4: New file.
53248         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53249         after use.
53250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53251         HAVE_DECL_ENVIRON.
53252         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53253         HAVE_DECL_ENVIRON.
53254         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53255         wrong claim that 'environ' is missing on some systems.
53256         * modules/execute (Depends-on): Add environ.
53257         * lib/execute.c (environ): Remove fallback declaration.
53258         * modules/pipe (Depends-on): Add environ.
53259         * lib/pipe.c (environ): Remove fallback declaration.
53260         * modules/setenv (Depends-on): Add environ.
53261         * lib/setenv.c (environ): Remove fallback declaration.
53262         * modules/unsetenv (Depends-on): Add environ.
53263         * lib/unsetenv.c (environ): Remove fallback declaration.
53264         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53265         m4/environ.m4.
53266         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53267         (gl_PREREQ_UNSETENV): Likewise.
53268
53269 2008-02-24  Bruno Haible  <bruno@clisp.org>
53270
53271         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53272
53273 2008-02-20  Bob Proulx  <bob@proulx.com>
53274
53275         Enable use of older two part flavor 'git describe'.
53276         * build-aux/git-version-gen: If using the older two part flavor of
53277         git version then recreate the third part now present in the
53278         newer three part flavor of git describe.
53279
53280 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53281
53282         * lib/fts.c (fts_build): Typo correction to comment.
53283
53284 2008-02-17  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53287         generating no-op conflicts.
53288
53289 2008-02-17  Bruno Haible  <bruno@clisp.org>
53290
53291         Speed up by 10%.
53292         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53293         result_entries, rather than an index-based loop.
53294
53295 2008-02-17  Bruno Haible  <bruno@clisp.org>
53296
53297         Speed up by 25%.
53298         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53299         'hashcode_cached'.
53300         (entry_create): New function.
53301         (entry_hashcode): Use the cached hashcode if possible.
53302         (read_changelog_file, try_split_merged_entry): Use entry_create.
53303
53304 2008-02-17  Bruno Haible  <bruno@clisp.org>
53305
53306         Speed up from O(n^2) to O(n) for long ChangeLog files.
53307         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53308         (read_changelog_file): Change implementation of entries_reversed list
53309         to rbtreehash.
53310         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53311
53312 2008-02-17  Bruno Haible  <bruno@clisp.org>
53313
53314         New option --split-merged-entry.
53315         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53316         (find_paragraph_end, try_split_merged_entry): New functions.
53317         (long_options): Add option --split-merged-entry.
53318         (usage): Document option --split-merged-entry.
53319         (main): Implement option --split-merged-entry.
53320         Reported by Eric Blake.
53321
53322 2008-02-17  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/git-merge-changelog.c: Include c-strstr.h.
53325         (main): Support the "git pull --rebase" situation.
53326         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53327         Reported by Eric Blake.
53328
53329 2008-02-16  Eric Blake  <ebb9@byu.net>
53330
53331         Avoid doubling \ in common case of "c-maybe" quoting style.
53332         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53333         eliding outer quotes.
53334         * lib/quotearg.h: Document this.
53335         * tests/test-quotearg.c (result_strings, inputs, results_g)
53336         (flag_results, locale_results): Test it by adding a new string to
53337         each test group.
53338         (compare_strings): Test new string.
53339
53340 2008-02-13  Eric Blake  <ebb9@byu.net>
53341
53342         Avoid trigraph quoting in default output.
53343         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53344         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53345         unless explicitly requested.
53346         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53347
53348 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53349
53350         Don't rely on signed integer overflowing to negative value.
53351         * lib/getugroups.c (getugroups): Include <limits.h>.
53352         Instead, compare against INT_MAX, and increment only if the test passes.
53353
53354 2008-02-13  Jim Meyering  <meyering@redhat.com>
53355         and Eric Blake  <ebb9@byu.net>
53356
53357         Avoid shadowing warning and compile errors on Linux.
53358         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53359         forwarding macros on Linux.
53360         (dcgettext): Define a stub, for Linux.
53361         (results_g, main): Avoid warnings.
53362
53363 2008-02-12  Eric Blake  <ebb9@byu.net>
53364
53365         Silence warning in last patch.
53366         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53367
53368         Quotearg part 4: add tests, fix c-maybe colon quoting.
53369         * lib/quotearg.h: Improve documentation.
53370         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53371         escapes when adding outer quotes.  When quoting trigraphs, use
53372         valid C notation.  When quoting NUL, omit extra characters if next
53373         character is not digit.  Alter prototype.
53374         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53375         callers.
53376         * modules/quotearg-tests: New module.
53377         * tests/test-quotearg.c: New test.
53378
53379 2008-02-07  Eric Blake  <ebb9@byu.net>
53380
53381         Quotearg part 3: add flag to control outer quote elision.
53382         * lib/quotearg.h (c_maybe_quoting_style): New style.
53383         (enum quoting_flags): Better documentation of flags.
53384         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53385         c-maybe style.
53386         (quotearg_buffer_restyled): Handle new flag to elide outer
53387         quotes.
53388
53389         Quotearg part 2: add flag that can control NUL elision.
53390         * lib/quotearg.h (set_quoting_flags): New prototype.
53391         * lib/quotearg.c (struct quoting_options): Add flag field.
53392         (set_quoting_flags): New function.
53393         (quotearg_buffer_restyled): Add flags parameter.
53394         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53395         (quotearg_n_options): Set the flag, since length cannot be
53396         returned.
53397         (quoting_options_from_style): Default flags correctly.
53398
53399         Quotearg part 1: more wrappers, restore quotearg_char state.
53400         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53401         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53402         (quotearg_colon_mem): New wrappers.
53403         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53404         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53405         functions.
53406         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53407         (quotearg_colon_mem): New functions.
53408
53409 2008-02-11  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53412         library in the current directory: it does not work with parallel make.
53413         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53414
53415 2008-02-11  Bruno Haible  <bruno@clisp.org>
53416
53417         * .gitattributes: New file.
53418
53419 2008-02-11  Jim Meyering  <meyering@redhat.com>
53420
53421         useless-if-before-free: Fix reversed exit values.
53422         * build-aux/useless-if-before-free: Use correct values
53423         for EXIT_MATCH and EXIT_NO_MATCH.
53424
53425         * build-aux/useless-if-before-free: Close stdout carefully.
53426
53427 2008-02-10  Bruno Haible  <bruno@clisp.org>
53428
53429         New module 'git-merge-changelog'.
53430         * modules/git-merge-changelog: New file.
53431         * lib/git-merge-changelog.c: New file.
53432
53433 2008-02-10  Jim Meyering  <meyering@redhat.com>
53434
53435         useless-if-before-free: New option: --list (-l).
53436
53437         useless-if-before-free: Don't exit immediately upon open failure.
53438         * build-aux/useless-if-before-free: Exit 2 for errors.
53439         Upon failure to open a file, don't exit immediately.
53440         Rather, just warn and continue with any remaining files.
53441
53442 2008-02-10  Bruno Haible  <bruno@clisp.org>
53443
53444         New abstract list operation 'node_set_value'.
53445         * lib/gl_list.h (gl_list_node_set_value): New function.
53446         (struct gl_list_implementation): New field node_set_value.
53447         * lib/gl_list.c (gl_list_node_set_value): New function.
53448         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53449         (gl_array_list_implementation): Update.
53450         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53451         (gl_carray_list_implementation): Update.
53452         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53453         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53454         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53455         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53456         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53457         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53458         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53459         Update.
53460         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53461         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53462         (gl_sublist_list_implementation): Update.
53463
53464 2008-02-10  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53467         Needed when ELEMENT is #defined to 'some_type *'.
53468
53469 2008-02-10  Jim Meyering  <meyering@redhat.com>
53470
53471         New script and module: useless-if-before-free
53472         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53473         * build-aux/useless-if-before-free: New file.
53474         * modules/useless-if-before-free: New file.
53475
53476         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53477
53478         xstrtol_error: Fix typo.
53479         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53480         s/exit_failure/exit_status/.
53481
53482 2008-02-09  Jim Meyering  <meyering@redhat.com>
53483
53484         New script and module: gitlog-to-changelog
53485         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53486         * modules/gitlog-to-changelog: New file.
53487         * build-aux/gitlog-to-changelog: New file.
53488
53489 2008-02-08  Jim Meyering  <meyering@redhat.com>
53490
53491         Avoid two "parameter unused" warnings.
53492         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53493         Mark "st" as used.
53494
53495         Use "git COMMAND", not "git-COMMAND".
53496         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53497         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53498         * build-aux/git-version-gen: Use "git status", not "git-status".
53499
53500 2008-02-07  Bruno Haible  <bruno@clisp.org>
53501
53502         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53503         Avoids a crash on Windows Vista.
53504         Reported by Adam Strzelecki <ono@java.pl> via
53505         Simon Josefsson <simon@josefsson.org>.
53506
53507 2008-02-06  Bruno Haible  <bruno@clisp.org>
53508
53509         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53510         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53511         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53513         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53515         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53516         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53524         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53525         left-adjust flag.
53526         * tests/test-snprintf-posix.h (test_function): Likewise.
53527         * tests/test-sprintf-posix.h (test_function): Likewise.
53528         * tests/test-vasprintf-posix.c (test_function): Likewise.
53529         * doc/posix-functions/fprintf.texi: Update.
53530         * doc/posix-functions/printf.texi: Update.
53531         * doc/posix-functions/snprintf.texi: Update.
53532         * doc/posix-functions/sprintf.texi: Update.
53533         * doc/posix-functions/vfprintf.texi: Update.
53534         * doc/posix-functions/vprintf.texi: Update.
53535         * doc/posix-functions/vsnprintf.texi: Update.
53536         * doc/posix-functions/vsprintf.texi: Update.
53537         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53538
53539 2008-02-06  Bruno Haible  <bruno@clisp.org>
53540
53541         Fix bug introduced on 2008-01-26.
53542         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53543
53544 2008-02-06  Bruno Haible  <bruno@clisp.org>
53545
53546         Fix bug introduced on 2007-06-10.
53547         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53548         !NEED_PRINTF_FLAG_ZERO.
53549
53550 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53551
53552         getloadavg: use libperfstat on AIX5
53553         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53554
53555 2008-02-03  Bruno Haible  <bruno@clisp.org>
53556
53557         * lib/diffseq.h: Add comments about required #includes.
53558         Reported by Michael Biggs <gnulib@doubleplum.net>.
53559
53560 2008-02-01  Bruno Haible  <bruno@clisp.org>
53561
53562         * users.txt: Add gnuit.
53563
53564 2008-01-31  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/md4.c (set_uint32): Mark as inline.
53567         * lib/md5.c (set_uint32): Likewise.
53568         * lib/sha1.c (set_uint32): Likewise.
53569         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53570         * m4/md5.m4 (gl_MD5): Likewise.
53571         * m4/sha1.m4 (gl_SHA1): Likewise.
53572
53573 2008-01-31  Jim Meyering  <meyering@redhat.com>
53574
53575         Use "sizeof VAR", rather than a literal "4".
53576         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53577         * lib/md4.c (md4_read_ctx): Likewise.
53578         * lib/sha1.c (sha1_read_ctx): Likewise.
53579
53580 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53581
53582         * tests/test-sha1.c: New file, based on test-md5.c.
53583
53584         * modules/crypto/sha1-tests: New file.
53585
53586 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53587
53588         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53589
53590 2008-01-31  Jim Meyering  <meyering@redhat.com>
53591
53592         Prefer "sizeof v" over the equivalent "4".
53593         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53594         * lib/md5.c (set_uint32): Likewise.
53595         * lib/sha1.c (set_uint32): Likewise.
53596
53597 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53598
53599         * lib/sha1.c (set_uint32): Mark function as static.
53600
53601 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53602
53603         md2: clarify comments to say that alignment is not required.
53604         * lib/md2.h: Remove warning about alignment in comment.
53605         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53606         never been required.
53607
53608 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53609
53610         md4: adapt alignment constraint fix from sha1.
53611         * lib/md4.c (set_uint32): New function, from sha1.c
53612         (md4_read_ctx): Use it.
53613         (md4_finish_ctx): Doc fix.
53614         * lib/md4.h: Doc fix.
53615
53616 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53617
53618         md5: adapt alignment constraint fix from sha1.
53619         * lib/md5.c (set_uint32): New function, from sha1.c
53620         (md5_read_ctx): Use it.
53621         (md5_finish_ctx): Doc fix.
53622         * lib/md5.h: Doc fix.
53623
53624 2008-01-30  Peter Palfrader  <weasel@debian.org>
53625
53626         sha1: remove the result buffer alignment constraint
53627         * lib/sha1.c (set_uint32): New function.
53628         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53629         constraint.
53630         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53631         * lib/sha1.h: Likewise.
53632
53633 2008-01-30  Andreas Schwab  <schwab@suse.de>
53634             Bruno Haible  <bruno@clisp.org>
53635
53636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53637         correct definition of LDBL_MIN_EXP.
53638
53639 2008-01-30  Karl Berry  <karl@gnu.org>
53640
53641         * config/srclist-update: try to preserve x bit on updates.
53642         * config/srclistvars.sh: update for karl.
53643
53644 2008-01-29  Jim Meyering  <meyering@redhat.com>
53645
53646         vasnprintf.c: Avoid warning about unused label
53647         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53648         "overflow" label definition and associated code with the
53649         same cpp condition that guards the sole use of that label.
53650
53651 2008-01-26  Bruno Haible  <bruno@clisp.org>
53652
53653         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53654         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53655         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53656         * lib/isnanl-nolibm.h (isnanl): Likewise.
53657         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53658
53659 2008-01-26  Bruno Haible  <bruno@clisp.org>
53660
53661         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53662         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53663
53664 2008-01-26  Bruno Haible  <bruno@clisp.org>
53665
53666         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53667         GCC >= 4.0 built-in.
53668         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53669
53670 2008-01-26  Bruno Haible  <bruno@clisp.org>
53671
53672         Rename isnan, applicable to 'double' only, to isnand.
53673         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53674         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53675         (configure.ac): Update.
53676         (Include): Replace "isnan.h" with "isnand.h".
53677         * m4/isnand.m4: Renamed from m4/isnan.m4.
53678         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53679         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53680         instead of isnan.c.
53681         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53682         instead of HAVE_ISNAN_IN_LIBC.
53683         (isnand): Renamed from isnan.
53684         * lib/isnand.c: New file.
53685         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53686         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53687         (Makefile.am): Update.
53688         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53689         Include isnand.h instead of isnan.h.
53690         (main): Test isnand instead of isnan.
53691         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53692         isnan-nolibm.
53693         * modules/frexp (Depends-on): Likewise.
53694         * modules/frexp-tests (Depends-on): Likewise.
53695         * modules/frexp-nolibm (Depends-on): Likewise.
53696         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53697         * modules/isfinite (Depends-on): Likewise.
53698         * modules/round-tests (Depends-on): Likewise.
53699         * modules/signbit (Depends-on): Likewise.
53700         * modules/signbit-tests (Depends-on): Likewise.
53701         * modules/snprintf-posix (Depends-on): Likewise.
53702         * modules/sprintf-posix (Depends-on): Likewise.
53703         * modules/trunc-tests (Depends-on): Likewise.
53704         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53707         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53709         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53711         * modules/vasnprintf-posix (Depends-on): Likewise.
53712         * modules/vasprintf-posix (Depends-on): Likewise.
53713         * modules/vfprintf-posix (Depends-on): Likewise.
53714         * modules/vsnprintf-posix (Depends-on): Likewise.
53715         * modules/vsprintf-posix (Depends-on): Likewise.
53716         * lib/frexp.c: Include isnand.h instead of isnan.h.
53717         (ISNAN): Set to isnand instead of isnan.
53718         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53719         (gl_isfinited): Use isnand instead of isnan.
53720         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53721         (gl_signbitd): Use isnand instead of isnan.
53722         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53723         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53724         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53725         (main): Use isnand instead of isnan.
53726         * tests/test-round1.c: Include isnand.h.
53727         (main): Use isnand instead of isnan.
53728         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53729         (ISNAN): Set to isnand instead of isnan.
53730         * tests/test-trunc1.c: Include isnand.h.
53731         (main): Use isnand instead of isnan.
53732         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53733         (equal): Use isnand instead of isnan.
53734         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53735         isnand-nolibm.
53736         * NEWS: Mention the change.
53737
53738 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53739             Bruno Haible  <bruno@clisp.org>
53740
53741         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53742         the GCC builtins for signbits are present and set
53743         REPLACE_SIGNBIT_USING_GCC if so.
53744         * lib/math.in.h (signbit): Define using GCC builtins if
53745         REPLACE_SIGNBIT_USING_GCC is set.
53746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53747         REPLACE_SIGNBIT_USING_GCC.
53748         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53749
53750 2008-01-25  Jim Meyering  <meyering@redhat.com>
53751
53752         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53753         * lib/poll.c: Include <config.h>, not "config.h".
53754         * tests/test-getaddrinfo.c: Likewise.
53755
53756 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53757
53758         * modules/sockets-tests: New file.
53759
53760 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53761
53762         * modules/sockets: New module, can be used to call WSA_Startup and
53763         WSA_Cleanup when needed.
53764
53765         * lib/sockets.h, lib/sockets.c: New files.
53766
53767         * m4/sockets.m4: New file.
53768
53769         * tests/test-sockets.c: New file.
53770
53771 2008-01-19  Bruno Haible  <bruno@clisp.org>
53772
53773         * doc/posix-headers: Renamed from doc/headers.
53774         * doc/posix-functions: Renamed from doc/functions.
53775         * doc/gnulib.texi: Update.
53776
53777 2008-01-19  Bruno Haible  <bruno@clisp.org>
53778
53779         * doc/glibc-functions/strcasestr.texi: Include contents of
53780         doc/functions/strcasestr.texi, fixing the list of platforms.
53781         * doc/functions/strcasestr.texi: Remove file.
53782
53783 2008-01-19  Bruno Haible  <bruno@clisp.org>
53784
53785         * doc/glibc-functions/memmem.texi: Include contents of
53786         doc/functions/memmem.texi.
53787         * doc/functions/memmem.texi: Remove file.
53788
53789 2008-01-18  Bruno Haible  <bruno@clisp.org>
53790
53791         * doc/glibc-functions/*.texi: New files.
53792         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53793         to use the new files.
53794
53795 2008-01-17  Bruno Haible  <bruno@clisp.org>
53796
53797         * tests/test-gethostname.c (main): Fix printf statement.
53798
53799 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53800
53801         * modules/gethostname-tests: New file.
53802
53803         * tests/test-gethostname.c: New file.
53804
53805 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53806
53807         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53808         used by the UNAME case.  Reported by Bruno Haible
53809         <bruno@clisp.org>.
53810
53811 2008-01-17  Eric Blake  <ebb9@byu.net>
53812
53813         Convert c-strcasestr to be more efficient.
53814         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53815         (Depends-on): Add c-strcase, remove malloca, strnlen.
53816         * tests/test-c-strcasestr.c (main): Enhance test.
53817         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53818
53819 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53820
53821         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53822         Use it in creating po/Makevars.
53823
53824 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53825
53826         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53827         Applications that requires it should initialize libgcrypt
53828         manually.
53829
53830 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53831
53832         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53833
53834 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         Fix problem with getdate on mingw32 reported by Simon Josefsson
53837         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53838         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53839         tzname", when deciding whether to declare tzname.
53840         * lib/strftime.c (tzname): Likewise.
53841
53842 2008-01-15  Bruno Haible  <bruno@clisp.org>
53843
53844         Work around a MacOS X 10.5 bug in frexpl().
53845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53846         * doc/functions/frexpl.texi: Document the bug.
53847         Reported by Elias Pipping <pipping@gentoo.org>.
53848
53849 2008-01-14  Eric Blake  <ebb9@byu.net>
53850
53851         Touch up previous patch.
53852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53853         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53854
53855         Convert strcasestr module to use Two-Way algorithm.
53856         * modules/strcasestr-simple: New module, based on the old
53857         strcasestr, but with Two-Way rather than KMP.
53858         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53859         * lib/string.in.h (rpl_strcasestr): Declare.
53860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53861         performance.
53862         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53863         * modules/string (Makefile.am): Support strcasestr.
53864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53865         * modules/strcasestr-tests (Depends-on): Check for alarm.
53866         * tests/test-strcasestr.c: Augment test.
53867         * lib/str-two-way.h: Clean up stray macro.
53868         * NEWS: Document new module.
53869         * MODULES.html.sh (string handling): Likewise.
53870         * doc/functions/strcasestr.texi: New file.
53871         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53872         here, since it is not a POSIX function.
53873
53874 2008-01-14  Colin Watson  <cjwatson@debian.org>
53875             Bruno Haible  <bruno@clisp.org>
53876
53877         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53878         works fine; if not, set REPLACE_STRSIGNAL.
53879         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53881         REPLACE_STRSIGNAL.
53882         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53883         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53884         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53885
53886 2008-01-14  Bruno Haible  <bruno@clisp.org>
53887
53888         * modules/strsignal (Include): Change to <string.h>.
53889
53890 2008-01-14  Colin Watson  <cjwatson@debian.org>
53891
53892         * modules/argp (Notice): Add a notice recommending to change
53893         XGETTEXT_OPTIONS.
53894         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53895
53896 2008-01-13  Colin Watson  <cjwatson@debian.org>
53897
53898         * modules/strsignal-tests: New file.
53899         * tests/test-strsignal.c: New file.
53900
53901         * lib/strsignal.c: New file, from glibc with modifications.
53902         * lib/siglist.h: New file, from glibc with modifications.
53903         * lib/string.in.h (strsignal): New declaration.
53904         * m4/strsignal.m4: New file.
53905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53906         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53907         * modules/strsignal: New file.
53908         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53909         HAVE_DECL_STRSIGNAL.
53910
53911 2008-01-13  Bruno Haible  <bruno@clisp.org>
53912
53913         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53914         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53915         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53916         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53917
53918 2008-01-13  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53921         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53922         * lib/argp.h (__attribute__): Likewise.
53923         * lib/c-stack.c (__attribute__): Likewise.
53924         * lib/error.h (__attribute__): Likewise.
53925         * lib/fts.c (__attribute__): Likewise.
53926         * lib/openat.h (__attribute__): Likewise.
53927         * lib/stdio.in.h (__attribute__): Likewise.
53928         * lib/string.in.h (__attribute__): Likewise.
53929         * lib/utimens.c (__attribute__): Likewise.
53930         * lib/vasnprintf.h (__attribute__): Likewise.
53931         * lib/xalloc.h (__attribute__): Likewise.
53932         * lib/xprintf.h (__attribute__): Likewise.
53933         * lib/xstrtol.h (__attribute__): Likewise.
53934         * lib/xvasprintf.h (__attribute__): Likewise.
53935
53936 2008-01-12  Bruno Haible  <bruno@clisp.org>
53937
53938         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53939         * doc/glibc-headers/a.out.texi: New file.
53940         * doc/glibc-headers/aliases.texi: New file.
53941         * doc/glibc-headers/alloca.texi: New file.
53942         * doc/glibc-headers/ar.texi: New file.
53943         * doc/glibc-headers/argp.texi: New file.
53944         * doc/glibc-headers/argz.texi: New file.
53945         * doc/glibc-headers/byteswap.texi: New file.
53946         * doc/glibc-headers/crypt.texi: New file.
53947         * doc/glibc-headers/endian.texi: New file.
53948         * doc/glibc-headers/envz.texi: New file.
53949         * doc/glibc-headers/err.texi: New file.
53950         * doc/glibc-headers/error.texi: New file.
53951         * doc/glibc-headers/execinfo.texi: New file.
53952         * doc/glibc-headers/fpu_control.texi: New file.
53953         * doc/glibc-headers/fstab.texi: New file.
53954         * doc/glibc-headers/fts.texi: New file.
53955         * doc/glibc-headers/getopt.texi: New file.
53956         * doc/glibc-headers/ieee754.texi: New file.
53957         * doc/glibc-headers/ifaddrs.texi: New file.
53958         * doc/glibc-headers/libintl.texi: New file.
53959         * doc/glibc-headers/mcheck.texi: New file.
53960         * doc/glibc-headers/mntent.texi: New file.
53961         * doc/glibc-headers/obstack.texi: New file.
53962         * doc/glibc-headers/paths.texi: New file.
53963         * doc/glibc-headers/printf.texi: New file.
53964         * doc/glibc-headers/pty.texi: New file.
53965         * doc/glibc-headers/resolv.texi: New file.
53966         * doc/glibc-headers/shadow.texi: New file.
53967         * doc/glibc-headers/sysexits.texi: New file.
53968         * doc/glibc-headers/ttyent.texi: New file.
53969
53970 2008-01-12  Jim Meyering  <meyering@redhat.com>
53971
53972         announce-gen: emit Gnulib's git-based version string.
53973         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53974         New option --gnulib-version=V, where V is expected to be
53975         the output of running git describe in the gnulib directory.
53976         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53977         not useful, and plan to stop publishing an xdelta file with each
53978         coreutils release.
53979
53980         * build-aux/announce-gen: Also check for lzma-compressed files.
53981
53982 2008-01-11  Bruno Haible  <bruno@clisp.org>
53983
53984         * tests/test-memmem.c (main): Increase maximum allowed time.
53985         * tests/test-strstr.c (main): Likewise.
53986
53987 2008-01-11  Bruno Haible  <bruno@clisp.org>
53988
53989         * doc/functions/memmem.texi: Add more precisions about platforms.
53990         * doc/functions/strstr.texi: Likewise.
53991
53992 2008-01-10  Eric Blake  <ebb9@byu.net>
53993
53994         * m4/strstr.m4: Delete cruft from copy-n-paste.
53995         Reported by Bruno Haible.
53996
53997 2008-01-10  Bruno Haible  <bruno@clisp.org>
53998
53999         Make c-strstr rely on strstr.
54000         * lib/c-strstr.c: Don't include str-kmp.h.
54001         (c_strstr): Define in terms of strstr.
54002         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54003         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54004
54005 2008-01-10  Bruno Haible  <bruno@clisp.org>
54006
54007         * doc/gnulib.texi (String Functions in C Locale): New section.
54008         * doc/c-ctype.texi: New file.
54009         * doc/c-strcase.texi: New file.
54010         * doc/c-strcaseeq.texi: New file.
54011         * doc/c-strcasestr.texi: New file.
54012         * doc/c-strstr.texi: New file.
54013         * doc/c-strtod.texi: New file.
54014         * doc/c-strtold.texi: New file.
54015
54016 2008-01-10  Eric Blake  <ebb9@byu.net>
54017
54018         * lib/relocatable.h: Fix a comment.
54019
54020 2008-01-10  Eric Blake  <ebb9@byu.net>
54021
54022         Share two-way algorithm.
54023         * lib/str-two-way.h: New file, merged from...
54024         * lib/memmem.c: ...here...
54025         * lib/strstr.c: ...and here.
54026         * modules/memmem (Files): Use it.
54027         * modules/strstr (Files): Likewise.
54028
54029         Avoid quadratic strstr implementations.
54030         * lib/strstr.c: New file.
54031         * m4/strstr.m4: Likewise.
54032         * modules/strstr: Likewise.
54033         * modules/strstr-tests: Likewise.
54034         * tests/test-strstr.c: Likewise.
54035         * lib/string.in.h (rpl_strstr): Declare.
54036         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54038         * modules/string (Makefile.am): Likewise.
54039         * MODULES.html.sh (string handling): Mention new module.
54040         * doc/functions/strstr.texi (strstr): Document the bug.
54041
54042 2008-01-10  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/relocatable.h (relocate): State whether result is freshly
54045         allocated or not.
54046         * lib/relocatable.c (relocate): Return a freshly allocated string
54047         instead of a pointer to a privately held string.
54048         Reported by Sylvain Beucler <beuc@gnu.org>.
54049
54050 2008-01-10  Colin Watson  <cjwatson@debian.org>
54051
54052         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54053         s/S_ISNLK/S_ISLNK/.
54054
54055 2008-01-09  Bruno Haible  <bruno@clisp.org>
54056
54057         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54058         and other files.
54059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54060         if it's only a guess.
54061         * modules/memmem: Simplify by depending on memmem-simple.
54062
54063 2008-01-09  Bruno Haible  <bruno@clisp.org>
54064
54065         Work around OpenBSD 4.0 tdelete() bug.
54066         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54067         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54068         macros and don't redefine the enum values.
54069         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54070         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54071         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54072
54073 2008-01-09  Bruno Haible  <bruno@clisp.org>
54074
54075         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54076         (main): Don't perform the tests if setlocale did not install a UTF-8
54077         locale. Needed on OpenBSD 4.0.
54078         * modules/wcwidth-tests (Depends-on): Add localcharset.
54079
54080 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54083         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54084         * NEWS: announce this.
54085         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54086
54087 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54088         and Eric Blake  <ebb9@byu.net>
54089
54090         Add memmem-simple module.
54091         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54092         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54093         * modules/memmem-simple: New file.
54094         * modules/memmem (Description): Tweak.
54095         * MODULES.html.sh (string handling): Mention new module.
54096         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54097         addressed by memmem-simple.
54098         * NEWS: Document the difference.
54099
54100 2008-01-09  Eric Blake  <ebb9@byu.net>
54101
54102         Give gcc some memmem optimization hints.
54103         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54104         (strcasestr): Declare as pure.
54105         * modules/memmem (Maintainer): Claim my implementation.
54106
54107 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54108
54109         Support AIX 6.1 and higher.
54110         * build-aux/config.libpath: Likewise.
54111         * build-aux/config.rpath: Likewise.
54112
54113 2008-01-08  Jim Meyering  <meyering@redhat.com>
54114             Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54117         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54118         Reported by Peter Fales in
54119         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54120
54121 2008-01-08  Bruno Haible  <bruno@clisp.org>
54122
54123         * modules/unictype/category-of (Depends-on): Add
54124         unictype/category-none.
54125         * modules/unictype/category-and-tests (Depends-on): Add
54126         unictype/category-{L,N,Lu,Nd}.
54127         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54128         * modules/unictype/category-or-tests (Depends-on): Add
54129         unictype/category-{L,N}.
54130         * modules/unictype/category-name-tests (Depends-on): Add
54131         unictype/category-{Z,Nl}.
54132         Reported by Simon Josefsson.
54133
54134 2008-01-08  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54137         convention better.
54138         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54139         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54140         Reported by Peter Miller <millerp@canb.auug.org.au>.
54141
54142 2008-01-08  Eric Blake  <ebb9@byu.net>
54143
54144         Rewrite memmem to guarantee linear complexity without malloc.
54145         * lib/memmem.c (memmem): Use Two-Way rather than
54146         Knuth-Morris-Pratt, to allow O(1) space usage.
54147         (critical_factorization, two_way_short_needle)
54148         (two_way_long_needle): New functions.
54149         (knuth_morris_pratt): Delete.
54150         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54151         Add stdint.
54152         * tests/test-memmem.c (main): Add tests for periodic needle and
54153         sublinear performance.
54154         * doc/functions/memmem.texi (memmem): Document other deficiencies
54155         in cygwin and older glibc.
54156
54157 2008-01-08  Bruno Haible  <bruno@clisp.org>
54158
54159         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54160         augmentation.
54161
54162 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54163
54164         Add a configure time option: --disable-acl.
54165         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54166         AC_ARG_ENABLE(acl).
54167
54168 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54169
54170         * tests/test-localename.c: Don't include obsolete "setenv.h".
54171
54172         * modules/localename-tests (Depends-on): Need unsetenv.
54173
54174 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54175
54176         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54177
54178 2008-01-06  Colin Watson  <cjwatson@debian.org>
54179
54180         * users.txt: Add man-db.
54181
54182 2008-01-07  Bruno Haible  <bruno@clisp.org>
54183
54184         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54185         previous section name.
54186
54187 2008-01-07  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/progname.c (set_program_name): Don't strip off a leading
54190         "lt-" prefix outside a .libs directory.
54191         Suggested by Paul Eggert.
54192
54193 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54194             Bruno Haible  <bruno@clisp.org>
54195
54196         Improve memory cleanup in 'relocatable' module.
54197         * lib/relocatable.h (compute_curr_prefix): Change return type to
54198         'char *'.
54199         * lib/relocatable.c (compute_curr_prefix): Change return type to
54200         'char *'. Free curr_installdir after use.
54201         (relocate): Free curr_prefix_better after use.
54202         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54203
54204 2008-01-01  Bruno Haible  <bruno@clisp.org>
54205
54206         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54207         failure on older glibc systems.
54208         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54209
54210 2008-01-05  Eric Blake  <ebb9@byu.net>
54211
54212         Avoid quadratic system memmem.
54213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54214         Reported by Ralf Wildenhues.
54215
54216         Fix memmem test for mingw.
54217         * modules/memmem-tests (configure.ac): Check for alarm.
54218         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54219         it.
54220         * doc/functions/memmem.texi: New file.
54221         * doc/gnulib.texi (Function Substitutes): Add memmem.
54222         Reported by Bruno Haible.
54223
54224 2008-01-04  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54227         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54228         gl_HEADER_STRING_H_DEFAULTS.
54229
54230 2008-01-04  Eric Blake  <ebb9@byu.net>
54231
54232         Shorten duration of memmem test.
54233         * tests/test-memmem.c (main): Use alarm to declare failure if test
54234         is taking too long.
54235         Reported by Ralf Wildenhues.
54236
54237 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54238
54239         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54240         string, needed by strerror.
54241
54242 2008-01-03  Colin Watson  <cjwatson@debian.org>
54243             Bruno Haible  <bruno@clisp.org>
54244
54245         * doc/gnulib-tool.texi (Localization): New section.
54246
54247 2008-01-02  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54250         variables to 'unsigned char *' type.
54251         Reported by Paul Eggert.
54252
54253 2008-01-02  Jim Meyering  <jim@meyering.net>
54254
54255         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54256
54257 2007-12-31  Jim Meyering  <jim@meyering.net>
54258
54259         Avoid use of private FTS type name.
54260         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54261
54262 2007-12-30  Karl Berry  <karl@gnu.org>
54263
54264         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54265         work around defect in Texinfo and/or the standalone Info browser.
54266
54267 2007-12-30  Bruno Haible  <bruno@clisp.org>
54268
54269         Unify 5 copies of the KMP code.
54270         * lib/str-kmp.h: New file.
54271         * lib/c-strcasestr.c: Include str-kmp.h.
54272         (knuth_morris_pratt): Remove function.
54273         (c_strcasestr): Update.
54274         * lib/c-strstr.c: Include str-kmp.h.
54275         (knuth_morris_pratt): Remove function.
54276         (c_strcasestr): Update.
54277         * lib/mbscasestr.c: Include str-kmp.h.
54278         (knuth_morris_pratt_unibyte): Remove function.
54279         * lib/mbsstr.c: Include str-kmp.h.
54280         (knuth_morris_pratt_unibyte): Remove function.
54281         * lib/strcasestr.c: Include str-kmp.h.
54282         (knuth_morris_pratt): Remove function.
54283         (strcasestr): Update.
54284         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54285         * modules/c-strstr (Files): Likewise.
54286         * modules/mbscasestr (Files): Likewise.
54287         * modules/mbsstr (Files): Likewise.
54288         * modules/strcasestr (Files): Likewise.
54289         Suggested by Paul Eggert.
54290
54291 2007-12-30  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54294         defined.
54295
54296 2007-12-30  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/xmalloca.h: Include xalloc.h.
54299         (xnmalloca): New macro.
54300
54301 2007-12-30  Bruno Haible  <bruno@clisp.org>
54302
54303         * lib/malloca.h (nmalloca): New macro.
54304         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54305         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54306         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54307         knuth_morris_pratt_multibyte): Likewise.
54308         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54309         knuth_morris_pratt_multibyte): Likewise.
54310         * lib/memmem.c (knuth_morris_pratt): Likewise.
54311         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54312
54313 2007-12-25  Bruno Haible  <bruno@clisp.org>
54314
54315         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54316         * lib/glob.c: Don't include openat.h.
54317         (link_exists2_p): Add back the code that deals with the
54318         !GLOB_ALTDIRFUNC case.
54319         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54320         let it do the filename concatenation.
54321         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54322         * modules/glob (Depends-on): Remove openat.
54323
54324 2007-12-31  Bruno Haible  <bruno@clisp.org>
54325
54326         * modules/dirfd (License): Change to LGPLv2+.
54327         Approved by Jim Meyering.
54328
54329 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54330
54331         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54332         when multiplying M by sizeof (size_t).
54333
54334 2007-12-10  Martin Lambers  <marlam@marlam.de>
54335
54336         Override getpagesize on mingw.
54337         * lib/getpagesize.c: New file.
54338         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54339         * modules/getpagesize (Files): Add lib/getpagesize.c.
54340         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54342         REPLACE_GETPAGESIZE.
54343         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54344
54345 2007-12-25  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/localcharset (Notice): New field.
54348         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54349         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54350
54351 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54352             Bruno Haible  <bruno@clisp.org>
54353
54354         Avoid using the syntax symbol() in formatted documentation.
54355         * MODULES.html.sh (func_module): When replacing symbol() with a
54356         hyperlink, remove the parentheses. Show an error if some remain.
54357         Recognize and render the '...' syntax.
54358         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54359         Rework. Add paragraph about GCC's inlining.
54360         * doc/alloca.texi: Likewise.
54361         * doc/error.texi: Remove parentheses from symbol reference.
54362         * doc/gnulib-intro.texi: Likewise.
54363         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54364         * modules/fnmatch (Description): Reword to say "the ... function".
54365         * modules/full-read (Description): Likewise.
54366         * modules/full-write (Description): Likewise.
54367         * modules/safe-read (Description): Likewise.
54368         * modules/safe-write (Description): Likewise.
54369         * modules/strchrnul (Description): Likewise.
54370         * modules/trim (Description): Likewise.
54371         * modules/error (Description): Remove parentheses from symbol
54372         references.
54373         * modules/verror (Description): Likewise.
54374         Reported by Karl Berry.
54375
54376 2007-12-25  Bruno Haible  <bruno@clisp.org>
54377
54378         Fixup after 2007-10-16 commit.
54379         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54380
54381 2007-12-24  Bruno Haible  <bruno@clisp.org>
54382
54383         Make --enable-relocatable work with DESTDIR.
54384         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54385         to compute installdir from destprog.
54386         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54387         also set the RELOC_DESTDIR variable.
54388         Reported by Đ›ĐµĐ²Đ°ÑˆĐµĐ² Đ˜Đ²Đ°Đ½ <octagram@bluebottle.com>.
54389
54390 2007-12-24  Bruno Haible  <bruno@clisp.org>
54391
54392         Fix link error due to xalloc_die().
54393         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54394         of xreadlink.
54395         * lib/relocwrapper.c: Update comments.
54396         * build-aux/install-reloc: Remove xreadlink.c from file list.
54397         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54398         xreadlink.c.
54399         Reported by Đ›ĐµĐ²Đ°ÑˆĐµĐ² Đ˜Đ²Đ°Đ½ <octagram@bluebottle.com>.
54400
54401 2007-12-24  Bruno Haible  <bruno@clisp.org>
54402
54403         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54404         * lib/setenv.h: Remove file.
54405         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54406         lib/setenv.h.
54407         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54408         (Depends-on): Add stdlib.
54409         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54410         gl_FUNC_UNSETENV.
54411         (Include): Replace setenv.h with <stdlib.h>.
54412         * modules/unsetenv: New file.
54413         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54414         * lib/unsetenv.c: Include <stdlib.h> first.
54415         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54416         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54417         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54418         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54419         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54420         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54422         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54423         * doc/functions/unsetenv.texi: Update.
54424         * modules/xsetenv (Depends-on): Add unsetenv.
54425         * modules/getdate (Depends-on): Likewise.
54426         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54427         * lib/xsetenv.c: Don't include setenv.h.
54428         * lib/getdate.y: Likewise.
54429         * lib/relocwrapper.c: Likewise.
54430         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54431         (Depends-on): Add stdlib.
54432         * NEWS: Mention the changes.
54433         Reported by Đ›ĐµĐ²Đ°ÑˆĐµĐ² Đ˜Đ²Đ°Đ½ <octagram@bluebottle.com>.
54434
54435 2007-12-23  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54438         indentation.
54439
54440 2007-12-23  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/c-strcasestr.c: Add more comments.
54443         * lib/c-strstr.c: Likewise.
54444         * lib/mbscasestr.c: Likewise.
54445         * lib/mbsstr.c: Likewise.
54446         * lib/strcasestr.c: Likewise.
54447         * lib/memmem.c: Likewise.
54448
54449 2007-12-23  Bruno Haible  <bruno@clisp.org>
54450
54451         * tests/test-memmem.c: Include <string.h> first.
54452
54453 2007-12-22  Bruno Haible  <bruno@clisp.org>
54454
54455         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54456         the contents of $testsbase.
54457         Reported by Ralf Wildenhues.
54458
54459 2007-12-22  Bruno Haible  <bruno@clisp.org>
54460
54461         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54462         two variables local_ldadd_before, local_ldadd_last.
54463
54464 2007-12-20  Eric Blake  <ebb9@byu.net>
54465
54466         Work around circular library issue when cross-compiling.
54467         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54468         that progname.o does not need to pull in rpl_memcmp.
54469
54470 2007-12-19  Eric Blake  <ebb9@byu.net>
54471
54472         Fix memmem to avoid O(n^2) worst-case complexity.
54473         * lib/memmem.c (knuth_morris_pratt): New function.
54474         (memmem): Use it if first few naive iterations fail.
54475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54476         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54477         * modules/memchr (License): Likewise.
54478         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54479         malloca.
54480         * tests/test-memmem.c: Rewrite, borrowing ideas from
54481         test-mbsstr1.c; the old version wouldn't even compile!
54482         * modules/memmem-tests: New file.
54483         * lib/string.in.h (rpl_memmem): Add declaration.
54484         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54486         REPLACE_MEMMEM.
54487
54488 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54491         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54492         before any system include files, and undef after them all.  This
54493         should fix a problem on VMS reported by John E. Malmberg in
54494         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54495
54496 2007-12-17  Eric Blake  <ebb9@byu.net>
54497
54498         Revert addition of verify, for BSD/OS.
54499         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54500         can't handle large files, for the sake of obsolete platforms.
54501         * modules/fseeko (Depends-on): Remove verify.
54502         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54503         * doc/functions/ftello.texi (ftello): Likewise.
54504         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54505         Reported by Larry Jones.
54506
54507 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54508
54509         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54510         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54511
54512 2007-12-17  Jim Meyering  <meyering@redhat.com>
54513
54514         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54515         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54516         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54517         * modules/getcwd (Depends-on): Add openat.
54518         Reported by Petr Salinger.
54519
54520 2007-12-17  Bruno Haible  <bruno@clisp.org>
54521
54522         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54523         avoid a segmentation fault of the configure test on x86_64 systems.
54524
54525 2007-12-15  Jim Meyering  <meyering@redhat.com>
54526
54527         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54528
54529 2007-12-13  Eric Blake  <ebb9@byu.net>
54530
54531         Another fseek test.
54532         * tests/test-fseek.c (main): Also test ungetc handling.
54533         * tests/test-fseeko.c (main): Likewise.
54534         * modules/fseeko (Depends-on): Add verify.
54535         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54536         large.
54537         Reported by Larry Jones.
54538
54539         Fix fseeko on mingw.
54540         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54541         seek.
54542
54543         Beef up fseek tests.
54544         * tests/test-fseek.c (main): Also test eof handling.
54545         * tests/test-fseeko.c (main): Likewise.
54546         Reported by Larry Jones.
54547
54548 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54549
54550         Fix fseeko on BSD-based platforms.
54551         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54552         successful seek.
54553
54554 2007-12-12  Eric Blake  <ebb9@byu.net>
54555
54556         Allow circular dependency of separate libtests.a
54557         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54558         when use_libtests.
54559
54560 2007-12-11  Eric Blake  <ebb9@byu.net>
54561
54562         Fix bug with -0.0L in previous patch.
54563         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54564         * tests/test-isnan.c (main): Also test on zeroes.
54565         * tests/test-isnanf.c (main): Likewise.
54566         * tests/test-isnanl.h (main): Likewise.
54567
54568         Detect pseudo-denormals on x86 even when cross-compiling.
54569         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54570         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54571         invalid bit patterns that happen to satisfy ==.
54572
54573         Avoid link failures with separate libtests.a.
54574         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54575         last, to satisfy circular dependencies.
54576
54577 2007-12-11  Eric Blake  <ebb9@byu.net>
54578         and Bruno Haible  <bruno@clisp.org>
54579
54580         Fix OpenBSD 4.0 <float.h> handling of long double.
54581         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54582         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54583         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54584
54585 2007-12-11  Jim Meyering  <meyering@redhat.com>
54586
54587         * users.txt: Add libvirt.
54588
54589         Support versions of autoconf prior to 2.59c.
54590         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54591         if it is not already defined.
54592
54593 2007-12-09  Bruno Haible  <bruno@clisp.org>
54594
54595         Let 'gnulib-tool --import' collect sources needed for the tests in
54596         tests/ rather than in lib/.
54597         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54598         argument. If true, add rules to generate libtests.a, and put libtests.a
54599         into $(LDADD). Consider source files in subdirectories and set
54600         uses_subdirs.
54601         (func_emit_initmacro_start, func_emit_initmacro_end,
54602         func_emit_initmacro_done): Pass all arguments explicitly.
54603         (func_import): Determine two module lists main_modules,
54604         testsrelated_modules. Determine use_libtests. Determine two variables
54605         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54606         instead of just sed_transform_lib_file. Determine two variables
54607         main_files and testsrelated_files. Compute 'files' as the union of
54608         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54609         func_add_or_update. In the generated gnulib-comp.m4, collect the
54610         object files for tests/ in different variables than those for lib/.
54611         Substitute LIBTESTS_LIBDEPS.
54612         (func_create_testdir): Combine the uses_subdirs results from
54613         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54614
54615 2007-12-09  Bruno Haible  <bruno@clisp.org>
54616
54617         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54618         the build-aux directory.
54619
54620 2007-12-09  Bruno Haible  <bruno@clisp.org>
54621
54622         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54623         introduced on 2006-09-09.
54624
54625 2007-12-07  Jim Meyering  <meyering@redhat.com>
54626
54627         Let these macros work also with autoconf-2.59.
54628         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54629         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54630         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54631
54632 2007-12-06  Jim Meyering  <meyering@redhat.com>
54633
54634         Avoid a configure-time syntax error in gl_FUNC_ACL.
54635         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54636         function in each branch, before testing the cache variable.
54637
54638 2007-12-04  Eric Blake  <ebb9@byu.net>
54639
54640         Make scripts executable.
54641         * build-aux/config.guess: Add execute permissions.
54642         * build-aux/config.sub: Likewise.
54643         * build-aux/gendocs.sh: Likewise.
54644
54645         Fix frexp on mingw.
54646         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54647         cross-compiling.
54648         * doc/functions/frexp.texi (frexp): Document the bug.
54649
54650         Make cygwin fseeko check more reliable.
54651         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54652         version numbers, rather than unrelated feature check.
54653         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54654         * doc/functions/ftello.texi (ftello): Likewise.
54655         Reported by Bruno Haible.
54656
54657         * m4/strerror.m4: Bump version number.
54658
54659 2007-12-03  Bruno Haible  <bruno@clisp.org>
54660
54661         * doc/functions/mprotect.texi: Mention the mingw problem.
54662
54663 2007-12-03  Eric Blake  <ebb9@byu.net>
54664
54665         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54666         REPLACE_STRERROR is initialized before this macro.
54667
54668 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54671         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54672         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54673         put -lsec in even for programs other than 'ls'.  This fixes a problem
54674         for gettext reported by Bruno Haible in
54675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54676         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54677         Add support for Solaris 10.  This isn't efficient, but should get the
54678         job done for now.
54679
54680 2007-12-03  James Youngman  <jay@gnu.org>
54681
54682         * doc/regexprops-generic.texi: change "an close-group" to "a
54683         close-group" and "illegal" to "not allowed".
54684
54685 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54686
54687         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54688         pr_byname.h. Needed for the rare case when the maintainer has done
54689         "make maintainer-clean" in the source directory and then attempts a
54690         build outside the source directory.
54691         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54692         scripts_byname.h.
54693
54694 2007-12-02  Martin Lambers <marlam@marlam.de>
54695             Bruno Haible  <bruno@clisp.org>
54696
54697         * lib/getpagesize.h: Remove file.
54698         * lib/unistd.in.h: Include declaration of getpagesize here.
54699         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54700         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54701         HAVE_SYS_PARAM_H.
54702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54703         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54704         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54705         (Depends-on): Add unistd.
54706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54707         (Include): Use <unistd.h> instead of getpagesize.h.
54708         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54709         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54710         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54711         gl_GETPAGESIZE invocation, already handled by module dependency.
54712         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54713
54714 2007-12-02  Bruno Haible  <bruno@clisp.org>
54715
54716         * modules/strings-tests: New file.
54717         * tests/test-strings.c: New file.
54718
54719         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54720         * lib/strings.in.h: New file.
54721         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54722         * m4/strings_h.m4: New file.
54723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54724         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54725         * modules/strings: New file.
54726         * modules/string (Makefile.am): Update.
54727         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54728         Reported by Karl Berry.
54729
54730 2007-12-01  Eric Blake  <ebb9@byu.net>
54731
54732         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54733         accomodate fix in cygwin 1.5.25.
54734
54735 2007-12-01  Jim Meyering  <meyering@redhat.com>
54736
54737         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54738         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54739         that would inhibit utf8-optimization of a regexp containing line-
54740         or buffer-anchors, e.g., `^', `$'.
54741
54742 2007-11-30  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54745         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54746         glthread_recursive_lock_init.
54747         * lib/lock.c (glthread_recursive_lock_init)
54748         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54749         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54750
54751 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         New function qset_acl, like set_acl but with syscall semantics.
54754         * lib/acl.h (qset_acl): New decl.
54755         * lib/acl.c (qset_acl): New function.
54756         (set_acl): Use new function.  Use more-consistent diagnostics.
54757
54758 2007-11-28  Jim Meyering  <meyering@redhat.com>
54759
54760         * modules/physmem (License): Change from GPL to LGPLv2+.
54761
54762 2007-11-26  Bruno Haible  <bruno@clisp.org>
54763
54764         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54765         'long double' type has excess precision.
54766         Reported by Jim Meyering in
54767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54768
54769 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54770
54771         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54772         Sync from <http://gnu.org/licenses>.
54773         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54774         with license text from same location.
54775         * doc/maintain.texi, doc/standards.texi:  Sync from
54776         <http://savannah.gnu.org/projects/gnustandards>.
54777
54778 2007-11-22  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
54779         and Jim Meyering  <meyering@redhat.com>
54780
54781         Adjust getdate' grammar to accept a slightly more regular language.
54782         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54783         Before, the former was rejected.
54784         * lib/getdate.y (digits_to_date_time): New function, factored
54785         out of ...
54786         (number): ...here.  Just call digits_to_date_time.
54787         (hybrid): New non-terminal to handle an <unsigned number,
54788         signed relative offset> sequence consistently.
54789
54790 2007-11-18  Jim Meyering  <meyering@redhat.com>
54791
54792         Pull my changes from coreutils:
54793         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54794         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54795         use of $gnulib_tool_option_extras, so that it's separated from the
54796         preceding argument.
54797
54798         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54799         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54800         parent destination directories before copying a file into place.
54801
54802 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54803
54804         bootstrap: work also with 4-argument variant of AC_INIT
54805         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54806
54807 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54808
54809         Port test-getaddrinfo to Solaris.
54810         Problem reported by Bruno Haible in
54811         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54812         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54813         explanation of setting 'hints'.
54814         Don't reject an implementation merely because it returns EAI_SERVICE.
54815         (EAI_SERVICE): Define to 0 if not defined.
54816
54817 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         The license of gnu-make and posix-shell is now "GPLed build tool".
54820         * modules/gnu-make (License): Likewise.
54821         * modules/posix-shell (License): Likewise.
54822
54823         New module posix-shell, for determining a POSIX shell
54824         or perhaps something that is close enough to a POSIX shell.
54825         * m4/posix-shell.m4: New file.
54826         * modules/posix-shell: New file.
54827
54828         * MODULES.html.sh: Mention new module.
54829
54830         New module gnu-make, for determining whether we're using GNU Make.
54831         * m4/gnu-make.m4: New file.
54832         * modules/gnu-make: New file.
54833         * MODULES.html.sh: Mention new module.
54834
54835 2007-11-14  Jim Meyering  <meyering@redhat.com>
54836
54837         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54838         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54839         use this macro to create a function _definition_.
54840         Remove useless "#undef ARGMATCH_DIE".
54841
54842 2007-11-14  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/config.charset: Update for OpenBSD 4.1.
54845         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54846
54847 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         Document 64-bit #if problems in stdint.texi.
54850         * doc/headers/stdint.texi (stdint.h): Mention problems with
54851         64-bit-#if, and how to work around them.
54852
54853         Don't insist on 'long long int' support in the preprocessor.  It
54854         breaks too many things.  For example, PRIdMAX still uses a 'long
54855         long int' format with the latest Sun compiler, even though
54856         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54857         preprocessor problem.  This causes the latest coreutils to dump
54858         core on Solaris 10 sparc with the Sun C compiler.
54859         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54860         the troublesome expressions at configure-time, not at #if-time.
54861         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54862         preprocessor.
54863         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54864         compile-time C checks, done at 'configure'-time.
54865         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54866         * modules/inttypes (Makefile): Substitute the new symbols that
54867         gl_INTTYPES_H now generates.
54868         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54869
54870 2007-11-12  Bruno Haible  <bruno@clisp.org>
54871
54872         Tests for Unicode character classification functions.
54873
54874         * modules/unictype/bidicategory-byname-tests: New file.
54875         * modules/unictype/bidicategory-name-tests: New file.
54876         * modules/unictype/bidicategory-of-tests: New file.
54877         * modules/unictype/bidicategory-test-tests: New file.
54878         * modules/unictype/block-list-tests: New file.
54879         * modules/unictype/block-of-tests: New file.
54880         * modules/unictype/block-test-tests: New file.
54881         * modules/unictype/category-C-tests: New file.
54882         * modules/unictype/category-Cc-tests: New file.
54883         * modules/unictype/category-Cf-tests: New file.
54884         * modules/unictype/category-Cn-tests: New file.
54885         * modules/unictype/category-Co-tests: New file.
54886         * modules/unictype/category-Cs-tests: New file.
54887         * modules/unictype/category-L-tests: New file.
54888         * modules/unictype/category-Ll-tests: New file.
54889         * modules/unictype/category-Lm-tests: New file.
54890         * modules/unictype/category-Lo-tests: New file.
54891         * modules/unictype/category-Lt-tests: New file.
54892         * modules/unictype/category-Lu-tests: New file.
54893         * modules/unictype/category-M-tests: New file.
54894         * modules/unictype/category-Mc-tests: New file.
54895         * modules/unictype/category-Me-tests: New file.
54896         * modules/unictype/category-Mn-tests: New file.
54897         * modules/unictype/category-N-tests: New file.
54898         * modules/unictype/category-Nd-tests: New file.
54899         * modules/unictype/category-Nl-tests: New file.
54900         * modules/unictype/category-No-tests: New file.
54901         * modules/unictype/category-P-tests: New file.
54902         * modules/unictype/category-Pc-tests: New file.
54903         * modules/unictype/category-Pd-tests: New file.
54904         * modules/unictype/category-Pe-tests: New file.
54905         * modules/unictype/category-Pf-tests: New file.
54906         * modules/unictype/category-Pi-tests: New file.
54907         * modules/unictype/category-Po-tests: New file.
54908         * modules/unictype/category-Ps-tests: New file.
54909         * modules/unictype/category-S-tests: New file.
54910         * modules/unictype/category-Sc-tests: New file.
54911         * modules/unictype/category-Sk-tests: New file.
54912         * modules/unictype/category-Sm-tests: New file.
54913         * modules/unictype/category-So-tests: New file.
54914         * modules/unictype/category-Z-tests: New file.
54915         * modules/unictype/category-Zl-tests: New file.
54916         * modules/unictype/category-Zp-tests: New file.
54917         * modules/unictype/category-Zs-tests: New file.
54918         * modules/unictype/category-and-not-tests: New file.
54919         * modules/unictype/category-and-tests: New file.
54920         * modules/unictype/category-byname-tests: New file.
54921         * modules/unictype/category-name-tests: New file.
54922         * modules/unictype/category-none-tests: New file.
54923         * modules/unictype/category-of-tests: New file.
54924         * modules/unictype/category-or-tests: New file.
54925         * modules/unictype/category-test-withtable-tests: New file.
54926         * modules/unictype/combining-class-tests: New file.
54927         * modules/unictype/ctype-alnum-tests: New file.
54928         * modules/unictype/ctype-alpha-tests: New file.
54929         * modules/unictype/ctype-blank-tests: New file.
54930         * modules/unictype/ctype-cntrl-tests: New file.
54931         * modules/unictype/ctype-digit-tests: New file.
54932         * modules/unictype/ctype-graph-tests: New file.
54933         * modules/unictype/ctype-lower-tests: New file.
54934         * modules/unictype/ctype-print-tests: New file.
54935         * modules/unictype/ctype-punct-tests: New file.
54936         * modules/unictype/ctype-space-tests: New file.
54937         * modules/unictype/ctype-upper-tests: New file.
54938         * modules/unictype/ctype-xdigit-tests: New file.
54939         * modules/unictype/decimal-digit-tests: New file.
54940         * modules/unictype/digit-tests: New file.
54941         * modules/unictype/mirror-tests: New file.
54942         * modules/unictype/numeric-tests: New file.
54943         * modules/unictype/property-alphabetic-tests: New file.
54944         * modules/unictype/property-ascii-hex-digit-tests: New file.
54945         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54946         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54947         * modules/unictype/property-bidi-block-separator-tests: New file.
54948         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54949         * modules/unictype/property-bidi-common-separator-tests: New file.
54950         * modules/unictype/property-bidi-control-tests: New file.
54951         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54952         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54953         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54954         * modules/unictype/property-bidi-european-digit-tests: New file.
54955         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54956         * modules/unictype/property-bidi-left-to-right-tests: New file.
54957         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54958         * modules/unictype/property-bidi-other-neutral-tests: New file.
54959         * modules/unictype/property-bidi-pdf-tests: New file.
54960         * modules/unictype/property-bidi-segment-separator-tests: New file.
54961         * modules/unictype/property-bidi-whitespace-tests: New file.
54962         * modules/unictype/property-byname-tests: New file.
54963         * modules/unictype/property-combining-tests: New file.
54964         * modules/unictype/property-composite-tests: New file.
54965         * modules/unictype/property-currency-symbol-tests: New file.
54966         * modules/unictype/property-dash-tests: New file.
54967         * modules/unictype/property-decimal-digit-tests: New file.
54968         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54969         * modules/unictype/property-deprecated-tests: New file.
54970         * modules/unictype/property-diacritic-tests: New file.
54971         * modules/unictype/property-extender-tests: New file.
54972         * modules/unictype/property-format-control-tests: New file.
54973         * modules/unictype/property-grapheme-base-tests: New file.
54974         * modules/unictype/property-grapheme-extend-tests: New file.
54975         * modules/unictype/property-grapheme-link-tests: New file.
54976         * modules/unictype/property-hex-digit-tests: New file.
54977         * modules/unictype/property-hyphen-tests: New file.
54978         * modules/unictype/property-id-continue-tests: New file.
54979         * modules/unictype/property-id-start-tests: New file.
54980         * modules/unictype/property-ideographic-tests: New file.
54981         * modules/unictype/property-ids-binary-operator-tests: New file.
54982         * modules/unictype/property-ids-trinary-operator-tests: New file.
54983         * modules/unictype/property-ignorable-control-tests: New file.
54984         * modules/unictype/property-iso-control-tests: New file.
54985         * modules/unictype/property-join-control-tests: New file.
54986         * modules/unictype/property-left-of-pair-tests: New file.
54987         * modules/unictype/property-line-separator-tests: New file.
54988         * modules/unictype/property-logical-order-exception-tests: New file.
54989         * modules/unictype/property-lowercase-tests: New file.
54990         * modules/unictype/property-math-tests: New file.
54991         * modules/unictype/property-non-break-tests: New file.
54992         * modules/unictype/property-not-a-character-tests: New file.
54993         * modules/unictype/property-numeric-tests: New file.
54994         * modules/unictype/property-other-alphabetic-tests: New file.
54995         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54996         * modules/unictype/property-other-grapheme-extend-tests: New file.
54997         * modules/unictype/property-other-id-continue-tests: New file.
54998         * modules/unictype/property-other-id-start-tests: New file.
54999         * modules/unictype/property-other-lowercase-tests: New file.
55000         * modules/unictype/property-other-math-tests: New file.
55001         * modules/unictype/property-other-uppercase-tests: New file.
55002         * modules/unictype/property-paired-punctuation-tests: New file.
55003         * modules/unictype/property-paragraph-separator-tests: New file.
55004         * modules/unictype/property-pattern-syntax-tests: New file.
55005         * modules/unictype/property-pattern-white-space-tests: New file.
55006         * modules/unictype/property-private-use-tests: New file.
55007         * modules/unictype/property-punctuation-tests: New file.
55008         * modules/unictype/property-quotation-mark-tests: New file.
55009         * modules/unictype/property-radical-tests: New file.
55010         * modules/unictype/property-sentence-terminal-tests: New file.
55011         * modules/unictype/property-soft-dotted-tests: New file.
55012         * modules/unictype/property-space-tests: New file.
55013         * modules/unictype/property-terminal-punctuation-tests: New file.
55014         * modules/unictype/property-test-tests: New file.
55015         * modules/unictype/property-titlecase-tests: New file.
55016         * modules/unictype/property-unassigned-code-value-tests: New file.
55017         * modules/unictype/property-unified-ideograph-tests: New file.
55018         * modules/unictype/property-uppercase-tests: New file.
55019         * modules/unictype/property-variation-selector-tests: New file.
55020         * modules/unictype/property-white-space-tests: New file.
55021         * modules/unictype/property-xid-continue-tests: New file.
55022         * modules/unictype/property-xid-start-tests: New file.
55023         * modules/unictype/property-zero-width-tests: New file.
55024         * modules/unictype/scripts-tests: New file.
55025         * modules/unictype/syntax-c-ident-tests: New file.
55026         * modules/unictype/syntax-c-whitespace-tests: New file.
55027         * modules/unictype/syntax-java-ident-tests: New file.
55028         * modules/unictype/syntax-java-whitespace-tests: New file.
55029         * tests/unictype/test-bidi_byname.c: New file.
55030         * tests/unictype/test-bidi_name.c: New file.
55031         * tests/unictype/test-bidi_of.c: New file.
55032         * tests/unictype/test-bidi_test.c: New file.
55033         * tests/unictype/test-block_list.c: New file.
55034         * tests/unictype/test-block_of.c: New file.
55035         * tests/unictype/test-block_test.c: New file.
55036         * tests/unictype/test-categ_and.c: New file.
55037         * tests/unictype/test-categ_and_not.c: New file.
55038         * tests/unictype/test-categ_byname.c: New file.
55039         * tests/unictype/test-categ_name.c: New file.
55040         * tests/unictype/test-categ_none.c: New file.
55041         * tests/unictype/test-categ_of.c: New file.
55042         * tests/unictype/test-categ_or.c: New file.
55043         * tests/unictype/test-categ_test_withtable.c: New file.
55044         * tests/unictype/test-combining.c: New file.
55045         * tests/unictype/test-decdigit.c: New file.
55046         * tests/unictype/test-digit.c: New file.
55047         * tests/unictype/test-mirror.c: New file.
55048         * tests/unictype/test-numeric.c: New file.
55049         * tests/unictype/test-pr_byname.c: New file.
55050         * tests/unictype/test-pr_test.c: New file.
55051         * tests/unictype/test-predicate-part1.h: New file.
55052         * tests/unictype/test-predicate-part2.h: New file.
55053         * tests/unictype/test-scripts.c: New file.
55054         * tests/unictype/test-sy_c_ident.c: New file.
55055         * tests/unictype/test-sy_java_ident.c: New file.
55056
55057         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55058         for Unicode 5.0.0.
55059         * tests/unictype/test-categ_Cc.c: Likewise.
55060         * tests/unictype/test-categ_Cf.c: Likewise.
55061         * tests/unictype/test-categ_Cn.c: Likewise.
55062         * tests/unictype/test-categ_Co.c: Likewise.
55063         * tests/unictype/test-categ_Cs.c: Likewise.
55064         * tests/unictype/test-categ_L.c: Likewise.
55065         * tests/unictype/test-categ_Ll.c: Likewise.
55066         * tests/unictype/test-categ_Lm.c: Likewise.
55067         * tests/unictype/test-categ_Lo.c: Likewise.
55068         * tests/unictype/test-categ_Lt.c: Likewise.
55069         * tests/unictype/test-categ_Lu.c: Likewise.
55070         * tests/unictype/test-categ_M.c: Likewise.
55071         * tests/unictype/test-categ_Mc.c: Likewise.
55072         * tests/unictype/test-categ_Me.c: Likewise.
55073         * tests/unictype/test-categ_Mn.c: Likewise.
55074         * tests/unictype/test-categ_N.c: Likewise.
55075         * tests/unictype/test-categ_Nd.c: Likewise.
55076         * tests/unictype/test-categ_Nl.c: Likewise.
55077         * tests/unictype/test-categ_No.c: Likewise.
55078         * tests/unictype/test-categ_P.c: Likewise.
55079         * tests/unictype/test-categ_Pc.c: Likewise.
55080         * tests/unictype/test-categ_Pd.c: Likewise.
55081         * tests/unictype/test-categ_Pe.c: Likewise.
55082         * tests/unictype/test-categ_Pf.c: Likewise.
55083         * tests/unictype/test-categ_Pi.c: Likewise.
55084         * tests/unictype/test-categ_Po.c: Likewise.
55085         * tests/unictype/test-categ_Ps.c: Likewise.
55086         * tests/unictype/test-categ_S.c: Likewise.
55087         * tests/unictype/test-categ_Sc.c: Likewise.
55088         * tests/unictype/test-categ_Sk.c: Likewise.
55089         * tests/unictype/test-categ_Sm.c: Likewise.
55090         * tests/unictype/test-categ_So.c: Likewise.
55091         * tests/unictype/test-categ_Z.c: Likewise.
55092         * tests/unictype/test-categ_Zl.c: Likewise.
55093         * tests/unictype/test-categ_Zp.c: Likewise.
55094         * tests/unictype/test-categ_Zs.c: Likewise.
55095         * tests/unictype/test-ctype_alnum.c: Likewise.
55096         * tests/unictype/test-ctype_alpha.c: Likewise.
55097         * tests/unictype/test-ctype_blank.c: Likewise.
55098         * tests/unictype/test-ctype_cntrl.c: Likewise.
55099         * tests/unictype/test-ctype_digit.c: Likewise.
55100         * tests/unictype/test-ctype_graph.c: Likewise.
55101         * tests/unictype/test-ctype_lower.c: Likewise.
55102         * tests/unictype/test-ctype_print.c: Likewise.
55103         * tests/unictype/test-ctype_punct.c: Likewise.
55104         * tests/unictype/test-ctype_space.c: Likewise.
55105         * tests/unictype/test-ctype_upper.c: Likewise.
55106         * tests/unictype/test-ctype_xdigit.c: Likewise.
55107         * tests/unictype/test-decdigit.h: Likewise.
55108         * tests/unictype/test-digit.h: Likewise.
55109         * tests/unictype/test-numeric.h: Likewise.
55110         * tests/unictype/test-pr_alphabetic.c: Likewise.
55111         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55112         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55113         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55114         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55115         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55116         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55117         * tests/unictype/test-pr_bidi_control.c: Likewise.
55118         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55119         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55120         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55121         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55122         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55123         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55124         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55125         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55126         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55127         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55128         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55129         * tests/unictype/test-pr_combining.c: Likewise.
55130         * tests/unictype/test-pr_composite.c: Likewise.
55131         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55132         * tests/unictype/test-pr_dash.c: Likewise.
55133         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55134         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55135         * tests/unictype/test-pr_deprecated.c: Likewise.
55136         * tests/unictype/test-pr_diacritic.c: Likewise.
55137         * tests/unictype/test-pr_extender.c: Likewise.
55138         * tests/unictype/test-pr_format_control.c: Likewise.
55139         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55140         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55141         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55142         * tests/unictype/test-pr_hex_digit.c: Likewise.
55143         * tests/unictype/test-pr_hyphen.c: Likewise.
55144         * tests/unictype/test-pr_id_continue.c: Likewise.
55145         * tests/unictype/test-pr_id_start.c: Likewise.
55146         * tests/unictype/test-pr_ideographic.c: Likewise.
55147         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55148         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55149         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55150         * tests/unictype/test-pr_iso_control.c: Likewise.
55151         * tests/unictype/test-pr_join_control.c: Likewise.
55152         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55153         * tests/unictype/test-pr_line_separator.c: Likewise.
55154         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55155         * tests/unictype/test-pr_lowercase.c: Likewise.
55156         * tests/unictype/test-pr_math.c: Likewise.
55157         * tests/unictype/test-pr_non_break.c: Likewise.
55158         * tests/unictype/test-pr_not_a_character.c: Likewise.
55159         * tests/unictype/test-pr_numeric.c: Likewise.
55160         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55161         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55162         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55163         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55164         * tests/unictype/test-pr_other_id_start.c: Likewise.
55165         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55166         * tests/unictype/test-pr_other_math.c: Likewise.
55167         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55168         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55169         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55170         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55171         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55172         * tests/unictype/test-pr_private_use.c: Likewise.
55173         * tests/unictype/test-pr_punctuation.c: Likewise.
55174         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55175         * tests/unictype/test-pr_radical.c: Likewise.
55176         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55177         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55178         * tests/unictype/test-pr_space.c: Likewise.
55179         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55180         * tests/unictype/test-pr_titlecase.c: Likewise.
55181         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55182         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55183         * tests/unictype/test-pr_uppercase.c: Likewise.
55184         * tests/unictype/test-pr_variation_selector.c: Likewise.
55185         * tests/unictype/test-pr_white_space.c: Likewise.
55186         * tests/unictype/test-pr_xid_continue.c: Likewise.
55187         * tests/unictype/test-pr_xid_start.c: Likewise.
55188         * tests/unictype/test-pr_zero_width.c: Likewise.
55189         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55190         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55191
55192 2007-11-12  Bruno Haible  <bruno@clisp.org>
55193
55194         Unicode character classification functions.
55195         * lib/unictype.h: New file.
55196         * modules/unictype/base: New file.
55197         * modules/unictype/category-L: New file.
55198         * modules/unictype/category-Lu: New file.
55199         * modules/unictype/category-Ll: New file.
55200         * modules/unictype/category-Lt: New file.
55201         * modules/unictype/category-Lm: New file.
55202         * modules/unictype/category-Lo: New file.
55203         * modules/unictype/category-M: New file.
55204         * modules/unictype/category-Mn: New file.
55205         * modules/unictype/category-Mc: New file.
55206         * modules/unictype/category-Me: New file.
55207         * modules/unictype/category-N: New file.
55208         * modules/unictype/category-Nd: New file.
55209         * modules/unictype/category-Nl: New file.
55210         * modules/unictype/category-No: New file.
55211         * modules/unictype/category-P: New file.
55212         * modules/unictype/category-Pc: New file.
55213         * modules/unictype/category-Pd: New file.
55214         * modules/unictype/category-Ps: New file.
55215         * modules/unictype/category-Pe: New file.
55216         * modules/unictype/category-Pi: New file.
55217         * modules/unictype/category-Pf: New file.
55218         * modules/unictype/category-Po: New file.
55219         * modules/unictype/category-S: New file.
55220         * modules/unictype/category-Sm: New file.
55221         * modules/unictype/category-Sc: New file.
55222         * modules/unictype/category-Sk: New file.
55223         * modules/unictype/category-So: New file.
55224         * modules/unictype/category-Z: New file.
55225         * modules/unictype/category-Zs: New file.
55226         * modules/unictype/category-Zl: New file.
55227         * modules/unictype/category-Zp: New file.
55228         * modules/unictype/category-C: New file.
55229         * modules/unictype/category-Cc: New file.
55230         * modules/unictype/category-Cf: New file.
55231         * modules/unictype/category-Cs: New file.
55232         * modules/unictype/category-Co: New file.
55233         * modules/unictype/category-Cn: New file.
55234         * modules/unictype/category-or: New file.
55235         * modules/unictype/category-of: New file.
55236         * modules/unictype/category-test: New file.
55237         * modules/unictype/category-test-withtable: New file.
55238         * modules/unictype/category-byname: New file.
55239         * modules/unictype/category-none: New file.
55240         * modules/unictype/category-and: New file.
55241         * modules/unictype/category-and-not: New file.
55242         * modules/unictype/category-name: New file.
55243         * modules/unictype/combining-class: New file.
55244         * modules/unictype/category-all: New file.
55245         * modules/unictype/bidicategory-all: New file.
55246         * modules/unictype/bidicategory-byname: New file.
55247         * modules/unictype/bidicategory-name: New file.
55248         * modules/unictype/bidicategory-of: New file.
55249         * modules/unictype/bidicategory-test: New file.
55250         * modules/unictype/decimal-digit: New file.
55251         * modules/unictype/digit: New file.
55252         * modules/unictype/numeric: New file.
55253         * modules/unictype/mirror: New file.
55254         * modules/unictype/property-white-space: New file.
55255         * modules/unictype/property-alphabetic: New file.
55256         * modules/unictype/property-other-alphabetic: New file.
55257         * modules/unictype/property-not-a-character: New file.
55258         * modules/unictype/property-default-ignorable-code-point: New file.
55259         * modules/unictype/property-other-default-ignorable-code-point: New
55260         file.
55261         * modules/unictype/property-deprecated: New file.
55262         * modules/unictype/property-logical-order-exception: New file.
55263         * modules/unictype/property-variation-selector: New file.
55264         * modules/unictype/property-private-use: New file.
55265         * modules/unictype/property-unassigned-code-value: New file.
55266         * modules/unictype/property-uppercase: New file.
55267         * modules/unictype/property-other-uppercase: New file.
55268         * modules/unictype/property-lowercase: New file.
55269         * modules/unictype/property-other-lowercase: New file.
55270         * modules/unictype/property-titlecase: New file.
55271         * modules/unictype/property-soft-dotted: New file.
55272         * modules/unictype/property-id-start: New file.
55273         * modules/unictype/property-other-id-start: New file.
55274         * modules/unictype/property-id-continue: New file.
55275         * modules/unictype/property-other-id-continue: New file.
55276         * modules/unictype/property-xid-start: New file.
55277         * modules/unictype/property-xid-continue: New file.
55278         * modules/unictype/property-pattern-white-space: New file.
55279         * modules/unictype/property-pattern-syntax: New file.
55280         * modules/unictype/property-join-control: New file.
55281         * modules/unictype/property-grapheme-base: New file.
55282         * modules/unictype/property-grapheme-extend: New file.
55283         * modules/unictype/property-other-grapheme-extend: New file.
55284         * modules/unictype/property-grapheme-link: New file.
55285         * modules/unictype/property-bidi-control: New file.
55286         * modules/unictype/property-bidi-left-to-right: New file.
55287         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55288         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55289         * modules/unictype/property-bidi-european-digit: New file.
55290         * modules/unictype/property-bidi-eur-num-separator: New file.
55291         * modules/unictype/property-bidi-eur-num-terminator: New file.
55292         * modules/unictype/property-bidi-arabic-digit: New file.
55293         * modules/unictype/property-bidi-common-separator: New file.
55294         * modules/unictype/property-bidi-block-separator: New file.
55295         * modules/unictype/property-bidi-segment-separator: New file.
55296         * modules/unictype/property-bidi-whitespace: New file.
55297         * modules/unictype/property-bidi-non-spacing-mark: New file.
55298         * modules/unictype/property-bidi-boundary-neutral: New file.
55299         * modules/unictype/property-bidi-pdf: New file.
55300         * modules/unictype/property-bidi-embedding-or-override: New file.
55301         * modules/unictype/property-bidi-other-neutral: New file.
55302         * modules/unictype/property-hex-digit: New file.
55303         * modules/unictype/property-ascii-hex-digit: New file.
55304         * modules/unictype/property-ideographic: New file.
55305         * modules/unictype/property-unified-ideograph: New file.
55306         * modules/unictype/property-radical: New file.
55307         * modules/unictype/property-ids-binary-operator: New file.
55308         * modules/unictype/property-ids-trinary-operator: New file.
55309         * modules/unictype/property-zero-width: New file.
55310         * modules/unictype/property-space: New file.
55311         * modules/unictype/property-non-break: New file.
55312         * modules/unictype/property-iso-control: New file.
55313         * modules/unictype/property-format-control: New file.
55314         * modules/unictype/property-dash: New file.
55315         * modules/unictype/property-hyphen: New file.
55316         * modules/unictype/property-punctuation: New file.
55317         * modules/unictype/property-line-separator: New file.
55318         * modules/unictype/property-paragraph-separator: New file.
55319         * modules/unictype/property-quotation-mark: New file.
55320         * modules/unictype/property-sentence-terminal: New file.
55321         * modules/unictype/property-terminal-punctuation: New file.
55322         * modules/unictype/property-currency-symbol: New file.
55323         * modules/unictype/property-math: New file.
55324         * modules/unictype/property-other-math: New file.
55325         * modules/unictype/property-paired-punctuation: New file.
55326         * modules/unictype/property-left-of-pair: New file.
55327         * modules/unictype/property-combining: New file.
55328         * modules/unictype/property-composite: New file.
55329         * modules/unictype/property-decimal-digit: New file.
55330         * modules/unictype/property-numeric: New file.
55331         * modules/unictype/property-diacritic: New file.
55332         * modules/unictype/property-extender: New file.
55333         * modules/unictype/property-ignorable-control: New file.
55334         * modules/unictype/property-test: New file.
55335         * modules/unictype/property-byname: New file.
55336         * modules/unictype/property-all: New file.
55337         * modules/unictype/scripts: New file.
55338         * modules/unictype/scripts-all: New file.
55339         * modules/unictype/block-of: New file.
55340         * modules/unictype/block-test: New file.
55341         * modules/unictype/block-list: New file.
55342         * modules/unictype/block-all: New file.
55343         * modules/unictype/syntax-c-whitespace: New file.
55344         * modules/unictype/syntax-java-whitespace: New file.
55345         * modules/unictype/syntax-c-ident: New file.
55346         * modules/unictype/syntax-java-ident: New file.
55347         * modules/unictype/ctype-alnum: New file.
55348         * modules/unictype/ctype-alpha: New file.
55349         * modules/unictype/ctype-cntrl: New file.
55350         * modules/unictype/ctype-digit: New file.
55351         * modules/unictype/ctype-graph: New file.
55352         * modules/unictype/ctype-lower: New file.
55353         * modules/unictype/ctype-print: New file.
55354         * modules/unictype/ctype-punct: New file.
55355         * modules/unictype/ctype-space: New file.
55356         * modules/unictype/ctype-upper: New file.
55357         * modules/unictype/ctype-xdigit: New file.
55358         * modules/unictype/ctype-blank: New file.
55359         * lib/unictype/bidi_byname.c: New file.
55360         * lib/unictype/bidi_name.c: New file.
55361         * lib/unictype/bidi_of.c: New file.
55362         * lib/unictype/bidi_test.c: New file.
55363         * lib/unictype/bitmap.h: New file.
55364         * lib/unictype/block_test.c: New file.
55365         * lib/unictype/blocks.c: New file.
55366         * lib/unictype/categ_C.c: New file.
55367         * lib/unictype/categ_Cc.c: New file.
55368         * lib/unictype/categ_Cf.c: New file.
55369         * lib/unictype/categ_Cn.c: New file.
55370         * lib/unictype/categ_Co.c: New file.
55371         * lib/unictype/categ_Cs.c: New file.
55372         * lib/unictype/categ_L.c: New file.
55373         * lib/unictype/categ_Ll.c: New file.
55374         * lib/unictype/categ_Lm.c: New file.
55375         * lib/unictype/categ_Lo.c: New file.
55376         * lib/unictype/categ_Lt.c: New file.
55377         * lib/unictype/categ_Lu.c: New file.
55378         * lib/unictype/categ_M.c: New file.
55379         * lib/unictype/categ_Mc.c: New file.
55380         * lib/unictype/categ_Me.c: New file.
55381         * lib/unictype/categ_Mn.c: New file.
55382         * lib/unictype/categ_N.c: New file.
55383         * lib/unictype/categ_Nd.c: New file.
55384         * lib/unictype/categ_Nl.c: New file.
55385         * lib/unictype/categ_No.c: New file.
55386         * lib/unictype/categ_P.c: New file.
55387         * lib/unictype/categ_Pc.c: New file.
55388         * lib/unictype/categ_Pd.c: New file.
55389         * lib/unictype/categ_Pe.c: New file.
55390         * lib/unictype/categ_Pf.c: New file.
55391         * lib/unictype/categ_Pi.c: New file.
55392         * lib/unictype/categ_Po.c: New file.
55393         * lib/unictype/categ_Ps.c: New file.
55394         * lib/unictype/categ_S.c: New file.
55395         * lib/unictype/categ_Sc.c: New file.
55396         * lib/unictype/categ_Sk.c: New file.
55397         * lib/unictype/categ_Sm.c: New file.
55398         * lib/unictype/categ_So.c: New file.
55399         * lib/unictype/categ_Z.c: New file.
55400         * lib/unictype/categ_Zl.c: New file.
55401         * lib/unictype/categ_Zp.c: New file.
55402         * lib/unictype/categ_Zs.c: New file.
55403         * lib/unictype/categ_and.c: New file.
55404         * lib/unictype/categ_and_not.c: New file.
55405         * lib/unictype/categ_byname.c: New file.
55406         * lib/unictype/categ_name.c: New file.
55407         * lib/unictype/categ_none.c: New file.
55408         * lib/unictype/categ_of.c: New file.
55409         * lib/unictype/categ_or.c: New file.
55410         * lib/unictype/categ_test.c: New file.
55411         * lib/unictype/combining.c: New file.
55412         * lib/unictype/ctype_alnum.c: New file.
55413         * lib/unictype/ctype_alpha.c: New file.
55414         * lib/unictype/ctype_blank.c: New file.
55415         * lib/unictype/ctype_cntrl.c: New file.
55416         * lib/unictype/ctype_digit.c: New file.
55417         * lib/unictype/ctype_graph.c: New file.
55418         * lib/unictype/ctype_lower.c: New file.
55419         * lib/unictype/ctype_print.c: New file.
55420         * lib/unictype/ctype_punct.c: New file.
55421         * lib/unictype/ctype_space.c: New file.
55422         * lib/unictype/ctype_upper.c: New file.
55423         * lib/unictype/ctype_xdigit.c: New file.
55424         * lib/unictype/decdigit.c: New file.
55425         * lib/unictype/digit.c: New file.
55426         * lib/unictype/identsyntaxmap.h: New file.
55427         * lib/unictype/mirror.c: New file.
55428         * lib/unictype/numeric.c: New file.
55429         * lib/unictype/pr_alphabetic.c: New file.
55430         * lib/unictype/pr_ascii_hex_digit.c: New file.
55431         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55432         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55433         * lib/unictype/pr_bidi_block_separator.c: New file.
55434         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55435         * lib/unictype/pr_bidi_common_separator.c: New file.
55436         * lib/unictype/pr_bidi_control.c: New file.
55437         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55438         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55439         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55440         * lib/unictype/pr_bidi_european_digit.c: New file.
55441         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55442         * lib/unictype/pr_bidi_left_to_right.c: New file.
55443         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55444         * lib/unictype/pr_bidi_other_neutral.c: New file.
55445         * lib/unictype/pr_bidi_pdf.c: New file.
55446         * lib/unictype/pr_bidi_segment_separator.c: New file.
55447         * lib/unictype/pr_bidi_whitespace.c: New file.
55448         * lib/unictype/pr_byname.c: New file.
55449         * lib/unictype/pr_byname.gperf: New file.
55450         * lib/unictype/pr_combining.c: New file.
55451         * lib/unictype/pr_composite.c: New file.
55452         * lib/unictype/pr_currency_symbol.c: New file.
55453         * lib/unictype/pr_dash.c: New file.
55454         * lib/unictype/pr_decimal_digit.c: New file.
55455         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55456         * lib/unictype/pr_deprecated.c: New file.
55457         * lib/unictype/pr_diacritic.c: New file.
55458         * lib/unictype/pr_extender.c: New file.
55459         * lib/unictype/pr_format_control.c: New file.
55460         * lib/unictype/pr_grapheme_base.c: New file.
55461         * lib/unictype/pr_grapheme_extend.c: New file.
55462         * lib/unictype/pr_grapheme_link.c: New file.
55463         * lib/unictype/pr_hex_digit.c: New file.
55464         * lib/unictype/pr_hyphen.c: New file.
55465         * lib/unictype/pr_id_continue.c: New file.
55466         * lib/unictype/pr_id_start.c: New file.
55467         * lib/unictype/pr_ideographic.c: New file.
55468         * lib/unictype/pr_ids_binary_operator.c: New file.
55469         * lib/unictype/pr_ids_trinary_operator.c: New file.
55470         * lib/unictype/pr_ignorable_control.c: New file.
55471         * lib/unictype/pr_iso_control.c: New file.
55472         * lib/unictype/pr_join_control.c: New file.
55473         * lib/unictype/pr_left_of_pair.c: New file.
55474         * lib/unictype/pr_line_separator.c: New file.
55475         * lib/unictype/pr_logical_order_exception.c: New file.
55476         * lib/unictype/pr_lowercase.c: New file.
55477         * lib/unictype/pr_math.c: New file.
55478         * lib/unictype/pr_non_break.c: New file.
55479         * lib/unictype/pr_not_a_character.c: New file.
55480         * lib/unictype/pr_numeric.c: New file.
55481         * lib/unictype/pr_other_alphabetic.c: New file.
55482         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55483         * lib/unictype/pr_other_grapheme_extend.c: New file.
55484         * lib/unictype/pr_other_id_continue.c: New file.
55485         * lib/unictype/pr_other_id_start.c: New file.
55486         * lib/unictype/pr_other_lowercase.c: New file.
55487         * lib/unictype/pr_other_math.c: New file.
55488         * lib/unictype/pr_other_uppercase.c: New file.
55489         * lib/unictype/pr_paired_punctuation.c: New file.
55490         * lib/unictype/pr_paragraph_separator.c: New file.
55491         * lib/unictype/pr_pattern_syntax.c: New file.
55492         * lib/unictype/pr_pattern_white_space.c: New file.
55493         * lib/unictype/pr_private_use.c: New file.
55494         * lib/unictype/pr_punctuation.c: New file.
55495         * lib/unictype/pr_quotation_mark.c: New file.
55496         * lib/unictype/pr_radical.c: New file.
55497         * lib/unictype/pr_sentence_terminal.c: New file.
55498         * lib/unictype/pr_soft_dotted.c: New file.
55499         * lib/unictype/pr_space.c: New file.
55500         * lib/unictype/pr_terminal_punctuation.c: New file.
55501         * lib/unictype/pr_test.c: New file.
55502         * lib/unictype/pr_titlecase.c: New file.
55503         * lib/unictype/pr_unassigned_code_value.c: New file.
55504         * lib/unictype/pr_unified_ideograph.c: New file.
55505         * lib/unictype/pr_uppercase.c: New file.
55506         * lib/unictype/pr_variation_selector.c: New file.
55507         * lib/unictype/pr_white_space.c: New file.
55508         * lib/unictype/pr_xid_continue.c: New file.
55509         * lib/unictype/pr_xid_start.c: New file.
55510         * lib/unictype/pr_zero_width.c: New file.
55511         * lib/unictype/scripts.c: New file.
55512         * lib/unictype/sy_c_ident.c: New file.
55513         * lib/unictype/sy_c_whitespace.c: New file.
55514         * lib/unictype/sy_java_ident.c: New file.
55515         * lib/unictype/sy_java_whitespace.c: New file.
55516
55517         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55518         Unicode 5.0.0.
55519         * lib/unictype/blocks.h: Likewise.
55520         * lib/unictype/categ_C.h: Likewise.
55521         * lib/unictype/categ_Cc.h: Likewise.
55522         * lib/unictype/categ_Cf.h: Likewise.
55523         * lib/unictype/categ_Cn.h: Likewise.
55524         * lib/unictype/categ_Co.h: Likewise.
55525         * lib/unictype/categ_Cs.h: Likewise.
55526         * lib/unictype/categ_L.h: Likewise.
55527         * lib/unictype/categ_Ll.h: Likewise.
55528         * lib/unictype/categ_Lm.h: Likewise.
55529         * lib/unictype/categ_Lo.h: Likewise.
55530         * lib/unictype/categ_Lt.h: Likewise.
55531         * lib/unictype/categ_Lu.h: Likewise.
55532         * lib/unictype/categ_M.h: Likewise.
55533         * lib/unictype/categ_Mc.h: Likewise.
55534         * lib/unictype/categ_Me.h: Likewise.
55535         * lib/unictype/categ_Mn.h: Likewise.
55536         * lib/unictype/categ_N.h: Likewise.
55537         * lib/unictype/categ_Nd.h: Likewise.
55538         * lib/unictype/categ_Nl.h: Likewise.
55539         * lib/unictype/categ_No.h: Likewise.
55540         * lib/unictype/categ_P.h: Likewise.
55541         * lib/unictype/categ_Pc.h: Likewise.
55542         * lib/unictype/categ_Pd.h: Likewise.
55543         * lib/unictype/categ_Pe.h: Likewise.
55544         * lib/unictype/categ_Pf.h: Likewise.
55545         * lib/unictype/categ_Pi.h: Likewise.
55546         * lib/unictype/categ_Po.h: Likewise.
55547         * lib/unictype/categ_Ps.h: Likewise.
55548         * lib/unictype/categ_S.h: Likewise.
55549         * lib/unictype/categ_Sc.h: Likewise.
55550         * lib/unictype/categ_Sk.h: Likewise.
55551         * lib/unictype/categ_Sm.h: Likewise.
55552         * lib/unictype/categ_So.h: Likewise.
55553         * lib/unictype/categ_Z.h: Likewise.
55554         * lib/unictype/categ_Zl.h: Likewise.
55555         * lib/unictype/categ_Zp.h: Likewise.
55556         * lib/unictype/categ_Zs.h: Likewise.
55557         * lib/unictype/categ_of.h: Likewise.
55558         * lib/unictype/combining.h: Likewise.
55559         * lib/unictype/ctype_alnum.h: Likewise.
55560         * lib/unictype/ctype_alpha.h: Likewise.
55561         * lib/unictype/ctype_blank.h: Likewise.
55562         * lib/unictype/ctype_cntrl.h: Likewise.
55563         * lib/unictype/ctype_digit.h: Likewise.
55564         * lib/unictype/ctype_graph.h: Likewise.
55565         * lib/unictype/ctype_lower.h: Likewise.
55566         * lib/unictype/ctype_print.h: Likewise.
55567         * lib/unictype/ctype_punct.h: Likewise.
55568         * lib/unictype/ctype_space.h: Likewise.
55569         * lib/unictype/ctype_upper.h: Likewise.
55570         * lib/unictype/ctype_xdigit.h: Likewise.
55571         * lib/unictype/decdigit.h: Likewise.
55572         * lib/unictype/digit.h: Likewise.
55573         * lib/unictype/mirror.h: Likewise.
55574         * lib/unictype/numeric.h: Likewise.
55575         * lib/unictype/pr_alphabetic.h: Likewise.
55576         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55577         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55578         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55579         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55580         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55581         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55582         * lib/unictype/pr_bidi_control.h: Likewise.
55583         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55584         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55585         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55586         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55587         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55588         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55589         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55590         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55591         * lib/unictype/pr_bidi_pdf.h: Likewise.
55592         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55593         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55594         * lib/unictype/pr_combining.h: Likewise.
55595         * lib/unictype/pr_composite.h: Likewise.
55596         * lib/unictype/pr_currency_symbol.h: Likewise.
55597         * lib/unictype/pr_dash.h: Likewise.
55598         * lib/unictype/pr_decimal_digit.h: Likewise.
55599         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55600         * lib/unictype/pr_deprecated.h: Likewise.
55601         * lib/unictype/pr_diacritic.h: Likewise.
55602         * lib/unictype/pr_extender.h: Likewise.
55603         * lib/unictype/pr_format_control.h: Likewise.
55604         * lib/unictype/pr_grapheme_base.h: Likewise.
55605         * lib/unictype/pr_grapheme_extend.h: Likewise.
55606         * lib/unictype/pr_grapheme_link.h: Likewise.
55607         * lib/unictype/pr_hex_digit.h: Likewise.
55608         * lib/unictype/pr_hyphen.h: Likewise.
55609         * lib/unictype/pr_id_continue.h: Likewise.
55610         * lib/unictype/pr_id_start.h: Likewise.
55611         * lib/unictype/pr_ideographic.h: Likewise.
55612         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55613         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55614         * lib/unictype/pr_ignorable_control.h: Likewise.
55615         * lib/unictype/pr_iso_control.h: Likewise.
55616         * lib/unictype/pr_join_control.h: Likewise.
55617         * lib/unictype/pr_left_of_pair.h: Likewise.
55618         * lib/unictype/pr_line_separator.h: Likewise.
55619         * lib/unictype/pr_logical_order_exception.h: Likewise.
55620         * lib/unictype/pr_lowercase.h: Likewise.
55621         * lib/unictype/pr_math.h: Likewise.
55622         * lib/unictype/pr_non_break.h: Likewise.
55623         * lib/unictype/pr_not_a_character.h: Likewise.
55624         * lib/unictype/pr_numeric.h: Likewise.
55625         * lib/unictype/pr_other_alphabetic.h: Likewise.
55626         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55627         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55628         * lib/unictype/pr_other_id_continue.h: Likewise.
55629         * lib/unictype/pr_other_id_start.h: Likewise.
55630         * lib/unictype/pr_other_lowercase.h: Likewise.
55631         * lib/unictype/pr_other_math.h: Likewise.
55632         * lib/unictype/pr_other_uppercase.h: Likewise.
55633         * lib/unictype/pr_paired_punctuation.h: Likewise.
55634         * lib/unictype/pr_paragraph_separator.h: Likewise.
55635         * lib/unictype/pr_pattern_syntax.h: Likewise.
55636         * lib/unictype/pr_pattern_white_space.h: Likewise.
55637         * lib/unictype/pr_private_use.h: Likewise.
55638         * lib/unictype/pr_punctuation.h: Likewise.
55639         * lib/unictype/pr_quotation_mark.h: Likewise.
55640         * lib/unictype/pr_radical.h: Likewise.
55641         * lib/unictype/pr_sentence_terminal.h: Likewise.
55642         * lib/unictype/pr_soft_dotted.h: Likewise.
55643         * lib/unictype/pr_space.h: Likewise.
55644         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55645         * lib/unictype/pr_titlecase.h: Likewise.
55646         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55647         * lib/unictype/pr_unified_ideograph.h: Likewise.
55648         * lib/unictype/pr_uppercase.h: Likewise.
55649         * lib/unictype/pr_variation_selector.h: Likewise.
55650         * lib/unictype/pr_white_space.h: Likewise.
55651         * lib/unictype/pr_xid_continue.h: Likewise.
55652         * lib/unictype/pr_xid_start.h: Likewise.
55653         * lib/unictype/pr_zero_width.h: Likewise.
55654         * lib/unictype/scripts.h: Likewise.
55655         * lib/unictype/scripts_byname.gperf: Likewise.
55656         * lib/unictype/sy_c_ident.h: Likewise.
55657         * lib/unictype/sy_c_whitespace.h: Likewise.
55658         * lib/unictype/sy_java_ident.h: Likewise.
55659         * lib/unictype/sy_java_whitespace.h: Likewise.
55660
55661         * lib/unictype/Makefile: New file.
55662         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55663         glibc.
55664         * lib/unictype/3level.h: New file, copied from glibc.
55665         * lib/unictype/3levelbit.h: New file.
55666
55667 2007-11-11  Bruno Haible  <bruno@clisp.org>
55668
55669         * modules/gperf: New file.
55670         * modules/iconv_open (Depends-on): Add it.
55671         (Makefile.am): Remove the GPERF definition.
55672
55673 2007-11-11  Bruno Haible  <bruno@clisp.org>
55674
55675         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55676         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55677
55678 2007-11-11  Bruno Haible  <bruno@clisp.org>
55679
55680         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55681         (usage): Remove function.
55682
55683 2007-11-11  Bruno Haible  <bruno@clisp.org>
55684
55685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55686         gl_FUNC_CEILF_LIBS.
55687         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55688         gl_FUNC_CEIL_LIBS.
55689         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55690         gl_FUNC_CEILL_LIBS.
55691         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55692         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55693         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55694
55695 2007-11-11  Bruno Haible  <bruno@clisp.org>
55696
55697         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55698         roundf were declared but do not exist on functions.
55699         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55700         roundl were declared but do not exist on functions.
55701         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55702         HAVE_FLOORL_AND_CEILL, respectively.
55703         Needed for Sun C on Solaris 10.
55704
55705 2007-11-11  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55708         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55709         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55710         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55711         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55712         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55713         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55714         HAVE_DECL_ROUNDF.
55715         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55716         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55718         of HAVE_DECL_ROUND*.
55719         * modules/math (Makefile.am): Update.
55720
55721 2007-11-10  Bruno Haible  <bruno@clisp.org>
55722
55723         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55724         ptrdiff_t as m4/intl.m4.
55725
55726 2007-11-10  Jim Meyering  <meyering@redhat.com>
55727
55728         Avoid link failure for the argmatch test.
55729         * tests/test-argmatch.c (usage): Define function to avoid a link
55730         failure: argmatch_die requires a usage function.
55731
55732 2007-11-09  Bruno Haible  <bruno@clisp.org>
55733
55734         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55735         * doc/functions/vsnprintf.texi: Likewise.
55736         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55737         with a size argument < 2.
55738
55739 2007-11-09  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55742         buffer. Fixes an inefficiency introduced on 2007-11-03.
55743
55744 2007-11-09  Bruno Haible  <bruno@clisp.org>
55745
55746         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55747         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55748
55749 2007-11-08  Jim Meyering  <meyering@redhat.com>
55750
55751         Change cache variable name prefix "jm_" to "gl_" everywhere.
55752         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55753         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55754         * m4/uptime.m4: s/gl_/jm_/
55755
55756 2007-11-07  Bruno Haible  <bruno@clisp.org>
55757
55758         Update to GNU gettext 0.17.
55759         * m4/intl.m4: Update to GNU gettext 0.17.
55760         * m4/po.m4: Likewise.
55761         * modules/gettext (Files): Remove m4/ulonglong.m4.
55762         (configure.ac): Require gettext infrastructure from version 0.17.
55763
55764 2007-11-06  Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55767         symbolic values are not defined in a public header.
55768         * lib/freadable.c (freadable) [QNX]: Likewise.
55769         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55770         * lib/freading.c (freading) [QNX]: Likewise.
55771         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55772         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55773         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55774         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55775         Reported by Alain Magloire.
55776
55777         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55778
55779 2007-11-05  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55782         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55783         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55784         Reported by Eric Blake.
55785
55786 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55787             Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55790         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55791         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55792         (malloc): Undefine also before including <stdlib.h>.
55793         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55794         Needed on OSF/1 4.0.
55795
55796 2007-11-05  Jim Meyering  <meyering@redhat.com>
55797
55798         git-version-gen: sync from coreutils.
55799         * build-aux/git-version-gen: Add comments.
55800         Change the first '-' to '.' in the snapshot version string,
55801         e.g., 6.9-377-08144 -> 6.9.377-08144
55802         Remove first parameter.
55803         Don't declare a version "-dirty" merely because a time
55804         stamp has changed.
55805
55806 2007-11-04  Bruno Haible  <bruno@clisp.org>
55807
55808         * lib/lock.h: Protect all macro definitions containing an 'if'
55809         statement through a "do { ... } while (0)".
55810         * lib/tls.h: Likewise.
55811
55812 2007-11-04  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55815
55816 2007-11-04  Bruno Haible  <bruno@clisp.org>
55817
55818         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55819         * modules/fprintf-posix (Depends-on): Add nocrash.
55820         * modules/snprintf-posix (Depends-on): Likewise.
55821         * modules/sprintf-posix (Depends-on): Likewise.
55822         * modules/vasnprintf-posix (Depends-on): Likewise.
55823         * modules/vasprintf-posix (Depends-on): Likewise.
55824         * modules/vfprintf-posix (Depends-on): Likewise.
55825         * modules/vsnprintf-posix (Depends-on): Likewise.
55826         * modules/vsprintf-posix (Depends-on): Likewise.
55827         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55828         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55829         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55830         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55831         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55832         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55833         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55834
55835 2007-11-04  Bruno Haible  <bruno@clisp.org>
55836
55837         * modules/nocrash: New file.
55838         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55839         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55840
55841 2007-11-04  Bruno Haible  <bruno@clisp.org>
55842
55843         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55844         precision handling.
55845         * tests/test-vasprintf-posix.c (test_function): Likewise.
55846         * tests/test-snprintf-posix.h (test_function): Likewise.
55847         * tests/test-sprintf-posix.h (test_function): Likewise.
55848
55849         Fix *printf behaviour for large precisions on mingw and BeOS.
55850         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55851         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55853         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55855         gl_PRINTF_PRECISION and test its result. Invoke
55856         gl_PREREQ_VASNPRINTF_PRECISION.
55857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55859         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55860         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55861         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): 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-04  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55876
55877 2007-11-04  Bruno Haible  <bruno@clisp.org>
55878
55879         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55880         Reported by Sylvain Beucler <beuc@gnu.org>.
55881
55882 2007-11-03  Bruno Haible  <bruno@clisp.org>
55883
55884         * tests/test-fprintf-posix2.sh: New file.
55885         * tests/test-fprintf-posix2.c: New file.
55886         * modules/fprintf-posix-tests (Files): Add them.
55887         (TESTS): Add test-fprintf-posix2.sh.
55888         (configure.ac): Check for getrlimit and setrlimit.
55889         (check_PROGRAMS): Add test-fprintf-posix2.
55890
55891         * tests/test-printf-posix2.sh: New file.
55892         * tests/test-printf-posix2.c: New file.
55893         * modules/printf-posix-tests (Files): Add them.
55894         (TESTS): Add test-printf-posix2.sh.
55895         (configure.ac): Check for getrlimit and setrlimit.
55896         (check_PROGRAMS): Add test-printf-posix2.
55897
55898         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55899         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55900         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55901         (decode_double): New function, copied from decode_long_double.
55902         (scale10_round_decimal_decoded): New function, extracted from
55903         scale10_round_decimal_long_double.
55904         (scale10_round_decimal_long_double): Use it.
55905         (scale10_round_decimal_double): New function.
55906         (floorlog10): New function.
55907         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55909         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55911         gl_PRINTF_ENOMEM and test its result. Invoke
55912         gl_PREREQ_VASNPRINTF_ENOMEM.
55913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55920         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55921         * modules/snprintf-posix (Depends-on): Likewise.
55922         * modules/sprintf-posix (Depends-on): Likewise.
55923         * modules/vasnprintf-posix (Depends-on): Likewise.
55924         * modules/vasprintf-posix (Depends-on): Likewise.
55925         * modules/vfprintf-posix (Depends-on): Likewise.
55926         * modules/vsnprintf-posix (Depends-on): Likewise.
55927         * modules/vsprintf-posix (Depends-on): Likewise.
55928         * doc/functions/fprintf.texi: Update.
55929         * doc/functions/printf.texi: Update.
55930         * doc/functions/snprintf.texi: Update.
55931         * doc/functions/sprintf.texi: Update.
55932         * doc/functions/vfprintf.texi: Update.
55933         * doc/functions/vprintf.texi: Update.
55934         * doc/functions/vsnprintf.texi: Update.
55935         * doc/functions/vsprintf.texi: Update.
55936
55937 2007-11-03  Bruno Haible  <bruno@clisp.org>
55938
55939         * modules/frexp-nolibm-tests: New file.
55940
55941         * modules/frexp-nolibm: New file.
55942         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55943
55944 2007-11-03  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55947         value is C99 compliant.
55948         Needed for OSF/1 5.1.
55949
55950 2007-11-03  Bruno Haible  <bruno@clisp.org>
55951
55952         Fix out-of-memory handling of vasnprintf.
55953         * lib/printf-parse.c: Include <errno.h>.
55954         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55955         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55956         is already set.
55957
55958 2007-11-02  Eric Blake  <ebb9@byu.net>
55959
55960         Fix tests on cygwin.
55961         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55962
55963 2007-11-01  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55966         warning.
55967         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55968         needed for POSIX compatibility.
55969
55970 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55971
55972         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55973         for compatibility with GNU.
55974
55975 2007-11-01  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55978         (putenv): Renamed from rpl_putenv. Change argument type from
55979         'const char *' to 'char *'.
55980         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55981         of defining putenv in config.h, just set REPLACE_PUTENV.
55982         * modules/putenv (Depends-on): Add stdlib.
55983         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55984         (Include): Use <stdlib.h>.
55985         * lib/stdlib.in.h (putenv): New declaration.
55986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55987         REPLACE_PUTENV.
55988         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55989         REPLACE_PUTENV.
55990         Needed for MacOS X 10.5.0.
55991         Reported by Peter O'Gorman <peter@pogma.com>.
55992
55993 2007-11-01  Jim Meyering  <meyering@redhat.com>
55994
55995         Treat an empty date string exactly like "0".
55996         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55997         if the remaining date string (to be parsed) is empty, use "0".
55998         Reported by Mischa Molhoek and discussed in this thread:
55999         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56000
56001 2007-10-31  Bruno Haible  <bruno@clisp.org>
56002
56003         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56004         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56005         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56006         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56007         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56008         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56009
56010 2007-10-31  Bruno Haible  <bruno@clisp.org>
56011
56012         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56013         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56014         (AC_TYPE_LONG_LONG_INT): Use it.
56015         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56016         it as well.
56017         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56018         to m4/longlong.m4.
56019         * modules/stdint (Files): Remove m4/ulonglong.m4.
56020         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56021         m4/ulonglong.m4.
56022         * modules/strtoumax (Files): Likewise.
56023
56024 2007-10-30  Bruno Haible  <bruno@clisp.org>
56025
56026         * modules/xvasprintf-posix: New file.
56027         Suggested by Eric Blake.
56028
56029 2007-10-30  Bruno Haible  <bruno@clisp.org>
56030
56031         * modules/xprintf-posix-tests: New file.
56032         * tests/test-xprintf-posix.sh: New file.
56033         * tests/test-xprintf-posix.c: New file.
56034         * tests/test-xfprintf-posix.c: New file.
56035
56036         * modules/xprintf-posix: New file.
56037
56038 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56039
56040         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56041         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56042         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56043
56044 2007-10-29  Bruno Haible  <bruno@clisp.org>
56045
56046         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56047         contain the special marker '_cv_'.
56048         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56049         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56050         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56051         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56052         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56053         Reported by Ralf Wildenhues.
56054
56055 2007-10-29  Bruno Haible  <bruno@clisp.org>
56056
56057         * gnulib-tool (func_import): When --lgpl is not specified, set
56058         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56059         GPLv3.
56060         Reported by Simon Josefsson.
56061
56062 2007-10-28  Bruno Haible  <bruno@clisp.org>
56063
56064         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56065         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56066         HAVE_DECL_ISFINITE.
56067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56068         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56069         HAVE_DECL_ISFINITE.
56070
56071 2007-10-28  Bruno Haible  <bruno@clisp.org>
56072
56073         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56074         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56075
56076 2007-10-28  Bruno Haible  <bruno@clisp.org>
56077
56078         Fix link errors with Sun C 5.0 on Solaris 10.
56079         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56080         function is declared but not present in the compiler's libm.
56081         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56082         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56083         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56084         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56085         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56086         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56087         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56089         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56090         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56091         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56092         HAVE_DECL_FLOORL.
56093
56094 2007-10-28  Bruno Haible  <bruno@clisp.org>
56095
56096         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56097         gl_FUNC_FLOORL. Cache the result.
56098         (gl_FUNC_FLOORL): Use it.
56099         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56100         gl_FUNC_CEILL. Cache the result.
56101         (gl_FUNC_CEILL): Use it.
56102
56103         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56104         gl_FUNC_FLOOR. Cache the result.
56105         (gl_FUNC_FLOOR): Use it.
56106         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56107         gl_FUNC_CEIL. Cache the result.
56108         (gl_FUNC_CEIL): Use it.
56109
56110         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56111         gl_FUNC_FLOORF. Cache the result.
56112         (gl_FUNC_FLOORF): Use it.
56113         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56114         gl_FUNC_CEILF. Cache the result.
56115         (gl_FUNC_CEILF): Use it.
56116
56117 2007-10-28  Bruno Haible  <bruno@clisp.org>
56118
56119         * gnulib-tool: Allow specifying the LGPL version number through
56120         --lgpl=2 or --lgpl=3.
56121         (func_usage): Document --lgpl with argument.
56122         Handle --lgpl=... arguments.
56123         (func_import): Recognize also gl_LGPL calls with an argument. When
56124         --lgpl=2 is used and the module's license is just LGPL, report an
56125         error. Set sed_transform_lib_file according to the lgpl variable. In
56126         the generated files, use --lgpl or gl_LGPL invocations with argument,
56127         if necessary.
56128         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56129         an LGPv2+ license.
56130         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56131         gl_LGPL macro.
56132
56133 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56134             Bruno Haible  <bruno@clisp.org>
56135
56136         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56137         (u16_uctomb_aux): Likewise.
56138         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56139         !HAVE_INLINE.
56140         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56141
56142 2007-10-28  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56145         Invoke AM_GETTEXT_OPTION if it exists.
56146         * modules/vasprintf: Likewise.
56147         * modules/verror: Likewise.
56148         * modules/xprintf: Likewise.
56149         * modules/xvasprintf: Likewise.
56150
56151 2007-10-27  Ben Pfaff  <blp@gnu.org>
56152
56153         * lib/math.in.h: Define isfinite macro and prototypes for
56154         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56155         implementations.
56156         * m4/math_h.m4: New substitutions for isfinite module.
56157         * lib/isfinite.c: New file.
56158         * m4/isfinite.m4: New file.
56159         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56160         * modules/isfinite: New file.
56161         * modules/isfinite-tests: New file.
56162         * tests/tests-isfinite.c: New file.
56163         * doc/functions/isfinite.texi: Mention isfinite module.
56164         * MODULES.html.sh: Mention new module.
56165
56166 2007-10-27  Ben Pfaff  <blp@gnu.org>
56167
56168         Ralf Wildenhues reported that Tru64 4.0D declares the round
56169         functions but does not have definitions.
56170         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56171         cannot be found in any library, set the output variable to
56172         "missing" instead of "".
56173         * m4/round.m4: Also use our substitute if we cannot find round in
56174         any library, even if it is declared.
56175         * m4/roundf.m4: Likewise for roundf.
56176         * m4/roundl.m4: Likewise for roundl.
56177         * lib/math.in.h: Undefine roundf, round, roundl before defining
56178         their replacements, to allow for hypothetical systems where these
56179         may be defined as macros but not available in libraries.
56180
56181 2007-10-27  Bruno Haible  <bruno@clisp.org>
56182
56183         * doc/gnulib.texi: Invoke @firstparagraphindent.
56184         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56185         changes in gnulib.
56186         (Source changes): New section.
56187
56188 2007-10-26  Bruno Haible  <bruno@clisp.org>
56189
56190         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56191         borrowed from autoconf.
56192
56193 2007-10-26  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56196         strerror returned the empty string. Needed on HP-UX 11.00.
56197
56198 2007-10-24  Micah Cowan  <micah@cowan.name>
56199
56200         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56201         * build-aux/bootstrap: Remove support for now-unnecessary option,
56202         --cvs-user, and envvars CVS_USER, CVS_RSH.
56203
56204 2007-10-24  Jim Meyering  <meyering@redhat.com>
56205
56206         Avoid diagnostics from sha1sum when there is no cached checksum.
56207         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56208         if the po.s1 file hasn't been created yet.
56209
56210         * build-aux/bootstrap: Sync from coreutils:
56211         2007-10-24  Jim Meyering  <meyering@redhat.com>
56212         Get gnulib from the git repository, not from an obsolete cvs one.
56213         * build-aux/bootstrap: Suggestion from Micah Cowan.
56214         2007-10-04  Jim Meyering  <jim@meyering.net>
56215         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56216         (update_po_files): Work also when there are no .po files in po/.
56217
56218 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56219
56220         * README: Append ".git" to git and cg examples.
56221         Problem reported by Benoit Sigoure.
56222
56223 2007-10-23  Micah Cowan  <micah@cowan.name>
56224
56225         * users.txt: Add wget.
56226
56227 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56228
56229         Fix linking of some unistdio tests on FreeBSD.
56230         * modules/unistdio/u16-vsnprintf-tests
56231         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56232         * modules/unistdio/u16-vsprintf-tests
56233         (test_u16_vsnprintf1_LDADD): Likewise.
56234         * modules/unistdio/u32-vsnprintf-tests
56235         (test_u32_vsnprintf1_LDADD): Likewise.
56236         * modules/unistdio/u32-vsprintf-tests
56237         (test_u32_vsprintf1_LDADD): Likewise.
56238         * modules/unistdio/u8-vsnprintf-tests
56239         (test_u8_vsnprintf1_LDADD): Likewise.
56240         * modules/unistdio/u8-vsprintf-tests
56241         (test_u8_vsprintf1_LDADD): Likewise.
56242         * modules/unistdio/ulc-vsnprintf-tests
56243         (test_ulc_vsnprintf1_LDADD): Likewise.
56244         * modules/unistdio/ulc-vsprintf-tests
56245         (test_ulc_vsprintf1_LDADD): Likewise.
56246
56247         Fix linking of some uniconv tests on FreeBSD.
56248         * modules/uniconv/u16-conv-from-enc-tests
56249         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56250         * modules/uniconv/u16-conv-to-enc-tests
56251         (test_u16_conv_to_enc_LDADD): Likewise.
56252         * modules/uniconv/u16-strconv-from-enc-tests
56253         (test_u16_strconv_from_enc_LDADD): Likewise.
56254         * modules/uniconv/u16-strconv-to-enc-tests
56255         (test_u16_strconv_to_enc_LDADD): Likewise.
56256         * modules/uniconv/u32-conv-from-enc-tests
56257         (test_u32_conv_from_enc_LDADD): Likewise.
56258         * modules/uniconv/u32-conv-to-enc-tests
56259         (test_u32_conv_to_enc_LDADD): Likewise.
56260         * modules/uniconv/u32-strconv-from-enc-tests
56261         (test_u32_strconv_from_enc_LDADD): Likewise.
56262         * modules/uniconv/u32-strconv-to-enc-tests
56263         (test_u32_strconv_to_enc_LDADD): Likewise.
56264         * modules/uniconv/u8-conv-from-enc-tests
56265         (test_u8_conv_from_enc_LDADD): Likewise.
56266         * modules/uniconv/u8-conv-to-enc-tests
56267         (test_u8_conv_to_enc_LDADD): Likewise.
56268         * modules/uniconv/u8-strconv-from-enc-tests
56269         (test_u8_strconv_from_enc_LDADD): Likewise.
56270         * modules/uniconv/u8-strconv-to-enc-tests
56271         (test_u8_strconv_to_enc_LDADD): Likewise.
56272
56273 2007-10-22  Bruno Haible  <bruno@clisp.org>
56274
56275         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56276         size.
56277
56278 2007-10-22  Eric Blake  <ebb9@byu.net>
56279
56280         Tweak x*printf documentation.
56281         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56282         variable name and comments.
56283         Suggested by Bruno Haible.
56284
56285 2007-10-22  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/acl.c (copy_acl): Fix file name in comment.
56288
56289 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         Fix Tru64 problem with stdbool.h.
56292         * lib/stdbool.in.h (false, true):
56293         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56294         Don't declare as an enum in this situation; it runs afoul of Tru64.
56295         Problem reported by Steven M. Schweda in
56296         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56297
56298 2007-10-22  Eric Blake  <ebb9@byu.net>
56299
56300         Also wrap vf?printf.
56301         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56302         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56303         (xvprintf, xvfprintf): New functions.
56304
56305 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56306
56307         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56308         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56309
56310         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56311         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56312
56313 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56314
56315         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56316         by Bruno Haible.
56317
56318 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56319
56320         * lib/getloadavg.c
56321         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56322         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56323
56324         * tests/test-i-ring.c: Work for C89.
56325
56326 2007-10-22  Bruno Haible  <bruno@clisp.org>
56327
56328         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56329         -1u, in preprocessor expression, so that we don't test for the bug
56330         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56332
56333 2007-10-22  Eric Blake  <ebb9@byu.net>
56334
56335         * tests/test-yesno.sh: Silence stderr during test.
56336
56337 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56338
56339         * modules/crypto/gc-camellia: New file.
56340
56341         * m4/gc-camellia.m4: New file.
56342
56343         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56344
56345         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56346
56347 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56348
56349         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56350         --help to stdout.  Reported by sms@antinode.org (Steven
56351         M. Schweda).
56352
56353 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56354
56355         * users.txt: Fix link to libksba.
56356
56357 2007-10-21  Ben Pfaff  <blp@gnu.org>
56358
56359         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56360         round.c roundf implementation that depends on floorf and ceilf to
56361         be tested unconditionally.
56362
56363 2007-10-21  Ben Pfaff  <blp@gnu.org>
56364
56365         * m4/check-libm-func.m4: Removed.
56366         * m4/check-math-lib.m4: New file.
56367         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56368         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56369         definition and lack of AC_LIBOBJ([roundf]).
56370         * m4/roundl.m4: Ditto, and similarly for roundl.
56371         * modules/round: Reference new m4 file.
56372         * modules/roundf: Ditto.
56373         * modules/roundl: Ditto.
56374         * tests/test-round2.c (main): Use ROUND instead of round.
56375         Bug report from Bruno Haible.
56376
56377 2007-10-21  Bruno Haible  <bruno@clisp.org>
56378
56379         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56380         context.
56381
56382 2007-10-21  Bruno Haible  <bruno@clisp.org>
56383
56384         * tests/test-wcwidth.c (main): Allow negative result for some control
56385         characters.
56386
56387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56388         Needed on OSF/1 5.1.
56389
56390 2007-10-21  Bruno Haible  <bruno@clisp.org>
56391
56392         * tests/test-floorf1.c: Include isnanf.h.
56393         (main): Use isnanf() instead of isnan().
56394         * tests/test-ceilf1.c: Include isnanf.h.
56395         (main): Use isnanf() instead of isnan().
56396         * tests/test-truncf1.c: Include isnanf.h.
56397         (main): Use isnanf() instead of isnan().
56398         * tests/test-roundf1.c: Include isnanf.h.
56399         (main): Use isnanf() instead of isnan().
56400
56401 2007-10-21  Eric Blake  <ebb9@byu.net>
56402
56403         * users.txt: Update URL for m4.
56404
56405 2007-10-21  Bruno Haible  <bruno@clisp.org>
56406
56407         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56408
56409 2007-10-21  Bruno Haible  <bruno@clisp.org>
56410
56411         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56412         Git's management files if the CVS files are not present.
56413
56414 2007-10-20  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56417         gcc-3.4.x.
56418
56419 2007-10-20  Ben Pfaff  <blp@gnu.org>
56420
56421         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56422         implementations.
56423         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56424         * lib/round.c: New file.
56425         * lib/roundf.c: New file.
56426         * lib/roundl.c: New file.
56427         * m4/round.m4: New file.
56428         * m4/roundf.m4: New file.
56429         * m4/roundl.m4: New file.
56430         * m4/check-libm-func-m4: New file.
56431         * modules/math: Replace round, roundf, roundl related @VARS@ in
56432         math.in.h.
56433         * modules/round: New file.
56434         * modules/round-tests: New file.
56435         * modules/roundf: New file.
56436         * modules/roundf-tests: New file.
56437         * modules/roundl: New file.
56438         * modules/roundl-tests: New file.
56439         * tests/test-round1.c: New file.
56440         * tests/test-round2.c: New file.
56441         * tests/test-roundf1.c: New file.
56442         * tests/test-roundf2.c: New file.
56443         * tests/test-roundl.c: New file.
56444         * doc/functions/round.texi: Mention round module.
56445         * doc/functions/roundf.texi: Mention roundf module.
56446         * doc/functions/roundl.texi: Mention roundl module.
56447         * MODULES.html.sh: Mention new modules.
56448         Thanks to Bruno Haible for suggestions.
56449
56450 2007-10-20  Jim Meyering  <meyering@redhat.com>
56451
56452         * lib/xprintf.c: Include <config.h> unconditionally.
56453
56454         Change xprintf's license to GPL.
56455         * modules/xprintf (License): s/LGPL/GPL/, since this module
56456         depends on modules (exit and exitfail) which are GPL.
56457         Suggestion from Bruno Haible.
56458
56459         xprintf fixes.
56460         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56461         Use a clearer diagnostic.
56462         Patch from Bruno Haible.
56463
56464 2007-10-20  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56467         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56469
56470 2007-10-20  Bruno Haible  <bruno@clisp.org>
56471
56472         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56473         precision in the comparison result > x - 1 or similar.
56474         * tests/test-ceilf2.c (correct_result_p): Likewise.
56475         * tests/test-truncf2.c (correct_result_p): Likewise.
56476         * tests/test-trunc2.c (correct_result_p): Likewise.
56477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56478
56479 2007-10-20  Bruno Haible  <bruno@clisp.org>
56480
56481         * modules/ceil: New file.
56482         * m4/ceil.m4: New file.
56483         * doc/functions/ceil.texi: Mention the 'ceil' module.
56484
56485 2007-10-20  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/floor: New file.
56488         * m4/floor.m4: New file.
56489         * doc/functions/floor.texi: Mention the 'floor' module.
56490
56491 2007-10-20  Bruno Haible  <bruno@clisp.org>
56492
56493         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56494         of %a.
56495         * modules/floorf-tests (Depends-on): Likewise.
56496         * modules/truncf-tests (Depends-on): Likewise.
56497         * modules/trunc-tests (Depends-on): Likewise.
56498         Reported by Ben Pfaff.
56499
56500 2007-10-19  Jim Meyering  <meyering@redhat.com>
56501
56502         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56503         Don't bother testing specific errno values.  Just test ferror.
56504
56505         New module: xprintf
56506         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56507
56508 2007-10-19  Bruno Haible  <bruno@clisp.org>
56509
56510         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56511         syntax.
56512         * modules/javaexec (Makefile.am): Likewise.
56513         * modules/relocatable-prog (Makefile.am): Likewise.
56514         Suggested by Jim Meyering.
56515
56516 2007-10-18  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56519         Reported by Jim Meyering.
56520
56521 2007-10-18  Eric Blake  <ebb9@byu.net>
56522
56523         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56524
56525 2007-10-18  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56528         the format string into writable memory. Needed in Fortify conditions.
56529
56530 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56531             Bruno Haible  <bruno@clisp.org>
56532
56533         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56534         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56535         * modules/trim (Depends-on): Add mbchar.
56536         (configure.ac): Add gl_FUNC_MBRTOWC.
56537         (Makefile.am): Augment lib_SOURCES.
56538
56539 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56540
56541         Modify glob.c to use fstatat and dirfd, to simplify it.
56542         Suggested by Eric Blake.
56543         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56544         Don't include <stdbool.h>; not used.
56545         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56546         (link_exists_p): Simplify implementation, since we can now assume
56547         dirfd and fstatat.
56548         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56549
56550 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56551
56552         * gnulib-tool (func_get_dependencies): Fix sed script to
56553         match only tests.
56554
56555 2007-10-17  Bruno Haible  <bruno@clisp.org>
56556
56557         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56558         allow locale names without encoding suffix.
56559         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56561
56562 2007-10-16  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56565         * lib/getgroups.c (getgroups): Likewise.
56566         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56567
56568 2007-10-16  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56571         * modules/malloc-posix (License): Likewise.
56572         * modules/realloc-posix (License): Likewise.
56573         * modules/calloc-posix (License): Likewise.
56574         * modules/intprops (License): Change from GPL to LGPL, with
56575         Paul Eggert's approval.
56576
56577 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56578
56579         Merge glibc changes into lib/glob.c.
56580
56581         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56582         2007-10-15 04:59:03 UTC.  Here are the changes:
56583
56584         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56585
56586         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56587
56588         * lib/glob.c: Add some branch prediction throughout.
56589
56590         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56591
56592         [BZ #5103]
56593         * lib/glob.c (glob): Recognize patterns starting \/.
56594
56595         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56596
56597         [BZ #3996]
56598         * lib/glob.c (attribute_hidden): Define if not defined.
56599         (glob): Unescape dirname, filename or username when needed and not
56600         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56601         is NULL.  Handle unescaped [ in pattern without closing ].
56602         Don't pass GLOB_CHECK down to recursive glob for directories.
56603         (__glob_pattern_type): New function.
56604         (__glob_pattern_p): Implement using __glob_pattern_type.
56605         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56606         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56607         Remove unreachable code.
56608
56609         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56610
56611         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56612         explain why there are no leaks.
56613
56614         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56615
56616         [BZ #3253]
56617         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56618         time, rather allocate increasingly bigger arrays of pointers, if
56619         possible with alloca, if too large with malloc.
56620
56621 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56622
56623         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56624         Problem reported by H.Merijn Brand in
56625         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56626         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56627         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56628
56629 2007-10-15  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56632         with explicit rpl_ prefix.
56633         * lib/fopen.c (fopen): Likewise.
56634         * lib/freopen.c (freopen): Likewise.
56635         * lib/iconv.c (iconv): Likewise.
56636         * lib/iconv_close.c (iconv_close): Likewise.
56637
56638 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56639
56640         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56641
56642 2007-10-15  Bruno Haible  <bruno@clisp.org>
56643
56644         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56645         <stddef.h> instead of <stdlib.h> since we only need NULL.
56646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56647
56648 2007-10-15  Bruno Haible  <bruno@clisp.org>
56649
56650         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56651         Replace paragraph talking about LIBOBJS.
56652         Reported by Colin Watson <cjwatson@debian.org>.
56653
56654 2007-10-15  Bruno Haible  <bruno@clisp.org>
56655
56656         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56657         <stdlib.h> before using NULL.
56658
56659 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56660
56661         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56662         Reported by Albert Chin <china@thewrittenword.com>.
56663
56664 2007-10-14  Bruno Haible  <bruno@clisp.org>
56665
56666         * modules/iconv_open-utf-tests: New file.
56667         * tests/test-iconv-utf.c: New file.
56668
56669         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56670         * modules/iconv_open-utf: New file.
56671         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56672         (iconv, iconv_close): New declarations.
56673         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56674         be defined.
56675         (iconv_open): Add special handling of conversion between UTF-8 and
56676         UTF-{16,32}{BE,LE}.
56677         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56678         * lib/iconv_close.c: New file.
56679         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56680         gl_FUNC_ICONV_OPEN.
56681         (gl_FUNC_ICONV_OPEN): Use it.
56682         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56683         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56684         and REPLACE_ICONV_UTF.
56685         * modules/iconv_open (Depends-on): Add c-strcase.
56686         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56687         ICONV_CONST.
56688         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56689
56690 2007-10-13  Albert Chin  <china@thewrittenword.com>
56691             Bruno Haible  <bruno@clisp.org>
56692
56693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56694         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56695
56696 2007-10-13  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56699         defined, use the ISO C99 inline semantics.
56700         * lib/argp.h (ARGP_EI): Likewise.
56701
56702 2007-10-13  Bruno Haible  <bruno@clisp.org>
56703
56704         Handle 'inline' change in gcc 4.3.0.
56705         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56706         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56707         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56708         argp_fmtstream_point): Disable 'extern' declaration if the function
56709         definition is going to be provided inline.
56710         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56711         semantics, not the ISO C99 inline semantics.
56712         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56713         'extern' declaration if the function definition is going to be provided
56714         inline.
56715         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56716         the GNU C inline semantics, not the ISO C99 inline semantics. With
56717         GCC 4.2, avoid a warning.
56718
56719 2007-10-13  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/freading.h (freading): Enable the use of __freading for
56722         glibc >= 2.7.
56723         * lib/freading.c (freading): Likewise.
56724
56725 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56728         "warning: C99 inline functions are not supported; using GNU89".
56729
56730 2007-10-12  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56733         of 2.
56734         * tests/test-ceilf2.c: New file.
56735         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56736
56737         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56738         * modules/ceilf-tests: Update.
56739
56740 2007-10-12  Bruno Haible  <bruno@clisp.org>
56741
56742         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56743         of 2.
56744         * tests/test-floorf2.c: New file.
56745         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56746
56747         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56748         * modules/floorf-tests: Update.
56749
56750 2007-10-12  Bruno Haible  <bruno@clisp.org>
56751
56752         * tests/test-trunc2.c: New file.
56753         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56754
56755         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56756         * modules/trunc-tests: Update.
56757
56758 2007-10-12  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56761         of 2.
56762         * tests/test-truncf2.c: New file.
56763         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56764
56765         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56766         * modules/truncf-tests: Update.
56767
56768 2007-10-11  Eric Blake  <ebb9@byu.net>
56769
56770         Don't claim strerror is broken on Interix.
56771         * doc/functions/strerror.texi (strerror): Known broken systems are
56772         now Solaris 8, and not Interix.
56773         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56774         Interix on cross-compile.
56775         Reported by Martin Koeppe in
56776         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56777
56778 2007-10-11  Bruno Haible  <bruno@clisp.org>
56779
56780         * modules/i-ring-tests: New file.
56781         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56782         instead of assert.
56783
56784 2007-10-11  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/filenamecat-tests: New file.
56787         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56788         * lib/filenamecat.c: Remove test code.
56789
56790 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56791
56792         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56793
56794         * lib/strerror.c: Include <string.h> always, to test interface,
56795         and to remove the need for the dummy.
56796         Include intprops.h to compute width instead of doing it ourselves
56797         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56798         (strerror): Define it to return NULL if there's no system strerror.
56799         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56800         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56801         ancient pre-strerror Unix systems well any more.  Saying "unknown
56802         system error" is enough.
56803         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56804         simpler strerror.c implementation.
56805         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56806         Simplify the tests to reflect the simpler strerror implementation.
56807         * modules/strerror (Depends-on): Add intprops.
56808
56809 2007-10-09  Eric Blake  <ebb9@byu.net>
56810
56811         Silence test-fpending.
56812         * modules/fpending-tests (Files): Add wrapper script.
56813         * tests/test-fpending.sh: New file.
56814
56815 2007-10-09  Bruno Haible  <bruno@clisp.org>
56816
56817         * MODULES.html.sh (func_module): Don't create a hyperlink for
56818         function names like 'printf_frexp'.
56819         (Misc): Add crc, memxor.
56820         (Characteristics of floating types): New section.
56821         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56822         isnanf-nolibm, signbit, trunc, truncf, truncl.
56823         (Enhancements for ISO C 99 functions): New subsection Input/output.
56824         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56825         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56826         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56827         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56828         (Enhancements for POSIX:2001 functions): Add chdir-long.
56829         (File system functions): Add areadlink, chdir-safer, read-file.
56830         Remove cycle-check.
56831         (File system as inode set): New section.
56832         (Date and time): Add gethrxtime.
56833         (Multithreading): Add openmp.
56834         (Internationalization functions): Add localename.
56835         (Unicode string functions): Add unistr/u*-mbsnlen.
56836         (Support for maintaining and releasing projects): Add git-version-gen.
56837         (Lone files): Remove directories.
56838
56839 2007-10-08  Ben Pfaff  <blp@gnu.org>
56840
56841         * lib/xmalloca.h: Fix typo in comment.
56842
56843 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56846         when avoiding problems with integer overflow.  Use a portable test
56847         instead.
56848
56849 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56850
56851         * modules/dummy (License): Change to LGPLv2+.
56852         * modules/float (License): Likewise
56853         * modules/realloc (License): Likewise
56854         * modules/stdlib (License): Likewise
56855
56856 2007-10-07  Bruno Haible  <bruno@clisp.org>
56857
56858         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56859         * floor.c (TWO_MANT_DIG): Likewise.
56860         * ceil.c (TWO_MANT_DIG): Likewise.
56861         Reported by Ben Pfaff.
56862
56863 2007-10-07  Bruno Haible  <bruno@clisp.org>
56864
56865         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56866         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56867         * lib/frexp.c (FUNC): Likewise.
56868         * lib/printf-frexp.h (printf_frexp): Likewise.
56869         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56870         * lib/printf-frexp.c (FUNC): Likewise.
56871         Suggested by Jim Meyering.
56872
56873 2007-10-07  Jim Meyering  <meyering@redhat.com>
56874
56875         Make xnanosleep's integer overflow test more robust.
56876         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56877         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56878
56879 2007-10-07  Bruno Haible  <bruno@clisp.org>
56880
56881         * NEWS: Mention the license change.
56882
56883         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56884         abbreviations in the modules files.
56885
56886         Change copyright notice from GPLv2+ to GPLv3+.
56887         * README: Change copyright notice.
56888         * MODULES.html.sh: Likewise.
56889         * build-aux/bootstrap.conf: Likewise.
56890         * build-aux/config.libpath: Likewise.
56891         * build-aux/csharpcomp.sh.in: Likewise.
56892         * build-aux/csharpexec.sh.in: Likewise.
56893         * build-aux/install-reloc: Likewise.
56894         * build-aux/javacomp.sh.in: Likewise.
56895         * build-aux/javaexec.sh.in: Likewise.
56896         * build-aux/ldd.sh.in: Likewise.
56897         * build-aux/reloc-ldflags: Likewise.
56898         * build-aux/relocatable.sh.in: Likewise.
56899         * build-aux/x-to-1.in: Likewise.
56900         * check-module: Likewise.
56901         * config/srclistvars.sh: Likewise.
56902         * gnulib-tool: Likewise.
56903         * lib/acl-internal.h: Likewise.
56904         * lib/acl.c: Likewise.
56905         * lib/acl.h: Likewise.
56906         * lib/acl_entries.c: Likewise.
56907         * lib/areadlink-with-size.c: Likewise.
56908         * lib/areadlink.c: Likewise.
56909         * lib/areadlink.h: Likewise.
56910         * lib/argmatch.c: Likewise.
56911         * lib/argmatch.h: Likewise.
56912         * lib/argp-ba.c: Likewise.
56913         * lib/argp-eexst.c: Likewise.
56914         * lib/argp-fmtstream.c: Likewise.
56915         * lib/argp-fmtstream.h: Likewise.
56916         * lib/argp-fs-xinl.c: Likewise.
56917         * lib/argp-help.c: Likewise.
56918         * lib/argp-namefrob.h: Likewise.
56919         * lib/argp-parse.c: Likewise.
56920         * lib/argp-pin.c: Likewise.
56921         * lib/argp-pv.c: Likewise.
56922         * lib/argp-pvh.c: Likewise.
56923         * lib/argp-xinl.c: Likewise.
56924         * lib/argp.h: Likewise.
56925         * lib/at-func.c: Likewise.
56926         * lib/atanl.c: Likewise.
56927         * lib/backupfile.c: Likewise.
56928         * lib/backupfile.h: Likewise.
56929         * lib/basename.c: Likewise.
56930         * lib/binary-io.h: Likewise.
56931         * lib/byteswap.in.h: Likewise.
56932         * lib/c-stack.c: Likewise.
56933         * lib/c-stack.h: Likewise.
56934         * lib/c-strcasestr.c: Likewise.
56935         * lib/c-strcasestr.h: Likewise.
56936         * lib/c-strstr.c: Likewise.
56937         * lib/c-strstr.h: Likewise.
56938         * lib/c-strtod.c: Likewise.
56939         * lib/calloc.c: Likewise.
56940         * lib/canon-host.c: Likewise.
56941         * lib/canon-host.h: Likewise.
56942         * lib/canonicalize-lgpl.c: Likewise.
56943         * lib/canonicalize.c: Likewise.
56944         * lib/canonicalize.h: Likewise.
56945         * lib/ceil.c: Likewise.
56946         * lib/ceilf.c: Likewise.
56947         * lib/ceill.c: Likewise.
56948         * lib/chdir-long.c: Likewise.
56949         * lib/chdir-long.h: Likewise.
56950         * lib/chdir-safer.c: Likewise.
56951         * lib/chdir-safer.h: Likewise.
56952         * lib/chown.c: Likewise.
56953         * lib/classpath.c: Likewise.
56954         * lib/classpath.h: Likewise.
56955         * lib/clean-temp.c: Likewise.
56956         * lib/clean-temp.h: Likewise.
56957         * lib/cloexec.c: Likewise.
56958         * lib/close-stream.c: Likewise.
56959         * lib/closein.c: Likewise.
56960         * lib/closein.h: Likewise.
56961         * lib/closeout.c: Likewise.
56962         * lib/closeout.h: Likewise.
56963         * lib/concat-filename.c: Likewise.
56964         * lib/copy-file.c: Likewise.
56965         * lib/copy-file.h: Likewise.
56966         * lib/count-one-bits.h: Likewise.
56967         * lib/crc.c: Likewise.
56968         * lib/crc.h: Likewise.
56969         * lib/creat-safer.c: Likewise.
56970         * lib/csharpcomp.c: Likewise.
56971         * lib/csharpcomp.h: Likewise.
56972         * lib/csharpexec.c: Likewise.
56973         * lib/csharpexec.h: Likewise.
56974         * lib/cycle-check.c: Likewise.
56975         * lib/cycle-check.h: Likewise.
56976         * lib/diacrit.c: Likewise.
56977         * lib/diacrit.h: Likewise.
56978         * lib/diffseq.h: Likewise.
56979         * lib/dirchownmod.c: Likewise.
56980         * lib/dirent.in.h: Likewise.
56981         * lib/dirfd.c: Likewise.
56982         * lib/dirfd.h: Likewise.
56983         * lib/dirname.c: Likewise.
56984         * lib/dirname.h: Likewise.
56985         * lib/dummy.c: Likewise.
56986         * lib/dup-safer.c: Likewise.
56987         * lib/dup2.c: Likewise.
56988         * lib/eealloc.h: Likewise.
56989         * lib/error.c: Likewise.
56990         * lib/error.h: Likewise.
56991         * lib/euidaccess.c: Likewise.
56992         * lib/exclude.c: Likewise.
56993         * lib/exclude.h: Likewise.
56994         * lib/execute.c: Likewise.
56995         * lib/execute.h: Likewise.
56996         * lib/exitfail.c: Likewise.
56997         * lib/exitfail.h: Likewise.
56998         * lib/expl.c: Likewise.
56999         * lib/fatal-signal.c: Likewise.
57000         * lib/fatal-signal.h: Likewise.
57001         * lib/fbufmode.c: Likewise.
57002         * lib/fbufmode.h: Likewise.
57003         * lib/fchdir.c: Likewise.
57004         * lib/fchmodat.c: Likewise.
57005         * lib/fchownat.c: Likewise.
57006         * lib/fcntl--.h: Likewise.
57007         * lib/fcntl-safer.h: Likewise.
57008         * lib/fcntl.in.h: Likewise.
57009         * lib/fd-safer.c: Likewise.
57010         * lib/fflush.c: Likewise.
57011         * lib/file-has-acl.c: Likewise.
57012         * lib/file-set.c: Likewise.
57013         * lib/file-type.c: Likewise.
57014         * lib/file-type.h: Likewise.
57015         * lib/fileblocks.c: Likewise.
57016         * lib/filemode.c: Likewise.
57017         * lib/filemode.h: Likewise.
57018         * lib/filename.h: Likewise.
57019         * lib/filenamecat.c: Likewise.
57020         * lib/filenamecat.h: Likewise.
57021         * lib/findprog.c: Likewise.
57022         * lib/findprog.h: Likewise.
57023         * lib/float.in.h: Likewise.
57024         * lib/floor.c: Likewise.
57025         * lib/floorf.c: Likewise.
57026         * lib/floorl.c: Likewise.
57027         * lib/fopen-safer.c: Likewise.
57028         * lib/fopen.c: Likewise.
57029         * lib/fpending.c: Likewise.
57030         * lib/fpending.h: Likewise.
57031         * lib/fprintf.c: Likewise.
57032         * lib/fprintftime.h: Likewise.
57033         * lib/fpucw.h: Likewise.
57034         * lib/fpurge.c: Likewise.
57035         * lib/fpurge.h: Likewise.
57036         * lib/freadable.c: Likewise.
57037         * lib/freadable.h: Likewise.
57038         * lib/freadahead.c: Likewise.
57039         * lib/freadahead.h: Likewise.
57040         * lib/freading.c: Likewise.
57041         * lib/freading.h: Likewise.
57042         * lib/free.c: Likewise.
57043         * lib/freopen.c: Likewise.
57044         * lib/frexp.c: Likewise.
57045         * lib/frexpl.c: Likewise.
57046         * lib/fseek.c: Likewise.
57047         * lib/fseterr.c: Likewise.
57048         * lib/fseterr.h: Likewise.
57049         * lib/fstatat.c: Likewise.
57050         * lib/fstrcmp.c: Likewise.
57051         * lib/fstrcmp.h: Likewise.
57052         * lib/fsusage.c: Likewise.
57053         * lib/fsusage.h: Likewise.
57054         * lib/ftell.c: Likewise.
57055         * lib/ftello.c: Likewise.
57056         * lib/fts-cycle.c: Likewise.
57057         * lib/fts.c: Likewise.
57058         * lib/fts_.h: Likewise.
57059         * lib/full-read.c: Likewise.
57060         * lib/full-read.h: Likewise.
57061         * lib/full-write.c: Likewise.
57062         * lib/full-write.h: Likewise.
57063         * lib/fwritable.c: Likewise.
57064         * lib/fwritable.h: Likewise.
57065         * lib/fwriteerror.c: Likewise.
57066         * lib/fwriteerror.h: Likewise.
57067         * lib/fwriting.c: Likewise.
57068         * lib/fwriting.h: Likewise.
57069         * lib/gcd.c: Likewise.
57070         * lib/gcd.h: Likewise.
57071         * lib/getcwd.c: Likewise.
57072         * lib/getdate.h: Likewise.
57073         * lib/getdate.y: Likewise.
57074         * lib/getdomainname.c: Likewise.
57075         * lib/getdomainname.h: Likewise.
57076         * lib/getgroups.c: Likewise.
57077         * lib/gethostname.c: Likewise.
57078         * lib/gethrxtime.c: Likewise.
57079         * lib/gethrxtime.h: Likewise.
57080         * lib/getloadavg.c: Likewise.
57081         * lib/getndelim2.c: Likewise.
57082         * lib/getndelim2.h: Likewise.
57083         * lib/getnline.c: Likewise.
57084         * lib/getnline.h: Likewise.
57085         * lib/getopt.c: Likewise.
57086         * lib/getopt.in.h: Likewise.
57087         * lib/getopt1.c: Likewise.
57088         * lib/getopt_int.h: Likewise.
57089         * lib/getpagesize.h: Likewise.
57090         * lib/getsubopt.c: Likewise.
57091         * lib/gettime.c: Likewise.
57092         * lib/getugroups.c: Likewise.
57093         * lib/getugroups.h: Likewise.
57094         * lib/getusershell.c: Likewise.
57095         * lib/gl_anyavltree_list1.h: Likewise.
57096         * lib/gl_anyavltree_list2.h: Likewise.
57097         * lib/gl_anyhash_list1.h: Likewise.
57098         * lib/gl_anyhash_list2.h: Likewise.
57099         * lib/gl_anylinked_list1.h: Likewise.
57100         * lib/gl_anylinked_list2.h: Likewise.
57101         * lib/gl_anyrbtree_list1.h: Likewise.
57102         * lib/gl_anyrbtree_list2.h: Likewise.
57103         * lib/gl_anytree_list1.h: Likewise.
57104         * lib/gl_anytree_list2.h: Likewise.
57105         * lib/gl_anytree_oset.h: Likewise.
57106         * lib/gl_anytreehash_list1.h: Likewise.
57107         * lib/gl_anytreehash_list2.h: Likewise.
57108         * lib/gl_array_list.c: Likewise.
57109         * lib/gl_array_list.h: Likewise.
57110         * lib/gl_array_oset.c: Likewise.
57111         * lib/gl_array_oset.h: Likewise.
57112         * lib/gl_avltree_list.c: Likewise.
57113         * lib/gl_avltree_list.h: Likewise.
57114         * lib/gl_avltree_oset.c: Likewise.
57115         * lib/gl_avltree_oset.h: Likewise.
57116         * lib/gl_avltreehash_list.c: Likewise.
57117         * lib/gl_avltreehash_list.h: Likewise.
57118         * lib/gl_carray_list.c: Likewise.
57119         * lib/gl_carray_list.h: Likewise.
57120         * lib/gl_linked_list.c: Likewise.
57121         * lib/gl_linked_list.h: Likewise.
57122         * lib/gl_linkedhash_list.c: Likewise.
57123         * lib/gl_linkedhash_list.h: Likewise.
57124         * lib/gl_list.c: Likewise.
57125         * lib/gl_list.h: Likewise.
57126         * lib/gl_oset.c: Likewise.
57127         * lib/gl_oset.h: Likewise.
57128         * lib/gl_rbtree_list.c: Likewise.
57129         * lib/gl_rbtree_list.h: Likewise.
57130         * lib/gl_rbtree_oset.c: Likewise.
57131         * lib/gl_rbtree_oset.h: Likewise.
57132         * lib/gl_rbtreehash_list.c: Likewise.
57133         * lib/gl_rbtreehash_list.h: Likewise.
57134         * lib/gl_sublist.c: Likewise.
57135         * lib/gl_sublist.h: Likewise.
57136         * lib/group-member.c: Likewise.
57137         * lib/group-member.h: Likewise.
57138         * lib/hard-locale.c: Likewise.
57139         * lib/hard-locale.h: Likewise.
57140         * lib/hash-pjw.c: Likewise.
57141         * lib/hash-pjw.h: Likewise.
57142         * lib/hash-triple.c: Likewise.
57143         * lib/hash.c: Likewise.
57144         * lib/hash.h: Likewise.
57145         * lib/human.c: Likewise.
57146         * lib/human.h: Likewise.
57147         * lib/i-ring.c: Likewise.
57148         * lib/i-ring.h: Likewise.
57149         * lib/idcache.c: Likewise.
57150         * lib/imaxabs.c: Likewise.
57151         * lib/imaxdiv.c: Likewise.
57152         * lib/inet_pton.c: Likewise.
57153         * lib/inet_pton.h: Likewise.
57154         * lib/intprops.h: Likewise.
57155         * lib/inttostr.c: Likewise.
57156         * lib/inttostr.h: Likewise.
57157         * lib/inttypes.in.h: Likewise.
57158         * lib/isapipe.c: Likewise.
57159         * lib/isdir.c: Likewise.
57160         * lib/isnan.c: Likewise.
57161         * lib/isnan.h: Likewise.
57162         * lib/isnanf.c: Likewise.
57163         * lib/isnanf.h: Likewise.
57164         * lib/isnanl-nolibm.h: Likewise.
57165         * lib/isnanl.c: Likewise.
57166         * lib/isnanl.h: Likewise.
57167         * lib/javacomp.c: Likewise.
57168         * lib/javacomp.h: Likewise.
57169         * lib/javaexec.c: Likewise.
57170         * lib/javaexec.h: Likewise.
57171         * lib/javaversion.c: Likewise.
57172         * lib/javaversion.h: Likewise.
57173         * lib/javaversion.java: Likewise.
57174         * lib/lbrkprop.h: Likewise.
57175         * lib/lchmod.h: Likewise.
57176         * lib/lchown.c: Likewise.
57177         * lib/ldexpl.c: Likewise.
57178         * lib/linebreak.c: Likewise.
57179         * lib/linebreak.h: Likewise.
57180         * lib/linebuffer.c: Likewise.
57181         * lib/linebuffer.h: Likewise.
57182         * lib/locale.in.h: Likewise.
57183         * lib/logl.c: Likewise.
57184         * lib/long-options.c: Likewise.
57185         * lib/long-options.h: Likewise.
57186         * lib/lstat.c: Likewise.
57187         * lib/lstat.h: Likewise.
57188         * lib/math.in.h: Likewise.
57189         * lib/mbchar.c: Likewise.
57190         * lib/mbchar.h: Likewise.
57191         * lib/mbfile.h: Likewise.
57192         * lib/mbiter.h: Likewise.
57193         * lib/mbscasecmp.c: Likewise.
57194         * lib/mbscasestr.c: Likewise.
57195         * lib/mbschr.c: Likewise.
57196         * lib/mbscspn.c: Likewise.
57197         * lib/mbslen.c: Likewise.
57198         * lib/mbsncasecmp.c: Likewise.
57199         * lib/mbsnlen.c: Likewise.
57200         * lib/mbspbrk.c: Likewise.
57201         * lib/mbspcasecmp.c: Likewise.
57202         * lib/mbsrchr.c: Likewise.
57203         * lib/mbssep.c: Likewise.
57204         * lib/mbsspn.c: Likewise.
57205         * lib/mbsstr.c: Likewise.
57206         * lib/mbstok_r.c: Likewise.
57207         * lib/mbswidth.c: Likewise.
57208         * lib/mbswidth.h: Likewise.
57209         * lib/mbuiter.h: Likewise.
57210         * lib/memcasecmp.c: Likewise.
57211         * lib/memcasecmp.h: Likewise.
57212         * lib/memchr.c: Likewise.
57213         * lib/memcmp.c: Likewise.
57214         * lib/memcoll.c: Likewise.
57215         * lib/memcoll.h: Likewise.
57216         * lib/memcpy.c: Likewise.
57217         * lib/memrchr.c: Likewise.
57218         * lib/mkancesdirs.c: Likewise.
57219         * lib/mkdir-p.c: Likewise.
57220         * lib/mkdir-p.h: Likewise.
57221         * lib/mkdir.c: Likewise.
57222         * lib/mkdirat.c: Likewise.
57223         * lib/mkdtemp.c: Likewise.
57224         * lib/mkstemp-safer.c: Likewise.
57225         * lib/mkstemp.c: Likewise.
57226         * lib/modechange.c: Likewise.
57227         * lib/modechange.h: Likewise.
57228         * lib/mountlist.c: Likewise.
57229         * lib/mountlist.h: Likewise.
57230         * lib/mpsort.c: Likewise.
57231         * lib/nanosleep.c: Likewise.
57232         * lib/obstack.c: Likewise.
57233         * lib/obstack.h: Likewise.
57234         * lib/open-safer.c: Likewise.
57235         * lib/open.c: Likewise.
57236         * lib/openat-die.c: Likewise.
57237         * lib/openat-priv.h: Likewise.
57238         * lib/openat-proc.c: Likewise.
57239         * lib/openat.c: Likewise.
57240         * lib/openat.h: Likewise.
57241         * lib/pagealign_alloc.c: Likewise.
57242         * lib/pagealign_alloc.h: Likewise.
57243         * lib/physmem.c: Likewise.
57244         * lib/physmem.h: Likewise.
57245         * lib/pipe-safer.c: Likewise.
57246         * lib/pipe.c: Likewise.
57247         * lib/pipe.h: Likewise.
57248         * lib/posixtm.c: Likewise.
57249         * lib/posixtm.h: Likewise.
57250         * lib/posixver.c: Likewise.
57251         * lib/printf-frexp.c: Likewise.
57252         * lib/printf-frexp.h: Likewise.
57253         * lib/printf-frexpl.c: Likewise.
57254         * lib/printf-frexpl.h: Likewise.
57255         * lib/printf.c: Likewise.
57256         * lib/progname.c: Likewise.
57257         * lib/progname.h: Likewise.
57258         * lib/progreloc.c: Likewise.
57259         * lib/putenv.c: Likewise.
57260         * lib/quote.c: Likewise.
57261         * lib/quote.h: Likewise.
57262         * lib/quotearg.c: Likewise.
57263         * lib/quotearg.h: Likewise.
57264         * lib/raise.c: Likewise.
57265         * lib/readline.c: Likewise.
57266         * lib/readline.h: Likewise.
57267         * lib/readlink.c: Likewise.
57268         * lib/readtokens.c: Likewise.
57269         * lib/readtokens.h: Likewise.
57270         * lib/readtokens0.c: Likewise.
57271         * lib/readtokens0.h: Likewise.
57272         * lib/readutmp.c: Likewise.
57273         * lib/readutmp.h: Likewise.
57274         * lib/realloc.c: Likewise.
57275         * lib/relocwrapper.c: Likewise.
57276         * lib/rename-dest-slash.c: Likewise.
57277         * lib/rename.c: Likewise.
57278         * lib/rmdir.c: Likewise.
57279         * lib/rpmatch.c: Likewise.
57280         * lib/safe-read.c: Likewise.
57281         * lib/safe-read.h: Likewise.
57282         * lib/safe-write.c: Likewise.
57283         * lib/safe-write.h: Likewise.
57284         * lib/same-inode.h: Likewise.
57285         * lib/same.c: Likewise.
57286         * lib/same.h: Likewise.
57287         * lib/save-cwd.c: Likewise.
57288         * lib/save-cwd.h: Likewise.
57289         * lib/savedir.c: Likewise.
57290         * lib/savedir.h: Likewise.
57291         * lib/savewd.c: Likewise.
57292         * lib/savewd.h: Likewise.
57293         * lib/search.in.h: Likewise.
57294         * lib/setenv.c: Likewise.
57295         * lib/setenv.h: Likewise.
57296         * lib/settime.c: Likewise.
57297         * lib/sh-quote.c: Likewise.
57298         * lib/sh-quote.h: Likewise.
57299         * lib/sig2str.c: Likewise.
57300         * lib/sig2str.h: Likewise.
57301         * lib/signal.in.h: Likewise.
57302         * lib/signbitd.c: Likewise.
57303         * lib/signbitf.c: Likewise.
57304         * lib/signbitl.c: Likewise.
57305         * lib/sigprocmask.c: Likewise.
57306         * lib/sincosl.c: Likewise.
57307         * lib/sleep.c: Likewise.
57308         * lib/sprintf.c: Likewise.
57309         * lib/sqrtl.c: Likewise.
57310         * lib/stat-time.h: Likewise.
57311         * lib/stdio--.h: Likewise.
57312         * lib/stdio-safer.h: Likewise.
57313         * lib/stdlib--.h: Likewise.
57314         * lib/stdlib-safer.h: Likewise.
57315         * lib/stdlib.in.h: Likewise.
57316         * lib/stpcpy.c: Likewise.
57317         * lib/stpncpy.c: Likewise.
57318         * lib/strchrnul.c: Likewise.
57319         * lib/strcspn.c: Likewise.
57320         * lib/strerror.c: Likewise.
57321         * lib/strftime.c: Likewise.
57322         * lib/strftime.h: Likewise.
57323         * lib/striconveh.c: Likewise.
57324         * lib/striconveh.h: Likewise.
57325         * lib/striconveha.c: Likewise.
57326         * lib/striconveha.h: Likewise.
57327         * lib/stripslash.c: Likewise.
57328         * lib/strnlen1.c: Likewise.
57329         * lib/strnlen1.h: Likewise.
57330         * lib/strtod.c: Likewise.
57331         * lib/strtoimax.c: Likewise.
57332         * lib/strtok_r.c: Likewise.
57333         * lib/strtol.c: Likewise.
57334         * lib/strtoll.c: Likewise.
57335         * lib/strtoul.c: Likewise.
57336         * lib/strtoull.c: Likewise.
57337         * lib/sysexits.in.h: Likewise.
57338         * lib/tempname.c: Likewise.
57339         * lib/tempname.h: Likewise.
57340         * lib/timespec.h: Likewise.
57341         * lib/tls.c: Likewise.
57342         * lib/tls.h: Likewise.
57343         * lib/tmpdir.c: Likewise.
57344         * lib/tmpdir.h: Likewise.
57345         * lib/tmpfile-safer.c: Likewise.
57346         * lib/tmpfile.c: Likewise.
57347         * lib/trigl.c: Likewise.
57348         * lib/trigl.h: Likewise.
57349         * lib/trim.c: Likewise.
57350         * lib/trim.h: Likewise.
57351         * lib/trunc.c: Likewise.
57352         * lib/truncf.c: Likewise.
57353         * lib/truncl.c: Likewise.
57354         * lib/tsearch.c: Likewise.
57355         * lib/unicodeio.c: Likewise.
57356         * lib/unicodeio.h: Likewise.
57357         * lib/unistd--.h: Likewise.
57358         * lib/unistd-safer.h: Likewise.
57359         * lib/unistdio/ulc-fprintf.c: Likewise.
57360         * lib/unistdio/ulc-vfprintf.c: Likewise.
57361         * lib/unlinkdir.c: Likewise.
57362         * lib/unlinkdir.h: Likewise.
57363         * lib/unlocked-io.h: Likewise.
57364         * lib/unsetenv.c: Likewise.
57365         * lib/userspec.c: Likewise.
57366         * lib/utime.c: Likewise.
57367         * lib/utimecmp.c: Likewise.
57368         * lib/utimecmp.h: Likewise.
57369         * lib/utimens.c: Likewise.
57370         * lib/verify.h: Likewise.
57371         * lib/verror.c: Likewise.
57372         * lib/verror.h: Likewise.
57373         * lib/version-etc-fsf.c: Likewise.
57374         * lib/version-etc.c: Likewise.
57375         * lib/version-etc.h: Likewise.
57376         * lib/vfprintf.c: Likewise.
57377         * lib/vprintf.c: Likewise.
57378         * lib/vsprintf.c: Likewise.
57379         * lib/w32spawn.h: Likewise.
57380         * lib/wait-process.c: Likewise.
57381         * lib/wait-process.h: Likewise.
57382         * lib/wcwidth.c: Likewise.
57383         * lib/write-any-file.c: Likewise.
57384         * lib/xalloc-die.c: Likewise.
57385         * lib/xalloc.h: Likewise.
57386         * lib/xasprintf.c: Likewise.
57387         * lib/xgetcwd.c: Likewise.
57388         * lib/xgetcwd.h: Likewise.
57389         * lib/xgetdomainname.c: Likewise.
57390         * lib/xgetdomainname.h: Likewise.
57391         * lib/xgethostname.c: Likewise.
57392         * lib/xmalloc.c: Likewise.
57393         * lib/xmalloca.c: Likewise.
57394         * lib/xmalloca.h: Likewise.
57395         * lib/xmemcoll.c: Likewise.
57396         * lib/xnanosleep.c: Likewise.
57397         * lib/xreadlink.c: Likewise.
57398         * lib/xreadlink.h: Likewise.
57399         * lib/xsetenv.c: Likewise.
57400         * lib/xsetenv.h: Likewise.
57401         * lib/xstriconv.c: Likewise.
57402         * lib/xstriconv.h: Likewise.
57403         * lib/xstrndup.c: Likewise.
57404         * lib/xstrndup.h: Likewise.
57405         * lib/xstrtod.c: Likewise.
57406         * lib/xstrtod.h: Likewise.
57407         * lib/xstrtol-error.c: Likewise.
57408         * lib/xstrtol.c: Likewise.
57409         * lib/xstrtol.h: Likewise.
57410         * lib/xtime.h: Likewise.
57411         * lib/xvasprintf.c: Likewise.
57412         * lib/xvasprintf.h: Likewise.
57413         * lib/yesno.c: Likewise.
57414         * lib/yesno.h: Likewise.
57415         * posix-modules: Likewise.
57416         * tests/test-alloca-opt.c: Likewise.
57417         * tests/test-arcfour.c: Likewise.
57418         * tests/test-arctwo.c: Likewise.
57419         * tests/test-argmatch.c: Likewise.
57420         * tests/test-argp-2.sh: Likewise.
57421         * tests/test-argp.c: Likewise.
57422         * tests/test-arpa_inet.c: Likewise.
57423         * tests/test-array_list.c: Likewise.
57424         * tests/test-array_oset.c: Likewise.
57425         * tests/test-atexit.c: Likewise.
57426         * tests/test-avltree_list.c: Likewise.
57427         * tests/test-avltree_oset.c: Likewise.
57428         * tests/test-avltreehash_list.c: Likewise.
57429         * tests/test-base64.c: Likewise.
57430         * tests/test-binary-io.c: Likewise.
57431         * tests/test-byteswap.c: Likewise.
57432         * tests/test-c-ctype.c: Likewise.
57433         * tests/test-c-strcasecmp.c: Likewise.
57434         * tests/test-c-strcasestr.c: Likewise.
57435         * tests/test-c-strncasecmp.c: Likewise.
57436         * tests/test-c-strstr.c: Likewise.
57437         * tests/test-canonicalize-lgpl.c: Likewise.
57438         * tests/test-canonicalize.c: Likewise.
57439         * tests/test-carray_list.c: Likewise.
57440         * tests/test-ceilf.c: Likewise.
57441         * tests/test-ceill.c: Likewise.
57442         * tests/test-count-one-bits.c: Likewise.
57443         * tests/test-crc.c: Likewise.
57444         * tests/test-dirname.c: Likewise.
57445         * tests/test-fbufmode.c: Likewise.
57446         * tests/test-fcntl.c: Likewise.
57447         * tests/test-fflush.c: Likewise.
57448         * tests/test-floorf.c: Likewise.
57449         * tests/test-floorl.c: Likewise.
57450         * tests/test-fopen.c: Likewise.
57451         * tests/test-fprintf-posix.c: Likewise.
57452         * tests/test-fprintf-posix.h: Likewise.
57453         * tests/test-fpurge.c: Likewise.
57454         * tests/test-freadable.c: Likewise.
57455         * tests/test-freadahead.c: Likewise.
57456         * tests/test-freading.c: Likewise.
57457         * tests/test-freopen.c: Likewise.
57458         * tests/test-frexp.c: Likewise.
57459         * tests/test-frexpl.c: Likewise.
57460         * tests/test-fseek.c: Likewise.
57461         * tests/test-fseeko.c: Likewise.
57462         * tests/test-fseterr.c: Likewise.
57463         * tests/test-fstrcmp.c: Likewise.
57464         * tests/test-ftell.c: Likewise.
57465         * tests/test-ftello.c: Likewise.
57466         * tests/test-fwritable.c: Likewise.
57467         * tests/test-fwriting.c: Likewise.
57468         * tests/test-getaddrinfo.c: Likewise.
57469         * tests/test-getpass.c: Likewise.
57470         * tests/test-gettimeofday.c: Likewise.
57471         * tests/test-hmac-md5.c: Likewise.
57472         * tests/test-hmac-sha1.c: Likewise.
57473         * tests/test-iconv.c: Likewise.
57474         * tests/test-iconvme.c: Likewise.
57475         * tests/test-inttypes.c: Likewise.
57476         * tests/test-isnan.c: Likewise.
57477         * tests/test-isnanf.c: Likewise.
57478         * tests/test-isnanl-nolibm.c: Likewise.
57479         * tests/test-isnanl.c: Likewise.
57480         * tests/test-isnanl.h: Likewise.
57481         * tests/test-ldexpl.c: Likewise.
57482         * tests/test-linked_list.c: Likewise.
57483         * tests/test-linkedhash_list.c: Likewise.
57484         * tests/test-locale.c: Likewise.
57485         * tests/test-localename.c: Likewise.
57486         * tests/test-lock.c: Likewise.
57487         * tests/test-lseek.c: Likewise.
57488         * tests/test-malloca.c: Likewise.
57489         * tests/test-math.c: Likewise.
57490         * tests/test-mbscasecmp.c: Likewise.
57491         * tests/test-mbscasestr1.c: Likewise.
57492         * tests/test-mbscasestr2.c: Likewise.
57493         * tests/test-mbscasestr3.c: Likewise.
57494         * tests/test-mbscasestr4.c: Likewise.
57495         * tests/test-mbschr.c: Likewise.
57496         * tests/test-mbscspn.c: Likewise.
57497         * tests/test-mbsncasecmp.c: Likewise.
57498         * tests/test-mbspbrk.c: Likewise.
57499         * tests/test-mbspcasecmp.c: Likewise.
57500         * tests/test-mbsrchr.c: Likewise.
57501         * tests/test-mbsspn.c: Likewise.
57502         * tests/test-mbsstr1.c: Likewise.
57503         * tests/test-mbsstr2.c: Likewise.
57504         * tests/test-mbsstr3.c: Likewise.
57505         * tests/test-md5.c: Likewise.
57506         * tests/test-memmem.c: Likewise.
57507         * tests/test-netinet_in.c: Likewise.
57508         * tests/test-open.c: Likewise.
57509         * tests/test-printf-frexp.c: Likewise.
57510         * tests/test-printf-frexpl.c: Likewise.
57511         * tests/test-printf-posix.c: Likewise.
57512         * tests/test-printf-posix.h: Likewise.
57513         * tests/test-rbtree_list.c: Likewise.
57514         * tests/test-rbtree_oset.c: Likewise.
57515         * tests/test-rbtreehash_list.c: Likewise.
57516         * tests/test-read-file.c: Likewise.
57517         * tests/test-rijndael.c: Likewise.
57518         * tests/test-search.c: Likewise.
57519         * tests/test-signbit.c: Likewise.
57520         * tests/test-sleep.c: Likewise.
57521         * tests/test-snprintf-posix.c: Likewise.
57522         * tests/test-snprintf-posix.h: Likewise.
57523         * tests/test-snprintf.c: Likewise.
57524         * tests/test-sprintf-posix.c: Likewise.
57525         * tests/test-sprintf-posix.h: Likewise.
57526         * tests/test-stat-time.c: Likewise.
57527         * tests/test-stdbool.c: Likewise.
57528         * tests/test-stdint.c: Likewise.
57529         * tests/test-stdio.c: Likewise.
57530         * tests/test-stdlib.c: Likewise.
57531         * tests/test-stpncpy.c: Likewise.
57532         * tests/test-strcasestr.c: Likewise.
57533         * tests/test-striconv.c: Likewise.
57534         * tests/test-striconveh.c: Likewise.
57535         * tests/test-striconveha.c: Likewise.
57536         * tests/test-string.c: Likewise.
57537         * tests/test-sys_select.c: Likewise.
57538         * tests/test-sys_socket.c: Likewise.
57539         * tests/test-sys_stat.c: Likewise.
57540         * tests/test-sys_time.c: Likewise.
57541         * tests/test-sysexits.c: Likewise.
57542         * tests/test-time.c: Likewise.
57543         * tests/test-tls.c: Likewise.
57544         * tests/test-trunc.c: Likewise.
57545         * tests/test-truncf.c: Likewise.
57546         * tests/test-truncl.c: Likewise.
57547         * tests/test-unistd.c: Likewise.
57548         * tests/test-vasnprintf-posix.c: Likewise.
57549         * tests/test-vasnprintf-posix2.c: Likewise.
57550         * tests/test-vasnprintf.c: Likewise.
57551         * tests/test-vasprintf-posix.c: Likewise.
57552         * tests/test-vasprintf.c: Likewise.
57553         * tests/test-verify.c: Likewise.
57554         * tests/test-vfprintf-posix.c: Likewise.
57555         * tests/test-vprintf-posix.c: Likewise.
57556         * tests/test-vsnprintf-posix.c: Likewise.
57557         * tests/test-vsnprintf.c: Likewise.
57558         * tests/test-vsprintf-posix.c: Likewise.
57559         * tests/test-wchar.c: Likewise.
57560         * tests/test-wctype.c: Likewise.
57561         * tests/test-wcwidth.c: Likewise.
57562         * tests/test-xstrtol.c: Likewise.
57563         * tests/test-xvasprintf.c: Likewise.
57564         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57565         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57566         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57567         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57568         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57569         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57570         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57571         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57572         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57573         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57574         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57575         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57576         * tests/uniname/test-uninames.c: Likewise.
57577         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57578         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57579         * tests/unistdio/test-u16-printf1.h: Likewise.
57580         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57581         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57582         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57583         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57584         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57585         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57586         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57587         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57588         * tests/unistdio/test-u32-printf1.h: Likewise.
57589         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57590         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57591         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57592         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57593         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57594         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57595         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57596         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57597         * tests/unistdio/test-u8-printf1.h: Likewise.
57598         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57599         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57600         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57601         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57602         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57603         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57604         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57605         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57606         * tests/unistdio/test-ulc-printf1.h: Likewise.
57607         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57608         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57609         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57610         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57611         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57612         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57613         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57614         * tests/uniwidth/test-u16-width.c: Likewise.
57615         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57616         * tests/uniwidth/test-u32-width.c: Likewise.
57617         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57618         * tests/uniwidth/test-u8-width.c: Likewise.
57619         * tests/uniwidth/test-uc_width.c: Likewise.
57620         * config/srclist-update: Likewise.
57621         (fixlicense): Update to GPLv3+.
57622
57623         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57624         * tests/test-tsearch.c: Change copyright notice.
57625
57626         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57627         * lib/c-strcaseeq.h: Change copyright notice.
57628         * lib/streq.h: Likewise.
57629         * lib/uniconv.h: Likewise.
57630         * lib/uniconv/u-conv-from-enc.h: Likewise.
57631         * lib/uniconv/u-conv-to-enc.h: Likewise.
57632         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57633         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57634         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57635         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57636         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57637         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57638         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57639         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57640         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57641         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57642         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57643         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57644         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57645         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57646         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57647         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57648         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57649         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57650         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57651         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57652         * lib/uniname.h: Likewise.
57653         * lib/uniname/uniname.c: Likewise.
57654         * lib/unistdio.h: Likewise.
57655         * lib/unistdio/u-asnprintf.h: Likewise.
57656         * lib/unistdio/u-asprintf.h: Likewise.
57657         * lib/unistdio/u-printf-args.c: Likewise.
57658         * lib/unistdio/u-printf-args.h: Likewise.
57659         * lib/unistdio/u-printf-parse.h: Likewise.
57660         * lib/unistdio/u-snprintf.h: Likewise.
57661         * lib/unistdio/u-sprintf.h: Likewise.
57662         * lib/unistdio/u-vasprintf.h: Likewise.
57663         * lib/unistdio/u-vsnprintf.h: Likewise.
57664         * lib/unistdio/u-vsprintf.h: Likewise.
57665         * lib/unistdio/u16-asnprintf.c: Likewise.
57666         * lib/unistdio/u16-asprintf.c: Likewise.
57667         * lib/unistdio/u16-printf-parse.c: Likewise.
57668         * lib/unistdio/u16-snprintf.c: Likewise.
57669         * lib/unistdio/u16-sprintf.c: Likewise.
57670         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57671         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57672         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57673         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57674         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57675         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57676         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57677         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57678         * lib/unistdio/u16-vasnprintf.c: Likewise.
57679         * lib/unistdio/u16-vasprintf.c: Likewise.
57680         * lib/unistdio/u16-vsnprintf.c: Likewise.
57681         * lib/unistdio/u16-vsprintf.c: Likewise.
57682         * lib/unistdio/u32-asnprintf.c: Likewise.
57683         * lib/unistdio/u32-asprintf.c: Likewise.
57684         * lib/unistdio/u32-printf-parse.c: Likewise.
57685         * lib/unistdio/u32-snprintf.c: Likewise.
57686         * lib/unistdio/u32-sprintf.c: Likewise.
57687         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57688         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57689         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57690         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57691         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57692         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57693         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57694         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57695         * lib/unistdio/u32-vasnprintf.c: Likewise.
57696         * lib/unistdio/u32-vasprintf.c: Likewise.
57697         * lib/unistdio/u32-vsnprintf.c: Likewise.
57698         * lib/unistdio/u32-vsprintf.c: Likewise.
57699         * lib/unistdio/u8-asnprintf.c: Likewise.
57700         * lib/unistdio/u8-asprintf.c: Likewise.
57701         * lib/unistdio/u8-printf-parse.c: Likewise.
57702         * lib/unistdio/u8-snprintf.c: Likewise.
57703         * lib/unistdio/u8-sprintf.c: Likewise.
57704         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57705         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57706         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57707         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57708         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57709         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57710         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57711         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57712         * lib/unistdio/u8-vasnprintf.c: Likewise.
57713         * lib/unistdio/u8-vasprintf.c: Likewise.
57714         * lib/unistdio/u8-vsnprintf.c: Likewise.
57715         * lib/unistdio/u8-vsprintf.c: Likewise.
57716         * lib/unistdio/ulc-asnprintf.c: Likewise.
57717         * lib/unistdio/ulc-asprintf.c: Likewise.
57718         * lib/unistdio/ulc-printf-parse.c: Likewise.
57719         * lib/unistdio/ulc-snprintf.c: Likewise.
57720         * lib/unistdio/ulc-sprintf.c: Likewise.
57721         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57722         * lib/unistdio/ulc-vasprintf.c: Likewise.
57723         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57724         * lib/unistdio/ulc-vsprintf.c: Likewise.
57725         * lib/unistr.h: Likewise.
57726         * lib/unistr/u-cpy-alloc.h: Likewise.
57727         * lib/unistr/u-cpy.h: Likewise.
57728         * lib/unistr/u-endswith.h: Likewise.
57729         * lib/unistr/u-move.h: Likewise.
57730         * lib/unistr/u-set.h: Likewise.
57731         * lib/unistr/u-startswith.h: Likewise.
57732         * lib/unistr/u-stpcpy.h: Likewise.
57733         * lib/unistr/u-stpncpy.h: Likewise.
57734         * lib/unistr/u-strcat.h: Likewise.
57735         * lib/unistr/u-strcpy.h: Likewise.
57736         * lib/unistr/u-strcspn.h: Likewise.
57737         * lib/unistr/u-strdup.h: Likewise.
57738         * lib/unistr/u-strlen.h: Likewise.
57739         * lib/unistr/u-strncat.h: Likewise.
57740         * lib/unistr/u-strncpy.h: Likewise.
57741         * lib/unistr/u-strnlen.h: Likewise.
57742         * lib/unistr/u-strpbrk.h: Likewise.
57743         * lib/unistr/u-strspn.h: Likewise.
57744         * lib/unistr/u-strstr.h: Likewise.
57745         * lib/unistr/u-strtok.h: Likewise.
57746         * lib/unistr/u16-check.c: Likewise.
57747         * lib/unistr/u16-chr.c: Likewise.
57748         * lib/unistr/u16-cmp.c: Likewise.
57749         * lib/unistr/u16-cpy-alloc.c: Likewise.
57750         * lib/unistr/u16-cpy.c: Likewise.
57751         * lib/unistr/u16-endswith.c: Likewise.
57752         * lib/unistr/u16-mblen.c: Likewise.
57753         * lib/unistr/u16-mbsnlen.c: Likewise.
57754         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57755         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57756         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57757         * lib/unistr/u16-mbtouc.c: Likewise.
57758         * lib/unistr/u16-mbtoucr.c: Likewise.
57759         * lib/unistr/u16-move.c: Likewise.
57760         * lib/unistr/u16-next.c: Likewise.
57761         * lib/unistr/u16-prev.c: Likewise.
57762         * lib/unistr/u16-set.c: Likewise.
57763         * lib/unistr/u16-startswith.c: Likewise.
57764         * lib/unistr/u16-stpcpy.c: Likewise.
57765         * lib/unistr/u16-stpncpy.c: Likewise.
57766         * lib/unistr/u16-strcat.c: Likewise.
57767         * lib/unistr/u16-strchr.c: Likewise.
57768         * lib/unistr/u16-strcmp.c: Likewise.
57769         * lib/unistr/u16-strcpy.c: Likewise.
57770         * lib/unistr/u16-strcspn.c: Likewise.
57771         * lib/unistr/u16-strdup.c: Likewise.
57772         * lib/unistr/u16-strlen.c: Likewise.
57773         * lib/unistr/u16-strmblen.c: Likewise.
57774         * lib/unistr/u16-strmbtouc.c: Likewise.
57775         * lib/unistr/u16-strncat.c: Likewise.
57776         * lib/unistr/u16-strncmp.c: Likewise.
57777         * lib/unistr/u16-strncpy.c: Likewise.
57778         * lib/unistr/u16-strnlen.c: Likewise.
57779         * lib/unistr/u16-strpbrk.c: Likewise.
57780         * lib/unistr/u16-strrchr.c: Likewise.
57781         * lib/unistr/u16-strspn.c: Likewise.
57782         * lib/unistr/u16-strstr.c: Likewise.
57783         * lib/unistr/u16-strtok.c: Likewise.
57784         * lib/unistr/u16-to-u32.c: Likewise.
57785         * lib/unistr/u16-to-u8.c: Likewise.
57786         * lib/unistr/u16-uctomb-aux.c: Likewise.
57787         * lib/unistr/u16-uctomb.c: Likewise.
57788         * lib/unistr/u32-check.c: Likewise.
57789         * lib/unistr/u32-chr.c: Likewise.
57790         * lib/unistr/u32-cmp.c: Likewise.
57791         * lib/unistr/u32-cpy-alloc.c: Likewise.
57792         * lib/unistr/u32-cpy.c: Likewise.
57793         * lib/unistr/u32-endswith.c: Likewise.
57794         * lib/unistr/u32-mblen.c: Likewise.
57795         * lib/unistr/u32-mbsnlen.c: Likewise.
57796         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57797         * lib/unistr/u32-mbtouc.c: Likewise.
57798         * lib/unistr/u32-mbtoucr.c: Likewise.
57799         * lib/unistr/u32-move.c: Likewise.
57800         * lib/unistr/u32-next.c: Likewise.
57801         * lib/unistr/u32-prev.c: Likewise.
57802         * lib/unistr/u32-set.c: Likewise.
57803         * lib/unistr/u32-startswith.c: Likewise.
57804         * lib/unistr/u32-stpcpy.c: Likewise.
57805         * lib/unistr/u32-stpncpy.c: Likewise.
57806         * lib/unistr/u32-strcat.c: Likewise.
57807         * lib/unistr/u32-strchr.c: Likewise.
57808         * lib/unistr/u32-strcmp.c: Likewise.
57809         * lib/unistr/u32-strcpy.c: Likewise.
57810         * lib/unistr/u32-strcspn.c: Likewise.
57811         * lib/unistr/u32-strdup.c: Likewise.
57812         * lib/unistr/u32-strlen.c: Likewise.
57813         * lib/unistr/u32-strmblen.c: Likewise.
57814         * lib/unistr/u32-strmbtouc.c: Likewise.
57815         * lib/unistr/u32-strncat.c: Likewise.
57816         * lib/unistr/u32-strncmp.c: Likewise.
57817         * lib/unistr/u32-strncpy.c: Likewise.
57818         * lib/unistr/u32-strnlen.c: Likewise.
57819         * lib/unistr/u32-strpbrk.c: Likewise.
57820         * lib/unistr/u32-strrchr.c: Likewise.
57821         * lib/unistr/u32-strspn.c: Likewise.
57822         * lib/unistr/u32-strstr.c: Likewise.
57823         * lib/unistr/u32-strtok.c: Likewise.
57824         * lib/unistr/u32-to-u16.c: Likewise.
57825         * lib/unistr/u32-to-u8.c: Likewise.
57826         * lib/unistr/u32-uctomb.c: Likewise.
57827         * lib/unistr/u8-check.c: Likewise.
57828         * lib/unistr/u8-chr.c: Likewise.
57829         * lib/unistr/u8-cmp.c: Likewise.
57830         * lib/unistr/u8-cpy-alloc.c: Likewise.
57831         * lib/unistr/u8-cpy.c: Likewise.
57832         * lib/unistr/u8-endswith.c: Likewise.
57833         * lib/unistr/u8-mblen.c: Likewise.
57834         * lib/unistr/u8-mbsnlen.c: Likewise.
57835         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57836         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57837         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57838         * lib/unistr/u8-mbtouc.c: Likewise.
57839         * lib/unistr/u8-mbtoucr.c: Likewise.
57840         * lib/unistr/u8-move.c: Likewise.
57841         * lib/unistr/u8-next.c: Likewise.
57842         * lib/unistr/u8-prev.c: Likewise.
57843         * lib/unistr/u8-set.c: Likewise.
57844         * lib/unistr/u8-startswith.c: Likewise.
57845         * lib/unistr/u8-stpcpy.c: Likewise.
57846         * lib/unistr/u8-stpncpy.c: Likewise.
57847         * lib/unistr/u8-strcat.c: Likewise.
57848         * lib/unistr/u8-strchr.c: Likewise.
57849         * lib/unistr/u8-strcmp.c: Likewise.
57850         * lib/unistr/u8-strcpy.c: Likewise.
57851         * lib/unistr/u8-strcspn.c: Likewise.
57852         * lib/unistr/u8-strdup.c: Likewise.
57853         * lib/unistr/u8-strlen.c: Likewise.
57854         * lib/unistr/u8-strmblen.c: Likewise.
57855         * lib/unistr/u8-strmbtouc.c: Likewise.
57856         * lib/unistr/u8-strncat.c: Likewise.
57857         * lib/unistr/u8-strncmp.c: Likewise.
57858         * lib/unistr/u8-strncpy.c: Likewise.
57859         * lib/unistr/u8-strnlen.c: Likewise.
57860         * lib/unistr/u8-strpbrk.c: Likewise.
57861         * lib/unistr/u8-strrchr.c: Likewise.
57862         * lib/unistr/u8-strspn.c: Likewise.
57863         * lib/unistr/u8-strstr.c: Likewise.
57864         * lib/unistr/u8-strtok.c: Likewise.
57865         * lib/unistr/u8-to-u16.c: Likewise.
57866         * lib/unistr/u8-to-u32.c: Likewise.
57867         * lib/unistr/u8-uctomb-aux.c: Likewise.
57868         * lib/unistr/u8-uctomb.c: Likewise.
57869         * lib/unitypes.h: Likewise.
57870         * lib/uniwidth.h: Likewise.
57871         * lib/uniwidth/cjk.h: Likewise.
57872         * lib/uniwidth/u16-strwidth.c: Likewise.
57873         * lib/uniwidth/u16-width.c: Likewise.
57874         * lib/uniwidth/u32-strwidth.c: Likewise.
57875         * lib/uniwidth/u32-width.c: Likewise.
57876         * lib/uniwidth/u8-strwidth.c: Likewise.
57877         * lib/uniwidth/u8-width.c: Likewise.
57878         * lib/uniwidth/width.c: Likewise.
57879
57880 2007-10-07  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57883         The file is still under LGPL (see modules/inttypes).
57884
57885 2007-10-06  Bruno Haible  <bruno@clisp.org>
57886
57887         * modules/trunc (Dependencies): Add 'extensions'.
57888         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57889         Reported by Ben Pfaff <blp@gnu.org>.
57890
57891 2007-10-06  Bruno Haible  <bruno@clisp.org>
57892
57893         * modules/freopen-tests: New file.
57894         * tests/test-freopen.c: New file.
57895
57896         * modules/fopen-tests: New file.
57897         * tests/test-fopen.c: New file.
57898
57899         * modules/fopen: New file.
57900         * lib/fopen.c: New file.
57901         * m4/fopen.m4: New file.
57902         * modules/freopen: New file.
57903         * lib/freopen.c: New file.
57904         * m4/freopen.m4: New file.
57905         * lib/stdio.in.h (fopen, freopen): New declarations.
57906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57907         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57908         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57909         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57910         * doc/functions/fopen.texi: Mention the 'fopen' module.
57911         * doc/functions/freopen.texi: Mention the 'freopen' module.
57912
57913 2007-10-06  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/open-tests: New file.
57916         * tests/test-open.c: New file.
57917
57918         * modules/open: New file.
57919         * lib/open.c: New file.
57920         * m4/open.m4: New file.
57921         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57922         lib/open.c does.
57923         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57924         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57925         macros.
57926         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57927         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57928         REPLACE_OPEN.
57929         * doc/functions/open.texi: Mention the 'open' module.
57930
57931 2007-10-04  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/ceill-tests: New file.
57934         * tests/test-ceill.c: New file.
57935
57936         * modules/ceill: New file.
57937         * lib/ceill.c: Replace entire file.
57938         * m4/ceill.m4: New file.
57939         * lib/math.in.h (ceill): Replace declaration.
57940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57941         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57942         * doc/functions/ceill.texi: Mention the 'ceill' module.
57943         * modules/mathl (Files): Remove lib/ceill.c.
57944         (Depends-on): Add ceill.
57945
57946 2007-10-04  Bruno Haible  <bruno@clisp.org>
57947
57948         * modules/ceilf-tests: New file.
57949         * tests/test-ceilf.c: New file.
57950
57951         * modules/ceilf: New file.
57952         * lib/ceil.c: New file.
57953         * lib/ceilf.c: New file.
57954         * m4/ceilf.m4: New file.
57955         * lib/math.in.h (ceilf): New declaration.
57956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57957         HAVE_DECL_CEILF.
57958         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57959         HAVE_DECL_CEILF.
57960         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57961
57962 2007-10-04  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/floorl-tests: New file.
57965         * tests/test-floorl.c: New file.
57966
57967         * modules/floorl: New file.
57968         * lib/floorl.c: Replace entire file.
57969         * m4/floorl.m4: New file.
57970         * lib/math.in.h (floorl): Replace declaration.
57971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57972         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57973         * doc/functions/floorl.texi: Mention the 'floorl' module.
57974         * modules/mathl (Files): Remove lib/floorl.c.
57975         (Depends-on): Add floorl.
57976
57977 2007-10-04  Bruno Haible  <bruno@clisp.org>
57978
57979         * modules/floorf-tests: New file.
57980         * tests/test-floorf.c: New file.
57981
57982         * modules/floorf: New file.
57983         * lib/floor.c: New file.
57984         * lib/floorf.c: New file.
57985         * m4/floorf.m4: New file.
57986         * lib/math.in.h (floorf): New declaration.
57987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57988         HAVE_DECL_FLOORF.
57989         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57990         HAVE_DECL_FLOORF.
57991         * doc/functions/floorf.texi: Mention the 'floorf' module.
57992
57993 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57994             Bruno Haible  <bruno@clisp.org>
57995
57996         Advertise for the Git server instead of the CVS server.
57997         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57998         repository instead of the CVS one.
57999         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58000         about all VCS systems generically.
58001         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58002
58003 2007-10-04  Bruno Haible  <bruno@clisp.org>
58004
58005         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58006         means.
58007         Reported by BenoĂ®t Sigoure <tsuna@lrde.epita.fr>.
58008
58009 2007-10-04  Bruno Haible  <bruno@clisp.org>
58010
58011         * modules/truncl-tests: New file.
58012         * tests/test-truncl.c: New file.
58013
58014         * modules/truncl: New file.
58015         * lib/truncl.c: New file.
58016         * m4/truncl.m4: New file.
58017         * lib/math.in.h (truncl): New declaration.
58018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58019         HAVE_DECL_TRUNCL.
58020         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58021         HAVE_DECL_TRUNCL.
58022         * doc/functions/truncl.texi: Mention the 'truncl' module.
58023
58024 2007-10-04  Bruno Haible  <bruno@clisp.org>
58025
58026         * modules/truncf-tests: New file.
58027         * tests/test-truncf.c: New file.
58028
58029         * modules/truncf: New file.
58030         * lib/trunc.c: Make paramerizable through USE_* macros.
58031         * lib/truncf.c: New file.
58032         * m4/truncf.m4: New file.
58033         * lib/math.in.h (truncf): New declaration.
58034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58035         HAVE_DECL_TRUNCF.
58036         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58037         HAVE_DECL_TRUNCF.
58038         * doc/functions/truncf.texi: Mention the 'truncf' module.
58039
58040 2007-10-03  Bruno Haible  <bruno@clisp.org>
58041
58042         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58043         augmentation also for tests modules.
58044         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58045         * modules/atexit-tests (Makefile.am): Likewise.
58046         * modules/binary-io-tests (Makefile.am): Likewise.
58047         * modules/c-strcase-tests (Makefile.am): Likewise.
58048         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58049         * modules/canonicalize-tests (Makefile.am): Likewise.
58050         * modules/closein-tests (Makefile.am): Likewise.
58051         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58052         * modules/freadahead-tests (Makefile.am): Likewise.
58053         * modules/fseek-tests (Makefile.am): Likewise.
58054         * modules/fseeko-tests (Makefile.am): Likewise.
58055         * modules/ftell-tests (Makefile.am): Likewise.
58056         * modules/ftello-tests (Makefile.am): Likewise.
58057         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58058         * modules/isnanl-tests (Makefile.am): Likewise.
58059         * modules/lseek-tests (Makefile.am): Likewise.
58060         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58061         * modules/mbscasestr-tests (Makefile.am): Likewise.
58062         * modules/mbschr-tests (Makefile.am): Likewise.
58063         * modules/mbscspn-tests (Makefile.am): Likewise.
58064         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58065         * modules/mbspbrk-tests (Makefile.am): Likewise.
58066         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58067         * modules/mbsrchr-tests (Makefile.am): Likewise.
58068         * modules/mbsspn-tests (Makefile.am): Likewise.
58069         * modules/mbsstr-tests (Makefile.am): Likewise.
58070         * modules/printf-posix-tests (Makefile.am): Likewise.
58071         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58072         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58073         * modules/tsearch-tests (Makefile.am): Likewise.
58074         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58075         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58076         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58077         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58078         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58079         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58080         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58081         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58082         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58083         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58084         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58085         * modules/xstrtol-tests (Makefile.am): Likewise.
58086         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58087         * modules/yesno-tests (Makefile.am): Likewise.
58088
58089 2007-10-03  Bruno Haible  <bruno@clisp.org>
58090
58091         * modules/trunc-tests: New file.
58092         * tests/test-trunc.c: New file.
58093
58094         * modules/trunc: New file.
58095         * lib/trunc.c: New file.
58096         * m4/trunc.m4: New file.
58097         * lib/math.in.h (trunc): New declaration.
58098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58099         HAVE_DECL_TRUNC.
58100         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58101         HAVE_DECL_TRUNC.
58102         * doc/functions/trunc.texi: Mention the 'trunc' module.
58103
58104 2007-10-03  Bruno Haible  <bruno@clisp.org>
58105
58106         * tests/test-fpending.c: New file, mostly copied
58107         from coreutils/lib/t-fpending.c.
58108         * modules/fpending-tests: New file.
58109
58110 2007-10-03  Bruno Haible  <bruno@clisp.org>
58111
58112         Port the stdio extensions to QNX (untested).
58113         * lib/fseterr.c (fseterr): Add support for QNX.
58114         * lib/fbufmode.c (fbufmode): Likewise.
58115         * lib/freadable.c (freadable): Likewise.
58116         * lib/fwritable.c (fwritable): Likewise.
58117         * lib/freading.c (freading): Likewise.
58118         * lib/fwriting.c (fwriting): Likewise.
58119         * lib/freadahead.c (freadahed): Likewise.
58120         * lib/fpurge.c (fpurge): Likewise.
58121         * lib/fseeko.c (rpl_fseeko): Likewise.
58122
58123 2007-10-03  Bruno Haible  <bruno@clisp.org>
58124             Jim Meyering  <jim@meyering.net>
58125             Eric Blake  <ebb9@byu.net>
58126
58127         * doc/relocatable.texi: Use @command instead of @program.
58128
58129 2007-10-02  Jim Meyering  <jim@meyering.net>
58130
58131         Perform one more "_.h" -> ".in.h" substitution.
58132         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58133         instead of unistd_.h here, too.
58134
58135 2007-10-01  Bruno Haible  <bruno@clisp.org>
58136
58137         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58138         Needed for the alloca-opt module.
58139
58140 2007-09-30  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58143         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58144         alloca_.h.
58145         * lib/argz.in.h: Renamed from lib/argz_.h.
58146         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58147         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58148         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58149         byteswap_.h.
58150         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58151         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58152         dirent_.h.
58153         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58154         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58155         fcntl_.h.
58156         * lib/float.in.h: Renamed from lib/float_.h.
58157         * modules/float (Files, Makefile.am): Use float.in.h instead of
58158         float_.h.
58159         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58160         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58161         fnmatch_.h.
58162         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58163         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58164         getopt_.h.
58165         * lib/glob.in.h: Renamed from lib/glob_.h.
58166         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58167         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58168         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58169         iconv_.h.
58170         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58171         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58172         inttypes_.h.
58173         * lib/locale.in.h: Renamed from lib/locale_.h.
58174         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58175         locale_.h.
58176         * lib/math.in.h: Renamed from lib/math_.h.
58177         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58178         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58179         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58180         of netinet_in_.h. Add dependency.
58181         * lib/poll.in.h: Renamed from lib/poll_.h.
58182         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58183         * lib/search.in.h: Renamed from lib/search_.h.
58184         * modules/search (Files, Makefile.am): Use search.in.h instead of
58185         search_.h.
58186         * lib/signal.in.h: Renamed from lib/signal_.h.
58187         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58188         _signal.h.
58189         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58190         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58191         stdbool_.h.
58192         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58193         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58194         stdint_.h.
58195         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58196         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58197         stdio_.h.
58198         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58199         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58200         stdlib_.h.
58201         * lib/string.in.h: Renamed from lib/string_.h.
58202         * modules/string (Files, Makefile.am): Use string.in.h instead of
58203         string_.h.
58204         * doc/gnulib-tool.texi (Initial import): Update.
58205         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58206         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58207         of sys_select_.h. Add dependency.
58208         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58209         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58210         of sys_socket_.h.
58211         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58212         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58213         sys_stat_.h.
58214         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58215         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58216         sys_time_.h.
58217         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58218         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58219         sysexits_.h.
58220         * lib/time.in.h: Renamed from lib/time_.h.
58221         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58222         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58223         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58224         unistd_.h.
58225         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58226         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58227         wchar_.h.
58228         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58229         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58230         wctype_.h.
58231         * build-aux/bootstrap (slurp): Update.
58232         * lib/.cppi-disable: Update.
58233
58234 2007-09-30  Bruno Haible  <bruno@clisp.org>
58235
58236         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58237         Needed on BeOS.
58238
58239 2007-09-30  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58242
58243 2007-09-29  Bruno Haible  <bruno@clisp.org>
58244
58245         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58246
58247 2007-09-29  Bruno Haible  <bruno@clisp.org>
58248
58249         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58250         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58251         * build-aux/install-reloc: Compile also areadlink.c.
58252         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58253
58254 2007-09-29  Bruno Haible  <bruno@clisp.org>
58255
58256         * gnulib-tool (func_emit_initmacro_done): Indentation.
58257
58258 2007-09-29  Bruno Haible  <bruno@clisp.org>
58259
58260         * README: Add CVS checkout update instructions.
58261         Info from Bob Proulx <bob@proulx.com>.
58262
58263 2007-09-28  Eric Blake  <ebb9@byu.net>
58264
58265         Provide move-if-change.
58266         * build-aux/move-if-change: New file, based on best practice
58267         rather than any canonical upstream location.
58268
58269 2007-09-28  Jim Meyering  <jim@meyering.net>
58270
58271         Fix canonicalize loop-detection corner case.
58272         Do not attempt to stat the symlink values stored via seen_triple.
58273         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58274         on linux-2.6.18, (but not 2.6.22).
58275         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58276         triple_compare.  The former compares dev,ino,filename, while the latter
58277         would actually stat dirname(filename) when dev and ino were equal.
58278         * lib/hash-triple.c: Install <string.h>.
58279         (STREQ): Define.
58280         (triple_compare_ino_str): New function.
58281         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58282
58283 2007-09-28  Eric Blake  <ebb9@byu.net>
58284
58285         Enforce that AC_REPLACE_FUNCS files exist.
58286         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58287         override check for typos.
58288
58289         Fix test-closein on Solaris 10.
58290         * tests/test-closein.c (main): Don't assume stdin can be inherited
58291         closed on all systems.
58292         * tests/test-closein.sh: Likewise.
58293         Reported by Piotr Tarnowski.
58294
58295 2007-09-28  Jim Meyering  <jim@meyering.net>
58296
58297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58298
58299 2007-09-27  Jim Meyering  <jim@meyering.net>
58300
58301         canonicalize: Avoid a false-positive cycle failure.
58302         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58303         Sort.  Remove cycle-check.
58304         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58305         not cycle-check.h.
58306         (seen_triple): New function.
58307         (canonicalize_filename_mode): Use it instead of cycle-check.
58308         * tests/test-canonicalize.c: Add a test for this bug.
58309         * tests/test-canonicalize.sh: Set up and run the test.
58310
58311         New module, file-set, from coreutils.
58312         * modules/file-set: Define it.
58313         * lib/file-set.c, lib/file-set.h: Implement.
58314
58315         New module, hash-triple, from coreutils.
58316         * modules/hash-triple: Define it.
58317         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58318
58319 2007-09-25  Eric Blake  <ebb9@byu.net>
58320
58321         Fix strerror on Interix.
58322         * lib/string_.h (strerror): Declare replacement.
58323         * doc/functions/strerror.texi (strerror): Document the Interix
58324         shortcoming.
58325         * modules/string (Makefile.am): Support new hooks.
58326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58327         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58328         gl_FUNC_STRERROR_SEPARATE.
58329         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58330         * lib/strerror.c (rpl_strerror): Provide replacement.
58331         * modules/strerror (Depends-on): Add string.
58332         (configure.ac): Detect use of module.
58333         * tests/test-strerror.c: New file.
58334         * modules/strerror-tests: New test module.
58335         * modules/argp (Depends-on): Add strerror.
58336         * modules/error (Depends-on): Likewise.
58337         Reported by Martin Koeppe.
58338
58339 2007-09-24  Bruno Haible  <bruno@clisp.org>
58340
58341         * README: Update git instructions.
58342
58343 2007-09-24  Eric Blake  <ebb9@byu.net>
58344
58345         Revert fpending breakage from 2007-09-08.
58346         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58347         __fpending.c.
58348
58349 2007-09-24  Jim Meyering  <jim@meyering.net>
58350
58351         filenamecat.c: Add a test.
58352         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58353         showing how the function works when DIR is the empty string.
58354
58355 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58356
58357         * tests/test-canonicalize.sh: Turn on executable bit.
58358
58359 2007-09-19  Eric Blake  <ebb9@byu.net>
58360
58361         * README: Update CVS instructions.
58362
58363 2007-09-18  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/areadlink: New file.
58366         * lib/areadlink.h (areadlink): New declaration.
58367         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58368
58369 2007-09-17  Jim Meyering  <jim@meyering.net>
58370
58371         * lib/savewd.c (ESTALE) [!defined]: Define.
58372         Reported to be required on Interix by Martin Koeppe.
58373
58374 2007-09-17  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (func_version): Use $version.
58377
58378 2007-09-16  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58381         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58382         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58383         Reported by Greg Schafer <gschafer@zip.com.au>.
58384
58385 2007-09-15  Bruno Haible  <bruno@clisp.org>
58386
58387         * gnulib-tool (sed): Try a little harder to make bash understand the
58388         alias.
58389         Reported by Bruce Korb <bruce.korb@gmail.com>.
58390
58391 2007-09-13  Eric Blake  <ebb9@byu.net>
58392
58393         * ChangeLog: Remove conflict markers.
58394
58395 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58396
58397         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58398         Reported by Bruno Haible <bruno@clisp.org>.
58399
58400 2007-09-12  Bruno Haible  <bruno@clisp.org>
58401
58402         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58403         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58404         is not defined.
58405
58406 2007-09-12  Eric Blake  <ebb9@byu.net>
58407
58408         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58409         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58410         Autoconf definition.
58411         * modules/euidaccess (Depends-on): Add extensions, for
58412         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58413         * modules/fnmatch (Depends-on): Likewise.
58414         * modules/getaddrinfo (Depends-on): Likewise.
58415         * modules/getdelim (Depends-on): Likewise.
58416         * modules/getline (Depends-on): Likewise.
58417         * modules/getsubopt (Depends-on): Likewise.
58418         * modules/gettext (Depends-on): Likewise.
58419         * modules/group-member (Depends-on): Likewise.
58420         * modules/mbchar (Depends-on): Likewise.
58421         * modules/memmem (Depends-on): Likewise.
58422         * modules/mempcpy (Depends-on): Likewise.
58423         * modules/memrchr (Depends-on): Likewise.
58424         * modules/pagealign_alloc (Depends-on): Likewise.
58425         * modules/readutmp (Depends-on): Likewise.
58426         * modules/stpcpy (Depends-on): Likewise.
58427         * modules/stpncpy (Depends-on): Likewise.
58428         * modules/strchrnul (Depends-on): Likewise.
58429         * modules/strndup (Depends-on): Likewise.
58430         * modules/strsep (Depends-on): Likewise.
58431         * modules/strverscmp (Depends-on): Likewise.
58432         * modules/vasprintf (Depends-on): Likewise.
58433         * modules/wcwidth (Depends-on): Likewise.
58434         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58435         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58436         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58438         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58439         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58440         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58441         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58442         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58443         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58444         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58445         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58446         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58447         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58448         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58449         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58450         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58451         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58452         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58453         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58456         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58457         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58458         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58460         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58461         so that lock.m4 can be used in gettext without extensions module.
58462
58463 2007-09-11  Bruno Haible  <bruno@clisp.org>
58464
58465         * m4/isc-posix.m4: Remove file.
58466         Suggested by Eric Blake.
58467
58468 2007-09-11  Eric Blake  <ebb9@byu.net>
58469
58470         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58471
58472 2007-09-10  Bruno Haible  <bruno@clisp.org>
58473
58474         * posix-modules: Fix typo in error message.
58475         Reported by Matt <mkraai@beckman.com>.
58476
58477 2007-09-09  Bruno Haible  <bruno@clisp.org>
58478
58479         * doc/functions/getdelim.texi: Update list of platforms lacking the
58480         function.
58481         * doc/functions/getline.texi: Likewise.
58482
58483 2007-09-09  Jim Meyering  <jim@meyering.net>
58484
58485         * lib/hash.c (hash_initialize): Detect calloc failure.
58486         Reported by Bruno Haible.
58487
58488 2007-09-09  Bruno Haible  <bruno@clisp.org>
58489
58490         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58491         malloc or realloc fails.
58492
58493 2007-09-09  Bruno Haible  <bruno@clisp.org>
58494
58495         * modules/getcwd (Depends-on): Add malloc-posix.
58496         * modules/glob (Depends-on): Likewise.
58497         * modules/putenv (Depends-on): Likewise.
58498         * modules/strdup (Depends-on): Likewise.
58499         * modules/getdelim (Depends-on): Add realloc-posix.
58500         * modules/read-file (Depends-on): Likewise.
58501
58502 2007-09-09  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58505         (gl_FUNC_MALLOC_POSIX): Require it.
58506         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58507         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58508         * modules/realloc (Files): Add m4/malloc.m4.
58509         * modules/calloc (Files): Likewise.
58510
58511 2007-09-09  Bruno Haible  <bruno@clisp.org>
58512
58513         * modules/malloc-posix: New file.
58514         * modules/malloc (Depends-on): Add malloc-posix.
58515         * lib/malloc.c: Include errno.h.
58516         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58517         and a POSIX-compatible malloc into a single function. Set ENOMEM
58518         when returning NULL.
58519         * m4/malloc.m4: New file.
58520         * doc/functions/malloc.texi: Mention the malloc-posix module.
58521         * lib/stdlib_.h (malloc): New declaration.
58522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58523         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58524         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58525         and HAVE_MALLOC_POSIX.
58526
58527 2007-09-09  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/realloc-posix: New file.
58530         * modules/realloc (Depends-on): Add realloc-posix.
58531         * lib/realloc.c: Include errno.h.
58532         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58533         and a POSIX-compatible realloc into a single function. Set ENOMEM
58534         when returning NULL.
58535         * m4/realloc.m4: New file.
58536         * doc/functions/realloc.texi: Mention the realloc-posix module.
58537         * lib/stdlib_.h (realloc): New declaration.
58538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58539         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58540         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58541         and HAVE_REALLOC_POSIX.
58542
58543 2007-09-09  Bruno Haible  <bruno@clisp.org>
58544
58545         * modules/calloc-posix: New file.
58546         * modules/calloc (Depends-on): Add calloc-posix.
58547         * lib/calloc.c: Include errno.h.
58548         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58549         and a POSIX-compatible calloc into a single function. Set ENOMEM
58550         when returning NULL.
58551         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58552         * doc/functions/calloc.texi: Mention the calloc-posix module.
58553         * lib/stdlib_.h (calloc): New declaration.
58554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58555         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58556         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58557         and HAVE_CALLOC_POSIX.
58558
58559 2007-09-09  Bruno Haible  <bruno@clisp.org>
58560
58561         Allow for modules to show an arbitrary notice.
58562         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58563         * gnulib-tool: New option --extract-notice.
58564         (func_usage): Document it.
58565         (sed_extract_prog): Update.
58566         (func_get_notice): New function.
58567         (func_modules_notice): New function.
58568         (func_import, func_create_testdir): Invoke it.
58569         Suggested by Jim Meyering.
58570
58571 2007-09-09  Bruno Haible  <bruno@clisp.org>
58572
58573         * gnulib-tool: New options --verbose, --quiet.
58574         (func_usage): Document them.
58575         (verbose): New variable.
58576         (func_execute_command): New function.
58577         (func_import): Don't show the module list and the file list if
58578         $verbose < 0.
58579         (func_create_testdir): Likewise. Use func_execute_command.
58580         (func_create_megatestdir): Use func_execute_command.
58581
58582 2007-09-08  Bruno Haible  <bruno@clisp.org>
58583
58584         * gnulib-tool (func_import): Prefer rsync over wget when available,
58585         for fetching the PO files.
58586
58587 2007-09-08  Bruno Haible  <bruno@clisp.org>
58588
58589         * posix-modules: New file. Portions copied from gnulib-tool.
58590         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58591
58592 2007-09-08  Jim Meyering  <jim@meyering.net>
58593
58594         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58595         * lib/fpending.h: Rename from __fpending.h.
58596         * lib/fpending.c: Rename from __fpending.c.
58597         Include "fpending.h", not "__fpending.h".
58598         * lib/__fpending.h, lib/__fpending.c: Remove files.
58599         * modules/fpending (Files): Reflect new file names.
58600         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58601
58602 2007-09-08  Bruno Haible  <bruno@clisp.org>
58603
58604         * m4/inttypes-h.m4: Remove stub file.
58605
58606 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58607
58608         * doc/headers/stdint.texi: Discuss #include_next issue.
58609
58610 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58613
58614 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58615
58616         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58617         in variable name.
58618
58619 2007-09-03  Jim Meyering  <jim@meyering.net>
58620
58621         New module: git-version-gen.
58622         * modules/git-version-gen: New file.
58623
58624         Import changes from coreutils for bootstrap script.
58625
58626         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58627
58628         bootstrap: uses rsync to download the .po files
58629         * build-aux/bootstrap (po_download_command_format): New global.
58630         (download_po_files): Use rsync.
58631         (update_po_files): Don't remove .po files after download,
58632         so future rsync runs can take advantage of the copies.
58633
58634         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58635
58636         Solve the unnecessary-.po-file-regeneration problem once and for all.
58637         * build-aux/bootstrap (download_po_files): New function, renamed from
58638         get_translations.  Now, downloads, but doesn't update LINGUAS.
58639         (update_po_files): New function.
58640
58641         bootstrap: Ignore more.
58642         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58643         uniwidth to e.g., lib/.gitignore.
58644         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58645
58646         * build-aux/bootstrap: New setting: vc_ignore.
58647         (insert_sorted_if_absent): Create $file if absent.
58648         Adapt to new, possibly empty, list: $vc_ignore.
58649
58650         bootstrap: generate more ignorable names
58651         * build-aux/bootstrap (slurp): When generating ignorable names,
58652         also map .sin to .sed, .gperf to .c, and .y to .c.
58653
58654 2007-09-03  Jim Meyering  <jim@meyering.net>
58655
58656         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58657         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58658
58659 2007-09-02  Bruno Haible  <bruno@clisp.org>
58660
58661         Fix mis-recognition of 'mcs' on QNX 6.
58662         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58663         output contains the string "Mono".
58664         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58665         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58666
58667 2007-09-01  Bruno Haible  <bruno@clisp.org>
58668
58669         Fix collision between uniwidth/* and linebreak modules.
58670         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58671         u32_width): Remove declarations.
58672         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58673         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58674         streq3, streq2, streq1, streq0): Remove functions.
58675         (STREQ): Remove macro.
58676         (is_cjk_encoding): Remove function.
58677         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58678         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58679         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58680         * NEWS: Document the change.
58681
58682 2007-09-01  Bruno Haible  <bruno@clisp.org>
58683
58684         * lib/streq.h: Add double-inclusion guard.
58685
58686 2007-09-01  Karl Berry  <karl@gnu.org>
58687
58688         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58689
58690 2007-08-28  Jim Meyering  <jim@meyering.net>
58691
58692         Rename mreadlink_with_size to areadlink_with_size.
58693         * NEWS: Document the change.
58694         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58695         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58696         * lib/mreadlink.h: Rename this to...
58697         * lib/areadlink.h: ...this.
58698         * modules/mreadlink-with-size: Rename this to...
58699         * modules/areadlink-with-size: ...this.
58700         * lib/canonicalize.c: Reflect the renaming.
58701         * modules/canonicalize: Likewise.
58702
58703 2007-08-26  Bruno Haible  <bruno@clisp.org>
58704
58705         * gnulib-tool (func_import): When deciding which files to remove,
58706         consider also dangling symbolic links.
58707         Reported by Eric Blake.
58708
58709 2007-08-26  Bruno Haible  <bruno@clisp.org>
58710
58711         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58712
58713 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58714
58715         * lib/readline.c: Don't include getline.h, the prototype is now
58716         found in stdio.h.
58717
58718 2007-08-23  Jim Meyering  <jim@meyering.net>
58719
58720         Getdelim touchup.
58721         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58722         around the funlockfile call, since funlockfile never sets errno.
58723         Don't set errno upon failed realloc.
58724
58725 2007-08-22  Eric Blake  <ebb9@byu.net>
58726
58727         Getline touchups.
58728         * lib/getdelim.c (getdelim): Revert regression that required *n to
58729         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58730         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58731         getdelim, rather than whether implementation is missing.
58732         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58733         * lib/stdio_.h (getline): Also declare if replacement is
58734         required.
58735         * doc/functions/getdelim.texi: New file.
58736         * doc/functions/getline.texi: Likewise.
58737         * doc/gnulib.texi (Function Substitutes): Add new files.
58738         Reported by Bruno Haible.
58739
58740 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58741
58742         * users.txt: Add Guile.
58743
58744 2007-08-22  Eric Blake  <ebb9@byu.net>
58745
58746         * tests/test-getdelim.c (main): Use remove, not unlink.
58747         * tests/test-getline.c (main): Likewise.
58748
58749         Move getline and getdelim into stdio.h, per POSIX 200x.
58750         * modules/getline (Files): Remove getline.h.
58751         (Depends-on): Add stdio.
58752         (configure.ac): Add module indicator.
58753         * modules/getdelim (Files): Remove getdelim.h.
58754         (Depends-on): Add stdio.
58755         (configure.ac): Add module indicator.
58756         * modules/stdio (Makefile.am): Work with new indicators.
58757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58758         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58759         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58760         * lib/getdelim.h: Delete.
58761         * lib/getline.h: Delete.
58762         * lib/stdio_.h (getdelim, getline): Declare.
58763         * modules/getdelim-tests: New module.
58764         * modules/getline-tests: Likewise.
58765         * tests/test-getdelim.c: New file.
58766         * tests/test-getline.c: Likewise.
58767         * NEWS: Document the change.
58768         * lib/getline.c: Update choice of header.
58769         * lib/csharpcomp.c: Likewise.
58770         * lib/getpass.c: Likewise.
58771         * lib/javacomp.c: Likewise.
58772         * lib/javaversion.c: Likewise.
58773         * lib/yesno.c: Likewise.
58774         * lib/getdelim.c: Likewise.
58775         (getdelim): Set errno on failure, and avoid memory leak.
58776
58777 2007-08-19  Bruno Haible  <bruno@clisp.org>
58778
58779         * modules/closein (Depends-on): Add freadahead.
58780         * lib/closein.c: Include freadahead.h.
58781         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58782         is zero.
58783
58784 2007-08-19  Bruno Haible  <bruno@clisp.org>
58785
58786         * modules/freadahead-tests: New file.
58787         * tests/test-freadahead.sh: New file.
58788         * tests/test-freadahead.c: New file.
58789
58790         * modules/freadahead: New file.
58791         * lib/freadahead.h: New file.
58792         * lib/freadahead.c: New file.
58793         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58794         fbufmode, fpurge, freadable, fwritable.
58795
58796 2007-08-19  Eric Blake  <ebb9@byu.net>
58797
58798         Test yesno in combination with closein.
58799         * lib/yesno.c (yesno): Document use of stdin.
58800         * modules/yesno-tests (Files): New module.
58801         * tests/test-yesno.c (main): New file.
58802         * tests/test-yesno.sh: Likewise.
58803
58804 2007-08-19  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58807         * lib/fseeko.c (rpl_fseeko): Likewise.
58808         * lib/fseterr.c (fseterr): Likewise.
58809
58810 2007-08-19  Bruno Haible  <bruno@clisp.org>
58811
58812         * tests/test-lseek.c (main): Disable a test for BeOS.
58813         * doc/functions/lseek.texi: Document the BeOS bug.
58814
58815 2007-08-19  Bruno Haible  <bruno@clisp.org>
58816             Eric Blake  <ebb9@byu.net>
58817
58818         * lib/lseek.c: Include <sys/stat.h>.
58819         (rpl_lseek): Add workaround code also for Unix platforms.
58820         Needed for BeOS.
58821         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58822         * doc/functions/lseek.texi: Document BeOS definiency.
58823
58824 2007-08-18  Bruno Haible  <bruno@clisp.org>
58825
58826         * modules/fstrcmp-tests: New file.
58827         * tests/test-fstrcmp.c: New file.
58828
58829 2007-08-18  Bruno Haible  <bruno@clisp.org>
58830
58831         * modules/fstrcmp: New file, from GNU gettext with modifications.
58832         * lib/fstrcmp.h: New file, from GNU gettext.
58833         * lib/fstrcmp.c: New file, from GNU gettext.
58834         * MODULES.html.sh (String handling): Add fstrcmp.
58835
58836 2007-08-18  Bruno Haible  <bruno@clisp.org>
58837
58838         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58839         'bool'.
58840         (diag, compareseq): Remove const from the ctxt argument.
58841         (USE_HEURISTIC): Undefine at the end.
58842
58843 2007-08-18  Jim Meyering  <jim@meyering.net>
58844
58845         New file: lib/idcache.h
58846         * NEWS: Mention the addition.
58847         * modules/idcache (Files): Add lib/idcache.h
58848         * lib/idcache.c: Include "idcache.h".
58849         Don't include <sys/types.h>.
58850         Add a FIXME comment.
58851         Move file-scoped "static" declarations to the top.
58852         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58853
58854 2007-08-17  Bruno Haible  <bruno@clisp.org>
58855         and Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         * MODULES.html.sh: Add diffseq.
58858         * modules/diffseq: New file.
58859         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58860         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58861
58862 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         Import changes from coreutils for bootstrap script.
58865
58866         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58867
58868         * build-aux/bootstrap (slurp): Work even in environments where
58869         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58870         current code does not slurp files whose names start with ".", and
58871         this looks like it might be a troublesome area.
58872
58873         2007-07-11  Jim Meyering  <jim@meyering.net>
58874
58875         If there's a GPL vN copyright comment, require that N == 3.
58876
58877         2007-07-08  Jim Meyering  <jim@meyering.net>
58878
58879         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58880         * build-aux/bootstrap (mam_template): Move definition out of loop.
58881
58882         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58883
58884         * build-aux/bootstrap (symlink_to_dir): Rename function from
58885         symlink_to_gnulib.  Add a directory parameter.  Update all
58886         callers.
58887         (cp_mark_as_generated): Also check for -- and link to -- files in
58888         gl/.
58889
58890         2007-07-08  Jim Meyering  <jim@meyering.net>
58891
58892         Adapt to deeper hierarchy in gnulib.
58893         * build-aux/bootstrap (symlink_to_dir): If the destination
58894         directory doesn't exist, create it. This is required at least for
58895         "lib/uniwidth/cjk.h".
58896
58897         2007-05-15  Jim Meyering  <jim@meyering.net>
58898
58899         * build-aux/bootstrap: Now that generated Makefile.am files
58900         are no longer under version control, they must be created at
58901         bootstrap time.
58902
58903 2007-08-14  Ben Pfaff  <blp@gnu.org>
58904
58905         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58906
58907 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58908
58909         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58910         given the changes below.
58911         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58912         even on hosts that have padding bits beyond the supported 64.
58913
58914 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58915
58916         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58917         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58918         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58919         depends on it.
58920         (xstrtol_error): Remove.
58921         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58922         but with a different signature.
58923         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58924         * lib/xstrtol-error.c: Include exitfail.h.
58925         (xstrtol_fatal): New function, with a different signature from the
58926         old xstrtol_error, so that the caller need not worry about passing
58927         in an exit status, or about storage management of the option argument.
58928         (xstrtol_error): Now a static function.  Redo signature to
58929         implement xstrtol_fatal.  Output the correct number of hyphens in
58930         front of the option so that the caller need not worry about
58931         storage management.
58932         (N_): New macro.
58933         (_): Remove; not used now.
58934         * modules/xstrtol: Depend on getopt.
58935         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58936         of old STRTOL_FATAL_ERROR macro.
58937         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58938         of test program.
58939         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58940         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58941
58942 2007-08-08  Eric Blake  <ebb9@byu.net>
58943
58944         * lib/xstrtol-error.c: Add missing include.
58945
58946         Move xstrtol messages into gnulib domain, when --pobase is used.
58947         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58948         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58949         * modules/xstrtol (Files): Distribute new file.
58950         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58951         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58952         * tests/test-xstrtol.c: ...into new file.
58953         * tests/test-xstrtoul.c: Also test xstrtoul.
58954         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58955         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58956         * tests/test-xstrtol.sh: Drive the tests.
58957         * tests/test-xstrtoimax.sh: Likewise.
58958         * tests/test-xstrtoumax.sh: Likewise.
58959         * modules/xstrtol-tests: New module.
58960         * modules/xstrtoimax-tests: Likewise.
58961         * modules/xstrtoumax-tests: Likewise.
58962
58963 2007-08-08  Jim Meyering  <jim@meyering.net>
58964
58965         New function: mfile_name_concat.
58966         * lib/filenamecat.c (mfile_name_concat): New function, just like
58967         file_name_concat, but return NULL upon failure rather than exiting
58968         with a diagnostic.
58969         * lib/filenamecat.h: Declare it.
58970
58971 2007-08-07  Bruno Haible  <bruno@clisp.org>
58972
58973         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58974         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58975         warning from gcc.
58976         Reported by Eric Blake.
58977
58978 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58979
58980         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58981         * modules/crypto/arcfour (License): Likewise.
58982         * modules/crypto/des-tests (License): Likewise.
58983         * modules/crypto/gc-arctwo-tests (License): Likewise.
58984         * modules/crypto/gc-des-tests (License): Likewise.
58985         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58986         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58987         * modules/crypto/gc-md2-tests (License): Likewise.
58988         * modules/crypto/gc-md4-tests (License): Likewise.
58989         * modules/crypto/gc-md5-tests (License): Likewise.
58990         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58991         * modules/crypto/gc-rijndael-tests (License): Likewise.
58992         * modules/crypto/gc-sha1-tests (License): Likewise.
58993         * modules/crypto/gc-tests (License): Likewise.
58994         * modules/crypto/hmac-md5 (License): Likewise.
58995         * modules/crypto/hmac-sha1 (License): Likewise.
58996         * modules/crypto/md2-tests (License): Likewise.
58997         * modules/crypto/md4-tests (License): Likewise.
58998         * modules/crypto/md5 (License): Likewise.
58999         * modules/crypto/rijndael (License): Likewise.
59000         * modules/crypto/sha1 (License): Likewise.
59001         * modules/memxor (License): Likewise.
59002
59003 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59004         and Bruno Haible  <bruno@clisp.org>
59005
59006         * NEWS: Describe interface changes to human, xstrtol.
59007         * lib/human.h: Include <xstrtol.h>.
59008         (human_options): Return enum strtol_error, not int.  Remove
59009         bool arg; take int * instead.
59010         * lib/human.c: Don't include "gettext.h".
59011         (_): Remove; no longer used.
59012         Don't include <xstrtol.h>, since human.h does it.
59013         (human_options): Adjust to abovementioned interface changes.
59014         Do not report error to stderr; that's now the caller's
59015         responsibility.
59016         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59017         interface change.
59018         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59019         Str, Argument_type_string.  All uses changed.  Put " argument"
59020         in diagnostics to make them clearer.  Change wording of suffix
59021         message for clarity.
59022         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59023         Argument_type_string.
59024         (STRTOL_FATAL_WARN): Remove; no longer used.
59025         * modules/human (Depends-on): Remove gettext-h.
59026
59027 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59028
59029         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59030
59031 2007-07-31  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59034         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59035         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59036
59037 2007-07-31  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59040         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59041
59042 2007-07-30  Bruno Haible  <bruno@clisp.org>
59043
59044         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59045         * modules/c-ctype (License): Likewise.
59046         * modules/c-strcase (License): Likewise.
59047         * modules/check-version (License): Likewise.
59048         * modules/iconv (License): Likewise.
59049         * modules/iconv_open (License): Likewise.
59050         * modules/read-file (License): Likewise.
59051         * modules/striconv (License): Likewise.
59052         * modules/strverscmp (License): Likewise.
59053         * modules/vasprintf (License): Likewise.
59054         * modules/crypto/des (License): Likewise.
59055         * modules/crypto/gc (License): Likewise.
59056         * modules/crypto/gc-arcfour (License): Likewise.
59057         * modules/crypto/gc-arctwo (License): Likewise.
59058         * modules/crypto/gc-des (License): Likewise.
59059         * modules/crypto/gc-hmac-md5 (License): Likewise.
59060         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59061         * modules/crypto/gc-md2 (License): Likewise.
59062         * modules/crypto/gc-md4 (License): Likewise.
59063         * modules/crypto/gc-md5 (License): Likewise.
59064         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59065         * modules/crypto/gc-random (License): Likewise.
59066         * modules/crypto/gc-rijndael (License): Likewise.
59067         * modules/crypto/gc-sha1 (License): Likewise.
59068         * modules/crypto/md2 (License): Likewise.
59069         * modules/crypto/md4 (License): Likewise.
59070
59071 2007-07-30  Jim Meyering  <jim@meyering.net>
59072
59073         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59074         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59075         it has valid stat data.  This bug would cause du not to count the
59076         sizes of inaccessible directories.
59077         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59078         in <http://bugzilla.redhat.com/250077>.
59079
59080 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59081             Bruno Haible  <bruno@clisp.org>
59082
59083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59084         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59085         #include_next, gives a diagnostic about it, but reports no error in
59086         the exit code.
59087         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59088
59089 2007-07-24  Ben Pfaff  <blp@gnu.org>
59090
59091         Improve name: "count-one-bits" is better than "popcount".
59092         * MODULES.html.sh: Update name.
59093         * lib/popcount.h: Renamed lib/count-one-bits.h.
59094         (popcount): Renamed count_one_bits.
59095         (popcountl): Renamed count_one_bits_l.
59096         (popcountll): Renamed count_one_bits_ll.
59097         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59098         * modules/popcount: Renamed module/count-one-bits.
59099         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59100         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59101
59102 2007-07-23  Ben Pfaff  <blp@gnu.org>
59103
59104         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59105         better code generation, and add U to large constants to avoid
59106         warnings, in non-GCC case.
59107         Suggested by Bruno Haible.
59108
59109 2007-07-23  Ben Pfaff  <blp@gnu.org>
59110
59111         * lib/popcount.h: Use verify_true instead of if...abort.
59112         * modules/popcount: Depend on verify module.
59113         Suggested by Jim Meyering.
59114
59115 2007-07-23  Bruno Haible  <bruno@clisp.org>
59116
59117         * gnulib-tool (func_import): Create a .cvsignore file also when the
59118         directory is not yet in CVS but the toplevel directory is. When
59119         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59120         Reported by Karl Berry.
59121
59122 2007-07-22  Ben Pfaff  <blp@gnu.org>
59123
59124         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59125         case.
59126         Suggested by Eric Blake.
59127
59128 2007-07-22  Ben Pfaff  <blp@gnu.org>
59129
59130         New module: popcount.
59131         * MODULES.html.sh: Add popcount.
59132         * modules/popcount: New file.
59133         * modules/popcount-tests: New file.
59134         * tests/test-popcount.c: New file.
59135         * lib/popcount.h: New file.
59136         * m4/popcount.m4: New file.
59137
59138 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * build-aux/announce-gen: Update to GPLv3.
59141
59142         * build-aux/config.guess: Update from config.
59143
59144 2007-07-21  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59147         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59148
59149 2007-07-20  Jim Meyering  <jim@meyering.net>
59150
59151         * check-module: Diagnose a self-dependency.
59152
59153 2007-07-19  Bruno Haible  <bruno@clisp.org>
59154
59155         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59156         empty.
59157         Reported by Eric Blake.
59158
59159 2007-07-18  Bruno Haible  <bruno@clisp.org>
59160
59161         * gnulib-tool: New options --po-base, --po-domain.
59162         (func_usage): Document them.
59163         (pobase, po_domain): New variables.
59164         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59165         DEFAULT_TEXT_DOMAIN.
59166         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59167         (func_import): Consider pobase and po_domain. Create a po/ directory.
59168         (func_create_testdir): Set pobase and po_domain to empty.
59169         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59170         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59171
59172 2007-07-18  Bruno Haible  <bruno@clisp.org>
59173
59174         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59175         EXTRA_DIST augmentation for files in build-aux/.
59176
59177 2007-07-16  Bruno Haible  <bruno@clisp.org>
59178
59179         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59180         * modules/getdelim (License): Likewise.
59181
59182 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59183
59184         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59185         * modules/d-type (License): Likewise.
59186         * modules/extensions (License): Likewise.
59187         * modules/fnmatch (License): Likewise.
59188         * modules/fseeko (License): Likewise.
59189         * modules/getaddrinfo (License): Likewise.
59190         * modules/getline (License): Likewise.
59191         * modules/getlogin_r (License): Likewise.
59192         * modules/getpass (License): Likewise.
59193         * modules/gettimeofday (License): Likewise.
59194         * modules/glob (License): Likewise.
59195         * modules/inet_ntop (License): Likewise.
59196         * modules/malloc (License): Likewise.
59197         * modules/malloca (License): Likewise.
59198         * modules/memmem (License): Likewise.
59199         * modules/mempcpy (License): Likewise.
59200         * modules/memset (License): Likewise.
59201         * modules/minmax (License): Likewise.
59202         * modules/mktime (License): Likewise.
59203         * modules/netinet_in (License): Likewise.
59204         * modules/pathmax (License): Likewise.
59205         * modules/poll (License): Likewise.
59206         * modules/regex (License): Likewise.
59207         * modules/snprintf (License): Likewise.
59208         * modules/stdbool (License): Likewise.
59209         * modules/stdint (License): Likewise.
59210         * modules/stdio (License): Likewise.
59211         * modules/strcase (License): Likewise.
59212         * modules/strcasestr (License): Likewise.
59213         * modules/strdup (License): Likewise.
59214         * modules/string (License): Likewise.
59215         * modules/strndup (License): Likewise.
59216         * modules/strnlen (License): Likewise.
59217         * modules/strpbrk (License): Likewise.
59218         * modules/strptime (License): Likewise.
59219         * modules/strsep (License): Likewise.
59220         * modules/sys_select (License): Likewise.
59221         * modules/sys_socket (License): Likewise.
59222         * modules/sys_stat (License): Likewise.
59223         * modules/sys_time (License): Likewise.
59224         * modules/time (License): Likewise.
59225         * modules/time_r (License): Likewise.
59226         * modules/timegm (License): Likewise.
59227         * modules/unistd (License): Likewise.
59228         * modules/vsnprintf (License): Likewise.
59229         * modules/wctype (License): Likewise.
59230
59231 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59232
59233         * modules/argz (License): LGPLv2+.
59234
59235 2007-07-15  Karl Berry  <karl@gnu.org>
59236
59237         * doc/gnulib.texi: revise node structure per new fdl.texi.
59238
59239 2007-07-14  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59242         the output file.
59243         * lib/uniname/uninames.h: Regenerated.
59244
59245 2007-07-14  Karl Berry  <karl@gnu.org>
59246
59247         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59248         omitting sectioning and index commands.
59249
59250 2007-07-13  Bruno Haible  <bruno@clisp.org>
59251
59252         New gnulib-tool option --more-symlinks.
59253         * gnulib-tool (func_usage): Document --more-symlinks.
59254         (do_copyrights): New variable.
59255         Recognize option --more-symlinks.
59256         (func_import): Don't add a copyright notice transform to
59257         sed_transform_lib_file if do_copyrights is empty.
59258
59259 2007-07-13  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/vasnprintf.c (decimal_point_char): Define also if
59262         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59263         && !NEED_PRINTF_DIRECTIVE_A.
59264         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59265         Gary V. Vaughan <gary@gnu.org>.
59266
59267 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59268
59269         * lib/inttypes_.h: Undo previous change, since it was fixed
59270         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59271
59272 2007-07-13  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59275         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59276
59277 2007-07-13  Jim Meyering  <jim@meyering.net>
59278
59279         df: Don't fail for Tru64's "file-on-file mount".
59280         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59281         so we fall through and use statfs instead.  Details here:
59282         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59283         Reported by Albert Chin.
59284
59285 2007-07-13  Bruno Haible  <bruno@clisp.org>
59286
59287         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59288         * modules/configmake (License): Likewise.
59289         * modules/gettext (License): Likewise.
59290         * modules/gettext-h (License): Likewise.
59291         * modules/include_next (License): Likewise.
59292         * modules/link-warning (License): Likewise.
59293         * modules/localcharset (License): Likewise.
59294         * modules/localename (License): Likewise.
59295         * modules/lock (License): Likewise.
59296         * modules/relocatable-lib-lgpl (License): Likewise.
59297         * modules/size_max (License): Likewise.
59298         * modules/vasnprintf (License): Likewise.
59299         * modules/wchar (License): Likewise.
59300         * modules/xsize (License): Likewise.
59301
59302 2007-07-13  Bruno Haible  <bruno@clisp.org>
59303
59304         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59305         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59306
59307 2007-07-12  Bruno Haible  <bruno@clisp.org>
59308
59309         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59310         in the modules files.
59311
59312 2007-07-11  Karl Berry  <karl@gnu.org>
59313
59314         * MODULES.html.sh (func_module): use
59315          sed -e '\|^'"${includefile}"'$|d'
59316          instead of /.../d, to avoid errors on $includefile's containing /.
59317
59318 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59319
59320         * gnulib-tool (func_import): Avoid duplication of --avoid
59321         statements
59322         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59323         names to `_' in variable names.
59324
59325 2007-07-10  Eric Blake  <ebb9@byu.net>
59326
59327         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59328         * NEWS: Document this change.
59329
59330 2007-07-08  Bruno Haible  <bruno@clisp.org>
59331
59332         Update to Unicode 5.0.
59333         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59334         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59335         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59336         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59337         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59338         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59339         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59340         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59341         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59342         U+10A3F, U+1D242..U+1D244.
59343         (nonspacing_table_ind): Update.
59344         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59345         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59346
59347 2007-07-08  Bruno Haible  <bruno@clisp.org>
59348
59349         Update to Unicode 5.0.
59350         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59351         code transform. Extend the name index field of unicode_name_to_code and
59352         unicode_code_to_name from 16 to 24 bits.
59353         * lib/uniname/uniname.c (unicode_character_name,
59354         unicode_name_character): Add the range 0x12xxx to the code transform.
59355         * lib/uniname/uninames.h: Regenerated.
59356         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59357
59358 2007-07-07  Bruno Haible  <bruno@clisp.org>
59359
59360         * modules/wcwidth-tests: New file.
59361         * tests/test-wcwidth.c: New file.
59362
59363         Work around MacOS X wcwidth() bug.
59364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59365         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59366         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59367         original wcwidth in non-UTF-8 locales.
59368         * modules/wcwidth (Depends-on): Add localcharset, streq,
59369         uniwidth/width.
59370         * doc/functions/wcwidth.texi: Update.
59371
59372 2007-07-07  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59375         (wcwidth): New declaration.
59376         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59377         macros.
59378         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59379         here. Prepare for creating <wchar.h> unconditionally.
59380         * modules/wchar (Depends-on): Add link-warning.
59381         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59382         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59383         * lib/wcwidth.h: Remove file.
59384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59385         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59386         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59387         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59388         (Include): Replace wcwidth.h with <wchar.h>.
59389         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59390         * lib/mbchar.h: Don't include wcwidth.h.
59391         * lib/mbswidth.c: Likewise.
59392         * NEWS: Mention the change.
59393
59394 2007-07-07  Bruno Haible  <bruno@clisp.org>
59395
59396         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59397         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59398         definition with an external declaration.
59399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59400         defined as a function. Remove AC_C_INLINE requirement.
59401         * modules/wcwidth (Files): Add lib/wcwidth.c.
59402         (Makefile.am): Remove redundant statement.
59403
59404 2007-07-07  Bruno Haible  <bruno@clisp.org>
59405
59406         * MODULES.html.sh (Unicode string functions): Add the new modules.
59407
59408         * tests/uniwidth/test-u32-strwidth.c: New file.
59409         * modules/uniwidth/u32-strwidth-tests: New file.
59410
59411         * lib/uniwidth/u32-strwidth.c: New file.
59412         * modules/uniwidth/u32-strwidth: New file.
59413
59414         * tests/uniwidth/test-u16-strwidth.c: New file.
59415         * modules/uniwidth/u16-strwidth-tests: New file.
59416
59417         * lib/uniwidth/u16-strwidth.c: New file.
59418         * modules/uniwidth/u16-strwidth: New file.
59419
59420         * tests/uniwidth/test-u8-strwidth.c: New file.
59421         * modules/uniwidth/u8-strwidth-tests: New file.
59422
59423         * lib/uniwidth/u8-strwidth.c: New file.
59424         * modules/uniwidth/u8-strwidth: New file.
59425
59426         * tests/uniwidth/test-u32-width.c: New file.
59427         * modules/uniwidth/u32-width-tests: New file.
59428
59429         * lib/uniwidth/u32-width.c: New file.
59430         * modules/uniwidth/u32-width: New file.
59431
59432         * tests/uniwidth/test-u16-width.c: New file.
59433         * modules/uniwidth/u16-width-tests: New file.
59434
59435         * lib/uniwidth/u16-width.c: New file.
59436         * modules/uniwidth/u16-width: New file.
59437
59438         * tests/uniwidth/test-u8-width.c: New file.
59439         * modules/uniwidth/u8-width-tests: New file.
59440
59441         * lib/uniwidth/u8-width.c: New file.
59442         * modules/uniwidth/u8-width: New file.
59443
59444         * tests/uniwidth/test-uc_width.c: New file.
59445         * modules/uniwidth/width-tests: New file.
59446
59447         * lib/uniwidth/width.c: New file, from GNU libiconv.
59448         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59449         * modules/uniwidth/width: New file.
59450
59451         * lib/uniwidth.h: New file, from GNU libiconv.
59452         * modules/uniwidth/base: New file.
59453
59454 2007-07-07  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/uniname.h: New file, from GNU gettext.
59457         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59458         * lib/uniname/uninames.h: New file, from GNU gettext.
59459         * lib/uniname/uniname.c: New file, from GNU gettext.
59460         * tests/uniname/test-uninames.sh: New file.
59461         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59462         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59463         * modules/uniname/base: New file.
59464         * modules/uniname/uniname: New file.
59465         * modules/uniname/uniname-tests: New file.
59466         * MODULES.html.sh (Unicode string functions): Add the new modules.
59467
59468 2007-07-06  Bruno Haible  <bruno@clisp.org>
59469
59470         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59471
59472 2007-07-06  Bruno Haible  <bruno@clisp.org>
59473
59474         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59475         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59476         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59477         include <sys/time.h>.
59478         Reported by Eric Blake.
59479
59480 2007-07-06  Eric Blake  <ebb9@byu.net>
59481
59482         Fix testing canonicalize on cygwin.
59483         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59484         Revert patch from 2007-06-19.
59485         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59486         canonicalize module is also in use.
59487         * tests/test-canonicalize.c: New file.
59488         * tests/test-canonicalize.sh: Likewise.
59489         * modules/canonicalize-tests: Likewise.
59490
59491 2007-07-06  Jim Meyering  <jim@meyering.net>
59492
59493         * lib/getugroups.c (getugroups): Detect getgrent failure.
59494         Adjust comment to reflect reality: this function may return -1.
59495
59496 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59497
59498         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59499         the new TP address.
59500         (usage): Fix typo
59501         (gnulib_mk): New variable.
59502
59503 2007-07-05  Jim Meyering  <jim@meyering.net>
59504
59505         Don't let endgrent clobber errno, no matter how improbable.
59506         * lib/getugroups.c (getugroups): Save and restore errno around
59507         endgrent call.
59508
59509         Close the group DB even when failing with 2^31 or more members.
59510         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59511
59512 2007-07-04  Jim Meyering  <jim@meyering.net>
59513
59514         * lib/getugroups.h: New file.
59515         * lib/getugroups.c: Include "getugroups.h".
59516         Remove uses of "register" keyword.
59517         Move local variable, "cp", down into scope where used.
59518         Give "username" parameter the "const" attribute.
59519         * modules/getugroups (Files): Add lib/getugroups.h
59520
59521 2007-07-04  Karl Berry  <karl@gnu.org>
59522
59523         * MODULES.html.sh (func_all_modules): Complete rename of
59524         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59525
59526 2007-07-02  Bruno Haible  <bruno@clisp.org>
59527
59528         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59529         mode, when inttypes.h comes from gnulib.
59530         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59531
59532 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59533
59534         * NEWS: Mention lgpl module name change.
59535
59536         * modules/lgpl-2.1: Renamed from lgpl.
59537
59538         * NEWS: Mention gpl module name change.
59539
59540         * modules/gpl-3.0: New file, based on gpl-2.0.
59541
59542         * modules/gpl-2.0: Renamed from gpl.
59543
59544         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59545         doc/gpl-2.0.texi.
59546
59547 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59548
59549         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59550         #define __STDC_LIMIT_MACROS temporarily while including
59551         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59552         Problem reported by Joel E. Denny in
59553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59554
59555 2007-07-01  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/unistdio.h: New file.
59558         * lib/unistdio/u-asnprintf.h: New file.
59559         * lib/unistdio/u-asprintf.h: New file.
59560         * lib/unistdio/u-printf-args.c: New file.
59561         * lib/unistdio/u-printf-args.h: New file.
59562         * lib/unistdio/u-printf-parse.h: New file.
59563         * lib/unistdio/u-snprintf.h: New file.
59564         * lib/unistdio/u-sprintf.h: New file.
59565         * lib/unistdio/u-vasprintf.h: New file.
59566         * lib/unistdio/u-vsnprintf.h: New file.
59567         * lib/unistdio/u-vsprintf.h: New file.
59568         * lib/unistdio/ulc-asnprintf.c: New file.
59569         * lib/unistdio/ulc-asprintf.c: New file.
59570         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59571         * lib/unistdio/ulc-printf-parse.c: New file.
59572         * lib/unistdio/ulc-snprintf.c: New file.
59573         * lib/unistdio/ulc-sprintf.c: New file.
59574         * lib/unistdio/ulc-vasnprintf.c: New file.
59575         * lib/unistdio/ulc-vasprintf.c: New file.
59576         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59577         * lib/unistdio/ulc-vsnprintf.c: New file.
59578         * lib/unistdio/ulc-vsprintf.c: New file.
59579         * lib/unistdio/u8-asnprintf.c: New file.
59580         * lib/unistdio/u8-asprintf.c: New file.
59581         * lib/unistdio/u8-printf-parse.c: New file.
59582         * lib/unistdio/u8-snprintf.c: New file.
59583         * lib/unistdio/u8-sprintf.c: New file.
59584         * lib/unistdio/u8-vasnprintf.c: New file.
59585         * lib/unistdio/u8-vasprintf.c: New file.
59586         * lib/unistdio/u8-vsnprintf.c: New file.
59587         * lib/unistdio/u8-vsprintf.c: New file.
59588         * lib/unistdio/u8-u8-asnprintf.c: New file.
59589         * lib/unistdio/u8-u8-asprintf.c: New file.
59590         * lib/unistdio/u8-u8-snprintf.c: New file.
59591         * lib/unistdio/u8-u8-sprintf.c: New file.
59592         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59593         * lib/unistdio/u8-u8-vasprintf.c: New file.
59594         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59595         * lib/unistdio/u8-u8-vsprintf.c: New file.
59596         * lib/unistdio/u16-asnprintf.c: New file.
59597         * lib/unistdio/u16-asprintf.c: New file.
59598         * lib/unistdio/u16-printf-parse.c: New file.
59599         * lib/unistdio/u16-snprintf.c: New file.
59600         * lib/unistdio/u16-sprintf.c: New file.
59601         * lib/unistdio/u16-vasnprintf.c: New file.
59602         * lib/unistdio/u16-vasprintf.c: New file.
59603         * lib/unistdio/u16-vsnprintf.c: New file.
59604         * lib/unistdio/u16-vsprintf.c: New file.
59605         * lib/unistdio/u16-u16-asnprintf.c: New file.
59606         * lib/unistdio/u16-u16-asprintf.c: New file.
59607         * lib/unistdio/u16-u16-snprintf.c: New file.
59608         * lib/unistdio/u16-u16-sprintf.c: New file.
59609         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59610         * lib/unistdio/u16-u16-vasprintf.c: New file.
59611         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59612         * lib/unistdio/u16-u16-vsprintf.c: New file.
59613         * lib/unistdio/u32-asnprintf.c: New file.
59614         * lib/unistdio/u32-asprintf.c: New file.
59615         * lib/unistdio/u32-printf-parse.c: New file.
59616         * lib/unistdio/u32-snprintf.c: New file.
59617         * lib/unistdio/u32-sprintf.c: New file.
59618         * lib/unistdio/u32-vasnprintf.c: New file.
59619         * lib/unistdio/u32-vasprintf.c: New file.
59620         * lib/unistdio/u32-vsnprintf.c: New file.
59621         * lib/unistdio/u32-vsprintf.c: New file.
59622         * lib/unistdio/u32-u32-asnprintf.c: New file.
59623         * lib/unistdio/u32-u32-asprintf.c: New file.
59624         * lib/unistdio/u32-u32-snprintf.c: New file.
59625         * lib/unistdio/u32-u32-sprintf.c: New file.
59626         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59627         * lib/unistdio/u32-u32-vasprintf.c: New file.
59628         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59629         * lib/unistdio/u32-u32-vsprintf.c: New file.
59630         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59631         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59632         * tests/unistdio/test-ulc-printf1.h: New file.
59633         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59634         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59635         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59636         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59637         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59638         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59639         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59640         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59641         * tests/unistdio/test-u8-asnprintf1.c: New file.
59642         * tests/unistdio/test-u8-asnprintf1.h: New file.
59643         * tests/unistdio/test-u8-printf1.h: New file.
59644         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59645         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59646         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59647         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59648         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59649         * tests/unistdio/test-u8-vasprintf1.c: New file.
59650         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59651         * tests/unistdio/test-u8-vsprintf1.c: New file.
59652         * tests/unistdio/test-u16-asnprintf1.c: New file.
59653         * tests/unistdio/test-u16-asnprintf1.h: New file.
59654         * tests/unistdio/test-u16-printf1.h: New file.
59655         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59656         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59657         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59658         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59659         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59660         * tests/unistdio/test-u16-vasprintf1.c: New file.
59661         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59662         * tests/unistdio/test-u16-vsprintf1.c: New file.
59663         * tests/unistdio/test-u32-asnprintf1.c: New file.
59664         * tests/unistdio/test-u32-asnprintf1.h: New file.
59665         * tests/unistdio/test-u32-printf1.h: New file.
59666         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59667         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59668         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59669         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59670         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59671         * tests/unistdio/test-u32-vasprintf1.c: New file.
59672         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59673         * tests/unistdio/test-u32-vsprintf1.c: New file.
59674         * modules/unistdio/base: New file.
59675         * modules/unistdio/u-printf-args: New file.
59676         * modules/unistdio/ulc-asnprintf: New file.
59677         * modules/unistdio/ulc-asprintf: New file.
59678         * modules/unistdio/ulc-fprintf: New file.
59679         * modules/unistdio/ulc-printf-parse: New file.
59680         * modules/unistdio/ulc-snprintf: New file.
59681         * modules/unistdio/ulc-sprintf: New file.
59682         * modules/unistdio/ulc-vasnprintf: New file.
59683         * modules/unistdio/ulc-vasprintf: New file.
59684         * modules/unistdio/ulc-vfprintf: New file.
59685         * modules/unistdio/ulc-vsnprintf: New file.
59686         * modules/unistdio/ulc-vsprintf: New file.
59687         * modules/unistdio/u8-asnprintf: New file.
59688         * modules/unistdio/u8-asprintf: New file.
59689         * modules/unistdio/u8-printf-parse: New file.
59690         * modules/unistdio/u8-snprintf: New file.
59691         * modules/unistdio/u8-sprintf: New file.
59692         * modules/unistdio/u8-vasnprintf: New file.
59693         * modules/unistdio/u8-vasprintf: New file.
59694         * modules/unistdio/u8-vsnprintf: New file.
59695         * modules/unistdio/u8-vsprintf: New file.
59696         * modules/unistdio/u8-u8-asnprintf: New file.
59697         * modules/unistdio/u8-u8-asprintf: New file.
59698         * modules/unistdio/u8-u8-snprintf: New file.
59699         * modules/unistdio/u8-u8-sprintf: New file.
59700         * modules/unistdio/u8-u8-vasnprintf: New file.
59701         * modules/unistdio/u8-u8-vasprintf: New file.
59702         * modules/unistdio/u8-u8-vsnprintf: New file.
59703         * modules/unistdio/u8-u8-vsprintf: New file.
59704         * modules/unistdio/u16-asnprintf: New file.
59705         * modules/unistdio/u16-asprintf: New file.
59706         * modules/unistdio/u16-printf-parse: New file.
59707         * modules/unistdio/u16-snprintf: New file.
59708         * modules/unistdio/u16-sprintf: New file.
59709         * modules/unistdio/u16-vasnprintf: New file.
59710         * modules/unistdio/u16-vasprintf: New file.
59711         * modules/unistdio/u16-vsnprintf: New file.
59712         * modules/unistdio/u16-vsprintf: New file.
59713         * modules/unistdio/u16-u16-asnprintf: New file.
59714         * modules/unistdio/u16-u16-asprintf: New file.
59715         * modules/unistdio/u16-u16-snprintf: New file.
59716         * modules/unistdio/u16-u16-sprintf: New file.
59717         * modules/unistdio/u16-u16-vasnprintf: New file.
59718         * modules/unistdio/u16-u16-vasprintf: New file.
59719         * modules/unistdio/u16-u16-vsnprintf: New file.
59720         * modules/unistdio/u16-u16-vsprintf: New file.
59721         * modules/unistdio/u32-asnprintf: New file.
59722         * modules/unistdio/u32-asprintf: New file.
59723         * modules/unistdio/u32-printf-parse: New file.
59724         * modules/unistdio/u32-snprintf: New file.
59725         * modules/unistdio/u32-sprintf: New file.
59726         * modules/unistdio/u32-vasnprintf: New file.
59727         * modules/unistdio/u32-vasprintf: New file.
59728         * modules/unistdio/u32-vsnprintf: New file.
59729         * modules/unistdio/u32-vsprintf: New file.
59730         * modules/unistdio/u32-u32-asnprintf: New file.
59731         * modules/unistdio/u32-u32-asprintf: New file.
59732         * modules/unistdio/u32-u32-snprintf: New file.
59733         * modules/unistdio/u32-u32-sprintf: New file.
59734         * modules/unistdio/u32-u32-vasnprintf: New file.
59735         * modules/unistdio/u32-u32-vasprintf: New file.
59736         * modules/unistdio/u32-u32-vsnprintf: New file.
59737         * modules/unistdio/u32-u32-vsprintf: New file.
59738         * modules/unistdio/ulc-asnprintf-tests: New file.
59739         * modules/unistdio/ulc-vasnprintf-tests: New file.
59740         * modules/unistdio/ulc-vasprintf-tests: New file.
59741         * modules/unistdio/ulc-vsnprintf-tests: New file.
59742         * modules/unistdio/ulc-vsprintf-tests: New file.
59743         * modules/unistdio/u8-asnprintf-tests: New file.
59744         * modules/unistdio/u8-vasnprintf-tests: New file.
59745         * modules/unistdio/u8-vasprintf-tests: New file.
59746         * modules/unistdio/u8-vsnprintf-tests: New file.
59747         * modules/unistdio/u8-vsprintf-tests: New file.
59748         * modules/unistdio/u16-asnprintf-tests: New file.
59749         * modules/unistdio/u16-vasnprintf-tests: New file.
59750         * modules/unistdio/u16-vasprintf-tests: New file.
59751         * modules/unistdio/u16-vsnprintf-tests: New file.
59752         * modules/unistdio/u16-vsprintf-tests: New file.
59753         * modules/unistdio/u32-asnprintf-tests: New file.
59754         * modules/unistdio/u32-vasnprintf-tests: New file.
59755         * modules/unistdio/u32-vasprintf-tests: New file.
59756         * modules/unistdio/u32-vsnprintf-tests: New file.
59757         * modules/unistdio/u32-vsprintf-tests: New file.
59758         * MODULES.html.sh (Unicode string functions): Add the new modules.
59759
59760 2007-07-01  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/sprintf.c (sprintf): Limit the available length estimation,
59763         to avoid address wraparound.
59764         * lib/vsprintf.c (vsprintf): Likewise.
59765         * modules/sprintf-posix (Dependencies): Add stdint.
59766         * modules/vsprintf-posix (Dependencies): Likewise.
59767
59768 2007-07-01  Bruno Haible  <bruno@clisp.org>
59769
59770         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59771         Windows PATH as well. Conservative double-quoting. Comments.
59772
59773 2007-07-01  Bruno Haible  <bruno@clisp.org>
59774             Eric Blake  <ebb9@byu.net>
59775             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59776
59777         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59778         empty components in $PATH, denoting '.'.
59779
59780 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59781
59782         * gnulib-tool: Fix indentation.
59783         (func_create_megatestdir): Likewise.
59784         Report by Bruno Haible.
59785
59786 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59787
59788         Sync from Automake.
59789         * build-aux/gnupload: Fix shell portability issues with for loops.
59790         Report by Karl Berry.
59791
59792 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59793
59794         * build-aux/maint.mk (POURL): Use translationproject.org.
59795
59796 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59797             Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59800         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59801         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59802         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59803         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59804
59805 2007-06-27  Bruno Haible  <bruno@clisp.org>
59806
59807         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59808         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59809
59810 2007-06-26  Karl Berry  <karl@gnu.org>
59811
59812         * MODULES.html.sh: remove xreadlink-with-size.
59813
59814 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59817         method that I hope also handles the double-include problem noted
59818         by Bruno Haible in
59819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59820
59821 2007-06-23  Bruno Haible  <bruno@clisp.org>
59822
59823         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59824         Don't let the 'mostlyclean' target fail if the last subdirectory could
59825         not be removed.
59826         Reported by Karl Berry.
59827
59828 2007-06-23  Bruno Haible  <bruno@clisp.org>
59829
59830         * gnulib-tool (echo): Add a speedier workaround for ksh.
59831         * tests/test-echo.sh: Likewise.
59832
59833 2007-06-23  Bruno Haible  <bruno@clisp.org>
59834
59835         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59836         * tests/test-echo.sh: Likewise.
59837
59838 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59839
59840         * gnulib-tool (IFS): Initialize early, so we don't set it to
59841         empty later.
59842         (self_abspathname): Rewrite algorithm to set it, reindent.
59843         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59844         (func_create_megatestdir): Merge some sed scripts.
59845
59846 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59849         exposed by Sun Studio 11 cc on Solaris 8.
59850
59851 2007-06-22  Bruno Haible  <bruno@clisp.org>
59852
59853         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59854         backslashes.
59855         * tests/test-echo.sh: New file.
59856
59857 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59858
59859         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59860         simplify `sed_replace_build_aux' scripts, they are portable but
59861         echoing them with `echo' is not.
59862         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59863
59864 2007-06-21  Karl Berry  <karl@gnu.org>
59865
59866         * config/srclist.txt: guess we can't handle the licenses via
59867         srclist at the moment.
59868
59869 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59870
59871         * MODULES.html.sh: Add include_next.
59872         * modules/include_next: New file.
59873
59874 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59877         INCLUDE_NEXT.
59878         (gl_CHECK_NEXT_HEADERS): New macro.
59879         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59880         the obsolescent gl_ABSOLUTE_HEADER.
59881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59882         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59883         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59884         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59885         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59886         * m4/math_h.m4 (gl_MATH_H): Likewise.
59887         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59888         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59889         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59890         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59891         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59892         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59893         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59894         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59895         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59897         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59898         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59899         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59900         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59901         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59902         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59903         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59904         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59905         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59906         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59907         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59908         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59909         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59910         * lib/float_.h: Likewise.
59911         * lib/inttypes_.h: Likewise.
59912         * lib/math_.h: Likewise.
59913         * lib/search_.h: Likewise.
59914         * lib/signal_.h: Likewise.
59915         * lib/stdint_.h: Likewise.
59916         * lib/stdio_.h: Likewise.
59917         * lib/stdlib_.h: Likewise.
59918         * lib/string_.h: Likewise.
59919         * lib/sys_stat_.h: Likewise.
59920         * lib/sys_time_.h: Likewise.
59921         * lib/time_.h: Likewise.
59922         * lib/unistd_.h: Likewise.
59923         * lib/wchar_.h: Likewise.
59924         * lib/wctype_.h: Likewise.
59925         * lib/dirent_.h: Likewise.
59926         * lib/iconv_.h: Likewise.
59927         * lib/locale_.h: Likewise.
59928         * lib/netinet_in_.h: Likewise.
59929         * lib/sys_select_.h: Likewise.
59930         * lib/sys_socket_.h: Likewise.
59931         * lib/sysexits_.h: Likewise.
59932         * modules/fcntl (Depends-on): Depend on include_next, not
59933         absolute_header.
59934         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59935         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59936         * modules/fchdir: Likewise.
59937         * modules/float: Likewise.
59938         * modules/iconv_open: Likewise.
59939         * modules/inttypes: Likewise.
59940         * modules/locale: Likewise.
59941         * modules/math: Likewise.
59942         * modules/netinet_in: Likewise.
59943         * modules/search: Likewise.
59944         * modules/signal: Likewise.
59945         * modules/stdint: Likewise.
59946         * modules/stdio: Likewise.
59947         * modules/stdlib: Likewise.
59948         * modules/string: Likewise.
59949         * modules/sys_select: Likewise.
59950         * modules/sys_socket: Likewise.
59951         * modules/sys_stat: Likewise.
59952         * modules/sys_time: Likewise.
59953         * modules/sysexits: Likewise.
59954         * modules/time: Likewise.
59955         * modules/unistd: Likewise.
59956         * modules/wchar: Likewise.
59957         * modules/wctype: Likewise.
59958         * modules/sys_stat: Change maintainer to "all".
59959         * modules/unistd: Likewise.
59960
59961 2007-06-20  Karl Berry  <karl@gnu.org>
59962
59963         * config/srclist.txt: track www changes in license files.
59964
59965 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59966
59967         * build-aux/bootstrap: Remove stray dot.
59968         Make sure build_aux settings are honored when linking
59969         gnulib_extra_files.
59970
59971 2007-06-19  Eric Blake  <ebb9@byu.net>
59972
59973         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59974         Allow compilation on cygwin.
59975
59976 2007-06-19  Jim Meyering  <jim@meyering.net>
59977
59978         xreadlink-with-size: Remove module.  No longer used.
59979         Ex-callers now use xreadlink or mreadlink-with-size.
59980         * modules/xreadlink-with-size: Remove module.
59981         * lib/xreadlink-with-size.c: Remove file.
59982         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59983         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59984         just before the function definition *is* accurate.
59985
59986         Eliminate one way canonicalize_filename_mode could exit.
59987         * lib/canonicalize.c (canonicalize_filename_mode):
59988         Use mreadlink_with_size, not xreadlink_with_size.
59989
59990 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         Detect porting problems to FreeBSD/arm, which has time_t wider than
59993         long int.  Original problem reported for GNU diff by Xin Li in
59994         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59995         * modules/getdate (Depends-on): Add intprops, verify.
59996         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59997         is an integer type no wider than long int.
59998
59999 2007-06-18  Jim Meyering  <jim@meyering.net>
60000
60001         New module: mreadlink-with-size.
60002         * MODULES.html.sh: Add mreadlink-with-size.
60003         * modules/mreadlink-with-size: New module
60004         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60005         not xreadlink-with-size.
60006         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60007
60008 2007-06-16  Bruno Haible  <bruno@clisp.org>
60009
60010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60011         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60012         Reported by Gary V. Vaughan <gary@gnu.org>.
60013
60014 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         Revamp lchown so that it lives in unistd.h where it belongs.
60017         * lib/lchown.h: Remove.
60018         * lib/dirchownmod.c: Don't include lib/lchown.h.
60019         * lib/fchownat.c: Likewise.
60020         * lib/openat.c: Likewise.
60021         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60022         does not follow symlinks.
60023         (EOPNOTSUPP): Define if not defined.
60024         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60025         is defined to 0.
60026         (lchown): New decl.
60027         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60028         Do not check for lchown decl.
60029         Set REPLACE_LCHOWN.
60030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60031         REPLACE_LCHOWN.
60032         * modules/chown: Make it clear it follows symlinks.
60033         * modules/lchown: Make it clear it doesn't follow symlinks.
60034         (Files): Remove lib/lchown.h
60035         (Depends-on): Add unistd.
60036         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60037         (Include): Include <unistd.h>, not "lchown.h".
60038         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60039         REPLACE_LCHOWN.
60040
60041 2007-06-15  Jim Meyering  <jim@meyering.net>
60042
60043         Change license (GPL to LGPL) of fsusage and dependents.
60044         * modules/fsusage (License): Change to LGPL.
60045         * modules/full-read (License): Likewise.
60046         * modules/full-write (License): Likewise.
60047         * modules/safe-read (License): Likewise.
60048         * modules/safe-write (License): Likewise.
60049
60050 2007-06-14  Ben Pfaff  <blp@gnu.org>
60051
60052         Missing part of allocsa -> malloca transition.
60053         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60054         gl_MALLOCA.
60055
60056 2007-06-12  Bruno Haible  <bruno@clisp.org>
60057
60058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60059         to ia64, x86_64, i386.
60060         Reported by Eric Blake.
60061
60062 2007-06-12  Bruno Haible  <bruno@clisp.org>
60063
60064         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60065         cross-compiling to x86_64.
60066
60067 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60070         glitch reported by Ralf Wildenhues in
60071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60072
60073         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60074         Vin Shelton.
60075
60076 2007-06-11  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60079         replacement string.
60080         Reported by Eric Blake.
60081
60082 2007-06-10  Bruno Haible  <bruno@clisp.org>
60083
60084         Prepare vasnprintf code for use with Unicode strings.
60085         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60086         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60087         TYPE_U32_STRING.
60088         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60089         a_u32_string variants.
60090         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60091         * lib/printf-args.c: Don't include config.h and the specification
60092         header if PRINTF_FETCHARGS is already defined.
60093         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60094         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60095         TYPE_U16_STRING, TYPE_U32_STRING.
60096         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60097         u16_directive, u16_directives, u32_directive, u32_directives): New
60098         types.
60099         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60100         New declarations.
60101         * lib/printf-parse.c: Don't include config.h and the specification
60102         header if PRINTF_PARSE is already defined. Eliminate the set of
60103         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60104         them now. Include c-ctype.h.
60105         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60106         directive and CHAR_T_ONLY_ASCII.
60107         * lib/vasnprintf.c: Don't include config.h and the specification header
60108         if VASNPRINTF is already defined.
60109         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60110         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60111         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60112         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60113         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60114         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60115         code accordingly.
60116         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60117         pad_ourselves also in this case, with the 'c' and 's' directives, and
60118         with a different notion of "width".
60119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60120
60121 2007-06-10  Bruno Haible  <bruno@clisp.org>
60122
60123         * modules/unistr/u32-mbsnlen: New file.
60124         * lib/unistr/u32-mbsnlen.c: New file.
60125
60126         * modules/unistr/u16-mbsnlen: New file.
60127         * lib/unistr/u16-mbsnlen.c: New file.
60128
60129         * modules/unistr/u8-mbsnlen: New file.
60130         * lib/unistr/u8-mbsnlen.c: New file.
60131
60132         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60133         declarations.
60134
60135 2007-06-10  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/string_.h (mbsnlen): New declaration.
60138         * lib/mbsnlen.c: New file.
60139         * m4/mbsnlen.m4: New file.
60140         * modules/mbsnlen: New file.
60141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60142         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60143         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60144
60145 2007-06-10  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60148
60149 2007-06-10  Bruno Haible  <bruno@clisp.org>
60150
60151         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60152         * lib/mbuiter.h: Likewise.
60153
60154 2007-06-10  Bruno Haible  <bruno@clisp.org>
60155
60156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60157         declaration.
60158
60159 2007-06-10  Karl Berry  <karl@gnu.org>
60160
60161         * config/srclist.txt: remove gettext entries, Bruno prefers
60162         to update individually.
60163
60164 2007-06-10  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60167         'maxlen'. Ensure only length + width bytes are allocated, not
60168         length + 1 + width.
60169
60170 2007-06-09  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60173         (CHAR_T): Remove macro.
60174         (VASNPRINTF): Update.
60175
60176 2007-06-09  Bruno Haible  <bruno@clisp.org>
60177
60178         * MODULES.html.sh (Unicode string functions): Add the new modules.
60179
60180         * modules/uniconv/u32-conv-to-enc: New file.
60181         * lib/uniconv/u32-conv-to-enc.c: New file.
60182         * modules/uniconv/u32-conv-to-enc-tests: New file.
60183         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60184
60185         * modules/uniconv/u16-conv-to-enc: New file.
60186         * lib/uniconv/u16-conv-to-enc.c: New file.
60187         * lib/uniconv/u-conv-to-enc.h: New file.
60188         * modules/uniconv/u16-conv-to-enc-tests: New file.
60189         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60190
60191         * modules/uniconv/u8-conv-to-enc: New file.
60192         * lib/uniconv/u8-conv-to-enc.c: New file.
60193         * modules/uniconv/u8-conv-to-enc-tests: New file.
60194         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60195
60196         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60197         u32_conv_to_encoding): New declarations.
60198
60199 2007-06-09  Bruno Haible  <bruno@clisp.org>
60200
60201         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60202
60203 2007-06-09  Bruno Haible  <bruno@clisp.org>
60204
60205         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60206         * modules/malloca: Renamed from modules/allocsa, updated.
60207         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60208         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60209         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60210         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60211         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60212         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60213         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60214         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60215         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60216         * modules/c-strcasestr (Depends-on): Update.
60217         * lib/c-strcasestr.c: Update.
60218         * modules/c-strstr (Depends-on): Update.
60219         * lib/c-strstr.c: Update.
60220         * modules/canonicalize-lgpl (Depends-on): Update.
60221         * lib/canonicalize-lgpl.c: Update.
60222         * modules/clean-temp (Depends-on): Update.
60223         * lib/clean-temp.c: Update.
60224         * modules/csharpcomp (Depends-on): Update.
60225         * lib/csharpcomp.c: Update.
60226         * modules/csharpexec (Depends-on): Update.
60227         * lib/csharpexec.c: Update.
60228         * modules/javacomp (Depends-on): Update.
60229         * lib/javacomp.c: Update.
60230         * modules/javaexec (Depends-on): Update.
60231         * lib/javaexec.c: Update.
60232         * modules/mbscasestr (Depends-on): Update.
60233         * lib/mbscasestr.c: Update.
60234         * modules/mbsstr (Depends-on): Update.
60235         * lib/mbsstr.c: Update.
60236         * modules/setenv (Depends-on): Update.
60237         * lib/setenv.c: Update.
60238         * modules/strcasestr (Depends-on): Update.
60239         * lib/strcasestr.c: Update.
60240         * modules/striconveha (Depends-on): Update.
60241         * lib/striconveha.c: Update.
60242         * modules/relocatable-prog-wrapper (Files): Update.
60243         * lib/relocwrapper.c: Update.
60244         * build-aux/install-reloc: Update.
60245         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60246
60247 2007-06-08  Bruno Haible  <bruno@clisp.org>
60248
60249         Port to uClibc.
60250         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60251         * lib/fpurge.c (fpurge): Likewise.
60252         * lib/freading.c (freading): Likewise.
60253         * lib/fseeko.c (rpl_fseeko): Likewise.
60254         * lib/fseterr.c (fseterr): Likewise.
60255         * lib/fwriting.c (fwriting): Likewise.
60256         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60257
60258 2007-06-08  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60261         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60262         * modules/gettext (Files): Add m4/intlmacosx.m4.
60263
60264 2007-06-07  Bruno Haible  <bruno@clisp.org>
60265
60266         * modules/localename-tests: New file.
60267         * tests/test-localename.c: New file.
60268
60269         New module 'localename'.
60270         * lib/localename.h: New file.
60271         * lib/localename.c: New file, from GNU gettext.
60272         * m4/localename.m4: New file.
60273         * modules/localename: New file.
60274
60275 2007-06-07  Bruno Haible  <bruno@clisp.org>
60276
60277         Work around the lack of <wchar.h> on some builds of uClibc.
60278         * doc/headers/wchar.texi: Update.
60279         * lib/wchar_.h: Include <wchar.h> only if it exists.
60280         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60281         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60282         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60283         doesn't exist.
60284         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60285         * modules/mbfile (Depends-on): Add wchar.
60286         * modules/mbiter (Depends-on): Likewise.
60287         * modules/mbuiter (Depends-on): Likewise.
60288         Reported by Simon Josefsson.
60289
60290 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         Work around problem reported by Steven M. Schweda in
60293         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60294         Tru64 5.1B with the Compaq compiler environment installed declares
60295         an 'isblank' function but does not define it in the C library.
60296         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60297         * lib/regex_internal.h (isblank): Likewise.
60298         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60299         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60300
60301 2007-06-05  Bruno Haible  <bruno@clisp.org>
60302
60303         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60304         ia64.
60305         * modules/printf-safe: New file.
60306         * modules/fprintf-posix (Depends-on): Add printf-safe.
60307         * modules/printf-posix (Depends-on): Likewise.
60308         * modules/snprintf-posix (Depends-on): Likewise.
60309         * modules/sprintf-posix (Depends-on): Likewise.
60310         * modules/vasnprintf-posix (Depends-on): Likewise.
60311         * modules/vasprintf-posix (Depends-on): Likewise.
60312         * modules/vfprintf-posix (Depends-on): Likewise.
60313         * modules/vprintf-posix (Depends-on): Likewise.
60314         * modules/vsnprintf-posix (Depends-on): Likewise.
60315         * modules/vsprintf-posix (Depends-on): Likewise.
60316         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60317         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60318         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60319         "no" on i386, x86_64, ia64.
60320         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60321         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60322         on i386, x86_64, ia64.
60323         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60324         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60325         on i386, x86_64, ia64.
60326         * tests/test-vasnprintf-posix.c: Include float.h.
60327         (LDBL80_WORDS): New macro.
60328         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60329         on i386, x86_64, ia64.
60330         * tests/test-vasprintf-posix.c: Include float.h.
60331         (LDBL80_WORDS): New macro.
60332         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60333         on i386, x86_64, ia64.
60334         * tests/test-snprintf-posix.c: Include float.h.
60335         * tests/test-sprintf-posix.c: Likewise.
60336         * tests/test-vsnprintf-posix.c: Likewise.
60337         * tests/test-vsprintf-posix.c: Likewise.
60338
60339 2007-06-05  Bruno Haible  <bruno@clisp.org>
60340
60341         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60343         non-IEEE numbers on i386, x86_64, ia64.
60344         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60345         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60346         * tests/test-isnanl.h: Include float.h.
60347         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60348
60349 2007-06-05  Bruno Haible  <bruno@clisp.org>
60350
60351         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60352         also the %a / %A. Handle the %a / %A code before this extra handling.
60353
60354 2007-06-05  Bruno Haible  <bruno@clisp.org>
60355
60356         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60357         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60358
60359 2007-06-05  Bruno Haible  <bruno@clisp.org>
60360
60361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60362         typo in variable name.
60363
60364 2007-06-05  Eric Blake  <ebb9@byu.net>
60365
60366         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60367         Reported by Simon Josefsson.
60368
60369 2007-06-04  Bruno Haible  <bruno@clisp.org>
60370
60371         Avoid test failures on some PowerPC platforms.
60372         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60373         Define differently for PowerPC.
60374         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60375         Reported by Gary V. Vaughan <gary@gnu.org>.
60376
60377 2007-06-02  Bruno Haible  <bruno@clisp.org>
60378
60379         Fix test-stdint failure on FreeBSD/ia64.
60380         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60381         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60382         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60383         * doc/headers/stdint.texi: Update.
60384
60385 2007-06-01  Bruno Haible  <bruno@clisp.org>
60386
60387         * tests/test-binary-io.c (main): Pass a third argument to open().
60388         Reported by Gary V. Vaughan <gary@gnu.org>.
60389
60390 2007-06-01  Bruno Haible  <bruno@clisp.org>
60391
60392         * doc/functions/frexpl.texi: Update for mingw.
60393
60394 2007-06-01  Bruno Haible  <bruno@clisp.org>
60395
60396         * tests/test-lseek.c (main): Disable test of errno for invalid third
60397         argument.
60398         * doc/functions/lseek.texi: Update.
60399         Reported by Gary V. Vaughan <gary@gnu.org>.
60400
60401 2007-05-28  Bruno Haible  <bruno@clisp.org>
60402
60403         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60404
60405 2007-05-31  Eric Blake  <ebb9@byu.net>
60406
60407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60408         cross compiling.
60409
60410 2007-05-30  Eric Blake  <ebb9@byu.net>
60411         and Bruno Haible  <bruno@clisp.org>
60412
60413         Work around mingw test failures exposed by m4-1.4.9b.
60414         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60415         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60416         moment.
60417
60418 2007-05-30  Bruno Haible  <bruno@clisp.org>
60419
60420         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60421         assuming that they are closed. Needed on HP-UX 11.
60422
60423 2007-05-29  Bruno Haible  <bruno@clisp.org>
60424
60425         Fix a problem with #include_next.
60426         * lib/dirent_.h: Split the double-inclusion guard.
60427         * lib/fcntl_.h: Likewise.
60428         * lib/float_.h: Likewise.
60429         * lib/iconv_.h: Likewise.
60430         * lib/inttypes_.h: Likewise.
60431         * lib/locale_.h: Likewise.
60432         * lib/math_.h: Likewise.
60433         * lib/netinet_in_.h: Likewise.
60434         * lib/search_.h: Likewise.
60435         * lib/signal_.h: Likewise.
60436         * lib/stdint_.h: Likewise.
60437         * lib/stdio_.h: Likewise.
60438         * lib/stdlib_.h: Likewise.
60439         * lib/string_.h: Likewise.
60440         * lib/sys_select_.h: Likewise.
60441         * lib/sys_socket_.h: Likewise.
60442         * lib/sys_stat_.h: Likewise.
60443         * lib/sys_time_.h: Likewise.
60444         * lib/sysexits_.h: Likewise.
60445         * lib/time_.h: Likewise.
60446         * lib/unistd_.h: Likewise.
60447         * lib/wchar_.h: Likewise.
60448         * lib/wctype_.h: Likewise.
60449
60450 2007-05-29  Bruno Haible  <bruno@clisp.org>
60451
60452         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60453         for the moment.
60454
60455 2007-05-29  Bruno Haible  <bruno@clisp.org>
60456
60457         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60458         invocation.
60459         Reported by Eric Blake.
60460
60461 2007-05-29  Bruno Haible  <bruno@clisp.org>
60462
60463         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60464         compiling case.
60465
60466 2007-05-29  Eric Blake  <ebb9@byu.net>
60467             Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60470         cross compiles.
60471
60472 2007-05-28  Eric Blake  <ebb9@byu.net>
60473
60474         * modules/closein-tests (test_closein_LDADD): Support test on
60475         cygwin with libtool.
60476
60477 2007-05-28  Bruno Haible  <bruno@clisp.org>
60478
60479         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60480         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60481         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60482         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60483         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60484         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60485         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60486         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60487         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60488
60489 2007-05-28  Eric Blake  <ebb9@byu.net>
60490
60491         Unconditionally include <config.h> in unit tests.
60492         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60493         * tests/test-allocsa.c, tests/test-arcfour.c,
60494         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60495         tests/test-array_list.c, tests/test-array_oset.c,
60496         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60497         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60498         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60499         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60500         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60501         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60502         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60503         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60504         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60505         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60506         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60507         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60508         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60509         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60510         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60511         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60512         test-md5.c, test-memmem.c, test-printf-posix.c,
60513         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60514         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60515         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60516         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60517         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60518         test-vasnprintf-posix2.c, test-vasnprintf.c,
60519         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60520         test-vfprintf-posix.c, test-vprintf-posix.c,
60521         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60522         test-xvasprintf.c: Likewise.
60523
60524 2007-05-28  Bruno Haible  <bruno@clisp.org>
60525
60526         * gnulib-tool (func_import): Remember the --with-tests command-line
60527         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60528         Reported by Eric Blake.
60529
60530 2007-05-28  Bruno Haible  <bruno@clisp.org>
60531
60532         * modules/ftell-tests: New file.
60533         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60534         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60535
60536         * lib/ftell.c: New file.
60537         * modules/ftell: New file.
60538         * m4/ftell.m4: New file.
60539         * doc/functions/ftell.texi: Update.
60540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60541         REPLACE_FTELL.
60542         * lib/stdio_.h (rpl_ftell): New declaration.
60543         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60544         REPLACE_FTELL.
60545
60546 2007-05-28  Eric Blake  <ebb9@byu.net>
60547
60548         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60549
60550 2007-05-28  Bruno Haible  <bruno@clisp.org>
60551
60552         * modules/fseek-tests: New file.
60553         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60554         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60555
60556         * lib/fseek.c: New file.
60557         * modules/fseek: New file.
60558         * m4/fseek.m4: New file.
60559         * doc/functions/fseek.texi: Update.
60560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60561         REPLACE_FSEEK.
60562         * lib/stdio_.h (rpl_fseek): New declaration.
60563         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60564         REPLACE_FSEEK.
60565
60566 2007-05-28  Bruno Haible  <bruno@clisp.org>
60567
60568         * lib/stdio_.h (fflush): More comments.
60569
60570 2007-05-28  Bruno Haible  <bruno@clisp.org>
60571
60572         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60573         runtime test.
60574
60575 2007-05-28  Eric Blake  <ebb9@byu.net>
60576
60577         Improve lseek module.
60578         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60579         * lib/unistd_.h (lseek): Scale back link warning message.
60580         * tests/test-lseek.c: Beef up test.
60581         * tests/test-lseek.sh: Exercise more facets of lseek.
60582         Reported by Bruno Haible.
60583
60584 2007-05-28  Bruno Haible  <bruno@clisp.org>
60585
60586         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60587         to define.
60588
60589 2007-05-27  Bruno Haible  <bruno@clisp.org>
60590
60591         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60592
60593 2007-05-27  Bruno Haible  <bruno@clisp.org>
60594
60595         * modules/openmp: New file.
60596         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60597         Noah Misch.
60598
60599 2007-05-26  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/chdir-long (Depends-on): Add fchdir.
60602         * modules/chdir-safer (Depends-on): Likewise.
60603         * modules/fts (Depends-on): Likewise.
60604         * modules/fts-lgpl (Depends-on): Likewise.
60605         * modules/openat (Depends-on): Likewise.
60606         * modules/savewd (Depends-on): Likewise.
60607
60608 2007-05-24  Eric Blake  <ebb9@byu.net>
60609
60610         Fix lseek on mingw.
60611         * modules/lseek: New module.
60612         * m4/lseek.m4: New file.
60613         * lib/lseek.c: New file.
60614         * modules/lseek-tests: New file.
60615         * tests/test-lseek.c: New file.
60616         * tests/test-lseek.sh: New file.
60617         * MODULES.html.sh: Document lseek module.
60618         * modules/fflush (Depends-on): Add lseek, fseeko.
60619         * modules/fseeko (Depends-on): Likewise.
60620         * modules/ftello (Depends-on): Likewise.
60621         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60622         broken.
60623         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60624         broken.
60625         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60626         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60627         * lib/ftello.c (rpl_ftello): Likewise.
60628         * tests/test-fseeko.c (main): Test this.
60629         * tests/test-fseeko.sh: Likewise.
60630         * tests/test-ftello.c (main): Likewise.
60631         * tests/test-ftello.sh: Likewise.
60632         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60633         implies replacing fseek.
60634         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60635         HAVE_FTELLO.
60636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60637         * modules/unistd (Makefile.am): Likewise.
60638         * lib/unistd_.h (lseek): Declare a replacement.
60639         * doc/functions/lseek.texi (lseek): Document this fix.
60640         * doc/functions/fseek.texi (fseek): Likewise.
60641         * doc/functions/ftell.texi (ftell): Likewise.
60642
60643 2007-05-24  Bruno Haible  <bruno@clisp.org>
60644
60645         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60646         in the printed representation of a NaN.
60647         * tests/test-vasprintf-posix.c (test_function): Likewise.
60648         * tests/test-snprintf-posix.h (test_function): Likewise.
60649         * tests/test-sprintf-posix.h (test_function): Likewise.
60650         Reported by Eric Blake.
60651
60652 2007-05-23  Eric Blake  <ebb9@byu.net>
60653
60654         Fix fseeko/ftello on cygwin 1.5.24.
60655         * doc/functions/fseeko.texi (fseeko): Document the fix.
60656         * doc/functions/ftello.texi (ftello): Document the fix.
60657         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60658         * doc/functions/stdout.text (stdout): New file.
60659         * doc/functions/stderr.text (stderr): New file.
60660         * doc/gnulib.texi (Function Substitutes): Use new files.
60661         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60662         prior to 1.7.0.
60663         * tests/test-ftello.c (main): Likewise for ftello.
60664         * tests/test-fseeko.sh: New file.
60665         * tests/test-ftello.sh: New file.
60666         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60667         with seekable stdin.
60668         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60669         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60670         (gl_REPLACE_FSEEKO): New macro.
60671         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60672         * modules/fseeko (Files): Distribute fseeko.c.
60673         * modules/ftello (Files): Distribute ftello.c.
60674         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60675         mode.
60676         * lib/ftello.c (rpl_ftello): New file.
60677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60678         fseeko, ftello.
60679         (gl_STDIN_LARGE_OFFSET): New macro.
60680         * modules/stdio (Makefile.am): Perform the replacement.
60681         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60682
60683 2007-05-23  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60686         GNULIB_POSIXCHECK is defined.
60687
60688 2007-05-21  Bruno Haible  <bruno@clisp.org>
60689
60690         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60691         Check also the output for NaN arguments. When cross-compiling, guess
60692         no on IRIX.
60693         * lib/vasnprintf.c: Update comments.
60694         * tests/test-vasnprintf-posix.c (strisnan): New function.
60695         (test_function): Use it.
60696         * tests/test-vasprintf-posix.c (strisnan): New function.
60697         (test_function): Use it.
60698         * tests/test-snprintf-posix.h (strisnan): New function.
60699         (test_function): Use it.
60700         * tests/test-sprintf-posix.h (strisnan): New function.
60701         (test_function): Use it.
60702         Reported by Eric Blake.
60703
60704 2007-05-20  Bruno Haible  <bruno@clisp.org>
60705
60706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60707         numbers that fails on BeOS.
60708         * doc/functions/frexpl.texi: Update.
60709
60710 2007-05-20  Jim Meyering  <jim@meyering.net>
60711
60712         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60713         forced upon us by glibc-2.6.
60714
60715 2007-05-20  Bruno Haible  <bruno@clisp.org>
60716
60717         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60718         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60719         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60720         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60721         NEED_PRINTF_INFINITE.
60722         (is_infinitel): New function.
60723         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60725         gl_PREREQ_VASNPRINTF_INFINITE.
60726         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60728         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60729         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60730         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60731         gl_PREREQ_VASNPRINTF_INFINITE.
60732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60739         * doc/functions/fprintf.texi: Update.
60740         * doc/functions/printf.texi: Update.
60741         * doc/functions/snprintf.texi: Update.
60742         * doc/functions/sprintf.texi: Update.
60743         * doc/functions/vfprintf.texi: Update.
60744         * doc/functions/vprintf.texi: Update.
60745         * doc/functions/vsnprintf.texi: Update.
60746         * doc/functions/vsprintf.texi: Update.
60747
60748 2007-05-20  Bruno Haible  <bruno@clisp.org>
60749
60750         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60751         was not found in libc.
60752         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60753
60754 2007-05-20  Bruno Haible  <bruno@clisp.org>
60755
60756         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60757         printed as "-nan" instead of "nan".
60758         * tests/test-vasprintf-posix.c (test_function): Likewise.
60759         * tests/test-snprintf-posix.h (test_function): Likewise.
60760         * tests/test-sprintf-posix.h (test_function): Likewise.
60761         Needed for HP-UX 11.
60762
60763 2007-05-20  Jim Meyering  <jim@meyering.net>
60764
60765         Fix buggy test for the fchownat-deref bug.
60766         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60767         symlink required for the run-test.  Without it, this test would
60768         always declare that fchownat doesn't work, and client code would
60769         unnecessarily use the replacement function with fixed libc.
60770         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60771         Reported by Greg Schafer.
60772
60773 2007-05-19  Bruno Haible  <bruno@clisp.org>
60774
60775         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60776         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60777         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60778         Needed for IRIX 6.5 and Solaris 2.5.1.
60779
60780 2007-05-19  Bruno Haible  <bruno@clisp.org>
60781
60782         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60783         (test_function): Skip tests involving -0.0 on platforms where
60784         -0.0 = 0.0.
60785         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60786         (test_function): Skip tests involving -0.0 on platforms where
60787         -0.0 = 0.0.
60788         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60789         (test_function): Skip tests involving -0.0 on platforms where
60790         -0.0 = 0.0.
60791         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60792         (test_function): Skip tests involving -0.0 on platforms where
60793         -0.0 = 0.0.
60794         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60795         tests.
60796         * tests/test-printf-posix.h (test_function): Likewise.
60797         * tests/test-printf-posix.output: Remove all -0.0 related results.
60798         Needed for IRIX 6.5.
60799
60800 2007-05-19  Bruno Haible  <bruno@clisp.org>
60801
60802         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60803         printed as "nan0x7fffffff" instead of "nan".
60804         * tests/test-vasprintf-posix.c (test_function): Likewise.
60805         * tests/test-snprintf-posix.h (test_function): Likewise.
60806         * tests/test-sprintf-posix.h (test_function): Likewise.
60807         * tests/test-fprintf-posix.h (NaN): Remove macro.
60808         (test_function): Remove all NaN related tests.
60809         * tests/test-printf-posix.h (NaN): Remove macro.
60810         (test_function): Remove all NaN related tests.
60811         * tests/test-printf-posix.output: Remove all NaN related results.
60812         Needed for IRIX 6.5.
60813
60814 2007-05-19  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60817         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60818
60819 2007-05-19  Bruno Haible  <bruno@clisp.org>
60820
60821         * lib/float_.h: New file.
60822         * m4/float_h.m4: New file.
60823         * modules/float: New file.
60824         * modules/isnanl (Dependencies): Add float.
60825         * modules/isnanl-nolibm (Dependencies): Likewise.
60826         * modules/mathl (Dependencies): Likewise.
60827         * modules/printf-frexpl (Dependencies): Likewise.
60828         * modules/signbit (Dependencies): Likewise.
60829         * modules/vasnprintf (Dependencies): Likewise.
60830         * doc/headers/float.texi: Update.
60831
60832 2007-05-19  Jim Meyering  <jim@meyering.net>
60833
60834         * lib/utimens.c (gl_futimens): Rename from futimens,
60835         now that glibc-2.6 declares futimens.
60836         * lib/utimens.h: Likewise.
60837
60838 2007-05-19  Bruno Haible  <bruno@clisp.org>
60839
60840         Avoid test failures on mingw.
60841         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60842         * tests/test-printf-posix.sh: Likewise.
60843         * tests/test-vfprintf-posix.sh: Likewise.
60844         * tests/test-vprintf-posix.sh: Likewise.
60845
60846 2007-05-19  Bruno Haible  <bruno@clisp.org>
60847
60848         Fix *printf result for NaN, Inf, -0.0 on mingw.
60849         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60850         * lib/vasnprintf.c: Include math.h and isnan.h.
60851         (is_infinite_or_zero): New function.
60852         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60853         values in the %f, %F, %e, %E, %g, %G directives.
60854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60856         gl_PRINTF_INFINITE and test its result. Invoke
60857         gl_PREREQ_VASNPRINTF_INFINITE.
60858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60859         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60865         * doc/functions/fprintf.texi: Update.
60866         * doc/functions/printf.texi: Update.
60867         * doc/functions/snprintf.texi: Update.
60868         * doc/functions/sprintf.texi: Update.
60869         * doc/functions/vfprintf.texi: Update.
60870         * doc/functions/vprintf.texi: Update.
60871         * doc/functions/vsnprintf.texi: Update.
60872         * doc/functions/vsprintf.texi: Update.
60873
60874 2007-05-19  Bruno Haible  <bruno@clisp.org>
60875
60876         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60877         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60878         Instead of multiplying with 10^k, set extra_zeroes to k.
60879         (scale10_round_long_double): Remove function.
60880
60881 2007-05-18  Bruno Haible  <bruno@clisp.org>
60882
60883         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60884         introduced on 2007-05-06.
60885
60886 2007-05-18  Bruno Haible  <bruno@clisp.org>
60887
60888         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60889         %g directives.
60890         * tests/test-vasprintf-posix.c (test_function): Likewise.
60891         * tests/test-snprintf-posix.h (test_function): Likewise.
60892         * tests/test-sprintf-posix.h (test_function): Likewise.
60893
60894 2007-05-18  Bruno Haible  <bruno@clisp.org>
60895
60896         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60897         (strmatch): New function.
60898         (test_function): Test the %f directive on numbers of various exponents.
60899         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60900         (strmatch): New function.
60901         (test_function): Test the %f directive on numbers of various exponents.
60902         * tests/test-snprintf-posix.h (strmatch): New function.
60903         (test_function): Test the %f directive on numbers of various exponents.
60904         * tests/test-sprintf-posix.h (strmatch): New function.
60905         (test_function): Test the %f directive on numbers of various exponents.
60906         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60907         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60908         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60909         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60910
60911 2007-05-18  Bruno Haible  <bruno@clisp.org>
60912
60913         Add support for 'long double' number output.
60914         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60915         * lib/vasnprintf.c: Include math.h and float+.h.
60916         (mp_limb_t): New type.
60917         (GMP_LIMB_BITS): New macro.
60918         (mp_twolimb_t): New type.
60919         (GMP_TWOLIMB_BITS): New macro.
60920         (mpn_t): New type.
60921         (multiply, divide, convert_to_decimal, decode_long_double,
60922         scale10_round_long_double, scale10_round_decimal_long_double,
60923         floorlog10l): New functions.
60924         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60925         for the %f, %F, %e, %E, %g, %G directives.
60926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60928         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60929         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60937         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60938         * modules/snprintf-posix (Depends-on): Likewise.
60939         * modules/sprintf-posix (Depends-on): Likewise.
60940         * modules/vasnprintf-posix (Depends-on): Likewise.
60941         * modules/vasprintf-posix (Depends-on): Likewise.
60942         * modules/vfprintf-posix (Depends-on): Likewise.
60943         * modules/vsnprintf-posix (Depends-on): Likewise.
60944         * modules/vsprintf-posix (Depends-on): Likewise.
60945         * modules/vasnprintf (Files): Add lib/float+.h.
60946         * doc/functions/fprintf.texi: Update.
60947         * doc/functions/printf.texi: Update.
60948         * doc/functions/snprintf.texi: Update.
60949         * doc/functions/sprintf.texi: Update.
60950         * doc/functions/vfprintf.texi: Update.
60951         * doc/functions/vprintf.texi: Update.
60952         * doc/functions/vsnprintf.texi: Update.
60953         * doc/functions/vsprintf.texi: Update.
60954
60955 2007-05-18  Bruno Haible  <bruno@clisp.org>
60956
60957         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60958
60959 2007-05-18  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60962         for printing 64-bit integers. Needed for mingw.
60963
60964 2007-05-18  Bruno Haible  <bruno@clisp.org>
60965
60966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60967         gl_FUNC_FREXPL_WORKS.
60968         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60969
60970 2007-05-18  Bruno Haible  <bruno@clisp.org>
60971
60972         * modules/frexpl-nolibm-tests: New file.
60973
60974         * modules/frexpl-nolibm: New file.
60975         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60976
60977 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60980         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60981         GCC 4.2, which otherwise issues a lot of warnings.
60982         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60983         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60984         Likewise.
60985         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60986         * modules/iconv_open (iconv.h): Likewise.
60987         * modules/locale (locale.h): Likewise.
60988         * modules/netinet_in (netinet/in.h): Likewise.
60989         * modules/sys_select (sys_select.h): Likewise.
60990         * modules/sys_socket (sys/socket.h): Likewise.
60991         * modules/sys_stat (sys/stat.h): Likewise.
60992         * modules/sysexits (sysexits.h): Likewise.
60993         * modules/unistd (unistd.h): Likewise.
60994
60995 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60996
60997         * modules/closein-tests (Makefile.am): Distribute
60998         `test-closein.sh'.
60999
61000 2007-05-17  Bruno Haible  <bruno@clisp.org>
61001
61002         * tests/test-printf-posix.output: Renamed from
61003         tests/test-fprintf-posix.out.
61004         * modules/fprintf-posix-tests: Update.
61005         * modules/printf-posix-tests: Update.
61006         * modules/vfprintf-posix-tests: Update.
61007         * modules/vprintf-posix-tests: Update.
61008         * tests/test-fprintf-posix.sh: Update.
61009         * tests/test-printf-posix.sh: Update.
61010         * tests/test-vfprintf-posix.sh: Update.
61011         * tests/test-vprintf-posix.sh: Update.
61012         Reported by Ralf Wildenhues.
61013
61014 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61017         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61018         GCC 4.2, which otherwise issues a lot of warnings.
61019         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61020         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61021         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61022         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61023         it should no longer be needed.
61024         * lib/string_.h: Likewise.
61025         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61026         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61027         * modules/inttypes (inttypes.h): Likewise.
61028         * modules/math (math.h): Likewise.
61029         * modules/search (search.h): Likewise.
61030         * modules/signal (signal.h): Likewise.
61031         * modules/stdint (stdint.h): Likewise.
61032         * modules/stdio (stdio.h): Likewise.
61033         * modules/stdlib (stdlib.h): Likewise.
61034         * modules/string (string.h): Likewise.
61035         * modules/sys_time (sys/time.h): Likewise.
61036         * modules/time (time.h): Likewise.
61037         * modules/wchar (wchar.h): Likewise.
61038         * modules/wctype (wtype.h): Likewise.
61039
61040 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61041
61042         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61043
61044 2007-05-13  Bruno Haible  <bruno@clisp.org>
61045
61046         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61047         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61048         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61049         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61050         (gl_PREREQ_STRTOK_R): Don't require it here.
61051
61052 2007-05-13  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61055         when used in C++ mode.
61056
61057 2007-05-12  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/linebuffer.h: Tweak doc.
61060         * lib/linebuffer.c: Likewise.
61061
61062 2007-05-12  James Youngman  <jay@gnu.org>
61063
61064         * lib/linebuffer.c (readlinebuffer_delim): New function,
61065         like readlinebuffer, but use a caller-specified delimiter.
61066         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61067         as the delimiter.
61068         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61069
61070 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61071
61072         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61073         * modules/openat (Files): Remove openat-die.c.
61074         (Depends-on): Add openat-die.
61075         * modules/openat-die: New module.
61076
61077 2007-05-06  Bruno Haible  <bruno@clisp.org>
61078
61079         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61080         Update with info about Cygwin.
61081         * doc/functions/fprintf.texi: Update.
61082         * doc/functions/printf.texi: Update.
61083         * doc/functions/snprintf.texi: Update.
61084         * doc/functions/sprintf.texi: Update.
61085         * doc/functions/vfprintf.texi: Update.
61086         * doc/functions/vprintf.texi: Update.
61087         * doc/functions/vsnprintf.texi: Update.
61088         * doc/functions/vsprintf.texi: Update.
61089         Reported by Eric Blake.
61090
61091 2007-05-06  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61094         padding ourselves for the floating-point directives.
61095         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61098         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61099         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61107         * tests/test-snprintf-posix.h (test_function): Also check the width
61108         and some flags in the %f directive.
61109         * tests/test-sprintf-posix.h (test_function): Likewise.
61110         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61111         * tests/test-vasprintf-posix.c (test_function): Likewise.
61112         * doc/functions/fprintf.texi: Update.
61113         * doc/functions/printf.texi: Update.
61114         * doc/functions/snprintf.texi: Update.
61115         * doc/functions/sprintf.texi: Update.
61116         * doc/functions/vfprintf.texi: Update.
61117         * doc/functions/vprintf.texi: Update.
61118         * doc/functions/vsnprintf.texi: Update.
61119         * doc/functions/vsprintf.texi: Update.
61120
61121 2007-05-06  Bruno Haible  <bruno@clisp.org>
61122
61123         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61124         pass the ' flag character to sprintf or snprintf.
61125         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61128         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61129         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61132         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61137         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61138         flag.
61139         * tests/test-sprintf-posix.h (test_function): Likewise.
61140         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61141         * tests/test-vasprintf-posix.c (test_function): Likewise.
61142         * doc/functions/fprintf.texi: Update.
61143         * doc/functions/printf.texi: Update.
61144         * doc/functions/snprintf.texi: Update.
61145         * doc/functions/sprintf.texi: Update.
61146         * doc/functions/vfprintf.texi: Update.
61147         * doc/functions/vprintf.texi: Update.
61148         * doc/functions/vsnprintf.texi: Update.
61149         * doc/functions/vsprintf.texi: Update.
61150
61151 2007-05-01  Bruno Haible  <bruno@clisp.org>
61152
61153         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61154
61155 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61156
61157         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61158         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61159
61160 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61163         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61165
61166 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61167
61168         * lib/argp-help.c (struct hol_entry): New member `ord'.
61169         (HOL_ENTRY_PTRCMP): Use ord for comparison
61170         (hol_sort): Initialize ord.
61171
61172 2007-05-01  Bruno Haible  <bruno@clisp.org>
61173
61174         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61175         Reported by Eric Blake.
61176         * doc/gnulib.texi (Function Substitutes): Update.
61177
61178 2007-05-01  Bruno Haible  <bruno@clisp.org>
61179
61180         * doc/functions.texi: Remove file, now redundant through
61181         doc/functions/*.texi.
61182
61183 2007-05-01  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/argp (Depends-on): Add sleep.
61186
61187 2007-05-01  Bruno Haible  <bruno@clisp.org>
61188
61189         * modules/sleep-tests: New file.
61190         * tests/test-sleep.c: New file.
61191
61192         * modules/sleep: New file.
61193         * lib/sleep.c: New file.
61194         * m4/sleep.m4: New file.
61195         * lib/unistd_.h (sleep): New declaration.
61196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61197         HAVE_SLEEP.
61198         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61199         * doc/functions/sleep.texi: Document the sleep module.
61200
61201 2007-05-01  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/sigprocmask.h: Remove file.
61204         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61205         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61206         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61207         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61208         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61209         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61210         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61211         HAVE_SIGSET_T as a shell variable.
61212         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61213         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61214         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61215         (Depends-on): Add signal. Remove verify.
61216         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61217         (Include): Mention <signal.h> instead of sigprocmask.h.
61218         * NEWS: Mention the change.
61219         * lib/fatal-signal.c: Don't include sigprocmask.h.
61220
61221 2007-05-01  Bruno Haible  <bruno@clisp.org>
61222
61223         * modules/signal: New file.
61224         * lib/signal_.h: New file.
61225         * m4/signal_h.m4: New file.
61226
61227 2007-05-01  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61230         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61231         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61232         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61233
61234 2007-05-01  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61237         configure time.
61238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61239         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61240         * modules/sys_stat (Makefile.am): Substitute their values into
61241         sys/stat.h.
61242
61243 2007-05-01  Bruno Haible  <bruno@clisp.org>
61244
61245         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61246         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61247         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61248
61249 2007-05-01  Bruno Haible  <bruno@clisp.org>
61250
61251         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61252         'assert' module here.
61253
61254 2007-05-01  Bruno Haible  <bruno@clisp.org>
61255
61256         * doc/functions/*.texi: New files.
61257         * doc/functions/google-ranking.txt: New file.
61258         * doc/gnulib.texi (Function Substitutes): New chapter.
61259         (ctime, inet_ntoa): Remove sections.
61260         * doc/ctime.texi: Remove file.
61261         * doc/inet_ntoa.texi: Remove file.
61262         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61263         dependencies.
61264         (%.info): New rule, specifying a --reference-limit.
61265
61266 2007-05-01  Bruno Haible  <bruno@clisp.org>
61267
61268         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61269
61270 2007-05-01  Bruno Haible  <bruno@clisp.org>
61271
61272         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61273         the portability of 'mkdir' to mingw systems.
61274
61275 2007-05-01  Bruno Haible  <bruno@clisp.org>
61276
61277         * doc/headers/google-ranking.txt: New file.
61278
61279 2007-04-30  Eric Blake  <ebb9@byu.net>
61280
61281         Prefer fseeko to fseek.
61282         * modules/getpass (Depends-on): Add fseeko.
61283         * lib/getpass.c (getpass): Use fseeko, not fseek.
61284
61285 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61286
61287         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61288         assumes the sorting is stable, while most qsort implementations
61289         are not.  Use argument addresses to ensure they never compare as
61290         equal.
61291
61292         * tests/test-argp-2.sh (usage-indent test): Fix output
61293         (func_compare): Restore diff options
61294         * tests/test-argp.c: Restore #include "progname.h"
61295
61296 2007-04-29  Bruno Haible  <bruno@clisp.org>
61297
61298         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61300         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61302         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61303         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61304         (TESTS, check_PROGRAMS): Add test-snprintf.
61305         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61306         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61307         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61308         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61309         assertions that fail on HP-UX, OSF/1, or IRIX.
61310         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61311
61312 2007-04-29  Bruno Haible  <bruno@clisp.org>
61313
61314         * MODULES.html.sh (posix_functions): Remove 'contents'.
61315
61316 2007-04-29  Karl Berry  <karl@gnu.org>
61317
61318         * config/srclist.txt (gendocs_template_min): new entry.
61319
61320 2007-04-29  Bruno Haible  <bruno@clisp.org>
61321
61322         Work around fpurge bug on BSD systems.
61323         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61324         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61325         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61326         fpurge to rpl_fpurge if the system already has this function.
61327         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61328         the case where the system already has this function. Correct invariants
61329         on BSD systems.
61330         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61331         BSD systems.
61332
61333 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61334
61335         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61336         proposed by Sven Verdoolaege.
61337
61338         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61339         options.
61340         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61341         (usage and help tests): Update
61342
61343 2007-04-29  Bruno Haible  <bruno@clisp.org>
61344
61345         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61346         Print more information in case of failure. Disable a test on BeOS.
61347
61348 2007-04-29  Bruno Haible  <bruno@clisp.org>
61349
61350         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61351         This helps debugging on systems on which no gdb is available.
61352
61353 2007-04-29  Bruno Haible  <bruno@clisp.org>
61354
61355         * lib/freading.h: Improve comments.
61356         * lib/fwriting.h: Likewise.
61357         * tests/test-freading.c (main): Don't check freading immediately after
61358         repositioning. Needed for glibc.
61359
61360 2007-04-29  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/freading.c (freading): Trivial simplification.
61363
61364 2007-04-28  Bruno Haible  <bruno@clisp.org>
61365
61366         * tests/test-fwriting.c (main): Also test the interaction between
61367         fflush and fwriting.
61368         * modules/fwriting-tests (Depends-on): Add fflush.
61369
61370         * tests/test-freading.c (main): Also test the interaction between
61371         fflush and freading.
61372         * modules/freading-tests (Depends-on): Add fflush.
61373
61374 2007-04-28  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61377         fseeko and ftello.
61378         Suggested by Eric Blake.
61379
61380 2007-04-28  Jim Meyering  <jim@meyering.net>
61381
61382         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61383         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61384         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61385
61386 2007-04-27  Eric Blake  <ebb9@byu.net>
61387
61388         * doc/headers/assert.texi (assert.h): Document assert module use.
61389
61390 2007-04-27  Bruno Haible  <bruno@clisp.org>
61391
61392         * doc/headers/*.texi: New files.
61393         * doc/gnulib.texi (Header File Substitutes): New chapter.
61394         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61395         dependencies.
61396         (standards.info ,standards.html, standards.dvi): Update dependencies.
61397         (mostlyclean, clean): New targets.
61398
61399 2007-04-27  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61402         * modules/sysexits (Files, Makefile.am): Update.
61403
61404         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61405         * modules/sys_socket (Files, Makefile.am): Update.
61406
61407         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61408         * modules/sys_stat (Files, Makefile.am): Update.
61409
61410 2007-04-27  Eric Blake  <ebb9@byu.net>
61411
61412         * lib/freading.h: Improve comments.
61413         * lib/fwriting.h: Likewise.
61414         * lib/fflush.c: Likewise.
61415
61416         Fix closein for mingw.
61417         * modules/closein-tests: Add tests for closein.
61418         * tests/test-closein.c: New file.
61419         * tests/test-closein.sh: Likewise.
61420         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61421         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61422
61423 2007-04-27  Bruno Haible  <bruno@clisp.org>
61424
61425         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61426         version is < 6.
61427         * lib/math_.h [__DECC]: Likewise.
61428         * lib/stdio_.h [__DECC]: Likewise.
61429         * lib/stdlib_.h [__DECC]: Likewise.
61430         * lib/string_.h [__DECC]: Likewise.
61431         * lib/time_.h [__DECC]: Likewise.
61432         * lib/wchar_.h [__DECC]: Likewise.
61433         * lib/wctype_.h [__DECC]: Likewise.
61434
61435 2007-04-27  Bruno Haible  <bruno@clisp.org>
61436
61437         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61438
61439 2007-04-27  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/fflush.c: Add comments.
61442         * modules/fpurge-tests (Depends-on): Add fflush.
61443         * modules/freadable-tests (Depends-on): Likewise.
61444         * modules/fwritable-tests (Depends-on): Likewise.
61445
61446 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61447
61448         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61449         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61450         Report by Bruno Haible <bruno@clisp.org>.
61451
61452 2007-04-26  Eric Blake  <ebb9@byu.net>
61453
61454         Fix fflush on mingw.
61455         * modules/fflush (Depends-on): Add freading.
61456         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61457         but unread data.
61458
61459 2007-04-26  Eric Blake  <ebb9@byu.net>
61460         and Bruno Haible  <bruno@clisp.org>
61461
61462         Implement freading and fwriting.
61463         * lib/freading.c: New file.
61464         * lib/freading.h: Likewise.
61465         * m4/freading.m4: Likewise.
61466         * modules/freading: Likewise.
61467         * modules/freading-tests: Likewise.
61468         * tests/test-freading.c: Likewise.
61469         * lib/fwriting.c: New file.
61470         * lib/fwriting.h: Likewise.
61471         * m4/fwriting.m4: Likewise.
61472         * modules/fwriting: Likewise.
61473         * modules/fwriting-tests: Likewise.
61474         * tests/test-fwriting.c: Likewise.
61475         * MODULES.html.sh (File stream based Input/Output): Mention them.
61476
61477 2007-04-26  Bruno Haible  <bruno@clisp.org>
61478
61479         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61480         'long' when we assume it.
61481         Suggested by Eric Blake.
61482
61483 2007-04-26  Bruno Haible  <bruno@clisp.org>
61484
61485         Ensure fseeko, ftello are declared on glibc systems.
61486         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61487         * modules/fseeko (configure.ac-early): Likewise.
61488         * modules/ftello (configure.ac-early): Likewise.
61489         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61490         AC_FUNC_FSEEKO for this.
61491         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61492         (gl_CHECK_FSEEKO): Remove macro.
61493
61494 2007-04-26  Bruno Haible  <bruno@clisp.org>
61495
61496         * tests/test-fflush.c (main): Also check the ftell result after
61497         fflush and fseek/fseeko.
61498         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61499         file descriptor position cache in the stream.
61500         * lib/fseeko.c (rpl_fseeko): Likewise.
61501
61502 2007-04-26  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/fflush-tests (Depends-on): Add fseeko.
61505
61506 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61507             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61508
61509         * lib/argz_.h: ensure error_t definition is obtained in same
61510         mechanism system argz.h would have.
61511         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61512         argz facilities are known bad.  Err on the side of caution if
61513         cross-compiling.
61514
61515 2007-04-25  Eric Blake  <ebb9@byu.net>
61516
61517         * lib/fpurge.c (includes): Use stdlib.h for free.
61518         * tests/test-fflush.c (main): Also test fflush-fseeko.
61519
61520 2007-04-25  Bruno Haible  <bruno@clisp.org>
61521
61522         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61523         * lib/fseeko.c: New file.
61524         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61525         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61526         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61527         gl_FUNC_FSEEKO.
61528         (gl_FUNC_FSEEKO): Invoke it.
61529         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61530         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61531         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61532
61533 2007-04-25  Bruno Haible  <bruno@clisp.org>
61534
61535         * modules/fflush (Depends-on): Add ftello.
61536
61537 2007-04-25  Bruno Haible  <bruno@clisp.org>
61538
61539         * modules/ftello-tests: New file.
61540         * tests/test-ftello.c: New file.
61541
61542         * modules/ftello: New file.
61543         * m4/ftello.m4: New file.
61544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61545         HAVE_FTELLO.
61546         * lib/stdio_.h (ftello): New declaration.
61547         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61548         HAVE_FTELLO.
61549
61550 2007-04-25  Bruno Haible  <bruno@clisp.org>
61551
61552         * modules/fseeko-tests: New file.
61553         * tests/test-fseeko.c: New file.
61554
61555         * modules/fseeko: New file.
61556         * m4/fseeko.m4: New file.
61557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61558         HAVE_FSEEKO.
61559         * lib/stdio_.h (fseeko): New declaration.
61560         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61561         HAVE_FSEEKO.
61562
61563 2007-04-25  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61566
61567 2007-04-25  Bruno Haible  <bruno@clisp.org>
61568
61569         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61570         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61571         * tests/test-unistd.c: Likewise.
61572         * tests/test-fcntl.c: Likewise.
61573
61574 2007-04-23  Eric Blake  <ebb9@byu.net>
61575
61576         * lib/fflush.c: Fix missing include.
61577         Reported by Bruno Haible.
61578
61579 2007-04-23  Bruno Haible  <bruno@clisp.org>
61580
61581         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61582         Reported by Eric Blake.
61583
61584 2007-04-23  Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61587
61588 2007-04-23  Bruno Haible  <bruno@clisp.org>
61589
61590         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61591
61592 2007-04-23  Bruno Haible  <bruno@clisp.org>
61593
61594         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61595         Needed on HP-UX 11.
61596
61597 2007-04-16  Eric Blake  <ebb9@byu.net>
61598
61599         Make fflush rely on fpurge.
61600         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61601         open coding all variants.
61602         * modules/fflush (Depends-on): Add fpurge and unistd.
61603         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61604         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61605
61606         Fix --with-tests compilation on cygwin.
61607         * modules/argmatch-tests (Makefile.am): List gnulib library first
61608         in LDADD.
61609         * modules/argp-tests (Makefile.am): Likewise.
61610         * modules/array-list-tests (Makefile.am): Likewise.
61611         * modules/array-oset-tests (Makefile.am): Likewise.
61612         * modules/avltree-list-tests (Makefile.am): Likewise.
61613         * modules/avltree-oset-tests (Makefile.am): Likewise.
61614         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61615         * modules/carray-list-tests (Makefile.am): Likewise.
61616         * modules/dirname-tests (Makefile.am): Likewise.
61617         * modules/frexp-tests (Makefile.am): Likewise.
61618         * modules/isnanl-tests (Makefile.am): Likewise.
61619         * modules/linked-list-tests (Makefile.am): Likewise.
61620         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61621         * modules/lock-tests (Makefile.am): Likewise.
61622         * modules/rbtree-list-tests (Makefile.am): Likewise.
61623         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61624         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61625         * modules/tls-tests (Makefile.am): Likewise.
61626         * modules/tsearch-tests (Makefile.am): Likewise.
61627         * modules/xvasprintf-tests (Makefile.am): Likewise.
61628
61629         Fix fpurge for cygwin.
61630         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61631         value.
61632         * modules/fpurge-tests (Depends-on): Clean up trash.
61633
61634 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61635
61636         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61637
61638         * m4/autobuild.m4: Re-indent.
61639
61640 2007-04-13  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/fpurge-tests: New file.
61643         * tests/test-fpurge.c: New file.
61644
61645         * modules/fpurge: New file.
61646         * lib/fpurge.h: New file.
61647         * lib/fpurge.c: New file.
61648         * m4/fpurge.m4: New file.
61649
61650 2007-04-13  Bruno Haible  <bruno@clisp.org>
61651
61652         * modules/fbufmode-tests: New file.
61653         * tests/test-fbufmode.c: New file.
61654
61655         * modules/fbufmode: New file.
61656         * lib/fbufmode.h: New file.
61657         * lib/fbufmode.c: New file.
61658         * m4/fbufmode.m4: New file.
61659
61660 2007-04-13  Bruno Haible  <bruno@clisp.org>
61661
61662         * modules/fwritable-tests: New file.
61663         * tests/test-fwritable.c: New file.
61664
61665         * modules/fwritable: New file.
61666         * lib/fwritable.h: New file.
61667         * lib/fwritable.c: New file.
61668         * m4/fwritable.m4: New file.
61669
61670 2007-04-13  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/freadable-tests: New file.
61673         * tests/test-freadable.c: New file.
61674
61675         * modules/freadable: New file.
61676         * lib/freadable.h: New file.
61677         * lib/freadable.c: New file.
61678         * m4/freadable.m4: New file.
61679
61680 2007-04-13  Bruno Haible  <bruno@clisp.org>
61681
61682         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61683         MOSTLYCLEANFILES.
61684
61685 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61688         gzip bootstrap.conf to avoid dragging in i18n machinery.
61689         (gnulib_tool_option): Use it.
61690
61691 2007-04-13  Bruno Haible  <bruno@clisp.org>
61692
61693         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61694         %F directives.
61695         * tests/test-vasprintf-posix.c (test_function): Likewise.
61696         * tests/test-snprintf-posix.h (test_function): Likewise.
61697         * tests/test-sprintf-posix.h (test_function): Likewise.
61698         * tests/test-fprintf-posix.h (test_function): Likewise.
61699         * tests/test-printf-posix.h (test_function): Likewise.
61700         * tests/test-fprintf-posix.out: Likewise.
61701
61702 2007-04-13  Bruno Haible  <bruno@clisp.org>
61703
61704         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61705         * modules/tls-tests (configure.ac): Likewise.
61706         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61707
61708 2007-04-13  Bruno Haible  <bruno@clisp.org>
61709
61710         * lib/tls.c (glthread_tls_get): Fix return type.
61711         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61712
61713 2007-04-12  Eric Blake  <ebb9@byu.net>
61714
61715         * modules/gettime (Depends-on): Remove gettime.
61716         Reported by Dmitry V. Levin.
61717
61718 2007-04-12  Bruno Haible  <bruno@clisp.org>
61719
61720         * modules/fflush (Include): Mention <stdio.h>.
61721         * modules/strtoimax (Include): Mention <inttypes.h>.
61722         * modules/strtoumax (Include): Likewise.
61723
61724 2007-04-12  Eric Blake  <ebb9@byu.net>
61725
61726         * .cvsignore: New file.
61727         * .gitignore: Likewise.
61728
61729 2007-04-12  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61732         not before, since $(LDADD) often contains libgnu.a.
61733         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61734         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61735         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61736         Needed on Cygwin.
61737
61738 2007-04-12  Eric Blake  <ebb9@byu.net>
61739
61740         Work around glibc's failure to flush stdin on fclose.
61741         * lib/closein.c (close_stdin): Flush stdin before closing.
61742
61743         Work around glibc's failure to reset seekable stdin on exit.
61744         * modules/closein: New module.
61745         * lib/closein.c: New file.
61746         * lib/closein.h: Likewise.
61747         * m4/closein.m4: Likewise.
61748         * MODULES.html.sh (File stream based Input/Output): Document it.
61749
61750 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61751
61752         * gnulib-tool: Rename generated 'autobuild' script to
61753         'do-autobuild' in --create-megatestdir output.
61754
61755         * doc/gnulib.texi (Build robot for gnulib): Fix.
61756
61757 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61758
61759         * modules/sysexits (Depends-on): Add absolute-header.
61760
61761 2007-04-12  Eric Blake  <ebb9@byu.net>
61762
61763         No need to preserve errno on success.
61764         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61765         Reported by Bruno Haible.
61766
61767 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61768
61769         * MODULES.html.sh (Support for maintaining and releasing
61770         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61771
61772 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61773
61774         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61775
61776 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61777
61778         * modules/autobuild: New module.
61779
61780         * m4/autobuild.m4: New file.
61781
61782 2007-04-11  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61785         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61789         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61790         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61792         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61793         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61795         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61796         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61798         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61799         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61801         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61802         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61804         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61805         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61812         Reported by Eric Blake.
61813
61814 2007-04-11  Bruno Haible  <bruno@clisp.org>
61815
61816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61817
61818 2007-04-10  Bruno Haible  <bruno@clisp.org>
61819
61820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61821         for NaN and Infinity. Needed on FreeBSD 6.1.
61822         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61823         regarding results for "%010a" of Infinity and NaN.
61824         * tests/test-vasprintf-posix.c (test_function): Likewise.
61825         * tests/test-snprintf-posix.h (test_function): Likewise.
61826         * tests/test-sprintf-posix.h (test_function): Likewise.
61827         * tests/test-fprintf-posix.h (test_function): Likewise.
61828         * tests/test-printf-posix.h (test_function): Likewise.
61829         * tests/test-fprintf-posix.out: Likewise.
61830
61831 2007-04-10  Bruno Haible  <bruno@clisp.org>
61832
61833         * modules/locale-tests: New file.
61834         * tests/test-locale.c: New file.
61835
61836         * modules/locale: New file.
61837         * lib/locale_.h: New file.
61838         * m4/locale_h.m4: New file.
61839
61840 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61841             Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61844         be determined, test for availability of the copysignf, copysign,
61845         copysignl functions.
61846         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61847         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61848         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61849
61850 2007-04-09  Eric Blake  <ebb9@byu.net>
61851
61852         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61853         * modules/stdio (Makefile.am): Support fflush.
61854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61855         * modules/fflush: New file.
61856         * lib/fflush.c: Likewise.
61857         * m4/fflush.m4: Likewise.
61858         * modules/fflush-tests: New test.
61859         * tests/test-fflush.c: Likewise.
61860         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61861
61862 2007-04-06  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61865         (VASNPRINTF): Use signbit for faster determination whether to print a
61866         minus sign.
61867         * modules/vasnprintf (Files): Remove lib/float+.h.
61868         * modules/fprintf-posix (Depends-on): Add signbit.
61869         * modules/snprintf-posix (Depends-on): Likewise.
61870         * modules/sprintf-posix (Depends-on): Likewise.
61871         * modules/vasnprintf-posix (Depends-on): Likewise.
61872         * modules/vasprintf-posix (Depends-on): Likewise.
61873         * modules/vfprintf-posix (Depends-on): Likewise.
61874         * modules/vsnprintf-posix (Depends-on): Likewise.
61875         * modules/vsprintf-posix (Depends-on): Likewise.
61876
61877 2007-04-06  Bruno Haible  <bruno@clisp.org>
61878
61879         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61880         * tests/test-frexpl.c (main): Likewise.
61881         * tests/test-ldexpl.c (main): Likewise.
61882         * modules/frexp-tests (Depends-on): Add signbit.
61883         * modules/frexpl-tests (Depdends-on): Likewise.
61884         * modules/ldexpl-tests (Depdends-on): Likewise.
61885
61886 2007-04-06  Bruno Haible  <bruno@clisp.org>
61887
61888         * modules/signbit-tests: New file.
61889         * tests/test-signbit.c: New file.
61890
61891         * modules/signbit: New file.
61892         * lib/signbitf.c: New file.
61893         * lib/signbitd.c: New file.
61894         * lib/signbitl.c: New file.
61895         * m4/signbit.m4: New file.
61896         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61897         (signbit): New macro.
61898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61899         REPLACE_SIGNBIT.
61900         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61901         REPLACE_FREXPL into math.h.
61902
61903 2007-04-06  Bruno Haible  <bruno@clisp.org>
61904
61905         * modules/isnanf-nolibm-tests: New file.
61906         * tests/test-isnanf.c: New file.
61907
61908         * modules/isnanf-nolibm: New file.
61909         * lib/isnanf.h: New file.
61910         * lib/isnanf.c: New file.
61911         * lib/isnan.c: Consider the USE_FLOAT macro.
61912         * m4/isnanf.m4: New file.
61913
61914 2007-04-06  Bruno Haible  <bruno@clisp.org>
61915
61916         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61917         (Link): New section.
61918
61919         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61920
61921 2007-04-06  Bruno Haible  <bruno@clisp.org>
61922
61923         Assume the 'long double' type.
61924         * m4/longdouble.m4: Remove file.
61925         * config/srclist.txt: Don't mention longdouble.m4.
61926         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61927         * lib/float+.h: Likewise.
61928         * lib/frexp.c: Likewise.
61929         * lib/printf-args.h: Likewise.
61930         * lib/printf-args.c: Likewise.
61931         * lib/printf-frexp.c: Likewise.
61932         * lib/printf-parse.c: Likewise.
61933         * lib/vasnprintf.c: Likewise.
61934         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61935         * m4/intl.m4: Likewise.
61936         * m4/isnanl.m4: Likewise.
61937         * m4/printf.m4: Likewise.
61938         * m4/printf-frexpl.m4: Likewise.
61939         * m4/vasnprintf.m4: Likewise.
61940         * modules/allocsa (Files): Remove m4/longdouble.m4.
61941         * modules/gettext (Files): Likewise.
61942         * modules/relocatable-prog-wrapper (Files): Likewise.
61943         * modules/vasnprintf (Files): Likewise.
61944         * modules/isnanl (Files): Likewise.
61945         (Include): Simplify.
61946         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61947         (Include): Simplify.
61948         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61949         (Include): Simplify.
61950         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61951         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61952         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61953         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61954         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61955         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61956         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61957         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61958         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61959         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61960         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61961         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61962         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61963         * tests/test-isnanl.c: Likewise.
61964         * tests/test-snprintf-posix.h: Likewise.
61965         * tests/test-sprintf-posix.h: Likewise.
61966         * tests/test-vasnprintf-posix.c: Likewise.
61967         * tests/test-vasnprintf-posix2.c: Likewise.
61968         * tests/test-vasprintf-posix.c: Likewise.
61969
61970 2007-04-06  Bruno Haible  <bruno@clisp.org>
61971
61972         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61973         * lib/math_.h [__DECC]: Include the overridden include file through
61974         #include_next, outside the double-inclusion guard.
61975         * lib/stdio_.h [__DECC]: Likewise.
61976         * lib/stdlib_.h [__DECC]: Likewise.
61977         * lib/string_.h [__DECC]: Likewise.
61978         * lib/time_.h [__DECC]: Likewise.
61979         * lib/wchar_.h [__DECC]: Likewise.
61980         * lib/wctype_.h [__DECC]: Likewise.
61981         * lib/inttypes_.h [__DECC]: Likewise.
61982         Reported by Albert Chin <china@thewrittenword.com> in
61983         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61984
61985 2007-04-04  Eric Blake  <ebb9@byu.net>
61986
61987         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61988         1.5.x.
61989
61990 2007-04-04  Bruno Haible  <bruno@clisp.org>
61991
61992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61993         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61994
61995 2007-04-04  Bruno Haible  <bruno@clisp.org>
61996
61997         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61998         results for "%010a" of Infinity and NaN.
61999         * tests/test-vasprintf-posix.c (test_function): Likewise.
62000         * tests/test-snprintf-posix.h (test_function): Likewise.
62001         * tests/test-sprintf-posix.h (test_function): Likewise.
62002         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62003         * tests/test-printf-posix.h (test_function): Likewise.
62004         * tests/test-fprintf-posix.out: Update.
62005         Needed for FreeBSD 6.1.
62006
62007 2007-04-04  Bruno Haible  <bruno@clisp.org>
62008
62009         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62010         directly used by the gnulib modules nor by gnulib-tool.
62011
62012 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62013
62014         * DEPENDENCIES: Give overall description of version dependency
62015         desirability.  Use more-typical names for apps.
62016         Add shell, coreutils, diffutils, grep, tar, gzip.
62017
62018 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62019
62020         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62021
62022 2007-04-04  Karl Berry  <karl@gnu.org>
62023
62024         * MODULES.html.sh (func_module): missing '.
62025
62026 2007-04-03  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/argmatch-tests (Makefile.am): New variable
62029         test_argmatch_LDADD.
62030         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62031         * modules/array-list-tests (Makefile.am): New variable
62032         test_array_list_LDADD.
62033         * modules/array-oset-tests (Makefile.am): New variable
62034         test_array_oset_LDADD.
62035         * modules/avltree-list-tests (Makefile.am): New variable
62036         test_avltree_list_LDADD.
62037         * modules/avltree-oset-tests (Makefile.am): New variable
62038         test_avltree_oset_LDADD.
62039         * modules/avltreehash-list-tests (Makefile.am): New variable
62040         test_avltreehash_list_LDADD.
62041         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62042         test_canonicalize_lgpl_LDADD.
62043         * modules/carray-list-tests (Makefile.am): New variable
62044         test_carray_list_LDADD.
62045         * modules/dirname-tests (Makefile.am): New variable
62046         test_dirname_LDADD.
62047         * modules/linked-list-tests (Makefile.am): New variable
62048         test_linked_list_LDADD.
62049         * modules/linkedhash-list-tests (Makefile.am): New variable
62050         test_linkedhash_list_LDADD.
62051         * modules/rbtree-list-tests (Makefile.am): New variable
62052         test_rbtree_list_LDADD.
62053         * modules/rbtree-oset-tests (Makefile.am): New variable
62054         test_rbtree_oset_LDADD.
62055         * modules/rbtreehash-list-tests (Makefile.am): New variable
62056         test_rbtreehash_list_LDADD.
62057         * modules/xvasprintf-tests (Makefile.am): New variable
62058         test_xvasprintf_LDADD.
62059         Reported by Eric Blake.
62060
62061 2007-04-03  Eric Blake  <ebb9@byu.net>
62062
62063         * DEPENDENCIES: Weaken m4 requirements.
62064
62065 2007-04-03  Bruno Haible  <bruno@clisp.org>
62066
62067         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62068         * modules/isnanl-tests (configure.ac): Likewise.
62069
62070 2007-04-03  Ben Pfaff  <blp@gnu.org>
62071
62072         * modules/iconv_open: Add $(srcdir)/ to source directory
62073         references in Makefile fragments that call gperf, to fix VPATH
62074         builds.
62075
62076 2007-04-03  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62079         * lib/ldexpl.c: Undo last change.
62080
62081 2007-04-03  Bruno Haible  <bruno@clisp.org>
62082
62083         * modules/printf-frexpl (Depends-on): Undo last change.
62084         (Files): Add m4/ldexpl.m4.
62085
62086 2007-04-03  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62089         * modules/isnanl (Link): New section.
62090
62091         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62092         * modules/frexp (Link): New section.
62093
62094         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62095         * modules/frexpl (Link): New section.
62096
62097         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62098         * modules/ldexpl (Link): New section.
62099
62100 2007-04-03  Bruno Haible  <bruno@clisp.org>
62101
62102         * modules/TEMPLATE-EXTENDED: New file.
62103         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62104
62105 2007-04-03  Bruno Haible  <bruno@clisp.org>
62106
62107         * DEPENDENCIES: New file.
62108         Suggested by Simon Josefsson.
62109
62110 2007-04-03  Bruno Haible  <bruno@clisp.org>
62111
62112         * doc/gnulib.texi: Escape @.
62113
62114 2007-04-03  James Youngman  <jay@gnu.org>
62115         and Paul Eggert  <eggert@cs.ucla.edu>
62116
62117         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62118         birthtime on all systems that have birthtime, not just those which
62119         use st_birthtimensec rather than st_birthtim.  Putting zero in
62120         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62121         that the birth time is not available for files on an NFS mount.
62122
62123 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62124
62125         * modules/memxor: Move back from crypto/, suggested by Bruno.
62126         * modules/crypto/hmac-sha1: Fix memxor dependency.
62127
62128         * modules/crypto/gc: Moved from ../.
62129
62130 2007-04-02  Eric Blake  <ebb9@byu.net>
62131
62132         * lib/ldexpl.c (includes): Avoid libm.
62133
62134         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62135
62136 2007-04-02  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62139         on IRIX.
62140
62141 2007-04-02  Bruno Haible  <bruno@clisp.org>
62142
62143         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62144         x86 or x86_64 platforms running MacOS X.
62145         Reported by Ryan Schmidt <@ryandesign.com>.
62146
62147 2007-04-02  Bruno Haible  <bruno@clisp.org>
62148
62149         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62150         i386.
62151
62152 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62153
62154         * modules/crypto/arcfour: Moved from ../.
62155         * modules/crypto/arcfour-tests: Moved from ../.
62156         * modules/crypto/arctwo: Moved from ../.
62157         * modules/crypto/arctwo-tests: Moved from ../.
62158         * modules/crypto/des: Moved from ../.
62159         * modules/crypto/des-tests: Moved from ../.
62160         * modules/crypto/gc-arcfour: Moved from ../.
62161         * modules/crypto/gc-arcfour-tests: Moved from ../.
62162         * modules/crypto/gc-arctwo: Moved from ../.
62163         * modules/crypto/gc-arctwo-tests: Moved from ../.
62164         * modules/crypto/gc-des: Moved from ../.
62165         * modules/crypto/gc-des-tests: Moved from ../.
62166         * modules/crypto/gc-hmac-md5: Moved from ../.
62167         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62168         * modules/crypto/gc-hmac-sha1: Moved from ../.
62169         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62170         * modules/crypto/gc-md2: Moved from ../.
62171         * modules/crypto/gc-md2-tests: Moved from ../.
62172         * modules/crypto/gc-md4: Moved from ../.
62173         * modules/crypto/gc-md4-tests: Moved from ../.
62174         * modules/crypto/gc-md5: Moved from ../.
62175         * modules/crypto/gc-md5-tests: Moved from ../.
62176         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62177         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62178         * modules/crypto/gc-random: Moved from ../.
62179         * modules/crypto/gc-rijndael: Moved from ../.
62180         * modules/crypto/gc-rijndael-tests: Moved from ../.
62181         * modules/crypto/gc-sha1: Moved from ../.
62182         * modules/crypto/gc-sha1-tests: Moved from ../.
62183         * modules/crypto/gc-tests: Moved from ../.
62184         * modules/crypto/hmac-md5: Moved from ../.
62185         * modules/crypto/hmac-md5-tests: Moved from ../.
62186         * modules/crypto/hmac-sha1: Moved from ../.
62187         * modules/crypto/hmac-sha1-tests: Moved from ../.
62188         * modules/crypto/md2: Moved from ../.
62189         * modules/crypto/md2-tests: Moved from ../.
62190         * modules/crypto/md4: Moved from ../.
62191         * modules/crypto/md4-tests: Moved from ../.
62192         * modules/crypto/md5: Moved from ../.
62193         * modules/crypto/md5-tests: Moved from ../.
62194         * modules/crypto/memxor: Moved from ../.
62195         * modules/crypto/rijndael: Moved from ../.
62196         * modules/crypto/rijndael-tests: Moved from ../.
62197         * modules/crypto/sha1: Moved from ../.
62198
62199 2007-03-30  James Youngman  <jay@gnu.org>
62200
62201         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62202         rename() to change the ctime of a file (because ctime is unaffected
62203         by rename on jfs2 on AIX 5.1).
62204         (main): Start by doing cleanup, in case a previous run failed leaving
62205         test files behind.
62206
62207 2007-03-31  Bruno Haible  <bruno@clisp.org>
62208
62209         Support old proprietary implementations of iconv.
62210         * modules/iconv_open: New file.
62211         * lib/iconv_.h: New file.
62212         * m4/iconv_h.m4: New file.
62213         * lib/iconv_open.c: New file.
62214         * lib/iconv_open-aix.gperf: New file.
62215         * lib/iconv_open-hpux.gperf: New file.
62216         * lib/iconv_open-irix.gperf: New file.
62217         * lib/iconv_open-osf.gperf: New file.
62218         * m4/iconv_open.m4: New file.
62219         * modules/linebreak (Depends-on): Add iconv_open.
62220         * modules/striconv (Depends-on): Likewise.
62221         * modules/striconveh (Depends-on): Likewise.
62222         * modules/unicodeio (Depends-on): Likewise.
62223         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62224         (iconv_t)(-1).
62225         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62226         conversion if cd is (iconv_t)(-1).
62227         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62228         is not possible.
62229
62230 2007-03-31  Bruno Haible  <bruno@clisp.org>
62231
62232         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62233         work on Solaris either. Protect also second use of "autodetect_jp".
62234
62235 2007-03-31  Bruno Haible  <bruno@clisp.org>
62236
62237         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62238         the function is not present.
62239
62240 2007-03-31  Bruno Haible  <bruno@clisp.org>
62241
62242         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62243         the function is not present.
62244
62245 2007-03-31  Bruno Haible  <bruno@clisp.org>
62246
62247         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62248         a bug in HP-UX iconv_open().
62249
62250 2007-03-31  Bruno Haible  <bruno@clisp.org>
62251
62252         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62253         (Mathematics <math.h>): New section, add fpieee.
62254         (Input/output <stdio.h>): Add fseterr.
62255         (Mathematics <math.h>): New section, add printf-frexp.
62256         (Container data structures): Add sublist.
62257         (Core language properties): Add fpucw, inline.
62258         (Functions for greatest-width integer types <inttypes.h>): Add
62259         imaxabs, imaxdiv, inttypes.
62260         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62261         isnanl-nolibm, ldexp.
62262         (Mathematics <math.h>): New section, add printf-frexpl.
62263         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62264         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62265         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62266         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62267         (Unicode string functions): Add unistr/u*-mbtoucr.
62268         (Java): Add javacomp-script, javaexec-script.
62269         (C#): Add csharpcomp-script, csharpexec-script.
62270         (Support for building libraries and executables): Add havelib,
62271         relocatable-*.
62272         (Support for maintaining and releasing projects): Renamed from
62273         'Support for maintaining and release projects'. Add announce-gen.
62274
62275 2007-03-31  Bruno Haible  <bruno@clisp.org>
62276
62277         * README: Talk primarily about git.
62278         (git and CVS): Renamed from CVS.
62279         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62280         gnulib is available through git.
62281         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62282
62283 2007-03-30  Bruno Haible  <bruno@clisp.org>
62284
62285         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62286         * lib/poll_.h: Likewise.
62287         * lib/stat_.h: Likewise.
62288         * lib/sys_time_.h: Likewise.
62289         * lib/sysexit_.h: Likewise.
62290         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62291         * lib/stdbool_.h: Likewise.
62292         * lib/byteswap_.h: Add double-inclusion guard.
62293
62294 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62295
62296         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62297
62298 2007-03-30  Karl Berry  <karl@gnu.org>
62299
62300         * config/srclist-update: double space after USA in the license
62301         substitution, since that's how it's usually (?) written.
62302
62303 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62306         reported by Bruno Haible.
62307
62308 2007-03-29  Bruno Haible  <bruno@clisp.org>
62309
62310         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62311         a bug in AIX iconv().
62312
62313 2007-03-29  Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/ldexpl-tests: New file.
62316         * tests/test-ldexpl.c: New file.
62317
62318 2007-03-29  Bruno Haible  <bruno@clisp.org>
62319
62320         * lib/ldexpl.c: Include fpucw.h.
62321         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62322         multiplication.
62323         * modules/ldexpl (Depends-on): Add fpucw.
62324
62325 2007-03-29  Bruno Haible  <bruno@clisp.org>
62326
62327         * modules/ldexpl: New file.
62328         * m4/ldexpl.m4: New file.
62329         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62330         set.
62331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62332         REPLACE_LDEXPL.
62333         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62334         REPLACE_LDEXPL.
62335         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62336         gl_FUNC_LDEXPL_WORKS.
62337         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62338         * modules/mathl (Files): Remove lib/ldexpl.c.
62339         (Depends-on): Add ldexpl.
62340
62341 2007-03-29  Bruno Haible  <bruno@clisp.org>
62342
62343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62344
62345 2007-03-29  Bruno Haible  <bruno@clisp.org>
62346
62347         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62348         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62349         and possibly also HP-UX.
62350         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62351         work on AIX, IRIX, HP-UX, OSF/1.
62352         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62353         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62354         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62355         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62356         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62357         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62358
62359 2007-03-29  Bruno Haible  <bruno@clisp.org>
62360
62361         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62362
62363 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62366         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62367
62368 2007-03-29  Eric Blake  <ebb9@byu.net>
62369
62370         * lib/acl-internal.h: Remove redundant include.
62371         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62372         Cygwin when a file is locked.
62373
62374 2007-03-29  Bruno Haible  <bruno@clisp.org>
62375
62376         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62377         file.
62378         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62379
62380 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62383         try to remove a parent directory if the child couldn't be removed
62384         (except for the first rmdir, which could fail because the child
62385         doesn't exist).  Problem reported by Jeff Blaine in
62386         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62387
62388 2007-03-28  Bruno Haible  <bruno@clisp.org>
62389
62390         * lib/striconveh.c (utf8conv_carefully): New function.
62391         (mem_cd_iconveh_internal): Invoke it.
62392
62393 2007-03-28  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62396         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62397         input.
62398         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62399         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62400         unistr/u8-uctomb.
62401
62402 2007-03-28  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/unistr/u8-mbtoucr: New file.
62405         * lib/unistr/u8-mbtoucr.c: New file.
62406         * modules/unistr/u16-mbtoucr: New file.
62407         * lib/unistr/u16-mbtoucr.c: New file.
62408         * modules/unistr/u16-mbtoucr: New file.
62409         * lib/unistr/u16-mbtoucr.c: New file.
62410         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62411
62412 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62413             Bruno Haible  <bruno@clisp.org>
62414
62415         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62416         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62417         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62418
62419         * m4/stdio_h.m4: Add stubs for vasprintf too.
62420
62421         * modules/stdio: Support vasprintf in sed command.
62422
62423         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62424         vasprintf.h.  Add stdio module indicator.
62425
62426         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62427         vasprintf.h.
62428
62429         * lib/vasprintf.h: File removed.
62430
62431         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62432         * lib/vasprintf.c: Ditto.
62433         * lib/xvasprintf.c: Ditto.
62434         * tests/test-vasprintf-posix.c: Ditto.
62435         * tests/test-vasprintf.c: Ditto.
62436
62437 2007-03-27  Bruno Haible  <bruno@clisp.org>
62438
62439         Make vasnprintf multithread-safe.
62440         * lib/vasnprintf.c (decimal_point_char): New function.
62441         (VASNPRINTF): Use it.
62442         Suggested by Simon Josefsson.
62443
62444 2007-03-27  Eric Blake  <ebb9@byu.net>
62445
62446         Support sub-second birthtime on cygwin.
62447         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62448         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62449         (get_stat_birthtime): Also work with st_birthtim.
62450
62451 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62452
62453         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62454         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62455         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62456         (get_stat_birthtime_ns): Simplify compile-time tests.
62457         (get_stat_birthtime): Change the API to look like
62458         get_stat_mtime etc., except return a negative tv_nsec on error.
62459         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62460         Don't check for "spare" fields.
62461         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62462         or for struct stat.st_birthtime, as these tests aren't used.
62463         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62464
62465 2007-03-27  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/stat-time.h: Include <sys/stat.h>.
62468
62469 2007-03-27  James Youngman  <jay@gnu.org>
62470
62471         * lib/stat-time.h (get_stat_birthtime): New function for
62472           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62473         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62474           and its variants.
62475         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62476         * modules/stat-time-test: New file.
62477         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62478
62479 2007-03-26  Bruno Haible  <bruno@clisp.org>
62480
62481         Better support of signalling NaNs.
62482         * lib/atanl.c: Include isnanl.h.
62483         (atanl): Perform test for NaN at the beginning of the function and
62484         through a call to isnanl.
62485         * lib/cosl.c: Include isnanl.h.
62486         (cosl): Perform test for NaN at the beginning of the function and
62487         through a call to isnanl.
62488         * lib/ldexpl.c: Include isnanl.h.
62489         (ldexpl): Perform test for NaN through a call to isnanl.
62490         * lib/logl.c: Include isnanl.h.
62491         (logl): Perform test for NaN at the beginning of the function and
62492         through a call to isnanl.
62493         * lib/sinl.c: Include isnanl.h.
62494         (sinl): Perform test for NaN at the beginning of the function and
62495         through a call to isnanl.
62496         * lib/sqrtl.c: Include isnanl.h.
62497         (sqrtl): Perform test for NaN at the beginning of the function and
62498         through a call to isnanl.
62499         * lib/tanl.c: Include isnanl.h.
62500         (tanl): Perform test for NaN at the beginning of the function and
62501         through a call to isnanl.
62502         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62503         * modules/mathl (Depends-on): Add isnanl.
62504
62505 2007-03-26  Eric Blake  <ebb9@byu.net>
62506
62507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62508         regression in logic sense of previous patch.
62509
62510 2007-03-26  Bruno Haible  <bruno@clisp.org>
62511
62512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62513         unportable shell command "if ! ...".
62514         Reported by Ralf Wildenhues.
62515
62516 2007-03-25  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62519         <sysexits.h> file, and only add EX_CONFIG.
62520         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62521         absolute file name and whether it is sufficient. Substitute also
62522         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62523         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62524         ABSOLUTE_SYSEXITS_H into sysexits.h.
62525
62526 2007-03-25  Bruno Haible  <bruno@clisp.org>
62527
62528         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62529         hints is NULL.
62530
62531 2007-03-25  Bruno Haible  <bruno@clisp.org>
62532
62533         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62534         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62535
62536 2007-03-25  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/vasnprintf.c: Include langinfo.h.
62539         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62540         multithread-safe.
62541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62550         Reported by Simon Josefsson.
62551
62552 2007-03-25  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62555         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62556         * modules/vasnprintf (Depends-on): Add stdint.
62557
62558 2007-03-25  Bruno Haible  <bruno@clisp.org>
62559
62560         * modules/fpieee: New file.
62561         * m4/fpieee.m4: New file.
62562         * modules/isnan-nolibm (Depends-on): Add fpieee.
62563         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62564         * modules/isnanl (Depends-on): Add fpieee.
62565
62566 2007-03-25  Bruno Haible  <bruno@clisp.org>
62567
62568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62569
62570 2007-03-25  Bruno Haible  <bruno@clisp.org>
62571
62572         Avoid test failures on IRIX 6.5.
62573         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62574         (main): Use it.
62575         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62576         macros.
62577         (main): Use them.
62578
62579 2007-03-25  Bruno Haible  <bruno@clisp.org>
62580
62581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62582         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62583         exists but doesn't work.
62584         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62585         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62587         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62588         math.h.
62589
62590 2007-03-25  Bruno Haible  <bruno@clisp.org>
62591
62592         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62593         returns inf. Needed on IRIX 6.5.
62594
62595 2007-03-25  Bruno Haible  <bruno@clisp.org>
62596
62597         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62598         (main): Use isnanl instead of x != x idiom.
62599         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62600
62601         * tests/test-frexp.c: Include isnan.h.
62602         (main): Use isnan instead of x != x idiom.
62603         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62604
62605 2007-03-25  Bruno Haible  <bruno@clisp.org>
62606
62607         * tests/test-frexp.c (NaN): New function/macro.
62608         (main): Use it instead of 0.0 / 0.0.
62609         * tests/test-isnan.c (NaN): New function/macro.
62610         (main): Use it instead of 0.0 / 0.0.
62611         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62612         (test_function): Use it instead of 0.0 / 0.0.
62613         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62614         (test_function): Use it instead of 0.0 / 0.0.
62615         * tests/test-snprintf-posix.h (NaN): New function/macro.
62616         (test_function): Use it instead of 0.0 / 0.0.
62617         * tests/test-sprintf-posix.h (NaN): New function/macro.
62618         (test_function): Use it instead of 0.0 / 0.0.
62619         * tests/test-fprintf-posix.h (NaN): New function/macro.
62620         (test_function): Use it instead of 0.0 / 0.0.
62621         * tests/test-printf-posix.h (NaN): New function/macro.
62622         (test_function): Use it instead of 0.0 / 0.0.
62623
62624         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62625
62626 2007-03-25  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62629
62630 2007-03-25  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/regexec.c (merge_state_with_log): Make static.
62633
62634 2007-03-25  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/trigl.c (kernel_rem_pio2): Make static.
62637
62638 2007-03-25  Bruno Haible  <bruno@clisp.org>
62639
62640         * lib/sincosl.c (sincosl_table): Make static.
62641
62642 2007-03-25  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62645         if the compiler does not support C99.
62646
62647 2007-03-25  Bruno Haible  <bruno@clisp.org>
62648
62649         * modules/time (Makefile.am): Ensure all rule action lines start with a
62650         tab.
62651
62652 2007-03-24  Bruno Haible  <bruno@clisp.org>
62653
62654         * modules/tsearch-tests: New file.
62655         * tests/test-tsearch.sh: New file.
62656         * tests/test-tsearch.c: New file, mostly copied from glibc.
62657
62658         * modules/search-tests: New file.
62659         * tests/test-search.c: New file.
62660
62661         * modules/search: New file.
62662         * lib/search_.h: New file, incorporating lib/tsearch.h.
62663         * m4/search_h.m4: New file.
62664         * lib/tsearch.h: Remove file.
62665         * lib/tsearch.c: Include search.h instead of tsearch.h.
62666         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62667         HAVE_TSEARCH.
62668         * modules/tsearch (Files): Remove lib/tsearch.h.
62669         (Depends-on): Add search.
62670         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62671         (Include): Change tsearch.h into search.h.
62672
62673 2007-03-24  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/fpucw: New file.
62676         * lib/fpucw.h: New file.
62677         * lib/frexp.c: Include fpucw.h.
62678         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62679         (FUNC): Use them.
62680         * lib/printf-frexp.c: Include fpucw.h.
62681         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62682         (FUNC): Use them.
62683         * lib/vasnprintf.c: Include fpucw.h.
62684         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62685         'long double' calculations.
62686         * tests/test-frexpl.c: Include fpucw.h.
62687         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62688         * tests/test-printf-frexpl.c: Include fpucw.h.
62689         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62690         * modules/frexpl (Depends-on): Add fpucw.
62691         * modules/printf-frexpl (Depends-on): Likewise.
62692         * modules/fprintf-posix (Depends-on): Likewise.
62693         * modules/snprintf-posix (Depends-on): Likewise.
62694         * modules/sprintf-posix (Depends-on): Likewise.
62695         * modules/vasnprintf-posix (Depends-on): Likewise.
62696         * modules/vasprintf-posix (Depends-on): Likewise.
62697         * modules/vfprintf-posix (Depends-on): Likewise.
62698         * modules/vsnprintf-posix (Depends-on): Likewise.
62699         * modules/vsprintf-posix (Depends-on): Likewise.
62700         * modules/frexpl-tests (Depends-on): Likewise.
62701         * modules/printf-frexpl-tests (Depends-on): Likewise.
62702
62703 2007-03-24  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/float+.h: New file.
62706         * lib/isnan.c: Include float+.h.
62707         (SIZE): New macro.
62708         (FUNC): Compare only SIZE bytes of the value.
62709         * lib/vasnprintf.c: Include float+.h.
62710         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62711         SIZEOF_LDBL or SIZEOF_DBL bytes.
62712         * modules/isnan-nolibm (Files): Add lib/float+.h.
62713         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62714         * modules/isnanl (Files): Add lib/float+.h.
62715         * modules/vasnprintf (Files): Add lib/float+.h.
62716
62717 2007-03-24  Bruno Haible  <bruno@clisp.org>
62718
62719         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62720         include isnanl-nolibm.h.
62721
62722 2007-03-24  Bruno Haible  <bruno@clisp.org>
62723
62724         * tests/test-read-file.c (main): Don't produce spurious output for
62725         expected situations. Make the test fail if it encountered unexpected
62726         results.
62727
62728 2007-03-24  Bruno Haible  <bruno@clisp.org>
62729
62730         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62731         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62732
62733 2007-03-24  Bruno Haible  <bruno@clisp.org>
62734
62735         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62736
62737 2007-03-24  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62740         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62741
62742         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62743         * modules/utf8-ucs4: Turn into a symbolic link to module
62744         unistr/u8-mbtouc.
62745
62746         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62747         utf8-ucs4-unsafe.
62748         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62749         unistr/u8-mbtouc-unsafe.
62750
62751         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62752         * modules/utf16-ucs4: Turn into a symbolic link to module
62753         unistr/u16-mbtouc.
62754
62755         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62756         utf16-ucs4-unsafe.
62757         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62758         unistr/u16-mbtouc-unsafe.
62759
62760         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62761         * modules/ucs4-utf8: Turn into a symbolic link to module
62762         unistr/u8-ubtomb.
62763
62764         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62765         * modules/ucs4-utf16: Turn into a symbolic link to module
62766         unistr/u16-ubtomb.
62767
62768 2007-03-24  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62771         Enable the function only if HAVE_INLINE.
62772         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62773         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62774         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62775         Enable the function only if HAVE_INLINE.
62776         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62777         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62778         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62779         Enable the function only if HAVE_INLINE.
62780         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62781         Enable the function only if HAVE_INLINE.
62782         * modules/utf8-ucs4: Update.
62783         * modules/utf8-ucs4-unsafe: Update.
62784         * modules/utf16-ucs4: Update.
62785         * modules/utf16-ucs4-unsafe: Update.
62786         * modules/ucs4-utf8: Update.
62787         * modules/ucs4-utf16: Update.
62788
62789 2007-03-24  Bruno Haible  <bruno@clisp.org>
62790
62791         * lib/utf8-ucs4.h: Remove file.
62792         * lib/utf8-ucs4-unsafe.h: Remove file.
62793         * lib/utf16-ucs4.h: Remove file.
62794         * lib/utf16-ucs4-unsafe.h: Remove file.
62795         * lib/ucs4-utf8.h: Remove file.
62796         * lib/ucs4-utf16.h: Remove file.
62797         * lib/unistr.h: Include their previous contents.
62798         * m4/utf-ucs4.m4: Remove file.
62799         * m4/ucs4-utf.m4: Remove file.
62800         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62801         (Depends-on): Add unistr/base.
62802         (configure.ac): Remove gl_UTF_UCS4.
62803         (Makefile.am): Update.
62804         (Include): Change to unistr.h.
62805         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62806         (Depends-on): Add unistr/base.
62807         (configure.ac): Remove gl_UTF_UCS4.
62808         (Makefile.am): Update.
62809         (Include): Change to unistr.h.
62810         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62811         (Depends-on): Add unistr/base.
62812         (configure.ac): Remove gl_UTF_UCS4.
62813         (Makefile.am): Update.
62814         (Include): Change to unistr.h.
62815         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62816         (Depends-on): Add unistr/base.
62817         (configure.ac): Remove gl_UTF_UCS4.
62818         (Makefile.am): Update.
62819         (Include): Change to unistr.h.
62820         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62821         (Depends-on): Add unistr/base.
62822         (configure.ac): Remove gl_UCS4_UTF.
62823         (Makefile.am): Update.
62824         (Include): Change to unistr.h.
62825         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62826         (Depends-on): Add unistr/base.
62827         (configure.ac): Remove gl_UCS4_UTF.
62828         (Makefile.am): Update.
62829         (Include): Change to unistr.h.
62830         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62831         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62832         utf8-ucs4-unsafe.h.
62833         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62834         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62835         utf16-ucs4-unsafe.h.
62836         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62837         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62838         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62839         * lib/unistr/u8-strchr.c: Likewise.
62840         * lib/unistr/u8-strrchr.c: Likewise.
62841         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62842         * lib/unistr/u16-strchr.c: Likewise.
62843         * lib/unistr/u16-strrchr.c: Likewise.
62844         * lib/striconveh.c: Update.
62845         * lib/linebreak.c: Update.
62846
62847 2007-03-24  Bruno Haible  <bruno@clisp.org>
62848
62849         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62850         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62851
62852 2007-03-22  Bruno Haible  <bruno@clisp.org>
62853
62854         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62855
62856 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * MODULES.html.sh (File system functions): New module write-any-file.
62859         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62860         * m4/write-any-file.m4: New files.
62861
62862 2007-03-23  Eric Blake  <ebb9@byu.net>
62863
62864         * gnulib-tool: Rearrange space-tab sequences, since some editors
62865         like to eat them.
62866
62867 2007-03-23  Eric Blake  <ebb9@byu.net>
62868
62869         * lib/version-etc.c (version_etc_va): Update license wording to
62870         be more concise.  Recommended by Richard Stallman.
62871
62872 2007-03-22  Bruno Haible  <bruno@clisp.org>
62873
62874         * lib/poll.c (MSG_PEEK): New fallback definition.
62875
62876 2007-03-22  Bruno Haible  <bruno@clisp.org>
62877
62878         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62879         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62880         (main): Update.
62881         Fixes a compilation error on BeOS.
62882
62883 2007-03-22  Bruno Haible  <bruno@clisp.org>
62884
62885         * modules/frexpl-tests: New file.
62886         * tests/test-frexpl.c: New file.
62887
62888         * modules/frexpl: New file.
62889         * m4/frexpl.m4: New file.
62890         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62891         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62893         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62894         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62895         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62896
62897 2007-03-22  Bruno Haible  <bruno@clisp.org>
62898
62899         * lib/frexpl.c: Share code with lib/frexp.c.
62900         * modules/mathl (Files): Add lib/frexp.c.
62901         (Depends-on): Add isnanl-nolibm.
62902
62903 2007-03-22  Bruno Haible  <bruno@clisp.org>
62904
62905         * modules/printf-frexp (Files): Add m4/frexp.m4.
62906         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62907         only if the found frexp function actually works.
62908
62909 2007-03-22  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/frexp.c: Remove older implementation that uses divisions.
62912
62913 2007-03-21  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/frexp-tests: New file.
62916         * tests/test-frexp.c: New file.
62917
62918         * modules/frexp: New file.
62919         * lib/frexp.c: New file.
62920         * m4/frexp.m4: New file.
62921         * lib/math_.h (frexp): New declaration.
62922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62923         REPLACE_FREXP.
62924         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62925
62926 2007-03-21  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/isnanl-tests: New file.
62929         * tests/test-isnanl.c: New file.
62930
62931         * modules/isnanl: New file.
62932         * lib/isnanl.h: New file.
62933         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62934         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62935         gl_FUNC_ISNANL_WORKS.
62936         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62937         New macros.
62938
62939 2007-03-21  Bruno Haible  <bruno@clisp.org>
62940
62941         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62942         lib/isnanl.h.
62943         (Include): Update.
62944         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62945         * lib/vasnprintf.c: Update.
62946         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62947         tests/test-isnanl.h, remove tests/test-isnanl.c.
62948         (Makefile.am): Update.
62949         * tests/test-isnanl-nolibm.c: New file.
62950         * tests/test-isnanl.h: New file.
62951         * tests/test-isnanl.c: Remove file.
62952
62953 2007-03-21  Jim Meyering  <jim@meyering.net>
62954
62955         When trying to open ".", treat ESTALE like EACCES.
62956         * lib/savewd.c (savewd_save): Resort to forking not just upon
62957         failure with EACCES, but also when errno is ESTALE.
62958
62959 2007-03-20  Bruno Haible  <bruno@clisp.org>
62960
62961         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62962         Needed on AIX 5.1. Reported by Matthew Woehlke.
62963
62964 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         Suggestions by Bruno Haible:
62967         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62968         our own.
62969         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62970         * modules/acl (Depends-on): Add gettext.
62971
62972 2007-03-19  Bruno Haible  <bruno@clisp.org>
62973
62974         * modules/iconvme: Remove file.
62975         * lib/iconvme.h: Remove file.
62976         * lib/iconvme.c: Remove file.
62977         * m4/iconvme.m4: Remove file.
62978
62979 2007-03-19  Bruno Haible  <bruno@clisp.org>
62980
62981         * doc/relocatable-maint.texi: Break long shell script line.
62982         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62983
62984 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62987         handle file_has_acl.
62988         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62989         * lib/acl.c: Move header inclusions and related macro defns into
62990         lib/acl-internal.h.
62991         (S_ISLNK): Remove defn, since that's now done for us.
62992         (file_has_acl): Move to lib/file-has-acl.c.
62993         Call acl_trivial if available.  This is the crucial part of the fix.
62994         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62995         shared within the library.  Rewrite a bit, partly to make it compatible
62996         with the GNU coding style.
62997         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62998         Remove unnecessary double-quotes.
62999         Don't test for acl_to_text; the build will catch that.
63000         Replace acl_entries if it doesn't exist and it is needed.
63001         Check for -lsec and acl_trivial (as used on Solaris 10).
63002         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63003         lib/file-has-acl.c.
63004         (Depends-on): Add sys_stat, for S_ISLNK.
63005
63006 2007-03-19  Ben Pfaff  <blp@gnu.org>
63007
63008         * doc/gnulib.texi: Fix typos.
63009         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63010
63011 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63012
63013         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63014         If size is zero here, buf must be zero.
63015
63016 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63017
63018         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63019         <bruno@clisp.org>.
63020
63021 2007-03-18  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63024         Suggested by Eric Blake.
63025
63026 2007-03-18  Ben Pfaff  <blp@gnu.org>
63027
63028         * doc/relocatable.texi: Recommend using as prefix a directory
63029         that does not exist and will never be created.  Based on
63030         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63031         and others.
63032
63033 2007-03-17  Bruno Haible  <bruno@clisp.org>
63034
63035         * lib/fchownat.c: Include lchown.h.
63036
63037 2007-03-17  Bruno Haible  <bruno@clisp.org>
63038
63039         Fix endless loop when the given allocated size was > INT_MAX.
63040         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63041         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63042         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63043         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63044         * lib/sprintf.c (sprintf): Likewise.
63045
63046 2007-03-17  Bruno Haible  <bruno@clisp.org>
63047
63048         * tests/test-argp-2.sh (func_compare): Output a context diff.
63049
63050 2007-03-17  Bruno Haible  <bruno@clisp.org>
63051
63052         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63053         locale's decimal-point character.
63054
63055 2007-03-17  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63058         before comparing it. Needed because on some platforms (e.g. x86) a
63059         'long double' occupies less bytes than sizeof (long double).
63060
63061 2007-03-17  Bruno Haible  <bruno@clisp.org>
63062
63063         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63064         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63065         * tests/test-getaddrinfo.c (simple): Likewise.
63066         * tests/test-read-file.c (main): Likewise.
63067
63068 2007-03-17  Bruno Haible  <bruno@clisp.org>
63069
63070         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63071
63072 2007-03-17  Bruno Haible  <bruno@clisp.org>
63073
63074         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63075         unused variable.
63076
63077 2007-03-17  Bruno Haible  <bruno@clisp.org>
63078
63079         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63080         * tests/test-c-strncasecmp.c: Likewise.
63081
63082 2007-03-17  Bruno Haible  <bruno@clisp.org>
63083
63084         * modules/stdlib (Depends-on): Add unistd.
63085         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63086         Needed for MacOS X 10.3.
63087
63088 2007-03-17  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63091
63092 2007-03-17  Bruno Haible  <bruno@clisp.org>
63093
63094         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63095
63096 2007-03-17  Bruno Haible  <bruno@clisp.org>
63097
63098         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63099         to reflect files copied from gnulib (with or without modifications).
63100         Suggested by Jim Meyering.
63101
63102 2007-03-17  Eric Blake  <ebb9@byu.net>
63103
63104         * NEWS: Document stdlib change from 2007-02-18.
63105
63106 2007-03-17  Jim Meyering  <jim@meyering.net>
63107
63108         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63109         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63110         someone uses a name containing shell meta-characters.
63111         Reported by Alfred M. Szmidt.
63112
63113         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63114
63115 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63116
63117         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63118         and copy gettext configuration files only if configure.ac contains
63119         a use of AM_GNU_GETTEXT_VERSION.
63120
63121 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63122
63123         * build-aux/bootstrap (gnulib_name): New variable.
63124         (gnulib_tool_options): Use it.
63125
63126 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63127
63128         * tests/test-des.c: Use new namespace.
63129
63130 2007-03-15  Bruno Haible  <bruno@clisp.org>
63131
63132         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63133         Reported by James Youngman <jay@gnu.org>.
63134
63135 2007-03-15  Bruno Haible  <bruno@clisp.org>
63136
63137         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63138         declared prototype. Needed with cc on OSF/1 5.1.
63139
63140 2007-03-15  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63143         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63144         (struct gl_list_implementation): Add dispose_fn argument to the
63145         'create_empty', 'create' methods.
63146         (struct gl_list_impl_base): Add field 'dispose_fn'.
63147         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63148         argument.
63149         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63150         dispose_fn argument.
63151         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63152         dispose_fn on the dropped values.
63153         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63154         dispose_fn argument.
63155         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63156         dropped values.
63157         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63158         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63159         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63160         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63161         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63162         argument.
63163         (gl_tree_list_free): Call dispose_fn on the dropped values.
63164         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63165         the dropped values.
63166         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63167         Add dispose_fn argument.
63168         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63169         Call dispose_fn on the dropped values.
63170         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63171         Add dispose_fn argument.
63172         (gl_sublist_create): Initialize the 'dispose_fn' field.
63173         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63174         * tests/test-array_list.c (main): Update.
63175         * tests/test-carray_list.c (main): Update.
63176         * tests/test-avltree_list.c (main): Update.
63177         * tests/test-rbtree_list.c (main): Update.
63178         * tests/test-avltreehash_list.c (main): Update.
63179         * tests/test-rbtreehash_list.c (main): Update.
63180         * tests/test-linked_list.c (main): Update.
63181         * tests/test-linkedhash_list.c (main): Update.
63182         * tests/test-array_oset.c (main): Update.
63183
63184 2007-03-15  Bruno Haible  <bruno@clisp.org>
63185
63186         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63187         (gl_oset_create_empty): Add dispose_fn argument.
63188         (struct gl_oset_implementation): Add dispose_fn argument to
63189         'create_empty' method.
63190         (struct gl_oset_impl_base): Add dispose_fn field.
63191         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63192         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63193         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63194         values.
63195         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63196         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63197         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63198         dropped value.
63199         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63200         dropped value.
63201         * tests/test-array_oset.c (main): Update.
63202         * tests/test-avltree_oset.c (main): Update.
63203         * tests/test-rbtree_oset.c (main): Update.
63204         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63205
63206 2007-03-13  Bruno Haible  <bruno@clisp.org>
63207
63208         * tests/test-stdbool.c (i): Update after last patch.
63209
63210 2007-03-12  Bruno Haible  <bruno@clisp.org>
63211
63212         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63213         the iswprint macro. Needed on Solaris 2.5.1.
63214
63215 2007-03-12  Bruno Haible  <bruno@clisp.org>
63216
63217         * tests/test-printf-frexp.c (main): Declare x as volatile.
63218
63219 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63220
63221         * doc/gnulib.texi (Build robot for gnulib): New section.
63222
63223 2007-03-12  Jim Meyering  <jim@meyering.net>
63224
63225         * build-aux/bootstrap: New file.
63226         * build-aux/bootstrap.conf: New file, from coreutils.
63227
63228 2007-03-11  Bruno Haible  <bruno@clisp.org>
63229
63230         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63231
63232 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63233
63234         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63235         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63236         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63237
63238 2007-03-11  Bruno Haible  <bruno@clisp.org>
63239
63240         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63241         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63242
63243 2007-03-11  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63246         formula. Needed for SunPRO C 5.0.
63247
63248 2007-03-11  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/long-options (Depends-on): Add getopt.
63251
63252 2007-03-11  Bruno Haible  <bruno@clisp.org>
63253
63254         * modules/modechange (Depends-on): Add stdbool.
63255
63256 2007-03-11  Bruno Haible  <bruno@clisp.org>
63257
63258         * modules/i-ring (Depends-on): Add stdbool.
63259
63260 2007-03-11  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/gc-des (Depends-on): Add stdbool.
63263
63264 2007-03-11  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63267
63268 2007-03-11  Bruno Haible  <bruno@clisp.org>
63269
63270         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63271
63272 2007-03-11  Bruno Haible  <bruno@clisp.org>
63273
63274         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63275
63276 2007-03-11  Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/vasnprintf.c (sprintf): Undefine.
63279
63280 2007-03-11  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63283         initializers in SunPRO C and Compaq C compilers.
63284
63285 2007-03-11  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63288         decrementing code ANSI C compliant.
63289
63290 2007-03-11  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63293         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63294
63295 2007-03-11  Bruno Haible  <bruno@clisp.org>
63296
63297         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63298         <stdbool.h> substitute doesn't pass.
63299
63300 2007-03-11  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63303
63304 2007-03-11  Bruno Haible  <bruno@clisp.org>
63305
63306         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63307         script, for submission to autobuild.josefsson.org.
63308
63309 2007-03-10  Bruno Haible  <bruno@clisp.org>
63310
63311         * modules/canonicalize-lgpl-tests: New file.
63312         * tests/test-canonicalize-lgpl.sh: New file.
63313         * tests/test-canonicalize-lgpl.c: New file.
63314
63315         * modules/c-strcase-tests: New file.
63316         * tests/test-c-strcase.sh: New file.
63317         * tests/test-c-strcasecmp.c: New file.
63318         * tests/test-c-strncasecmp.c: New file.
63319
63320         * modules/atexit-tests: New file.
63321         * tests/test-atexit.sh: New file.
63322         * tests/test-atexit.c: New file.
63323
63324 2007-03-10  Bruno Haible  <bruno@clisp.org>
63325
63326         * tests/test-binary-io.sh: Use temporary filenames that are not so
63327         likely to clash with those of other tests (in a parallel make).
63328         * tests/test-binary-io.c: Likewise.
63329
63330 2007-03-10  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63333         fallback; use #error instead.
63334         Suggested by Simon Josefsson.
63335
63336 2007-03-10  Bruno Haible  <bruno@clisp.org>
63337
63338         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63339         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63340         first and the last.
63341
63342 2007-03-10  Bruno Haible  <bruno@clisp.org>
63343
63344         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63345
63346 2007-03-10  Bruno Haible  <bruno@clisp.org>
63347
63348         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63349         "make distcheck".
63350         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63351         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63352         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63353
63354 2007-03-10  Bruno Haible  <bruno@clisp.org>
63355
63356         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63357         variable.
63358         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63359         variable.
63360
63361 2007-03-09  Eric Blake  <ebb9@byu.net>
63362         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63363
63364         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63365         types are not being provided by gnulib.
63366         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63367         types are supported.
63368
63369 2007-03-10  Bruno Haible  <bruno@clisp.org>
63370
63371         * lib/stdio_.h (__attribute__): New macro.
63372         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63373         vsprintf): Specify __attribute__ __format__ for GCC.
63374         Suggested by Eric Blake.
63375
63376 2007-03-09  Bruno Haible  <bruno@clisp.org>
63377
63378         * modules/printf-posix-tests: New file.
63379         * tests/test-printf-posix.sh: New file.
63380         * tests/test-printf-posix.c: New file.
63381
63382         * modules/printf-posix: New file.
63383         * lib/printf.c: New file.
63384         * m4/printf-posix-rpl.m4: New file.
63385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63386         REPLACE_PRINTF.
63387         * lib/stdio_.h (printf): New declaration.
63388         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63389         ____strfmon____): New macros.
63390         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63391         REPLACE_PRINTF.
63392
63393 2007-03-09  Bruno Haible  <bruno@clisp.org>
63394
63395         * tests/test-vasnprintf-posix2.sh: New file.
63396         * tests/test-vasnprintf-posix2.c: New file.
63397         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63398         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63399         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63400
63401         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63402         a locale dependent decimal point, rather than always '.'.
63403
63404 2007-03-09  Eric Blake  <ebb9@byu.net>
63405
63406         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63407         spite of platforms like Tandem/NSK that define it to -1.
63408
63409 2007-03-08  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/vprintf-posix-tests: New file.
63412         * tests/test-vprintf-posix.sh: New file.
63413         * tests/test-vprintf-posix.c: New file.
63414         * tests/test-printf-posix.h: New file.
63415
63416         * modules/vprintf-posix: New file.
63417         * lib/vprintf.c: New file.
63418         * m4/vprintf-posix.m4: New file.
63419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63420         REPLACE_VPRINTF.
63421         * lib/stdio_.h (vprintf): New declaration.
63422         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63423         REPLACE_VPRINTF.
63424
63425 2007-03-08  Bruno Haible  <bruno@clisp.org>
63426
63427         * modules/fprintf-posix-tests: New file.
63428         * tests/test-fprintf-posix.sh: New file.
63429         * tests/test-fprintf-posix.c: New file.
63430
63431         * modules/fprintf-posix: New file.
63432         * lib/fprintf.c: New file.
63433         * m4/fprintf-posix.m4: New file.
63434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63435         REPLACE_FPRINTF.
63436         * lib/stdio_.h (fprintf): New declaration.
63437         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63438         REPLACE_FPRINTF.
63439
63440 2007-03-08  Bruno Haible  <bruno@clisp.org>
63441
63442         * modules/vfprintf-posix-tests: New file.
63443         * tests/test-vfprintf-posix.sh: New file.
63444         * tests/test-vfprintf-posix.c: New file.
63445         * tests/test-fprintf-posix.h: New file.
63446         * tests/test-fprintf-posix.out: New file.
63447
63448         * modules/vfprintf-posix: New file.
63449         * lib/vfprintf.c: New file.
63450         * m4/vfprintf-posix.m4: New file.
63451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63452         REPLACE_VFPRINTF.
63453         * lib/stdio_.h (vfprintf): New declaration.
63454         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63455         REPLACE_VFPRINTF.
63456
63457 2007-03-08  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63460
63461 2007-03-08  Bruno Haible  <bruno@clisp.org>
63462
63463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63464         instead of 'expr' invocations.
63465         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63470         Suggested by Paul Eggert.
63471
63472 2007-03-08  Bruno Haible  <bruno@clisp.org>
63473
63474         * modules/fseterr-tests: New file.
63475         * tests/test-fseterr.c: New file.
63476
63477         * modules/fseterr: New file.
63478         * lib/fseterr.h: New file.
63479         * lib/fseterr.c: New file.
63480
63481 2007-03-08  Bruno Haible  <bruno@clisp.org>
63482
63483         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63484         * lib/getopt_.h: Likewise.
63485         * lib/mbswidth.h: Likewise.
63486         * lib/setenv.h: Likewise.
63487         * lib/vasnprintf.h: Likewise.
63488         * lib/vasprintf.h: Likewise.
63489         * lib/verror.h: Likewise.
63490         * lib/xsetenv.h: Likewise.
63491         * lib/xvasprintf.h: Likewise.
63492
63493 2007-03-08  Jim Meyering  <jim@meyering.net>
63494
63495         * users.txt: Add parted.
63496
63497         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63498
63499 2007-03-07  Bruno Haible  <bruno@clisp.org>
63500
63501         * m4/printf.m4: Make the shell script snippets copy&pastable.
63502
63503 2007-03-02  Bruno Haible  <bruno@clisp.org>
63504
63505         * lib/netinet_in_.h: New file.
63506         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63507         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63508         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63509         (Depends-on): Add absolute-header.
63510         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63511         into netinet/in.h.
63512
63513 2007-03-03  Bruno Haible  <bruno@clisp.org>
63514
63515         * lib/sys_select_.h: New file.
63516         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63517         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63518         * modules/sys_select (Files): Add lib/sys_select_.h.
63519         (Depends-on): Add absolute-header.
63520         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63521         into sys/select.h.
63522
63523 2007-03-02  Bruno Haible  <bruno@clisp.org>
63524
63525         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63526         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63527         values.
63528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63529         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63530         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63531         * modules/sys_socket (Depends-on): Add absolute-header.
63532         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63533         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63534         (Include): Remove requirement of inclusion of <sys/types.h>.
63535
63536 2007-03-02  Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/byteswap_.h (bswap_32): Fix formula.
63539
63540 2007-03-06  Bruno Haible  <bruno@clisp.org>
63541
63542         * modules/sprintf-posix-tests: New file.
63543         * tests/test-sprintf-posix.c: New file.
63544
63545         * modules/sprintf-posix: New file.
63546         * lib/sprintf.c: New file.
63547         * m4/sprintf-posix.m4: New file.
63548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63549         REPLACE_SPRINTF.
63550         * lib/stdio_.h (sprintf): New declaration.
63551         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63552         REPLACE_SPRINTF.
63553
63554 2007-03-06  Bruno Haible  <bruno@clisp.org>
63555
63556         * modules/vsprintf-posix-tests: New file.
63557         * tests/test-vsprintf-posix.c: New file.
63558         * tests/test-sprintf-posix.h: New file.
63559
63560         * modules/vsprintf-posix: New file.
63561         * lib/vsprintf.c: New file.
63562         * m4/vsprintf-posix.m4: New file.
63563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63564         REPLACE_VSPRINTF.
63565         * lib/stdio_.h (vsprintf): New declaration.
63566         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63567         REPLACE_VSPRINTF.
63568
63569 2007-03-06  Bruno Haible  <bruno@clisp.org>
63570
63571         * modules/vsnprintf (Depend-on): Remove minmax.
63572
63573 2007-03-06  Bruno Haible  <bruno@clisp.org>
63574
63575         * modules/snprintf-posix-tests: New file.
63576         * tests/test-snprintf-posix.c: New file.
63577
63578         * modules/snprintf-posix: New file.
63579         * m4/snprintf-posix.m4: New file.
63580         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63581         gl_FUNC_SNPRINTF.
63582         (gl_FUNC_SNPRINTF): Invoke it.
63583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63584         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63585         is set.
63586         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63587
63588 2007-03-06  Bruno Haible  <bruno@clisp.org>
63589
63590         * modules/vsnprintf-posix-tests: New file.
63591         * tests/test-vsnprintf-posix.c: New file.
63592         * tests/test-snprintf-posix.h: New file.
63593
63594         * modules/vsnprintf-posix: New file.
63595         * m4/vsnprintf-posix.m4: New file.
63596         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63597         gl_FUNC_VSNPRINTF.
63598         (gl_FUNC_VSNPRINTF): Invoke it.
63599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63600         * lib/stdio_.h (vsnprintf): Define as a replacement if
63601         REPLACE_VSNPRINTF is set.
63602         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63603
63604 2007-03-06  Bruno Haible  <bruno@clisp.org>
63605
63606         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63608
63609 2007-03-06  Bruno Haible  <bruno@clisp.org>
63610
63611         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63612         (asinl): Declare also if HAVE_DECL_ASINL is set.
63613         (atanl): Declare also if HAVE_DECL_ATANL is set.
63614         (ceill): Declare also if HAVE_DECL_CEILL is set.
63615         (cosl): Declare also if HAVE_DECL_COSL is set.
63616         (expl): Declare also if HAVE_DECL_EXPL is set.
63617         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63618         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63619         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63620         (logl): Declare also if HAVE_DECL_LOGL is set.
63621         (sinl): Declare also if HAVE_DECL_SINL is set.
63622         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63623         (tanl): Declare also if HAVE_DECL_TANL is set.
63624         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63626         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63627         declaration of frexpl, ldexpl.
63628         * modules/printf-frexpl (Depends-on): Add math.
63629         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63630
63631 2007-03-05  Bruno Haible  <bruno@clisp.org>
63632
63633         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63634         frexpl and ldexpl are declared.
63635         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63636
63637 2007-03-05  Bruno Haible  <bruno@clisp.org>
63638
63639         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63640         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63641
63642 2007-03-05  Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/stdio_.h: Include <stddef.h>.
63645
63646 2007-03-05  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63649
63650 2007-03-05  Bruno Haible  <bruno@clisp.org>
63651
63652         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63653         NetBSD 4, from Ralf Wildenhues.
63654
63655 2007-03-04  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/vasprintf.h: Update #if logic for the case when the functions
63658         exist but are overridden.
63659
63660 2007-03-04  Bruno Haible  <bruno@clisp.org>
63661
63662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63663         implementations: glibc-2.4 and MacOS X 10.3.
63664         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63665         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63666         * tests/test-vasprintf-posix.c (test_function): Likewise.
63667
63668 2007-03-04  Bruno Haible  <bruno@clisp.org>
63669
63670         * modules/vasprintf-posix-tests: New file.
63671         * tests/test-vasprintf-posix.c: New file.
63672
63673         * modules/vasprintf-posix: New file.
63674         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63675         defined.
63676         * m4/vasprintf-posix.m4: New file.
63677         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63678         gl_FUNC_VASPRINTF.
63679         (gl_FUNC_VASPRINTF): Invoke it.
63680         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63681         here.
63682         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63683
63684 2007-03-04  Bruno Haible  <bruno@clisp.org>
63685
63686         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63687         REPLACE_GETTIMEOFDAY.
63688         * modules/sys_time (Makefile.am): Likewise.
63689         * m4/sys_time_h.m4: Likewise.
63690         * m4/gettimeofday.m4: Likewise.
63691
63692 2007-03-04  Bruno Haible  <bruno@clisp.org>
63693
63694         * modules/vasnprintf-posix-tests: New file.
63695         * tests/test-vasnprintf-posix.c: New file.
63696
63697         * modules/vasnprintf-posix: New file.
63698         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63699         printf-frexpl.h.
63700         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63701         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63702         REPLACE_VASNPRINTF is defined.
63703         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63704         gl_FUNC_VASNPRINTF.
63705         (gl_FUNC_VASNPRINTF): Invoke it.
63706         * m4/vasnprintf-posix.m4: New file.
63707         * m4/printf.m4: New file.
63708
63709 2007-03-04  Bruno Haible  <bruno@clisp.org>
63710
63711         Compile progreloc.c only if --enable-relocatable is specified.
63712         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63713         if --enable-relocatable was specified.
63714         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63715         lib_SOURCES.
63716
63717 2007-03-04  Jim Meyering  <jim@meyering.net>
63718
63719         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63720         Use it consistently, rather than enumerating errno constants.
63721
63722 2007-03-04  Bruno Haible  <bruno@clisp.org>
63723
63724         * modules/xvasprintf-tests: New file.
63725         * tests/test-xvasprintf.c: New file.
63726
63727         * modules/vasprintf-tests: New file.
63728         * tests/test-vasprintf.c: New file.
63729
63730         * modules/vasnprintf-tests: New file.
63731         * tests/test-vasnprintf.c: New file.
63732
63733         * modules/vsnprintf-tests: New file.
63734         * tests/test-vsnprintf.c: New file.
63735
63736         * modules/snprintf-tests: New file.
63737         * tests/test-snprintf.c: New file.
63738
63739 2007-03-04  Bruno Haible  <bruno@clisp.org>
63740
63741         Compile relocatable.c only if --enable-relocatable is specified.
63742         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63743         gl_RELOCATABLE_LIBRARY.
63744         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63745         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63746         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63747         gl_RELOCATABLE_LIBRARY.
63748         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63749         (Makefile.am): Remove lib_SOURCES.
63750         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63751         gl_RELOCATABLE_LIBRARY.
63752         (Makefile.am): Remove lib_SOURCES.
63753         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63754         always.
63755         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63756         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63757
63758 2007-03-04  Bruno Haible  <bruno@clisp.org>
63759
63760         * modules/argmatch-tests: New file.
63761         * tests/test-argmatch.c: New file.
63762
63763         * tests/test-allocsa.c (main): Halve the number of loop runs.
63764
63765         * modules/alloca-opt-tests: New file.
63766         * tests/test-alloca-opt.c: New file.
63767
63768 2007-03-04  Jim Meyering  <jim@meyering.net>
63769
63770         Work around difference between Linux ACLs and Solaris 10 ZFS.
63771         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63772         for EINVAL.
63773
63774 2007-03-03  Bruno Haible  <bruno@clisp.org>
63775
63776         * modules/relocatable-prog (Depends-on): Add back progreloc's
63777         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63778
63779 2007-03-03  Bruno Haible  <bruno@clisp.org>
63780
63781         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63782         * modules/relocatable-lib: New file.
63783
63784 2007-03-03  Bruno Haible  <bruno@clisp.org>
63785
63786         * modules/relocatable-prog: Renamed from modules/relocatable.
63787         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63788
63789 2007-03-03  Bruno Haible  <bruno@clisp.org>
63790
63791         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63792         m4/relocatable-lib.m4.
63793         (Depends-on): Remove 'relocatable'.
63794         (configure.ac): Add gl_RELOCATABLE_NOP.
63795
63796 2007-03-03  Bruno Haible  <bruno@clisp.org>
63797
63798         * modules/relocatable-prog-wrapper: New file.
63799         * modules/relocatable (Depends-on): Add it. Remove all other
63800         dependencies except progname.
63801         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63802
63803         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63804         (gl_FUNC_STRERROR): Nop.
63805         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63806
63807         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63808         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63809
63810         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63811         (gl_FUNC_READLINK): Update.
63812
63813         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63814
63815 2007-03-03  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63818         * modules/xreadlink (Depends-on): Add unistd.
63819         * modules/xreadlink-with-size (Depends-on): Likewise.
63820
63821 2007-03-03  Bruno Haible  <bruno@clisp.org>
63822
63823         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63824         extracted from gt_FUNC_SETENV.
63825         (gt_FUNC_SETENV): Remove macro.
63826         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63827         remove gt_FUNC_SETENV.
63828
63829 2007-03-03  Bruno Haible  <bruno@clisp.org>
63830
63831         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63832         ENABLE_RELOCATABLE here.
63833         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63834
63835 2007-03-03  Bruno Haible  <bruno@clisp.org>
63836
63837         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63838         * tests/test-rbtreehash_list.c: Include progname.h.
63839         (main): Call set_program_name.
63840
63841         * modules/rbtree-oset-tests (Depends-on): Add progname.
63842         * tests/test-rbtree_oset.c: Include progname.h.
63843         (main): Call set_program_name.
63844
63845         * modules/rbtree-list-tests (Depends-on): Add progname.
63846         * tests/test-rbtree_list.c: Include progname.h.
63847         (main): Call set_program_name.
63848
63849         * modules/linked-list-tests (Depends-on): Add progname.
63850         * tests/test-linked_list.c: Include progname.h.
63851         (main): Call set_program_name.
63852
63853 2007-03-03  Bruno Haible  <bruno@clisp.org>
63854
63855         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63856         All uses of __restrict changed to _Restrict_.
63857         * lib/glob_.h (__restrict): Remove macro.
63858
63859 2007-03-02  Bruno Haible  <bruno@clisp.org>
63860
63861         * modules/gettext (configure.ac): Require gettext infrastructure
63862         from version 0.16.1.
63863
63864 2007-03-02  Bruno Haible  <bruno@clisp.org>
63865
63866         * modules/linkedhash-list-tests (Depends-on): Add progname.
63867         * tests/test-linkedhash_list.c: Include progname.h.
63868         (main): Call set_program_name.
63869
63870         * modules/carray-list-tests (Depends-on): Add progname.
63871         * tests/test-carray_list.c: Include progname.h.
63872         (main): Call set_program_name.
63873
63874         * modules/avltreehash-list-tests (Depends-on): Add progname.
63875         * tests/test-avltreehash_list.c: Include progname.h.
63876         (main): Call set_program_name.
63877
63878         * modules/avltree-oset-tests (Depends-on): Add progname.
63879         * tests/test-avltree_oset.c: Include progname.h.
63880         (main): Call set_program_name.
63881
63882         * modules/avltree-list-tests (Depends-on): Add progname.
63883         * tests/test-avltree_list.c: Include progname.h.
63884         (main): Call set_program_name.
63885
63886         * modules/array-oset-tests (Depends-on): Add progname.
63887         * tests/test-array_oset.c: Include progname.h.
63888         (main): Call set_program_name.
63889
63890         * modules/array-list-tests (Depends-on): Add progname.
63891         * tests/test-array_list.c: Include progname.h.
63892         (main): Call set_program_name.
63893
63894         * modules/argp-tests (Depends-on): Add progname.
63895         * tests/test-argp.c: Include argp.h first. Include progname.h.
63896         (main): Call set_program_name.
63897
63898 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         * doc/gnulib-tool.texi (Initial import): Reword description of
63901         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63902         limited effect even if defined after the first system include.
63903
63904 2007-03-01  Bruno Haible  <bruno@clisp.org>
63905
63906         * build-aux/config.libpath: Update to libtool-1.5.22.
63907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63908
63909 2007-03-01  Bruno Haible  <bruno@clisp.org>
63910
63911         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63912         foo_CFLAGS.
63913         Reported by Ralf Wildenhues.
63914
63915 2007-03-01  Bruno Haible  <bruno@clisp.org>
63916
63917         * build-aux/install-reloc: Remove object files left over by some
63918         compilers.
63919         Reported by Ralf Wildenhues.
63920
63921 2007-03-01  Bruno Haible  <bruno@clisp.org>
63922
63923         * build-aux/install-reloc: Break long lines.
63924
63925 2007-03-01  Bruno Haible  <bruno@clisp.org>
63926
63927         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63928         Reported by Ralf Wildenhues.
63929
63930 2007-03-01  Bruno Haible  <bruno@clisp.org>
63931
63932         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63933         include ordering constraints.
63934
63935 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63939         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63940         as another example.
63941         * lib/time_.h: Fix misspelling.
63942         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63943         Require gl_HEADER_TIME_H_DEFAULTS.
63944         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63945         * m4/time_r.m4 (gl_TIME_R): Likewise.
63946         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63947
63948 2007-03-01  Bruno Haible  <bruno@clisp.org>
63949
63950         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63951         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63952
63953 2007-03-01  Jim Meyering  <jim@meyering.net>
63954
63955         * modules/xreadlink (Maintainer): Add my name.
63956         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63957
63958 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63959             Bruno Haible  <bruno@clisp.org>
63960
63961         * build-aux/install-reloc: Compile also c-ctype.c.
63962         * build-aux/relocatable.sh.in: New file.
63963         * doc/relocatable.texi: New file.
63964         * doc/relocatable-maint.texi: New file.
63965         * doc/gnulib.texi: Include relocatable-maint.texi.
63966         * lib/progreloc.c: Include unistd.h unconditionally.
63967         * lib/relocwrapper.c: Include unistd.h unconditionally.
63968         Include c-ctype.h.
63969         (add_dotbin): Use c_tolower.
63970         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63971         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63972         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63973         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63974         to m4/relocatable-lib.m4.
63975         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63976         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63977         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63978         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63979         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63980         * modules/relocatable: New file.
63981         * modules/relocatable-lib: New file.
63982         * modules/relocatable-script: New file.
63983
63984 2007-02-28  Bruno Haible  <bruno@clisp.org>
63985
63986         Import --enable-relocatable infrastructure.
63987         * build-aux/config.libpath: New file, from GNU gettext.
63988         * build-aux/install-reloc: New file, from GNU gettext.
63989         * build-aux/reloc-ldflags: New file, from GNU gettext.
63990         * lib/relocatable.h: New file, from GNU gettext.
63991         * lib/relocatable.c: New file, from GNU gettext.
63992         * lib/relocwrapper.c: New file, from GNU gettext.
63993         * m4/relocatable.m4: New file, from GNU gettext.
63994
63995 2007-02-28  Bruno Haible  <bruno@clisp.org>
63996
63997         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63998
63999         * modules/xreadlink: New file, from GNU gettext with modifications.
64000         * lib/xreadlink.c: New file, from GNU gettext.
64001         * lib/xreadlink.h: Add comments.
64002         (xreadlink): New declaration.
64003
64004         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64005         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64006         lib/xreadlink-with-size.c.
64007         (configure.ac): Remove gl_XREADLINK invocation.
64008         (Makefile.am): Augment lib_SOURCES.
64009         * m4/xreadlink.m4: Remove file.
64010         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64011         (xreadlink_with_size): Renamed from xreadink.
64012         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64013         * modules/canonicalize (Depends-on): Replace xreadlink with
64014         xreadlink-with-size.
64015         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64016
64017 2007-02-25  Jim Meyering  <jim@meyering.net>
64018
64019         * build-aux/announce-gen: When complaining about excess arguments,
64020         list them.
64021
64022 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * README: Document signed integer overflow situation more
64025         accurately.
64026
64027 2007-02-25  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64030         'a' or 'A' conversion.
64031
64032 2007-02-25  Bruno Haible  <bruno@clisp.org>
64033
64034         * modules/filename: Renamed from modules/pathname.
64035         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64036         lib/concatpath.c with lib/concat-filename.c.
64037         (Makefile.am): Update.
64038         (Include): Replace pathname.h with filename.h.
64039         * lib/filename.h: Renamed from lib/pathname.h.
64040         (concatenated_filename): Renamed from concatenated_pathname.
64041         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64042         (concatenated_filename): Renamed from concatenated_pathname.
64043         * lib/findprog.c: Include filename.h instead of pathname.h.
64044         (find_in_path): Update.
64045         * lib/javacomp.c: Include filename.h instead of pathname.h.
64046         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64047         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64048         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64049         is_oldgcj_14_13_usable, is_javac_usable): Update.
64050         * lib/javaexec.c: Include filename.h instead of pathname.h.
64051         (execute_java_class): Update.
64052         * modules/findprog: Update.
64053         * modules/javacomp: Update.
64054         * modules/javaexec: Update.
64055         * MODULES.html.sh (File system functions): Add 'filename', remove
64056         'pathname'.
64057
64058 2007-02-25  Bruno Haible  <bruno@clisp.org>
64059
64060         * modules/printf-frexpl-tests: New file.
64061         * tests/test-printf-frexpl.c: New file.
64062
64063         * modules/printf-frexpl: New file.
64064         * lib/printf-frexpl.h: New file.
64065         * lib/printf-frexpl.c: New file.
64066         * m4/printf-frexpl.m4: New file.
64067
64068 2007-02-25  Bruno Haible  <bruno@clisp.org>
64069
64070         * modules/printf-frexp-tests: New file.
64071         * tests/test-printf-frexp.c: New file.
64072
64073         * modules/printf-frexp: New file.
64074         * lib/printf-frexp.h: New file.
64075         * lib/printf-frexp.c: New file.
64076         * m4/printf-frexp.m4: New file.
64077
64078 2007-02-25  Bruno Haible  <bruno@clisp.org>
64079
64080         Assume automake >= 1.10 for the tests.
64081         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64082         * modules/arctwo-tests: Likewise.
64083         * modules/argp-tests: Likewise.
64084         * modules/avltree-list-tests: Likewise.
64085         * modules/avltree-oset-tests: Likewise.
64086         * modules/avltreehash-list-tests: Likewise.
64087         * modules/carray-list-tests: Likewise.
64088         * modules/crc-tests: Likewise.
64089         * modules/des-tests: Likewise.
64090         * modules/gc-arcfour-tests: Likewise.
64091         * modules/gc-arctwo-tests: Likewise.
64092         * modules/gc-des-tests: Likewise.
64093         * modules/gc-hmac-md5-tests: Likewise.
64094         * modules/gc-hmac-sha1-tests: Likewise.
64095         * modules/gc-md2-tests: Likewise.
64096         * modules/gc-md4-tests: Likewise.
64097         * modules/gc-md5-tests: Likewise.
64098         * modules/gc-pbkdf2-sha1-tests: Likewise.
64099         * modules/gc-rijndael-tests: Likewise.
64100         * modules/gc-sha1-tests: Likewise.
64101         * modules/gc-tests: Likewise.
64102         * modules/getaddrinfo-tests: Likewise.
64103         * modules/hmac-md5-tests: Likewise.
64104         * modules/hmac-sha1-tests: Likewise.
64105         * modules/linked-list-tests: Likewise.
64106         * modules/linkedhash-list-tests: Likewise.
64107         * modules/lock-tests: Likewise.
64108         * modules/md2-tests: Likewise.
64109         * modules/md4-tests: Likewise.
64110         * modules/md5-tests: Likewise.
64111         * modules/rbtree-list-tests: Likewise.
64112         * modules/rbtree-oset-tests: Likewise.
64113         * modules/rbtreehash-list-tests: Likewise.
64114         * modules/read-file-tests: Likewise.
64115         * modules/rijndael-tests: Likewise.
64116         * modules/stdint-tests: Likewise.
64117         * modules/tls-tests: Likewise.
64118
64119 2007-02-24  Bruno Haible  <bruno@clisp.org>
64120
64121         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64122         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64123         function; instead check whether isnan with a double argument links.
64124         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64125         function; instead check whether isnan with a 'long double' argument
64126         links.
64127         Reported by Eric Blake <ebb9@byu.net>.
64128
64129 2007-02-24  Bruno Haible  <bruno@clisp.org>
64130
64131         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64132         defined.
64133         * lib/isnanl.c: Remove all code. Just include isnan.c.
64134         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64135
64136 2007-02-25  Jim Meyering  <jim@meyering.net>
64137
64138         Avoid conflicting types for 'unsetenv' on FreeBSD.
64139         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64140         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64141         in stdlib.h.
64142
64143 2007-02-24  Bruno Haible  <bruno@clisp.org>
64144
64145         * modules/isnanl-nolibm-tests: New file.
64146         * tests/test-isnanl.c: New file.
64147
64148         * modules/isnanl-nolibm: New file.
64149         * lib/isnanl.h: New file.
64150         * lib/isnanl.c: New file.
64151         * m4/isnanl.m4: New file.
64152
64153 2007-02-24  Bruno Haible  <bruno@clisp.org>
64154
64155         * modules/isnan-nolibm-tests: New file.
64156         * tests/test-isnan.c: New file.
64157
64158         * modules/isnan-nolibm: New file.
64159         * lib/isnan.h: New file.
64160         * lib/isnan.c: New file.
64161         * m4/isnan.m4: New file.
64162
64163 2007-02-24  Bruno Haible  <bruno@clisp.org>
64164
64165         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64166         assume that an exponent fits in 20 bits.
64167
64168 2007-02-24  Jim Meyering  <jim@meyering.net>
64169
64170         * m4/regex.m4: Update the description of the configure-time option,
64171         --without-included-regex, to state accurately what the defaults are,
64172         and perhaps to give people an idea why using this option is risky.
64173
64174 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64177         loops on small arguments.  This attempts to avoid the problem
64178         Bruno Haible reported for AIX 4.3.2 in
64179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64180
64181 2007-02-23  Bruno Haible  <bruno@clisp.org>
64182
64183         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64184         Needed for help2man.
64185
64186 2007-02-23  Karl Berry  <karl@gnu.org>
64187
64188         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64189         exists, foo.h should be cvs-ignored, not committed.
64190
64191 2007-02-23  Eric Blake  <ebb9@byu.net>
64192
64193         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64194         * lib/stat-time.h (includes): Likewise.
64195         * lib/utimecmp.c (includes): Likewise.
64196         * lib/utimens.h (includes): Likewise.
64197         * lib/getdate.y (includes): Also include "timespec.h" for use
64198         internal to the module.
64199         * modules/utimens (Depends-on): Revert yesterday's patch.
64200         * modules/nanosleep (Depends-on): Add missing dependency.
64201
64202 2007-02-22  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/glob.c: Don't include getlogin_r.h.
64205
64206 2007-02-22  Jim Meyering  <jim@meyering.net>
64207
64208         * modules/utimens (Depends-on): Add timespec, required for
64209         utimens.h's inclusion of timespec.h.
64210
64211 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64214         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64215         Schwab in
64216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64217         I'll try to think of a better way to fix the Solaris problem.
64218
64219         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64220         like glibc; on Solaris 10, it fails with errno == EINVAL.
64221         POSIX says the behavior is unspecified if the first argument is NULL,
64222         so play it safe and never pass NULL to the system getcwd.
64223
64224 2007-02-21  Jim Meyering  <jim@meyering.net>
64225
64226         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64227         of gettimeofday.  It would conflict with the one now always
64228         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64229         an IRIX 6.5 build failure.
64230
64231 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         Minor fixups to port to Solaris 10 with Sun C 5.8.
64234         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64235         * modules/getcwd (Depends-on): Add dirfd.
64236         * lib/putenv.c (putenv): #undef it.
64237         (rpl_putenv): New decl.
64238         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64239
64240 2007-02-20  Bruno Haible  <bruno@clisp.org>
64241
64242         * modules/stdio-tests: New file.
64243         * tests/test-stdio.c: New file.
64244
64245         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64246         (Depends-on): Add stdio.
64247         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64248         (Include): Use <stdio.h> instead of vsnprintf.h.
64249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64250         HAVE_DECL_VSNPRINTF.
64251         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64252
64253         * modules/snprintf (Files): Remove lib/snprintf.h.
64254         (Depends-on): Add stdio.
64255         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64256         (Include): Use <stdio.h> instead of snprintf.h.
64257         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64258         HAVE_DECL_SNPRINTF.
64259         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64260         * lib/getaddrinfo.c: Likewise.
64261
64262         * modules/stdio: New file.
64263         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64264         * lib/snprintf.h: Remove file.
64265         * lib/vsnprintf.h: Remove file.
64266         * lib/.cppi-disable: Remove snprintf.h.
64267         * m4/stdio_h.m4: New file.
64268         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64269
64270 2007-02-20  Jim Meyering  <jim@meyering.net>
64271
64272         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64273         used by e.g., mingw.  From Bruno Haible.
64274
64275 2007-02-19  Bruno Haible  <bruno@clisp.org>
64276
64277         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64278         warnings.
64279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64280
64281 2007-02-19  Bruno Haible  <bruno@clisp.org>
64282
64283         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64284         from mingw users.
64285
64286 2007-02-19  Bruno Haible  <bruno@clisp.org>
64287
64288         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64289         warnings.
64290         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64291
64292 2007-02-19  Jim Meyering  <jim@meyering.net>
64293
64294         Don't use FD after a successful "fdopendir (fd)".
64295         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64296         Reset it by calling dirfd on the just-obtained DIR*.
64297
64298         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64299         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64300
64301 2007-02-18  Bruno Haible  <bruno@clisp.org>
64302
64303         * lib/readlink.c: Include <unistd.h>.
64304         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64305         HAVE_READLINK.
64306         * modules/readlink (Depends-on): Add unistd.
64307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64308         (Include): Add <unistd.h>.
64309
64310         * lib/getlogin_r.h: Remove file.
64311         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64312         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64313         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64314         HAVE_DECL_GETLOGIN_R.
64315         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64317         (Include): Use <unistd.h> instead of getlogin_r.h.
64318
64319         * lib/getcwd.h: Remove file.
64320         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64321         * lib/xgetcwd.c: Likewise.
64322         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64323         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64324         * modules/getcwd (Files): Remove lib/getcwd.h.
64325         (Depends-on): Add unistd.
64326         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64327         (Include): Use <unistd.h> instad of getcwd.h.
64328
64329         * lib/ftruncate.c: Include <unistd.h> first.
64330         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64331         Set HAVE_FTRUNCATE.
64332         * modules/ftruncate (Depends-on): Add unistd.
64333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64334
64335         * lib/fchdir.c: Include <unistd.h> first.
64336         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64338         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64339         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64340         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64341
64342         * lib/dup2.c: Include <unistd.h> first.
64343         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64344         HAVE_DUP2.
64345         * modules/dup2 (Depends-on): Add unistd.
64346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64347
64348         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64349         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64350         REPLACE_CHOWN. Don't define chown as a macro here.
64351         * modules/chown (Depends-on): Add unistd.
64352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64353
64354         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64355         Add definition for GL_LINK_WARNING.
64356         (chown, dup2): New declarations.
64357         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64358         link warning.
64359         (ftruncate): New declaration.
64360         (getcwd): New declaration, taken from old getcwd.h.
64361         (getlogin_r): New declaration, taken from old getlogin_r.h.
64362         (readlink): New declaration.
64363         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64364         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64365         (gl_PREREQ_UNISTD): Remove macro.
64366         (gl_UNISTD_MODULE_INDICATOR): New macro.
64367         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64368         many new variables. Don't set UNISTD_H.
64369         * modules/unistd (Description): Change.
64370         (Depends-on): Add link-warning.
64371         (configure.ac): Update.
64372         (Makefile.am): Create unistd.h always. Substitute many new variables
64373         into it.
64374
64375 2007-02-18  Bruno Haible  <bruno@clisp.org>
64376
64377         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64378         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64379         HAVE_GETSUBOPT.
64380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64381         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64382         * lib/getsubopt.h: Remove file.
64383         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64384         (Depends-on): Add stdlib.
64385         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64386         (Includes): Use <stdlib.h> instead of getsubopt.h.
64387         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64388         Set HAVE_GETSUBOPT.
64389         * lib/getsubopt.c: Don't include getsubopt.h.
64390
64391 2007-02-18  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/fchdir (Depends-on): Add dup2.
64394
64395 2007-02-18  Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/stdlib_.h: Handle glibc's special invocation convention
64398         specially.
64399
64400 2007-02-18  Bruno Haible  <bruno@clisp.org>
64401
64402         * modules/stdlib-tests: New file.
64403         * tests/test-stdlib.c: New file.
64404
64405         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64406         (Depends-on): Add stdlib.
64407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64408         (Includes): Use <stdlib.h> instead of mkstemp.h.
64409         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64410         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64411         * lib/mkstemp.c: Don't include mkstemp.h.
64412         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64413         * lib/stdlib--.h: Don't include mkstemp.h.
64414
64415         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64416         (Depends-on): Add stdlib.
64417         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64418         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64419         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64420         HAVE_MKDTEMP.
64421         * lib/mkdtemp.c: Don't include mkdtemp.h.
64422         * lib/clean-temp.c: Don't include mkdtemp.h.
64423
64424         * modules/exit (Files): Remove lib/exit.h.
64425         (Depends-on): Add stdlib.
64426         (Makefile.am): Remove lib_SOURCES.
64427         (Include): Use <stdlib.h> instead of exit.h.
64428         * lib/argmatch.c: Don't include exit.h.
64429         * lib/execute.c: Likewise.
64430         * lib/pagealign_alloc.c: Likewise.
64431         * lib/pipe.c: Likewise.
64432         * lib/wait-process.c: Likewise.
64433         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64434         * lib/exitfail.c: Likewise.
64435         * lib/savewd.c: Likewise.
64436         * lib/xsetenv.c: Likewise.
64437
64438         * modules/stdlib: New file.
64439         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64440         and extra comments about mkstemp().
64441         * lib/exit.h: Remove file.
64442         * lib/mkdtemp.h: Remove file.
64443         * lib/mkstemp.h: Remove file.
64444         * m4/stdlib_h.m4: New file.
64445         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64446
64447 2007-02-18  Bruno Haible  <bruno@clisp.org>
64448
64449         * modules/math-tests: New file.
64450         * tests/test-math.c: New file.
64451
64452         * modules/math: New file.
64453         * modules/mathl (Files): Remove lib/mathl.h.
64454         (Depends-on): Add math.
64455         (Makefile.am): Don't mention mathl.h.
64456         (Include): Use <math.h> instead of mathl.h.
64457         * lib/math_.h: New file.
64458         * lib/mathl.h: Remove file.
64459         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64460         mathl.h.
64461         * lib/asinl.c: Likewise.
64462         * lib/atanl.c: Likewise.
64463         * lib/ceill.c: Likewise.
64464         * lib/cosl.c: Likewise.
64465         * lib/expl.c: Likewise.
64466         * lib/floorl.c: Likewise.
64467         * lib/frexpl.c: Likewise.
64468         * lib/ldexpl.c: Likewise.
64469         * lib/logl.c: Likewise.
64470         * lib/sincosl.c: Likewise.
64471         * lib/sinl.c: Likewise.
64472         * lib/sqrtl.c: Likewise.
64473         * lib/tanl.c: Likewise.
64474         * lib/trigl.c: Likewise.
64475         * m4/math_h.m4: New file.
64476         * MODULES.html.sh (Mathematics): Add math.
64477
64478 2007-02-17  Bruno Haible  <bruno@clisp.org>
64479
64480         * modules/wctype-tests: New file.
64481         * tests/test-wctype.c: New file.
64482
64483         * modules/wchar-tests: New file.
64484         * tests/test-wchar.c: New file.
64485
64486         * modules/unistd-tests: New file.
64487         * tests/test-unistd.c: New file.
64488
64489         * modules/time-tests: New file.
64490         * tests/test-time.c: New file.
64491
64492         * modules/sysexits-tests: New file.
64493         * tests/test-sysexits.c: New file.
64494
64495         * modules/sys_time-tests: New file.
64496         * tests/test-sys_time.c: New file.
64497
64498         * modules/sys_stat-tests: New file.
64499         * tests/test-sys_stat.c: New file.
64500
64501         * modules/sys_socket-tests: New file.
64502         * tests/test-sys_socket.c: New file.
64503
64504         * modules/sys_select-tests: New file.
64505         * tests/test-sys_select.c: New file.
64506
64507         * modules/string-tests: New file.
64508         * tests/test-string.c: New file.
64509
64510         * modules/stdbool-tests: New file.
64511         * tests/test-stdbool.c: New file.
64512
64513         * modules/netinet_in-tests: New file.
64514         * tests/test-netinet_in.c: New file.
64515
64516         * modules/inttypes-tests: New file.
64517         * tests/test-inttypes.c: New file.
64518
64519         * modules/fcntl-tests: New file.
64520         * tests/test-fcntl.c: New file.
64521
64522         * modules/byteswap-tests: New file.
64523         * tests/test-byteswap.c: New file.
64524
64525         * modules/arpa_inet-tests: New file.
64526         * tests/test-arpa_inet.c: New file.
64527
64528 2007-02-17  Bruno Haible  <bruno@clisp.org>
64529
64530         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64531         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64532         if the corresponding module is not enabled. Emit link warnings if
64533         the function is used nevertheless.
64534         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64535         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64536         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64537         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64538         * modules/inttypes (Depends-on): Add link-warning.
64539         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64540         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64541         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64542         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64543         * modules/imaxdiv (configure.ac): Likewise.
64544         * modules/strtoimax (configure.ac): Likewise.
64545         * modules/strtoumax (configure.ac): Likewise.
64546
64547 2007-02-17  Bruno Haible  <bruno@clisp.org>
64548
64549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64550         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64551         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64552         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64553
64554 2007-02-17  Bruno Haible  <bruno@clisp.org>
64555
64556         * modules/link-warning: New file.
64557         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64558         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64559         * modules/string (Depends-on): Add link-warning.
64560         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64561         string.h.
64562         * MODULES.html.sh (Support for building libraries and executables): Add
64563         link-warning.
64564
64565 2007-02-17  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64568         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64569         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64570         long lines.
64571
64572 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64573             Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/tmpfile: New file.
64576         * lib/tmpfile.c: New file.
64577         * m4/tmpfile.m4: New file.
64578         * MODULES.html.sh (func_all_modules): New section "Input/output".
64579
64580 2007-02-15  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64583         (supports_delete_on_close): New function.
64584         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64585
64586 2007-02-14  Bruno Haible  <bruno@clisp.org>
64587
64588         * modules/mbspcasecmp-tests: New file.
64589         * tests/test-mbspcasecmp.sh: New file.
64590         * tests/test-mbspcasecmp.c: New file.
64591
64592         New module mbspcasecmp.
64593         * modules/mbspcasecmp: New file.
64594         * lib/mbspcasecmp.c: New file.
64595         * lib/string_.h (strncasecmp): Change warning message.
64596         (mbspcasecmp): New declaration.
64597         * m4/mbspcasecmp.m4: New file.
64598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64599         GNULIB_MBSPCASECMP.
64600         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64601         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64602
64603 2007-02-14  Bruno Haible  <bruno@clisp.org>
64604
64605         * modules/mbsncasecmp-tests: New file.
64606         * tests/test-mbsncasecmp.sh: New file.
64607         * tests/test-mbsncasecmp.c: New file.
64608
64609         New module mbsncasecmp.
64610         * modules/mbsncasecmp: New file.
64611         * lib/mbsncasecmp.c: New file.
64612         * lib/string_.h (mbsncasecmp): New declaration.
64613         * m4/mbsncasecmp.m4: New file.
64614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64615         GNULIB_MBSNCASECMP.
64616         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64617         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64618
64619 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64620
64621         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64622         Verify that it doesn't overlap with our flags.
64623         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64624         do not have the desired effect in multibyte locales; instead, use
64625         mbscasecmp.
64626         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64627         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64628         we don't require GNU fnmatch ourselves (if our users require it, they
64629         should do so explicitly).
64630
64631         Fix regex code so it doesn't rely on strcasecmp.
64632         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64633         Otherwise, include gnulib's langinfo.h.
64634         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64635         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64636         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64637         * modules/regex (FILES): Remove m4/codeset.m4.
64638         (Depends-on): Add localcharset.  Remove strcase.
64639
64640 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64641
64642         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64643         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64644
64645 2007-02-13  Bruno Haible  <bruno@clisp.org>
64646
64647         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64648         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64649
64650 2007-02-12  Bruno Haible  <bruno@clisp.org>
64651
64652         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64653         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64654         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64655         time warning rather than a link error.
64656
64657 2007-02-12  Bruno Haible  <bruno@clisp.org>
64658
64659         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64660         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64661         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64662
64663 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64664
64665         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64666         args, not 2.
64667
64668 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64669
64670         New module 'time', so that apps can include <time.h> as per
64671         POSIX and GNU instead of separate include files like time_r.h
64672         and timegm.h.  This implementation tries out a simpler approach
64673         for replacing decls in standard include files (as compared to
64674         the string module), somewhat as an experiment.
64675
64676         * config/srclist.txt: Comment out mktime.c for now.
64677         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64678         since it doesn't apply any more.  Use generic wording instead.
64679         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64680         'time'.
64681         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64682         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64683         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64684         Don't include <sys/types.h>; no longer needed since we assume C89.
64685         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64686         * lib/strftime.c: Likewise.
64687         * lib/time_r.c: Likewise.
64688         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64689         * lib/nanosleep.c: Include <time.h> first, to check interface.
64690         * lib/strptime.c: Likewise.
64691         * lib/time_r.c: Likewise.
64692         * lib/timegm.c: Likewise.
64693         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64694         needed.
64695         * lib/timegm.c: Don't include timegm.h; no longer needed.
64696         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64697         time.h now handles any problems in that area.
64698         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64699         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64700         that time.h defines struct timespec.
64701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64702         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64703         handles that.
64704         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64705         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64706         needed.  Set REPLACE_LOCALTIME.
64707         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64708         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64709         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64710         nanosleep; time_h.m4 now does that.  Don't require
64711         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64712         module handles this now.
64713         * modules/getdate (Depends-on): Remove timespec.  Add time.
64714         * modules/nanosleep (Depends-on): Likewise.
64715         * modules/stat-time (Depends-on): Likewise.
64716         * modules/nanosleep (Include): Include time.h, not timespec.h.
64717         * modules/strptime (Files): Remove lib/strptime.h.
64718         (Depends-on): Add extensions, time.
64719         (Include): Include time.h, not strptime.h.
64720         * modules/time_r (Files): Remove lib/time_r.h.
64721         (Depends-on): Add time.
64722         (Include): Include time.h, not time_r.h.
64723         * modules/timegm: Likewise.
64724         * modules/timespec (Description): Now does timespec-related decls
64725         of our own, instead of struct timespec itself.
64726         (Depends-on): Add time; remove extensions.
64727         (Maintainer): Add self.
64728         * modules/utimecmp (Depends-on): Add time; remove timespec.
64729         * modules/utimens (Depends-on): Likewise.
64730         * modules/xnanosleep (Depends-on): Likewise.
64731
64732 2007-02-11  Bruno Haible  <bruno@clisp.org>
64733
64734         * lib/c-strstr.c: Include allocsa.h.
64735         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64736         * lib/c-strcasestr.c: Include allocsa.h.
64737         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64738         * lib/strcasestr.c: Include allocsa.h.
64739         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64740         * lib/mbsstr.c: Include allocsa.h.
64741         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64742         allocsa/freesa instead of malloc/free.
64743         * lib/mbscasestr.c: Include allocsa.h.
64744         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64745         allocsa/freesa instead of malloc/free.
64746         * modules/c-strstr (Depends-on): Add allocsa.
64747         * modules/c-strcasestr (Depends-on): Likewise.
64748         * modules/strcasestr (Depends-on): Likewise.
64749         * modules/mbsstr (Depends-on): Likewise.
64750         * modules/mbscasestr (Depends-on): Likewise.
64751
64752 2007-02-11  Bruno Haible  <bruno@clisp.org>
64753
64754         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64755
64756         * modules/mbsspn-tests: New file.
64757         * tests/test-mbsspn.sh: New file.
64758         * tests/test-mbsspn.c: New file.
64759
64760 2007-02-11  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64763
64764         * modules/mbspbrk-tests: New file.
64765         * tests/test-mbspbrk.sh: New file.
64766         * tests/test-mbspbrk.c: New file.
64767
64768 2007-02-11  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64771         unneeded cast.
64772
64773         * modules/mbscspn-tests: New file.
64774         * tests/test-mbscspn.sh: New file.
64775         * tests/test-mbscspn.c: New file.
64776
64777 2007-02-11  Bruno Haible  <bruno@clisp.org>
64778
64779         * modules/mbscasecmp-tests: New file.
64780         * tests/test-mbscasecmp.sh: New file.
64781         * tests/test-mbscasecmp.c: New file.
64782
64783 2007-02-11  Bruno Haible  <bruno@clisp.org>
64784
64785         Ensure O(n) worst-case complexity of mbscasestr.
64786         * lib/mbscasestr.c: Include stdbool.h.
64787         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64788         functions.
64789         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64790         the bookkeeping indicates that it's worth it.
64791         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64792
64793         * modules/mbscasestr-tests: New file.
64794         * tests/test-mbscasestr1.c: New file.
64795         * tests/test-mbscasestr2.sh: New file.
64796         * tests/test-mbscasestr2.c: New file.
64797         * tests/test-mbscasestr3.sh: New file.
64798         * tests/test-mbscasestr3.c: New file.
64799         * tests/test-mbscasestr4.sh: New file.
64800         * tests/test-mbscasestr4.c: New file.
64801         * m4/locale-tr.m4: New file.
64802
64803 2007-02-11  Bruno Haible  <bruno@clisp.org>
64804
64805         Ensure O(n) worst-case complexity of mbsstr.
64806         * lib/mbsstr.c: Include stdbool.h.
64807         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64808         functions.
64809         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64810         bookkeeping indicates that it's worth it.
64811         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64812
64813         * modules/mbsstr-tests: New file.
64814         * tests/test-mbsstr1.c: New file.
64815         * tests/test-mbsstr2.sh: New file.
64816         * tests/test-mbsstr2.c: New file.
64817         * tests/test-mbsstr3.sh: New file.
64818         * tests/test-mbsstr3.c: New file.
64819         * m4/locale-fr.m4: New file.
64820
64821 2007-02-11  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/mbsrchr.c (mbsrchr): Fix bug.
64824
64825         * modules/mbsrchr-tests: New file.
64826         * tests/test-mbsrchr.sh: New file.
64827         * tests/test-mbsrchr.c: New file.
64828
64829 2007-02-11  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/mbschr.c (mbschr): Fix bug.
64832
64833         * modules/mbschr-tests: New file.
64834         * tests/test-mbschr.sh: New file.
64835         * tests/test-mbschr.c: New file.
64836         * m4/locale-zh.m4: New file.
64837
64838 2007-02-11  Bruno Haible  <bruno@clisp.org>
64839
64840         Support for copying multibyte string iterators.
64841         * lib/mbiter.h: Include <string.h>.
64842         (mbiter_multi_copy): New function.
64843         (mbi_copy): New macro.
64844         * lib/mbuiter.h: Include <string.h>.
64845         (mbuiter_multi_copy): New function.
64846         (mbui_copy): New macro.
64847
64848 2007-02-11  Bruno Haible  <bruno@clisp.org>
64849
64850         New module mbslen.
64851         * modules/mbslen: New file.
64852         * lib/mbslen.c: New file.
64853         * lib/string_.h (mbslen): New declaration.
64854         * m4/mbslen.m4: New file.
64855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64856         GNULIB_MBSLEN.
64857         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64858         * MODULES.html.sh (Internationalization functions): Add mbslen.
64859
64860 2007-02-11  Bruno Haible  <bruno@clisp.org>
64861
64862         Ensure O(n) worst-case complexity of strcasestr substitute.
64863         * lib/strcasestr.c: Include stdbool.h.
64864         (knuth_morris_pratt): New function.
64865         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64866         bookkeeping indicates that it's worth it.
64867         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64868
64869         * modules/strcasestr-tests: New file.
64870         * tests/test-strcasestr.c: New file.
64871
64872 2007-02-11  Bruno Haible  <bruno@clisp.org>
64873
64874         Ensure O(n) worst-case complexity of c_strcasestr.
64875         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64876         (knuth_morris_pratt): New function.
64877         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64878         the bookkeeping indicates that it's worth it.
64879         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64880
64881         * modules/c-strcasestr-tests: New file.
64882         * tests/test-c-strcasestr.c: New file.
64883
64884 2007-02-11  Bruno Haible  <bruno@clisp.org>
64885
64886         Ensure O(n) worst-case complexity of c_strstr.
64887         * lib/c-strstr.c: Include stdbool.h, string.h.
64888         (knuth_morris_pratt): New function.
64889         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64890         bookkeeping indicates that it's worth it.
64891         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64892
64893         * lib/c-strstr.c: Complete rewrite for maintainability.
64894
64895         * modules/c-strstr-tests: New file.
64896         * tests/test-c-strstr.c: New file.
64897
64898 2007-02-11  Bruno Haible  <bruno@clisp.org>
64899
64900         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64901         5.2.1 and earlier, whereby \055 was treated just like the range
64902         delimiter '-'.
64903         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64904
64905 2007-02-08  Bruno Haible  <bruno@clisp.org>
64906
64907         * modules/regex (Depends-on): Add stdbool.
64908         Reported by Dalibor Topic <robilad@kaffe.org>.
64909
64910 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64911
64912         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64913         Prefer returning from main to exiting from it.
64914         Remove unnecessary parens after sizeof.
64915
64916 2007-02-05  Bruno Haible  <bruno@clisp.org>
64917
64918         New module mbssep.
64919         * modules/mbssep: New file.
64920         * lib/mbssep.c: New file.
64921         * lib/string_.h (strsep): Add a conditional link warning.
64922         (mbssep): New declaration.
64923         * m4/mbssep.m4: New file.
64924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64925         GNULIB_MBSSEP.
64926         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64927         * MODULES.html.sh (Internationalization functions): Add mbssep.
64928
64929 2007-02-05  Bruno Haible  <bruno@clisp.org>
64930
64931         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64932         Optimize search in case of 1 delimiter.
64933
64934 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64935
64936         * lib/acl.h: Include sys/types.h before sys/acl.h.
64937
64938 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64939
64940         Merge upstream fix for glibc bugzilla #3957:
64941
64942         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64943
64944         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64945         bit for RE_HAT_LISTS_NOT_NEWLINE.
64946         (build_charclass_op): Remove bogus comment.
64947
64948 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64949
64950         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64951
64952 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64955         * lib/memmem.c [!defined _LIBC]: Include config.h.
64956
64957 2007-02-04  Bruno Haible  <bruno@clisp.org>
64958
64959         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64960         warning message.
64961
64962 2007-02-04  Bruno Haible  <bruno@clisp.org>
64963
64964         New module mbstok_r.
64965         * modules/mbstok_r: New file.
64966         * lib/mbstok_r.c: New file.
64967         * lib/string_.h (strtok_r): Change argument names to match the
64968         comments. Add a conditional link warning.
64969         (mbstok_r): New declaration.
64970         * m4/mbstok_r.m4: New file.
64971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64972         GNULIB_MBSTOK_R.
64973         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64974         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64975
64976 2007-02-04  Bruno Haible  <bruno@clisp.org>
64977
64978         New module mbsspn.
64979         * modules/mbsspn: New file.
64980         * lib/mbsspn.c: New file.
64981         * lib/string_.h (strspn): Add a conditional link warning.
64982         (mbsspn): New declaration.
64983         * m4/mbsspn.m4: New file.
64984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64985         GNULIB_MBSSPN.
64986         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64987         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64988
64989 2007-02-04  Bruno Haible  <bruno@clisp.org>
64990
64991         New module mbspbrk.
64992         * modules/mbspbrk: New file.
64993         * lib/mbspbrk.c: New file.
64994         * lib/string_.h (strpbrk): Add a conditional link warning.
64995         (mbspbrk): New declaration.
64996         * m4/mbspbrk.m4: New file.
64997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64998         GNULIB_MBSPBRK.
64999         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65000         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65001
65002 2007-02-04  Bruno Haible  <bruno@clisp.org>
65003
65004         New module mbscspn.
65005         * modules/mbscspn: New file.
65006         * lib/mbscspn.c: New file.
65007         * lib/string_.h (strcspn): Add a conditional link warning.
65008         (mbscspn): New declaration.
65009         * m4/mbscspn.m4: New file.
65010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65011         GNULIB_MBSCSPN.
65012         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65013         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65014
65015 2007-02-04  Bruno Haible  <bruno@clisp.org>
65016
65017         New module mbscasestr, reduced goal of strcasestr.
65018         * modules/mbscasestr: New file.
65019         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65020         (mbscasestr): Renamed from strcasestr.
65021         * lib/strcasestr.c: Don't include mbuiter.h.
65022         (strcasestr): Remove support for multibyte locales.
65023         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65024         Change the conditional link warning.
65025         (mbscasestr): New declaration.
65026         * m4/mbscasestr.m4: New file.
65027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65028         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65029         REPLACE_STRCASESTR.
65030         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65032         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65033         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65034         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65035         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65036         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65037         (Depends-on): Remove mbuiter.
65038         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65039
65040 2007-02-04  Bruno Haible  <bruno@clisp.org>
65041
65042         Simplify handling of strncasecmp.
65043         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65044         the conditional link warning.
65045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65046         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65047         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65048         * modules/strcase (configure.ac): Don't invoke
65049         gl_STRING_MODULE_INDICATOR.
65050         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65051
65052 2007-02-04  Bruno Haible  <bruno@clisp.org>
65053
65054         New module mbscasecmp, reduced goal of strcasecmp.
65055         * modules/mbscasecmp: New file.
65056         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65057         (mbscasecmp): Renamed from strcasecmp.
65058         * lib/strcasecmp.c: Don't include mbuiter.h.
65059         (strcasecmp): Remove support for multibyte locales.
65060         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65061         Change the conditional link warning.
65062         (mbscasecmp): New declaration.
65063         * m4/mbscasecmp.m4: New file.
65064         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65065         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65066         REPLACE_STRCASECMP.
65067         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65069         GNULIB_MBSCASECMP.
65070         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65071         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65072         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65073         (Depends-on): Remove mbuiter.
65074         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65075
65076 2007-02-04  Bruno Haible  <bruno@clisp.org>
65077
65078         New module mbsstr. Remove module strstr.
65079         * modules/mbsstr: New file.
65080         * modules/strstr: Remove file.
65081         * lib/mbsstr.c: Renamed from lib/strstr.c.
65082         (mbsstr): Renamed from strstr.
65083         * lib/string_.h (strstr): Remove declaration. Change the conditional
65084         link warning.
65085         (mbsstr): New declaration.
65086         * m4/mbsstr.m4: New file.
65087         * m4/strstr.m4: Remove file.
65088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65089         REPLACE_STRSTR.
65090         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65091         Don't initialize GNULIB_STRSTR.
65092         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65093         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65094         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65095         (Support for systems lacking ANSI C 89): Remove strstr.
65096
65097 2007-02-04  Bruno Haible  <bruno@clisp.org>
65098
65099         New module mbsrchr.
65100         * modules/mbsrchr: New file.
65101         * lib/mbsrchr.c: New file.
65102         * lib/string_.h (strrchr): Add a conditional link warning.
65103         (mbsrchr): New declaration.
65104         * m4/mbsrchr.m4: New file.
65105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65106         GNULIB_MBSRCHR.
65107         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65108         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65109
65110 2007-02-04  Bruno Haible  <bruno@clisp.org>
65111
65112         New module mbschr.
65113         * modules/mbschr: New file.
65114         * lib/mbschr.c: New file.
65115         * lib/string_.h (strchr): Add a conditional link warning.
65116         (mbschr): New declaration.
65117         * m4/mbschr.m4: New file.
65118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65119         GNULIB_MBSCHR.
65120         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65121         * MODULES.html.sh (Internationalization functions): Add mbschr.
65122
65123 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65126
65127         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65128
65129 2007-02-04  Bruno Haible  <bruno@clisp.org>
65130
65131         New module description section 'configure.ac-early'.
65132         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65133         (func_get_autoconf_early_snippet): New function.
65134         (func_import, func_create_testdir): Use it. Remove special cases for
65135         modules 'extensions' and 'lock'.
65136         * modules/extensions (configure.ac-early): Require
65137         gl_USE_SYSTEM_EXTENSIONS.
65138         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65139
65140 2007-02-04  Bruno Haible  <bruno@clisp.org>
65141
65142         Make use of gcj-4.3's -fsource and -ftarget option.
65143         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65144         and if so try the options -fsource and -ftarget.
65145         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65146         source_version, ftarget_option, target_version arguments.
65147         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65148         (is_envjavac_oldgcj_14_14_usable): Renamed from
65149         is_envjavac_gcj_14_14_usable.
65150         (is_envjavac_oldgcj_14_13_usable): Renamed from
65151         is_envjavac_gcj_14_13_usable.
65152         (is_gcj_present): Update.
65153         (is_gcj_43, is_gcj43_usable): New functions.
65154         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65155         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65156         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65157         try the options -fsource and -ftarget.
65158
65159 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65162         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65163         larger value.
65164
65165 2007-02-03  Jim Meyering  <jim@meyering.net>
65166
65167         Give tools a better chance to allocate space for very large buffers.
65168         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65169
65170         Make pwd and readlink work also when run with an unreadable parent dir
65171         on systems with openat support.
65172         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65173         provided getcwd function, even when we have openat support.
65174         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65175
65176 2007-02-02  Bruno Haible  <bruno@clisp.org>
65177
65178         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65179         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65180         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65181         portability problems if one of these functions is only used on specific
65182         platforms.
65183         Reported by Paul Eggert.
65184
65185 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65186
65187         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65188         is causing more trouble than it's curing.
65189         * lib/regex_internal.h (__mempcpy): Remove.
65190         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65191         (and make the code a tad smaller to boot).
65192         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65193
65194 2007-02-02  Jim Meyering  <jim@meyering.net>
65195
65196         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65197         section, not in the Makefile.am: one.
65198
65199 2007-02-02  Eric Blake  <ebb9@byu.net>
65200
65201         * lib/strchrnul.c: Always include config.h first.
65202
65203         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65204         gnulib strstr is not necessary here.
65205
65206 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65207
65208         * m4/socklen.m4: Fix typo.
65209
65210 2007-02-02  Eric Blake  <ebb9@byu.net>
65211
65212         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65213         * modules/netinet_in (Makefile.am): Likewise.
65214
65215 2007-02-01  Bruno Haible  <bruno@clisp.org>
65216
65217         * lib/string_.h (GL_LINK_WARNING): New macro.
65218         (strcasecmp, strstr, strcasestr): If provided by the system,
65219         conditionally define as a macro that leads to a warning instead of to
65220         an error.
65221         (strncasecmp): Conditionally define as a macro that leads to a warning.
65222
65223 2007-02-01  Karl Berry  <karl@gnu.org>
65224
65225         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65226
65227 2007-02-01  Bruno Haible  <bruno@clisp.org>
65228
65229         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65230         renamings.
65231
65232 2007-02-01  Eric Blake  <ebb9@byu.net>
65233
65234         * modules/regex (Depends-on): Revert dependence on mempcpy.
65235         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65236         module's definition of mempcpy.
65237         Reported by Paul Eggert.
65238
65239 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65242         the symbol XYZ before redefining it.  This fixes a problem with
65243         programs that don't use XYZ, when compiled on systems that define
65244         XYZ to something else.
65245
65246 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65249         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65250         writeable to group or other and (2) is intended to have a special
65251         mode bit that is set or cleared.  In such a case, the directory
65252         should be neither group- nor other-writeable until the special
65253         mode bits are right.
65254
65255 2007-01-31  Eric Blake  <ebb9@byu.net>
65256
65257         * modules/mountlist (Depends-on): Add strstr.
65258
65259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65260         bug.
65261         * modules/string (Makefile.am): Remove redundant replacement.
65262         * modules/regex (Depends-on): Add mempcpy.
65263
65264 2007-01-31  Bruno Haible  <bruno@clisp.org>
65265
65266         New module description field 'Link'.
65267         * gnulib-tool (func_usage): Document --extract-link-directive.
65268         (sed_extract_prog): Recognize 'Link' directive.
65269         (func_get_link_directive): New function.
65270         (func_import): Show summary of link directives.
65271         Handle --extract-link-directive option.
65272         * modules/acl (Link): New section.
65273         * modules/clock-time (Link): New section.
65274         * modules/euidaccess (Link): New section.
65275         * modules/gettext (Link): New section.
65276         * modules/iconv (Link): New section.
65277         * modules/lock (Link): New section.
65278         * modules/nanosleep (Link): New section.
65279         * modules/readline (Link): New section.
65280
65281 2007-01-27  Bruno Haible  <bruno@clisp.org>
65282
65283         Enforce the use of gnulib modules for unportable <string.h> functions.
65284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65285         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65286         (gl_HEADER_STRING_H_BODY): Require it.
65287         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65288         the symbol XYZ to one that gives a link error.
65289         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65290         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65291         * modules/mempcpy (configure.ac): Likewise.
65292         * modules/memrchr (configure.ac): Likewise.
65293         * modules/stpcpy (configure.ac): Likewise.
65294         * modules/stpncpy (configure.ac): Likewise.
65295         * modules/strcase (configure.ac): Likewise.
65296         * modules/strcasestr (configure.ac): Likewise.
65297         * modules/strchrnul (configure.ac): Likewise.
65298         * modules/strdup (configure.ac): Likewise.
65299         * modules/strndup (configure.ac): Likewise.
65300         * modules/strnlen (configure.ac): Likewise.
65301         * modules/strpbrk (configure.ac): Likewise.
65302         * modules/strsep (configure.ac): Likewise.
65303         * modules/strstr (configure.ac): Likewise.
65304         * modules/strtok_r (configure.ac): Likewise.
65305
65306 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65307
65308         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65309
65310 2007-01-30  Jim Meyering  <jim@meyering.net>
65311
65312         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65313
65314 2007-01-29  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65317         * lib/execute.c: Likewise.
65318         * lib/pipe.c: Likewise.
65319         * lib/printf-args.h: Likewise.
65320         * lib/printf-args.c: Likewise.
65321         * lib/printf-parse.c: Likewise.
65322         * lib/vasnprintf.c: Likewise.
65323
65324 2007-01-29  Eric Blake  <ebb9@byu.net>
65325
65326         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65327         declaration.
65328
65329 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65330
65331         * lib/strptime.h (strptime): Use 'restrict' for args where
65332         POSIX requires this.
65333         * lib/strptime.c (strptime): Likewise.
65334         Change license notice from LGPL to GPL, since gnulib-tool will
65335         change this as needed.
65336         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65337         defined.
65338         Include "strptime.h" first, to check interface.
65339         Do not #undef _LIBC and _NL_CURRENT.
65340         Do not include <stdlib.h>; no longer needed.
65341         Include "time_r.h" and declare ptime_locale_status
65342         only if _LIBC is not defined.
65343         (__P): Remove unused macro.
65344         (match_string): Bring back glibc version, but use it only if _LIBC
65345         is defined.
65346         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65347         Remove unnecessary assertion and abort() call.
65348         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65349         * m4/strptime.m4: Fix serial number comment.
65350         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65351         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65352         (Depends-on): Add time_r.
65353
65354 2007-01-29  Bruno Haible  <bruno@clisp.org>
65355
65356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65357         strptime.
65358         * modules/strptime (Depends-on): Add stdbool.
65359         * lib/strptime.h: Include <time.h> always. Add comments.
65360
65361 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65362
65363         * modules/strptime: New file.
65364         * lib/strptime.h: New file.
65365         * lib/strptime.c: New file.
65366         * m4/strptime.m4: New file.
65367
65368 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * MODULES.html.sh: New module mpsort.
65371         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65372
65373         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65374         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65375         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65376         All uses changed.
65377         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65378         All uses changed.
65379         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65380         to _Restrict_.
65381         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65382         the parameter matches the prototype.
65383
65384 2007-01-28  Jim Meyering  <jim@meyering.net>
65385
65386         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65387         sys/time.h here, reverting that part of the previous patch:
65388         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65389
65390 2007-01-28  Bruno Haible  <bruno@clisp.org>
65391
65392         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65393         value of $(SYS_TIME_H).
65394         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65395         remove it conditionally, too. [added by Jim Meyering]
65396         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65397         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65398         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65399         GETTIMEOFDAY_REPLACEMENT to 1.
65400
65401 2007-01-28  Bruno Haible  <bruno@clisp.org>
65402
65403         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65404         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65406         Set UNISTD_H instead of UNISTD_H2.
65407         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65408
65409 2007-01-28  Bruno Haible  <bruno@clisp.org>
65410
65411         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65412         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65413
65414 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65415
65416         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65417         (func_create_testdir): Ensure C locale for `grep' and `tr'
65418         character ranges.
65419         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65420         ACLOCAL_AMFLAGS parsing state machine.
65421
65422 2007-01-27  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/unistr/base: Update.
65425
65426 2007-01-27  Bruno Haible  <bruno@clisp.org>
65427
65428         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65429         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65430         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65431         modules/unistr/u32-mbtouc.
65432         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65433         * lib/unistr.h: Update.
65434         * lib/linebreak.c: Update.
65435         * modules/unistr/u32-mbtouc: Renamed from
65436         modules/unistr/u32-mbtouc-safe.
65437         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65438         * lib/unistr.h: Update.
65439         * lib/unistr/u32-to-u8.c: Update.
65440         * lib/unistr/u32-to-u16.c: Update.
65441
65442 2007-01-27  Bruno Haible  <bruno@clisp.org>
65443
65444         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65445         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65446         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65447         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65448         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65449         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65450         modules/unistr/u16-mbtouc.
65451         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65452         * lib/unistr.h: Update.
65453         * lib/linebreak.c: Update.
65454         * modules/linebreak: Update.
65455         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65456         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65457         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65458         * modules/unistr/u16-mbtouc: Renamed from
65459         modules/unistr/u16-mbtouc-safe.
65460         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65461         * lib/unistr.h: Update.
65462         * lib/unistr/u16-to-u8.c: Update.
65463         * modules/unistr/u16-to-u8: Update.
65464         * lib/unistr/u16-to-u32.c: Update.
65465         * modules/unistr/u16-to-u32: Update.
65466
65467 2007-01-27  Bruno Haible  <bruno@clisp.org>
65468
65469         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65470         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65471         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65472         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65473         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65474         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65475         modules/unistr/u8-mbtouc.
65476         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65477         * lib/unistr.h: Update.
65478         * lib/striconveh.c: Update.
65479         * modules/striconveh: Update.
65480         * lib/linebreak.c: Update.
65481         * modules/linebreak: Update.
65482         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65483         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65484         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65485         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65486         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65487         * lib/unistr.h: Update.
65488         * lib/striconveh.c: Update.
65489         * modules/striconveh: Update.
65490         * lib/unistr/u8-to-u16.c: Update.
65491         * modules/unistr/u8-to-u16: Update.
65492         * lib/unistr/u8-to-u32.c: Update.
65493         * modules/unistr/u8-to-u32: Update.
65494
65495 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65496
65497         Sync from Libtool.
65498         * lib/argz.c: Do not include strings.h nor memory.h, include
65499         string.h unconditionally.  Patch by Simon Josefsson.
65500
65501 2007-01-27  Bruno Haible  <bruno@clisp.org>
65502
65503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65504         from gl_HEADER_STRING_H_BODY.
65505         (gl_HEADER_STRING_H_BODY): Require it.
65506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65507         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65508         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65509         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65510         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65511         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65513         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65514         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65515         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65517         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65518         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65519         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65520         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65521
65522 2007-01-27  Bruno Haible  <bruno@clisp.org>
65523
65524         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65525         check_PROGRAMS into noinst_PROGRAMS.
65526         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65527         check_PROGRAMS in this case.
65528         (func_import): Set for_test to false.
65529         (func_create_testdir): Set for_test to true.
65530
65531 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65532             Bruno Haible  <bruno@clisp.org>
65533
65534         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65535         (Depends-on): Add string.
65536         (Includes): Use <string.h> instead of strcasestr.h.
65537         * modules/string (Makefile.am): Also substitute the value of
65538         REPLACE_STRCASESTR.
65539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65540         assume strcasestr is declared in <string.h> not <strings.h>. Also
65541         set REPLACE_STRCASESTR.
65542         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65543         REPLACE_STRCASESTR.
65544         * lib/strcasestr.h: Remove file.
65545         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65546         * lib/string_.h (strcasestr): New declaration.
65547
65548 2007-01-27  Bruno Haible  <bruno@clisp.org>
65549
65550         * lib/string_.h: Use 'extern'.
65551
65552 2007-01-27  Jim Meyering  <jim@meyering.net>
65553
65554         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65555         of set-but-not-used local, "q".
65556
65557         * lib/mempcpy.c: Include <config.h> before <string.h>.
65558         This fixes a compilation error on HP-UX, due to the system's
65559         "restrict"-using mempcpy prototype.
65560
65561 2007-01-26  Bruno Haible  <bruno@clisp.org>
65562
65563         Small optimization.
65564         * lib/javacomp.c: Include c-strstr.h.
65565          (is_envjavac_gcj): Use c_strstr instead of strstr.
65566         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65567
65568 2007-01-26  Bruno Haible  <bruno@clisp.org>
65569
65570         * MODULES.html.sh (Unicode string functions): Add the new modules.
65571
65572         * modules/uniconv/u32-strconv-to-locale: New file.
65573         * lib/uniconv/u32-strconv-to-locale.c: New file.
65574
65575         * modules/uniconv/u16-strconv-to-locale: New file.
65576         * lib/uniconv/u16-strconv-to-locale.c: New file.
65577
65578         * modules/uniconv/u8-strconv-to-locale: New file.
65579         * lib/uniconv/u8-strconv-to-locale.c: New file.
65580
65581         * modules/uniconv/u32-strconv-from-locale: New file.
65582         * lib/uniconv/u32-strconv-from-locale.c: New file.
65583
65584         * modules/uniconv/u16-strconv-from-locale: New file.
65585         * lib/uniconv/u16-strconv-from-locale.c: New file.
65586
65587         * modules/uniconv/u8-strconv-from-locale: New file.
65588         * lib/uniconv/u8-strconv-from-locale.c: New file.
65589
65590         * modules/uniconv/u32-strconv-to-enc: New file.
65591         * lib/uniconv/u32-strconv-to-enc.c: New file.
65592         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65593         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65594
65595         * modules/uniconv/u16-strconv-to-enc: New file.
65596         * lib/uniconv/u16-strconv-to-enc.c: New file.
65597         * lib/uniconv/u-strconv-to-enc.h: New file.
65598         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65599         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65600
65601         * modules/uniconv/u8-strconv-to-enc: New file.
65602         * lib/uniconv/u8-strconv-to-enc.c: New file.
65603         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65604         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65605
65606         * modules/uniconv/u32-strconv-from-enc: New file.
65607         * lib/uniconv/u32-strconv-from-enc.c: New file.
65608         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65609         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65610
65611         * modules/uniconv/u16-strconv-from-enc: New file.
65612         * lib/uniconv/u16-strconv-from-enc.c: New file.
65613         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65614         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65615
65616         * modules/uniconv/u8-strconv-from-enc: New file.
65617         * lib/uniconv/u8-strconv-from-enc.c: New file.
65618         * lib/uniconv/u-strconv-from-enc.h: New file.
65619         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65620         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65621
65622         * modules/uniconv/u32-conv-from-enc: New file.
65623         * lib/uniconv/u32-conv-from-enc.c: New file.
65624         * modules/uniconv/u32-conv-from-enc-tests: New file.
65625         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65626
65627         * modules/uniconv/u16-conv-from-enc: New file.
65628         * lib/uniconv/u16-conv-from-enc.c: New file.
65629         * lib/uniconv/u-conv-from-enc.h: New file.
65630         * modules/uniconv/u16-conv-from-enc-tests: New file.
65631         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65632
65633         * modules/uniconv/u8-conv-from-enc: New file.
65634         * lib/uniconv/u8-conv-from-enc.c: New file.
65635         * modules/uniconv/u8-conv-from-enc-tests: New file.
65636         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65637
65638         * modules/uniconv/base: New file.
65639         * lib/uniconv.h: New file.
65640
65641 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65642
65643         * doc/gnulib-tool.texi (Initial import): Update to match current
65644         behavior with strdup module.
65645         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65646         * lib/memmem.h: Remove; all uses removed.  This is now done
65647         by <string.h>.
65648         * lib/mempcpy.h: Likewise.
65649         * lib/memrchr.h: Likewise.
65650         * lib/stpcpy.h: Likewise.
65651         * lib/stpncpy.h: Likewise.
65652         * lib/strcase.h: Likewise.
65653         * lib/strchrnul.h: Likewise.
65654         * lib/strdup.h: Likewise.
65655         * lib/strndup.h: Likewise.
65656         * lib/strnlen.h: Likewise.
65657         * lib/strpbrk.h: Likewise.
65658         * lib/strsep.h: Likewise.
65659         * lib/strstr.h: Likewise.
65660         * lib/strtok_r.h: Likewise.
65661         * lib/string_.h: New file.
65662         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65663         Rely on <string.h> instead.
65664         * lib/canon-host.c: Likewise.
65665         * lib/chdir-long.c: Likewise.
65666         * lib/concatpath.c: Likewise.
65667         * lib/exclude.c: Likewise.
65668         * lib/fchdir.c: Likewise.
65669         * lib/getaddrinfo.c: Likewise.
65670         * lib/getcwd.c: Likewise.
65671         * lib/getsubopt.c: Likewise.
65672         * lib/glob.c: Likewise.
65673         * lib/hard-locale.c: Likewise.
65674         * lib/iconvme.c: Likewise.
65675         * lib/javacomp.c: Likewise.
65676         * lib/mempcpy.c: Likewise.
65677         * lib/memrchr.c: Likewise.
65678         * lib/regex_internal.h: Likewise.
65679         * lib/stpncpy.c: Likewise.
65680         * lib/strcasecmp.c: Likewise.
65681         * lib/strchrnul.c: Likewise.
65682         * lib/strdup.c: Likewise.
65683         * lib/striconv.c: Likewise.
65684         * lib/striconveh.c: Likewise.
65685         * lib/striconveha.c: Likewise.
65686         * lib/strncasecmp.c: Likewise.
65687         * lib/strndup.c: Likewise.
65688         * lib/strnlen.c: Likewise.
65689         * lib/strsep.c: Likewise.
65690         * lib/strstr.c: Likewise.
65691         * lib/strtok_r.c: Likewise.
65692         * lib/userspec.c: Likewise.
65693         * lib/w32spawn.h: Likewise.
65694         * lib/xstrndup.c: Likewise.
65695         * lib/mountlist.c (strstr): Remove decl.
65696         * m4/string_h.m4: New file.
65697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65698         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65699         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65700         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65701         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65702         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65703         Set REPLACE_STRCASECMP if necessary.
65704         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65705         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65706         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65707         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65708         HAVE_DECL_STRDUP if necessary.
65709         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65710         since gl_FUNC_STRNDUP does that now.
65711         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65712         Check for decl here...
65713         (gl_PREREQ_STRNLEN): ... not here.
65714         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65715         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65716         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65717         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65718         necessary.
65719         * modules/string: New file.
65720         * modules/memmem (Files): Remove special-purpose include file.
65721         (Depends-on): Add string.
65722         (Include): Include <string.h>, not the removed file.
65723         * modules/mempcpy: Likewise.
65724         * modules/memrchr: Likewise.
65725         * modules/stpcpy: Likewise.
65726         * modules/stpncpy: Likewise.
65727         * modules/strcase: Likewise.
65728         * modules/strchrnul: Likewise.
65729         * modules/strdup: Likewise.
65730         * modules/strndup: Likewise.
65731         * modules/strnlen: Likewise.
65732         * modules/strpbrk: Likewise.
65733         * modules/strsep: Likewise.
65734         * modules/strstr: Likewise.
65735         * modules/strtok_r: Likewise.
65736         * tests/test-dirname.c: Don't include "strdup.h", since
65737         <string.h> now suffices.
65738         * tests/test-memmem.c: Don't include "memmem.h", since
65739         <string.h> now suffices.
65740
65741 2007-01-25  Bruno Haible  <bruno@clisp.org>
65742
65743         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65744         *resultp is 0.
65745
65746         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65747         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65748         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65749         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65750
65751         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65752         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65753         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65754         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65755         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65756         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65757
65758 2007-01-24  Bruno Haible  <bruno@clisp.org>
65759
65760         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65762         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65763         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65764         gl_FUNC_FTS_CORE.
65765         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65766         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65767         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65768         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65769         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65770         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65771         gl_FUNC_FCHOWNAT.
65772         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65773         gl_FUNC_STRFTIME.
65774         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65775         Reported by Ralf Wildenhues.
65776
65777 2007-01-24  Bruno Haible  <bruno@clisp.org>
65778
65779         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65780         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65781         gl_GETADDRINFO.
65782         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65783         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65784         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65785
65786 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65789         Don't use 'exit'; just return from 'main'.
65790         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65791
65792         * lib/fnmatch_.h: Readjust white space and comments to match
65793         glibc, to avoid spurious diffs.
65794
65795 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65798         2004-12-01 change by Jakub Jelinek, since this code won't compile
65799         if !LIBC.  Problem reported by Bob Proulx.
65800
65801 2007-01-23  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/striconveh.c: Include c-strcaseeq.h.
65804         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65805         * modules/striconveh (Depends-on): Add c-strcaseeq.
65806
65807 2007-01-23  Bruno Haible  <bruno@clisp.org>
65808
65809         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65810
65811         * modules/c-strcaseeq: New file.
65812         * lib/c-strcaseeq.h: New file.
65813
65814         * modules/streq: New file.
65815         * lib/streq.h: New file.
65816
65817 2007-01-23  Bruno Haible  <bruno@clisp.org>
65818
65819         * modules/striconveha-tests: New file.
65820         * tests/test-striconveha.c: New file.
65821
65822         * lib/striconveha.h: Include <stdbool.h>.
65823         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65824         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65825         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65826         (mem_iconveha): New function.
65827         (str_iconveha_notranslit): Renamed from str_iconveha.
65828         (str_iconveha): New function.
65829         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65830         c-strcase.
65831
65832 2007-01-23  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65835         encodings without forgiving before trying any encoding with handler.
65836         (str_iconveha): Try all encodings without forgiving before trying any
65837         encoding with handler.
65838
65839 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         Import the following changes from libc.
65842
65843         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65844
65845         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65846
65847         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65848
65849         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65850         normal_bracket label.
65851
65852         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65853
65854         [BZ #361]
65855         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65856         to normal_bracket after fetching the next character.
65857
65858 2007-01-22  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65861         argument.
65862         * lib/striconveh.c (iconv_carefully_1): New function.
65863         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65864         argument.
65865         (str_cd_iconveh): Update.
65866         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65867         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65868         * tests/test-striconveh.c (MAGIC): New macro.
65869         (new_offsets): New function.
65870         (main): Test call with and without offsets.
65871
65872 2007-01-22  Bruno Haible  <bruno@clisp.org>
65873
65874         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65875         * modules/sys_select (Makefile.am): Likewise.
65876         * modules/sys_socket (Makefile.am): Likewise.
65877         * modules/sys_time (Makefile.am): Likewise.
65878
65879 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * modules/gettimeofday (License): Change from GPL to LGPL, since
65882         gettimeofday is a library function.
65883
65884 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65885
65886         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65887
65888 2007-01-21  Bruno Haible  <bruno@clisp.org>
65889
65890         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65891
65892 2007-01-21  Bruno Haible  <bruno@clisp.org>
65893
65894         * modules/striconveha: New file.
65895         * lib/striconveha.h: New file.
65896         * lib/striconveha.c: New file.
65897         * MODULES.html.sh (Internationalization functions): Add striconveha.
65898         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65899         string.
65900         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65901
65902 2007-01-21  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65905         * lib/striconveh.c (str_iconveh): Likewise.
65906
65907 2007-01-21  Bruno Haible  <bruno@clisp.org>
65908
65909         * lib/striconveh.h (mem_iconveh): New declaration.
65910         * lib/striconveh.c (mem_iconveh): New function.
65911         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65912
65913 2007-01-21  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65916
65917         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65918         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65919         original result buffer.
65920         (str_cd_iconveh): Update.
65921         * tests/test-striconveh.c (main): Update.
65922
65923         * lib/striconv.h (mem_cd_iconv): Change specification.
65924         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65925         result buffer.
65926         (str_cd_iconv): Update.
65927         * tests/test-striconv.c (main): Update.
65928
65929 2007-01-21  Bruno Haible  <bruno@clisp.org>
65930
65931         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65932
65933 2007-01-20  Jim Meyering  <jim@meyering.net>
65934
65935         * lib/userspec.c (parse_with_separator): If a user or group string
65936         starts with "+", skip the corresponding name-to-ID look-up, since
65937         such a look-up must fail: user and group names may not include "+".
65938
65939 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65940
65941         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65942         since we now assume the sys_time module.
65943         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65944         check for sys/time.h; no longer needed.
65945         * modules/poll (Depends-on): Depend on sys_time.
65946
65947 2007-01-18  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65950         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65951
65952         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65953         gettimeofday.
65954
65955         * tests/test-gettimeofday.c: Include <time.h>.
65956         (dummy): Remove variable.
65957
65958         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65959         gl_HEADER_SYS_TIME_H.
65960         (gl_HEADER_SYS_TIME_H): New macro.
65961
65962         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65963         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65964         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65965         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65966         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65967         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65968         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65969         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65970         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65971         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65972         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65973
65974         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65975         last change; it caused a compilation error when cross-compiling to
65976         Cygwin.
65977
65978 2007-01-18  Jim Meyering  <jim@meyering.net>
65979
65980         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65981         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65982         than the race-prone "test -d sys || mkdir sys".
65983         (configure.ac): Use AC_PROG_MKDIR_P.
65984         * modules/sys_select: Likewise.
65985         * modules/sys_socket: Likewise.
65986         * modules/sys_time: Likewise.
65987
65988 2007-01-18  Eric Blake  <ebb9@byu.net>
65989
65990         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65991         replace gettimeofday.
65992         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65993         name, to avoid infinite recursion.
65994
65995 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65996
65997         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65998         module sys_time.
65999         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66000         assume timespec.h defines struct timeval.
66001         * lib/settime.c: Likewise.
66002         * lib/utimens.c: Likewise.
66003         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66004         since we now assume the gettimeofday module.
66005         * lib/tempname.c (__gen_tempname): Likewise.
66006         * lib/gettimeofday.h: Remove.
66007         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66008         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66009         Include <time.h>, for 'time()'.
66010         (localtime_buffer_addr): Also use this workaround if
66011         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66012         to simplify the uses.  All uses changed.
66013         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66014         that #undef is inside {}, and 'const' follows type name consistently.
66015         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66016         (gettimeofday): Do not use the maximum possible value for
66017         tv->tv_usec, since that might break usages other than ls.c.
66018         Instead, we'll leave ls.c alone.  This undoes today's patch
66019         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66020         we've never observed the problem but might as well keep the
66021         canary.
66022         * lib/nanosleep.c: Include timespec.h first, for interface check.
66023         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66024         now assume the sys_time module.
66025         * lib/tempname.c: Likewise.
66026         * lib/timespec.h: Likewise.
66027         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66028         needed.
66029         * lib/strftime.c: Likewise.
66030         * lib/timespec.h: Likewise.
66031         * lib/posixtm.c: Include posixtm.h first, for interface check.
66032         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66033         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66034         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66035         * lib/sys_time_.h: New file.
66036         * lib/timespec.h (struct timespec): Use long int, not long.
66037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66038         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66039         Remove obsolescent call to AC_HEADER_TIME.
66040         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66043         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66044         Likewise.
66045         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66046         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66047         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66048         into the sys_time module.  Check for gettimeofday just once.
66049         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66050         for gettimeofday signature to just check the signature.  Merely
66051         compile it, since linking doesn't test signature.  Improve test for
66052         whether gettimeofday.o is actually needed.
66053         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66054         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66055         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66056         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66057         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66058         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66059         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66060         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66061         than worrying about sys/time.h.
66062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66063         Don't bother worrying about TIME_WITH_SYS_TIME.
66064         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66065         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66066         * m4/sys_time_h.m4: New file.
66067         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66068         Don't include sys/time.h.  Return from main rather than exiting.
66069         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66070         all uses changed.
66071         * modules/gethrxtime (Depends-on): Add sys_time.
66072         * modules/gettime (Depends-on): Likewise.
66073         * modules/gettimeofday (Depends-on): Likewise.
66074         * modules/nanosleep (Depends-on): Likewise.
66075         * modules/settime (Depends-on): Likewise.
66076         * modules/tempname (Depends-on): Likewise.
66077         * modules/utimens (Depends-on): Likewise.
66078         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66079         (Include): Change back to <sys/time.h>.
66080         (Maintainer): Add self.
66081         * modules/sys_time: New file.
66082         * modules/tempname (Depends-on): Add gettimeofday.
66083         * tests/test-gettimeofday.c: Include <sys/time.h>
66084         rather than gettimeofday.h.
66085
66086 2007-01-17  Bruno Haible  <bruno@clisp.org>
66087
66088         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66089         the license default to GPL.
66090         (func_create_testdir): Don't complain if a module is LGPL and its
66091         tests module depends on GPLed modules.
66092
66093 2007-01-17  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/gettimeofday.c (gettimeofday): Add code for the case
66096         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66097         maximum possible value for tv->tv_usec, rather than the minimum one.
66098
66099 2005-10-08  Martin Lambers  <marlam@marlam.de>
66100 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66101 2007-01-16  Bruno Haible  <bruno@clisp.org>
66102
66103         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66104         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66105         gl_FUNC_GETTIMEOFDAY.
66106         (Include): Add gettimeofday.h.
66107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66108         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66109         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66110         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66111         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66112         * lib/gettimeofday.h: New file.
66113         * lib/gettimeofday.c: Include <sys/timeb.h>.
66114         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66115         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66116         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66117         fall back on time().
66118
66119         * tests/test-gettimeofday.c: New file.
66120         * modules/gettimeofday-tests: New file.
66121
66122 2007-01-16  Eric Blake  <ebb9@byu.net>
66123
66124         * modules/fnmatch (Depends-on): Depend on wchar.
66125         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66126         * m4/fnmatch.m4: Likewise.
66127         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66128         * m4/mbchar.m4: Likewise.
66129         * modules/mbswidth (Depends-on): Depend on wchar.
66130         * lib/mbswidth.c: Assume <wchar.h>.
66131         * m4/mbswidth.m4: Likewise.
66132         * modules/quotearg (Depends-on): Depend on wchar.
66133         * lib/quotearg.c: Assume <wchar.h>.
66134         * m4/quotearg.m4: Likewise.
66135         * modules/regex (Depends-on): Depend on wchar.
66136         * lib/regex_internal.h: Assume <wchar.h>.
66137         * m4/regex.m4: Likewise.
66138         * modules/stdint (Depends-on): Depend on wchar.
66139         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66140         * m4/stdint.m4: Likewise.
66141         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66142         * modules/strftime (Depends-on): Depend on wchar.
66143         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66144         * modules/strtol (Depends-on): Depend on wchar.
66145         * lib/strtol.c: Assume <wchar.h>.
66146         * modules/wcwidth (Depends-on): Depend on wchar.
66147         * lib/wcwidth.h: Assume <wchar.h>.
66148         * m4/wcwidth.m4: Likewise.
66149
66150 2007-01-16  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/csharpexec-script: New, created from...
66153         * modules/csharpexec: ... this.
66154
66155 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66156
66157         * modules/javaexec-script: New, created from...
66158         * modules/javaexec: ... this.
66159
66160 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66161
66162         * modules/poll (Dependencies): Add sys_select.
66163
66164 2007-01-15  Jim Meyering  <jim@meyering.net>
66165
66166         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66167         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66168         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66169         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66170
66171 2007-01-15  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/striconveh: New file.
66174         * lib/striconveh.h: New file.
66175         * lib/striconveh.c: New file.
66176         * MODULES.html.sh (Internationalization functions): Add striconveh.
66177
66178         * modules/striconveh-tests: New file.
66179         * tests/test-striconveh.c: New file.
66180
66181 2007-01-15  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66184         not from GNU libiconv or GNU libc.
66185
66186 2007-01-15  Bruno Haible  <bruno@clisp.org>
66187
66188         * doc/gnulib-intro.texi (Copyright): Explain the different license
66189         terms for module descriptions, autoconf macros, tests, documentation.
66190
66191 2007-01-14  Bruno Haible  <bruno@clisp.org>
66192
66193         * modules/striconv-tests: New file.
66194         * tests/test-striconv.c: New file.
66195
66196 2007-01-14  Bruno Haible  <bruno@clisp.org>
66197
66198         * modules/iconv-tests: New file.
66199         * tests/test-iconv.c: New file.
66200
66201 2007-01-14  Bruno Haible  <bruno@clisp.org>
66202
66203         * gnulib-tool (func_get_license): For test modules, use the license of
66204         the main module.
66205
66206 2007-01-14  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66209         if iconv is found to exist.
66210
66211 2007-01-14  Bruno Haible  <bruno@clisp.org>
66212
66213         * modules/c-ctype-tests: New file.
66214         * tests/test-c-ctype.c: New file.
66215
66216 2007-01-14  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/binary-io-tests: New file.
66219         * tests/test-binary-io.sh: New file.
66220         * tests/test-binary-io.c: New file.
66221
66222 2007-01-14  Bruno Haible  <bruno@clisp.org>
66223
66224         * modules/array-oset-tests: New file.
66225         * tests/test-array_oset.c: New file.
66226
66227 2007-01-14  Bruno Haible  <bruno@clisp.org>
66228
66229         * modules/array-list-tests: New file.
66230         * tests/test-array_list.c: New file.
66231
66232 2007-01-14  Bruno Haible  <bruno@clisp.org>
66233
66234         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66235         and make.
66236         Reported by Simon Josefsson in
66237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66238
66239 2007-01-14  Bruno Haible  <bruno@clisp.org>
66240
66241         * modules/allocsa-tests: New file.
66242         * tests/test-allocsa.c: New file.
66243
66244 2007-01-14  Bruno Haible  <bruno@clisp.org>
66245
66246         * modules/fchdir (Depends-on): Add absolute-header.
66247         * modules/unistd (Depends-on): Likewise.
66248
66249 2006-12-30  Bruno Haible  <bruno@clisp.org>
66250
66251         * modules/fchdir: New file.
66252         * modules/unistd (Files): Add lib/unistd_.h.
66253         (Makefile.am): Generate unistd.h from unistd_.h.
66254         * lib/fchdir.c: New file.
66255         * lib/dirent_.h: New file.
66256         * lib/unistd_.h: New file.
66257         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66258         * m4/fchdir.m4: New file.
66259         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66260         (gl_HEADER_UNISTD): Invoke it.
66261         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66262         function.
66263         * lib/backupfile.c (opendir, closedir): Undefine.
66264         * lib/chown.c (open, close): Undefine.
66265         * lib/clean-temp.c (open, close): Undefine.
66266         * lib/copy-file.c (open, close): Undefine.
66267         * lib/execute.c (open, close): Undefine.
66268         * lib/fsusage.c (open, close): Undefine.
66269         * lib/gc-gnulib.c (open, close): Undefine.
66270         * lib/getcwd.c (opendir, closedir): Undefine.
66271         * lib/glob.c (opendir, closedir): Undefine.
66272         * lib/javacomp.c (open, close): Undefine.
66273         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66274         * lib/openat-proc.c (open, close): Undefine.
66275         * lib/pagealign_alloc.c (open, close): Undefine.
66276         * lib/pipe.c (open, close): Undefine.
66277         * lib/progreloc.c (open, close): Undefine.
66278         * lib/savedir.c (opendir, closedir): Undefine.
66279         * lib/utime.c (open, close): Undefine.
66280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66281
66282 2007-01-10  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66285
66286 2007-01-12  Eric Blake  <ebb9@byu.net>
66287
66288         Provide a robust <wchar.h>.  Further simplifications are now
66289         possible in other modules, but not included here.
66290         * modules/wchar: New module.
66291         * m4/wchar.m4: New file.
66292         * lib/wchar_.h: Likewise.
66293         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66294         of the new module.
66295         * MODULES.html.sh (Extended multibyte and wide character utilities):
66296         New section.
66297
66298 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66299
66300         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66301         to a reasonable default for memory allocation.
66302         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66303         file system that reports garbage st_size values for symlinks.
66304         Problem reported by Liyang Hu.
66305
66306 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66307
66308         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66309         Emacs .#* auto-save files).
66310
66311 2007-01-11  Bruno Haible  <bruno@clisp.org>
66312
66313         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66314         directory.
66315
66316 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         Use @...@ consistently in lib/wctype_.h.
66319         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66320         on it being set to 1 or 0.
66321         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66322         go back to AC_SUBSTing it.
66323         * modules/wctype (Makefile.am): Undo previous change.
66324
66325 2007-01-10  Eric Blake  <ebb9@byu.net>
66326
66327         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66328         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66329         * modules/wctype (Makefile.am): Likewise.
66330         Reported by Chris McGuire.
66331
66332 2007-01-10  Jim Meyering  <jim@meyering.net>
66333
66334         fts.c: a small readability/maintainability improvement
66335         * lib/fts.c (fts_read): Make this code slightly more readable and
66336         maintainable by hoisting the "sp->fts_cur = p" assignments to
66337         immediately follow the statements that set P.  Derived from
66338         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66339
66340 2007-01-10  Eric Blake  <ebb9@byu.net>
66341
66342         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66343         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66345         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66346         Reported by Chris McGuire.
66347
66348 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66349
66350         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66351         in sed script.
66352
66353 2007-01-09  Bruno Haible  <bruno@clisp.org>
66354
66355         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66356         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66357         variables.
66358         (func_module): Use them.
66359
66360 2007-01-09  Bruno Haible  <bruno@clisp.org>
66361
66362         * modules/unistr/base: New file.
66363         * lib/unistr.h: New file.
66364
66365         * modules/unistr/u8-to-u16: New file.
66366         * lib/unistr/u8-to-u16.c: New file.
66367
66368         * modules/unistr/u8-to-u32: New file.
66369         * lib/unistr/u8-to-u32.c: New file.
66370
66371         * modules/unistr/u16-to-u8: New file.
66372         * lib/unistr/u16-to-u8.c: New file.
66373
66374         * modules/unistr/u16-to-u32: New file.
66375         * lib/unistr/u16-to-u32.c: New file.
66376
66377         * modules/unistr/u32-to-u8: New file.
66378         * lib/unistr/u32-to-u8.c: New file.
66379
66380         * modules/unistr/u32-to-u16: New file.
66381         * lib/unistr/u32-to-u16.c: New file.
66382
66383         * modules/unistr/u8-check: New file.
66384         * modules/unistr/u16-check: New file.
66385         * modules/unistr/u32-check: New file.
66386         * lib/unistr/u8-check.c: New file.
66387         * lib/unistr/u16-check.c: New file.
66388         * lib/unistr/u32-check.c: New file.
66389
66390         * modules/unistr/u8-chr: New file.
66391         * modules/unistr/u16-chr: New file.
66392         * modules/unistr/u32-chr: New file.
66393         * lib/unistr/u8-chr.c: New file.
66394         * lib/unistr/u16-chr.c: New file.
66395         * lib/unistr/u32-chr.c: New file.
66396
66397         * modules/unistr/u8-cmp: New file.
66398         * modules/unistr/u16-cmp: New file.
66399         * modules/unistr/u32-cmp: New file.
66400         * lib/unistr/u8-cmp.c: New file.
66401         * lib/unistr/u16-cmp.c: New file.
66402         * lib/unistr/u32-cmp.c: New file.
66403
66404         * modules/unistr/u8-cpy: New file.
66405         * modules/unistr/u16-cpy: New file.
66406         * modules/unistr/u32-cpy: New file.
66407         * lib/unistr/u8-cpy.c: New file.
66408         * lib/unistr/u16-cpy.c: New file.
66409         * lib/unistr/u32-cpy.c: New file.
66410         * lib/unistr/u-cpy.h: New file.
66411
66412         * modules/unistr/u8-cpy-alloc: New file.
66413         * modules/unistr/u16-cpy-alloc: New file.
66414         * modules/unistr/u32-cpy-alloc: New file.
66415         * lib/unistr/u8-cpy-alloc.c: New file.
66416         * lib/unistr/u16-cpy-alloc.c: New file.
66417         * lib/unistr/u32-cpy-alloc.c: New file.
66418         * lib/unistr/u-cpy-alloc.h: New file.
66419
66420         * modules/unistr/u8-endswith: New file.
66421         * modules/unistr/u16-endswith: New file.
66422         * modules/unistr/u32-endswith: New file.
66423         * lib/unistr/u8-endswith.c: New file.
66424         * lib/unistr/u16-endswith.c: New file.
66425         * lib/unistr/u32-endswith.c: New file.
66426         * lib/unistr/u-endswith.h: New file.
66427
66428         * modules/unistr/u8-mblen: New file.
66429         * modules/unistr/u16-mblen: New file.
66430         * modules/unistr/u32-mblen: New file.
66431         * lib/unistr/u8-mblen.c: New file.
66432         * lib/unistr/u16-mblen.c: New file.
66433         * lib/unistr/u32-mblen.c: New file.
66434
66435         * modules/unistr/u8-mbtouc: New file.
66436         * modules/unistr/u16-mbtouc: New file.
66437         * modules/unistr/u32-mbtouc: New file.
66438         * lib/unistr/u8-mbtouc.c: New file.
66439         * lib/unistr/u16-mbtouc.c: New file.
66440         * lib/unistr/u32-mbtouc.c: New file.
66441
66442         * modules/unistr/u8-mbtouc-safe: New file.
66443         * modules/unistr/u16-mbtouc-safe: New file.
66444         * modules/unistr/u32-mbtouc-safe: New file.
66445         * lib/unistr/u8-mbtouc-safe.c: New file.
66446         * lib/unistr/u16-mbtouc-safe.c: New file.
66447         * lib/unistr/u32-mbtouc-safe.c: New file.
66448
66449         * modules/unistr/u8-move: New file.
66450         * modules/unistr/u16-move: New file.
66451         * modules/unistr/u32-move: New file.
66452         * lib/unistr/u8-move.c: New file.
66453         * lib/unistr/u16-move.c: New file.
66454         * lib/unistr/u32-move.c: New file.
66455         * lib/unistr/u-move.h: New file.
66456
66457         * modules/unistr/u8-next: New file.
66458         * modules/unistr/u16-next: New file.
66459         * modules/unistr/u32-next: New file.
66460         * lib/unistr/u8-next.c: New file.
66461         * lib/unistr/u16-next.c: New file.
66462         * lib/unistr/u32-next.c: New file.
66463
66464         * modules/unistr/u8-prev: New file.
66465         * modules/unistr/u16-prev: New file.
66466         * modules/unistr/u32-prev: New file.
66467         * lib/unistr/u8-prev.c: New file.
66468         * lib/unistr/u16-prev.c: New file.
66469         * lib/unistr/u32-prev.c: New file.
66470
66471         * modules/unistr/u8-set: New file.
66472         * modules/unistr/u16-set: New file.
66473         * modules/unistr/u32-set: New file.
66474         * lib/unistr/u8-set.c: New file.
66475         * lib/unistr/u16-set.c: New file.
66476         * lib/unistr/u32-set.c: New file.
66477         * lib/unistr/u-set.h: New file.
66478
66479         * modules/unistr/u8-startswith: New file.
66480         * modules/unistr/u16-startswith: New file.
66481         * modules/unistr/u32-startswith: New file.
66482         * lib/unistr/u8-startswith.c: New file.
66483         * lib/unistr/u16-startswith.c: New file.
66484         * lib/unistr/u32-startswith.c: New file.
66485         * lib/unistr/u-startswith.h: New file.
66486
66487         * modules/unistr/u8-stpcpy: New file.
66488         * modules/unistr/u16-stpcpy: New file.
66489         * modules/unistr/u32-stpcpy: New file.
66490         * lib/unistr/u8-stpcpy.c: New file.
66491         * lib/unistr/u16-stpcpy.c: New file.
66492         * lib/unistr/u32-stpcpy.c: New file.
66493         * lib/unistr/u-stpcpy.h: New file.
66494
66495         * modules/unistr/u8-stpncpy: New file.
66496         * modules/unistr/u16-stpncpy: New file.
66497         * modules/unistr/u32-stpncpy: New file.
66498         * lib/unistr/u8-stpncpy.c: New file.
66499         * lib/unistr/u16-stpncpy.c: New file.
66500         * lib/unistr/u32-stpncpy.c: New file.
66501         * lib/unistr/u-stpncpy.h: New file.
66502
66503         * modules/unistr/u8-strcat: New file.
66504         * modules/unistr/u16-strcat: New file.
66505         * modules/unistr/u32-strcat: New file.
66506         * lib/unistr/u8-strcat.c: New file.
66507         * lib/unistr/u16-strcat.c: New file.
66508         * lib/unistr/u32-strcat.c: New file.
66509         * lib/unistr/u-strcat.h: New file.
66510
66511         * modules/unistr/u8-strchr: New file.
66512         * modules/unistr/u16-strchr: New file.
66513         * modules/unistr/u32-strchr: New file.
66514         * lib/unistr/u8-strchr.c: New file.
66515         * lib/unistr/u16-strchr.c: New file.
66516         * lib/unistr/u32-strchr.c: New file.
66517
66518         * modules/unistr/u8-strcmp: New file.
66519         * modules/unistr/u16-strcmp: New file.
66520         * modules/unistr/u32-strcmp: New file.
66521         * lib/unistr/u8-strcmp.c: New file.
66522         * lib/unistr/u16-strcmp.c: New file.
66523         * lib/unistr/u32-strcmp.c: New file.
66524
66525         * modules/unistr/u8-strcpy: New file.
66526         * modules/unistr/u16-strcpy: New file.
66527         * modules/unistr/u32-strcpy: New file.
66528         * lib/unistr/u8-strcpy.c: New file.
66529         * lib/unistr/u16-strcpy.c: New file.
66530         * lib/unistr/u32-strcpy.c: New file.
66531         * lib/unistr/u-strcpy.h: New file.
66532
66533         * modules/unistr/u8-strcspn: New file.
66534         * modules/unistr/u16-strcspn: New file.
66535         * modules/unistr/u32-strcspn: New file.
66536         * lib/unistr/u8-strcspn.c: New file.
66537         * lib/unistr/u16-strcspn.c: New file.
66538         * lib/unistr/u32-strcspn.c: New file.
66539         * lib/unistr/u-strcspn.h: New file.
66540
66541         * modules/unistr/u8-strdup: New file.
66542         * modules/unistr/u16-strdup: New file.
66543         * modules/unistr/u32-strdup: New file.
66544         * lib/unistr/u8-strdup.c: New file.
66545         * lib/unistr/u16-strdup.c: New file.
66546         * lib/unistr/u32-strdup.c: New file.
66547         * lib/unistr/u-strdup.h: New file.
66548
66549         * modules/unistr/u8-strlen: New file.
66550         * modules/unistr/u16-strlen: New file.
66551         * modules/unistr/u32-strlen: New file.
66552         * lib/unistr/u8-strlen.c: New file.
66553         * lib/unistr/u16-strlen.c: New file.
66554         * lib/unistr/u32-strlen.c: New file.
66555         * lib/unistr/u-strlen.h: New file.
66556
66557         * modules/unistr/u8-strmblen: New file.
66558         * modules/unistr/u16-strmblen: New file.
66559         * modules/unistr/u32-strmblen: New file.
66560         * lib/unistr/u8-strmblen.c: New file.
66561         * lib/unistr/u16-strmblen.c: New file.
66562         * lib/unistr/u32-strmblen.c: New file.
66563
66564         * modules/unistr/u8-strmbtouc: New file.
66565         * modules/unistr/u16-strmbtouc: New file.
66566         * modules/unistr/u32-strmbtouc: New file.
66567         * lib/unistr/u8-strmbtouc.c: New file.
66568         * lib/unistr/u16-strmbtouc.c: New file.
66569         * lib/unistr/u32-strmbtouc.c: New file.
66570
66571         * modules/unistr/u8-strncat: New file.
66572         * modules/unistr/u16-strncat: New file.
66573         * modules/unistr/u32-strncat: New file.
66574         * lib/unistr/u8-strncat.c: New file.
66575         * lib/unistr/u16-strncat.c: New file.
66576         * lib/unistr/u32-strncat.c: New file.
66577         * lib/unistr/u-strncat.h: New file.
66578
66579         * modules/unistr/u8-strncmp: New file.
66580         * modules/unistr/u16-strncmp: New file.
66581         * modules/unistr/u32-strncmp: New file.
66582         * lib/unistr/u8-strncmp.c: New file.
66583         * lib/unistr/u16-strncmp.c: New file.
66584         * lib/unistr/u32-strncmp.c: New file.
66585
66586         * modules/unistr/u8-strncpy: New file.
66587         * modules/unistr/u16-strncpy: New file.
66588         * modules/unistr/u32-strncpy: New file.
66589         * lib/unistr/u8-strncpy.c: New file.
66590         * lib/unistr/u16-strncpy.c: New file.
66591         * lib/unistr/u32-strncpy.c: New file.
66592         * lib/unistr/u-strncpy.h: New file.
66593
66594         * modules/unistr/u8-strnlen: New file.
66595         * modules/unistr/u16-strnlen: New file.
66596         * modules/unistr/u32-strnlen: New file.
66597         * lib/unistr/u8-strnlen.c: New file.
66598         * lib/unistr/u16-strnlen.c: New file.
66599         * lib/unistr/u32-strnlen.c: New file.
66600         * lib/unistr/u-strnlen.h: New file.
66601
66602         * modules/unistr/u8-strpbrk: New file.
66603         * modules/unistr/u16-strpbrk: New file.
66604         * modules/unistr/u32-strpbrk: New file.
66605         * lib/unistr/u8-strpbrk.c: New file.
66606         * lib/unistr/u16-strpbrk.c: New file.
66607         * lib/unistr/u32-strpbrk.c: New file.
66608         * lib/unistr/u-strpbrk.h: New file.
66609
66610         * modules/unistr/u8-strrchr: New file.
66611         * modules/unistr/u16-strrchr: New file.
66612         * modules/unistr/u32-strrchr: New file.
66613         * lib/unistr/u8-strrchr.c: New file.
66614         * lib/unistr/u16-strrchr.c: New file.
66615         * lib/unistr/u32-strrchr.c: New file.
66616
66617         * modules/unistr/u8-strspn: New file.
66618         * modules/unistr/u16-strspn: New file.
66619         * modules/unistr/u32-strspn: New file.
66620         * lib/unistr/u8-strspn.c: New file.
66621         * lib/unistr/u16-strspn.c: New file.
66622         * lib/unistr/u32-strspn.c: New file.
66623         * lib/unistr/u-strspn.h: New file.
66624
66625         * modules/unistr/u8-strstr: New file.
66626         * modules/unistr/u16-strstr: New file.
66627         * modules/unistr/u32-strstr: New file.
66628         * lib/unistr/u8-strstr.c: New file.
66629         * lib/unistr/u16-strstr.c: New file.
66630         * lib/unistr/u32-strstr.c: New file.
66631         * lib/unistr/u-strstr.h: New file.
66632
66633         * modules/unistr/u8-strtok: New file.
66634         * modules/unistr/u16-strtok: New file.
66635         * modules/unistr/u32-strtok: New file.
66636         * lib/unistr/u8-strtok.c: New file.
66637         * lib/unistr/u16-strtok.c: New file.
66638         * lib/unistr/u32-strtok.c: New file.
66639         * lib/unistr/u-strtok.h: New file.
66640
66641         * modules/unistr/u8-uctomb: New file.
66642         * modules/unistr/u16-uctomb: New file.
66643         * modules/unistr/u32-uctomb: New file.
66644         * lib/unistr/u8-uctomb.c: New file.
66645         * lib/unistr/u16-uctomb.c: New file.
66646         * lib/unistr/u32-uctomb.c: New file.
66647
66648         * MODULES.html.sh (Unicode string functions): Add the new modules.
66649
66650 2007-01-08  Bruno Haible  <bruno@clisp.org>
66651
66652         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66653         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66654         subdirectories.
66655
66656 2007-01-08  Karl Berry  <karl@gnu.org>
66657
66658         * doc/error.texi: mention that main() fns must set program_name
66659         when progname is used.
66660
66661 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66664         WCTYPE_H is empty, for the benefit of builds from non-distclean
66665         directories.  Problem reported by Eric Blake in
66666         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66667
66668 2007-01-08  Bruno Haible  <bruno@clisp.org>
66669
66670         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66671         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66672         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66673         PROVIDE_CANONICALIZE_FILENAME_MODE.
66674         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66675
66676 2007-01-08  Bruno Haible  <bruno@clisp.org>
66677
66678         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66679         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66680         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66681         * lib/fts.c: Likewise.
66682         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66683
66684 2006-12-25  Bruno Haible  <bruno@clisp.org>
66685
66686         * modules/utf8-ucs4-safe: New file.
66687         * lib/utf8-ucs4-safe.h: New file.
66688         * lib/unistr/utf8-ucs4-safe.c: New file.
66689
66690         * modules/utf16-ucs4-safe: New file.
66691         * lib/utf16-ucs4-safe.h: New file.
66692         * lib/unistr/utf16-ucs4-safe.c: New file.
66693
66694         * MODULES.html.sh (Unicode string functions): Add the new modules.
66695
66696 2007-01-08  Bruno Haible  <bruno@clisp.org>
66697
66698         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66699         (Depends-on): Add unitypes.
66700         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66701         (u8_mbtouc_aux): Move out to separate file.
66702         (u8_mbtouc): Use ucs4_t, uint8_t types.
66703         * lib/unistr/utf8-ucs4.c: New file.
66704
66705         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66706         (Depends-on): Add unitypes.
66707         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66708         (u16_mbtouc_aux): Move out to separate file.
66709         (u16_mbtouc): Use ucs4_t, uint16_t types.
66710         * lib/unistr/utf16-ucs4.c: New file.
66711
66712         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66713         (Depends-on): Add unitypes.
66714         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66715         (u8_uctomb_aux): Move out to separate file.
66716         (u8_uctomb): Use ucs4_t, uint8_t types.
66717         * lib/unistr/ucs4-utf8.c: New file.
66718
66719         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66720         (Depends-on): Add unitypes.
66721         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66722         (u16_uctomb_aux): Move out to separate file.
66723         (u16_uctomb): Use ucs4_t, uint16_t types.
66724         * lib/unistr/ucs4-utf16.c: New file.
66725
66726 2006-12-25  Bruno Haible  <bruno@clisp.org>
66727
66728         * modules/unitypes: New file.
66729         * lib/unitypes.h: New file.
66730         * MODULES.html.sh (func_all_modules): New section "Unicode string
66731         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66732         this section. Add unitypes.
66733
66734 2007-01-08  Bruno Haible  <bruno@clisp.org>
66735
66736         Avoid variable names that conflict with those from libtool.
66737         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66738         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66739         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66740         library_names_spec to acl_library_names_spec, hardcode_* to
66741         acl_hardcode_*.
66742         Reported by Ralf Wildenhues.
66743
66744 2007-01-08  Bruno Haible  <bruno@clisp.org>
66745
66746         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66747         definition.
66748         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66749         definition.
66750         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66751         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66752         definition.
66753         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66754         definition.
66755         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66756         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66757         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66758         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66759         definition.
66760         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66761         definition.
66762         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66763         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66764         GC_USE_<algorithm>.
66765         * lib/gc-libgcrypt.c: Likewise.
66766         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66767         * modules/gc-arctwo (configure.ac): Likewise.
66768         * modules/gc-des (configure.ac): Likewise.
66769         * modules/gc-hmac-md5 (configure.ac): Likewise.
66770         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66771         * modules/gc-md2 (configure.ac): Likewise.
66772         * modules/gc-md4 (configure.ac): Likewise.
66773         * modules/gc-md5 (configure.ac): Likewise.
66774         * modules/gc-random (configure.ac): Likewise.
66775         * modules/gc-rijndael (configure.ac): Likewise.
66776         * modules/gc-sha1 (configure.ac): Likewise.
66777
66778 2007-01-08  Bruno Haible  <bruno@clisp.org>
66779
66780         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66781         macro definition.
66782         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66783         definition.
66784         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66785         definition.
66786         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66787         * modules/fcntl-safer (configure.ac): Likewise.
66788         * modules/fopen-safer (configure.ac): Likewise.
66789         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66790         GNULIB_FWRITEERROR macro definition.
66791
66792 2007-01-08  Bruno Haible  <bruno@clisp.org>
66793
66794         * m4/gnulib-common.m4: New file.
66795         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66796         (func_get_filelist): Add m4/gnulib-common.m4.
66797
66798 2007-01-08  Bruno Haible  <bruno@clisp.org>
66799
66800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66801         command.
66802
66803 2007-01-08  Jim Meyering  <jim@meyering.net>
66804
66805         Use a more robust test for a "can't happen" condition.
66806         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66807         narrowed the st_size value.  Presuming the "can't happen" condition
66808         is true, that narrowing could conceivably convert an invalid st_size
66809         value into a valid one.  Instead, use a change based on Matthew
66810         Woehlke's original patch.
66811
66812         Slight readability improvement: use an assert-like macro
66813         in place of literal "abort ()" uses.
66814         * lib/fts.c (fts_assert): Define.
66815         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66816         Use this macro instead of a bare 'abort'.
66817
66818 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66821         simply work around them.
66822         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66823         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66824         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66825         declaring.
66826         Don't bother to define as macros, since the standard doesn't require it.
66827         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66828         longer worry about IRIX 5.3.
66829         (HAVE_WCTYPE_CTMP_BUG): Remove.
66830
66831 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66834         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66835         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66836         Problems reported by Georg Schwarz for IRIX 5.3.
66837
66838         * gnulib-tool (autoconf_minversion): Take the maximum version number
66839         found, not the minimum.  Problem reported by James Youngman.
66840
66841 2007-01-03  Karl Berry  <karl@gnu.org>
66842
66843         * doc/error.texi: new file, explaining interaction with progname.
66844         * doc/gnulib.texi: include it.  Update copyright.
66845
66846 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66847
66848         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66849         AC_CANONICAL_HOST, to improve autobuild outputs.
66850
66851 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66852             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66853
66854         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66855         sockets, server sockets, and other file descriptors.  Count errors
66856         to compute the return value.  Reorder the code a bit to be easier
66857         to follow.  Don't set event bits that were not requested (except
66858         POLLERR and POLLHUP).
66859
66860 2007-01-01  Bruno Haible  <bruno@clisp.org>
66861
66862         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66863
66864 2007-01-03  Jim Meyering  <jim@meyering.net>
66865
66866         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66867
66868 2007-01-02  Bruno Haible  <bruno@clisp.org>
66869
66870         * modules/settime (Include): Require timespec.h.
66871         * modules/nanosleep (Include): Likewise.
66872
66873 2007-01-01  Bruno Haible  <bruno@clisp.org>
66874
66875         * gnulib-tool (func_emit_copyright_notice): Bump year.
66876         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66877
66878 2007-01-01  Bruno Haible  <bruno@clisp.org>
66879
66880         Improve support for OpenBSD.
66881         * build-aux/config.rpath (libname_spec): Export.
66882         (library_names_spec): New variable. Export.
66883         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66884         library_names_spec from the config.rpath output. Locate shared library
66885         through the name pattern in library_names_spec.
66886
66887 2007-01-01  Eric Blake  <ebb9@byu.net>
66888
66889         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66890
66891 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66892
66893         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66894         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66895         assume the C locale, and avoid an "eval" that could cause trouble.
66896         Problem with SORT reported by Bob Proulx.
66897
66898         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66899         Define.  Trivial patch from Henning Nielsen Lund, originally
66900         sent to bug-grep@gnu.org today.
66901
66902 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66905         struct stat.  Problem reported by Henning Nielsen Lund.
66906         * lib/acl.c: Include acl.h first, to check interface.  Don't
66907         bother to include sys/types.h and sys/stat.h again.
66908
66909 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         Import the following change from libc; problem reported by
66912         Sven Verdoolaege.
66913
66914         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66915
66916         [BZ #1373]
66917         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66918
66919 2006-12-28  Jim Meyering  <jim@meyering.net>
66920
66921         * build-aux/announce-gen: Do not assume that the package
66922         builds any of tar.gz, tar.bz2, and .xdelta files.
66923         Suggestion from Simon Josefsson.
66924
66925 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66926
66927         * modules/announce-gen: New file.
66928
66929 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66932         handles its gotchas now.
66933         * lib/mbswidth.c: Likewise.
66934         * lib/wcwidth.h: Likewise.
66935         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66936         and iswcntrl; the wctype module does this stuff now.
66937         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66939         * modules/mbchar (Depends-on): Add wctype.
66940         * modules/mbswidth (Depends-on): Likewise.
66941         * modules/wcwidth (Depends-on): Likewise.
66942
66943 2006-12-27  Eric Blake  <ebb9@byu.net>
66944
66945         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66946         module uses more than what <wctype.h> is required to provide.
66947
66948 2006-12-26  Eric Blake  <ebb9@byu.net>
66949
66950         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66951
66952 2006-12-26  Eric Blake  <ebb9@byu.net>
66953
66954         * modules/absolute-header: New module.
66955         * modules/fcntl (Depends-on): Depend on it.
66956         * modules/inttypes (Depends-on): Likewise.
66957         * modules/stdint (Depends-on): Likewise.
66958         * modules/sys_stat (Depends-on): Likewise.
66959         * modules/wctype (Depends-on): Likewise.
66960         * MODULES.html.sh (Support for building libraries and
66961         executables): Document it.
66962
66963 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66964
66965         * gnulib-tool (SED): Remove, undoing previous change.
66966         The problem was that it broke coreutils on Solaris, because
66967         "sed --posix" leaked into a makefile.
66968         (sed): New alias, if 'alias' and GNU sed.
66969
66970 2006-12-24  Jim Meyering  <jim@meyering.net>
66971
66972         Work around an fchownat bug in glibc-2.4:
66973         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66974         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66975         in spite of the -P option.
66976         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66977         New macros.
66978         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66979         * modules/openat (Files): Add lib/fchownat.c.
66980         * lib/openat.c (fchownat): Don't define here.  Move to...
66981         * lib/fchownat.c: ...this new file.
66982
66983 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66984
66985         Fix bug reported by Bruno Haible in
66986         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66987         where quotearg.c didn't compile on Mac OS X 10.2 because it
66988         lacks <wchar.h> and wint_t.
66989         * lib/wctype_.h (__wctype_wint_t): New type.
66990         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66991         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66992         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66993         Arg is now of type __wctype_wint_t, not wint_t.
66994         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66995         substitute HAVE_WINT_T.
66996         * modules/wctype (Files): Add m4/wint_t.m4.
66997         (wctype.h): Substitute HAVE_WINT_T.
66998
66999 2006-12-23  Bruno Haible  <bruno@clisp.org>
67000
67001         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67002
67003 2006-12-23  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67006         S_ISLNK.
67007         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67008         mingw.
67009
67010 2006-12-22  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/copy-file.c: Include acl.h.
67013         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67014         Close the file descriptors only after being done with copy_acl.
67015         * modules/copy-file (Depends-on): Add acl.
67016
67017 2006-12-22  Bruno Haible  <bruno@clisp.org>
67018
67019         * gnulib-tool (SED): New variable.
67020         Use $SED instead of sed everywhere.
67021
67022 2006-12-22  Bruno Haible  <bruno@clisp.org>
67023
67024         * modules/no-c++: New file.
67025         * m4/no-c++.m4: New file.
67026         * MODULES.html.sh (Support for building libraries and executables):
67027         Add no-c++.
67028
67029 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67032         Include <limits.h>, and use its INT_MAX to rewrite the
67033         j loop so that it does not overflow 'int'.  Problem reported by
67034         Ralf Wildenhues in
67035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67036         Play it safe by shifting left by 1 rather than multiplying by 2,
67037         as GCC is less likely to optimize this away when the value
67038         is signed (when it assumes overflow leads to undefined behavior).
67039         Also, don't assume time_t uses two's complement.
67040
67041 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67042
67043         * MODULES.html.sh: New module wctype.
67044         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67045         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67046         <wctype.h>, since the new wctype module should fix this.
67047         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67048         the wctype module should arrange for it.
67049         * lib/regex_internal.h: Likewise.
67050         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67051         since the wctype module should handle this now.
67052         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67053         * modules/fnmatch (Depends-on): Add wctype.
67054         * modules/quotearg (Depends-on): Likewise.
67055         * modules/regex (Depends-on): Likewise.
67056
67057 2006-12-19  Bruno Haible  <bruno@clisp.org>
67058
67059         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67060         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67061
67062 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67063
67064         * modules/savewd (Depends-on): Fix dependency on fcntl.
67065
67066 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67069         conforms to C99, rather than relying on the user's environment
67070         setting of STDINT_H.
67071
67072 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67073         and Eric Blake  <ebb9@byu.net>
67074
67075         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67076         This is more consistent with the other defines here.
67077         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67078         Port to z/OS.  Problem reported by Paul Gilmartin.
67079         Change local vars to use gl_ prefix rather than ac_.
67080         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67081         with other defines.
67082         * modules/double-slash-root: New module.
67083         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67084         (Depends-on): Add double-slash-root.
67085         * MODULES.html.sh (File system functions): Mention new module.
67086
67087 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67090         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67091         This is for the benefit of gzip, which doesn't do i18n.
67092
67093 2006-12-12  Jim Meyering  <jim@meyering.net>
67094
67095         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67096         Reported by Andreas Schwab <schwab@suse.de>.
67097
67098 2006-12-12  Bruno Haible  <bruno@clisp.org>
67099
67100         Merge these changes.
67101         2006-09-05  Bruno Haible  <bruno@clisp.org>
67102         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67103         iconv_alloc succeeded.
67104         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67105         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67106         test for " && dest " at the end - dest is always != NULL there. Call
67107         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67108         with 2xNULL arguments, also to flush the state storage. Handle the
67109         IRIX iconv behaviour. Realloc the final result, to throw away unused
67110         memory.
67111
67112 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67115         and fchmodat unconditionally, since glibc 2.4 has them.
67116         Problem reported by Arkadiusz Miskiewicz.
67117
67118 2006-12-10  Bruno Haible  <bruno@clisp.org>
67119
67120         * gnulib-tool (func_import): Show the include files only for those
67121         modules that are copied and specified.
67122         Reported by Karl Berry.
67123
67124 2006-12-08  Jim Meyering  <jim@meyering.net>
67125
67126         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67127         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67128
67129         * build-aux/announce-gen: Add two new options, both optional:
67130         --bootstrap-tools=TOOL_LIST
67131               a comma-separated list of tools, e.g.,
67132               autoconf,automake,bison,gnulib
67133         --gnulib-snapshot-date=DATE
67134               if gnulib is in the bootstrap tool list,
67135               then report this as the snapshot date.
67136               If not specified, use the current date/time.
67137               If you specify a date here, be sure it's UTC.
67138
67139 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67140
67141         * tests/test-argp-2.sh: Fix test to match actual output.
67142         (func_compare): Fix sed script to be portable.
67143
67144 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67145
67146         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67147         workaround for this case.  It is not autoconfigured now; offhand
67148         it's hard to see how to autoconfigure it.
67149
67150 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67153         a directory that is about to be chowned.  Such a directory's
67154         initial file permissions should permit the owner only and this
67155         should not be changed until after the chown, since the group and
67156         other bits would be incorrect if they granted permission before
67157         the chown.
67158
67159         Fix porting problem for iswctype reported by Georg Schwarz in:
67160         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67161         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67162         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67163         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67164         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67165
67166 2006-12-03  Jim Meyering  <jim@meyering.net>
67167
67168         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67169         p->fts_statp may not yet be defined.
67170         (fts_read): Instead, set it in the caller, once p->fts_statp is
67171         sure to be defined, and corresponds to a top-level directory.
67172         This bug made du -x fail.  Here's the coreutils test case:
67173         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67174         Reported by Mike Frysinger.
67175
67176 2006-12-01  Jim Meyering  <jim@meyering.net>
67177
67178         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67179         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67180         Reported by Simon Josefsson.
67181
67182 2006-11-30  Jim Meyering  <jim@meyering.net>
67183
67184         * m4/warning.m4: Use the all-permissive copyright notice
67185         recommended by RMS (rather than LGPL).
67186         * m4/vararrays.m4: Likewise.
67187         * m4/flexmember.m4: Likewise.
67188
67189 2006-11-29  Bruno Haible  <bruno@clisp.org>
67190
67191         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67192         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67193         using +=.
67194         Reported by Simon Josefsson <simon@josefsson.org>.
67195
67196 2006-11-28  James Youngman <jay@gnu.org>
67197
67198         * README: Advise users that they might find the bug-gnulib@gnu.org
67199         and autotools-announce@gnu.org mailing lists useful.
67200
67201 2006-11-28  Bruno Haible  <bruno@clisp.org>
67202
67203         * m4/ptrdiff_max.m4: Remove file.
67204
67205 2006-11-21  Bruno Haible  <bruno@clisp.org>
67206
67207         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67208         _AC_COMPUTE_INT.
67209         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67210         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67211         _AC_COMPUTE_INT.
67212         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67213         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67214         _AC_COMPUTE_INT.
67215         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67216
67217 2006-11-28  Jim Meyering  <jim@meyering.net>
67218
67219         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67220         warning from "gcc -Wshadow" about shadowing the builtin.
67221
67222 2006-11-27  Bruno Haible  <bruno@clisp.org>
67223
67224         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67225         _AC_COMPUTE_INT.
67226         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67227
67228 2006-11-27  Bruno Haible  <bruno@clisp.org>
67229             Paul Eggert  <eggert@cs.ucla.edu>
67230
67231         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67232
67233 2006-11-26  Bruno Haible  <bruno@clisp.org>
67234
67235         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67236         noinst_LTLIBRARIES.
67237
67238 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67239             Bruno Haible  <bruno@clisp.org>
67240
67241         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67242         if compiling with "gcc -ansi".
67243
67244 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         Fix some incompatibilities with gcc -ansi -pedantic.
67247         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67248         if compiling pedantically with GCC, unless it's C99 or later.
67249         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67250         it mishandles gcc -ansi -pedantic as well.
67251         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67252         if gcc -pedantic.
67253         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67254         initializers for struct if -pedantic, unless it's C99 or later.
67255
67256 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67257
67258         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67259         Don't close an fd more than once. Identical atimes indicate
67260         success, not failure.
67261
67262 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67263
67264         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67265
67266 2006-11-23  Jim Meyering  <jim@meyering.net>
67267
67268         * build-aux/announce-gen: New file.  From coreutils.
67269
67270 2006-11-22  Jim Meyering  <jim@meyering.net>
67271
67272         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67273         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67274         (fts_read): Use a temporary to narrow the overused st_size member
67275         before using it in a switch statement.  Reported by Matthew Woehlke.
67276
67277         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67278         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67279
67280 2006-11-20  Bruno Haible  <bruno@clisp.org>
67281
67282         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67283         changequote instead of pairs of brackets.
67284         Reported by Andreas Schwab <schwab@suse.de>.
67285
67286 2006-11-21  Jim Meyering  <jim@meyering.net>
67287
67288         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67289         so as to remain compatible with older compilers.
67290         Patch from Michael Deutschmann.
67291
67292 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67293
67294         * MODULES.html.sh (File system functions): Add openat.
67295
67296         * lib/openat.h (rpl_fstatat): New macro, if
67297         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67298         (fstatat): Define to rpl_fstatat under the same conditions,
67299         unless COMPILING_FSTATAT.
67300         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67301         seems to have the bug.
67302         * lib/fstatat.c: New file.
67303         * modules/openat (Files): Add it.
67304
67305 2006-11-20  Bruno Haible  <bruno@clisp.org>
67306
67307         * Makefile: New file.
67308
67309 2006-11-20  Jim Meyering  <jim@meyering.net>
67310
67311         The beginnings of syntax-related checks for gnulib.
67312         * lib/Makefile: New file.
67313         * lib/t-idcache: New script.  Ensure that the two halves of
67314         idcache.c stay in sync.
67315
67316         * lib/idcache.c: Adjust comments in user- and group- portions to
67317         be more accurate, and to be consistent with one another.
67318
67319 2006-11-20  Jim Meyering  <jim@meyering.net>
67320
67321         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67322         continue using the flexible array member (thus, this module performs
67323         half as many malloc calls), with the addition that...
67324         (getgroup, getuser): Consistently record a non-match via an empty
67325         "name" string, and map an empty string match to a NULL return value.
67326         * modules/idcache (Depends-on): Re-add flexmember.
67327
67328         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67329         (getuidbyname, getgroup, getgidbyname): Likewise.
67330
67331         Use cleaner syntax: NULL rather than 0.
67332         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67333
67334 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67337         It mishandled the case where the group was missing.
67338         Problem reported by Greg Schafer.
67339         * modules/idcache: Likewise.
67340
67341 2006-11-18  Jim Meyering  <jim@meyering.net>
67342
67343         * check-module (%exempt_header): Add exception for some
67344         conditionally-included headers.
67345
67346         * modules/i-ring (Depends-on): Add verify.
67347         (License): Change to LGPL.
67348
67349 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67352         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67353         and inttostr.h.  Use snprintf rather than uinttostr, so that
67354         LGPLed code doesn't depend on GPLed.
67355
67356 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67357
67358         * modules/inline (License): Change from GPL to LGPL.
67359
67360 2006-11-17  Jim Meyering  <jim@meyering.net>
67361
67362         * modules/d-type (License): Switch to LGPL.
67363
67364 2006-11-15  Bruno Haible  <bruno@clisp.org>
67365
67366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67367
67368 2006-11-15  Eric Blake  <ebb9@byu.net>
67369
67370         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67371         the module dependency.
67372
67373 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67374             Bruno Haible  <bruno@clisp.org>
67375
67376         * gnulib-tool (func_create_testdir): Add license consistency check.
67377
67378 2006-11-15  Eric Blake  <ebb9@byu.net>
67379
67380         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67381         random "(cached)" in configure output.
67382
67383 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67384
67385         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67386         test for conforming inttypes.h is both announced and cached.
67387
67388         * MODULES.html.sh (seen_modules, seen_files): New variables.
67389         (func_module): Rewrite to use a few less gnulib-tool and sed
67390         invocations.  Avoid a couple of quadratic algorithms for ...
67391         (missed_modules, missed_files): ... these, with ...
67392         (func_append, func_tmpdir): ... these new functions, from
67393         gnulib-tool.  Analogously, install traps for cleanup.
67394
67395         * tests/test-gc.c (main): Remove unused variables.
67396         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67397
67398 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * modules/inttostr (License): Change to LGPL.
67401
67402 2006-11-14  Eric Blake  <ebb9@byu.net>
67403
67404         * modules/tempname (License): Change to LGPL.
67405
67406 2006-11-14  Eric Blake  <ebb9@byu.net>
67407
67408         * doc/functions.texi (Function Portability): *printf functions on
67409         Cygwin now understand all POSIX size specifiers.
67410
67411 2006-11-14  Bruno Haible  <bruno@clisp.org>
67412
67413         * modules/c-ctype (License): Change to LGPL.
67414
67415 2006-11-12  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67418         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67419         for GNOME libraries, for which the include files are installed in
67420         subdirectories of $prefix/include.
67421
67422 2006-11-12  Bruno Haible  <bruno@clisp.org>
67423
67424         * m4/lib-link.m4: Require at least autoconf-2.54.
67425         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67426         name to underscores for the --with option.
67427
67428 2006-11-13  Bruno Haible  <bruno@clisp.org>
67429
67430         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67431         the tests directory.
67432         Reported by Ralf Wildenhues.
67433
67434 2006-11-13  Bruno Haible  <bruno@clisp.org>
67435
67436         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67437         (func_emit_initmacro_end): Undo the override here.
67438         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67439         Works around the famous automake error in coreutils.
67440
67441 2006-11-13  Eric Blake  <ebb9@byu.net>
67442
67443         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67444         element, not its node.
67445
67446 2006-11-12  Bruno Haible  <bruno@clisp.org>
67447
67448         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67449         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67450
67451 2006-11-12  Bruno Haible  <bruno@clisp.org>
67452
67453         * gnulib-tool: New option --local-symlink.
67454         (func_usage): Document it.
67455         (lsymbolic): New variable.
67456         (func_import, func_create_testdir): If --symlink was not specified,
67457         test whether --local-symlink was specified and the file comes from
67458         the local_gnulib_dir.
67459
67460 2006-11-12  Bruno Haible  <bruno@clisp.org>
67461
67462         * gnulib-tool (func_ln): New function.
67463         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67464
67465 2006-11-12  Bruno Haible  <bruno@clisp.org>
67466
67467         Finish support for source files in subdirectories.
67468         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67469         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67470         AUTOMAKE_OPTIONS.
67471         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67472
67473 2006-11-12  Bruno Haible  <bruno@clisp.org>
67474
67475         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67476         EXTRA_lib_SOURCES augmentation.
67477         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67478
67479 2006-11-12  Jim Meyering  <jim@meyering.net>
67480
67481         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67482         file descriptors.  This also averts a failure on systems with
67483         native openat support when a traversed directory lacks "x" access.
67484         * lib/fts_.h: Include "i-ring.h"
67485         (struct FTS) [fts_fd_ring]: New member.
67486         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67487         (FCHDIR): Add parentheses.
67488         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67489         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67490         When descending, rather than simply closing the previous
67491         fts_cwd_fd value, push that file descriptor onto the ring.
67492         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67493         (fts_open): Initialize the new fd_ring member.
67494         (fts_close): Clear the ring.
67495         (fts_safe_changedir): When possible, use our new fd_ring to skip
67496         the diropen and fstat and dev/ino comparison that would normally
67497         accompany a virtual `chdir ("..")'.
67498
67499         * modules/fts (Depends-on): Add i-ring.
67500         * modules/i-ring: New module.
67501         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67502         * m4/i-ring.m4: New file.
67503
67504 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67505
67506         * gnulib-tool (func_create_testdir): Fix replacement of
67507         `build-aux' in configure.ac.  Run autotools in gltests
67508         subdirectory.
67509         (func_create_testdir, func_create_megatestdir, test): There is
67510         no need for '--force' in most autotool invocations in a new
67511         tree.  Actually fail the whole test if any of the tools, or the
67512         configure or make stages fail.
67513
67514         Sync from Automake.
67515         * build-aux/gnupload: Revert last change.  Add pointer to upload
67516         instructions of the GNU Maintenance Instructions.
67517         Suggestion by Karl Berry.
67518
67519 2006-11-10  Jim Meyering  <jim@meyering.net>
67520
67521         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67522
67523 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67526         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67527         (bind_textdomain_codeset) [! ENABLE_NLS]:
67528         Evaluate all the arguments.  That way, callers get compatible behavior
67529         if the arguments have side effects.  Also, it avoids some GCC
67530         diagnostics in some cases; Joel E. Denny reported problems when Bison
67531         was configured with --enable-gcc-warnigs.
67532
67533 2006-11-10  Jim Meyering  <jim@meyering.net>
67534
67535         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67536         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67537         account.
67538
67539 2006-11-10  Jim Meyering  <jim@meyering.net>
67540
67541         * modules/inline: New file/module.
67542         * modules/xalloc (Files): Remove m4/inline.m4.
67543         (Depends-on): Add inline, instead.
67544         * modules/oset: Likewise.
67545         * modules/list: Likewise.
67546
67547 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67548
67549         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67550         Problem reported by Matthew Woehlke.
67551
67552 2006-11-09  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/tempname.c (gen_tempname): Remove variant that invokes
67555         __gen_tempname.
67556         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67557         __gen_tempname.
67558
67559 2006-11-08  Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67562         to 'yes' instead of 'cross-compiling'.
67563
67564 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * lib/quotearg.h (quotearg_free): New decl.
67567         * lib/quotearg.c (quotearg_free): New function.
67568         (slot0, nslots, slotvec0, slotvec):
67569         Now file-scope so that quotearg_free can get at them.
67570
67571 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67572
67573         Sync from Automake.
67574         * build-aux/gnupload: Add missing 'gnu' to example URL.
67575         Report by Karl Berry.
67576
67577 2006-11-08  Bruno Haible  <bruno@clisp.org>
67578
67579         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67580         Suggested by Paul Eggert.
67581
67582 2006-11-08  Jim Meyering  <jim@meyering.net>
67583
67584         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67585         It's already included if !_LIBC.
67586         (fts_safe_changedir): Add a comment.
67587
67588 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67591         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67592         Matthew Woehlke.
67593
67594         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67595         definitions up, to avoid colliding with change below.
67596         (static_inline) [HAVE_INLINE]: New macro.
67597         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67598         Provide extern decls when !HAVE_INLINE.  Do not define unless
67599         static_inline is defined, either by us or by xmalloc.c.  Use
67600         static_inline rather than static inline.
67601         (XCALLOC): Optimize sizeof(T) = 1 case.
67602         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67603
67604 2006-11-07  Bruno Haible  <bruno@clisp.org>
67605
67606         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67607         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67608         AC_C_INLINE.
67609         * modules/xalloc (Files): Add m4/inline.m4.
67610
67611 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67612
67613         * README: Fix typo.
67614         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67615         (Miscellanous Notes): ...from this.
67616
67617 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67620         Mention that offsetof should be used instead of sizeof.
67621         From Bruno Haible.
67622
67623 2006-11-07  Bruno Haible  <bruno@clisp.org>
67624
67625         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67626
67627 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67630         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67631         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67632         (gl_tree_add_before, gl_tree_add_after):
67633         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67634         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67635         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67636         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67637         (gl_linked_add_after, gl_linked_add_at): Likewise.
67638         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67639         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67640         (gl_tree_add_before, gl_tree_add_after): Likewise.
67641         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67642         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67643         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67644
67645 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67646
67647         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67648
67649 2006-11-06  Bruno Haible  <bruno@clisp.org>
67650
67651         * m4/inline.m4: New file.
67652         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67653         * modules/list (Files): Add m4/inline.m4.
67654         * modules/oset (Files): Likewise.
67655
67656 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * lib/idcache.c: Include <stddef.h>, for offsetof.
67659         (struct userid.name): Change from char * to a flexible array member.
67660         All uses changed.
67661         * modules/idcache (Depends-on): Add flexmember.
67662
67663         * MODULES.html.sh (Core language properties): New module flexmember.
67664         * modules/flexmember, m4/flexmember.m4: New files.
67665
67666         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67667         inline functions that are identical with the old xnmalloc_inline,
67668         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67669         that we can avoid some unnecessary integer multiplications and
67670         divisions in the common case where the element size is known at
67671         compile time.
67672         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67673         needed.
67674         (xnboundedmalloc): Remove.
67675         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67676         arguments, for consistency with rest of this header.
67677         (xcharalloc): Rewrite using XNMALLOC.
67678         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67679         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67680         versions have been moved to lib/xalloc.h and renamed to be the
67681         non-*_inline versions.
67682         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67683         and xnrealloc functions, since those functions are now inline and
67684         now call us.
67685         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67686         renaming described above.
67687         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67688         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67689         captures the dependency in AC_C_INLINE.
67690
67691         New module canonicalize-lgpl, proposed by Charles Wilson in
67692         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67693         with a few small changes afterwards.
67694         * MODULES.html.sh (File system functions): New module
67695         canonicalize-lgpl.
67696         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67697         and canonicalize_file_name.
67698         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67699         * modules/canonicalize-lgpl: New files.
67700
67701 2006-11-05  Bruno Haible  <bruno@clisp.org>
67702
67703         * gnulib-tool (func_import, func_create_testdir): Create directories
67704         also for files in subdirectories of lib/.
67705
67706 2006-11-05  Bruno Haible  <bruno@clisp.org>
67707
67708         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67709         ANSI C compliant.
67710
67711 2006-11-03  Bruno Haible  <bruno@clisp.org>
67712
67713         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67714         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67715         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67716         (xnboundedmalloc): New inline function.
67717         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67718         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67719         xmalloc.
67720         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67721         xmalloc.
67722         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67723         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67724         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67725         xmalloc.
67726         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67727         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67728         xmalloc.
67729         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67730         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67731         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67732         xmalloc.
67733         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67734         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67735         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67736         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67737         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67738         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67739         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67740
67741 2006-11-03  Bruno Haible  <bruno@clisp.org>
67742
67743         * lib/c-ctype.h [C++]: Define functions without name mangling.
67744         * lib/fwriteerror.h [C++]: Likewise.
67745         * lib/gcd.h [C++]: Likewise.
67746         * lib/linebreak.h [C++]: Likewise.
67747
67748 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67749
67750         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67751         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67752         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67753         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67754         Check for functions and headers just once.
67755         Check for declaration of canonicalize_file_name.
67756         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67757
67758 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67759
67760         * gnulib-tool (func_import): Fix typo in actioncmd.
67761
67762 2006-11-02  Bruno Haible  <bruno@clisp.org>
67763
67764         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67765         newline sequence in the Makefile.am snippet as a space, like "make"
67766         does.
67767         Reported by Roger Persson <perrog@gmail.com>.
67768
67769 2006-11-01  Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67772         already declared in <string.h>.
67773         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67774
67775 2006-11-01  Bruno Haible  <bruno@clisp.org>
67776
67777         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67778         * lib/strcase.h: Include <string.h>.
67779         (strcasecmp): Define to rpl_strcasecmp here.
67780
67781 2006-11-01  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67784
67785 2006-11-01  Eric Blake  <ebb9@byu.net>
67786
67787         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67788
67789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67790
67791 2006-10-29  Bruno Haible  <bruno@clisp.org>
67792
67793         Make it compile in C++ mode.
67794         * lib/full-write.c (full_rw): Add a cast.
67795
67796 2006-11-01  Bruno Haible  <bruno@clisp.org>
67797
67798         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67799         be POSIX compliant.
67800         Reported by Roger Persson <perrog@gmail.com>.
67801
67802 2006-11-01  Eric Blake  <ebb9@byu.net>
67803
67804         * lib/getopt_.h: Fix comments.
67805
67806 2006-10-31  Eric Blake  <ebb9@byu.net>
67807
67808         * modules/tmpdir (Depends-on): Add sys_stat.
67809         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67810         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67811         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67812         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67813         tempname.
67814
67815 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67816
67817         Avoid some C++ diagnostics reported by Bruno Haible.
67818         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67819         xmalloc.
67820         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67821         (struct slotvec): Move to top level.
67822         (quotearg_n_options): Rewrite to avoid xmalloc.
67823         * lib/xalloc.h (xcharalloc): New function.
67824         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67825         [defined __cplusplus]: Add function template that provides result
67826         type propagation.  This part of the change is from Bruno Haible.
67827
67828 2006-10-29  Bruno Haible  <bruno@clisp.org>
67829
67830         Make it compile in C++ mode.
67831         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67832         * lib/strnlen1.c (strnlen1): Cast memchr result.
67833         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67834         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67835         (create_temp_dir): Rename local variable 'template'.
67836         (compile_csharp_using_sscli): Add cast.
67837         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67838         * lib/findprog.c (find_in_path): Likewise.
67839         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67840         * lib/wait-process.c (register_slave_subprocess): Likewise.
67841
67842 2006-10-22  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/tsearch: New file.
67845         * lib/tsearch.h: New file.
67846         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67847         * m4/tsearch.m4: New file.
67848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67849
67850 2006-10-29  Eric Blake  <ebb9@byu.net>
67851
67852         * lib/arcfour.c: Assume config.h.
67853         * lib/arctwo.c: Likewise.
67854         * lib/base64.c: Likewise.
67855         * lib/check-version.c: Likewise.
67856         * lib/crc.c: Likewise.
67857         * lib/des.c: Likewise.
67858         * lib/gc-gnulib.c: Likewise.
67859         * lib/gc-libgcrypt.c: Likewise.
67860         * lib/gc-pbkdf2-sha1.c: Likewise.
67861         * lib/getaddrinfo.c: Likewise.
67862         * lib/getdelim.c: Likewise.
67863         * lib/getline.c: Likewise.
67864         * lib/hmac-md5.c: Likewise.
67865         * lib/hmac-sha1.c: Likewise.
67866         * lib/iconvme.c: Likewise.
67867         * lib/md2.c: Likewise.
67868         * lib/md4.c: Likewise.
67869         * lib/memxor.c: Likewise.
67870         * lib/read-file.c: Likewise.
67871         * lib/readline.c: Likewise.
67872         * lib/rijndael-alg-fst.c: Likewise.
67873         * lib/rijndael-api-fst.c: Likewise.
67874         * lib/xgetdomainname.c: Likewise.
67875
67876 2006-10-28  Eric Blake  <ebb9@byu.net>
67877
67878         * lib/xstrndup.c: Assume config.h.
67879
67880 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67883         stat-macros.h is now for our own macros, whereas stat_h is for
67884         macros in the <sys/stat.h> name space.
67885         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67886         (STAT_MACROS_H): Remove.
67887         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67888         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67889         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67890         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67891         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67892         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67893         Move these macros to ...
67894         * lib/stat_.h: here.  Don't include stat-macros.h.
67895         * lib/canonicalize.c: Don't include stat-macros.h.
67896         * lib/chown.c: Likewise.
67897         * lib/euidaccess.c: Likewise.
67898         * lib/file-type.c: Likewise.
67899         * lib/filemode.c: Likewise.
67900         * lib/glob.c: Likewise.
67901         * lib/isapipe.c: Likewise.
67902         * lib/lchown.c: Likewise.
67903         * lib/lstat.c: Likewise.
67904         * lib/mkdir-p.c: Likewise.
67905         * lib/rmdir.c: Likewise.
67906         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67908         unless mkdir isn't declared, to speed up 'configure'.
67909         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67910         would define all the S_* symbols.
67911         * modules/canonicalize (Depends-on):
67912         Depend on sys_stat, not stat-macros.
67913         * modules/chown: Likewise.
67914         * modules/euidaccess: Likewise.
67915         * modules/filemode: Likewise.
67916         * modules/file-type: Likewise.
67917         * modules/glob: Likewise.
67918         * modules/isapipe: Likewise.
67919         * modules/lchown: Likewise.
67920         * modules/lstat: Likewise.
67921         * modules/mkancesdirs: Likewise.
67922         * modules/rmdir: Likewise.
67923         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67924         * modules/modechange: Likewise.
67925         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67926         (configure.ac): Remove gl_STAT_MACROS.
67927         * modules/sys_stat (Depends-on): Remove stat-macros.
67928
67929 2006-10-27  Bruno Haible  <bruno@clisp.org>
67930
67931         * m4/signed.m4: Remove file.
67932         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67933         invocation.
67934         * modules/vasnprintf (Files): Remove m4/signed.m4.
67935
67936 2006-10-27  Bruno Haible  <bruno@clisp.org>
67937
67938         Update to GNU gettext 0.16.
67939         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67940         m4/inttypes-h.m4, m4/signed.m4.
67941         * m4/gettext.m4: Update to GNU gettext 0.16.
67942         * m4/intl.m4: New file, from GNU gettext.
67943         * m4/intldir.m4: New file, from GNU gettext.
67944         * config/srclist.txt: Update
67945
67946 2006-10-27  Eric Blake  <ebb9@byu.net>
67947
67948         * MODULES.html.sh: Document tempname.
67949         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67950         dependencies.
67951         (Files): Move lib/tempname.c...
67952         * modules/tempname: ...to this new module.
67953         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67954         (gl_PREREQ_TEMPNAME): Move...
67955         * m4/tempname.m4: ...to this new file.
67956         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67957         * modules/sys_stat (Depends-on): Add stat-macros.
67958         * lib/stat_.h (includes): Pick up stat macros.
67959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67960         if stat macros are broken.
67961         * lib/tempname.c (includes): No need to include "stat-macros.h".
67962         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67963         (direxists, __path_search) [!_LIBC]: Don't compile these in
67964         gnulib; the tmpdir module covers that.
67965         * lib/tempname.h: New file.
67966
67967 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67968
67969         * COPYING: Explain how gnulib-tool converts licence headers.
67970         Almost all wording by Eric Blake.
67971
67972 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67973
67974         * lib/mbchar.h (is_basic_table): Make read-only.
67975         * lib/mbchar.c (is_basic_table): Likewise.
67976         Reported by John Darrington.
67977
67978 2006-10-25  Bruno Haible  <bruno@clisp.org>
67979
67980         * lib/progname.h (set_program_name): Undefine before defining.
67981
67982 2006-10-25  Bruno Haible  <bruno@clisp.org>
67983
67984         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67985         false for non-gcc C++ compilers.
67986         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67987
67988 2006-10-24  Bruno Haible  <bruno@clisp.org>
67989
67990         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67991         iconv implementations like Irix iconv.
67992
67993 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * modules/vararrays: New file.
67996         * m4/vararrays.m4: New file, taken from diffutils.
67997         * MODULES.html.sh: New module vararrays.
67998
67999 2006-10-24  Karl Berry  <karl@gnu.org>
68000
68001         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68002         Don't call GNU Unix.
68003
68004 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68005
68006         * users.txt: Add Libtool.
68007
68008         Sync from Libtool:
68009
68010         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68013         to gnulib's policy of including config.h unconditionally.
68014
68015 2006-10-24  Bruno Haible  <bruno@clisp.org>
68016
68017         * modules/wcwidth (Files): Add m4/wint_t.m4.
68018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68019         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68020
68021 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68022
68023         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68024         to pacify GCC with some -W flags enabled.  Problem reported by
68025         Bruno Haible.
68026
68027 2006-10-24  Jim Meyering  <jim@meyering.net>
68028
68029         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68030         Reported by Karl Berry.
68031
68032 2006-10-23  Bruno Haible  <bruno@clisp.org>
68033
68034         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68035
68036 2006-10-24  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/gl_list.h: Use C comment style, not C++ comment style.
68039
68040 2006-10-23  Eric Blake  <ebb9@byu.net>
68041
68042         * lib/getaddrinfo.c (includes): Add missing include.
68043
68044 2006-10-23  Bruno Haible  <bruno@clisp.org>
68045             Paul Eggert  <eggert@cs.ucla.edu>
68046
68047         Ability to rename obstack_free.
68048         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68049         obstack_free.
68050         (obstack_free): Invoke the __obstack_free macro.
68051         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68052
68053 2006-10-23  Bruno Haible  <bruno@clisp.org>
68054             Paul Eggert  <eggert@cs.ucla.edu>
68055
68056         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68057         __argc, __argv from the declaration. (They are defined as macros on
68058         mingw.)
68059
68060 2006-10-22  Bruno Haible  <bruno@clisp.org>
68061
68062         * doc/gnulib-intro.texi: New file.
68063         * doc/gnulib.texi: Include it.
68064
68065 2006-10-21  Bruno Haible  <bruno@clisp.org>
68066
68067         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68068         "Introduction", "Miscellanous Notes", "Particular Modules".
68069
68070 2006-10-21  Bruno Haible  <bruno@clisp.org>
68071
68072         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68073         Change mostlyclean-local rule to avoid sh syntax error from bash
68074         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68075
68076 2006-10-23  Jim Meyering  <jim@meyering.net>
68077
68078         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68079         in place of snprintf.
68080
68081         * modules/inttostr (Files): Add lib/uinttostr.c.
68082         * lib/uinttostr.c (inttostr): New file/function.
68083         * lib/inttostr.h (uinttostr): Declare.
68084         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68085         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68086         Add uinttostr.
68087         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68088
68089 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         * lib/canonicalize.c (ELOOP): Define if not already defined.
68092         Problem reported by Bruno Haible in
68093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68094
68095 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68096
68097         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68098         Problem reported by Perry Smith and Ville Laurikari.
68099
68100         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68101         uses.
68102
68103 2006-10-19  Bruno Haible  <bruno@clisp.org>
68104
68105         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68106         for mingw.
68107
68108 2006-10-19  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68111         Needed for mingw.
68112
68113 2006-10-19  Bruno Haible  <bruno@clisp.org>
68114
68115         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68116
68117 2006-10-19  Bruno Haible  <bruno@clisp.org>
68118
68119         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68120         it.
68121
68122 2006-10-19  Bruno Haible  <bruno@clisp.org>
68123
68124         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68125         invocation.
68126
68127 2006-10-19  Bruno Haible  <bruno@clisp.org>
68128
68129         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68130         mountlist by default.
68131
68132 2006-10-16  Bruno Haible  <bruno@clisp.org>
68133
68134         * lib/c-strstr.c: Include c-strstr.h.
68135
68136 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68137
68138         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68139         in a slash.
68140
68141 2006-10-18  Bruno Haible  <bruno@clisp.org>
68142
68143         * lib/lock.h [C++]: Wrap definitions in extern "C".
68144
68145 2006-10-18  Bruno Haible  <bruno@clisp.org>
68146
68147         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68148         gl_LIBOBJS list.
68149
68150 2006-10-18  Bruno Haible  <bruno@clisp.org>
68151
68152         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68153
68154 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/xstrtol.h: Include gettext.h.
68157         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68158         Problem reported by Eric Blake.
68159         * modules/xstrtol (Depends-on): Add gettext-h.
68160
68161 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68162
68163         * lib/strftime.c (advance): New macro.
68164         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68165         incomplete type, so you can't add 0 to it.  Problem and patch
68166         reported by Eelco Dolstra for dietlibc.
68167
68168 2006-10-18  Jim Meyering  <jim@meyering.net>
68169
68170         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68171         type for a local, and rename it: s/up/user_proc/.
68172
68173 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68174
68175         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68176         READ_UTMP_USER_PROCESS.
68177         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68178
68179 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68182         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68183
68184 2006-10-17  Eric Blake  <ebb9@byu.net>
68185
68186         * lib/sigprocmask.c (sigprocmask): Fix typo.
68187
68188         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68189
68190         * modules/clean-temp (Makefile.am): Don't add to make output...
68191         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68192         config.h.
68193
68194 2006-10-17  Bruno Haible  <bruno@clisp.org>
68195
68196         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68197         differently if DEFAULT_TEXT_DOMAIN is set.
68198
68199 2006-10-16  Bruno Haible  <bruno@clisp.org>
68200
68201         * lib/clean-temp.c: Include fwriteerror.h.
68202
68203 2006-10-16  Bruno Haible  <bruno@clisp.org>
68204
68205         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68206
68207 2006-10-16  Bruno Haible  <bruno@clisp.org>
68208
68209         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68210         * lib/sigprocmask.h: Include <sys/types.h>.
68211         (sigset_t): Use the system's definition if present.
68212
68213 2006-10-17  Eric Blake  <ebb9@byu.net>
68214
68215         * lib/xvasprintf.c (includes): Assume config.h.
68216         * lib/xasprintf.c (includes): Likewise.
68217
68218 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68219
68220         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68221         at least as wide as intmax_t.
68222
68223 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68224
68225         (Imported from Automake.)
68226         * build-aux/gnupload: Update to version 1.1 of directive file.
68227
68228 2006-10-16  Eric Blake  <ebb9@byu.net>
68229
68230         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68231         match Automake 1.10a.
68232
68233 2006-10-14  Bruno Haible  <bruno@clisp.org>
68234
68235         * modules/sigprocmask: New file.
68236         * lib/sigprocmask.h: New file.
68237         * lib/sigprocmask.c: New file.
68238         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68239         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68240         request sigprocmask.o.
68241         (gl_PREREQ_SIGPROCMASK): New macro.
68242         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68243         (Depends-on): Add sigprocmask.
68244         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68245         gt_SIGNALBLOCKING. Test for 'raise' only once.
68246         * lib/fatal-signal.c: Include sigprocmask.h.
68247         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68248         unblock_fatal_signals): Define always.
68249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68250         sigprocmask.
68251
68252 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         Sync from Automake.
68255         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68256         which incorrectly sets the mode of an existing destination
68257         directory.  In some cases the unpatched install-sh could do the
68258         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68259         system.  We hope this is rare in practice, but it's clearly worth
68260         fixing.  Problem reported by Alex Unleashed in
68261         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68262         Also, don't bother to check for -m bugs unless we're using -m;
68263         suggested by Stepan Kasal.
68264
68265 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68266
68267         Sync from Automake.
68268         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68269         `-c' flag, so they appear at the same position as in %FASTDEP%
68270         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68271         which ignores unknown options only after the first non-option.
68272         Bug report against M4 by Nelson H. F. Beebe.
68273
68274 2006-10-13  Jim Meyering  <jim@meyering.net>
68275
68276         Fix a bug in yesterday's change.
68277         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68278         p->fts_statp->st_dev would be used uninitialized.
68279         Ensures that we always call fts_stat on the very first entry.
68280         Miklos Szeredi reported that find -xdev stopped working.
68281
68282 2006-10-12  Bruno Haible  <bruno@clisp.org>
68283
68284         * gnulib-tool (func_get_automake_snippet): Append an automatically
68285         computed EXTRA_DIST augmentation.
68286         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68287         * modules/alloca-opt (Makefile.am): Likewise.
68288         * modules/allocsa (Makefile.am): Likewise.
68289         * modules/arcfour (Makefile.am): Likewise.
68290         * modules/arctwo (Makefile.am): Likewise.
68291         * modules/argmatch (Makefile.am): Likewise.
68292         * modules/argz (Makefile.am): Likewise.
68293         * modules/atexit (Makefile.am): Likewise.
68294         * modules/backupfile (Makefile.am): Likewise.
68295         * modules/byteswap (Makefile.am): Likewise.
68296         * modules/c-strtod (Makefile.am): Likewise.
68297         * modules/c-strtold (Makefile.am): Likewise.
68298         * modules/calloc (Makefile.am): Likewise.
68299         * modules/canon-host (Makefile.am): Likewise.
68300         * modules/canonicalize (Makefile.am): Likewise.
68301         * modules/chdir-long (Makefile.am): Likewise.
68302         * modules/chdir-safer (Makefile.am): Likewise.
68303         * modules/check-version (Makefile.am): Likewise.
68304         * modules/chown (Makefile.am): Likewise.
68305         * modules/cloexec (Makefile.am): Likewise.
68306         * modules/close-stream (Makefile.am): Likewise.
68307         * modules/closeout (Makefile.am): Likewise.
68308         * modules/crc (Makefile.am): Likewise.
68309         * modules/csharpexec (Makefile.am): Likewise.
68310         * modules/cycle-check (Makefile.am): Likewise.
68311         * modules/des (Makefile.am): Likewise.
68312         * modules/dev-ino (Makefile.am): Likewise.
68313         * modules/dirfd (Makefile.am): Likewise.
68314         * modules/dirname (Makefile.am): Likewise.
68315         * modules/dup2 (Makefile.am): Likewise.
68316         * modules/eealloc (Makefile.am): Likewise.
68317         * modules/error (Makefile.am): Likewise.
68318         * modules/euidaccess (Makefile.am): Likewise.
68319         * modules/exclude (Makefile.am): Likewise.
68320         * modules/exitfail (Makefile.am): Likewise.
68321         * modules/fcntl-safer (Makefile.am): Likewise.
68322         * modules/fcntl (Makefile.am): Likewise.
68323         * modules/file-type (Makefile.am): Likewise.
68324         * modules/fileblocks (Makefile.am): Likewise.
68325         * modules/filemode (Makefile.am): Likewise.
68326         * modules/filenamecat (Makefile.am): Likewise.
68327         * modules/fnmatch (Makefile.am): Likewise.
68328         * modules/fopen-safer (Makefile.am): Likewise.
68329         * modules/fpending (Makefile.am): Likewise.
68330         * modules/fprintftime (Makefile.am): Likewise.
68331         * modules/free (Makefile.am): Likewise.
68332         * modules/fsusage (Makefile.am): Likewise.
68333         * modules/ftruncate (Makefile.am): Likewise.
68334         * modules/fts (Makefile.am): Likewise.
68335         * modules/gc-arcfour (Makefile.am): Likewise.
68336         * modules/gc-des (Makefile.am): Likewise.
68337         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68338         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68339         * modules/gc-md4 (Makefile.am): Likewise.
68340         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68341         * modules/gc-sha1 (Makefile.am): Likewise.
68342         * modules/gc (Makefile.am): Likewise.
68343         * modules/getaddrinfo (Makefile.am): Likewise.
68344         * modules/getcwd (Makefile.am): Likewise.
68345         * modules/getdelim (Makefile.am): Likewise.
68346         * modules/getdomainname (Makefile.am): Likewise.
68347         * modules/getgroups (Makefile.am): Likewise.
68348         * modules/gethostname (Makefile.am): Likewise.
68349         * modules/gethrxtime (Makefile.am): Likewise.
68350         * modules/getline (Makefile.am): Likewise.
68351         * modules/getloadavg (Makefile.am): Likewise.
68352         * modules/getlogin_r (Makefile.am): Likewise.
68353         * modules/getndelim2 (Makefile.am): Likewise.
68354         * modules/getopt (Makefile.am): Likewise.
68355         * modules/getpagesize (Makefile.am): Likewise.
68356         * modules/getpass-gnu (Makefile.am): Likewise.
68357         * modules/getpass (Makefile.am): Likewise.
68358         * modules/getsubopt (Makefile.am): Likewise.
68359         * modules/gettime (Makefile.am): Likewise.
68360         * modules/gettimeofday (Makefile.am): Likewise.
68361         * modules/getugroups (Makefile.am): Likewise.
68362         * modules/getusershell (Makefile.am): Likewise.
68363         * modules/glob (Makefile.am): Likewise.
68364         * modules/group-member (Makefile.am): Likewise.
68365         * modules/hard-locale (Makefile.am): Likewise.
68366         * modules/hash (Makefile.am): Likewise.
68367         * modules/hmac-md5 (Makefile.am): Likewise.
68368         * modules/hmac-sha1 (Makefile.am): Likewise.
68369         * modules/human (Makefile.am): Likewise.
68370         * modules/idcache (Makefile.am): Likewise.
68371         * modules/imaxabs (Makefile.am): Likewise.
68372         * modules/imaxdiv (Makefile.am): Likewise.
68373         * modules/inet_ntop (Makefile.am): Likewise.
68374         * modules/inet_pton (Makefile.am): Likewise.
68375         * modules/intprops (Makefile.am): Likewise.
68376         * modules/inttostr (Makefile.am): Likewise.
68377         * modules/inttypes (Makefile.am): Likewise.
68378         * modules/isapipe (Makefile.am): Likewise.
68379         * modules/javaversion (Makefile.am): Likewise.
68380         * modules/lchmod (Makefile.am): Likewise.
68381         * modules/lchown (Makefile.am): Likewise.
68382         * modules/localcharset (Makefile.am): Likewise.
68383         * modules/long-options (Makefile.am): Likewise.
68384         * modules/lstat (Makefile.am): Likewise.
68385         * modules/malloc (Makefile.am): Likewise.
68386         * modules/mathl (Makefile.am): Likewise.
68387         * modules/mbchar (Makefile.am): Likewise.
68388         * modules/md2 (Makefile.am): Likewise.
68389         * modules/md4 (Makefile.am): Likewise.
68390         * modules/md5 (Makefile.am): Likewise.
68391         * modules/memcasecmp (Makefile.am): Likewise.
68392         * modules/memchr (Makefile.am): Likewise.
68393         * modules/memcmp (Makefile.am): Likewise.
68394         * modules/memcoll (Makefile.am): Likewise.
68395         * modules/memcpy (Makefile.am): Likewise.
68396         * modules/memmem (Makefile.am): Likewise.
68397         * modules/memmove (Makefile.am): Likewise.
68398         * modules/mempcpy (Makefile.am): Likewise.
68399         * modules/memrchr (Makefile.am): Likewise.
68400         * modules/memset (Makefile.am): Likewise.
68401         * modules/memxor (Makefile.am): Likewise.
68402         * modules/mkancesdirs (Makefile.am): Likewise.
68403         * modules/mkdir-p (Makefile.am): Likewise.
68404         * modules/mkdir (Makefile.am): Likewise.
68405         * modules/mkdtemp (Makefile.am): Likewise.
68406         * modules/mkstemp (Makefile.am): Likewise.
68407         * modules/mktime (Makefile.am): Likewise.
68408         * modules/modechange (Makefile.am): Likewise.
68409         * modules/mountlist (Makefile.am): Likewise.
68410         * modules/nanosleep (Makefile.am): Likewise.
68411         * modules/obstack (Makefile.am): Likewise.
68412         * modules/openat (Makefile.am): Likewise.
68413         * modules/pagealign_alloc (Makefile.am): Likewise.
68414         * modules/pathmax (Makefile.am): Likewise.
68415         * modules/physmem (Makefile.am): Likewise.
68416         * modules/poll (Makefile.am): Likewise.
68417         * modules/posixtm (Makefile.am): Likewise.
68418         * modules/posixver (Makefile.am): Likewise.
68419         * modules/putenv (Makefile.am): Likewise.
68420         * modules/quote (Makefile.am): Likewise.
68421         * modules/quotearg (Makefile.am): Likewise.
68422         * modules/raise (Makefile.am): Likewise.
68423         * modules/read-file (Makefile.am): Likewise.
68424         * modules/readline (Makefile.am): Likewise.
68425         * modules/readlink (Makefile.am): Likewise.
68426         * modules/readtokens (Makefile.am): Likewise.
68427         * modules/readutmp (Makefile.am): Likewise.
68428         * modules/realloc (Makefile.am): Likewise.
68429         * modules/regex (Makefile.am): Likewise.
68430         * modules/rename-dest-slash (Makefile.am): Likewise.
68431         * modules/rename (Makefile.am): Likewise.
68432         * modules/rijndael (Makefile.am): Likewise.
68433         * modules/rmdir (Makefile.am): Likewise.
68434         * modules/rpmatch (Makefile.am): Likewise.
68435         * modules/safe-read (Makefile.am): Likewise.
68436         * modules/safe-write (Makefile.am): Likewise.
68437         * modules/same-inode (Makefile.am): Likewise.
68438         * modules/same (Makefile.am): Likewise.
68439         * modules/save-cwd (Makefile.am): Likewise.
68440         * modules/savedir (Makefile.am): Likewise.
68441         * modules/setenv (Makefile.am): Likewise.
68442         * modules/settime (Makefile.am): Likewise.
68443         * modules/sha1 (Makefile.am): Likewise.
68444         * modules/sig2str (Makefile.am): Likewise.
68445         * modules/snprintf (Makefile.am): Likewise.
68446         * modules/stat-macros (Makefile.am): Likewise.
68447         * modules/stat-time (Makefile.am): Likewise.
68448         * modules/stdbool (Makefile.am): Likewise.
68449         * modules/stdint (Makefile.am): Likewise.
68450         * modules/stdlib-safer (Makefile.am): Likewise.
68451         * modules/stpcpy (Makefile.am): Likewise.
68452         * modules/stpncpy (Makefile.am): Likewise.
68453         * modules/strcase (Makefile.am): Likewise.
68454         * modules/strcasestr (Makefile.am): Likewise.
68455         * modules/strchrnul (Makefile.am): Likewise.
68456         * modules/strcspn (Makefile.am): Likewise.
68457         * modules/strdup (Makefile.am): Likewise.
68458         * modules/strerror (Makefile.am): Likewise.
68459         * modules/strftime (Makefile.am): Likewise.
68460         * modules/strndup (Makefile.am): Likewise.
68461         * modules/strnlen (Makefile.am): Likewise.
68462         * modules/strpbrk (Makefile.am): Likewise.
68463         * modules/strsep (Makefile.am): Likewise.
68464         * modules/strstr (Makefile.am): Likewise.
68465         * modules/strtod (Makefile.am): Likewise.
68466         * modules/strtoimax (Makefile.am): Likewise.
68467         * modules/strtok_r (Makefile.am): Likewise.
68468         * modules/strtol (Makefile.am): Likewise.
68469         * modules/strtoll (Makefile.am): Likewise.
68470         * modules/strtoul (Makefile.am): Likewise.
68471         * modules/strtoull (Makefile.am): Likewise.
68472         * modules/strtoumax (Makefile.am): Likewise.
68473         * modules/strverscmp (Makefile.am): Likewise.
68474         * modules/sys_socket (Makefile.am): Likewise.
68475         * modules/sys_stat (Makefile.am): Likewise.
68476         * modules/sysexits (Makefile.am): Likewise.
68477         * modules/time_r (Makefile.am): Likewise.
68478         * modules/timegm (Makefile.am): Likewise.
68479         * modules/timespec (Makefile.am): Likewise.
68480         * modules/tmpfile-safer (Makefile.am): Likewise.
68481         * modules/trim (Makefile.am): Likewise.
68482         * modules/unistd-safer (Makefile.am): Likewise.
68483         * modules/unlinkdir (Makefile.am): Likewise.
68484         * modules/unlocked-io (Makefile.am): Likewise.
68485         * modules/userspec (Makefile.am): Likewise.
68486         * modules/utime (Makefile.am): Likewise.
68487         * modules/utimecmp (Makefile.am): Likewise.
68488         * modules/utimens (Makefile.am): Likewise.
68489         * modules/vasnprintf (Makefile.am): Likewise.
68490         * modules/vasprintf (Makefile.am): Likewise.
68491         * modules/vsnprintf (Makefile.am): Likewise.
68492         * modules/xalloc (Makefile.am): Likewise.
68493         * modules/xgetcwd (Makefile.am): Likewise.
68494         * modules/xnanosleep (Makefile.am): Likewise.
68495         * modules/xreadlink (Makefile.am): Likewise.
68496         * modules/xstrtod (Makefile.am): Likewise.
68497         * modules/xstrtol (Makefile.am): Likewise.
68498         * modules/xstrtold (Makefile.am): Likewise.
68499         * modules/yesno (Makefile.am): Likewise.
68500         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68501
68502 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * modules/error (Makefile.am): Distribute files through
68505         EXTRA_DIST, not lib_SOURCES.
68506
68507 2006-10-12  Eric Blake  <ebb9@byu.net>
68508
68509         * modules/error (Makefile.am): Distribute files in /lib.
68510         * modules/obstack (Makefile.am): Likewise.
68511
68512 2006-10-12  Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/acl (Makefile.am): Distribute all files in lib/ through
68515         EXTRA_DIST.
68516         * modules/arcfour (Makefile.am): Likewise.
68517         * modules/arctwo (Makefile.am): Likewise.
68518         * modules/argmatch (Makefile.am): Likewise.
68519         * modules/argz (Makefile.am): Likewise.
68520         * modules/atexit (Makefile.am): Likewise.
68521         * modules/backupfile (Makefile.am): Likewise.
68522         * modules/c-strtod (Makefile.am): Likewise.
68523         * modules/c-strtold (Makefile.am): Likewise.
68524         * modules/calloc (Makefile.am): Likewise.
68525         * modules/canon-host (Makefile.am): Likewise.
68526         * modules/canonicalize (Makefile.am): Likewise.
68527         * modules/chdir-long (Makefile.am): Likewise.
68528         * modules/chdir-safer (Makefile.am): Likewise.
68529         * modules/check-version (Makefile.am): Likewise.
68530         * modules/chown (Makefile.am): Likewise.
68531         * modules/cloexec (Makefile.am): Likewise.
68532         * modules/close-stream (Makefile.am): Likewise.
68533         * modules/closeout (Makefile.am): Likewise.
68534         * modules/crc (Makefile.am): Likewise.
68535         * modules/cycle-check (Makefile.am): Likewise.
68536         * modules/des (Makefile.am): Likewise.
68537         * modules/dirfd (Makefile.am): Likewise.
68538         * modules/dirname (Makefile.am): Likewise.
68539         * modules/dup2 (Makefile.am): Likewise.
68540         * modules/euidaccess (Makefile.am): Likewise.
68541         * modules/exclude (Makefile.am): Likewise.
68542         * modules/exitfail (Makefile.am): Likewise.
68543         * modules/fcntl-safer (Makefile.am): Likewise.
68544         * modules/file-type (Makefile.am): Likewise.
68545         * modules/fileblocks (Makefile.am): Likewise.
68546         * modules/filemode (Makefile.am): Likewise.
68547         * modules/filenamecat (Makefile.am): Likewise.
68548         * modules/fnmatch (Makefile.am): Likewise.
68549         * modules/fopen-safer (Makefile.am): Likewise.
68550         * modules/fpending (Makefile.am): Likewise.
68551         * modules/fprintftime (Makefile.am): Likewise.
68552         * modules/free (Makefile.am): Likewise.
68553         * modules/fsusage (Makefile.am): Likewise.
68554         * modules/ftruncate (Makefile.am): Likewise.
68555         * modules/fts (Makefile.am): Likewise.
68556         * modules/gc (Makefile.am): Likewise.
68557         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68558         * modules/getaddrinfo (Makefile.am): Likewise.
68559         * modules/getcwd (Makefile.am): Likewise.
68560         * modules/getdelim (Makefile.am): Likewise.
68561         * modules/getdomainname (Makefile.am): Likewise.
68562         * modules/getgroups (Makefile.am): Likewise.
68563         * modules/gethostname (Makefile.am): Likewise.
68564         * modules/gethrxtime (Makefile.am): Likewise.
68565         * modules/getline (Makefile.am): Likewise.
68566         * modules/getloadavg (Makefile.am): Likewise.
68567         * modules/getlogin_r (Makefile.am): Likewise.
68568         * modules/getopt (Makefile.am): Likewise.
68569         * modules/getpass (Makefile.am): Likewise.
68570         * modules/getpass-gnu (Makefile.am): Likewise.
68571         * modules/getsubopt (Makefile.am): Likewise.
68572         * modules/gettime (Makefile.am): Likewise.
68573         * modules/gettimeofday (Makefile.am): Likewise.
68574         * modules/getugroups (Makefile.am): Likewise.
68575         * modules/getusershell (Makefile.am): Likewise.
68576         * modules/glob (Makefile.am): Likewise.
68577         * modules/group-member (Makefile.am): Likewise.
68578         * modules/hard-locale (Makefile.am): Likewise.
68579         * modules/hash (Makefile.am): Likewise.
68580         * modules/hmac-md5 (Makefile.am): Likewise.
68581         * modules/hmac-sha1 (Makefile.am): Likewise.
68582         * modules/human (Makefile.am): Likewise.
68583         * modules/idcache (Makefile.am): Likewise.
68584         * modules/imaxabs (Makefile.am): Likewise.
68585         * modules/imaxdiv (Makefile.am): Likewise.
68586         * modules/inet_ntop (Makefile.am): Likewise.
68587         * modules/inet_pton (Makefile.am): Likewise.
68588         * modules/inttostr (Makefile.am): Likewise.
68589         * modules/isapipe (Makefile.am): Likewise.
68590         * modules/lchown (Makefile.am): Likewise.
68591         * modules/long-options (Makefile.am): Likewise.
68592         * modules/lstat (Makefile.am): Likewise.
68593         * modules/malloc (Makefile.am): Likewise.
68594         * modules/mathl (Makefile.am): Likewise.
68595         * modules/mbchar (Makefile.am): Likewise.
68596         * modules/md2 (Makefile.am): Likewise.
68597         * modules/md4 (Makefile.am): Likewise.
68598         * modules/md5 (Makefile.am): Likewise.
68599         * modules/memcasecmp (Makefile.am): Likewise.
68600         * modules/memchr (Makefile.am): Likewise.
68601         * modules/memcmp (Makefile.am): Likewise.
68602         * modules/memcoll (Makefile.am): Likewise.
68603         * modules/memcpy (Makefile.am): Likewise.
68604         * modules/memmem (Makefile.am): Likewise.
68605         * modules/memmove (Makefile.am): Likewise.
68606         * modules/mempcpy (Makefile.am): Likewise.
68607         * modules/memrchr (Makefile.am): Likewise.
68608         * modules/memset (Makefile.am): Likewise.
68609         * modules/memxor (Makefile.am): Likewise.
68610         * modules/mkancesdirs (Makefile.am): Likewise.
68611         * modules/mkdir (Makefile.am): Likewise.
68612         * modules/mkdir-p (Makefile.am): Likewise.
68613         * modules/mkdtemp (Makefile.am): Likewise.
68614         * modules/mkstemp (Makefile.am): Likewise.
68615         * modules/mktime (Makefile.am): Likewise.
68616         * modules/modechange (Makefile.am): Likewise.
68617         * modules/mountlist (Makefile.am): Likewise.
68618         * modules/nanosleep (Makefile.am): Likewise.
68619         * modules/openat (Makefile.am): Likewise.
68620         * modules/pagealign_alloc (Makefile.am): Likewise.
68621         * modules/physmem (Makefile.am): Likewise.
68622         * modules/poll (Makefile.am): Likewise.
68623         * modules/posixtm (Makefile.am): Likewise.
68624         * modules/posixver (Makefile.am): Likewise.
68625         * modules/putenv (Makefile.am): Likewise.
68626         * modules/quote (Makefile.am): Likewise.
68627         * modules/quotearg (Makefile.am): Likewise.
68628         * modules/raise (Makefile.am): Likewise.
68629         * modules/read-file (Makefile.am): Likewise.
68630         * modules/readline (Makefile.am): Likewise.
68631         * modules/readlink (Makefile.am): Likewise.
68632         * modules/readtokens (Makefile.am): Likewise.
68633         * modules/readutmp (Makefile.am): Likewise.
68634         * modules/realloc (Makefile.am): Likewise.
68635         * modules/regex (Makefile.am): Likewise.
68636         * modules/rename (Makefile.am): Likewise.
68637         * modules/rename-dest-slash (Makefile.am): Likewise.
68638         * modules/rijndael (Makefile.am): Likewise.
68639         * modules/rmdir (Makefile.am): Likewise.
68640         * modules/rpmatch (Makefile.am): Likewise.
68641         * modules/safe-read (Makefile.am): Likewise.
68642         * modules/safe-write (Makefile.am): Likewise.
68643         * modules/same (Makefile.am): Likewise.
68644         * modules/save-cwd (Makefile.am): Likewise.
68645         * modules/savedir (Makefile.am): Likewise.
68646         * modules/setenv (Makefile.am): Likewise.
68647         * modules/settime (Makefile.am): Likewise.
68648         * modules/sha1 (Makefile.am): Likewise.
68649         * modules/sig2str (Makefile.am): Likewise.
68650         * modules/snprintf (Makefile.am): Likewise.
68651         * modules/stdlib-safer (Makefile.am): Likewise.
68652         * modules/stpcpy (Makefile.am): Likewise.
68653         * modules/stpncpy (Makefile.am): Likewise.
68654         * modules/strcase (Makefile.am): Likewise.
68655         * modules/strcasestr (Makefile.am): Likewise.
68656         * modules/strchrnul (Makefile.am): Likewise.
68657         * modules/strcspn (Makefile.am): Likewise.
68658         * modules/strdup (Makefile.am): Likewise.
68659         * modules/strerror (Makefile.am): Likewise.
68660         * modules/strftime (Makefile.am): Likewise.
68661         * modules/strndup (Makefile.am): Likewise.
68662         * modules/strnlen (Makefile.am): Likewise.
68663         * modules/strpbrk (Makefile.am): Likewise.
68664         * modules/strsep (Makefile.am): Likewise.
68665         * modules/strstr (Makefile.am): Likewise.
68666         * modules/strtod (Makefile.am): Likewise.
68667         * modules/strtoimax (Makefile.am): Likewise.
68668         * modules/strtok_r (Makefile.am): Likewise.
68669         * modules/strtol (Makefile.am): Likewise.
68670         * modules/strtoll (Makefile.am): Likewise.
68671         * modules/strtoul (Makefile.am): Likewise.
68672         * modules/strtoull (Makefile.am): Likewise.
68673         * modules/strtoumax (Makefile.am): Likewise.
68674         * modules/strverscmp (Makefile.am): Likewise.
68675         * modules/time_r (Makefile.am): Likewise.
68676         * modules/timegm (Makefile.am): Likewise.
68677         * modules/tmpfile-safer (Makefile.am): Likewise.
68678         * modules/unistd-safer (Makefile.am): Likewise.
68679         * modules/unlinkdir (Makefile.am): Likewise.
68680         * modules/userspec (Makefile.am): Likewise.
68681         * modules/utime (Makefile.am): Likewise.
68682         * modules/utimecmp (Makefile.am): Likewise.
68683         * modules/utimens (Makefile.am): Likewise.
68684         * modules/vasnprintf (Makefile.am): Likewise.
68685         * modules/vasprintf (Makefile.am): Likewise.
68686         * modules/vsnprintf (Makefile.am): Likewise.
68687         * modules/xalloc (Makefile.am): Likewise.
68688         * modules/xgetcwd (Makefile.am): Likewise.
68689         * modules/xnanosleep (Makefile.am): Likewise.
68690         * modules/xreadlink (Makefile.am): Likewise.
68691         * modules/xstrtod (Makefile.am): Likewise.
68692         * modules/xstrtol (Makefile.am): Likewise.
68693         * modules/xstrtold (Makefile.am): Likewise.
68694         * modules/yesno (Makefile.am): Likewise.
68695
68696 2006-10-12  Jim Meyering  <jim@meyering.net>
68697
68698         * m4/getloadavg.m4: Revert the change below.
68699
68700         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68701         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68702         fail with a symlink, which is what coreutils' ./bootstrap now
68703         creates by default.
68704
68705 2006-10-12  Bruno Haible  <bruno@clisp.org>
68706
68707         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68708         mingw.
68709         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68710         MSVC and mingw explicitly.
68711
68712 2006-10-11  Simon Josefsson  <jas@extundo.com>
68713             Bruno Haible  <bruno@clisp.org>
68714
68715         Add support for multiple gnulib-tool invocations in the scope of a
68716         single configure.ac file.
68717         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68718         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68719         with the same contents as the _LIBADD variable.
68720         (func_emit_initmacro_start, func_emit_initmacro_end,
68721         func_emit_initmacro_done): New functions.
68722         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68723         gl_LIBOBJS and gl_LTLIBOBJS.
68724
68725 2006-10-11  Bruno Haible  <bruno@clisp.org>
68726
68727         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68728         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68729         autoreconf. Instead, invoke autopoint explicitly but move back the
68730         *.m4 files from gnulib.
68731
68732 2006-10-11  Bruno Haible  <bruno@clisp.org>
68733
68734         * gnulib-tool (func_usage): Make module names after --create-testdir
68735         optional.
68736         (func_create_testdir): If no module was specified, use nearly all
68737         modules.
68738
68739 2006-10-12  Jim Meyering  <jim@meyering.net>
68740
68741         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68742         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68743         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68744         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68745         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68746         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68747         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68748         (fts_set_stat_required): New function.
68749         (fts_open): Defer the calls to fts_stat, if possible or requested.
68750         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68751         into fts_stat itself.
68752         (fts_read): Perform any required (deferred) fts_stat call.
68753         (fts_build): Likewise, for the directory we're about to open and read.
68754         In the readdir loop, carefully decide whether each entry will require
68755         an eventual call to fts_stat, using dirent.d_type info if available.
68756         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68757         a command line argument into this function.  Update all callers.
68758         Map a return value of FTS_DOT to FTS_D for a command line argument.
68759         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68760         Thanks to Miklos Szeredi for his tenacity and for the initial
68761         bug report about "find" failing on a FUSE-based file system.
68762
68763         * lib/fts.c (fts_open): Use consistent indentation.
68764
68765 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68768         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68769         reported by Jim Meyering.  All uses of cache variables renamed
68770         to match Autoconf's.
68771         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68772         the other one.
68773
68774         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68775         Fix misspelling in diagnostic.
68776
68777 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68780         defined.  Problem reported by Matthew Woehlke.
68781
68782         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68783         Add support for Tandem NonStop R series.
68784         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68785         Use new macro.
68786
68787         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68788         (has_trailing_slash): Omit size arg; all callers changed.
68789         Omit 'inline', since it doesn't help performance and we'd
68790         need to configure it.
68791         Don't count //, ///, etc. as having a trailing slash.
68792         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68793         (rpl_rename_dest_slash): On failure, use rename's errno rather
68794         than (in some cases) an incorrect or junk errno.
68795         Simplify code by removing need to compute length; this does
68796         cause it to make two passes instead of one over the file name,
68797         but it's worth it.
68798
68799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68800         change, since Autoconf's version may no longer be appropriate now
68801         that we are using CVS Autoconf's version.  Add support for Tandem.
68802
68803 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68804             Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68807         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68808         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68809         gl_AC_TYPE_LONG_LONG.
68810
68811         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68812         instead of HAVE_LONG_LONG.
68813         * lib/printf-args.c (printf_fetchargs): Likewise.
68814         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68815         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68816         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68817         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68818         gl_AC_TYPE_LONG_LONG.
68819
68820 2006-10-11  Bruno Haible  <bruno@clisp.org>
68821
68822         * m4/longlong.m4: Add comments.
68823         * m4/ulonglong.m4: Likewise.
68824
68825 2006-10-10  Bruno Haible  <bruno@clisp.org>
68826
68827         Make it possible to #define stpcpy, strdup to aliases.
68828         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68829         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68830
68831 2006-10-10  Bruno Haible  <bruno@clisp.org>
68832
68833         Make it possible to #define gcd to an alias.
68834         * lib/gcd.c: Include config.h.
68835
68836 2006-10-10  Bruno Haible  <bruno@clisp.org>
68837
68838         Make it possible to #define c_isascii to an alias.
68839         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68840         defined. Undefine the macros before defining them, to avoid gcc
68841         warnings.
68842         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68843         define NO_C_CTYPE_MACROS early.
68844
68845 2006-10-10  Bruno Haible  <bruno@clisp.org>
68846
68847         Make it possible to #define set_program_name to an alias.
68848         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68849         ENABLE_RELOCATABLE early.
68850
68851 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68852
68853         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68854         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68855         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68856         More generally, don't assume that 64-bit signed int is available
68857         if unsigned int is, and vice versa.
68858         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68859         unsigned symbols, not on their signed counterparts.
68860         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68861         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68862         (UINT64_C, UINTMAX_C):
68863         Likewise.
68864         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68865         unsigned counterparts.
68866         (Have_long_long, Unsigned): New macros.
68867         (Int): Renamed from INT.
68868         (strtoimax): Use the new macros.
68869         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68870         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68871         * modules/inttypes (inttypes.h): Substitute
68872         HAVE_UNSIGNED_LONG_LONG_INT.
68873         * modules/stdint (stdint.h): Likewise.
68874         (Files): Add m4/ulonglong.m4.
68875
68876 2006-10-10  Bruno Haible  <bruno@clisp.org>
68877
68878         Fix a gcc -Wshadow warning.
68879         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68880         to 'bucket'.
68881         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68882         gl_linked_indexof_from_to): Likewise.
68883         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68884         Likewise.
68885         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68886         Likewise.
68887         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68888         Reported by Eric Blake.
68889
68890 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68893         for NetBSD.  Problem reported by Bruno Haible.
68894
68895 2006-10-09  Jim Meyering  <jim@meyering.net>
68896
68897         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68898         Patch from Bruno Haible.
68899
68900 2006-10-09  Jim Meyering  <jim@meyering.net>
68901
68902         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68903         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68904         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68905
68906 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         Don't include <config.h> twice; this doesn't work in some cases,
68909         e.g., when config.h has "#define intmax_t long long int" and
68910         we include <config.h>, <inttypes.h>, <config.h> in that order.
68911         Problem reported by Matthew Woehlke in:
68912         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68913         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68914         * lib/fts-cycle.c: Don't include config.h.
68915         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68916         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68917         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68918         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68919         inttypes.h.
68920         * lib/xstrtoumax.c: Likewise.
68921         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68922         __strtol and the like, so that this module is more like its siblings.
68923         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68924         Remove; no longer needed now that we assume gnulib inttypes.h.
68925
68926 2006-10-08  Bruno Haible  <bruno@clisp.org>
68927
68928         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68929         option.
68930
68931 2006-10-07  Jim Meyering  <jim@meyering.net>
68932
68933         * modules/inttypes (inttypes.h): Revert what seems to have been
68934         an inadvertent part of today's change: use "|", not "/" in the
68935         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68936
68937 2006-10-07  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/sublist: New file.
68940
68941 2006-10-07  Bruno Haible  <bruno@clisp.org>
68942
68943         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68944         * modules/argz (argz.h): Likewise.
68945         * modules/arpa_inet (arpa/inet.h): Likewise.
68946         * modules/byteswap (byteswap.h): Likewise.
68947         * modules/configmake (configmake.h): Likewise.
68948         * modules/fcntl (fcntl.h): Likewise.
68949         * modules/fnmatch (fnmatch.h): Likewise.
68950         * modules/getopt (getopt.h): Likewise.
68951         * modules/glob (glob.h): Likewise.
68952         * modules/inttypes (inttypes.h): Likewise.
68953         * modules/netinet_in (netinet/in.h): Likewise.
68954         * modules/poll (poll.h): Likewise.
68955         * modules/stdbool (stdbool.h): Likewise.
68956         * modules/stdint (stdint.h): Likewise.
68957         * modules/sys_select (sys/select.h): Likewise.
68958         * modules/sys_socket (sys/socket.h): Likewise.
68959         * modules/sys_stat (sys/stat.h): Likewise.
68960         * modules/sysexits (sysexits.h): Likewise.
68961         * modules/unistd (unistd.h): Likewise.
68962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68963         Add a "DO NOT EDIT" comment to the generated file.
68964         (func_import): Likewise for gnulib-comp.m4.
68965
68966 2006-10-07  Bruno Haible  <bruno@clisp.org>
68967
68968         * lib/gl_sublist.h: New file.
68969         * lib/gl_sublist.c: New file.
68970
68971 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68972
68973         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68974         name (relative to the original working directory) and the file
68975         name component (relative to the temporary working directory).  All
68976         callers changed.
68977         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68978         * lib/mkdir-p.c (make_dir_parents): Likewise.
68979         * lib/mkdir-p.h (make_dir_parents): Likewise.
68980
68981 2006-10-06  Eric Blake  <ebb9@byu.net>
68982
68983         Define several macros for use by the clean-temp module.
68984         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68985         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68986         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68987
68988         * lib/clean-temp.h (close_stream_temp): New declaration.
68989         * lib/clean-temp.c (includes): Pull in headers according to what
68990         other modules are in use.
68991         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68992
68993 2006-10-06  Bruno Haible  <bruno@clisp.org>
68994
68995         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68996         instead of fopen, fwriteerror.
68997
68998 2006-10-06  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69001         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69002         int.
69003         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69004         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69005         Return an error indicator.
69006         Suggested by Eric Blake.
69007
69008 2006-10-06  Bruno Haible  <bruno@clisp.org>
69009
69010         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69011         Reported by Eric Blake.
69012
69013 2006-10-06  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/closeout (Description): Mention stderr too.
69016
69017 2006-10-06  Bruno Haible  <bruno@clisp.org>
69018         and Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * lib/closeout.c (close_stdout): Also close stderr.
69021         * lib/closeout.h: Update comment.
69022
69023 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69026         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69027         * lib/dirchownmod.c: Include lchown.h.
69028         * lib/lchown.c: Don't include files that lchown.h now includes.
69029         Don't declare chown, since lchown.h now does that.
69030         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69031         (lchown): Define to rpl_chown if lchown is declared but
69032         does not exist.  Declare using a prototype if lchown is not
69033         declared.  Add a copyright notice.
69034         * lib/mkstemp.h: Include <unistd.h>.
69035         * lib/openat.c: Include lchown.h.
69036
69037         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69038         we now test for that separately.
69039         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69040         rather than O_NOFOLLOW, when testing whether it's possible to
69041         avoid a race condition reliably.
69042         * lib/savewd.c (savewd_chdir): Likewise.
69043
69044         Remove macros that are no longer needed now that stdint.h is
69045         reliable.
69046         * lib/fsusage.c (UINTMAX_MAX): Remove.
69047         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69048         * lib/utimecmp.c (SIZE_MAX): Remove.
69049
69050         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69051
69052         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69053         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69054         O_NOATIME works.
69055
69056 2006-10-05  Bruno Haible  <bruno@clisp.org>
69057
69058         * lib/gl_list.h (gl_sortedlist_search_from_to,
69059         gl_sortedlist_indexof_from_to): New declarations.
69060         (gl_list_implementation): New fields sortedlist_search_from_to,
69061         sortedlist_indexof_from_to.
69062         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69063         inline functions.
69064         * lib/gl_list.c (gl_sortedlist_search_from_to,
69065         gl_sortedlist_indexof_from_to): New functions.
69066         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69067         function.
69068         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69069         (gl_array_sortedlist_search_from_to): New function.
69070         (gl_array_list_implementation): Update.
69071         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69072         function.
69073         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69074         (gl_carray_sortedlist_search_from_to): New function.
69075         (gl_carray_list_implementation): Update.
69076         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69077         gl_linked_sortedlist_indexof_from_to): New functions.
69078         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69079         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69080         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69081         gl_tree_sortedlist_indexof_from_to): New functions.
69082         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69083         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69084         Update.
69085         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69086         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69087         Update.
69088
69089 2006-10-05  Bruno Haible  <bruno@clisp.org>
69090
69091         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69092         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69093         (struct gl_list_implementation): Add fields search_from_to,
69094         indexof_from_to. Remove fields search, indexof.
69095         (gl_list_search): Use the search_from_to method.
69096         (gl_list_search_from, gl_list_search_from_to): New functions.
69097         (gl_list_indexof): Use the indexof_from_to method.
69098         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69099         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69100         (gl_list_search_from, gl_list_search_from_to): New functions.
69101         (gl_list_indexof): Use the indexof_from_to method.
69102         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69103         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69104         gl_array_indexof. Add start_index, end_index arguments.
69105         (gl_array_search_from_to): Renamed from gl_array_search. Add
69106         start_index, end_index arguments.
69107         (gl_array_remove, gl_array_list_implementation): Update.
69108         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69109         gl_carray_indexof. Add start_index, end_index arguments.
69110         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69111         start_index, end_index arguments.
69112         (gl_carray_remove, gl_carray_list_implementation): Update.
69113         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69114         gl_linked_search. Add start_index, end_index arguments.
69115         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69116         start_index, end_index arguments.
69117         (gl_linked_remove): Update.
69118         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69119         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69120         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69121         field to 'size_t'.
69122         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69123         gl_tree_search. Add start_index, end_index arguments.
69124         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69125         start_index, end_index arguments.
69126         (gl_tree_remove): Update.
69127         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69128         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69129         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69130         function.
69131         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69132         gl_tree_search. Add start_index, end_index arguments.
69133         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69134         start_index, end_index arguments.
69135         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69136         Update.
69137         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69138
69139 2006-10-05  Bruno Haible  <bruno@clisp.org>
69140
69141         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69142
69143         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69144         fwriteerror_temp): New declarations.
69145         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69146         (descriptors): New variable.
69147         (cleanup): First, close the descriptors.
69148         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69149         fclose_temp, fwriteerror_temp): New functions.
69150
69151 2006-10-04  Jim Meyering  <jim@meyering.net>
69152
69153         * lib/fts.c (fts_open): Tiny comment change.
69154
69155 2006-10-04  Bruno Haible  <bruno@clisp.org>
69156
69157         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69158         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69159         gl_LOCK_BODY.
69160         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69161         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69162         gl_LOCK_EARLY_BODY.
69163         (gl_LOCK): Require gl_LOCK_BODY.
69164
69165 2006-10-04  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69168         (gl_oset_search_atleast): New declaration.
69169         (struct gl_oset_implementation): Add field 'search_atleast'.
69170         (gl_oset_search_atleast): New inline function.
69171         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69172         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69173         (gl_array_oset_implementation): Update.
69174         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69175         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69176         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69177
69178 2006-10-04  Bruno Haible  <bruno@clisp.org>
69179
69180         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69181
69182 2006-10-03  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69185         from gl_avltreehash_list_implementation.
69186
69187 2006-10-03  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/gl_oset.c (gl_oset_add): Fix return type.
69190
69191 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69192
69193         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69194
69195 2006-10-02  Eric Blake  <ebb9@byu.net>
69196
69197         * modules/strnlen (Depends-on): Add extensions.
69198
69199 2006-10-02  Eric Blake  <ebb9@byu.net>
69200
69201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69202         definition in 2.60+.
69203
69204 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69205
69206         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69207         checks.
69208
69209 2006-10-02  Bruno Haible  <bruno@clisp.org>
69210
69211         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69212         to the AUTOMAKE_OPTIONS.
69213         Reported by Jim Meyering.
69214
69215 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         Work around bug in Solaris 10 /proc file system:
69218         /proc/self/fd/NNN/.. isn't the parent directory of
69219         the directory whose file descriptor is NNN.  This needs to
69220         be worked around at run time, not compile time, since a
69221         program might be built on Solaris 8, where things work, and
69222         run on Solaris 10.
69223         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69224         to use the following interface instead:
69225         (OPENAT_BUFFER_SIZE): New macro.
69226         (openat_proc_name): New function.
69227         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69228         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69229         Likewise.
69230         * lib/openat-proc.c: New file.
69231         * modules/openat (Files): Add lib/openat-proc.c.
69232         (Depends-on): Add same-inode, stdbool.
69233         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69234
69235 2006-09-29  Bruno Haible  <bruno@clisp.org>
69236
69237         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69238         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69239         argument. Set stdout_closed before testing for ferror, not after.
69240         (fwriteerror, fwriteerror_no_ebadf): New functions.
69241
69242 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69243
69244         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69245
69246 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69247
69248         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69249         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69250
69251 2006-09-28  Jim Meyering  <jim@meyering.net>
69252
69253         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69254         Include <unistd.h>.
69255
69256 2006-09-28  Bruno Haible  <bruno@clisp.org>
69257
69258         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69259         * modules/linkedhash-list (Depends-on): Likewise.
69260         * modules/rbtreehash-list (Depends-on): Likewise.
69261
69262 2006-09-28  Bruno Haible  <bruno@clisp.org>
69263
69264         * lib/strndup.h: Simplify the redefinition of strndup.
69265         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69266         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69267
69268 2006-09-28  Bruno Haible  <bruno@clisp.org>
69269
69270         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69271         * lib/gl_linkedhash_list.c: Likewise.
69272         * lib/gl_rbtreehash_list.c: Likewise.
69273
69274 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69277         getaddrinfo.
69278
69279         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69280         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69281         it causes <stdio_ext.h> to cause a compile-time error.
69282         Problem reported by Nelson H. F. Beebe.
69283         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69284         of HAVE_DECL___PENDING.
69285
69286         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69287         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69288         declaration.
69289
69290 2006-09-27  Jim Meyering  <jim@meyering.net>
69291
69292         This file could end up with a definition for a function
69293         named __strndup, rather than rpl_strndup on a system with
69294         incomplete weak_alias support.
69295         * lib/strndup.c (strndup): Rename from __strndup.
69296         Remove #defines that used to map __strndup to strndup.
69297         Don't use K&R prototypes.
69298         Remove LIBC-related code, since this file is not sync'd with glibc.
69299         * lib/strndup.h: Revamp, accordingly.
69300         * m4/strndup.m4: Modernize.
69301
69302 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         * modules/savewd (Depends-on): Add 'raise'.
69305         * lib/savewd.c: Include <signal.h>, for 'raise'.
69306
69307 2006-09-26  Jim Meyering  <jim@meyering.net>
69308
69309         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69310         when we detect Darwin 8.7.0's acl_get_file bug.
69311         Rearrange to perform the new (below) run-test while $LIBS
69312         contains any acl-related library.  Set USE_ACL at the end.
69313         (gl_ACL_GET_FILE): New function.
69314
69315 2006-09-26  Eric Blake  <ebb9@byu.net>
69316
69317         * lib/verror.c: Include <config.h> unconditionally.
69318
69319 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         * modules/clock-time (Maintainer): Add self.
69322         * modules/getlogin_r (Depends-on): Add extensions.
69323
69324 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69325
69326         * modules/clock-time: New module.
69327         * modules/nanosleep (Depends-on): Add clock-time.
69328         * modules/gethrxtime (Depends-on): Likewise.
69329         * modules/gettime (Depends-on): Likewise.
69330         * modules/settime (Depends-on): Likewise.
69331
69332         * modules/fts-lgpl: Depend on openat.
69333         * modules/mkancesdirs: Depend on savewd.
69334         * modules/mkdir-p: Likewise.
69335
69336 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69337
69338         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69339
69340         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69341         `gl_have_arbitrary_file_name_length_limit' to
69342         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69343         actually works between configure runs.
69344
69345 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69346             Bruno Haible  <bruno@clisp.org>
69347
69348         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69349
69350 2006-09-25  Jim Meyering  <jim@meyering.net>
69351
69352         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69353         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69354
69355 2006-09-25  Eric Blake  <ebb9@byu.net>
69356
69357         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69358         exec's in 2006-09-18 patch when shuffling fds.
69359
69360 2006-09-25  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69363         Reported by Jim Meyering.
69364
69365 2006-09-24  Jim Meyering  <jim@meyering.net>
69366
69367         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69368         compare a pointer against a literal "0".  That caused failures with
69369         at least HP-UX's hpcc.
69370
69371 2006-09-22  Simon Josefsson  <jas@extundo.com>
69372
69373         * modules/gc-sha1:
69374         * modules/gc-md4:
69375         * modules/gc-hmac-sha1:
69376         * modules/gc-hmac-md5:
69377         * modules/gc-des:
69378         * modules/gc-arcfour: Distribute more files.
69379
69380 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69381
69382         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69383         (gl_linked_iterator_from_to): Initialize struct completely.
69384         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69385         (gl_tree_iterator_from_to): Likewise
69386         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69387         * lib/gl_array_list.c [lint] (gl_array_iterator)
69388         (gl_array_iterator_from_to): Likewise.
69389         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69390         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69391         (gl_carray_iterator_from_to): Likewise.
69392
69393         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69394         * lib/md4.c (md4_process_block): Remove unused variable.
69395         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69396         parentheses for clarity.
69397
69398 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69399
69400         * modules/bison-i18n (Depends-on): Add gettext.
69401
69402 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69403
69404         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69405         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69406         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69407         also add missing comma that caused broken test.
69408         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69409         stdlib.h, for `abort'.
69410         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69411         variables.
69412         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69413         include unistd.h if present, for `rmdir'.
69414         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69415         variables.
69416         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69417         in the process include standard headers for prototypes.
69418         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69419         gets declared on GNU/Linux.
69420         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69421         unistd.h, for `rmdir'.
69422         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69423
69424         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69425         always true.
69426         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69427
69428         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69429
69430 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69431
69432         * gnulib-tool (func_version): Create output all at once.  This
69433         may help avoid triggering unnecessary SIGPIPEs, and at any
69434         rate it doesn't hurt.
69435
69436 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69437             Bruno Haible  <bruno@clisp.org>
69438
69439         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69440         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69441         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69442
69443         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69444         (gl_FUNC_VASPRINTF): Invoke it.
69445
69446 2006-09-22  Bruno Haible  <bruno@clisp.org>
69447
69448         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69449         getloadavg.c as first argument.
69450
69451 2006-09-22  Bruno Haible  <bruno@clisp.org>
69452
69453         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69454         at the beginning of the gl_INIT macro.
69455         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69456         gl_GETLOADAVG.
69457
69458 2006-09-22  Bruno Haible  <bruno@clisp.org>
69459
69460         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69461         module.
69462         Suggested by Ralf Wildenhues.
69463
69464 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         Import this patch from libc:
69467
69468         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69469
69470         * lib/regex_internal.c (re_string_reconstruct): Handle
69471         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69472         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69473         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69474         re_string_context_at.
69475
69476         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69477         now requires it.
69478         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69479         gl_REGEX now does it for us.
69480         (gl_REGEX): Add test taken from
69481         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69482
69483         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69484         Check that large offsets work.  Modernize Autoconf usages.
69485         Prefer "yes" to mean a good thing rather than a bad.
69486         Don't put "#define mkstemp" in config.h, as this might interfere
69487         with standard system headers that "#define mkstemp mkstemp64".
69488
69489         * modules/mkstemp (Depends-on): Add extensions, so that
69490         mkstemp is visible on some platforms.
69491         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69492         (Include): Change to "mkstemp.h" from <stdlib.h>.
69493         (Files): Add mkstemp.h.
69494
69495         * lib/mkstemp.h: New file, since some standard headers
69496         #define mkstemp.
69497         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69498         Include "mkstemp.h".
69499         Make the _LIBC code resemble glibc original more,
69500         e.g., use K&R style.
69501         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69502         (mkstemp): Remove, since mkstemp.h does this for us.
69503         * lib/stdlib--.h: Include mkstemp.h.
69504
69505         Import this patch from libc:
69506
69507         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69508
69509         * lib/tempname.c (__gen_tempname): Change attempts_min
69510         into a macro.  Use preprocessor to decide how to initialize
69511         attempts [Coverity CID 67].
69512
69513 2006-09-20  Bruno Haible  <bruno@clisp.org>
69514
69515         * lib/mkdtemp.c: Import from libc.
69516         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69517                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69518                 attempts_min into a macro.  Use preprocessor to decide how to
69519                 initialize attempts [Coverity CID 67].
69520         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69521                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69522                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69523
69524 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69525
69526         * gnulib-tool (func_exit): New function, to allow to pass the
69527         exit status portably through the trap.  Use everywhere.
69528         (--help, --version): Signal a write error.
69529         (trap): catch SIGPIPE, for write errors.
69530         Exit at the end of the trap, with the correct exit status.
69531
69532 2006-09-19  Karl Berry  <karl@gnu.org>
69533
69534         * doc/gnulib.texi: note about the license texinfo files.
69535
69536 2006-09-19  Eric Blake  <ebb9@byu.net>
69537
69538         * gnulib-tool: Avoid space-tab.
69539
69540 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69543         that prevented coreutils 6.1 from building.  Problem reported
69544         by Petter Reinholdtsen.
69545
69546 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * gnulib-tool (avoidlist): Fix typo that broke options like
69549         --avoid=lock that are used by coreutils bootstrap.
69550
69551 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69552
69553         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69554         more systematically.
69555
69556 2006-09-18  Jim Meyering  <jim@meyering.net>
69557
69558         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69559
69560 2006-09-18  Bruno Haible  <bruno@clisp.org>
69561
69562         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69563
69564 2006-09-18  Bruno Haible  <bruno@clisp.org>
69565
69566         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69567         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69568         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69569         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69570         * m4/gettext.m4: Require autoconf >= 2.52.
69571         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69572         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69573         of gl_cv_header_inttypes_h.
69574
69575 2006-09-18  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/javaversion.c: Include configmake.h.
69578
69579 2006-09-18  Bruno Haible  <bruno@clisp.org>
69580
69581         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69582         avoid that the while loops be executed in a subshell.
69583
69584 2006-09-18  Bruno Haible  <bruno@clisp.org>
69585
69586         * MODULES.html.sh (func_module): Break long lines.
69587         Suggested by Bruce Korb <bkorb@gnu.org>.
69588
69589 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69590
69591         Speed up by a factor of 1.12.
69592         * gnulib-tool (nl): New variable.
69593         (func_import): Rewrite include directive extraction to only read each
69594         directive once.
69595
69596 2006-09-17  Bruno Haible  <bruno@clisp.org>
69597
69598         * modules/javaversion (Makefile.am): Remove DEFS setting.
69599         (Depends-on): Add configmake, for PKGDATADIR definition.
69600
69601 2006-09-17  Bruno Haible  <bruno@clisp.org>
69602
69603         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69604
69605 2006-09-17  Bruno Haible  <bruno@clisp.org>
69606
69607         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69608         (func_modules_transitive_closure, func_modules_add_dummy,
69609         func_modules_to_filelist, func_import, func_create_testdir,
69610         func_create_megatestdir, ...): Use it wherever possible.
69611         Suggested by Ralf Wildenhues.
69612
69613 2006-09-16  Karl Berry  <karl@gnu.org>
69614
69615         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69616         to avoid sectioning errors.
69617         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69618         [ifinfo]: blank line after @center-ed titles.
69619         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69620         Spell FSF address consistently with others.
69621         (These changes approved by rms.)
69622
69623 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69624
69625         Speed up by a factor of 1.61.
69626         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69627         already checked module names again.
69628
69629 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69630
69631         Speed up by a factor of 1.13.
69632         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69633         for new_files, and the input to func_add_or_update.
69634
69635 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69636
69637         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69638         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69639
69640 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * modules/mkancesdirs (Depends-on): Add fcntl.
69643         * modules/savewd: New file.
69644         * MODULES.html.sh (File system functions): Add savewd.
69645
69646         * modules/configmake (Makefile.am): Add support for the
69647         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69648
69649 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/savewd.m4: New file.
69652
69653 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69656         (dirchownmod): New arg FD.  All callers changed.
69657         Use FD rather than opening the directory ourself, as opening is
69658         now the caller's responsibility.
69659         * lib/dirchownmod.h: Likewise.
69660         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69661         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69662         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69663         (test_dir): Remove.
69664         (mkancesdirs): Return length of prefix of FILE that has already
69665         been made, or -2 if there is a child doing the work.  Redo
69666         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69667         ".", and treat ".." specially since it might stray back into
69668         already-created areas.  Use a subprocess if necessary.  New arg
69669         WD; all users changed.  MAKE_DIR function should now return 1
69670         if it creates a directory that is not readable.  Return -2 if
69671         a child process is spun off.
69672         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69673         Adjust signature to match code.
69674         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69675         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69676         all users changed.
69677         * lib/savewd.c, lib/savewd.h: New files.
69678
69679 2006-09-15  Jim Meyering  <jim@meyering.net>
69680
69681         * modules/rename-dest-slash: New module.
69682         * MODULES.html.sh (posix_compat): Add it here.
69683
69684         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69685
69686 2006-09-15  Jim Meyering  <jim@meyering.net>
69687
69688         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69689         file.
69690
69691         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69692
69693 2006-09-15  Jim Meyering  <jim@meyering.net>
69694
69695         * lib/rename-dest-slash.c (has_trailing_slash): Use
69696         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69697         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69698         test before testing whether SRC is a directory.
69699         Suggestions from Bruno Haible.
69700
69701         Avoid a warning about an unused variable.
69702         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69703         into the #ifdef block where it's used.
69704
69705         * lib/rename-dest-slash.c: New file.
69706
69707 2006-09-14  Bruno Haible  <bruno@clisp.org>
69708
69709         * lib/allocsa.c: Include <config.h> unconditionally.
69710         * lib/asnprintf.c: Likewise.
69711         * lib/asprintf.c: Likewise.
69712         * lib/c-strcasecmp.c: Likewise.
69713         * lib/c-strcasestr.c: Likewise.
69714         * lib/c-strncasecmp.c: Likewise.
69715         * lib/c-strstr.c: Likewise.
69716         * lib/classpath.c: Likewise.
69717         * lib/clean-temp.c: Likewise.
69718         * lib/concatpath.c: Likewise.
69719         * lib/copy-file.c: Likewise.
69720         * lib/csharpcomp.c: Likewise.
69721         * lib/csharpexec.c: Likewise.
69722         * lib/execute.c: Likewise.
69723         * lib/fatal-signal.c: Likewise.
69724         * lib/findprog.c: Likewise.
69725         * lib/fwriteerror.c: Likewise.
69726         * lib/gl_array_list.c: Likewise.
69727         * lib/gl_array_oset.c: Likewise.
69728         * lib/gl_avltree_list.c: Likewise.
69729         * lib/gl_avltree_oset.c: Likewise.
69730         * lib/gl_avltreehash_list.c: Likewise.
69731         * lib/gl_carray_list.c: Likewise.
69732         * lib/gl_linked_list.c: Likewise.
69733         * lib/gl_linkedhash_list.c: Likewise.
69734         * lib/gl_list.c: Likewise.
69735         * lib/gl_oset.c: Likewise.
69736         * lib/gl_rbtree_list.c: Likewise.
69737         * lib/gl_rbtree_oset.c: Likewise.
69738         * lib/gl_rbtreehash_list.c: Likewise.
69739         * lib/imaxabs.c: Likewise.
69740         * lib/imaxdiv.c: Likewise.
69741         * lib/javacomp.c: Likewise.
69742         * lib/javaexec.c: Likewise.
69743         * lib/javaversion.c: Likewise.
69744         * lib/linebreak.c: Likewise.
69745         * lib/localcharset.c: Likewise.
69746         * lib/lock.c: Likewise.
69747         * lib/mbchar.c: Likewise.
69748         * lib/mbswidth.c: Likewise.
69749         * lib/mkdtemp.c: Likewise.
69750         * lib/pipe.c: Likewise.
69751         * lib/printf-args.c: Likewise.
69752         * lib/printf-parse.c: Likewise.
69753         * lib/progname.c: Likewise.
69754         * lib/progreloc.c: Likewise.
69755         * lib/readlink.c: Likewise.
69756         * lib/sh-quote.c: Likewise.
69757         * lib/stpcpy.c: Likewise.
69758         * lib/stpncpy.c: Likewise.
69759         * lib/strcasecmp.c: Likewise.
69760         * lib/strcasestr.c: Likewise.
69761         * lib/strcspn.c: Likewise.
69762         * lib/striconv.c: Likewise.
69763         * lib/strncasecmp.c: Likewise.
69764         * lib/strnlen1.c: Likewise.
69765         * lib/strstr.c: Likewise.
69766         * lib/strtok_r.c: Likewise.
69767         * lib/tls.c: Likewise.
69768         * lib/tmpdir.c: Likewise.
69769         * lib/unicodeio.c: Likewise.
69770         * lib/unsetenv.c: Likewise.
69771         * lib/vasnprintf.c: Likewise.
69772         * lib/vasprintf.c: Likewise.
69773         * lib/wait-process.c: Likewise.
69774         * lib/xallocsa.c: Likewise.
69775         * lib/xsetenv.c: Likewise.
69776         * lib/xstriconv.c: Likewise.
69777
69778 2006-09-13  Simon Josefsson  <jas@extundo.com>
69779
69780         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69781         that internally, suggested by Ralf Wildenhues
69782         <Ralf.Wildenhues@gmx.de>.
69783
69784 2006-09-13  Simon Josefsson  <jas@extundo.com>
69785
69786         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69787         @LIBOBJS@.
69788         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69789
69790 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69793         longer worry about uses that don't define HAVE_CONFIG_H.
69794         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69795         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69796         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69797         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69798         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69799         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69800         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69801         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69802         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69803         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69804         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69805         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69806         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69807         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69808         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69809         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69810         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69811         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69812         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69813         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69814         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69815         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69816         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69817         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69818         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69819         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69820         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69821         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69822         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69823         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69824         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69825         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69826         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69827         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69828         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69829         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69830         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69831         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69832         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69833         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69834         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69835         Likewise.
69836
69837 2006-09-13  Eric Blake  <ebb9@byu.net>
69838
69839         * lib/getopt.c: Fix typo in last commit.
69840
69841 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69842
69843         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69844         dgettext.
69845
69846 2006-09-12  Jim Meyering  <jim@meyering.net>
69847
69848         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69849         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69850         Reported by Nelson H. F. Beebe.
69851
69852 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69853
69854         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69855         program_invocation_name and program_invocation_short_name are
69856         initialized.
69857         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69858         and program_invocation_short_name to argp.h, so they are visible
69859         to user programs.
69860         * lib/argp.h: Likewise
69861
69862 2006-09-10  Bruno Haible  <bruno@clisp.org>
69863
69864         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69865         m4/inttypes_h.m4, m4/uintmax_t.m4.
69866
69867 2006-09-10  Bruno Haible  <bruno@clisp.org>
69868
69869         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69870         gl_AC_TYPE_UINTMAX_T.
69871
69872 2006-09-10  Bruno Haible  <bruno@clisp.org>
69873
69874         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69875
69876 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69877
69878         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69879         convention.  Text proposed by Bruno Haible.
69880         (struct argp_option): Document the use of N_() wrappers.
69881
69882         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69883         '\v', and translate the two parts separately, instead of feeding
69884         the whole string to gettext.  This allows to exclude
69885         '\v' from the strings visible to the translator by writing doc
69886         strings as N_("..") "\v" N_("..").
69887
69888 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69889
69890         * config/srclist.txt: Undo latest change; the bug was fixed.
69891
69892 2006-09-09  Bruno Haible  <bruno@clisp.org>
69893
69894         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69895         assignments if building a library without libtool.
69896         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69897         in func_emit_lib_Makefile_am.
69898         (func_import): When building a static library libfoo.a, arrange to
69899         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69900         (func_create_testdir): Likewise.
69901         * modules/gc (configure.ac, Makefile.am): If building statically,
69902         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69903         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69904         * modules/striconv (configure.ac, Makefile.am): Likewise.
69905         Based on a suggestion by Ralf Wildenhues.
69906
69907 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69910         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69911         Also:
69912
69913         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69914         Add year_2050_test to catch glibc bug 2821
69915         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69916
69917         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69918         Prefer #ifdef to #if.
69919
69920         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69921         Return from 'main' instead of calling 'exit'.
69922
69923 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69926         returned the maximum time_t value rather than (time_t) -1.
69927         Problem originally reported by William Bardwell
69928         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69929
69930         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69931         Moved to here ...
69932         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69933         ... from here.
69934
69935 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69936
69937         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69938         2821 is fixed.
69939
69940 2006-09-08  Jim Meyering  <jim@meyering.net>
69941
69942         Don't make generated files read-only.  That would bother too many
69943         people.  However, do retain the ability to work when targets are
69944         read-only: remove the destination and temporary files before writing
69945         them (when generated via sed or echo), or by using the -f option for
69946         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69947         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69948         * modules/byteswap, modules/configmake, modules/fcntl:
69949         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69950         * modules/localcharset, modules/netinet_in, modules/poll:
69951         * modules/stdbool, modules/stdint, modules/sys_select:
69952         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69953
69954 2006-09-08  Jim Meyering  <jim@meyering.net>
69955
69956         Avoid new build failure on FreeBSD 6.0.
69957         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69958         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69959         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69960
69961 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69962
69963         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69964
69965 2006-09-07  Jim Meyering  <jim@meyering.net>
69966
69967         Fix global typo in last change: use chmod u-w, not chmod u-x.
69968         Spotted by Paul Eggert and Bruce Korb.
69969         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69970         * modules/byteswap, modules/configmake, modules/fcntl:
69971         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69972         * modules/localcharset, modules/netinet_in, modules/poll:
69973         * modules/stdbool, modules/stdint, modules/sys_select:
69974         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69975
69976 2006-09-06  Jim Meyering  <jim@meyering.net>
69977
69978         Make generated files be read-only.
69979         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69980         Ensure that each generated file is now read-only.
69981         * modules/argz: Likewise.
69982         * modules/arpa_inet: Likewise.
69983         * modules/byteswap: Likewise.
69984         * modules/configmake: Likewise.
69985         * modules/fcntl: Likewise.
69986         * modules/fnmatch: Likewise.
69987         * modules/getopt: Likewise.
69988         * modules/glob: Likewise.
69989         * modules/inttypes: Likewise.
69990         * modules/netinet_in: Likewise.
69991         * modules/poll: Likewise.
69992         * modules/stdbool: Likewise.
69993         * modules/stdint: Likewise.
69994         * modules/sys_select: Likewise.
69995         * modules/sys_socket: Likewise.
69996         * modules/sys_stat: Likewise.
69997         * modules/sysexits: Likewise.
69998         * modules/localcharset: Same as above, but continue using temporary
69999         file named "t-$@" (why different?) rather than the "$@-t" used
70000         everywhere else.
70001
70002         * modules/sysexits (Makefile.am): Replace literal occurrences
70003         of "sysexit.h" more readable, and more consistent, "$@".
70004
70005 2006-09-06  Bruno Haible  <bruno@clisp.org>
70006
70007         * modules/striconv: New file.
70008         * modules/xstriconv: New file.
70009         * MODULES.html.sh (Internationalization functions): Add striconv,
70010         xstriconv.
70011
70012 2006-09-06  Bruno Haible  <bruno@clisp.org>
70013
70014         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70015         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70016         not using libtool correctly.
70017
70018 2006-09-06  Bruno Haible  <bruno@clisp.org>
70019
70020         * lib/striconv.h: New file.
70021         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70022         iconvstring.c.
70023         * lib/xstriconv.h: New file.
70024         * lib/xstriconv.c: New file.
70025
70026 2006-09-06  Bruno Haible  <bruno@clisp.org>
70027
70028         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70029         lib_..._LDFLAGS.
70030
70031 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70032
70033         * lib/argz_.h: Sync from Libtool.
70034
70035         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70036                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70037
70038         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70039
70040 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70041
70042         * modules/trim: New file.
70043
70044 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70045
70046         * lib/trim.h: New file.
70047         * lib/trim.c: New file.
70048
70049 2006-09-05  Bruno Haible  <bruno@clisp.org>
70050
70051         * MODULES.html.sh (String handling): Add trim.
70052
70053 2006-09-04  Karl Berry  <karl@gnu.org>
70054
70055         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70056         until next release.
70057
70058 2006-09-03  Bruno Haible  <bruno@clisp.org>
70059
70060         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70061         correctly.
70062
70063 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70066         not gl_GETLOADAVG.  Omit unneeded semicolons.
70067         Problems reported by Ralf Wildenhues in
70068         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70069         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70070         at the end, which is the usual gnulib style.
70071
70072         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70073         of doing all the work ourselves.
70074         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70075         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70076
70077 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70080         Problem reported by Ralf Wildenhues in
70081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70082
70083         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70084         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70085
70086 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70089         yesterday's patch by changing test -n to test -z.
70090
70091 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70094         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70095         the former is now obsolescent.
70096
70097         * modules/chdir-long (Depends-on): Add fcntl.
70098
70099 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70102         obsolescent, and programs should use gnulib instead.
70103         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70104         but with prefixes changed.
70105
70106 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70109         or stdbool.h, because they might not exist while configuring.
70110
70111         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70112         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70113         does that for us.
70114         (O_DIRECTORY): Remove.
70115
70116 2006-08-31  Eric Blake  <ebb9@byu.net>
70117
70118         * gnulib-tool: Don't let emacs change spaces to TAB.
70119
70120 2006-08-31  Bruno Haible  <bruno@clisp.org>
70121
70122         * gnulib-tool: When calling func_import more than once, do it in a
70123         subshell.
70124         Reported by Eric Blake <ebb9@byu.net>.
70125
70126 2006-08-31  Bruno Haible  <bruno@clisp.org>
70127
70128         * gnulib-tool (nl): Remove variable.
70129         (sed_transform_lib_file): Use more robust test for config-h module.
70130         (func_import): Fix typo in 2006-08-25 patch.
70131
70132 2006-08-31  Bruno Haible  <bruno@clisp.org>
70133
70134         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70135         specified, augment Makefile.am variables instead of assigning them.
70136
70137 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         Work around a bug in both the Linux and SunOS 64-bit kernels:
70140         nanosleep mishandles sleeps for longer than 2**31 seconds.
70141         Problem reported by Frank v Waveren in
70142         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70144         Check for nanosleep bug.
70145         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70146
70147 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         Work around a bug in both the Linux and SunOS 64-bit kernels:
70150         nanosleep mishandles sleeps for longer than 2**31 seconds.
70151         Problem reported by Frank v Waveren in
70152         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70153         * lib/nanosleep.c (BILLION): New constant.
70154         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70155         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70156         implementation.
70157
70158 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70159
70160         * modules/nanosleep (Depends-on): Add gettime.
70161
70162 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70163         and Simon Josefsson  <jas@extundo.com>
70164         and Oskar Liljeblad  <oskar@osk.mine.nu>
70165
70166         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70167         * gnulib-tool (func_import): New license type 'unmodifiable license
70168         text'.
70169         * modules/fdl: Use it.  Longer description.
70170         * module/gpl, module/lgpl: New files.
70171
70172 2006-08-30  Jim Meyering  <jim@meyering.net>
70173
70174         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70175         shadowing the parameter.
70176
70177 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70178
70179         Sync from Libtool:
70180
70181         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70182
70183         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70184         sharing with gnulib.  Report by Eric Blake.
70185
70186 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * modules/isapipe: New file.
70189         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70190
70191 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         * modules/configmake (Makefile.am): Add a comment, and omit
70194         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70195         by Bruno Haible.
70196
70197 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * m4/isapipe.m4: New file.
70200
70201 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70202
70203         * lib/isapipe.c, lib/isapipe.h: New files.
70204
70205 2006-08-29  Jim Meyering  <jim@meyering.net>
70206
70207         * modules/configmake (Makefile.am): Make configmake.h depend on
70208         Makefile.  Otherwise, a stale configmake.h could hang around.
70209
70210 2006-08-29  Eric Blake  <ebb9@byu.net>
70211
70212         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70213         resolution of upstream bug 3044.
70214
70215 2006-08-29  Bruno Haible  <bruno@clisp.org>
70216
70217         * modules/localcharset (Depends-on): Add configmake.
70218         (Makefile.am): Remove setting of LIBDIR through DEFS.
70219
70220 2006-08-29  Bruno Haible  <bruno@clisp.org>
70221
70222         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70223         defined.
70224
70225 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         * modules/fcntl: New file.
70228         * modules/chdir-safer (Depends-on): Add fcntl.
70229         * modules/fts: Likewise.
70230         * modules/mkdir-p: Likewise.
70231
70232         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70233         This undoes the most recent change, since we're now addressing the
70234         problem in a different way.
70235
70236         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70237         into output, since the output might be called Makefile.am even
70238         if $makefile_name is something different.
70239         (func_import): Use $makefile_am rather than
70240         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70241         empty.
70242
70243         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70244
70245 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70248         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70249         recent change to stdint.m4, since we're now addressing the problem in a
70250         different way.
70251
70252 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70253
70254         * m4/fcntl_h.m4: New file.
70255
70256 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * lib/fcntl_.h: New file.
70259         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70260         the fcntl module.
70261         * lib/dirchownmod.c: Likewise.
70262         * lib/fts.c: Likewise.
70263
70264         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70265         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70266         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70267         just before including <inttypes.h>, to avoid circular inclusion.
70268
70269 2006-08-28  Jim Meyering  <jim@meyering.net>
70270
70271         * doc/visibility.texi: Actually read and correct the grammar of the
70272         sentence affected by yesterday's change.
70273
70274 2006-08-28  Eric Blake  <ebb9@byu.net>
70275
70276         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70277         needs wrapper.
70278
70279 2006-08-28  Eric Blake  <ebb9@byu.net>
70280
70281         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70282
70283 2006-08-28  Eric Blake  <ebb9@byu.net>
70284
70285         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70286
70287 2006-08-28  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/c-strstr: New file, from GNU gettext.
70290         * MODULES.html.sh (String handling): Add c-strstr.
70291
70292 2006-08-28  Bruno Haible  <bruno@clisp.org>
70293
70294         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70295         macros.
70296         Reported by Eric Blake.
70297
70298 2006-08-28  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70301         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70302         * lib/vasprintf.c: Include errno.h, limits.h.
70303         (EOVERFLOW): New fallback definition.
70304         (vasprintf): Test here whether the string length is > INT_MAX.
70305         * lib/vsnprintf.c: Include errno.h, limits.h.
70306         (EOVERFLOW): New fallback definition.
70307         (vsnprintf): Fix bug when generated string was too long for the buffer.
70308         Test here whether the string length is > INT_MAX.
70309
70310 2006-08-28  Bruno Haible  <bruno@clisp.org>
70311
70312         * lib/inttypes_.h (SCNX*): Remove definitions.
70313         Reported by Eric Blake.
70314
70315 2006-08-28  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/c-strstr.h: New file, from GNU gettext.
70318         * lib/c-strstr.c: New file, from GNU gettext.
70319
70320 2006-08-28  Bruno Haible  <bruno@clisp.org>
70321
70322         * gnulib-tool: Reorder some statements.
70323
70324 2006-08-28  Bruno Haible  <bruno@clisp.org>
70325
70326         * gnulib-tool: New option --makefile-name.
70327         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70328         $makefile_name.
70329         (func_import): Write $makefile_name to the cache file, and read it from
70330         there unless explicitly specified. Use $makefile_name as file name
70331         instead of Makefile.am. Adjust the recommendations accordingly.
70332
70333 2006-08-28  Bruno Haible  <bruno@clisp.org>
70334
70335         * gnulib-tool (func_verify_module): Check against misapplying patch.
70336
70337 2006-08-28  Bruno Haible  <bruno@clisp.org>
70338
70339         * gnulib-tool (func_relativize, func_relconcat): New functions.
70340         Give an error if --local-dir is given with --update.
70341         Remove trailing slashes from $local_gnulib_dir.
70342         (func_import): Store the relativized $local_gnulib_dir in
70343         gnulib-cache.m4, and read it from there if not specified explicitly.
70344
70345 2006-08-28  Bruno Haible  <bruno@clisp.org>
70346
70347         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70348         is the current directory. Respect also $local_gnulib_dir.
70349
70350 2006-08-28  Bruno Haible  <bruno@clisp.org>
70351             Simon Josefsson  <jas@extundo.com>
70352
70353         BeOS portability.
70354         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70355
70356 2006-08-27  Jim Meyering  <jim@meyering.net>
70357
70358         * doc/visibility.texi: Remove duplicate word: "pointer".
70359
70360 2006-08-26  Bruno Haible  <bruno@clisp.org>
70361
70362         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70363         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70364         (Makefile.am): Create inttypes.h from inttypes_.h.
70365         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70366
70367         * modules/imaxabs: New file.
70368
70369         * modules/imaxdiv: New file.
70370
70371 2006-08-26  Bruno Haible  <bruno@clisp.org>
70372
70373         * m4/inttypes.m4: New file.
70374         * m4/_inttypes_h.m4: Remove file.
70375         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70376         PRI_MACROS_BROKEN.
70377         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70378
70379         * m4/imaxabs.m4: New file.
70380
70381         * m4/imaxdiv.m4: New file.
70382
70383 2006-08-26  Bruno Haible  <bruno@clisp.org>
70384
70385         * lib/inttypes_.h: New file.
70386         * lib/inttypes.h: Remove file.
70387         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70388
70389         * lib/imaxabs.c: New file.
70390
70391         * lib/imaxdiv.c: New file.
70392
70393 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         New config-h module, so that "make" output needn't be cluttered
70396         by -DHAVE_CONFIG_H.
70397         * MODULES.html.sh (Support for building libraries and executables):
70398         Add config-h.
70399         * modules/config-h: New file.
70400         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70401         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70402         the config-h module is used.
70403
70404         New configmake module, so that "make" output needn't be cluttered
70405         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70406         * MODULES.html.sh (Support for building libraries and executables):
70407         Add configmake.
70408         * modules/configmake: New file.
70409
70410 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * m4/config-h.m4: New file.
70413
70414 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70415
70416         * config/srclist.txt: Add elisp-comp.
70417
70418 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         * MODULES.html.sh (Support for building libraries and executables):
70421         Add elisp-comp.
70422         * build-aux/elisp-comp: New file.
70423         * modules/elisp-comp: New file.
70424
70425 2006-08-24  Bruno Haible  <bruno@clisp.org>
70426
70427         * gnulib-tool (func_create_testdir): Use non-default values of
70428         sourcebase and m4base.
70429
70430 2006-08-24  Bruno Haible  <bruno@clisp.org>
70431
70432         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70433         HTML structure.
70434
70435 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         * modules/openat (Depends-on): Add lchown.
70438
70439 2006-08-23  Bruno Haible  <bruno@clisp.org>
70440
70441         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70442         of gl_LOCK_EARLY instead of gl_LOCK.
70443
70444 2006-08-23  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70447         on OSF/1 to no.
70448         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70449
70450 2006-08-23  Bruno Haible  <bruno@clisp.org>
70451
70452         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70453         as unusable.
70454
70455         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70456         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70457         (gl_LOCK): New macro.
70458
70459 2006-08-22  Simon Josefsson  <jas@extundo.com>
70460
70461         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70462         to md5 module.
70463
70464 2006-08-22  Simon Josefsson  <jas@extundo.com>
70465
70466         * MODULES.html.sh: Add "Support for maintaining and release
70467         projects".
70468
70469         * build-aux/gnupload: New file, from coreutils.
70470
70471 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         Avoid the need for AC_LIBSOURCES in m4 macros.
70474         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70475         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70476         * modules/check-version (EXTRA_DIST): Add check-version.h.
70477         * modules/crc (EXTRA_DIST): Add crc.h.
70478         * modules/des (EXTRA_DIST): Add des.h.
70479         * modules/gc (EXTRA_DIST): Add gc.h.
70480         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70481         * modules/getline (EXTRA_DIST): Add getline.h.
70482         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70483         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70484         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70485         * modules/md2 (EXTRA_DIST): Add md2.h.
70486         * modules/md4 (EXTRA_DIST): Add md4.h.
70487         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70488         * modules/read-file (EXTRA_DIST): Add read-file.h.
70489         * modules/readline (EXTRA_DIST): Add readline.h.
70490         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70491         rijndael-api-fst.h.
70492
70493 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * m4/rijndael.m4 (gl_ARCFOUR):
70496         * m4/arctwo.m4 (gl_ARCTWO):
70497         * m4/check-version.m4 (gl_CHECK_VERSION):
70498         * m4/crc.m4 (gl_CRC):
70499         * m4/des.m4 (gl_DES):
70500         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70501         * m4/gc.m4 (gl_GC):
70502         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70503         * m4/getline.m4 (gl_FUNC_GETLINE):
70504         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70505         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70506         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70507         * m4/md2.m4 (gl_MD2):
70508         * m4/md4.m4 (gl_MD4):
70509         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70510         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70511         * m4/readline.m4 (gl_FUNC_READLINE):
70512         * m4/rijndael.m4 (gl_RIJNDAEL):
70513         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70514         to get the necessary .h files and whatnot.
70515
70516 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70519         gnulib rather than the other way around.
70520         * config/srclistvars.sh (COREUTILS): Remove.
70521
70522 2006-08-22  Jim Meyering  <jim@meyering.net>
70523
70524         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70525
70526         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70527
70528 2006-08-22  Eric Blake  <ebb9@byu.net>
70529
70530         * modules/regexprops-generic: New file.
70531         * MODULES.html.sh (Support for building documentation): List it.
70532
70533 2006-08-22  Eric Blake  <ebb9@byu.net>
70534
70535         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70536         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70538         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70539
70540 2006-08-22  Bruno Haible  <bruno@clisp.org>
70541
70542         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70543         and lib_LTLIBRARIES like the other lib_* variables.
70544
70545 2006-08-22  Bruno Haible  <bruno@clisp.org>
70546
70547         * build-aux/x-to-1.in: New file, from GNU gettext.
70548
70549 2006-08-22  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70552         <utmpx.h> exists.
70553
70554 2006-08-22  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70557         <utmpx.h> exists.
70558
70559 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         BeOS portability.
70562         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70563         exist.
70564         Problem reported by Bruno Haible.
70565
70566 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70567
70568         Avoid the need for AC_LIBSOURCES in m4 macros.
70569         * modules/acl (EXTRA_DIST): Add acl.h.
70570         * modules/argmatch (Files): Add m4/argmatch.m4.
70571         (configure.ac): Add gl_ARGMATCH.
70572         (EXTRA_DIST): Renamed from lib_SOURCES, for
70573         consistency with the other modules.  Remove argmatch.c.
70574         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70575         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70576         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70577         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70578         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70579         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70580         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70581         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70582         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70583         * modules/closeout (EXTRA_DIST): Add closeout.h.
70584         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70585         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70586         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70587         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70588         dirname.h; remove basename.c and stripslash.c.
70589         * modules/exclude (EXTRA_DIST): Add exclude.h.
70590         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70591         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70592         * modules/file-type (EXTRA_DIST): Add file-type.h.
70593         * modules/filemode (EXTRA_DIST): Add filemode.h.
70594         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70595         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70596         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70597         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70598         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70599         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70600         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70601         * modules/getdate (EXTRA_DIST): Add getdate.c.
70602         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70603         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70604         * modules/getpass (EXTRA_DIST): Add getpass.h.
70605         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70606         * modules/group-member (EXTRA_DIST): Add group-member.h.
70607         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70608         * modules/hash (EXTRA_DIST): Add hash.h.
70609         * modules/human (EXTRA_DIST): Add human.h.
70610         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70611         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70612         * modules/lchown (EXTRA_DIST): Add lchown.h.
70613         * modules/long-options (EXTRA_DIST): Add long-options.h.
70614         * modules/lstat (EXTRA_DIST): Add lstat.h.
70615         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70616         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70617         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70618         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70619         * modules/memxor (EXTRA_DIST): Add memxor.h.
70620         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70621         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70622         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70623         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70624         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70625         * modules/physmem (EXTRA_DIST): Add physmem.h.
70626         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70627         * modules/posixver (EXTRA_DIST): Add posixver.h.
70628         * modules/quote (EXTRA_DIST): Add quote.h.
70629         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70630         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70631         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70632         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70633         regex_internal.h regexec.c.
70634         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70635         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70636         * modules/same (EXTRA_DIST): Add same.h.
70637         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70638         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70639         * modules/savedir (EXTRA_DIST): Add savedir.h.
70640         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70641         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70642         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70643         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70644         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70645         * modules/strdup (EXTRA_DIST): Add strdup.h.
70646         * modules/strftime (EXTRA_DIST): Add strftime.h.
70647         * modules/strndup (EXTRA_DIST): Add strndup.h.
70648         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70649         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70650         * modules/time_r (EXTRA_DIST): Add time_r.h.
70651         * modules/timespec (EXTRA_DIST): Add timespec.h.
70652         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70653         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70654         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70655         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70656         * modules/userspec (EXTRA_DIST): Add userspec.h.
70657         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70658         * modules/utimens (EXTRA_DIST): Add utimens.h.
70659         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70660         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70661         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70662         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70663         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70664         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70665         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70666         * modules/yesno (EXTRA_DIST): Add yesno.h.
70667
70668 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70671
70672         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70673         * m4/dev-ino.m4, same-inode.m4: Remove.
70674
70675         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70676         * m4/acl.m4 (AC_FUNC_ACL):
70677         * m4/backupfile.m4 (gl_BACKUPFILE):
70678         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70679         * m4/canon-host.m4 (gl_CANON_HOST):
70680         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70681         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70682         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70683         * m4/cloexec.m4 (gl_CLOEXEC):
70684         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70685         * m4/closeout.m4 (gl_CLOSEOUT):
70686         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70687         * m4/dirname.m4 (gl_DIRNAME):
70688         * m4/exclude.m4 (gl_EXCLUDE):
70689         * m4/exitfail.m4 (gl_EXITFAIL):
70690         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70691         * m4/file-type.m4 (gl_FILE_TYPE):
70692         * m4/filemode.m4 (gl_FILEMODE):
70693         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70694         * m4/fpending.m4 (gl_FUNC_FPENDING):
70695         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70696         * m4/fts.m4 (gl_FUNC_FTS):
70697         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70698         * m4/getdate.m4 (gl_GETDATE):
70699         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70700         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70701         * m4/getpass.m4 (gl_FUNC_GETPASS):
70702         * m4/gettime.m4 (gl_GETTIME):
70703         * m4/getugroups.m4 (gl_GETUGROUPS):
70704         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70705         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70706         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70707         * m4/hash.m4 (gl_HASH):
70708         * m4/idcache.m4 (gl_IDCACHE):
70709         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70710         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70711         * m4/long-options.m4 (gl_LONG_OPTIONS):
70712         * m4/lstat.m4 (gl_FUNC_LSTAT):
70713         * m4/md5.m4 (gl_MD5):
70714         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70715         * m4/memcoll.m4 (gl_MEMCOLL):
70716         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70717         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70718         * m4/memxor.m4 (gl_MEMXOR):
70719         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70720         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70721         * m4/modechange.m4 (gl_MODECHANGE):
70722         * m4/mountlist.m4 (gl_MOUNTLIST):
70723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70724         * m4/openat.m4 (gl_FUNC_OPENAT):
70725         * m4/pathmax.m4 (gl_PATHMAX):
70726         * m4/physmem.m4 (gl_PHYSMEM):
70727         * m4/posixtm.m4 (gl_POSIXTM):
70728         * m4/posixver.m4 (gl_POSIXVER):
70729         * m4/quote.m4 (gl_QUOTE):
70730         * m4/quotearg.m4 (gl_QUOTEARG):
70731         * m4/readtokens.m4 (gl_READTOKENS):
70732         * m4/readutmp.m4 (gl_READUTMP):
70733         * m4/regex.m4 (gl_REGEX):
70734         * m4/safe-read.m4 (gl_SAFE_READ):
70735         * m4/safe-write.m4 (gl_SAFE_WRITE):
70736         * m4/same.m4 (gl_SAME):
70737         * m4/save-cwd.m4 (gl_SAVE_CWD):
70738         * m4/savedir.m4 (gl_SAVEDIR):
70739         * m4/settime.m4 (gl_SETTIME):
70740         * m4/sha1.m4 (gl_SHA1):
70741         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70742         * m4/stat-macros.m4 (gl_STAT_MACROS):
70743         * m4/stat-time.m4 (gl_STAT_TIME):
70744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70745         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70746         * m4/strdup.m4 (gl_FUNC_STRDUP):
70747         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70748         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70749         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70750         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70751         * m4/time_r.m4 (gl_TIME_R):
70752         * m4/timespec.m4 (gl_TIMESPEC):
70753         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70754         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70755         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70756         * m4/userspec.m4 (gl_USERSPEC):
70757         * m4/utimecmp.m4 (gl_UTIMECMP):
70758         * m4/utimens.m4 (gl_UTIMENS):
70759         * m4/xalloc.m4 (gl_XALLOC):
70760         * m4/xgetcwd.m4 (gl_XGETCWD):
70761         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70762         * m4/xreadlink.m4 (gl_XREADLINK):
70763         * m4/xstrtod.m4 (gl_XSTRTOD):
70764         * m4/yesno.m4 (gl_YESNO):
70765         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70766         to get the necessary .h files and whatnot.
70767
70768 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70769             Bruno Haible  <bruno@clisp.org>
70770
70771         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70772         /bin/sh understanding of '!' conditional negation.
70773
70774 2006-08-21  Jim Meyering  <jim@meyering.net>
70775
70776         * modules/openat (Depends-on): Really alphabetize.
70777
70778         * modules/acl (Depends-on): Add error and quote.
70779
70780         * check-module (find_included_lib_files): Add at-func.c to the
70781         ok-to-include-more-than-once white list.
70782
70783         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70784
70785 2006-08-21  Bruno Haible  <bruno@clisp.org>
70786
70787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70788         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70789         Reported by Martin Lambers <marlam@marlam.de>.
70790
70791 2006-08-21  Bruno Haible  <bruno@clisp.org>
70792
70793         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70794         specify an installation location, don't emit a noinst_LIBRARIES or
70795         noinst_LTLIBRARIES assignment.
70796
70797 2006-08-21  Bruno Haible  <bruno@clisp.org>
70798
70799         BeOS portability.
70800         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70801         BeOS has mbrtowc() but no <wctype.h>.
70802
70803 2006-08-21  Bruno Haible  <bruno@clisp.org>
70804
70805         BeOS portability.
70806         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70807         exist.
70808
70809 2006-08-21  Bruno Haible  <bruno@clisp.org>
70810
70811         BeOS portability.
70812         * lib/mbchar.h: Include <wctype.h> only if it exists.
70813
70814 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70815
70816         Remove files that are no longer needed by their respective modules.
70817         * m4/obstack.m4: Remove.
70818         * m4/strerror_r.m4: Remove.
70819         * m4/uint32_t.m4: Remove.
70820         * m4/uintptr_t.m4: Remove.
70821         * m4/ullong_max.m4: Remove.
70822         * m4/xstrtoimax.m4: Remove.
70823         * m4/xstrtoumax.m4: Remove.
70824
70825         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70826         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70827         dependencies now capture this.
70828
70829         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70830         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70831         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70832         * m4/human.m4 (gl_HUMAN): Likewise.
70833         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70834         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70835
70836         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70837
70838         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70839         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70840         stdint.
70841         * m4/human.m4 (gl_HUMAN): Likewise.
70842         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70843         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70844         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70845         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70846         * m4/xstrtol (gl_XSTRTOL): Likewise.
70847
70848         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70849         AC_TYPE_LONG_LONG_INT.
70850         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70851         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70852         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70853         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70854
70855         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70856         on stdbool.
70857
70858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70859         (gl_PREREQ_XSTRTOUL): Remove.
70860
70861         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70862
70863         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70864         mode.
70865
70866 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         Add and change modules to make it easier for coreutils to use
70869         gnulib-tool.
70870         * modules/backupfile (Files): Remove m4/d-ino.m4.
70871         (Depends-on): Add d-ino.
70872         * modules/cycle-check (Depends-on): Add stdint.
70873         (lib_SOURCES): Add cycle-check.h.
70874         * modules/d-ino: New module.
70875         * modules/d-type: New module.
70876         * modules/error (Files): Remove m4/strerror_r.m4.
70877         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70878         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70879         m4/inttypes_h.m4, m4/uintmax_t.m4.
70880         (Depends-on): Add stdint.
70881         (lib_SOURCES): Add fsusage.h.
70882         * modules/getcwd (Files): Remove d-ino.m4.
70883         (Depends-on): Add d-ino.
70884         * modules/getndelim2 (Depends-on): Add stdint.
70885         * modules/glob (Files): Remove m4/d-type.m4.
70886         (Depends-on): Add d-type.
70887         * modules/host-os: New module.
70888         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70889         m4/inttypes_h.m4, m4/uintmax_t.m4.
70890         * Depends-on: Add stdint.
70891         (lib_SOURCES): Add human.h.
70892         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70893         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70894         m4/uintmax_t.m4, m4/ulonglong.m4.
70895         (Depends-on): Add stdint.
70896         (EXTRA_DIST): Add inttostr.h.
70897         * modules/lchmod: New module.
70898         * modules/link-follow: New module.
70899         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70900         (Depends-on): Add lchmod.
70901         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70902         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70903         (Depends-on): Add stdint.
70904         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70905         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70906         (Depends-on): Add stdint.
70907         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70908         * modules/perl: New module.
70909         * modules/regex (Depends-on): Add stdint.
70910         * modules/rmdir-errno: New module.
70911         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70912         m4/intmax_t.m4.
70913         (Depends-on): Add stdint.
70914         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70915         m4/uintmax_t.m4.
70916         (Depends-on): Add stdint.
70917         * modules/unlink-busy: New module.
70918         * modules/utimecmp (Depends-on): Add stdint.
70919         * modules/uptime: New module.
70920         * modules/winsz-ioctl: New module.
70921         * modules/winsz-termios: New module.
70922         * modules/xnanosleep (Depends-on): Add nanosleep.
70923         * modules/ullong_max: Remove.
70924         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70925         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70926         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70927         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70928         (Depends-on): Add inttypes.
70929         (lib_SOURCES): Add xstrtol.h.
70930         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70931         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70932         * MODULES.html.sh: Move 'assert' into the assert section.
70933         Move 'dummy' into the linking section.
70934         Remove ullong_max.
70935         Add section for compatibility checks for POSIX:2001 functions,
70936         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70937         winsz-ioctl, and winsz-termios into it.
70938         Add lchmod.
70939         Add top-level Misc section and put host-os, perl, and uptime
70940         into it.
70941
70942 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70945         now assume the stdint module.  Do not include inttypes.h.
70946         * lib/fsusage.h: Likewise.
70947         * lib/getndelim2.c: Likewise.
70948         * lib/human.h: Likewise.
70949         * lib/inttostr.h: Likewise.
70950         * lib/obstack.c: Likewise.
70951         * lib/regex_internal.h: Likewise.
70952         * lib/tempname.c: Likewise.
70953         * lib/utimecmp.c: Likewise.
70954         * lib/xstrtol.h: Likewise.
70955
70956         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70957
70958         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70959         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70960         * lib/xtime.h: Likewise.
70961
70962 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * modules/openat (Files): Add lib/fchmodat.c.
70965         Fixes problem reported by Jay Youngman.
70966
70967 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70970         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70971
70972 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70973             Bruno Haible  <bruno@clisp.org>
70974
70975         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70976         and is a script that invokes bison. Tighten the code. Add comments.
70977
70978 2006-08-18  Jim Meyering  <jim@meyering.net>
70979
70980         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70981         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70982         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70983         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70984
70985 2006-08-18  Bruno Haible  <bruno@clisp.org>
70986
70987         * modules/bison-i18n: New file.
70988         * MODULES.html.sh (Internationalization functions): Add it.
70989
70990 2006-08-18  Bruno Haible  <bruno@clisp.org>
70991
70992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70993         sys/statvfs.h. When getmntinfo was found, check its declaration and
70994         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70995
70996 2006-08-18  Bruno Haible  <bruno@clisp.org>
70997
70998         * m4/bison-i18n.m4: New file, from bison.
70999
71000 2006-08-18  Bruno Haible  <bruno@clisp.org>
71001
71002         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71003         (ME_DUMMY): Treat "kernfs" as a dummy.
71004         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71005
71006 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         Update from coreutils.
71009
71010         2006-08-15  Jim Meyering  <jim@meyering.net>
71011
71012         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71013
71014         2006-01-17  Jim Meyering  <jim@meyering.net>
71015
71016         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71017
71018         2006-01-11  Jim Meyering  <jim@meyering.net>
71019
71020         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71021         Check for the lchmod function.
71022
71023 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71024
71025         Update from coreutils.
71026
71027         * lib/__fpending.h: Add copyright notice.
71028         * lib/fprintftime.h: Likewise.
71029         * lib/savedir.c: Use (C) in copyright notice.
71030         * lib/savedir.h: Likewise.
71031
71032         2006-08-15  Jim Meyering  <jim@meyering.net>
71033
71034         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71035         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71036         in support of the EXPECTED_ERRNO macro.
71037         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71038         definitions.  Instead, define the appropriate symbols and include
71039         "at-func.c".
71040         * lib/mkdirat.c (mkdirat): Likewise.
71041         * lib/fchmodat.c (fchmodat): Likewise.
71042         (ENOSYS): Remove definition.
71043         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71044         it.  Don't include "unistd--.h" -- it wasn't ever used.
71045
71046         2006-01-17  Jim Meyering  <jim@meyering.net>
71047
71048         Rewrite fts.c not to change the current working directory,
71049         by using openat, fstatat, fdopendir, etc..
71050
71051         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71052         (HAVE_OPENAT_SUPPORT): Define.
71053         [_LIBC] (fchdir): Don't undef or define; no longer used.
71054         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71055         Now, this `function' always succeeds, and consumes its file descriptor
71056         parameter -- so callers must not close such FDs.  Update callers.
71057         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71058         (diropen): Add parameter, SP.  Adjust all callers.
71059         Implement using diropen_fd, rather than open.
71060         (fts_open): Initialize new member, fts_cwd_fd.
71061         Remove fts_rft-setting code.
71062         (fts_close): Close fts_cwd_fd, if necessary.
71063         (__opendir2): Define in terms of opendir or opendirat,
71064         depending on whether the FST_NOCHDIR flag is set.
71065         (fts_build): Since fts_safe_changedir consumes its FD, and since
71066         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71067         and close the dup'd file descriptor upon failure.
71068         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71069         (fts_safe_changedir): Tweak semantics to reflect that this function
71070         now calls cwd_advance_fd and hence consumes its FD argument.
71071         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71072         [struct FTS] (fts_rft): Remove now-unused member.
71073         [struct FTS] (fts_cycle.state): Improve comment.
71074
71075         * lib/openat.c (openat_needs_fchdir): New function.
71076         * lib/openat.h (openat_needs_fchdir): Declare it.
71077
71078 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71081         Problem and fix reported by PĂ¡draig Brady in
71082         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71083
71084 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71087
71088 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * lib/memcoll.c (memcoll): Optimize for the common case where the
71091         arguments are bytewise equal.
71092
71093 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * doc/regexprops-generic.texi: Add a copyright notice.
71096
71097 2006-08-15  Bruno Haible  <bruno@clisp.org>
71098
71099         * modules/tmpdir (License): Change to LGPL.
71100
71101 2006-08-15  Bruno Haible  <bruno@clisp.org>
71102
71103         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71104         module.
71105
71106 2006-08-14  Simon Josefsson  <jas@extundo.com>
71107
71108         * config/srclist.txt: Add gnupload.
71109
71110 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71111
71112         Change copyright notice from LGPL 2 to GPL 2, since that's the
71113         standard form used in the gnulib repository.
71114         * tests/test-lock.c: Likewise.
71115         * tests/test-stdint.c: Likewise.
71116         * tests/test-tls.c: Likewise.
71117
71118         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71119         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71120         Add copyright notice.
71121
71122         * check-module: Add copyright notice.  Output a copyright
71123         notice if "--version" is specified.
71124         * modules/COPYING: New file.
71125         * tests/test-getaddrinfo.c: Add copyright notice.
71126         * tests/test-verify.c: Likewise.
71127
71128 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         Change copyright notice from LGPL 2 to GPL 2, since that's the
71131         standard form used in the gnulib repository.
71132         * lib/lock.c: LGPL -> GPL.
71133         * lib/lock.h: Likewise.
71134         * lib/strnlen1.c: Likewise.
71135         * lib/strnlen1.h: Likewise.
71136         * lib/tls.c: Likewise.
71137         * lib/tls.h: Likewise.
71138         * lib/tmpdir.c: Likewise.
71139
71140         * lib/TODO: Remove; this belongs only in coreutils.
71141
71142 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         Add copyright notices to long-enough files that lack them, since
71145         otherwise the files aren't clearly free.  Use the same notice that
71146         getdate.texi already uses.
71147         * doc/alloca-opt.texi: Add copyright notice.
71148         * doc/alloca.texi: Likewise.
71149         * doc/ctime.texi: Likewise.
71150         * doc/functions.texi: Likewise.
71151         * doc/gcd.texi: Likewise.
71152         * doc/gnulib-tool.texi: Likewise.
71153         * doc/inet_ntoa.texi: Likewise.
71154         * doc/visibility.texi: Likewise.
71155
71156         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71157         * doc/quote.texi: Add copyright notice.
71158
71159         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71160         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71161         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71162         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71163         is now obsolete, and give a pointer to the Sun list.
71164         Add copyright notice.
71165
71166 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * config/srclistvars.sh: Add copyright notice.
71169
71170 2006-08-14  Eric Blake  <ebb9@byu.net>
71171
71172         Import the following change from libc:
71173
71174         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71175
71176         Upstream bug 2997.
71177         * lib/misc/error.c: Add space between program name and message if file
71178         name is missing.
71179
71180 2006-08-12  Karl Berry  <karl@gnu.org>
71181
71182         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71183         remove, these originate in gnulib now.
71184
71185 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71186
71187         * doc/Makefile (standards.info standards.html standards.dvi):
71188         Also depend on make-stds.texi.
71189
71190 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71193         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71194
71195         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71196         in wchar_t.  Problem reported by Eric Blake.
71197
71198         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71199         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71200         Also, help the compiler to keep LEN in a register.
71201
71202 2006-08-11  Eric Blake  <ebb9@byu.net>
71203
71204         * users.txt: Sort.  Add tar.
71205
71206 2006-08-11  Bruno Haible  <bruno@clisp.org>
71207
71208         * users.txt: New file.
71209
71210 2006-08-11  Bruno Haible  <bruno@clisp.org>
71211
71212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71213         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71214
71215 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * modules/snprintf (Depends-on): Remove minmax.
71218         (Maintainer): Add self and Bruno.
71219
71220 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71223         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71224         (EOVERFLOW): Define if the system does not.
71225         Do not include "minmax.h"; it wasn't used.
71226         (snprintf): Don't assume size_t promotes to an unsigned type.
71227         Fix bug when generated string was too long for the buffer: the
71228         buffer's contents are supposed to be the initial prefix of the
71229         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71230         exceeds INT_MAX; do the check ourselves.
71231
71232         Import the following changes from libc:
71233
71234         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71235
71236         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71237         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71238         set wc to the byte which couldn't be converted.
71239         (re_string_reconstruct): Don't clear valid_raw_len before calling
71240         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71241         tip_context using re_string_context_at.
71242
71243         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71244
71245         * lib/posix/regex.h: g++ still cannot handled [restrict].
71246
71247         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71248
71249         * lib/posix/regex.h: Remove special handling for VMS.
71250
71251 2006-08-10  Jim Meyering  <jim@meyering.net>
71252
71253         * modules/same-inode: New module.
71254         * modules/dev-ino: New module.
71255         * modules/cycle-check: Depend on these modules, rather than simply
71256         including their .h files.
71257         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71258         required via m4/cycle-check.m4.
71259         * modules/same: Depend on new same-inode module, rather than
71260         including same-inode.h.
71261         * modules/chdir-safer: New file.
71262
71263         * modules/chown (Depends-on): Add stat-macros.
71264
71265 2006-08-10  Jim Meyering  <jim@meyering.net>
71266
71267         * m4/cycle-check.m4: New file.
71268         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71269         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71270
71271 2006-08-10  Eric Blake  <ebb9@byu.net>
71272
71273         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71274         in from original proposal.
71275
71276 2006-08-10  Eric Blake  <ebb9@byu.net>
71277         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71278
71279         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71280         namespace.
71281
71282 2006-08-10  Bruno Haible  <bruno@clisp.org>
71283
71284         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71285         as well.
71286
71287 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         Sync from coreutils.
71290
71291         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71292
71293         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71294         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71295
71296 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71297
71298         * modules/restrict: Remove; no longer needed now that we assume
71299         Autoconf 2.59 or later.
71300         * MODULES.html.sh: Remove 'restrict'.
71301         * modules/argp (Depends-on): Remove 'restrict'.
71302         * modules/base64 (Depends-on): Likewise.
71303         * modules/gc (Depends-on): Likewise.
71304         * modules/getaddrinfo (Depends-on): Likewise.
71305         * modules/glob (Depends-on): Likewise.
71306         * modules/inet_ntop (Depends-on): Likewise.
71307         * modules/inet_pton (Depends-on): Likewise.
71308         * modules/memxor (Depends-on): Likewise.
71309         * modules/regex (Depends-on): Likewise.
71310         * modules/strtok_r (Depends-on): Likewise.
71311         * modules/time_r (Depends-on): Likewise.
71312
71313 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71316         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71317         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71318         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71319         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71320         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71321         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71322         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71323
71324         Merge from coreutils.
71325         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71326         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71327         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71328         * m4/time_r.m4 (gl_TIME_R): Likewise.
71329
71330 2006-08-09  Karl Berry  <karl@gnu.org>
71331
71332         * config/srclist.txt: no more gettext-tools, per Bruno.
71333
71334 2006-08-08  Eric Blake  <ebb9@byu.net>
71335
71336         * modules/verror: New module.
71337         * MODULES.html.sh: Document it.
71338
71339 2006-08-08  Eric Blake  <ebb9@byu.net>
71340
71341         * lib/verror.h, lib/verror.c: New files.
71342
71343 2006-08-08  Eric Blake  <ebb9@byu.net>
71344
71345         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71346         verror_at_line output complies with GNU Coding Standards even when
71347         file is NULL.
71348
71349 2006-08-07  Bruno Haible  <bruno@clisp.org>
71350
71351         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71352         versions of AIX.
71353         Reported by Ralf Wildenhues.
71354
71355 2006-08-07  Bruno Haible  <bruno@clisp.org>
71356
71357         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71358         in an AC_DEFUN. Needed so that the autoconf snippets can use
71359         AC_REQUIRE.
71360
71361 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71362
71363         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71364         Initialize pkgdata_DATA.
71365         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71366         overriding it.
71367
71368 2006-08-06  Eric Blake  <ebb9@byu.net>
71369
71370         * lib/error.h: Fold in some upstream changes from glibc.
71371         * lib/error.c: Likewise.
71372
71373 2006-08-04  Bruno Haible  <bruno@clisp.org>
71374
71375         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71376         Make the mostlyclean-local rule depend on mostlyclean-generic.
71377         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71378
71379 2006-07-31  Bruno Haible  <bruno@clisp.org>
71380
71381         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71382         <stdlib.h>, <string.h>.
71383
71384 2006-07-30  Bruno Haible  <bruno@clisp.org>
71385
71386         * modules/readlink (License): Change to LGPL.
71387
71388 2006-07-30  Bruno Haible  <bruno@clisp.org>
71389
71390         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71391         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71392         set PKGDATADIR to point to it.
71393
71394 2006-07-30  Bruno Haible  <bruno@clisp.org>
71395
71396         * modules/csharpexec (configure.ac): Comment out macro invocation.
71397         * modules/javaexec (configure.ac): Likewise.
71398         * modules/javacomp-script (configure.ac): Likewise.
71399
71400         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71401
71402 2006-07-30  Bruno Haible  <bruno@clisp.org>
71403
71404         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71405         linked-list.
71406
71407 2006-07-30  Bruno Haible  <bruno@clisp.org>
71408
71409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71410
71411 2006-07-30  Bruno Haible  <bruno@clisp.org>
71412
71413         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71414         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71415         get removed.
71416
71417 2006-07-29  Bruno Haible  <bruno@clisp.org>
71418
71419         Make it possible for gnulib-tool to work with locally modified or
71420         augmented gnulib repositories.
71421         * gnulib-tool (func_usage): Document --local-dir option.
71422         (local_gnulib_dir): New variable.
71423         Handle --local-dir option.
71424         (func_lookup_file): New function.
71425         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71426         (func_get_description, func_get_filelist, func_get_description,
71427         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71428         func_get_automake_snippet, func_get_include_directive,
71429         func_get_license, func_get_maintainer): Use func_lookup_file.
71430         (func_import, func_create_testdir): Use func_lookup_file.
71431
71432 2006-07-29  Bruno Haible  <bruno@clisp.org>
71433
71434         * modules/setenv (Depends-on): Add unistd.
71435
71436 2006-07-29  Bruno Haible  <bruno@clisp.org>
71437
71438         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71439
71440 2006-07-29  Bruno Haible  <bruno@clisp.org>
71441
71442         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71443
71444 2006-07-29  Bruno Haible  <bruno@clisp.org>
71445
71446         * gnulib-tool (import, update): If there is no Makefile.am, look at
71447         aclocal.m4, instead of bailing out.
71448
71449 2006-07-29  Bruno Haible  <bruno@clisp.org>
71450
71451         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71452         Categorize the options by when they are useful.
71453
71454 2006-07-29  Bruno Haible  <bruno@clisp.org>
71455
71456         * gnulib-tool (func_usage): Document option --no-libtool.
71457         Handle option --no-libtool.
71458         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71459         for changed semantics of $libtool variable.
71460         (func_import): Likewise. If libtool is not used, show this through
71461         an option --no-libtool.
71462         (func_create_testdir): Update.
71463
71464 2006-07-29  Bruno Haible  <bruno@clisp.org>
71465
71466         * gnulib-tool (func_import): Extend error message about missing
71467         --doc-base.
71468
71469 2006-07-29  Bruno Haible  <bruno@clisp.org>
71470
71471         * gnulib-tool (func_import): Don't create the $docbase directory if
71472         there is no file to store there.
71473
71474 2006-07-29  Bruno Haible  <bruno@clisp.org>
71475
71476         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71477         relevant, look for configure.ac there, not in the current directory.
71478         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71479
71480 2006-07-29  Bruno Haible  <bruno@clisp.org>
71481
71482         * gnulib-tool (SORT): New variable.
71483         (func_usage): Undocument --assume-autoconf option.
71484         Remove --assume-autoconf option handling.
71485         (autoconf_minversion): Determine from the contents of configure.ac.
71486         (func_import): Remove autoconf_minversion handling.
71487         Suggested by Eric Blake.
71488
71489 2006-07-29  Bruno Haible  <bruno@clisp.org>
71490
71491         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71492
71493 2006-07-29  Bruno Haible  <bruno@clisp.org>
71494
71495         * config/srclist.txt (*setenv.[ch]): Remove rules.
71496
71497 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71498
71499         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71500
71501 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71502
71503         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71504         arpa/inet.h.
71505
71506 2006-07-28  Simon Josefsson  <jas@extundo.com>
71507
71508         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71509         * modules/inet_pton (Depends-on): Likewise.
71510
71511 2006-07-28  Simon Josefsson  <jas@extundo.com>
71512
71513         * m4/netinet_in_h.m4: New file.
71514
71515 2006-07-28  Simon Josefsson  <jas@extundo.com>
71516
71517         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71518         #include's.
71519
71520 2006-07-28  Simon Josefsson  <jas@extundo.com>
71521
71522         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71523         #include's.
71524
71525 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71526
71527         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71528         setgid on directories only if they set these bits.
71529         * lib/modechange.h: Remove obsolete comment about masks.
71530
71531 2006-07-28  Eric Blake  <ebb9@byu.net>
71532
71533         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71534         macro expansion.
71535
71536 2006-07-28  Bruno Haible  <bruno@clisp.org>
71537
71538         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71539
71540 2006-07-28  Bruno Haible  <bruno@clisp.org>
71541
71542         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71543
71544 2006-07-28  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71547         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71548         Define fallbacks.
71549         Avoids link error on FreeBSD 4.x.
71550         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71551
71552         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71553         encoding.
71554         * lib/mbswidth.c (iswcntrl): Likewise.
71555
71556 2006-07-27  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71559         test.
71560
71561 2006-07-27  Bruno Haible  <bruno@clisp.org>
71562
71563         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71564         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71565         defined.
71566
71567 2006-07-26  Eric Blake  <ebb9@byu.net>
71568
71569         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71570
71571 2006-07-26  Eric Blake  <ebb9@byu.net>
71572
71573         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71574         like mingw that lack mkstemp.
71575         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71576         avoid compilation warning on mingw.
71577
71578 2006-07-26  Bruno Haible  <bruno@clisp.org>
71579
71580         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71581         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71582         INT_FAST*_MIN, INTPTR_MIN.
71583
71584 2006-07-25  Bruno Haible  <bruno@clisp.org>
71585
71586         * modules/version-etc (Depends-on): Add stdarg.
71587
71588 2006-07-25  Bruno Haible  <bruno@clisp.org>
71589
71590         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71591         complex commands.
71592
71593 2006-07-25  Bruno Haible  <bruno@clisp.org>
71594
71595         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71596         defined in <stdarg.h> or config.h.
71597
71598 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71601         (gl_STDIO_SAFER): Remove.
71602
71603 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * MODULES.html.sh (File stream based Input/Output):
71606         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71607         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71608         * modules/fopen-safer, modules/tmpfile-safer: New files.
71609         * modules/stdio-safer: Remove.
71610
71611 2006-07-24  Bruno Haible  <bruno@clisp.org>
71612
71613         * modules/tmpdir: New file.
71614         * MODULES.html.sh (File system functions): Add it.
71615
71616 2006-07-24  Bruno Haible  <bruno@clisp.org>
71617
71618         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71619         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71620
71621 2006-07-24  Bruno Haible  <bruno@clisp.org>
71622
71623         * modules/clean-temp: New file.
71624
71625 2006-07-24  Bruno Haible  <bruno@clisp.org>
71626
71627         * m4/tmpdir.m4: New file, from GNU gettext.
71628
71629 2006-07-24  Bruno Haible  <bruno@clisp.org>
71630
71631         * lib/tmpdir.h: New file, from GNU gettext.
71632         * lib/tmpdir.c: New file, from GNU gettext.
71633
71634 2006-07-24  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/clean-temp.h: New file, from GNU gettext.
71637         * lib/clean-temp.c: New file, from GNU gettext.
71638
71639 2006-07-23  Eric Blake  <ebb9@byu.net>
71640
71641         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71642         (Depends-on): Add binary-io.
71643
71644 2006-07-23  Eric Blake  <ebb9@byu.net>
71645
71646         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71647
71648 2006-07-23  Eric Blake  <ebb9@byu.net>
71649
71650         * lib/tmpfile-safer.c: New file.
71651         * lib/stdio-safer.h (fopen_safer): Add prototype.
71652         * lib/stdio--.h (tmpfile): Make safer.
71653
71654 2006-07-23  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71657         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71658         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71659         gl_linked_remove_at): Use it.
71660
71661 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71662         and Simon Josefsson <jas@extundo.com>
71663
71664         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71665
71666         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71667
71668 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * modules/close-stream: New file.
71671         * modules/closeout (Description): Make it clear that it exits
71672         with a diagnostic on error.
71673         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71674         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71675
71676 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * m4/close-stream.m4: New file.
71679
71680 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * lib/close-stream.c, lib/close-stream.h: New files.
71683
71684 2006-07-22  Bruno Haible  <bruno@clisp.org>
71685
71686         Merge from GNU gettext 0.15.
71687
71688         2006-05-01  Bruno Haible  <bruno@clisp.org>
71689
71690                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71691
71692         2006-07-22  Bruno Haible  <bruno@clisp.org>
71693
71694                 * modules/javaversion: New file.
71695                 * MODULES.html.sh (Java): Add javaversion.
71696
71697         2006-03-12  Bruno Haible  <bruno@clisp.org>
71698
71699                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71700
71701         2005-12-04  Bruno Haible  <bruno@clisp.org>
71702
71703                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71704                 (untested).
71705
71706         2006-06-21  Bruno Haible  <bruno@clisp.org>
71707
71708                 Avoid warnings from recent versions of mcs.
71709                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71710                 -o, -L, -r any more. Use options documented since mcs-1.0
71711                 instead. Similarly for -g.
71712
71713         2005-12-04  Bruno Haible  <bruno@clisp.org>
71714
71715                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71716                 .resources, not .resource.
71717
71718         2005-07-09  Bruno Haible  <bruno@clisp.org>
71719
71720                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71721                 add a .dll suffix.
71722                 Reported by Mark Junker <mjscod@gmx.de>.
71723
71724         2006-07-22  Bruno Haible  <bruno@clisp.org>
71725
71726                 * modules/gettext: Upgrade to gettext-0.15.
71727                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71728                 m4/visibility.m4.
71729                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71730
71731 2006-07-22  Bruno Haible  <bruno@clisp.org>
71732
71733         Merge from GNU gettext 0.15.
71734
71735         2006-03-25  Bruno Haible  <bruno@clisp.org>
71736
71737                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71738
71739         2006-07-21  Bruno Haible  <bruno@clisp.org>
71740
71741                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71742                 "1.1".
71743
71744         2006-05-09  Bruno Haible  <bruno@clisp.org>
71745
71746                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71747                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71748                 for the conftestver execution.
71749
71750         2006-05-01  Bruno Haible  <bruno@clisp.org>
71751
71752                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71753                 optional target-version argument. Verify that the compiler
71754                 groks source of the specified source-version, or add -source
71755                 option as necessary. Verify that the compiler produces
71756                 bytecode in the specified target-version, or add -target and
71757                 -source options as necessary. Make the result of the test
71758                 available as variable CONF_JAVAC. Also log error output in
71759                 config.log.
71760
71761         2006-03-11  Bruno Haible  <bruno@clisp.org>
71762
71763                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71764
71765         2006-05-09  Bruno Haible  <bruno@clisp.org>
71766
71767                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71768                 CLASSPATH_SEPARATOR to a semicolon.
71769
71770         2006-03-12  Bruno Haible  <bruno@clisp.org>
71771
71772                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71773                 available as variable CONF_JAVA, for subsequent autoconf
71774                 tests. Also log error output in config.log.
71775
71776         2006-07-19  Bruno Haible  <bruno@clisp.org>
71777
71778                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71779                 that getline works on glibc2 systems. Needed to avoid trouble
71780                 in relocatable.c.
71781                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71782
71783         2005-12-04  Bruno Haible  <bruno@clisp.org>
71784
71785                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71786                 launcher (untested).
71787
71788         2005-12-04  Bruno Haible  <bruno@clisp.org>
71789
71790                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71791
71792         2006-07-22  Bruno Haible  <bruno@clisp.org>
71793
71794                 * gettext.m4: Update from GNU gettext-0.15.
71795                 * nls.m4: Likewise.
71796                 * po.m4: Likewise.
71797                 * inttypes-pri.m4: Likewise.
71798                 * inttypes-h.m4: Renamed from inttypes.m4.
71799                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71800
71801 2006-07-22  Bruno Haible  <bruno@clisp.org>
71802
71803         Merge from GNU gettext 0.15.
71804
71805         2005-07-05  Bruno Haible  <bruno@clisp.org>
71806
71807                 * printf-args.c (printf_fetchargs): Work around broken
71808                 definition of wint_t on mingw.
71809
71810         2005-02-12  Bruno Haible  <bruno@clisp.org>
71811
71812                 * xallocsa.h: Add extern "C" for C++.
71813
71814         2006-05-17  Bruno Haible  <bruno@clisp.org>
71815
71816                 Cygwin portability.
71817                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71818
71819         2006-04-30  Bruno Haible  <bruno@clisp.org>
71820
71821                 * progreloc.c: Include <mach-o/dyld.h> if available.
71822                 (find_executable): Use _NSGetExecutablePath when possible.
71823
71824         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71825
71826                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71827                 function.
71828
71829         2005-12-29  Bruno Haible  <bruno@clisp.org>
71830
71831                 * progreloc.c (set_program_name_and_installdir): Fix
71832                 compilation error.
71833
71834         2005-12-04  Bruno Haible  <bruno@clisp.org>
71835
71836                 Cygwin portability.
71837                 * progreloc.c: Include <windows.h> also on Cygwin.
71838                 (find_executable): Add support for Cygwin.
71839                 (set_program_name_and_installdir): Handle also platforms with
71840                 nonempty EXEEXT.
71841
71842         2006-07-11  Bruno Haible  <bruno@clisp.org>
71843
71844                 * javacomp.c: Fix a comment.
71845                 Reported by Jim Meyering.
71846
71847         2006-04-30  Bruno Haible  <bruno@clisp.org>
71848
71849                 * javacomp.h (compile_java_class): Add source_version,
71850                 target_version arguments.
71851                 * javacomp.c: Rewritten to choose only a compiler that
71852                 respects the specified source_version and target_version.
71853
71854         2006-06-27  Bruno Haible  <bruno@clisp.org>
71855
71856                 Assume correct S_ISDIR macro.
71857                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71858
71859         2006-07-22  Bruno Haible  <bruno@clisp.org>
71860
71861                 * javaversion.h: New file, from GNU gettext.
71862                 * javaversion.c: New file, from GNU gettext.
71863                 * javaversion.java: New file, from GNU gettext.
71864                 * javaversion.class: New file, from GNU gettext.
71865
71866         2006-05-17  Bruno Haible  <bruno@clisp.org>
71867
71868                 Cygwin portability.
71869                 * javaexec.c (execute_java_class): Test for jview program
71870                 also on Cygwin.
71871
71872         2006-04-09  Bruno Haible  <bruno@clisp.org>
71873
71874                 * fatal-signal.c: Don't include string.h.
71875                 (at_fatal_signal): Use a copying loop instead of memcpy.
71876
71877         2005-12-04  Bruno Haible  <bruno@clisp.org>
71878
71879                 * csharpexec.c: Add support for 'clix' launcher (untested).
71880                 (execute_csharp_using_sscli): New function.
71881                 (execute_csharp_program): Call it.
71882
71883         2006-06-21  Bruno Haible  <bruno@clisp.org>
71884
71885                 Avoid warnings from recent versions of mcs.
71886                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71887                 -o, -L, -r any more. Use options documented since mcs-1.0
71888                 instead. Similarly for -g.
71889
71890         2005-07-09  Bruno Haible  <bruno@clisp.org>
71891
71892                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71893                 add a .dll suffix.
71894                 Reported by Mark Junker <mjscod@gmx.de>.
71895
71896         2006-06-17  Bruno Haible  <bruno@clisp.org>
71897
71898                 * config.charset: Update for NetBSD 3.0.
71899
71900         2006-05-17  Bruno Haible  <bruno@clisp.org>
71901
71902                 Cygwin portability.
71903                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71904
71905         2006-05-16  Bruno Haible  <bruno@clisp.org>
71906
71907                 * localcharset.c [CYGWIN]: Include <windows.h>.
71908                 (get_charset_aliases): For Cygwin, return the same CPxxx
71909                 aliases list as under WIN32.
71910                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71911                 the environment variables. Fall back to GetACP().
71912
71913         2006-04-05  Bruno Haible  <bruno@clisp.org>
71914
71915                 * config.charset: Update Juan Manuel Guerrero's address.
71916
71917         2005-02-12  Bruno Haible  <bruno@clisp.org>
71918
71919                 * allocsa.h: Add extern "C" for C++.
71920
71921         2005-02-10  Bruno Haible  <bruno@clisp.org>
71922
71923                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71924                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71925
71926         2006-07-22  Bruno Haible  <bruno@clisp.org>
71927
71928                 * gettext.h: Update to GNU gettext-0.15.
71929
71930 2006-07-22  Bruno Haible  <bruno@clisp.org>
71931
71932         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71933         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71934         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71935
71936 2006-07-21  Eric Blake  <ebb9@byu.net>
71937
71938         * modules/stdlib-safer: New file.
71939         * MODULES.html.sh (File stream based Input/Output): Add
71940         stdlib-safer.
71941
71942 2006-07-21  Eric Blake  <ebb9@byu.net>
71943
71944         * lib/stdlib-safer.h: New file from coreutils, required by
71945         stdlib--.h.
71946
71947 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71950
71951 2006-07-20  Bruno Haible  <bruno@clisp.org>
71952
71953         * gnulib-tool: Recognize new option --assume-autoconf.
71954         (autoconf_minversion): New variable.
71955         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71956
71957 2006-07-20  Bruno Haible  <bruno@clisp.org>
71958
71959         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71960
71961 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71962
71963         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71964         Reindent and repaginate.
71965
71966 2006-07-19  Derek Price  <derek@ximbiot.com>
71967
71968         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71969         Correct grammar.
71970
71971 2006-07-17  Bruno Haible  <bruno@clisp.org>
71972
71973         * modules/list: New file.
71974         * modules/array-list: New file.
71975         * modules/carray-list, modules/carray-list-tests: New files.
71976         * modules/linked-list, modules/linked-list-tests: New files.
71977         * modules/avltree-list, modules/avltree-list-tests: New files.
71978         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71979         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71980         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71981         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71982         * modules/oset: New file.
71983         * modules/array-oset: New file.
71984         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71985         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71986         * tests/test-carray_list.c: New file.
71987         * tests/test-linked_list.c: New file.
71988         * tests/test-avltree_list.c: New file.
71989         * tests/test-rbtree_list.c: New file.
71990         * tests/test-linkedhash_list.c: New file.
71991         * tests/test-avltreehash_list.c: New file.
71992         * tests/test-rbtreehash_list.c: New file.
71993         * tests/test-avltree_oset.c: New file.
71994         * tests/test-rbtree_oset.c: New file.
71995         * MODULES.html.sh (Container data structures): New section.
71996
71997 2006-07-17  Bruno Haible  <bruno@clisp.org>
71998
71999         * m4/gl_list.m4: New file.
72000
72001 2006-07-17  Bruno Haible  <bruno@clisp.org>
72002
72003         * lib/gl_list.h: New file.
72004         * lib/gl_list.c: New file.
72005         * lib/gl_array_list.h: New file.
72006         * lib/gl_array_list.c: New file.
72007         * lib/gl_carray_list.h: New file.
72008         * lib/gl_carray_list.c: New file.
72009         * lib/gl_linked_list.h: New file.
72010         * lib/gl_linked_list.c: New file.
72011         * lib/gl_anylinked_list1.h: New file.
72012         * lib/gl_anylinked_list2.h: New file.
72013         * lib/gl_avltree_list.h: New file.
72014         * lib/gl_avltree_list.c: New file.
72015         * lib/gl_anyavltree_list1.h: New file.
72016         * lib/gl_anyavltree_list2.h: New file.
72017         * lib/gl_rbtree_list.h: New file.
72018         * lib/gl_rbtree_list.c: New file.
72019         * lib/gl_anyrbtree_list1.h: New file.
72020         * lib/gl_anyrbtree_list2.h: New file.
72021         * lib/gl_anytree_list1.h: New file.
72022         * lib/gl_anytree_list2.h: New file.
72023         * lib/gl_linkedhash_list.h: New file.
72024         * lib/gl_linkedhash_list.c: New file.
72025         * lib/gl_anyhash_list1.h: New file.
72026         * lib/gl_anyhash_list2.h: New file.
72027         * lib/gl_avltreehash_list.h: New file.
72028         * lib/gl_avltreehash_list.c: New file.
72029         * lib/gl_rbtreehash_list.h: New file.
72030         * lib/gl_rbtreehash_list.c: New file.
72031         * lib/gl_anytreehash_list1.h: New file.
72032         * lib/gl_anytreehash_list2.h: New file.
72033
72034         * lib/gl_oset.h: New file.
72035         * lib/gl_oset.c: New file.
72036         * lib/gl_array_oset.h: New file.
72037         * lib/gl_array_oset.c: New file.
72038         * lib/gl_avltree_oset.h: New file.
72039         * lib/gl_avltree_oset.c: New file.
72040         * lib/gl_rbtree_oset.h: New file.
72041         * lib/gl_rbtree_oset.c: New file.
72042         * lib/gl_anytree_oset.h: New file.
72043
72044 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * m4/mkancesdirs.m4: New file.
72047         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72048         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72049         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72050         it.
72051
72052 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72055         * lib/mkancesdirs.h: New files.
72056         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72057         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72058         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72059         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72060         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72061         callers changed.  Revamp internals significantly, by not
72062         attempting to create directories that are temporarily more
72063         permissive than the final results.  Do not attempt to use
72064         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72065         This removes some race conditions, fixes some bugs, and simplifies
72066         things.  Use new dirchownmod function to do owner and mode changes.
72067         * lib/mkdir-p.h: Likewise.
72068         * lib/modechange.c (octal_to_mode): New function.
72069         (struct mode_change): New member mentioned.
72070         (make_node_op_equals): New arg mentioned.  All callers changed.
72071         (mode_compile): Keep track of which mode bits the user has explicitly
72072         mentioned.
72073         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72074         New arg PMODE_BITS, to keep track of which mode bits the user
72075         mentioned; it treats S_ISUID and S_ISGID speciall.
72076         All callers changed.
72077         * lib/modechange.h: Likewise.
72078
72079 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * MODULES.html.sh: Add mkancestors.
72082         * modules/mkancesdirs: New module.
72083         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72084         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72085         The chdir-safer and afs files are now orphans; I'll remove them
72086         unless someone speaks up.
72087         Add lib/dirchownmod.c, lib/dirchownmod.h.
72088         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72089         Add lchown, mkancesdirs.
72090         (Maintainer): Add self.
72091
72092 2006-07-15  Karl Berry  <karl@gnu.org>
72093
72094         * gnulib-tool: help message wording/arrangement.
72095
72096 2006-07-14  Simon Josefsson  <jas@extundo.com>
72097
72098         * doc/gnulib.texi (Libtool and Windows): New section.
72099
72100 2006-07-12  Simon Josefsson  <jas@extundo.com>
72101
72102         * modules/gendocs (License): Fix license, approved by Karl.
72103
72104 2006-07-12  Eric Blake  <ebb9@byu.net>
72105
72106         * MODULES.html.sh: Add gendocs.
72107
72108 2006-07-11  Eric Blake  <ebb9@byu.net>
72109
72110         * modules/fdl: New module, to install doc/fdl.texi.
72111         * MODULES.html.sh: Add new section for documentation modules.
72112         * gnulib-tool: Avoid space-tab.
72113         (--doc-base): New option, to manage files from doc.
72114
72115 2006-07-11  Eric Blake  <ebb9@byu.net>
72116
72117         * m4/absolute-header.m4: Fix comments to match recent change.
72118
72119 2006-07-11  Eric Blake  <ebb9@byu.net>
72120
72121         * gnulib-tool: List --doc-base before --tests-base.
72122
72123 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72124
72125         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72126
72127 2006-07-11  Bruno Haible  <bruno@clisp.org>
72128
72129         * README: Mention where to put documentation.
72130
72131 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72132
72133         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72134
72135 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72138         to stdint.m4.
72139
72140 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72143         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72144         "no/such/file/stdint.h" when there is no such file, so that
72145         the resulting C code can be parsed by dodgy compilers.
72146         Problems reported by Bob Proulx.
72147
72148 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72149
72150         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72151         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72152         macros into the GNU _D_EXACT_NAMLEN.
72153         * lib/savedir.c:  Likewise.
72154         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72155
72156 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72157         and Paul Eggert  <eggert@cs.ucla.edu>
72158
72159         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72160         * m4/savedir.m4:
72161         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72162         macros into the GNU _D_EXACT_NAMLEN.
72163
72164 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72167         around the absolute name, to work around a problem with the HP-UX
72168         11.23 native C compiler, reported by Bob Proulx.
72169
72170 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * doc/maintain.texi, make-stds.texi: Sync from
72173         <http://savannah.gnu.org/projects/gnustandards>.
72174
72175 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72176
72177         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72178
72179 2006-07-09  Jim Meyering  <jim@meyering.net>
72180
72181         * m4/glob.m4: Remove a doubled word in a comment.
72182
72183 2006-07-09  Jim Meyering  <jim@meyering.net>
72184
72185         * lib/argp-pv.c: Remove a doubled word in a comment.
72186         * lib/check-version.c (check_version): Likewise.
72187         * lib/javacomp.c (compile_java_class): Likewise.
72188
72189 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72190
72191         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72192         for the benefit of people using Autoconf 2.60.  If you want to
72193         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72194         (or m4/onceonly.m4, if pre-2.57) manually.
72195
72196 2006-07-08  Jim Meyering  <jim@meyering.net>
72197
72198         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72199         comment.
72200         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72201         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72202         comment.
72203
72204 2006-07-08  Jim Meyering  <jim@meyering.net>
72205
72206         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72207
72208 2006-07-07  Simon Josefsson  <jas@extundo.com>
72209
72210         * tests/test-crc.c: Change expected crc value, the test vector
72211         were probably computed using the old broken crc.c?
72212
72213 2006-07-06  Simon Josefsson  <jas@extundo.com>
72214
72215         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72216         now the canonical place for the M4 file).
72217
72218         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72219         from the sys_socket dependency now.
72220
72221         * modules/inet_pton (Files): Ditto.
72222
72223         * modules/inet_ntop (Files): Ditto.
72224
72225 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72226
72227         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72228         not gl_PREREQ_GETUSERSHELL.
72229
72230 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72231
72232         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72233         with only one argument, for Autoconf 2.60.
72234         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72235         expand to nothing, so add a shell command to avoid syntax error.
72236         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72237
72238 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72239
72240         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72241
72242 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72245         no longer needed.  Check for isblank decl.
72246         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72247         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72248         of existence.
72249
72250 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * lib/getloadavg.c: Use __VMS, not VMS.
72253         * lib/getopt.c: Likewise.
72254         * lib/getpagesize.h: Likewise.
72255         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72256         and probably does not work.
72257
72258 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * lib/.cppi-disable: Add wcwidth.
72261         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72262         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72263         (ISGRAPH): Remove.  All uses changed to isgraph.
72264         (FOLD) [!defined _LIBC]: Remove special case.
72265         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72266         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72267         HAVE_ISBLANK.
72268         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72269         case.
72270
72271 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72272
72273         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72274         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72275         brackets.  Other minor changes to suppress some compiler
72276         warnings.
72277
72278 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72279         and Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72282         of invoking obsolescent AC_HEADER_DIRENT macro.
72283         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72284         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72285         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72286         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72287         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72288         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72289         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72290         * m4/readdir.m4: Remove; no longer needed.
72291
72292 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72293         and Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72296         Don't worry about this obsolete case any more.
72297         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72298         directories.
72299         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72300         worry about this obsolete case any more.
72301         * lib/fts.c: Likewise.
72302         * lib/getcwd.c: Likewise.
72303         * lib/glob.h: Likewise.
72304         * lib/savedir.c: Likewise.
72305
72306 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72309         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72310         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72311         needed.
72312         All uses removed.
72313         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72314         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72315         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72316         needed.
72317         * m4/getdate.m4 (gl_GETDATE): Likewise.
72318         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72319         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72320         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72321         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72322         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72324         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72325         needed.
72326
72327 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * lib/memcasecmp.c: Include <limits.h>.
72330         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72331         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72332         Don't assume isdigit succeeds only on '0' through '9'.
72333
72334 2006-07-05  Eric Blake  <ebb9@byu.net>
72335
72336         * modules/getaddrinfo (Depends-on): Add snprintf.
72337
72338 2006-07-05  Eric Blake  <ebb9@byu.net>
72339
72340         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72341         to avoid 'header present but could not be compiled' on cygwin.
72342
72343 2006-07-05  Eric Blake  <ebb9@byu.net>
72344
72345         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72346         missing from netdb.h.
72347         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72348
72349 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72350
72351         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72352         no longer needed.
72353         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72354         * m4/getdate.m4 (gl_GETDATE): Likewise.
72355         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72356         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72357         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72358         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72359         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72360
72361 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72362
72363         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72364         All uses of is_space replaced by isspace.
72365         * lib/exit.h: Don't talk about STDC_HEADERS.
72366         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72367         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72368         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72369         replaced by isprint etc.
72370         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72371         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72372         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72373         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72374         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72375         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72376
72377 2006-07-05  Bruno Haible  <bruno@clisp.org>
72378
72379         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72380         the function exists, before testing against AIX.
72381         Reported by Martin Lambers <marlam@marlam.de>.
72382
72383 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72386         From Mark D. Baushke.
72387
72388 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72391         to the absolute name, not just one, to bypass Sun C 5.8's
72392         "warning: #include of /usr/include/... may be non-portable".
72393
72394 2006-07-04  Eric Blake  <ebb9@byu.net>
72395
72396         * modules/dirname-tests: New test module.
72397         * tests/test-dirname.c: New file, replacing dirname.c
72398         TEST_DIRNAME section that was recently deleted.
72399
72400 2006-07-04  Bruno Haible  <bruno@clisp.org>
72401
72402         Assume ANSI C header files and <ctype.h> functions.
72403         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72404         (mbsnwidth): Use isprint, iscntrl instead.
72405
72406 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         Merge from coreutils.
72409         * MODULES.html.sh: Add xstrtold.
72410         * modules/xstrtold: New file.
72411         * modules/cycle-check (Files): Add lib/same-inode.h.
72412         * modules/dirname (Files): Add m4/double-slash-root.m4.
72413         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72414         * modules/mkdir-p (Files): Add lib/same-inode.h.
72415         * modules/same (Files): Add lib/same-inode.h.
72416
72417 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72420         This is to keep the terminology clean; POSIX talks about
72421         "absolute pathnames", not "full pathnames", but the GNU
72422         Coding Standards say to use "path" for something else;
72423         so use "absolute" to keep both sides happy.
72424         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72425         Set gl_absolute_header, not gl_full_header_path.
72426         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72427         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72428         All uses changed.
72429
72430         Merge from coreutils.
72431
72432         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72435         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72436         want to require the building of c-strtod.o.
72437         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72438         needs -lm directly.
72439         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72440
72441         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72444         --as-needed option if available.  Problem reported by Albert Chin in
72445         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72446         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72447         cc merely issues a bunch of annoying warnings for --as-needed
72448         (this problem was reported by Bob Proulx).  Also, try linking with
72449         -lm to detect a bug in binutils 2.16 (this problem was reported
72450         by Ralf Wildenhues).
72451
72452         2006-06-18  Jim Meyering  <jim@meyering.net>
72453
72454         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72455         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72456         macro.
72457         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72458         also check for glibc-2.4's abort-inducing bug.
72459
72460         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72461         Low-probability clean-up should be to use rmdir to get rid of
72462         the just-created directory, not unlink.
72463
72464         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72465         configure fail, and request a bug report to inform us about it.
72466         Add a comment that, barring reports to the contrary, in 2007 we'll
72467         assume ftruncate is universally available.
72468
72469         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72472
72473         2006-03-12  Jim Meyering  <jim@meyering.net>
72474
72475         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72476         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72477         * m4/same.m4 (gl_SAME): Likewise.
72478         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72479
72480         2006-03-11  Eric Blake  <ebb9@byu.net>
72481
72482         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72483         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72484         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72485         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72486
72487 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72490         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72491         reported by Mark D. Baushke, one in
72492         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72493
72494         Merge from coreutils.
72495
72496         * lib/.cppi-disable: Add stdint_.h.
72497         * lib/.cvsignore: Add stdint.h.
72498
72499         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72502         both double and long double versions.
72503         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72504         * lib/xstrtold.c: New file.
72505         * lib/xstrtod.h (xstrtold): New decl.
72506
72507         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * lib/filemode.c (setst): Remove.
72510         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72511         (arguably) clearer, and the generated code is a bit smaller on my
72512         Debian GNU/Linux stable x86 host.
72513
72514         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72517         Assume that filemode.h includes sys/types.h and sys/stat.h.
72518         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72519         (ftypelet): Reorder to put common cases first, for efficiency.
72520         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72521         to do 'M'.
72522         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72523         of 10, for compatibility with FreeBSD.  All callers changed.
72524         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72525         types that can't be deduced solely from st_mode.  First arg is now a
72526         const pointer.
72527         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72528         (strmode): Renamed from mode_string.
72529         (filemodestring): New decl.
72530         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72531         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72532         needed.
72533         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72534
72535         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72538         fsusage.h now does that.  Include fsusage.h first, to test interface.
72539         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72540         at most one method (the old code could have generated decls that
72541         didn't conform to C89, not that this was ever exercised).
72542         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72543
72544         2006-03-19  Jim Meyering  <jim@meyering.net>
72545
72546         Work even in a chroot where d_ino values for entries in "/"
72547         don't match the stat.st_ino values for the same names.
72548         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72549         number, iterate through all entries again, using lstat instead.
72550         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72551         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72552
72553         * lib/getcwd.c (__getcwd): Clarify a comment.
72554         Use memcpy in place of a call to strcpy.
72555
72556         2006-03-12  Jim Meyering  <jim@meyering.net>
72557
72558         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72559         matches that of the current directory (which we're about to chdir ".."
72560         out of), then save the dev-ino of the parent, instead.
72561
72562         * lib/same-inode.h (SAME_INODE): New file/macro.
72563         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72564         Include "same-inode.h", instead.
72565         * lib/same.c: Likewise.
72566         * lib/cycle-check.h: Include "same-inode.h".
72567         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72568         * lib/cycle-check.c (SAME_INODE): Remove definition.
72569         * lib/root-dev-ino.h: Include "same-inode.h".
72570
72571         2006-03-11  Eric Blake  <ebb9@byu.net>
72572
72573         * lib/same.c (same_name): s/base_name/last_component/
72574         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72575         * lib/filenamecat.c (file_name_concat): Likewise.
72576
72577         2006-03-11  Eric Blake  <ebb9@byu.net>,
72578                     Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72581         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72582         drive prefix.
72583         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72584         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72585         (last_component): New method.
72586         * lib/dirname.c (dir_len): Determine when drive letters need a
72587         subsequent slash.  Preserve // when it is special.
72588         (dir_name): Don't append dot when drive letter is absolute.
72589         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72590         * lib/basename.c (base_name): New semantics - malloc the result.
72591         Preserve // when it is special.  Preserve relative files that look
72592         like drive letters.
72593         (base_len): Preserve // when it is special.
72594         (last_component): New method, similar to old base_name semantics.
72595         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72596         base_name.  Strip redundant slashes from ///.
72597
72598 2006-07-03  Jim Meyering  <jim@meyering.net>
72599
72600         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72601         macro is used before the first cycle_check call.
72602
72603 2006-07-03  Eric Blake  <ebb9@byu.net>
72604
72605         * modules/dirname (Depends-on): Add xstrndup.
72606
72607 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72608
72609         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72610         test cases, so that config.log is a bit easier to follow.
72611
72612 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72613
72614         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72615         both are 64 bits, since this seems to be the tradition, and this
72616         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72617         we ever run into a host that prefers long long to long in this
72618         case, we'll need another configure-time test.  Problem reported by
72619         Jim Meyering.
72620
72621 2006-07-02  Eric Blake  <ebb9@byu.net>
72622
72623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72624
72625 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * modules/inttypes (Depends-on): No longer depends on stdint.
72628         * modules/stdint (Description): Say more about assumptions.
72629         Say that the fast types might differ.  Say macros are used.
72630         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72631         (Makefile.am): Revise list of substituted symbols to match
72632         new stdint.m4.
72633         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72634         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72635         * tests/test-stdint.c (verify_same_types)
72636         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72637         the code conforms to C99/C89.
72638         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72639         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72640
72641 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72644         but fix a bug, by requiring at least 64 bits.
72645         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72646         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72647         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72648         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72649
72650         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72651         changes.  Make 2.59 a prerequisite.  Check and substitute for
72652         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72653         inttypes.h.  Do not use special include files; just use the
72654         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72655         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72656         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72657         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72658         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72659         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72660         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72661         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72662         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72663         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72664         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72665         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72666         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72667         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72668         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72669         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72670         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72671         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72672         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72673         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72674         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72675         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72676         not check for things that C99 does not require, e.g., int8_t.  If
72677         a test isn't needed unless <stdint.h> isn't working, and is
72678         unlikely to be needed for any other reason, then don't do it
72679         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72680         size_t, since we assume C89 freestanding at least.  Do not check
72681         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72682         the right thing even if the types are not defined.  Instead use:
72683         (gl_STDINT_TYPE_PROPERTIES): New macro.
72684         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72685         testing whether <sys/types.h> clashes, as Autoconf does this for
72686         us now.  All uses removed.
72687         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72688         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72689         (gl_CHECK_TYPE_SAME):
72690         Remove; no longer needed.
72691         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72692         exists, since we'll return 0 anyway in that case.
72693         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72694
72695 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72698         possible collision with system files.
72699         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72700         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72701         WCHAR_MIN and WCHAR_MAX in this case.
72702         (<stddef.h>): Do not include; no longer needed.
72703         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72704         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72705         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72706         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72707         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72708         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72709         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72710         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72711         !defined(__c99))]: Include in this case too, since it's harmless
72712         now.
72713         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72714         dangerous to do so.
72715         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72716         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72717         (_STDINT_MIN, _STDINT_MAX): New macros.
72718         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72719         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72720         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72721         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72722         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72723         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72724         macros, not typedefs; this simplifies things quite a bit.
72725         Use long int for all types narrower than int64_t.
72726         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72727         Define in terms of long long int or int64_t or long int,
72728         not int64_t or int32_t.  This saves some compile-time testing.
72729         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72730         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72731         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72732         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72733         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72734         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72735         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72736         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72737         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72738         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72739         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72740         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72741         undef any previous version and define our own version, for
72742         simplicity and consistency with the new macros for types.
72743         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72744         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72745         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72746         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72747         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72748         @WINT_T_SUFFIX@ to keep things simple here.
72749         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72750         Simplify by assuming typical 8/16/32/64 host, since we're
72751         already doing that elsewhere anyway.
72752         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72753         and assume long long int is 64 bits if available.  This
72754         speeds up 'configure'.
72755
72756 2006-07-01  Eric Blake  <ebb9@byu.net>
72757
72758         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72759         Reported by Andreas Buening.
72760
72761 2006-07-01  Eric Blake  <ebb9@byu.net>
72762
72763         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72764
72765 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72766
72767         * lib/getaddrinfo.c: fixed typo
72768
72769 2006-06-29  Jim Meyering  <jim@meyering.net>
72770
72771         * modules/strftime (Maintainer): Add my name, since with the
72772         FPRINTFTIME changes strftime.c has forked from glibc.
72773
72774 2006-06-29  Eric Blake  <ebb9@byu.net>
72775
72776         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72777
72778 2006-06-29  Eric Blake  <ebb9@byu.net>
72779
72780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72781
72782 2006-06-29  Eric Blake  <ebb9@byu.net>
72783
72784         * lib/stat_.h: New file.
72785
72786 2006-06-29  Eric Blake  <ebb9@byu.net>
72787
72788         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72789         unused static function.
72790
72791 2006-06-29  Eric Blake  <ebb9@byu.net>
72792
72793         * doc/functions.texi (Function Portability): Document missing lstat
72794         on mingw.
72795
72796 2006-06-29  Eric Blake  <ebb9@byu.net>
72797
72798         * MODULES.html.sh: Add sys_stat.
72799         * modules/sys_stat: New module.
72800         * modules/mkstemp (Depends-on): Add sys_stat.
72801
72802 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72803
72804         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72805
72806 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72807
72808         * m4/c-bs-a.m4: Removed.
72809
72810 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72811
72812         * lib/strftime.c: Assume strftime() exists.
72813
72814 2006-06-29  Derek Price  <derek@ximbiot.com>
72815
72816         * modules/c-bs-a: Removed - \a is C89.
72817         * MODULES.html.sh: Remove c-bs-a.
72818
72819 2006-06-29  Bruno Haible  <bruno@clisp.org>
72820
72821         * modules/wcwidth (License): Change to LGPL.
72822
72823 2006-06-28  Simon Josefsson  <jas@extundo.com>
72824
72825         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72826         on _WIN32.
72827
72828         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72829         getnameinfo.
72830
72831 2006-06-28  Simon Josefsson  <jas@extundo.com>
72832
72833         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72834
72835 2006-06-28  Simon Josefsson  <jas@extundo.com>
72836
72837         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72838         functions there.  It will succeed on Windows XP, but on Windows
72839         2000 and (presumably) earlier, it will fail, and use the internal
72840         re-implementation.
72841         (use_win32_p): New function.
72842         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72843         Support AI_NUMERICSERV to disable getservbyname.
72844         (getnameinfo): New function, only supports
72845         NI_NUMERICHOST|NI_NUMERICSERV for now.
72846
72847         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72848         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72849         getnameinfo.
72850
72851 2006-06-28  Eric Blake  <ebb9@byu.net>
72852
72853         * modules/wcwidth: New file.
72854         * modules/mbchar (Depends-on): Add wcwidth.
72855         * modules/mbswidth (Depends-on): Add wcwidth.
72856         * MODULES.html.sh: Add wcwidth.
72857
72858 2006-06-28  Eric Blake  <ebb9@byu.net>
72859
72860         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72862
72863 2006-06-28  Eric Blake  <ebb9@byu.net>
72864
72865         * lib/xvasprintf.h: Fix comments.
72866
72867 2006-06-28  Eric Blake  <ebb9@byu.net>
72868
72869         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72870         * lib/mbswidth.c (wcwidth): Move from here...
72871         * lib/wcwidth.h: ...to this new file.
72872
72873 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72874
72875         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72876
72877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72878         it's obsolete.
72879         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72880
72881 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72882
72883         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72884         Autoconf 2.60 says this stuff was obsolete.
72885
72886 2006-06-28  Bruno Haible  <bruno@clisp.org>
72887
72888         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72889
72890 2006-06-28  Bruno Haible  <bruno@clisp.org>
72891
72892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72893         gt_TYPE_WCHAR_T.
72894
72895 2006-06-28  Bruno Haible  <bruno@clisp.org>
72896
72897         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72898         declaration for wcwidth.
72899         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72900
72901 2006-06-28  Bruno Haible  <bruno@clisp.org>
72902
72903         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72904         (mkdir): Define using _mkdir.
72905
72906 2006-06-28  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/getaddrinfo.h: Fix POSIX URL.
72909         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72910         _WIN32.
72911         (use_win32_p): Make static.
72912         (getaddrinfo): Reject service name if it is empty or does not consist
72913         solely of decimal digits, or if its value is > 65535.
72914         (getnameinfo): Remove useless casts.
72915
72916 2006-06-27  Simon Josefsson  <jas@extundo.com>
72917
72918         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72919         Eggert and Martin Lambers.
72920
72921 2006-06-27  Simon Josefsson  <jas@extundo.com>
72922
72923         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72924         Eggert and Martin Lambers.
72925
72926 2006-06-27  Bruno Haible  <bruno@clisp.org>
72927
72928         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72929         result to 0, not to empty.
72930         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72931
72932 2006-06-27  Bruno Haible  <bruno@clisp.org>
72933
72934         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72935
72936 2006-06-26  Simon Josefsson  <jas@extundo.com>
72937
72938         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72939         present.
72940
72941 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72944         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72946
72947 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72948
72949         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72950
72951 2006-06-26  Bruno Haible  <bruno@clisp.org>
72952
72953         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72954
72955 2006-06-26  Bruno Haible  <bruno@clisp.org>
72956
72957         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72958
72959 2006-06-26  Bruno Haible  <bruno@clisp.org>
72960
72961         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72962         SGI C compiler in pre-C99 mode.
72963         Suggested by Mark D. Baushke and Larry Jones.
72964
72965 2006-06-26  Bruno Haible  <bruno@clisp.org>
72966
72967         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72968         WCHAR_MAX.
72969         Reported by Mark D. Baushke and Larry Jones.
72970
72971 2006-06-26  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72974         in pre-C99 mode.
72975         Suggested by Mark D. Baushke and Larry Jones.
72976
72977 2006-06-23  Simon Josefsson  <jas@extundo.com>
72978             Bruno Haible  <bruno@clisp.org>
72979
72980         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72981         Emit mostlyclean-local rule.
72982         (func_emit_tests_Makefile_am): Likewise.
72983         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72984
72985 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72986
72987         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72988
72989 2006-06-23  Bruno Haible  <bruno@clisp.org>
72990
72991         * tests/test-stdint.c: Update to match ISO C 99 Technical
72992         Corrigendum 1.
72993
72994 2006-06-23  Bruno Haible  <bruno@clisp.org>
72995
72996         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72997
72998 2006-06-23  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/stdint_.h: Treat IRIX like OpenBSD.
73001
73002 2006-06-23  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73005         ISO C 99 Technical Corrigendum 1.
73006
73007 2006-06-22  Simon Josefsson  <jas@extundo.com>
73008
73009         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73010         MinGW.
73011
73012 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73015         needed.  Some compiler complained about some of them.  Problem reported
73016         by Larry Jones in
73017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73018
73019 2006-06-21  Simon Josefsson  <jas@extundo.com>
73020
73021         * tests/test-getaddrinfo.c: New file.
73022
73023         * modules/getaddrinfo-tests: New file.
73024
73025         * MODULES.html.sh: Add inet_pton.
73026
73027         * modules/inet_pton: New file.
73028
73029 2006-06-21  Simon Josefsson  <jas@extundo.com>
73030
73031         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73032         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73033         of using the (limited) gnulib implementation on Windows XP.
73034
73035         * m4/inet_pton.m4: New file.
73036
73037 2006-06-21  Simon Josefsson  <jas@extundo.com>
73038
73039         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73040         variable.
73041
73042         * lib/socket_.h: Don't define WINVER.
73043
73044         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73045         slightly modified to work in gnulib.
73046
73047 2006-06-21  Simon Josefsson  <jas@extundo.com>
73048
73049         * doc/gnulib.texi (Windows sockets): Add.
73050
73051 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * lib/read-file.c (fread_file): Start with buffer allocation of
73054         0 bytes rather than 1 byte; this simplifies the code.
73055         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73056         code to free buffer and save/restore errno.
73057         (internal_read_file): Remove unused local.
73058
73059 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73062         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73063         Problem reported by Denis Excoffier in
73064         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73065
73066 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73067
73068         * modules/sys_socket, modules/socklen: Include sys/types since
73069         FreeBSD 4.x's sys/socket.h needs it.
73070
73071 2006-06-19  Simon Josefsson  <jas@extundo.com>
73072
73073         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73074
73075 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73078
73079 2006-06-19  Bruno Haible  <bruno@clisp.org>
73080
73081         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73082         and FULL_PATH_INTTYPES_H in angle brackets.
73083         Reported by Mark D. Baushke <mdb@gnu.org>.
73084
73085 2006-06-17  Eric Blake  <ebb9@byu.net>
73086
73087         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73088         errno.
73089
73090 2006-06-17  Bruno Haible  <bruno@clisp.org>
73091
73092         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73093         <sys/inttypes.h>.
73094
73095 2006-06-17  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73098         whether errno is declared. Assume <errno.h> declares errno.
73099
73100 2006-06-17  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73103
73104 2006-06-17  Bruno Haible  <bruno@clisp.org>
73105
73106         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73107         problem on Solaris 2.5.1.
73108
73109 2006-06-16  Eric Blake  <ebb9@byu.net>
73110
73111         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73112         * lib/unicodeio.c [!defined errno]: Likewise.
73113         * lib/strtol.c [!defined errno]: Likewise.
73114         * lib/strtod.c [!defined errno]: Likewise.
73115
73116 2006-06-15  Eric Blake  <ebb9@byu.net>
73117
73118         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73119
73120 2006-06-15  Eric Blake  <ebb9@byu.net>
73121
73122         * config/srclist.txt (ssize_t.m4): Lose sync.
73123
73124 2006-06-15  Bruno Haible  <bruno@clisp.org>
73125
73126         * modules/stdint (Files): Include m4/full-header-path.m4,
73127         m4/size_max.m4, m4/wchar_t.m4.
73128         (Makefile.am): Many more substitutions.
73129         * modules/stdint-tests: New file.
73130         * tests/test-stdint.c: New file.
73131
73132 2006-06-15  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73135         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73136         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73137         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73138         gl_CHECK_TYPE_SAME): New macros.
73139
73140 2006-06-15  Bruno Haible  <bruno@clisp.org>
73141
73142         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73143
73144 2006-06-15  Bruno Haible  <bruno@clisp.org>
73145
73146         * lib/stdint_.h: Rewritten to be fully auto-configured.
73147         Fixes bug on HP-UX/IA64.
73148
73149 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * lib/getdate.y (__attribute__): Don't define if already defined.
73152         Problem reported by Larry Jones.
73153         * lib/utimens.c (__attribute__): Likewise.
73154
73155 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73158         reported by Andreas Schwab.
73159
73160 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73161             Bruno Haible  <bruno@clisp.org>
73162
73163         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73164         check for the declaration of strnlen and a run test that exposes the
73165         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73166         rpl_strndup.
73167
73168 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73169             Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73172
73173 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73174
73175         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73176         compile test, for Tru64 4.0D.
73177
73178 2006-05-28  Karl Berry  <karl@gnu.org>
73179
73180         * config/srclist.txt (printf-args.c): lose sync.
73181
73182 2006-05-26  Martin Lambers  <marlam@marlam.de>
73183
73184         * lib/getpass.c: Updates the test for the native W32 API, and adds
73185         missing includes, thus fixing compilation warnings.
73186
73187 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73188
73189         * lib/exclude.c (exclude_fnmatch): New function.
73190         (excluded_file_name): Call exclude_fnmatch.
73191         * lib/exclude.h (excluded_file_name): New prototype
73192
73193 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73194
73195         * lib/tempname.c (small_open, large_open): New macros.
73196         (__open, __open64) [!_LIBC]: Remove.
73197         (__gen_tempname): Use small_open and large_open instead of __open
73198         and __open64.  This fixes a portability bug on HP-UX 11.11i
73199         reported by Simon Wing-Tang in
73200         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73201
73202 2006-05-24  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73205         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73206         Reported by Thorsten Maerz <torte@netztorte.de> via
73207         Aaron Stone <aaron@serendipity.cx>.
73208
73209 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73212         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73213         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73214         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73215         not really conditional on the cache.
73216         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73217
73218 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73221         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73222         (my_usleep): Don't mishandle maximum value.
73223
73224 2006-05-19  Jim Meyering  <jim@meyering.net>
73225
73226         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73227
73228 2006-05-17  Bruno Haible  <bruno@clisp.org>
73229
73230         Cygwin portability.
73231         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73232
73233 2006-05-17  Bruno Haible  <bruno@clisp.org>
73234
73235         * lib/stdint_.h: Fix recognition of Cygwin.
73236
73237 2006-05-15  Bruno Haible  <bruno@clisp.org>
73238
73239         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73240         on libtool patch by Ralf Wildenhues.
73241
73242 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73245         test for C99 conformance; (bool) 0.5 is an integer constant
73246         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73247         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73248
73249 2006-05-11  Simon Josefsson  <jas@extundo.com>
73250
73251         * m4/xvasprintf.m4: Fix obvious typo.
73252
73253 2006-05-11  Jim Meyering  <jim@meyering.net>
73254
73255         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73256         James Lemley.
73257
73258 2006-05-10  Simon Josefsson  <jas@extundo.com>
73259
73260         * lib/md4.c: Typo fix, update copyright years.
73261         (K1, K2): Don't use L because it turn computations into 64-bit on
73262         64-bit platforms.
73263
73264 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73267         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73268         unwanted sign propagation, e.g., on hosts with 64-bit int.
73269         There still are some problems with reeelly weird theoretical hosts
73270         (e.g., 33-bit int) but it's not worth worrying about now.
73271         * lib/sha1.c (rol): Likewise.
73272         (K1, K2, K3, K4): Remove unnecessary L suffix.
73273
73274 2006-05-10  Bruno Haible  <bruno@clisp.org>
73275
73276         * lib/des.c: Cast to avoid warnings.
73277
73278 2006-05-09  Bruno Haible  <bruno@clisp.org>
73279
73280         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73281         (Depends-on): Depend also on xsize, stdarg.
73282         (configure.ac): Add gl_XVASPRINTF.
73283
73284 2006-05-09  Bruno Haible  <bruno@clisp.org>
73285
73286         * m4/xvasprintf.m4: New file.
73287
73288 2006-05-09  Bruno Haible  <bruno@clisp.org>
73289
73290         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73291         (EOVERFLOW): Define fallback value.
73292         (xstrcat): New function.
73293         (xvasprintf): Recognize the special case of a string concatenation.
73294
73295 2006-05-08  Eric Blake  <ebb9@byu.net>
73296
73297         * gnulib-tool (func_version): Base copyright year on CVS date.
73298         (func_emit_copyright_notice): New function.
73299         (func_emit_lib_Makefile_am): Use it.
73300         (func_emit_tests_Makefile_am): Likewise.
73301         (func_import): Likewise.
73302
73303 2006-05-08  Bruno Haible  <bruno@clisp.org>
73304
73305         * modules/stdarg: New file.
73306         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73307
73308 2006-05-08  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/stdarg.m4: New file, from GNU gettext.
73311
73312 2006-05-08  Bruno Haible  <bruno@clisp.org>
73313
73314         * config/srclist.txt (build-aux/config.rpath): different from latest
73315         release.
73316
73317 2006-05-08  Bruno Haible  <bruno@clisp.org>
73318
73319         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73320
73321 2006-05-05  Jim Meyering  <jim@meyering.net>
73322
73323         * m4/warning.m4: New file, derived from bison's file by the same name.
73324
73325 2006-05-03  Bruno Haible  <bruno@clisp.org>
73326
73327         * lib/stdint_.h: Shorter URL.
73328         * lib/inttypes.h: Likewise.
73329
73330 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73333
73334 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/verify.h: Document the internals better.  Most of this change
73337         was written by Bruno Haible.
73338
73339 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * doc/verify.texi: New file, partly based on a proposal by
73342         Bruno Haible.
73343
73344 2006-05-02  Bruno Haible  <bruno@clisp.org>
73345
73346         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73347         test from here...
73348         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73349
73350 2006-04-29  Bruno Haible  <bruno@clisp.org>
73351
73352         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73353         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73354
73355 2006-04-29  Bruno Haible  <bruno@clisp.org>
73356
73357         * gnulib-tool: Make --update option actually work.
73358
73359 2006-04-29  Bruno Haible  <bruno@clisp.org>
73360
73361         * doc/gcd.texi: New file.
73362         * doc/gnulib.texi: Include it.
73363
73364 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73365
73366         * lib/getdate.y (get_date): When adding relative date, start with the
73367         initial time, not with the result of the first mktime call.
73368
73369 2006-04-25  Bruno Haible  <bruno@clisp.org>
73370
73371         * gnulib-tool (func_import): Output the include directives in three
73372         blocks, sorted separately.
73373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73374
73375 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73376
73377         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73378         to define main with arguments, for C++.  Reported by Eric Blake.
73379         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73380         Prefer 'int main ()' to 'int main (void)', for C++.
73381         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73383         for 'main', for C99 and C++.
73384
73385 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73388         Don't assume that exit status -1 is valid.
73389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73390         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73391         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73392         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73393         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73394         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73395         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73396         functions can be used without declaring them, or that you can
73397         exit with status -1.
73398         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73399
73400 2006-04-24  Karl Berry  <karl@gnu.org>
73401
73402         * config/srclist.txt (longdouble.m4): sync lost.
73403
73404 2006-04-24  Eric Blake  <ebb9@byu.net>
73405
73406         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73407
73408 2006-04-24  Bruno Haible  <bruno@clisp.org>
73409
73410         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73411         poll() implementation in AIX.
73412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73413
73414 2006-04-24  Bruno Haible  <bruno@clisp.org>
73415
73416         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73417         assigned exactly once.
73418
73419 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73420             Bruno Haible  <bruno@clisp.org>
73421
73422         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73423         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73424         for AM_CPPFLAGS.
73425
73426 2006-04-23  Bruno Haible  <bruno@clisp.org>
73427
73428         * modules/copy-file: Depend on unistd.
73429         * modules/execute: Likewise.
73430         * modules/fatal-signal: Likewise.
73431         * modules/findprog: Likewise.
73432         * modules/mkdtemp : Likewise.
73433         * modules/pipe: Likewise.
73434         * modules/wait-process: Likewise.
73435
73436 2006-04-23  Bruno Haible  <bruno@clisp.org>
73437
73438         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73439         condition was already detected.
73440         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73441
73442 2006-04-23  Bruno Haible  <bruno@clisp.org>
73443
73444         * lib/copy-file.c: Include <unistd.h> unconditionally.
73445         * lib/execute.c: Likewise.
73446         * lib/fatal-signal.c: Likewise.
73447         * lib/findprog.c: Likewise.
73448         * lib/mkdtemp.c: Likewise.
73449         * lib/pipe.h: Likewise.
73450         * lib/pipe.c: Likewise.
73451         * lib/wait-process.h: Likewise.
73452
73453 2006-04-23  Bruno Haible  <bruno@clisp.org>
73454
73455         * gnulib-tool (func_usage): Fix --import description. Document
73456         --update.
73457         (func_import): Create temporary file in a temporary directory, if
73458         --dry-run is specified. Silence errors from 'grep' when there are no
73459         m4 files in $m4dir.
73460         (func_create_testdir): Silence errors from 'grep' when there are no
73461         m4 files in $m4dir.
73462         Reported by Karl Berry <karl@freefriends.org>.
73463
73464 2006-04-20  Bruno Haible  <bruno@clisp.org>
73465
73466         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73467         one argument, so that the code will be portable to Autoconf 2.60.
73468         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73469         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73470         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73471
73472 2006-04-19  Derek Price  <derek@ximbiot.com>
73473             Eric Blake  <ebb9@byu.net>
73474
73475         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73476         rather than "/full/path.h".  Update comment to match.  Shorten &
73477         generalize m4_translit call via AS_TR_CPP.
73478
73479 2006-04-19  Derek Price  <derek@ximbiot.com>
73480             Eric Blake  <ebb9@byu.net>
73481
73482         * lib/inttypes.h: Correct grammar in comment.
73483
73484 2006-04-18  Derek Price  <derek@ximbiot.com>
73485             Paul Eggert  <eggert@cs.ucla.edu>
73486
73487         * modules/inttypes: New file.
73488         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73489
73490 2006-04-18  Derek Price  <derek@ximbiot.com>
73491             Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73494         New files.
73495
73496 2006-04-18  Derek Price  <derek@ximbiot.com>
73497             Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * lib/inttypes.h: New file.
73500         * lib/strtoimax.c: Assume <inttypes.h>.
73501
73502 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73505         isn't mounted.  Problem reported by Kir Kolyshkin.
73506
73507 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73510         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73511         Derek R. Price.
73512         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73513         implementation.
73514
73515 2006-04-12  Eric Blake  <ebb9@byu.net>
73516
73517         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73518         is now done automatically by the corresponding Autoconf macro.
73519
73520 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73523         time_r.h.
73524
73525 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         Merge regex changes from libc, removing some of our
73528         POSIX-conformance changes that were rejected and redoing them in a
73529         less-intrusive way.
73530
73531         * lib/regcomp.c (re_compile_internal, init_dfa):
73532         Length arg is now size_t, not Idx.  All uses changed.
73533         (peek_token): Forward decl now says internal_function.
73534         (__re_error_msgid, __re_error_msgid_idx):
73535         Now static rather than extern with attribute_hidden.
73536         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73537         For some reason libc prefers K&R style defns for external functions.
73538         (regerror) [!defined _LIBC]: Likewise.
73539         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73540         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73541         (build_range_exp, build_collating_symbol):
73542         Use K&R-style defn.
73543         (re_compile_fastmap): Use '\0' to memset, not 0.
73544         (utf8_sb_map): Make the calculations more obvious.
73545         (init_dfa, parse_bracket_exp, build_charclass_op):
73546         Call calloc and cast result, as glibc does.
73547         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73548         (build_range_exp, build_collating_symbol):
73549         Now internal functions.
73550
73551         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73552
73553         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73554         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73555         Don't depend on VMS; depend on __VMS instead, for POSIX
73556         namespace cleanness.
73557         (regoff_t): Define to ssize_t, not long int.
73558
73559         Remove the REG_ macros named below.  Instead, make the old names
73560         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73561         __USE_GNU_REGEX.
73562         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73563         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73564         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73565         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73566         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73567         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73568         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73569         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73570         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73571         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73572         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73573         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73574         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73575         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73576         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73577         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73578         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73579         (REG_NREGS):
73580         Remove.  All uses replaced by the old RE_* names.
73581         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73582         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73583         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73584         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73585         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73586         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73587         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73588         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73589         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73590         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73591         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73592         Don't bother having these macros be independent of each others'
73593         values, since they no longer exist in the POSIX name space.
73594
73595         Rename the following member names back to their old names,
73596         unless !__USE_GNU_REGEX.  All uses changed back.
73597         (buffer): Renamed from re_buffer.
73598         (allocated): Renamed from re_allocated.
73599         (used): Renamed from re_used.
73600         (syntax): Renamed from re_syntax.
73601         (fastmap): Renamed from re_fastmap.
73602         (translate): Renamed from re_translate.
73603         (can_be_null): Renamed from re_can_be_null.
73604         (regs_allocated): Renamed from re_regs_allocated.
73605         (fastmap_accurate): Renamed from re_fastmap_accurate.
73606         (no_sub): Renamed from re_no_sub.
73607         (not_bol): Renamed from re_not_bol.
73608         (not_eol): Renamed from re_not_eol.
73609         (newline_anchor): Renamed from re_newline_anchor.
73610         (num_regs): Renamed from rm_num_regs.
73611         (start): Renamed from rm_start.
73612         (end): Renamed from rm_end.
73613
73614         (free_state): Move up a bit.
73615
73616         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73617         #define to be empty.
73618         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73619         when that is what is intended.
73620         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73621         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73622         (MAX): New macro.
73623         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73624         All uses changed back to re_malloc, etc.  It's now the caller's
73625         responsibility to check for overflow; all callers changed.
73626         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73627         (re_x2nrealloc): Remove.
73628         (free_state): Remove decl.
73629
73630         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73631         (re_set_registers, re_exec):
73632         Use K&R-style defn.
73633
73634         2006-01-31  Roland McGrath  <roland@redhat.com>
73635
73636         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73637         Reported by Mike Frysinger <vapier@gentoo.org>.
73638
73639         2006-01-15  Andreas Jaeger  <aj@suse.de>
73640
73641         [BZ #1950]
73642         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73643         build_wcs_upper_buffer change.
73644         (build_wcs_upper_buffer): Change return type.
73645
73646         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73647
73648         * lib/regex_internal.h: Include <stdint.h> if available.
73649
73650         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73651
73652         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73653
73654         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73655
73656         * lib/regcomp.c: Adjust for changed secondary hash function.
73657
73658         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73659
73660         * lib/regex.h: Pretty printing.
73661         Clean up namespace a bit.
73662
73663         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73664
73665         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73666         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73667
73668         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73669                     Ulrich Drepper  <drepper@redhat.com>
73670
73671         [BZ #1302]
73672         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73673         changed.
73674         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73675
73676         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73677
73678         [BZ #281]
73679         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73680         * lib/regcomp.c: Remove unnecessary uses of
73681         unsigned RE_TRANSLATE_TYPE.
73682         * lib/regex_internal.h: Likewise.
73683         * lib/regex_internal.c: Likewise.
73684         * lib/regexec.c: Likewise.
73685         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73686
73687         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73688
73689         * lib/regexec.c (find_recover_state): Remove unnecessary
73690         initialization.
73691         (transit_state_bkref): Make DFA a const pointer.
73692         (get_subexp): Likewise.
73693         (check_arrival): Likewise.
73694         (update_cur_sifted_state): Likewise.
73695         (re_search_internal): Likewise.
73696         (prune_impossible_nodes): Likewise.
73697         (acquire_init_state_context): Likewise.
73698         (proceed_next_node): Likewise.
73699         (set_regs): Likewise.
73700         (free_fail_stack_return): Likewise.
73701         (check_arrival_expand_ecl): Mark DFA parameter as const.
73702         (check_arrival_expand_ecl_sub): Likewise.
73703         (check_subexp_limits): Likewise.
73704         (sub_epsilon_src_nodes):  Likewise.
73705         (add_epsilon_src_nodes):  Likewise.
73706         (merge_state_array): Likewise.
73707         (update_regs): Likewise.
73708         (build_trtable): Likewise.
73709         (sift_states_backward): Mark MCTX parameter as const.
73710         (build_sifted_states): Likewise.
73711         (update_cur_sifted_state): Likewise.
73712         (sift_states_mkref): Likewise.
73713         (check_arrival_expand_ecl): Mark eclosure as const.
73714         (check_dst_limits_calc_pos_1): Likewise.
73715         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73716         pointer.
73717
73718         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73719
73720         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73721         (transit_state_sb): Likewise.
73722         (transit_state_mb): Likewise.
73723         (sift_states_iter_mb): Likewise.
73724         (check_arrival_add_next_nodes): Likewise.
73725         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73726         [_LIBC] (re_search_2_stub): Use mempcpy.
73727
73728         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73729         mbrtowc for very simple UTF-8 case.
73730
73731         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73732         a pointer-to-const.
73733         (re_acquire_state_context): Likewise.
73734         * lib/regex_internal.h: Adjust prototypes.
73735
73736         * lib/regex.c: Prevent using C++ compilers.
73737
73738         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73739         (re_acquire_state_context): Likewise.
73740
73741 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73742
73743         * modules/regex (Depends-on): Add ssize_t.
73744
73745 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73748         translation table.
73749
73750 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73753
73754 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73755             Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73758         <sys/types.h> and <inttypes.h>.
73759
73760 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73761
73762         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73763         `__error_t_defined', so argp.h will not typedef the former.
73764
73765 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73768         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73769         glibc names.  Even if glibc is changed to conform to POSIX, the
73770         traditional names will be available anyway, since regex depends on
73771         the extensions module.  Also, fix a longstanding typo in the
73772         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73773         reported by Emanuele Giaquinta.  Also, change sense of cached
73774         variable, so that the message makes sense.
73775
73776 2006-03-24  Simon Josefsson  <jas@extundo.com>
73777
73778         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73779         including some doc fixes.
73780         (base64_encode_alloc): Fix +1 bug on allocation failures.
73781
73782 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73783
73784         * lib/base64.c (base64_encode): Do not read past end of array with
73785         unsanitized input on systems with CHAR_BIT > 8.
73786
73787 2006-03-24  Eric Blake  <ebb9@byu.net>
73788
73789         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73790
73791 2006-03-22  Karl Berry  <karl@gnu.org>
73792
73793         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73794         * config/srclistvars.sh (COREUTILS): new var.
73795
73796 2006-03-17  Jim Meyering  <jim@meyering.net>
73797
73798         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73799         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73800
73801 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73804         no longer needs it.  Instead, check that regoff_t is as least
73805         as wide as ptrdiff_t.
73806
73807         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73808         so that our regex.h stays compatible with the installed regex.
73809         This is helpful for installers who configure --without-included-regex.
73810         Problem reported by Emanuele Giaquinta.
73811
73812 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73815         Typedef to long int, not to off_, as POSIX will likely change
73816         in that direction.
73817
73818 2006-03-15  Eric Blake  <ebb9@byu.net>
73819
73820         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73821
73822 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73823
73824         * lib/argp-help.c (validate_uparams): Fix typo
73825         * lib/argp-parse.c (argp_default_options): Consistently begin help
73826         messages with a lowercase letter.
73827
73828 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73831         overrun buffers and shouldn't be used (much as gets shouldn't be
73832         used).
73833         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73834
73835 2006-03-08  Simon Josefsson  <jas@extundo.com>
73836
73837         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73838         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73839
73840 2006-03-08  Simon Josefsson  <jas@extundo.com>
73841
73842         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73843         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73844
73845 2006-03-08  Simon Josefsson  <jas@extundo.com>
73846
73847         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73848         signal that configure disabled the device.
73849
73850 2006-03-08  Simon Josefsson  <jas@extundo.com>
73851
73852         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73853         languages.
73854
73855 2006-03-07  Simon Josefsson  <jas@extundo.com>
73856
73857         * modules/getopt (Depends-on): Add unistd.
73858
73859         * modules/unistd: New file.
73860
73861 2006-03-07  Simon Josefsson  <jas@extundo.com>
73862
73863         * modules/gc-random: New file.
73864
73865 2006-03-07  Simon Josefsson  <jas@extundo.com>
73866
73867         * m4/unistd_h.m4: New file.
73868
73869 2006-03-07  Simon Josefsson  <jas@extundo.com>
73870
73871         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73872         test to be side-effect free by storing the result in the cache
73873         variable gl_cv_lib_readline, and moving the assignment of
73874         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73875         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73876
73877 2006-03-07  Simon Josefsson  <jas@extundo.com>
73878
73879         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73880         error on missing devices (the functions will return an error).
73881
73882         * m4/gc.m4: Move random stuff to gc-random.m4
73883
73884 2006-03-07  Simon Josefsson  <jas@extundo.com>
73885
73886         * lib/unistd_.h: New file.
73887
73888 2006-03-07  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73891
73892 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73895         Problem reported by Juan Manuel Guerrero.
73896
73897 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73900         the unistd module.
73901         * lib/getlogin_r.c: Likewise.
73902         * lib/getlogin_r.h: Likewise.
73903         * lib/glob.c: Likewise.
73904         * lib/pagealign_alloc.c: Likewise.
73905         * lib/unistd_.h: Remove; no longer needed.
73906
73907 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73910         Add unistd.
73911         * modules/c-stack (Depends-on): Add unistd.
73912         * modules/getlogin_r: Likewise.
73913         * modules/glob: Likewise.
73914         * modules/pagealign_alloc: Likewise.
73915         * modules/unistd (Files): Remove lib/unistd_.h.
73916         (EXTRA_DIST): Remove.
73917         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73918         need unistd_.h.
73919         (MOSTLYCLEANFILES): Remove unistd.h-t.
73920
73921 2006-03-03  Simon Josefsson  <jas@extundo.com>
73922
73923         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73924
73925 2006-03-03  Simon Josefsson  <jas@extundo.com>
73926
73927         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73928         libidn and bison.
73929
73930 2006-03-03  Simon Josefsson  <jas@extundo.com>
73931
73932         * build-aux/maint.mk: Add indent target.
73933
73934 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73935
73936         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73937         our replacement poll.h in any case, to avoid a differing
73938         declaration from a system header.  Seen on AIX.
73939
73940 2006-03-01  Simon Josefsson  <jas@extundo.com>
73941
73942         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73943         <kasal@ucw.cz>.
73944
73945 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * modules/gettime (Depends-on): Add extensions module.
73948         * modules/nanosleep (Depends-on): Likewise.
73949         * modules/settime (Depends-on): Likewise.
73950
73951 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73954         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73955         pedantically.
73956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73957         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73958
73959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73960         not "==".  Reported by Ralf Wildenhues.
73961
73962 2006-03-01  Karl Berry  <karl@gnu.org>
73963
73964         * doc/Copyright/request-*: new files, synced from gnuorg.
73965
73966 2006-03-01  Karl Berry  <karl@gnu.org>
73967
73968         * config/srclist.txt (Copyright/*): new entries.
73969
73970 2006-02-28  Simon Josefsson  <jas@extundo.com>
73971
73972         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73973
73974 2006-02-27  Simon Josefsson  <jas@extundo.com>
73975
73976         * lib/base64.h: Indent #define's.  From Jim Meyering
73977         <jim@meyering.net>.
73978
73979 2006-02-27  Jim Meyering  <jim@meyering.net>
73980
73981         Revert the change of 2006-02-24, so these files can continue
73982         to be sync'd from gettext.
73983         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73984         of `config.h'.
73985
73986 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * modules/intprops: New file.
73989         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73990         Add intprops.
73991         * modules/getloadavg (Files): Remove lib/intprops.h.
73992         (Depends-on): Add intprops.
73993         * modules/human: Likewise.
73994         * modules/inttostr: Likewise.
73995         * modules/openat: Likewise.
73996         * modules/sig2str: Likewise.
73997         * modules/userspec: Likewise.
73998         * modules/utimecmp: Likewise.
73999         * modules/xnanosleep: Likewise.
74000         * modules/xstrtol: Likewise.
74001
74002 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74003
74004         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74005         * modules/lock-tests (TESTS): Use $(EXEEXT).
74006         * modules/tls-tests: Likewise.
74007         * modules/argp-tests: Likewise.
74008         (check_PROGRAMS): New var, replacing...
74009         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74010
74011 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74012
74013         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74014         `config.h'.
74015
74016 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74017
74018         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74019
74020 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74021
74022         Sync from coreutils.
74023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74024         gl_CHDIR_SAFER.
74025
74026 2006-02-22  Jim Meyering  <jim@meyering.net>
74027
74028         Sync from coreutils.
74029         * m4/chdir-safer.m4: New file.
74030
74031 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74032
74033         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74034         AT_FDCWD exceeds INT_MAX.
74035         * lib/openat.h (AT_FDCWD): Likewise.
74036
74037 2006-02-17  Eric Blake  <address@hidden>
74038
74039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74040
74041 2006-02-16  Simon Josefsson  <jas@extundo.com>
74042
74043         * modules/getaddrinfo (Depends-on): Add sys_socket.
74044
74045 2006-02-15  Simon Josefsson  <jas@extundo.com>
74046
74047         * build-aux/maint.mk: Add dsyntax-check rule.
74048
74049 2006-02-15  Eric Blake  <ebb9@byu.net>
74050
74051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74052         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74053         'present but cannot compile' warnings on cygwin.
74054         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74055         use ws2tcpip.h if sys/socket.h works.
74056         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74057         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74058
74059 2006-02-14  Simon Josefsson  <jas@extundo.com>
74060
74061         * modules/maintainer-makefile (Files): Rename.
74062
74063         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74064         and (the local) Makefile.cfg to maint-cfg.mk.
74065
74066         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74067         to the latter.
74068
74069         * modules/maintainer-makefile: New module.
74070
74071         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74072         severaly stripped to make it possible to build it up from scratch
74073         with reliable tests.
74074
74075         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74076         fixes to permit overriding the default actions when configure and
74077         makefile are not available.
74078
74079 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         Sync from coreutils.
74082         * modules/lstat (Depends-on): Don't depend on xalloc.
74083         (License): Change from GPL to LGPL, since this is now simply a
74084         replacement for a libc function.
74085
74086 2006-02-14  Jim Meyering  <jim@meyering.net>
74087
74088         Sync from coreutils.
74089
74090         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74091         failure on deficient systems, and simplify gnulib lgpl dependencies.
74092         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74093         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74094
74095         * lib/xalloc-die.c: Remove unused definition of N_.
74096
74097 2006-02-14  Jim Meyering  <jim@meyering.net>
74098
74099         Sync from coreutils.
74100         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74101         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74102         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74103         double-quote uses of that variable, to accommodate the rare case in
74104         which getmntent is available in none of the libraries checked.  This
74105         happens at least on FreeBSD 5.0.
74106
74107 2006-02-13  Simon Josefsson  <jas@extundo.com>
74108
74109         * gnulib-tool (Usage): Fix --import, from
74110         karl@freefriends.org (Karl Berry).
74111
74112 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74113
74114         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74115
74116 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74117
74118         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74119         "autoupdate" on 2005-12-12.
74120
74121 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * modules/closeout (Depends-on): Remove atexit.
74124
74125 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74128         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74129
74130 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74133         __EXTENSIONS__ if this causes compilation to fail.  Problem
74134         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74135         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74136
74137 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74140         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74142         All uses changed.
74143
74144 2006-01-26  Simon Josefsson  <jas@extundo.com>
74145
74146         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74147         prototype is visible on mingw32.
74148
74149         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74150         for mingw32.
74151
74152         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74153         mingw32).
74154
74155 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74158         attempt to open for write; this always fails, at least on POSIX
74159         hosts.  This reinstates the 2006-01-09 change, which was
74160         inadvertently removed.
74161
74162 2006-01-26  Bruno Haible  <bruno@clisp.org>
74163
74164         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74165         Reported by Paul Eggert.
74166
74167 2006-01-26  Bruno Haible  <bruno@clisp.org>
74168             Paul Eggert  <eggert@cs.ucla.edu>
74169
74170         * lib/stdbool_.h (_Bool)
74171         [(! (defined __cplusplus || defined __BEOS__)
74172           && !defined __GNUC__
74173           && !(defined __HP_cc || defined __xlc__
74174                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74175                || defined __sgi))]:
74176         #define to signed char in these cases too; this simplifies
74177         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74178         etc., separately) and makes it more conservative.
74179
74180 2006-01-25  Simon Josefsson  <jas@extundo.com>
74181
74182         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74183         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74184         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74185
74186 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74187
74188         * lib/argp-namefrob.h: Bugfix. Remove stray #
74189
74190 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74191
74192         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74193         so that we test the test.
74194         Check for yet another HP-UX cc bug involving *bool |= bool.
74195
74196 2006-01-25  Karl Berry  <karl@gnu.org>
74197
74198         * config/srclist.txt (vasnprintf.c): sync lost.
74199
74200 2006-01-25  Jim Meyering  <jim@meyering.net>
74201
74202         Sync from the stable (b5) branch of coreutils:
74203
74204         * lib/fts.c (fts_children): Don't let close() clobber errno from
74205         failed fchdir().
74206
74207         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74208         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74209         a dangling symlink.  That can also happen at least for ELOOP.
74210         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74211         FYI, this bug predates the inclusion of fts.c in coreutils.
74212
74213         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74214         in their own block, so pre-c99 compilers don't object.
74215
74216         Avoid the double-free (first in fts_read, second in fts_close) that
74217         would occur when an `active' directory is made inaccessible (e.g.,
74218         via chmod a-x) during a traversal.
74219         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74220         before returning.  Reproduce this failure by
74221         mkdir -p a/b; cd a; chmod a-x . b
74222         Reported by Stavros Passas.
74223
74224 2006-01-25  Jim Meyering  <jim@meyering.net>
74225
74226         * lib/fileblocks.c: Remove more useless parentheses.
74227         * lib/readutmp.h: Likewise.
74228
74229 2006-01-25  Bruno Haible  <bruno@clisp.org>
74230
74231         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74232         warnings.
74233         Reported by Paul Eggert.
74234
74235 2006-01-25  Bruno Haible  <bruno@clisp.org>
74236
74237         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74238         rid of a trap command. For Solaris sh.
74239         Reported by Mark D. Baushke <mdb@gnu.org>.
74240
74241 2006-01-24  Simon Josefsson  <jas@extundo.com>
74242
74243         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74244         Bruno.
74245
74246 2006-01-24  Karl Berry  <karl@gnu.org>
74247
74248         * config/srclist.txt (argp-namefrob.h): sync lost.
74249
74250 2006-01-24  Jim Meyering  <jim@meyering.net>
74251
74252         * modules/openat (Files): Add lib/intprops.h.
74253         From Mark D. Baushke.
74254
74255 2006-01-24  Jim Meyering  <jim@meyering.net>
74256
74257         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74258         Reported by Mark D. Baushke.
74259
74260 2006-01-24  Jim Meyering  <jim@meyering.net>
74261
74262         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74263
74264 2006-01-24  Bruno Haible  <bruno@clisp.org>
74265
74266         * modules/strnlen (Maintainer): Change from glibc to all.
74267
74268 2006-01-24  Bruno Haible  <bruno@clisp.org>
74269
74270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74271         Patch by Paul Eggert.
74272
74273 2006-01-24  Bruno Haible  <bruno@clisp.org>
74274
74275         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74276         already has it.
74277         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74278         2005-11-26.
74279
74280         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74281         'signed char' to avoid problems with the built-in _Bool type.
74282         Reported by Paul Eggert on 2005-11-26.
74283
74284 2006-01-24  Bruno Haible  <bruno@clisp.org>
74285
74286         * gnulib-tool (func_import): Avoid constructing complicated sed
74287         expressions inside backquote.
74288         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74289
74290 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74291
74292         These changes imported from libc.
74293         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74294         test and two separate function calls.
74295         * lib/strndup.c (__strndup): Add libc_hidden_def.
74296
74297 2006-01-23  Simon Josefsson  <jas@extundo.com>
74298
74299         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74300         Remove the test_*_SOURCES variable: automake infers it by default.
74301         * modules/tls-tests: Likewise.
74302
74303 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         Work around porting bugs reported by Dieter in
74306         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74307         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74308         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74309         Include "getopt.h" first, to check interface.
74310         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74311         !HAVE_DECL_GETENV.
74312         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74313         (__strndup): Revert to K&R-style function dfns, the glibc style.
74314         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74315         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74316         Include strnlen.h first, to get prototype properly.
74317         (strnlen): Renamed from __strnlen.
74318         Remove weak alias.
74319
74320 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74323
74324 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         * config/srclist.txt: Adjust to reflect glibc reorganization.
74327         This affects only comments.
74328
74329 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74330
74331          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74332          Reported by Bruce Korb <bkorb@gnu.org>.
74333
74334 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74337         to pacify gcc -Wswitch-default.
74338
74339 2006-01-22  Bruno Haible  <bruno@clisp.org>
74340
74341         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74342         temporary buffer for sprintf, take into account the precision also
74343         for 'd', 'i', 'u', 'o', 'x', 'X'.
74344
74345 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74346
74347         * modules/argp-tests: New module
74348         * tests/test-argp.c: New file
74349         * tests/test-argp-2.sh: New file
74350
74351 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74352
74353         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74354         (__argp_base_name): Removed
74355         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74356         typo.
74357         (__argp_base_name): Provide macro definition or extern declaration
74358         depending on the configuration
74359
74360 2006-01-20  Simon Josefsson  <jas@extundo.com>
74361
74362         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74363
74364 2006-01-20  Simon Josefsson  <jas@extundo.com>
74365
74366         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74367
74368 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74371         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74372         Suggested by Bruno Haible.
74373
74374 2006-01-20  Karl Berry  <karl@gnu.org>
74375
74376         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74377         until changes propagate, I guess.
74378
74379 2006-01-19  Simon Josefsson  <jas@extundo.com>
74380
74381         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74382
74383 2006-01-19  Simon Josefsson  <jas@extundo.com>
74384
74385         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74386
74387 2006-01-19  Simon Josefsson  <jas@extundo.com>
74388
74389         * gnulib-tool: Set check_PROGRAMS.
74390
74391         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74392         modules/des-tests, modules/gc-arcfour-tests,
74393         modules/gc-arctwo-tests, modules/gc-des-tests,
74394         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74395         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74396         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74397         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74398         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74399         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74400         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74401         test_*_SOURCES.
74402
74403 2006-01-18  Simon Josefsson  <jas@extundo.com>
74404
74405         * modules/socklen (Depends-on): Depend on sys_socket.
74406
74407 2006-01-18  Simon Josefsson  <jas@extundo.com>
74408
74409         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74410         modules/des-tests, modules/gc-arcfour-tests,
74411         modules/gc-arctwo-tests, modules/gc-des-tests,
74412         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74413         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74414         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74415         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74416         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74417         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74418         $(EXEEXT) to automake TESTS variable, for mingw32.
74419
74420 2006-01-17  Simon Josefsson  <jas@extundo.com>
74421
74422         * modules/socklen (Include): Need sys/socket.h.
74423
74424 2006-01-17  Bruno Haible  <bruno@clisp.org>
74425
74426         * modules/ssize_t (Include): Add <sys/types.h>.
74427
74428 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74431         it's not portable and it doesn't work with cross-compiles.
74432         Problem reported by Bruno Haible.  Fix missing-$ typo in
74433         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74434         -zignore from being used with Sun's C compiler.
74435
74436 2006-01-12  Simon Josefsson  <jas@extundo.com>
74437
74438         * lib/base64.c: Fix warning, reported by Bruno Haible
74439         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74440
74441 2006-01-12  Bruno Haible  <bruno@clisp.org>
74442
74443         * modules/ldd: New file.
74444         * build-aux/ldd.sh.in: New file.
74445         * MODULES.html.sh (Support for building libraries and executables): Add
74446         ldd.
74447
74448 2006-01-12  Bruno Haible  <bruno@clisp.org>
74449
74450         * m4/ldd.m4: New file.
74451
74452 2006-01-12  Bruno Haible  <bruno@clisp.org>
74453
74454         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74455         endless loop while replacing $auxdir with build-aux.
74456
74457 2006-01-11  Simon Josefsson  <jas@extundo.com>
74458
74459         * lib/stdint_.h (SIZE_MAX): Add missing (.
74460
74461 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         Sync from coreutils.
74464         * lib/md5.c: Fix commentary typos.
74465         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74466         * lib/md5.h (__attribute__): Remove; unused.
74467         * lib/sha1.c: Fix commentary to match md5 better.
74468         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74469         so that we don't need to worry about alignment.  All uses changed.
74470         This merges the 2005-10-28 md5 change into sha1.
74471
74472 2006-01-11  Jim Meyering  <jim@meyering.net>
74473
74474         Sync from coreutils.
74475         * lib/md5.c (OP): Fix spacing.
74476
74477 2006-01-11  Bruno Haible  <bruno@clisp.org>
74478
74479         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74480         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74481         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74482
74483 2006-01-11  Bruno Haible  <bruno@clisp.org>
74484
74485         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74486         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74487         the "early" section as well.
74488
74489 2006-01-11  Bruno Haible  <bruno@clisp.org>
74490
74491         Avoid "ar: no archive members specified" error on MacOS X.
74492         * gnulib-tool (func_modules_add_dummy): New function.
74493         (func_import, func_create_testdir): Invoke it.
74494
74495 2006-01-11  Bruno Haible  <bruno@clisp.org>
74496
74497         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74498         with $auxdir in AC_CONFIG_FILES statements.
74499
74500 2006-01-11  Bruno Haible  <bruno@clisp.org>
74501
74502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74503         Initialize also noinst_HEADERS to empty.
74504
74505 2006-01-11  Bruno Haible  <bruno@clisp.org>
74506
74507         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74508         variables.
74509         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74510         autoreconf.
74511
74512 2006-01-11  Bruno Haible  <bruno@clisp.org>
74513
74514         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74515         overridable by the user.
74516         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74517
74518 2006-01-10  Simon Josefsson  <jas@extundo.com>
74519
74520         * modules/sys_socket: New file.
74521
74522 2006-01-10  Simon Josefsson  <jas@extundo.com>
74523
74524         * m4/sys_socket_h.m4: New file.
74525
74526 2006-01-10  Simon Josefsson  <jas@extundo.com>
74527
74528         * lib/socket_.h: New file.
74529
74530 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * modules/readutmp (Maintainer): Add myself.
74533
74534 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74537         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74538         People who are still concerned with buggy memcmp implementations
74539         can invoke gl_FUNC_MEMCMP themselves.
74540
74541 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * lib/regex_internal.h (BITSET_WORD_BITS):
74544         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74545         preprocessor mishandles large unsigned values as if they were signed.
74546         Problem reported by Claudio Fontana in
74547         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74548
74549 2006-01-10  Jim Meyering  <jim@meyering.net>
74550
74551         Avoid the double-free (first in fts_read, second in fts_close) that
74552         would occur when an `active' directory is made inaccessible (e.g.,
74553         via chmod a-x) during a traversal.
74554         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74555         before returning.  Reproduce this failure by
74556         mkdir -p a/b; cd a; chmod a-x . b
74557         Reported by Stavros Passas.
74558
74559         Sync from coreutils.
74560         * lib/sha1.c: Tweak grammar in a comment.
74561
74562 2006-01-10  Jim Meyering  <jim@meyering.net>
74563
74564         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74565         Patch by Joerg Sonnenberger.
74566
74567 2006-01-10  Bruno Haible  <bruno@clisp.org>
74568
74569         * modules/readutmp: Depend on module free.
74570         * modules/strtok_r: Depend on module restrict.
74571
74572 2006-01-10  Bruno Haible  <bruno@clisp.org>
74573
74574         * modules/gettext (configure.ac): Add an invocation of
74575         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74576
74577 2006-01-10  Bruno Haible  <bruno@clisp.org>
74578
74579         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74580         Reported by Werner Lemberg <wl@gnu.org>.
74581
74582 2006-01-10  Bruno Haible  <bruno@clisp.org>
74583
74584         * lib/localcharset.c: Update from GNU gettext.
74585
74586 2006-01-10  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/argp.h (__const): Remove macro. Use const instead.
74589         * lib/argp-fmtstream.h (__const): Likewise.
74590         * lib/glob_.h (__const): Remove macro.
74591         * lib/glob-libc.h: Use const instead of __const.
74592
74593 2006-01-10  Bruno Haible  <bruno@clisp.org>
74594
74595         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74596         variable.
74597         Needed to avoid an automake error regarding the 'gettext' module.
74598
74599 2006-01-09  Simon Josefsson  <jas@extundo.com>
74600
74601         * modules/inet_ntop (Depends-on): Add restrict.
74602
74603 2006-01-09  Simon Josefsson  <jas@extundo.com>
74604
74605         * modules/gc-rijndael-tests (License): Put under LGPL.
74606
74607         * modules/gc-des-tests (License): Likewise.
74608
74609         * modules/gc-arcfour-tests (License): Likewise.
74610
74611         * modules/gc-arctwo-tests (License): Likewise.
74612
74613         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74614
74615         * modules/gc-hmac-sha1-tests (Files): Likewise.
74616
74617         * modules/gc-hmac-md5-tests (License): Likewise.
74618
74619         * modules/gc-sha1-tests (License): Likewise.
74620
74621         * modules/gc-md5-tests (License): Likewise.
74622
74623         * modules/gc-md4-tests (License): Likewise.
74624
74625         * modules/gc-md2-tests (License): Likewise.
74626
74627         * modules/gc-tests (License): Likewise.
74628
74629         * modules/des-tests (License): Likewise.
74630
74631         * modules/md4-tests (License): Likewise.
74632
74633         * modules/md2-tests (License): Likewise.
74634
74635 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         Sync from coreutils:
74638
74639         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74640         * modules/lib-ignore: New file.
74641         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74642         chdir-safer.m4, lchmod.m4.
74643         * modules/openat: Add mkdirat.c, openat-priv.h.
74644
74645 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         Sync from coreutils.
74648         * m4/lib-ignore.m4: New file.
74649         * m4/lchmod.m4: New file.
74650
74651 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74652
74653         Sync from coreutils.
74654         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74655         for write access: POSIX says that must fail.
74656         * lib/fts.c (diropen): Likewise.
74657         * lib/save-cwd.c (save_cwd): Likewise.
74658         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74659         well, for minor improvements on hosts that lack O_DIRECTORY.
74660         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74661         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74662         Fall back on chown if open failed with EACCES.
74663
74664         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74665         Report an error at compile-time if only a 1-second nominal clock
74666         resolution is found.
74667
74668         * lib/lchmod.h: New file.
74669         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74670         (make_dir_parents): Use lchown rather than chown, and
74671         lchmod rather than chmod.
74672
74673         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74674         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74675         "proc" reported by n0dalus.
74676
74677         * lib/mountlist.c: Include <limits.h>.
74678         (dev_from_mount_options)
74679         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74680         New function.  It no longer assumes "dev=" has the System V meaning
74681         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74682         (read_file_system_list)
74683         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74684         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74685         dev= in that case.
74686
74687         * lib/posixtm.h (PDS_PRE_2000): New macro.
74688         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74689         allow_century.  All usages changed.  Reject dates outside the range
74690         1969-1999 if PDS_PRE_2000 is used.
74691
74692 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         Sync from coreutils.
74695         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74696         (Time of day items): Mention the possibility of leap seconds.
74697         Problem reported by Dr. David Alan Gilbert.
74698
74699 2006-01-09  Jim Meyering  <jim@meyering.net>
74700
74701         Sync from coreutils.
74702
74703         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74704
74705         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74706
74707         * lib/modechange.c (mode_compile): Reject an invalid mode string
74708         that starts with an octal digit.  From Andreas Gruenbacher.
74709
74710         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74711         and dup to open_safer and dup_safer, respectively.
74712         (openat_permissive): Fix typo in comment.
74713
74714         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74715         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74716         (_): Remove; no longer needed.
74717         (openat): Renamed from rpl_openat; no need for rpl_openat
74718         since openat.h renames openat for us.
74719         Replace most of the body with a call to openat_permissive,
74720         to avoid duplicate code.
74721         Port to (probably hypothetical) environments were mode_t is
74722         wider than int.
74723         (openat_permissive): Require mode arg, so that we can check
74724         types better.  Put it just after flags.  Change cwd failure
74725         indicator from pointer-to-bool to pointer-to-errno-value.
74726         All callers changed.
74727         Invoke openat_save_fail and/or openat_restore_fail if
74728         cwd_errno is null, so that openat can call us.
74729         (openat_permissive, fdopendir, fstatat, unlinkat):
74730         Simplify errno handling to avoid some duplicate code,
74731         as it's OK to set errno on success.
74732         * lib/openat.h: Revamp code so that function macros depend on
74733         __OPENAT_PREFIX only, not also on AT_FDCWD.
74734         (openat_ro): Remove.  Caller changed to use openat_permissive.
74735         (openat_permissive): Now a macro, if not a function.
74736         (openat_restore_fail, openat_save_fail): Now always functions,
74737         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74738
74739         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74740         and openat.c.
74741         * lib/mkdirat.c: Include openat-priv.h.
74742         Remove definitions of macros defined therein.
74743         * lib/openat.c: Likewise.
74744
74745         * lib/mkdirat.c (mkdirat): New file and function.
74746         * lib/openat.h (mkdirat): Declare.
74747
74748         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74749
74750         * lib/openat.h (openat_permissive): Declare.
74751         (openat_ro): Define.
74752
74753         * lib/openat.c (EXPECTED_ERRNO): New macro.
74754         (openat_permissive): New function -- used in remove.c rewrite.
74755         (all functions): Set errno just before returning, only if there
74756         was an actual failure.
74757         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74758
74759         Emulate openat-family functions using Linux's procfs, if possible.
74760         Idea and some code based on Ulrich Drepper's glibc changes.
74761
74762         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74763         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74764         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74765         before falling back on save_cwd and restore_cwd.
74766         (fdopendir, fstatat, unlinkat): Likewise.
74767
74768         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74769         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74770
74771         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74772         as second argument to va_arg.  Otherwise, some versions of gcc
74773         warn that `if this code is reached, the program will abort'.
74774
74775 2006-01-09  Jim Meyering  <jim@meyering.net>
74776
74777         Sync from coreutils.
74778         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74779         Require openat-priv.h.
74780
74781 2006-01-09  Bruno Haible  <bruno@clisp.org>
74782
74783         * modules/strnlen (Include): Use strnlen.h.
74784
74785 2006-01-09  Bruno Haible  <bruno@clisp.org>
74786
74787         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74788
74789 2006-01-09  Bruno Haible  <bruno@clisp.org>
74790
74791         * lib/sysexit_.h (EX_OK): New macro.
74792         Suggested by Martin Lambers <marlam@marlam.de>.
74793
74794 2006-01-09  Bruno Haible  <bruno@clisp.org>
74795
74796         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74797         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74798
74799 2006-01-09  Bruno Haible  <bruno@clisp.org>
74800
74801         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74802         numbers.
74803
74804 2006-01-09  Bruno Haible  <bruno@clisp.org>
74805
74806         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74807         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74808         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74809         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74810
74811 2006-01-09  Bruno Haible  <bruno@clisp.org>
74812
74813         * build-aux/javacomp.sh.in: New file, moved from lib/.
74814         * modules/javacomp-script (Files): Update.
74815         (configure.ac): Add AC_CONFIG_FILES invocation.
74816         (EXTRA_DIST): Remove variable.
74817
74818         * build-aux/javaexec.sh.in: New file, moved from lib/.
74819         * modules/javaexec (Files): Update.
74820         (configure.ac): Add AC_CONFIG_FILES invocation.
74821         (EXTRA_DIST): Remove javaexec.sh.in.
74822
74823         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74824         * modules/csharpcomp-script (Files): Update.
74825         (configure.ac): Add AC_CONFIG_FILES invocation.
74826         (EXTRA_DIST): Remove variable.
74827
74828         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74829         * modules/csharpexec (Files): Update.
74830         (configure.ac): Add AC_CONFIG_FILES invocation.
74831         (EXTRA_DIST): Remove csharpexec.sh.in.
74832
74833 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74834
74835         Sync from coreutils.
74836
74837         Add POSIX ACL support
74838         * lib/acl.h (copy_acl, set_acl): Add declarations.
74839         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74840         systems other than Linux.
74841         (chmod_or_fchmod): New function: use fchmod when possible,
74842         and chmod otherwise.
74843         (file_has_acl): Add a POSIX ACL implementation, with a
74844         Linux-specific subcase.
74845         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74846         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74847         acls are unsupported.
74848         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74849         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74850         are unsupported.
74851
74852 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74853
74854         Sync from coreutils.
74855         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74856
74857 2006-01-07  Bruno Haible  <bruno@clisp.org>
74858
74859         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74860         gl_EARLY.
74861
74862 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74865         Problem reported for Mingw by Mark Junker.
74866
74867 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * README: Gnulib normally doesn't generate a tarball.
74870
74871 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74874         long int, not int, for nanosecond counts, so that people who are
74875         used to POSIX struct timespec won't be surprised.  Reported by Jim
74876         Meyering.
74877
74878 2005-12-28  Bruno Haible  <bruno@clisp.org>
74879
74880         * build-aux/config.rpath: Update from GNU gettext.
74881
74882 2005-12-16  Jim Meyering  <jim@meyering.net>
74883
74884         * modules/fprintftime: New module.
74885         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74886
74887 2005-12-16  Jim Meyering  <jim@meyering.net>
74888
74889         * m4/fprintftime.m4: New file.
74890
74891 2005-12-16  Jim Meyering  <jim@meyering.net>
74892
74893         * lib/fprintftime.c, lib/fprintftime.h: New files.
74894
74895 2005-12-15  Simon Josefsson  <jas@extundo.com>
74896
74897         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74898         new m4/socklen.m4.
74899
74900 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74901
74902         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74903         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74904
74905 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74906
74907         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74908         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74909         struct uparams is valid. Fall back to the default values if it is
74910         not.
74911
74912 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74913
74914         * modules/argp (Files): Add argp-pin.c
74915         (Depends-on): dirname
74916         (lib_SOURCES): Add argp-pin.c
74917
74918 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74919
74920         * m4/argp.m4:  Check if program_invocation_name and
74921         program_invocation_short_name are declared and define appropriate
74922         macros if they are not.
74923
74924 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74925
74926         * lib/argp-help.c (__argp_base_name): New function
74927         (__argp_short_program_name): Rewrite using __argp_base_name
74928         * lib/argp-namefrob.h: Define program_invocation_name and
74929         program_invocation_short_name if requested
74930         (__argp_base_name): Add prototype
74931         * lib/argp-parse.c (argp_def): Use gettext wrappers
74932         (argp_default_parser): Use __argp_base_name
74933         * lib/argp-pin.c: New file. Defines program_invocation_name and
74934         program_invocation_short_name on systems that lack them.
74935
74936 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74939         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74940         porting problem reported by Georg Schwarz in
74941         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74942
74943 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74944
74945         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74946         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74947         porting problem reported by Georg Schwarz in
74948         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74949
74950 2005-12-05  Bruno Haible  <bruno@clisp.org>
74951
74952         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74953         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74954         Reported by Mark Junker <mjscod@gmx.de>.
74955
74956 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74959         Use implementation from Albert Chin, with some
74960         comments/corrections by Stepan Kasal and myself.
74961
74962 2005-12-02  Bruno Haible  <bruno@clisp.org>
74963
74964         * gnulib-tool (func_import): Accept GPLed build tool modules when
74965         --lgpl is given.
74966         * modules/csharpcomp-script: New file.
74967         * modules/csharpcomp: Depend on it.
74968         * modules/javacomp-script: New file.
74969         * modules/javacomp: Depend on it.
74970         Suggested by Simon Josefsson.
74971
74972 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74975         statement, to work around an HP-UX 10.20 compiler bug reported by
74976         Peter O'Gorman.
74977
74978 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74979
74980         * modules/savedir (Depends-on): Add openat.
74981
74982 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74985         (uintmax_t) [defined uintmax_t]: Do not declare.
74986         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74987         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74988         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74989         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74990         sake of portability to weird hosts that C allows (though we don't
74991         know of any practical examples).
74992
74993         * lib/savedir.h (fdsavedir): New decl.
74994         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74995         contains most of the former guts of savedir.
74996         (savedir): Use savedirstream.
74997         Include "openat.h".
74998
74999 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * modules/obstack (Files): Add m4/ulonglong.m4.
75002         Problem reported by Davide Angelocola.
75003
75004 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75005
75006         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75007         coreutils no longer futzes with rounding modes.
75008
75009 2005-11-14  Jim Meyering  <jim@meyering.net>
75010
75011         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75012         replacement of mkstemp.
75013
75014 2005-11-10  Simon Josefsson  <jas@extundo.com>
75015
75016         * lib/readline.c: Remove EOL.
75017
75018 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * modules/gethrxtime (Depends-on): Add gettime.
75021
75022 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75025         or gettimeofday; no longer needed.
75026
75027 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75030         time business.
75031         (gethrxtime) [! (HAVE_NANOUPTIME
75032         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75033         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75034         our own approximation.
75035
75036 2005-11-08  Eric Blake  <ebb9@byu.net>
75037
75038         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75039
75040 2005-11-08  Eric Blake  <ebb9@byu.net>
75041
75042         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75043
75044 2005-11-04  Bruno Haible  <bruno@clisp.org>
75045
75046         * gnulib-tool: Implement --update mode.
75047
75048 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         Fix porting problem reported by Theodoros V. Kalamatianos.
75051         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75052         Don't assume that futimes failing means we must fail.
75053
75054 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75057         variables to suggest the intended function of the PATH_MAX check.
75058
75059 2005-10-30  Kean Johnston  <jkj@sco.com>
75060
75061         Trivial changes to support SCO systems.
75062         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75063         as PATH_MAX.
75064         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75065         where __ptr is null when no I/O is pending.
75066
75067 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75070         leave errno alone.  Problem reported by Dmitry V. Levin.
75071
75072 2005-10-28  Simon Josefsson  <jas@extundo.com>
75073
75074         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75075         Test more.
75076
75077         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75078
75079         * modules/md2, modules/md2-tests: New files.
75080
75081 2005-10-28  Simon Josefsson  <jas@extundo.com>
75082
75083         * m4/inet_ntop.m4: More tests.
75084
75085         * m4/gc-md2.m4, md2.m4: New file.
75086
75087 2005-10-28  Simon Josefsson  <jas@extundo.com>
75088
75089         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75090         "restrict" keywords, as per POSIX.  Protect the function
75091         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75092         Don't use K&R prototypes.  Check the sprintf return values.
75093         Re-define EAFNOSUPPORT if not present.  Indent.
75094
75095         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75096         suggested by Bruno Haible <bruno@clisp.org>.
75097
75098         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75099
75100         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75101
75102         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75103         libgcrypt).
75104
75105         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75106
75107         * lib/md2.h, lib/md2.c: New files.
75108
75109 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75112         errno alone.  Problem reported by Frederic Jolliton.
75113
75114 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * modules/verify (License): Change from GPL to LGPL.  This is a
75117         tiny module and there are apparently near-equivalents that are
75118         under the BSD license.
75119
75120 2005-10-24  Simon Josefsson  <jas@extundo.com>
75121
75122         * modules/sha1: Relicense to LGPL.
75123
75124 2005-10-24  Simon Josefsson  <jas@extundo.com>
75125
75126         * lib/md4.h: Shrink buffer size, now that we changed the type.
75127
75128 2005-10-23  Simon Josefsson  <jas@extundo.com>
75129
75130         * gnulib-tool (func_import): Fix --tests-base.
75131
75132 2005-10-22  Simon Josefsson  <jas@extundo.com>
75133
75134         * modules/arcfour (Depends-on): Need stdint.
75135
75136 2005-10-22  Simon Josefsson  <jas@extundo.com>
75137
75138         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75139         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75140
75141 2005-10-22  Simon Josefsson  <jas@extundo.com>
75142
75143         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75144         suggested by Bruno Haible <bruno@clisp.org>.
75145
75146 2005-10-22  Simon Josefsson  <jas@extundo.com>
75147
75148         * lib/crc.h: Include stddef.h, for size_t.
75149
75150 2005-10-22  Simon Josefsson  <jas@extundo.com>
75151
75152         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75153         arcfour_context struct (simplify test vector testing in GNU
75154         Shishi).
75155
75156 2005-10-21  Simon Josefsson  <jas@extundo.com>
75157
75158         * modules/des, modules/des-tests: New files.
75159
75160         * modules/gc-des, modules/gc-des-tests: New files.
75161
75162         * tests/test-des.c, tests/test-gc-des.c: New file.
75163
75164 2005-10-21  Simon Josefsson  <jas@extundo.com>
75165
75166         * modules/arctwo, modules/arctwo-tests: New files.
75167
75168         * tests/test-arctwo.c: New file.
75169
75170         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75171
75172         * tests/test-gc-arctwo.c: New file.
75173
75174 2005-10-21  Simon Josefsson  <jas@extundo.com>
75175
75176         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75177         Bruno Haible <bruno@clisp.org>.
75178
75179         * m4/gc-des.m4: New file.
75180
75181 2005-10-21  Simon Josefsson  <jas@extundo.com>
75182
75183         * m4/arctwo.m4: New file.
75184
75185         * m4/gc-arctwo.m4: New file.
75186
75187 2005-10-21  Simon Josefsson  <jas@extundo.com>
75188
75189         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75190         block.
75191
75192 2005-10-21  Simon Josefsson  <jas@extundo.com>
75193
75194         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75195         <bruno@clisp.org>.
75196
75197         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75198
75199         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75200         Bruno Haible <bruno@clisp.org>.
75201
75202         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75203         <bruno@clisp.org>.
75204
75205 2005-10-21  Simon Josefsson  <jas@extundo.com>
75206
75207         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75208
75209 2005-10-21  Simon Josefsson  <jas@extundo.com>
75210
75211         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75212
75213 2005-10-21  Simon Josefsson  <jas@extundo.com>
75214
75215         * lib/des.h, lib/des.c: New files.
75216
75217         * lib/gc-gnulib.c: Support DES.c
75218
75219 2005-10-21  Simon Josefsson  <jas@extundo.com>
75220
75221         * lib/arctwo.h, lib/arctwo.c: New files.
75222
75223         * lib/gc-gnulib.c: Support ARCTWO.
75224
75225 2005-10-21  Simon Josefsson  <jas@extundo.com>
75226
75227         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75228         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75229
75230 2005-10-21  Simon Josefsson  <jas@extundo.com>
75231
75232         * gnulib-tool (func_import, func_create_testdir): Define automake
75233         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75234         Makefile.am snippet),
75235         suggested by Bruno Haible <bruno@clisp.org>.
75236
75237         * modules/gc (Makefile.am): Use it.
75238
75239 2005-10-21  Bruno Haible  <bruno@clisp.org>
75240
75241         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75242         patch.
75243
75244 2005-10-19  Simon Josefsson  <jas@extundo.com>
75245
75246         * tests/test-gc-rijndael.c: New file.
75247
75248         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75249
75250 2005-10-19  Simon Josefsson  <jas@extundo.com>
75251
75252         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75253         interface too.
75254
75255 2005-10-19  Simon Josefsson  <jas@extundo.com>
75256
75257         * tests/test-gc-arcfour.c: New file.
75258
75259         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75260
75261 2005-10-19  Simon Josefsson  <jas@extundo.com>
75262
75263         * modules/gc-md4, modules/gc-md4-tests: New file.
75264
75265         * tests/test-gc-md4.c: New file.
75266
75267 2005-10-19  Simon Josefsson  <jas@extundo.com>
75268
75269         * m4/gc-md4.m4: New file.
75270
75271 2005-10-19  Simon Josefsson  <jas@extundo.com>
75272
75273         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75274         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75275         <kasal@ucw.cz>.
75276
75277 2005-10-19  Simon Josefsson  <jas@extundo.com>
75278
75279         * m4/gc-arcfour.m4: New file.
75280
75281         * m4/gc-rijndael.m4: New file.
75282
75283 2005-10-19  Simon Josefsson  <jas@extundo.com>
75284
75285         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75286
75287 2005-10-19  Simon Josefsson  <jas@extundo.com>
75288
75289         * lib/gc-gnulib.c: Support ARCFOUR.
75290
75291 2005-10-19  Simon Josefsson  <jas@extundo.com>
75292
75293         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75294         support.
75295
75296         * lib/gc.h: Add ECB enum type.
75297
75298         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75299
75300 2005-10-18  Simon Josefsson  <jas@extundo.com>
75301
75302         * tests/test-md5.c: New file.
75303
75304         * modules/md5-tests: New file.
75305
75306 2005-10-18  Simon Josefsson  <jas@extundo.com>
75307
75308         * tests/test-md4.c: New file.
75309
75310         * modules/md4, modules/md4-tests: New files.
75311
75312 2005-10-18  Simon Josefsson  <jas@extundo.com>
75313
75314         * m4/md4.m4: New file.
75315
75316 2005-10-18  Simon Josefsson  <jas@extundo.com>
75317
75318         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75319
75320 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75321
75322         * gnulib-tool (func_create_testdir): Omit the second check whether
75323         BUILT_SOURCES in nonempty.
75324
75325 2005-10-17  Simon Josefsson  <jas@extundo.com>
75326
75327         * tests/test-rijndael.c: New file.
75328
75329 2005-10-17  Simon Josefsson  <jas@extundo.com>
75330
75331         * modules/sha1: Depend on stdint instead of md5.
75332
75333         * modules/md5: Depend on stdint, remove uint32_t.
75334
75335 2005-10-17  Simon Josefsson  <jas@extundo.com>
75336
75337         * modules/gc-sha1-tests: New file.
75338
75339         * tests/test-gc-sha1.c: New file.
75340
75341 2005-10-17  Simon Josefsson  <jas@extundo.com>
75342
75343         * m4/md5.m4: Remove call to uint32_t.m4.
75344
75345 2005-10-17  Simon Josefsson  <jas@extundo.com>
75346
75347         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75348
75349         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75350         md5.h.
75351
75352         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75353
75354         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75355
75356 2005-10-17  Simon Josefsson  <jas@extundo.com>
75357
75358         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75359
75360 2005-10-17  Simon Josefsson  <jas@extundo.com>
75361
75362         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75363
75364 2005-10-17  Simon Josefsson  <jas@extundo.com>
75365
75366         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75367
75368         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75369
75370 2005-10-17  Bruno Haible  <bruno@clisp.org>
75371
75372         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75373         that it can also be used in a test.
75374
75375 2005-10-16  Bruno Haible  <bruno@clisp.org>
75376
75377         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75378         TESTS_ENVIRONMENT, so that individual tests can augment it.
75379
75380         * gnulib-tool (func_create_testdir): Use an intermediate target for
75381         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75382         macros, like $(ALLOCA_H), which cannot be passed through the command
75383         line.
75384
75385 2005-10-15  Simon Josefsson  <jas@extundo.com>
75386
75387         * modules/rijndael-tests: New file.
75388
75389         * modules/rijndael: New file.
75390
75391 2005-10-15  Simon Josefsson  <jas@extundo.com>
75392
75393         * m4/rijndael.m4: New file.
75394
75395 2005-10-15  Simon Josefsson  <jas@extundo.com>
75396
75397         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75398
75399         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75400
75401 2005-10-14  Simon Josefsson  <jas@extundo.com>
75402
75403         * tests/test-arcfour.c: New file.
75404
75405         * modules/arcfour, modules/arcfour-tests: New files.
75406
75407 2005-10-14  Simon Josefsson  <jas@extundo.com>
75408
75409         * m4/arcfour.m4: New file.
75410
75411 2005-10-14  Simon Josefsson  <jas@extundo.com>
75412
75413         * lib/arcfour.h, lib/arcfour.c: New files.
75414
75415 2005-10-14  Roland McGrath  <roland@redhat.com>
75416
75417         Import from libc.  [BZ #1331]
75418         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75419         macro argument.
75420         Reported by Matej Vela <vela@debian.org>.
75421
75422 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75425         include <wchar.h>; no longer needed.
75426
75427 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75430
75431 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75432         and  Ulrich Drepper  <drepper@redhat.com>
75433
75434         Import from libc.
75435         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75436         instead of inline stream orientation test and two separate
75437         function calls.  Pay no attention to USE_IN_LIBIO.
75438
75439 2005-10-13  Simon Josefsson  <jas@extundo.com>
75440
75441         * modules/gc-hmac-md5-tests: New file.
75442
75443         * tests/test-gc-hmac-sha1.c: New file.
75444
75445         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75446
75447         * modules/gc-hmac-md5-tests: New file.
75448
75449         * tests/test-gc-md5.c: New file.
75450
75451         * modules/gc-md5-tests: New file.
75452
75453 2005-10-13  Simon Josefsson  <jas@extundo.com>
75454
75455         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75456         Move memory allocation outside of loop.
75457
75458 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75461         intermediate directory is in a read-only file system.  Problem
75462         reported by Eric Blake.
75463
75464 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75465
75466         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75467
75468 2005-10-12  Simon Josefsson  <jas@extundo.com>
75469
75470         * tests/test-hmac-sha1.c: New file.
75471
75472         * modules/hmac-sha1-tests: New file.
75473
75474         * modules/hmac-sha1: New file.
75475
75476 2005-10-12  Simon Josefsson  <jas@extundo.com>
75477
75478         * modules/gc-sha1: New file.
75479
75480 2005-10-12  Simon Josefsson  <jas@extundo.com>
75481
75482         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75483
75484         * tests/test-gc-pbkdf2-sha1.c: New file.
75485
75486 2005-10-12  Simon Josefsson  <jas@extundo.com>
75487
75488         * modules/gc-md5, modules/gc-hmac-md5: New files.
75489
75490         * modules/gc (Files): Remove md5, memxor and hmac files.
75491
75492 2005-10-12  Simon Josefsson  <jas@extundo.com>
75493
75494         * m4/gc-pbkdf2-sha1.m4: New file.
75495
75496         * m4/gc-hmac-sha1.m4: New file.
75497
75498         * m4/gc-sha1: New file.
75499
75500         * m4/hmac-sha1.m4: New file.
75501
75502 2005-10-12  Simon Josefsson  <jas@extundo.com>
75503
75504         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75505
75506         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75507
75508 2005-10-12  Simon Josefsson  <jas@extundo.com>
75509
75510         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75511         suggested by Bruno Haible <bruno@clisp.org>.
75512
75513 2005-10-12  Simon Josefsson  <jas@extundo.com>
75514
75515         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75516
75517 2005-10-12  Simon Josefsson  <jas@extundo.com>
75518
75519         * lib/gc-pbkdf2-sha1.c: New file.
75520
75521         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75522
75523 2005-10-12  Simon Josefsson  <jas@extundo.com>
75524
75525         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75526
75527         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75528
75529 2005-10-12  Simon Josefsson  <jas@extundo.com>
75530
75531         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75532         GC_USE_HMAC_MD5, respectively.
75533
75534         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75535         (gc_md5): Fix typo.
75536
75537         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75538
75539         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75540
75541         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75542
75543 2005-10-12  Bruno Haible  <bruno@clisp.org>
75544
75545         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75546         Reported by Stepan Kasal <kasal@ucw.cz>.
75547
75548 2005-10-11  Simon Josefsson  <jas@extundo.com>
75549
75550         * tests/test-crc.c: New file.
75551
75552         * modules/crc, modules/crc-tests: New files.
75553
75554 2005-10-11  Simon Josefsson  <jas@extundo.com>
75555
75556         * m4/crc.m4: New file.
75557
75558 2005-10-11  Simon Josefsson  <jas@extundo.com>
75559
75560         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75561
75562         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75563
75564         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75565
75566 2005-10-11  Simon Josefsson  <jas@extundo.com>
75567
75568         * lib/crc.h, lib/crc.c: New files.
75569
75570         * lib/gc.h (gc_hash_buffer): Add doc.
75571
75572 2005-10-11  Bruno Haible  <bruno@clisp.org>
75573
75574         * modules/c-strcasestr: New file.
75575         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75576
75577 2005-10-11  Bruno Haible  <bruno@clisp.org>
75578
75579         * modules/c-strcase: New file.
75580         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75581
75582 2005-10-11  Bruno Haible  <bruno@clisp.org>
75583
75584         * lib/strcasecmp.c: Include limits.h.
75585         (strcasecmp): Avoid integer overflow on exotic platforms.
75586         * lib/strncasecmp.c: Include limits.h.
75587         (strncasecmp): Avoid integer overflow on exotic platforms.
75588         Reported by Paul Eggert.
75589
75590 2005-10-11  Bruno Haible  <bruno@clisp.org>
75591
75592         * lib/c-strcasestr.h: New file, from GNU gettext.
75593         * lib/c-strcasestr.c: New file, from GNU gettext.
75594
75595 2005-10-11  Bruno Haible  <bruno@clisp.org>
75596
75597         * lib/c-strcase.h: New file, from GNU gettext.
75598         * lib/c-strcasecmp.c: New file, from GNU gettext.
75599         * lib/c-strncasecmp.c: New file, from GNU gettext.
75600
75601 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75602
75603         * modules/mempcpy (License): GPL -> LGPL.
75604         * modules/strchrnul (License): Likewise.
75605         * modules/sysexits (License): Likewise.
75606
75607 2005-10-08  Simon Josefsson  <jas@extundo.com>
75608
75609         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75610
75611 2005-10-07  Simon Josefsson  <jas@extundo.com>
75612
75613         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75614
75615 2005-10-06  Simon Josefsson  <jas@extundo.com>
75616
75617         * tests/test-hmac-md5.c: New file.
75618
75619         * modules/hmac-md5-tests: New file.
75620
75621         * modules/hmac-md5: New file.
75622
75623 2005-10-06  Simon Josefsson  <jas@extundo.com>
75624
75625         * m4/hmac-md5.m4: New file.
75626
75627         * m4/memxor.m4: Require gl_C_RESTRICT.
75628
75629 2005-10-06  Simon Josefsson  <jas@extundo.com>
75630
75631         * lib/memxor.c (memxor): Avoid casts and warnings.
75632
75633 2005-10-06  Simon Josefsson  <jas@extundo.com>
75634
75635         * lib/hmac-md5.c: New file.
75636
75637         * lib/hmac.h: New file.
75638
75639 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75642         promotes to int, not unsigned int, to catch the AIX 5.3
75643         compiler bug.
75644
75645 2005-10-05  Simon Josefsson  <jas@extundo.com>
75646
75647         * modules/memxor: New file.
75648
75649         * modules/iconv (Files): Move config.rpath to havelib, it is used
75650         there.
75651
75652         * modules/havelib (Files): Add config.rpath.
75653
75654 2005-10-05  Simon Josefsson  <jas@extundo.com>
75655
75656         * m4/memxor.m4: New file.
75657
75658 2005-10-05  Simon Josefsson  <jas@extundo.com>
75659
75660         * lib/memxor.c (memxor): Fix compiler error.
75661
75662         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75663         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75664
75665         * lib/memxor.h, lib/memxor.c: New files.
75666
75667         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75668         we assume all systems have it, suggested by Jim Meyering
75669         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75670         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75671         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75672         same reasons.
75673
75674 2005-10-05  Simon Josefsson  <jas@extundo.com>
75675
75676         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75677
75678 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75681         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75682         needed, since the source code now assumes these .h files.
75683
75684 2005-10-05  Derek Price  <derek@ximbiot.com>
75685
75686         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75687
75688 2005-10-05  Bruno Haible  <bruno@clisp.org>
75689
75690         * modules/stdint (License): Change to LGPL.
75691
75692 2005-10-04  Simon Josefsson  <jas@extundo.com>
75693
75694         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75695         D. Baushke" <mdb@gnu.org>.
75696
75697 2005-10-04  Bruno Haible  <bruno@clisp.org>
75698
75699         * lib/verify.h (verify_true): Provide alternative definition for C++.
75700
75701 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75704         (SSIZE_MAX): New macro, if not already defined.
75705         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75706         than 2 GiB.
75707
75708 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         Sync from coreutils.
75711         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75712         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75713         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75714         ULLONG_MAX doesn't work with 2.7.2.1.
75715
75716 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75719         From Ben Pfaff.
75720
75721         * modules/exclude (Depends-on): Depend on verify.
75722         * modules/strtoimax (Depends-on): Likewise.
75723         * modules/utimecmp (Depends-on): Likewise.
75724
75725 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * lib/exclude.c: Include verify.h.
75728         (verify): Remove.  All callers changed to use verify.h's version.
75729         * lib/strtoimax.c: Likewise.
75730         * lib/utimecmp.c: Likewis.e
75731
75732         Sync from coreutils.
75733         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75734         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75735         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75736         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75737         bother returning ENOSYS if settimeofday or stime fails; just let
75738         them return whatever errno they want to return.
75739         * lib/utimens.c: Include unistd.h, for dup2.
75740         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75741         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75742
75743 2005-10-02  Jim Meyering  <jim@meyering.net>
75744
75745         Sync from coreutils.
75746         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75747         from glibc-2.2.5 that fails for read-only files.
75748
75749 2005-10-02  Jim Meyering  <jim@meyering.net>
75750
75751         Sync from coreutils.
75752         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75753         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75754         `#if HAVE_CONFIG_H'.
75755         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75756         Remove AT_FDCWD test.
75757         Do not consume the fd unless successful.
75758         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75759         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75760         block, so that we don't even try to compile it if settimeofday is
75761         available.  This works around a compilation failure on OSF1 V5.1,
75762         due to stime requiring a `long int*' while tv_sec is `int'.
75763
75764 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75765
75766         Sync from coreutils.
75767         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75768         against `yes', rather than just testing for nonempty.
75769
75770 2005-10-01  Simon Josefsson  <jas@extundo.com>
75771
75772         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75773         and Darwin.
75774
75775         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75776         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75777         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75778         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75779         Check if struct addrinfo is declared.
75780
75781 2005-10-01  Simon Josefsson  <jas@extundo.com>
75782
75783         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75784         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75785         AI_* and EAI_* definitions.  Protect function declarations.
75786
75787 2005-10-01  Jim Meyering  <jim@meyering.net>
75788
75789         Sync from coreutils.
75790
75791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75792         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75793         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75794         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75795         in the inet and nsl libraries.  Required on Solaris 5.7.
75796
75797 2005-10-01  Jim Meyering  <jim@meyering.net>
75798
75799         Sync from coreutils.
75800         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75801         in the inet and nsl libraries.  Required on Solaris 5.7.
75802
75803 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75804
75805         * lib/getdelim.c (getdelim): Remove unused variables.
75806
75807 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75810         so that the code works even with ancient cpp.  Portability problem
75811         with GCC 2.7.2.1 reported by Thomas M.Ott.
75812
75813 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * modules/regex (Depends-on): Add strcase.
75816
75817         * modules/gethostname (Licence): Change from GPL to LGPL, since
75818         gethostname.c is a trivial implementation of a standard library
75819         function.
75820         * modules/poll (License): Change from GPL to LGPL, since it's
75821         derived from LGPL code.
75822
75823 2005-09-27  Jim Meyering  <jim@meyering.net>
75824
75825         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75826         HAVE_CONFIG_H.
75827
75828         * lib/intprops.h (signed_type_or_expr__): Define.
75829         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75830         for unsigned types.
75831
75832 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * lib/verify.h (verify_expr): Remove, replacing with:
75835         (verify_true): New macro that returns true instead of void.
75836         (verify_type__): Remove.
75837         (verify): Use verify_true rather than verify_type__.
75838
75839 2005-09-26  Bruno Haible  <bruno@clisp.org>
75840
75841         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75842         is necessary.
75843         (lib_SOURCES): Remove mbchar.c.
75844         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75845         (Files): Add m4/mbrtowc.m4.
75846         * modules/mbiter: Likewise.
75847         * modules/mbuiter: Likewise.
75848
75849 2005-09-26  Bruno Haible  <bruno@clisp.org>
75850
75851         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75852         compile mbchar.c if they are not both present.
75853         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75854         * m4/mbiter.m4 (gl_MBITER): Likewise.
75855         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75856         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75857         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75858
75859 2005-09-25  Jim Meyering  <jim@meyering.net>
75860
75861         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75862         also uses socklen_t.
75863
75864 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * lib/utimens.c (ENOSYS): Define if not already defined.
75867         (futimens): Support having a null PATH if the file descriptor
75868         is nonnegative.
75869
75870         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75871         Remove.
75872         (__attribute): Define to empty unless GCC 3.1 or later.
75873         This works around a core dump on OpenBSD 3.4, which has GCC
75874         2.95.3, which dumps core when given __attribute__(()).  It also
75875         simplifies other tests, since we really don't want to bother with
75876         worrying about which ancient version of GCC supported what.
75877         Original problem reported by Yoann Vandoorselaere, with part of
75878         the fix suggested by Derek Price.
75879
75880 2005-09-24  Jim Meyering  <jim@meyering.net>
75881
75882         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75883         so we can once again use a positive bitfield width of 1 -- now we
75884         don't have to explain why we were using a bitfield width of 2.
75885
75886 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75887
75888         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75889         and similarly for the other external symbols.  Problem reported
75890         by James Gallager.
75891
75892         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75893         bug reported by Jim Meyering.
75894
75895         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75896         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75897         not needed, since socklen is a prerequisite module.
75898
75899 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75902         Problem reported by Eric Blake.
75903         (getaddrinfo): Initialize se so that it's not garbage.
75904         Redo internal storage allocation so that it doesn't make unportable
75905         assumptions about alignment.
75906         Fix a memory leak.
75907
75908         * lib/utimens.c (futimens): Use futimesat if available.
75909         Prefer it to futimes since it doesn't have the futimes bug.
75910
75911         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75912         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75913         Instead, declare a function that returns a pointer to an array,
75914         and use verify_type__ to declare the size of the array.
75915         Problem and germ of a solution reported by Bruno Haible.
75916         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75917         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75918
75919 2005-09-23  Jim Meyering  <jim@meyering.net>
75920
75921         Sync from coreutils.
75922         Correct build failure (socklen_t not defined) on at least
75923         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75924         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75925
75926 2005-09-23  Jim Meyering  <jim@meyering.net>
75927
75928         * modules/getaddrinfo (Depends-on): Add socklen.
75929
75930 2005-09-23  Bruno Haible  <bruno@clisp.org>
75931
75932         * tests/test-verify.c: New file.
75933
75934 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         Sync from coreutils.
75937
75938         * modules/argmatch (Depends-on): Add verify.
75939         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75940         unistd-safer.
75941         * modules/save-cwd (Depends-on): Likewise.
75942
75943         * modules/openat (Files): Add lib/openat-die.c.
75944         (Depends-on): Remove error, exitfail.
75945         Add dirname.
75946
75947         * modules/verify: New file.
75948         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75949         with "verify" module.
75950
75951 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         Sync from coreutils.
75954
75955         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75956         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75957         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75958         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75959         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75960         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75961         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75962         Don't bother checking for string.h, stdlib.h, unistd.h.
75963         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75964         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75965         module's job.
75966         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75967         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75968
75969         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75970         (gl_GETDATE): Use it.
75971
75972         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75973
75974 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         Sync from coreutils.
75977
75978         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75979         stat-time.h.
75980         * lib/argmatch.h: Include verify.h
75981         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75982         (ARGMATCH_ASSERT): Remove; unused.
75983         * lib/canonicalize.c: Assume STDC_HEADERS.
75984         * lib/exclude.c: Include "strcase.h".
75985         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75986         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75987         and stdio-safer.h.
75988         (getusershell): Call fopen, not fopen_safer.
75989         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75990         Do not include unistd-safer.h.
75991         (save_cwd): Don't call fd_safer; no longer needed
75992         now that we include fcntl--.h.
75993
75994         * lib/getdate.y (relative_time): New type.
75995         (RELATIVE_TIME_0): New constant.
75996         (parser_control): Use relative_time instead of doing it ourselves.
75997         (%union): Add new relative_time rel member.
75998         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75999         Now typeless.
76000         (relunit, relunit_snumber): Now of type rel.
76001         (zone, rel, relunit, get_date): Adjust to above changes.
76002
76003         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76004         Do not include unistd-safer.h.
76005         (getloadavg): Don't call fd_safer; no longer needed
76006         now that we include fcntl--.h.
76007
76008         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76009         (make_dir_parents): Treat ENOSYS like EEXIST.
76010
76011         Improve quality of diagnostics on restore_cwd failure.
76012         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76013         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76014         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76015         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76016         each time through the loop.  Do not diagnose restore_cwd failure;
76017         that is the caller's job (and perhaps the caller does not care).
76018
76019         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76020         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76021         If the file already exists but is not a directory, don't bother
76022         to try to make its parents.
76023         Close potential file descriptor leak if we can't chdir("/") (!).
76024         Don't always return true if chdir($PWD) fails; return true only
76025         if the requested action was done successfully (except for the
76026         chdir($PWD)).
76027         Don't log final directory unless we actually made it.
76028         Refactor to avoid duplicate code to fix up permissions.
76029         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76030
76031         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76032         to make it a bit faster and (I hope) clearer.
76033         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76034         Fix bug in formats like %2N.
76035
76036         * lib/verify.h: New file.
76037
76038 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         Sync from coreutils.
76041         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76042
76043 2005-09-22  Jim Meyering  <jim@meyering.net>
76044
76045         Sync from coreutils.
76046
76047         * m4/lstat.m4 (gl_FUNC_LSTAT):
76048         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76049         Remove obsolete comment.
76050         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76051         * m4/xstrtod.m4: Likewise.
76052
76053         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76054
76055 2005-09-22  Jim Meyering  <jim@meyering.net>
76056
76057         Sync from coreutils.
76058
76059         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76060
76061         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76062         the .tm_year member, since otherwise gcc-4.0 would now warn about
76063         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76064
76065         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76066         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76067
76068         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76069         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76070         when run in a time zone for which daylight savings time is in effect
76071         for the starting date.
76072
76073         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76074         stop us from restricting permissions of just-created absolute-named
76075         directories.
76076         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76077         to restore initial working directory.
76078         * lib/mkdir-p.c (make_dir_parents): New parameter:
76079         different_working_dir, to tell caller if/when we change the working
76080         directory and are unable to return to the initial one.
76081         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76082         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76083         `return false'.  This fixes a bug introduced on 2004-07-30.
76084
76085         * lib/openat.c (fdopendir): Be sure to close the supplied
76086         file descriptor before returning.  This makes our replacement
76087         implementation a little closer to Solaris's, where fdopendir
76088         ties the file descriptor to the returned DIR* pointer.
76089         * lib/openat.c (unlinkat): New function.
76090         * lib/openat.h (unlinkat): Add prototype.
76091         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76092         (openat_restore_fail): Rename from openat_restore_die.
76093         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76094
76095         Provide an alternative to exiting immediately upon save_cwd or
76096         restore_cwd failure.  Now, an application can arrange e.g.,
76097         to perform a longjump in that case.
76098         * lib/openat.c: Include dirname.h.
76099         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76100         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76101         and openat_restore_die rather than calling error directly.
76102         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76103
76104         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76105         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76106         define.
76107
76108         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76109         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76110                             int utc, int nanoseconds);
76111         Background:
76112         date should not have to allocate a megabyte of virtual memory to
76113         handle a format argument like +%1048575T.  When implemented with
76114         strftime, it must allocate such a buffer, use strftime to fill it
76115         in, print it, then free it.
76116         With fprintftime, it simply prints everything and exits.
76117         With no need for memory allocation, that's one fewer way to fail.
76118         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76119         optional field width, not before, so we accept %9:z, not %:9z.
76120         (my_strftime): Be sure to use L_('x') for literals.
76121
76122         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76123         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76124         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76125         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76126         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76127         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76128         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76129         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76130         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76131         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76132         * lib/xgethostname.c, lib/xreadlink.c:
76133         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76134
76135         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76136         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76137         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76138         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76139         and don't include <sys/file.h>).
76140
76141 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76142
76143         Sync from coreutils.
76144
76145         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76146         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76147         [!LDAV_DONE]: Avoid unused variable warning.
76148
76149 2005-09-21  Bruno Haible  <bruno@clisp.org>
76150
76151         * lib/unicodeio.h (unicode_to_mb): New declaration.
76152
76153 2005-09-20  Derek Price  <derek@ximbiot.com>
76154
76155         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76156         getaddrinfo.h.
76157
76158 2005-09-20  Bruno Haible  <bruno@clisp.org>
76159
76160         * gnulib-tool: Remove trailing slashes from the values specified for
76161         --source-base, --m4-base, --tests-base, --aux-dir.
76162         Suggested by Simon Josefsson <jas@extundo.com>.
76163
76164 2005-09-20  Bruno Haible  <bruno@clisp.org>
76165
76166         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76167         func_modules_to_filelist, func_import, func_create_testdir): Make all
76168         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76169         change when gnulib-tool is invoked in a different locale.
76170
76171 2005-09-19  Simon Josefsson  <jas@extundo.com>
76172
76173         * m4/socklen.m4: Fix typo.
76174
76175 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76176
76177         Use a consistent style for including <config.h>.
76178         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76179         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76180         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76181         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76182         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76183         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76184         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76185         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76186         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76187         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76188         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76189         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76190         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76191         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76192         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76193         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76194         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76195         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76196         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76197         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76198         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76199         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76200         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76201         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76202         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76203         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76204         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76205         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76206         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76207         lib/xstrtoumax.c, lib/yesno.c:
76208         Standardize inclusion of config.h.
76209         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76210         lib/inttostr.h:  Removed inclusion of config.h from header files.
76211         * lib/inttostr.c:  Adjusted in-tree users.
76212         * lib/timespec.h: Remove superfluous warning to include config.h.
76213         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76214         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76215         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76216         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76217         config.h with HAVE_CONFIG_H.
76218
76219 2005-09-19  Jim Meyering  <jim@meyering.net>
76220
76221         * modules/pathmax (License): Change to LGPL.
76222
76223 2005-09-19  Derek Price  <derek@ximbiot.com>
76224
76225         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76226
76227 2005-09-19  Bruno Haible  <bruno@clisp.org>
76228
76229         * gnulib-tool (import): Provide default for --tests-base.
76230
76231 2005-09-19  Bruno Haible  <bruno@clisp.org>
76232
76233         * doc/quote.texi: New file, extracted from gnulib.texi.
76234         * doc/ctime.texi: New file, extracted from gnulib.texi.
76235         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76236         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76237         * doc/gnulib.texi: Include them.
76238
76239 2005-09-18  Bruno Haible  <bruno@clisp.org>
76240
76241         Portability fix.
76242         * gnulib-tool (func_readlink): New function.
76243         (func_ln_if_changed): Use it.
76244
76245 2005-09-18  Bruno Haible  <bruno@clisp.org>
76246
76247         * gnulib-tool: Support --with-tests also with --import.
76248         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76249         (func_import): Use variables $testsbase and $inctests. Emit a
76250         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76251         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76252         SUBDIRS += $testsdir.
76253         (func_create_testdir): Update.
76254
76255 2005-09-18  Bruno Haible  <bruno@clisp.org>
76256
76257         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76258         instead of $dry_run.
76259         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76260         (func_ln_if_changed): Don't handle dry-run here.
76261         (func_import): In dry-run mode, detect more precisely which actions
76262         would be performed, and don't use "...ing" verbs.
76263
76264 2005-09-18  Bruno Haible  <bruno@clisp.org>
76265
76266         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76267         (func_import): Use join on two temporary files instead of three nested
76268         loops, in order to determine which files are new or old.
76269
76270 2005-09-18  Bruno Haible  <bruno@clisp.org>
76271
76272         * gnulib-tool (func_import): Comment out code that spits out the
76273         new files with --dry-run.
76274
76275 2005-09-18  Bruno Haible  <bruno@clisp.org>
76276
76277         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76278
76279 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * lib/stat-time.h: New file.
76282         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76283         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76284         in a different way.
76285         (timespec_cmp): New function.
76286         * lib/utimecmp.c: Include stat-time.h.
76287         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76288         members exist, not on the obsolescent ST_MTIM_NSEC.
76289         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76290
76291 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76294
76295 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * MODULES.html.sh (File system functions): Add stat-time.
76298         * modules/stat-time: New file.
76299         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76300         is now done in a different way, by the stat-time module.
76301         * modules/utimecmp (Depends-on): Add stat-time.
76302
76303 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * m4/st_mtim.m4: Remove.  Superseded by...
76306         * m4/stat-time.m4: New file.
76307         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76308         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76309
76310 2005-09-15  Derek Price  <derek@ximbiot.com>
76311
76312         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76313
76314 2005-09-15  Derek Price  <derek@ximbiot.com>
76315
76316         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76317         * lib/regex_internal.c: Ditto, using this...
76318         (__GNUC_PREREQ): ...new macro.
76319         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76320         using...
76321         (__GNUC_PREREQ): ...this new macro.
76322
76323         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76324
76325 2005-09-15  Derek Price  <derek@ximbiot.com>
76326             Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76329         changes, consolidating in...
76330         * lib/regex_internal.h: ...this file.
76331
76332 2005-09-13  Jim Meyering  <jim@meyering.net>
76333
76334         * lib/canon-host.c: Filter through gnu indent and reword comments
76335         slightly.
76336         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76337
76338 2005-09-13  Derek Price  <derek@ximbiot.com>
76339
76340         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76341         failure.
76342         Reported by Jim Meyering  <jim@meyering.net>.
76343
76344 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76345
76346         * lib/base64.c: Typo.
76347         (base64_encode): Put b64str in initialized data section.
76348
76349 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76350
76351         Merge glibc and coreutils changes into gnulib, plus a few
76352         extra fixes.
76353         * lib/md5.c: Use #error rather than a string.
76354         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76355         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76356         (__attribute__): Define to empty for non recent-GCC.
76357         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76358         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76359         Renamed from their non-__ counterparts, with new macros replacing
76360         them if not _LIBC.  Add __THROW attribute.
76361         (rol): Remove.
76362         (struct md5_ctx): Align buffer if using GCC.
76363         * lib/sha1.h (struct sha1_ctx): Likewise.
76364         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76365         The old name was backwards.
76366         (NOTSWAP): Remove; not used.
76367         (rol): New macro, moved here from md5.h.
76368         (sha1_process_block): Remove a FIXME that doesn't make sense.
76369
76370 2005-09-12  Derek Price  <derek@ximbiot.com>
76371
76372         Return usable errors from canon-host.
76373         * lib/canon-host.h: New file.
76374         * lib/canon-host.c (canon_host): Wrap...
76375         (canon_host_r): ...this new function, which now relies exclusively on
76376         getaddrinfo.
76377         (ch_strerror): New function.
76378         (last_cherror): New global.
76379         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76380         interface.
76381         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76382         void *.
76383         (freeaddrinfo): Free ai->ai_canonname when set.
76384
76385 2005-09-12  Derek Price  <derek@ximbiot.com>
76386
76387         Make canon-host require getaddrinfo.
76388         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76389         AC_LIBSOURCE canon-host.h.  Call...
76390         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76391         gl_GETADDRINFO.
76392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76393
76394 2005-09-12  Derek Price  <derek@ximbiot.com>
76395
76396         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76397         LGPL.
76398         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76399
76400 2005-09-12  Derek Price  <derek@ximbiot.com>
76401
76402         * lib/gai_strerror.c: Include config.h when available.  Include
76403         getaddrinfo.h before other headers to test interface.
76404         Reported by Larry Jones <lawrence.jones@ugs.com>.
76405
76406 2005-09-12  Derek Price  <derek@ximbiot.com>
76407             Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * modules/glob (Files): Add glob-libc.h.
76410
76411 2005-09-12  Derek Price  <derek@ximbiot.com>
76412             Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76415         glob_.h, glob-libc.h.
76416         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76417
76418 2005-09-12  Derek Price  <derek@ximbiot.com>
76419             Paul Eggert  <eggert@cs.ucla.edu>
76420
76421         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76422         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76423         protecting things that should be done only in gnulib contexts.
76424         * lib/glob_.h: New file, containing only the glob things needed for
76425         gnulib.
76426         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76427         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76428         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76429         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76430         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76431         and to respect the namespace rules better.
76432
76433 2005-09-08  Simon Josefsson  <jas@extundo.com>
76434
76435         * modules/socklen: New file.
76436
76437 2005-09-08  Simon Josefsson  <jas@extundo.com>
76438
76439         * m4/socklen.m4: New file.
76440
76441 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * modules/utimens (Files): Add m4/utimbuf.m4, since
76444         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76445         Reported by Sergey Poznyakoff.
76446
76447 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76450         definitions, since that's the preferred style in glibc.
76451         Fix a minor spacing issue, and update copyright notice to match
76452         glibc's.
76453
76454 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76457
76458 2005-09-06  Simon Josefsson  <jas@extundo.com>
76459
76460         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76461         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76462
76463 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76466         warning.
76467
76468 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * config/srclist.txt: Add glibc bug 1302.
76471
76472 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         Change bitset word type from unsigned int to unsigned long int,
76475         as this has better performance on typical 64-bit hosts.
76476         Port bitset code to hosts with unusual word sizes.
76477         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76478         (build_collating_symbol):
76479         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76480         argument is a bitset.  This is merely a style issue, but it makes
76481         it clearer that an entire array is expected.
76482         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76483         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76484         Port to the case where bitset_word is not the same as unsigned int.
76485         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76486         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76487         Likewise.
76488         * lib/regexec.c (check_dst_limits_calc_pos_1,
76489         check_subexp_matching_top):
76490         (build_trtable, group_nodes_into_DFAstates):
76491         Likewise.
76492         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76493         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76494         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76495         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76496         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76497         * lib/regcomp.c (optimize_subexps, lower_subexp):
76498         Work even if bitset_word has holes in its bitwise representation.
76499         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76500         * lib/regexec.c (check_dst_limits_calc_pos_1,
76501         check_subexp_matching_top):
76502         Likewise.
76503         * lib/regex_internal.c (re_string_reconstruct):
76504         Don't assume UCHAR_MAX == 255.
76505         * lib/regex_internal.h (bitset_set_all): Likewise.
76506         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76507         All uses changed.
76508         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76509         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76510         All uses changed.
76511         (BITSET_WORD_MAX): New macro.
76512         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76513         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76514         (bitset_empty, bitset_copy):
76515         Prefer sizeof (bitset) to multiplying it out ourselves.
76516         (bitset_not_merge): Remove; unused.
76517         (bitset_contain): Return bool, not unsigned int with one bit on.
76518         All callers changed.
76519         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76520         alignment than re_node_set; do this by defining a new internal
76521         type struct dests_alloc and using it to allocate memory.
76522
76523 2005-09-05  Bruno Haible  <bruno@clisp.org>
76524
76525         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76526         links.
76527
76528 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76529
76530         * modules/size_max (Makefile.am): Add size_max.h
76531
76532 2005-09-04  Derek Price  <derek@ximbiot.com>
76533
76534         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76535
76536 2005-09-03  Simon Josefsson  <jas@extundo.com>
76537
76538         * gnulib-tool: Fix typo.
76539
76540 2005-09-03  Simon Josefsson  <jas@extundo.com>
76541
76542         * config/srclist.txt: Add glibc bug 1293.
76543
76544 2005-09-03  Derek Price  <derek@ximbiot.com>
76545
76546         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76547         From Larry Jones <lawrence.jones@ugs.com>.
76548
76549 2005-09-02  Simon Josefsson  <jas@extundo.com>
76550
76551         * modules/socklen: New file.
76552
76553 2005-09-02  Simon Josefsson  <jas@extundo.com>
76554
76555         * modules/havelib: New module.
76556
76557         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76558         Use havelib.
76559
76560 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         Check for arithmetic overflow when calculating sizes, to prevent
76563         some buffer-overflow issues.  These patches are conservative, in the
76564         sense that when I couldn't determine whether an overflow was possible,
76565         I inserted a run-time check.
76566         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76567         macros.
76568         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76569         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76570         (re_xnrealloc, re_x2nrealloc): New inline functions.
76571         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76572         parse_bracket_exp):
76573         (build_equiv_class, build_charclass): Check for arithmetic overflow
76574         in size expression calculations.
76575         * lib/regex_internal.c (re_string_realloc_buffers):
76576         (build_wcs_upper_buffer, re_node_set_add_intersect):
76577         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76578         (re_dfa_add_node, register_state): Likewise.
76579         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76580         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76581         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76582         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76583
76584 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76587         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76588
76589 2005-09-02  Bruno Haible  <bruno@clisp.org>
76590
76591         Support for lib vs. lib64 distinction on biarch platforms.
76592         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76593         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76595
76596 2005-09-02  Bruno Haible  <bruno@clisp.org>
76597
76598         * gnulib-tool (import): In the other first-use case, provide defaults
76599         as well.
76600
76601 2005-09-02  Bruno Haible  <bruno@clisp.org>
76602
76603         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76604         patches not yet found in the latest gettext release.
76605
76606 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76607
76608         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76609         to avoid a collision with bits/local_lim.h in glibc.
76610         All uses changed.  Problem reported by Dmitry V. Levin in
76611         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76612
76613         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76614         bugs in int versus size_t comparisons.
76615         (re_string_context_at): Fix bug where the code assumed that
76616         Idx is signed.
76617
76618         Use bool where appropriate.
76619         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76620         All callers changed.
76621         (calc_eclosure_iter): Likewise, for ROOT arg.
76622         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76623         (build_charclass_op): Likewise, for NON_MATCH arg.
76624         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76625         (re_string_construct_common): Likewise, for ICASE arg.
76626         * lib/regexec.c (re_search_2_stub, re_search_stub):
76627         Likewise, for RET_LEN arg.
76628         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76629         (set_regs): Likewise, for FL_BACKTRACK arg.
76630         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76631         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76632         (calc_eclosure_iter, parse_bracket_exp):
76633         Use bool for internal variables that are booleans.
76634         * lib/regexec.c (re_search_internal, check_matching,
76635         proceed_next_node):
76636         (set_regs, build_sifted_states, sift_states_bkref):
76637         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76638         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76639         (find_collation_sequence_value):
76640         Likewise.
76641         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76642         (re_node_set_compare):
76643         Return bool, not int. All callers changed.
76644         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76645         (build_trtable, check_node_accept): Likewise.
76646         * lib/regex_internal.h: Include stdbool.h.
76647
76648         Fix bugs uncovered when converting to bool.
76649         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76650         failure instead of charging ahead blindly.
76651         * lib/regex_internal.c (register_state): Likewise.
76652         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76653         for freeing internal storage.
76654         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76655         bitset pieces used as boolean, to avoid undefined behavior
76656         on hosts that do int overflow checking.
76657
76658 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76659
76660         * config/srclist.txt: Add glibc bugs 1285-1287.
76661
76662 2005-09-01  Jim Meyering  <jim@meyering.net>
76663
76664         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76665         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76666         Require gl_STAT_MACROS, too.
76667
76668 2005-09-01  Bruno Haible  <bruno@clisp.org>
76669
76670         * gnulib-tool (import): In the first-use case, provide defaults.
76671
76672 2005-09-01  Bruno Haible  <bruno@clisp.org>
76673
76674         * gnulib-tool (func_import): Remove the .tmp files.
76675
76676 2005-09-01  Bruno Haible  <bruno@clisp.org>
76677
76678         * gnulib-tool (func_import): Fix handling of symbolic links.
76679
76680 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76683         old glibc regex code mishandles strings longer than 2**31 bytes.
76684         This patch fixes this when the regex code is used in gnulib
76685         (i.e., outside glibc).
76686
76687         This patch should not affect the use of the regex code inside
76688         glibc.  No doubt this problem also needs to be handled for glibc
76689         as well, but the result will be an incompatible change to the
76690         glibc ABI, and the old ABI will have to be supported too.  That
76691         can be the the subject for another patch.
76692
76693         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76694         governing whether the rest of this patch is active.  By default,
76695         the macro is disabled and the patch has no effect.
76696         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76697         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76698         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76699         (re_match_2, re_set_registers): Use the new types.
76700         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76701         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76702         New macros.
76703         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76704         (re_string_context_at, bin_tree_t, re_dfastate_t):
76705         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76706         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76707         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76708         (re_string_char_size_at, re_string_wchar_at):
76709         (re_string_elem_size_at):
76710         Use the new types and macros to port to 64-bit hosts.
76711         Use unsigned types for internal values, so that the code
76712         mostly works even for arrays larger than SSIZE_MAX.
76713         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76714         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76715         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76716         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76717         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76718         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76719         (calc_inveclosure, parse_dup_op, build_range_exp):
76720         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76721         (fetch_number, create_token_tree, mark_opt_subexp):
76722         Likewise.
76723         * lib/regex_internal.c (re_string_construct_common,
76724         create_ci_newstate):
76725         (create_cd_newstate, re_string_allocate, re_string_construct):
76726         (re_string_realloc_buffers, build_wcs_upper_buffer):
76727         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76728         (re_string_reconstruct, re_string_peek_byte_case):
76729         (re_string_fetch_byte_case, re_string_context_at):
76730         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76731         (re_node_set_init_copy, re_node_set_add_intersect):
76732         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76733         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76734         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76735         (re_acquire_state, re_acquire_state_context, register_state):
76736         Likewise.
76737         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76738         search_cur_bkref_entry):
76739         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76740         (re_search_internal, re_search_2_stub, re_search_stub)
76741         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76742         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76743         (update_cur_sifted_state, check_dst_limits):
76744         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76745         (check_subexp_limits, sift_states_bkref, merge_state_array):
76746         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76747         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76748         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76749         (expand_bkref_cache, check_node_accept_bytes):
76750         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76751         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76752         (acquire_init_state_context, check_halt_node_context):
76753         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76754         (sift_states_backward, clean_state_log_if_needed):
76755         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76756         (find_recover_state, transit_state_sb, transit_state_mb):
76757         (transit_state_bkref, build_trtable, match_ctx_clean):
76758         Likewise.
76759         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76760         to work around an assumption that REG_MISSING is negative.
76761
76762         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76763         (seek_collating_symbol_entry) [defined _LIBC]:
76764         (lookup_collation_sequence_value) [defined _LIBC]:
76765         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76766         Use prototypes rather than old-style function definitions.
76767         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76768         (transit_state_sb) [0]:
76769         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76770
76771         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76772         rm_eo.
76773
76774         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76775         (optimize_subexps, lower_subexp):
76776         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76777         since the signed shift might overflow.  Use 1u<<31 instead.
76778         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76779         Likewise.
76780         * lib/regexec.c (check_dst_limits_calc_pos_1,
76781         check_subexp_matching_top): Likewise.
76782
76783         * lib/regcomp.c (optimize_subexps, lower_subexp):
76784         Use CHAR_BIT rather than 8, for clarity.
76785         * lib/regexec.c (check_dst_limits_calc_pos_1):
76786         (check_subexp_matching_top): Likewise.
76787         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76788         have to worry about portability issues when shifting it left.
76789         Remove no-longer-needed test for table_size > 0.
76790         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76791         in a word, as the resulting behavior is undefined.
76792         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76793         in one case, a <= should have been an <, and in another case the
76794         whole test was missing.
76795         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76796         the standard name CHAR_BIT.
76797         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76798         this is not true on one's complement and signed-magnitude hosts.
76799
76800         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76801         next_last_offset.
76802         (struct re_dfa_t): Remove unused member states_alloc.
76803         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76804
76805 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76808         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76809         and large-file glibc and in 32-bit large-file Solaris.
76810
76811 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76814         lengths fit in regoff_t; this isn't true if regoff_t is the same
76815         width as size_t.
76816         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76817         (= START + RANGE) instead of RANGE.  This avoids overflow
76818         problems when regoff_t is the same width as size_t.
76819         All callers changed.
76820         (re_search_2_stub): Check for overflow when adding the
76821         sizes of the two strings.
76822         (re_search_stub): Check for overflow when adding START
76823         to RANGE; if it occurs, substitute the extreme value.
76824
76825 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76828
76829 2005-08-31  Jim Meyering  <jim@meyering.net>
76830
76831         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76832         a pointer-to-const.
76833         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76834         (register_state): Likewise.
76835         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76836         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76837         (group_nodes_into_DFAstates): Likewise.
76838
76839 2005-08-31  Jim Meyering  <jim@meyering.net>
76840
76841         * check-module: Add a FIXME comment.
76842
76843 2005-08-31  Eric Blake  <ebb9@byu.net>
76844
76845         * modules/unistd-safer (Files): Add unistd--.h.
76846         * modules/stdio-safer (Files): Add stdio--.h.
76847
76848 2005-08-31  Derek Price  <derek@ximbiot.com>
76849
76850         * lib/getdelim.c (getdelim): Return EOF on EOF.
76851         Reported by Larry Jones <lawrence.jones@ugs.com>.
76852
76853 2005-08-31  Bruno Haible  <bruno@clisp.org>
76854
76855         Avoid unnecessary diffs in the generated lib/Makefile.am.
76856         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76857         the generated files.
76858         (func_import): Don't set cmd.
76859
76860 2005-08-31  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/strstr.c: Include <stddef.h>, for NULL.
76863         * lib/strcasestr.c: Likewise.
76864         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76865
76866 2005-08-31  Bruno Haible  <bruno@clisp.org>
76867
76868         * gnulib-tool: New option --macro-prefix.
76869         (func_import): Use macro_prefix.
76870         (import): Handle option --macro-prefix.
76871
76872 2005-08-31  Bruno Haible  <bruno@clisp.org>
76873
76874         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76875         Also use new variables cached_lgpl, cached_libtool.
76876
76877 2005-08-31  Bruno Haible  <bruno@clisp.org>
76878
76879         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76880         always instantiating them.
76881
76882 2005-08-31  Bruno Haible  <bruno@clisp.org>
76883
76884         * gnulib-tool (func_import): Read the previous cached settings
76885         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76886         earlier added by gnulib but are now dropped. Warn when a gnulib file
76887         overwrites a non-gnulib file.
76888
76889 2005-08-31  Bruno Haible  <bruno@clisp.org>
76890
76891         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76892         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76893         projects that don't keep autogenerated files in CVS. Put into
76894         actioncmd only the specified modules, not the transitive closure.
76895
76896 2005-08-31  Bruno Haible  <bruno@clisp.org>
76897
76898         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76899         Create directories that shall be filled.
76900         (import): Don't look for gl_* macros in configure.ac. Recurse across
76901         all directories containing a gnulib-cache.m4 files, if meaningful.
76902
76903 2005-08-31  Bruno Haible  <bruno@clisp.org>
76904
76905         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76906         (import): Set seen_libtool when we see gl_LIBTOOL.
76907
76908 2005-08-31  Bruno Haible  <bruno@clisp.org>
76909
76910         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76911         declaration macro definitions from generated gnulib.m4.
76912
76913 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76914
76915         * lib/iconvme.h: Add prototype for iconv_alloc.
76916
76917 2005-08-29  Simon Josefsson  <jas@extundo.com>
76918
76919         * lib/iconvme.c: Fix errno.
76920
76921 2005-08-29  Bruno Haible  <bruno@clisp.org>
76922
76923         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76924         that it works when the directory contains spaces.
76925
76926 2005-08-29  Bruno Haible  <bruno@clisp.org>
76927
76928         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76929
76930 2005-08-29  Bruno Haible  <bruno@clisp.org>
76931
76932         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76933         Emit more advice.
76934
76935 2005-08-29  Bruno Haible  <bruno@clisp.org>
76936         and Stepan Kasal  <kasal@ucw.cz>
76937
76938         * check-module: If more parameters are given, check each of them
76939         separately; add more exceptions, as noted by Jim Meyering.
76940         (check_module): New procedure.
76941         (%exempt_header): Now contains all exceptions.
76942
76943 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76944
76945         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76946
76947 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76948
76949         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76950
76951 2005-08-28  Bruno Haible  <bruno@clisp.org>
76952
76953         * m4/gnulib-tool.m4: New file.
76954
76955 2005-08-27  Jim Meyering  <jim@meyering.net>
76956
76957         * modules/unistd-safer (Files): Add pipe-safer.c.
76958         * modules/fcntl-safer (Files): Add creat-safer.c.
76959
76960 2005-08-27  Jim Meyering  <jim@meyering.net>
76961
76962         * m4/stdlib-safer.m4: New file.  From coreutils.
76963         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76964         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76965         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76966         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76967         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76968
76969 2005-08-27  Jim Meyering  <jim@meyering.net>
76970
76971         * lib/fopen-safer.c: Merge minor changes from coreutils.
76972         * lib/dup-safer.c: Likewise.
76973         * lib/fd-safer.c: Likewise.
76974
76975         Merge from coreutils.
76976         * lib/stdio--.h: New file.
76977         * lib/stdlib--.h: New file.
76978         * lib/mkstemp-safer.c: New file.
76979
76980         GNU tar needs these.
76981         * lib/pipe-safer.c: New file.
76982         * lib/creat-safer.c: New file.
76983         * lib/fcntl--.h (creat): Define to creat_safer.
76984         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76985         * lib/unistd--.h (pipe): Define to pipe_safer.
76986         * lib/unistd-safer.h: Declare pipe_safer.
76987
76988 2005-08-26  Simon Josefsson  <jas@extundo.com>
76989
76990         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76991         Haible <bruno@clisp.org>.
76992
76993 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * lib/regex_internal.h: Remove all references to
76996         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76997         or better.
76998         (bitset_not, bitset_merge, bitset_not_merge):
76999         (bitset_mask, re_string_allocate, re_string_construct):
77000         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77001         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77002         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77003         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77004         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77005         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77006         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77007         (re_acquire_state_context):
77008         Remove unnecessary forward decls.
77009         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77010         Put __attribute at function definition,
77011         now that the function decl has been removed.
77012         * lib/regex_internal.c (re_string_peek_byte_case):
77013         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77014         Likewise.
77015
77016 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77017
77018         * m4/regex.m4: Add AC_PREREQ(2.50).
77019         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77020
77021 2005-08-25  Simon Josefsson  <jas@extundo.com>
77022
77023         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77024         __fsetlocking.
77025
77026 2005-08-25  Simon Josefsson  <jas@extundo.com>
77027
77028         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77029         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77030         GLIBC specific code.
77031
77032 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         Make regex safe for g++.  This fixes one real bug (an "err"
77035         that should have been "*err").  g++ problem reported by
77036         Sam Steingold.
77037         * lib/regex_internal.h (re_calloc): New macro, consistent with
77038         re_malloc etc.  All callers of calloc changed to use re_calloc.
77039         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77040         not int.  All callers changed.
77041         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77042         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77043         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77044         (find_recover_state): Change "err" to "*err"; this fixes what
77045         appears to be a real bug.
77046         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77047         versus int.
77048
77049 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * modules/regex (Depends-on): Add malloc, since the code
77052         assumes that !malloc(0) means failure.
77053
77054 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77057
77058         alloca modernization/simplification for regex.
77059         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77060         needs to be at the start of the file, and can be moved into
77061         regex_internal.h and simplified.
77062         * lib/regex_internal.h: Include <alloca.h>.
77063         (__libc_use_alloca) [!defined _LIBC]: New macro.
77064         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77065         now works outside glibc.
77066
77067 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * config/srclist.txt: Add glibc bugs 1241, 1245.
77070
77071 2005-08-25  Jim Meyering  <jim@meyering.net>
77072
77073         * lib/open-safer.c: Include <config.h>.
77074         Otherwise, we'd lose LARGEFILE support in any file using
77075         e.g. "fcntl--.h"
77076
77077 2005-08-25  Bruno Haible  <bruno@clisp.org>
77078
77079         * m4/minmax.m4: Require autoconf 2.52.
77080         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77081         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77082         alternatives of translit over the alphabet.
77083         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77084
77085 2005-08-24  Simon Josefsson  <jas@extundo.com>
77086
77087         * tests/test-getpass.c: New file.
77088
77089 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77090
77091         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77092         for GNU regex features.
77093
77094 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77097         * lib/regex.h (regerror): Likewise.
77098
77099         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77100         requires this.  (The code never needed it.)
77101
77102         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77103         All uses of recently-renamed identifiers changed to use the new,
77104         POSIX-compliant names.  The code will build and run just fine
77105         without these changes, but it's better to eat our own dog food
77106         and use the standard-conforming names.
77107
77108         * lib/regex.h: Fix a multitude of POSIX name space violations.
77109         These changes have an effect only for programs that define
77110         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77111         do not change anything for programs compiled in the normal way.
77112         Also, there is no effect on the ABI.
77113
77114         (_REGEX_SOURCE): New macro.
77115         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77116         defined and _GNU_SOURCE is not; this fixes a name space violation.
77117
77118         Rename the following macros to obey POSIX requirements.
77119         The old names are still visible as macros if _REGEX_SOURCE is defined.
77120         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77121         RE_BACKSLASH_ESCAPE_IN_LISTS.
77122         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77123         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77124         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77125         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77126         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77127         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77128         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77129         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77130         (REG_INTERVALS): renamed from RE_INTERVALS.
77131         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77132         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77133         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77134         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77135         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77136         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77137         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77138         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77139         RE_UNMATCHED_RIGHT_PAREN_ORD.
77140         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77141         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77142         (REG_DEBUG): renamed from RE_DEBUG.
77143         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77144         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77145         unusual, since we can't clash with the POSIX REG_ICASE.
77146         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77147         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77148         (REG_NO_SUB): renamed from RE_NO_SUB.
77149         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77150         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77151         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77152         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77153         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77154         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77155         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77156         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77157         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77158         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77159         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77160         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77161         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77162         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77163         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77164         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77165         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77166         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77167         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77168         (REG_FIXED): Renamed from REGS_FIXED.
77169         (REG_NREGS): Renamed from RE_NREGS.
77170
77171         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77172         of other REG_* macros, since POSIX says the user is allowed to
77173         #undef these macros selectively.
77174
77175         (reg_errcode_t): Update comment stating what other tables need
77176         to be consistent.
77177
77178         Rename the following enum values to obey POSIX requirements.
77179         The old names are still visible as macros.
77180         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77181         is not defined, since GNU is supposed to be a superset of POSIX as
77182         much as possible, and since we want reg_errcode_t to be a signed
77183         type for implementation consistency.
77184         (_REG_NOERROR): Renamed from REG_NOERROR.
77185         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77186         (_REG_BADPAT): Renamed from REG_BADPAT.
77187         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77188         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77189         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77190         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77191         (_REG_EBRACK): Renamed from REG_EBRACK.
77192         (_REG_EPAREN): Renamed from REG_EPAREN.
77193         (_REG_EBRACE): Renamed from REG_EBRACE.
77194         (_REG_BADBR): Renamed from REG_BADBR.
77195         (_REG_ERANGE): Renamed from REG_ERANGE.
77196         (_REG_ESPACE): Renamed from REG_ESPACE.
77197         (_REG_BADRPT): Renamed from REG_BADRPT.
77198         (_REG_EEND): Renamed from REG_EEND.
77199         (_REG_ESIZE): Renamed from REG_ESIZE.
77200         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77201         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77202         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77203         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77204         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77205
77206         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77207         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77208         changed.  But support the old name if the new one is not defined
77209         and if _REGEX_SOURCE.
77210
77211         Change the following member names in struct re_pattern_buffer.
77212         The old names are still supported if !_REGEX_SOURCE.
77213         The new names are always supported, regardless of _REGEX_SOURCE.
77214         (re_buffer): Renamed from buffer.
77215         (re_allocated): Renamed from allocated.
77216         (re_used): Renamed from used.
77217         (re_syntax): Renamed from syntax.
77218         (re_fastmap): Renamed from fastmap.
77219         (re_translate): Renamed from translate.
77220         (re_can_be_null): Renamed from can_be_null.
77221         (re_regs_allocated): Renamed from regs_allocated.
77222         (re_fastmap_accurate): Renamed from fastmap_accurate.
77223         (re_no_sub): Renamed from no_sub.
77224         (re_not_bol): Renamed from not_bol.
77225         (re_not_eol): Renamed from not_eol.
77226         (re_newline_anchor): Renamed from newline_anchor.
77227
77228         Change the following member names in struct re_registers.
77229         The old names are still supported if !_REGEX_SOURCE.
77230         The new names are always supported, regardless of _REGEX_SOURCE.
77231         (rm_num_regs): Renamed from num_regs.
77232         (rm_start): Renamed from start.
77233         (rm_end): Renamed from end.
77234
77235         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77236         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77237         Prepend __ to parameter names.
77238
77239         Undo yesterday's changes.
77240
77241 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77244         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77245         lib/regex.c.
77246
77247 2005-08-24  Jim Meyering  <jim@meyering.net>
77248
77249         Sync from coreutils.
77250         * m4/fcntl-safer.m4: New file.
77251
77252         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77253         and object files for this module.
77254
77255 2005-08-24  Jim Meyering  <jim@meyering.net>
77256
77257         Sync from coreutils.
77258         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77259
77260 2005-08-24  Jim Meyering  <jim@meyering.net>
77261
77262         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77263         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77264
77265 2005-08-24  Jim Meyering  <jim@meyering.net>
77266
77267         * modules/fcntl-safer: New module.
77268         * modules/fts (Depends-on): Add fcntl-safer.
77269         * MODULES.html.sh (File descriptor based Input/Output):
77270         Add fcntl-safer.
77271
77272 2005-08-24  Bruno Haible  <bruno@clisp.org>
77273
77274         Support for unit test modules.
77275         * modules/README: Mention tests modules.
77276         * modules/TEMPLATE-TESTS: New file.
77277         * gnulib-tool: New options --extract-tests-module, --with-tests and
77278         --tests-base (unused for the moment).
77279         (testsbase, inctests): New variables.
77280         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77281         (func_verify_module): Exclude TEMPLATE-TESTS.
77282         (func_verify_nontests_module, func_verify_tests_module): New functions.
77283         (func_get_dependencies): Add implicit dependency for tests modules.
77284         (func_get_tests_module): New function.
77285         (func_modules_transitive_closure): When --with-tests was specified,
77286         include the unit tests as well, unless explicitly avoided.
77287         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77288         (func_emit_tests_Makefile_am): New function.
77289         (func_create_testdir): When --with-tests was specified, emit a
77290         tests/ directory.
77291         * MODULES.html.sh (Future developments): Update.
77292
77293 2005-08-24  Bruno Haible  <bruno@clisp.org>
77294
77295         * modules/tls-tests: New file.
77296         * tests/test-tls.c: New file, from GNU gettext.
77297
77298 2005-08-24  Bruno Haible  <bruno@clisp.org>
77299
77300         * modules/lock-tests: New file.
77301         * tests/test-lock.c: New file, from GNU gettext.
77302
77303 2005-08-24  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/lock.h: Add multiple inclusion guard.
77306         * lib/tls.h: Add multiple inclusion guard.
77307
77308 2005-08-24  Bruno Haible  <bruno@clisp.org>
77309
77310         * gnulib-tool: Add support for the --aux-dir option to
77311         --create-testdir, --create-megatestdir, --test, --megatest.
77312         (func_create_testdir, func_create_megatestdir): Optionally emit a
77313         AC_CONFIG_AUX_DIR directive.
77314         (create-testdir, create-megatestdir, test, megatest): Provide a
77315         default value for $auxdir.
77316
77317 2005-08-24  Bruno Haible  <bruno@clisp.org>
77318
77319         * gnulib-tool (import): Use compound statement instead of subshell
77320         where possible.
77321
77322 2005-08-24  Bruno Haible  <bruno@clisp.org>
77323
77324         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77325
77326 2005-08-24  Bruno Haible  <bruno@clisp.org>
77327
77328         * gnulib-tool (func_version): Update.
77329
77330 2005-08-24  Bruno Haible  <bruno@clisp.org>
77331
77332         * gnulib-tool (func_import, func_create_testdir,
77333         func_create_megatestdir): Quote all autoconf macro arguments.
77334
77335 2005-08-24  Bruno Haible  <bruno@clisp.org>
77336
77337         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77338         option --force, because --force causes the aclocal.m4 of each
77339         subdirectory to be newer than the corresponding config.h.in.
77340
77341 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77342
77343         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77344         All contents moved to gl_REGEX.
77345         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77346         assume that it does.
77347
77348 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77349
77350         * lib/regex.h (REG_NOSYS)
77351         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77352         Define, since POSIX requires it as of 2001.
77353         (_REG_ENOSYS)
77354         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77355         New private symbol, used to keep the enum signed in all cases.
77356         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77357         Youngman in
77358         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77359
77360         * lib/regex_internal.c (re_string_skip_chars, register_state):
77361         (calc_state_hash):
77362         Remove forward decls; no longer needed now that we use prototypes.
77363         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77364         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77365         (clean_state_log_if_needed): Likewise.
77366
77367 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77368
77369         * config/srclist.txt: Add glibc bugs 1231-1233.
77370
77371 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77372
77373         Fix problems reported by Sam Steingold in
77374         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77375         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77376         assumed that reg_errcode_t is a signed type, which is not
77377         necessarily true if _XOPEN_SOURCE is not defined.
77378         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77379         since some compilers warn about it otherwise.
77380
77381 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77384         (init_word_char, create_initial_state, duplicate_node_closure):
77385         (fetch_token, peek_token_bracket, build_range_exp):
77386         (build_collating_symbol): Remove forward decls; no longer needed
77387         now that we use prototypes.
77388
77389         * lib/regcomp.c:
77390         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77391         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77392         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77393         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77394         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77395         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77396         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77397         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77398         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77399         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77400         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77401         (build_charclass, build_charclass_op, fetch_number, create_tree):
77402         (create_token_tree, mark_opt_subexp, duplicate_tree):
77403         Use prototypes rather than old-style definitions.
77404
77405         * lib/regex_internal.c:
77406         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77407         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77408         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77409         (re_string_reconstruct, re_string_peek_byte_case):
77410         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77411         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77412         (re_node_set_init_copy, re_node_set_add_intersect):
77413         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77414         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77415         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77416         (re_acquire_state, re_acquire_state_context, register_state):
77417         (create_ci_newstate, create_cd_newstate, free_state):
77418         Likewise.
77419         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77420         re_search_2):
77421         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77422         (re_search_internal, prune_impossible_nodes):
77423         (acquire_init_state_context, check_matching, static):
77424         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77425         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77426         (update_regs, sift_states_backward, build_sifted_states):
77427         (clean_state_log_if_needed, merge_state_array):
77428         (update_cur_sifted_state, add_epsilon_src_nodes):
77429         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77430         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77431         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77432         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77433         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77434         (check_arrival, check_arrival_add_next_nodes):
77435         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77436         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77437         (check_node_accept_bytes, check_node_accept, extend_buffers):
77438         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77439         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77440         (sift_ctx_init):
77441         Likewise.
77442
77443         * lib/regex_internal.h:
77444         (re_string_allocate, re_string_construct, re_string_reconstruct):
77445         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77446         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77447         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77448         (re_string_context_at, re_string_peek_byte_case):
77449         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77450         is defined, since we now use prototypes always.
77451
77452         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77453         C89 or better.  All uses removed.
77454
77455 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * config/srclist.txt: Add glibc bugs 1220-1227.
77458
77459 2005-08-20  Jim Meyering  <jim@meyering.net>
77460
77461         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77462         of unused local, dfa.
77463
77464 2005-08-20  Bruno Haible  <bruno@clisp.org>
77465
77466         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77467
77468 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77471         (re_node_set_insert_last, re_dfa_add_node):
77472         Rename local variables to avoid GCC shadowing warnings.
77473
77474 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77475
77476         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77477         [defined lint]: Suppress bogus uninitialized-variable warnings.
77478
77479         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77480         and let the caller return REG_ESPACE if out of space.  This
77481         removes an uninitialied-variable warning with GCC 4.0.1, and also
77482         avoids taking the address of a local variable.  All callers
77483         changed.
77484
77485 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77488         $LIBCSRC/posix/regexec.c.
77489         Add glibc bug 1217 for regcomp.c.
77490
77491 2005-08-19  Jim Meyering  <jim@meyering.net>
77492
77493         * lib/regexec.c (proceed_next_node): Redo local variables to
77494         avoid GCC shadowing warnings.
77495
77496 2005-08-18  Bruno Haible  <bruno@clisp.org>
77497
77498         * lib/strstr.c (strstr): Fix return value in multibyte case.
77499         * lib/strcasestr.c (strcasestr): Likewise.
77500
77501 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77504
77505 2005-08-17  Jim Meyering  <jim@meyering.net>
77506
77507         Make the %s format (seconds since the epoch) work for a negative
77508         number and when used with a zero-padded field width, e.g. %015s.
77509
77510         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77511         label so that it precedes the code to set `digits'.  Otherwise,
77512         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77513         print `00-22'.  Now, it prints `-0022', as it should.
77514
77515 2005-08-17  Bruno Haible  <bruno@clisp.org>
77516
77517         * modules/strstr (Files): Add m4/mbrtowc.m4.
77518         (Depends-on): Add mbuiter.
77519
77520 2005-08-17  Bruno Haible  <bruno@clisp.org>
77521
77522         * modules/strcasestr: New file.
77523         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77524         strcasestr.
77525
77526 2005-08-17  Bruno Haible  <bruno@clisp.org>
77527
77528         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77529
77530 2005-08-17  Bruno Haible  <bruno@clisp.org>
77531
77532         * modules/mbuiter: New file.
77533         * MODULES.html.sh (Extended multibyte and wide character utilities):
77534         Add mbuiter.
77535
77536 2005-08-17  Bruno Haible  <bruno@clisp.org>
77537
77538         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77539         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77540
77541 2005-08-17  Bruno Haible  <bruno@clisp.org>
77542
77543         * m4/strcasestr.m4: New file.
77544
77545 2005-08-17  Bruno Haible  <bruno@clisp.org>
77546
77547         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77548         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77549
77550 2005-08-17  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/strcasestr.h: New file.
77553         * lib/strcasestr.c: New file.
77554
77555 2005-08-17  Bruno Haible  <bruno@clisp.org>
77556
77557         * lib/strcasecmp.c: Use mbuiter.h.
77558
77559 2005-08-17  Bruno Haible  <bruno@clisp.org>
77560
77561         * lib/mbuiter.h: New file.
77562
77563 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77566         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77567         and gl_GETOPT are both invoked via different paths (as happens
77568         with GNU tar CVS because it uses both argp and getopt), the former
77569         wins.
77570
77571 2005-08-16  Bruno Haible  <bruno@clisp.org>
77572
77573         * modules/tls: New file.
77574         * MODULES.html.sh (Multithreading): Add tls.
77575
77576 2005-08-16  Bruno Haible  <bruno@clisp.org>
77577
77578         * modules/strnlen1: New file.
77579         * MODULES.html.sh (String handling): Add strnlen1.
77580
77581 2005-08-16  Bruno Haible  <bruno@clisp.org>
77582
77583         * modules/strcase (Files): Add m4/mbrtowc.m4.
77584         (Depends-on): Add strnlen1, mbchar.
77585
77586 2005-08-16  Bruno Haible  <bruno@clisp.org>
77587
77588         * modules/mbiter: New file.
77589         * MODULES.html.sh (Extended multibyte and wide character utilities):
77590         Add mbiter.
77591
77592 2005-08-16  Bruno Haible  <bruno@clisp.org>
77593
77594         * modules/mbfile: New file.
77595         * MODULES.html.sh (Extended multibyte and wide character utilities):
77596         Add mbfile.
77597
77598 2005-08-16  Bruno Haible  <bruno@clisp.org>
77599
77600         * modules/mbchar: New file.
77601         * MODULES.html.sh (Extended multibyte and wide character utilities):
77602         New section.
77603
77604 2005-08-16  Bruno Haible  <bruno@clisp.org>
77605
77606         * m4/tls.m4: New file, from GNU gettext.
77607
77608 2005-08-16  Bruno Haible  <bruno@clisp.org>
77609
77610         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77611         always.
77612         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77613
77614 2005-08-16  Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/mbiter.m4: New file.
77617
77618 2005-08-16  Bruno Haible  <bruno@clisp.org>
77619
77620         * m4/mbfile.m4: New file.
77621
77622 2005-08-16  Bruno Haible  <bruno@clisp.org>
77623
77624         * m4/mbchar.m4: New file.
77625
77626 2005-08-16  Bruno Haible  <bruno@clisp.org>
77627
77628         * lib/tls.h: New file, from GNU gettext.
77629         * lib/tls.c: New file, from GNU gettext.
77630
77631 2005-08-16  Bruno Haible  <bruno@clisp.org>
77632
77633         * lib/strnlen1.h: New file.
77634         * lib/strnlen1.c: New file.
77635
77636 2005-08-16  Bruno Haible  <bruno@clisp.org>
77637
77638         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77639         (mbi_init): Update.
77640         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77641         NUL byte, not after it.
77642
77643 2005-08-16  Bruno Haible  <bruno@clisp.org>
77644
77645         * lib/strcase.h (strcasecmp): Add note in comments.
77646         * lib/strncasecmp.c: Use code from strcasecmp.c.
77647         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77648         (strcasecmp): Work correctly in multibyte locales.
77649
77650 2005-08-16  Bruno Haible  <bruno@clisp.org>
77651
77652         * lib/mbiter.h: New file.
77653
77654 2005-08-16  Bruno Haible  <bruno@clisp.org>
77655
77656         * lib/mbfile.h: New file.
77657
77658 2005-08-16  Bruno Haible  <bruno@clisp.org>
77659
77660         * lib/mbchar.h: New file.
77661         * lib/mbchar.c: New file.
77662
77663 2005-08-16  Bruno Haible  <bruno@clisp.org>
77664
77665         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77666         the valid ones. Makes the comparison operations transitive:
77667         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77668         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77669
77670 2005-08-15  Simon Josefsson  <jas@extundo.com>
77671
77672         * modules/ssize_t (License): Change to 'unlimited'.
77673
77674         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77675
77676 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77679         Add comments for each pending glibc patch.
77680
77681 2005-08-15  Bruno Haible  <bruno@clisp.org>
77682
77683         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77684         __cplusplus is defined.
77685
77686 2005-08-14  Jim Meyering  <jim@meyering.net>
77687
77688         Sync from coreutils.
77689
77690         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77691         Use the hash-table-based cycle-detection code not just when
77692         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77693         Reported by James Youngman in
77694         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77695         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77696         FTS_TIGHT_CYCLE_CHECK.
77697         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77698         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77699         once again.
77700         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77701         * lib/fts.c (fd_safer): Remove decl.
77702         Include fcntl--.h rather than unistd-safer.h
77703         (fts_safe_changedir): Don't call fd_safer; no longer needed
77704         now that we include fcntl--.h.
77705
77706 2005-08-12  Simon Josefsson  <jas@extundo.com>
77707
77708         * modules/getndelim2: Use ssize_t module.
77709         * modules/getnline: Likewise.
77710         * modules/safe-read: Likewise.
77711         * modules/xreadlink: Likewise.
77712
77713         * modules/ssize_t: New file.
77714
77715 2005-08-12  Simon Josefsson  <jas@extundo.com>
77716
77717         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77718
77719 2005-08-12  Simon Josefsson  <jas@extundo.com>
77720
77721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77722         ssize_t.
77723
77724 2005-08-12  Simon Josefsson  <jas@extundo.com>
77725
77726         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77727         readline, getdelim and check_version.
77728         (Support for systems lacking ISO C 99: Sizes of integer types):
77729         Add size_max.
77730
77731 2005-08-12  Bruno Haible  <bruno@clisp.org>
77732
77733         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77734
77735 2005-08-11  Simon Josefsson  <jas@extundo.com>
77736
77737         * modules/readline: New file.
77738
77739         * modules/strnlen (Files): Add strnlen.h.
77740
77741 2005-08-11  Simon Josefsson  <jas@extundo.com>
77742
77743         * m4/readline.m4: New file.
77744
77745 2005-08-11  Simon Josefsson  <jas@extundo.com>
77746
77747         * lib/readline.h, readline.c: New file.
77748
77749 2005-08-11  Simon Josefsson  <jas@extundo.com>
77750
77751         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77752         gl_AVOID.
77753
77754 2005-08-11  Bruno Haible  <bruno@clisp.org>
77755
77756         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77757
77758 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77759
77760         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77761
77762 2005-08-10  Simon Josefsson  <jas@extundo.com>
77763
77764         * tests/test-iconvme.c: New file.
77765
77766 2005-08-10  Simon Josefsson  <jas@extundo.com>
77767
77768         * m4/strnlen.m4: New file.
77769
77770         * m4/strndup.m4: Don't check for strnlen declaration, done in
77771         strnlen.m4.
77772
77773 2005-08-10  Simon Josefsson  <jas@extundo.com>
77774
77775         * lib/strndup.c: Use strnlen.h.
77776
77777         * lib/strnlen.h: New file.
77778
77779 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77780
77781         * README: Typos.
77782
77783 2005-08-02  Simon Josefsson  <jas@extundo.com>
77784
77785         * modules/readline: New file.
77786
77787 2005-08-02  Simon Josefsson  <jas@extundo.com>
77788
77789         * modules/getdelim: New file.
77790
77791         * modules/getline: Rewrite, don't use getndelim2.
77792
77793 2005-08-02  Simon Josefsson  <jas@extundo.com>
77794
77795         * m4/getline.m4: Separate out getdelim stuff into separate module.
77796
77797         * m4/getdelim.m4: New file.
77798
77799 2005-08-02  Simon Josefsson  <jas@extundo.com>
77800
77801         * lib/getline.h, getline.c: Rewrite.
77802
77803         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77804
77805 2005-07-31  Bruno Haible  <bruno@clisp.org>
77806
77807         * lib/lock.h (gl_lock_initializer): New macro.
77808         (gl_lock_define_initialized): Use it.
77809         (gl_rwlock_initializer): New macro.
77810         (gl_rwlock_define_initialized): Use it.
77811         (gl_recursive_lock_initializer): New macro.
77812         (gl_recursive_lock_define_initialized): Use it.
77813
77814 2005-07-30  Karl Berry  <karl@gnu.org>
77815
77816         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77817         Report from Ben Pfaff, regarding getopt.
77818
77819 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77820
77821         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77822         normal way.
77823         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77824         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77825         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77826         (gl_GETOPT): Use the new macros.  Most of the implementation
77827         is moved to the new macros.  This is for programs like Emacs
77828         that don't want all the functionality of gl_GETOPT.
77829
77830 2005-07-26  Bruno Haible  <bruno@clisp.org>
77831
77832         * m4/lock.m4: Update from GNU gettext.
77833
77834 2005-07-26  Bruno Haible  <bruno@clisp.org>
77835
77836         * lib/lock.h: Update from GNU gettext.
77837         * lib/lock.c: Update from GNU gettext.
77838
77839 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77842         obsolescent AC_TRY_RUN.  Include the default includes files, for
77843         'exit'.
77844
77845 2005-07-24  Bruno Haible  <bruno@clisp.org>
77846
77847         * modules/visibility: New file.
77848         * MODULES.html.sh (Misc): Add visibility.
77849
77850 2005-07-24  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/visibility.m4: New file.
77853
77854 2005-07-24  Bruno Haible  <bruno@clisp.org>
77855
77856         * doc/visibility.texi: New file.
77857
77858 2005-07-22  Bruno Haible  <bruno@clisp.org>
77859
77860         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77861         $(ALLOCA_H), redundant through BUILT_SOURCES.
77862         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77863         redundant through BUILT_SOURCES.
77864         * modules/byteswap (Makefile.am): Remove explicit dependency on
77865         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77866         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77867         $(FNMATCH_H), redundant through BUILT_SOURCES.
77868         * modules/getopt (Makefile.am): Remove explicit dependency on
77869         $(GETOPT_H), redundant through BUILT_SOURCES.
77870         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77871         redundant through BUILT_SOURCES.
77872         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77873         redundant through BUILT_SOURCES.
77874         * modules/stdbool (Makefile.am): Remove explicit dependency on
77875         $(STDBOOL_H), redundant through BUILT_SOURCES.
77876         * modules/stdint (Makefile.am): Remove explicit dependency on
77877         $(STDINT_H), redundant through BUILT_SOURCES.
77878         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77879         Remove explicit dependency on $(SYSEXITS_H).
77880         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77881
77882 2005-07-18  Simon Josefsson  <jas@extundo.com>
77883
77884         * lib/check-version.c (check_version): Accept identical versions too.
77885
77886 2005-07-18  Bruno Haible  <bruno@clisp.org>
77887
77888         * modules/lock: New file.
77889         * MODULES.html.sh (Multithreading): New section.
77890
77891 2005-07-18  Bruno Haible  <bruno@clisp.org>
77892
77893         * m4/lock.m4: New file, from GNU gettext.
77894
77895 2005-07-18  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/lock.h: New file, from GNU gettext.
77898         * lib/lock.c: New file, from GNU gettext.
77899
77900 2005-07-18  Bruno Haible  <bruno@clisp.org>
77901
77902         * lib/lock.h (gl_once_t): New type.
77903         (gl_once_define, gl_once): New macros.
77904         * lib/lock.c (fresh_once): New variable.
77905         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77906         functions.
77907
77908 2005-07-16  Simon Josefsson  <jas@extundo.com>
77909
77910         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77911         workaround, suggested by Bruno.
77912
77913 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * modules/xalloc (Depends-on): Add xalloc-die.
77916         * modules/xvasprintf (Depends-on): Add xalloc-die.
77917
77918 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77921         with a minor change.
77922
77923 2005-07-15  Bruno Haible  <bruno@clisp.org>
77924
77925         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77926         When using lib/poll.c, define poll as rpl_poll.
77927
77928 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * modules/argp (Depends-on): Remove unlocked-io.
77931
77932 2005-07-14  Derek Price  <derek@ximbiot.com>
77933
77934         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77935         for glob symlink bug.
77936
77937 2005-07-14  Bruno Haible  <bruno@clisp.org>
77938
77939         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77940         Instead, test for *_unlocked function declarations directly.
77941
77942 2005-07-11  Simon Josefsson  <jas@extundo.com>
77943
77944         * modules/size_max: New file.
77945
77946         * modules/xsize: Depend on size_max module for size_max.m4.
77947
77948 2005-07-11  Simon Josefsson  <jas@extundo.com>
77949
77950         * lib/size_max.h: New file.
77951
77952 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77953
77954         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77955         copyright symbol and the year.
77956         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77957         (version_etc_va): Use parameterized copyright notice.
77958         Reword to conform to the current GNU coding standards.
77959
77960 2005-07-11  Karl Berry  <karl@gnu.org>
77961
77962         * doc/gnulib.texi (Quoting): new node.
77963         (Initial import): more info, from Patrice.
77964
77965 2005-07-11  Bruno Haible  <bruno@clisp.org>
77966
77967         * gnulib-tool (func_usage): Document option --avoid.
77968         (Command line options): Handle --avoid.
77969         (func_acceptable): New function.
77970         (func_modules_transitive_closure): Use it.
77971
77972 2005-07-11  Bruno Haible  <bruno@clisp.org>
77973
77974         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77975         Reported by Jim Meyering.
77976
77977 2005-07-10  Bruno Haible  <bruno@clisp.org>
77978
77979         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77980         Needed when size_t is smaller than 'unsigned int'.
77981         Reported by Paul Eggert.
77982
77983 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77984
77985         * modules/argp (Depends-on): Add unlocked-io
77986
77987 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77988
77989         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77990         block of defines.
77991
77992 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77993
77994         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77995         fix now.
77996
77997 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77998         and Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78001         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78002
78003 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * modules/regex (Files): Add lib/regex_internal.c,
78006         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78007         (Depends-on): Add extensions.
78008         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78009
78010 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78013         pathconf.
78014         * m4/same.m4 (gl_SAME): Likewise.
78015         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78016
78017         * m4/regex.m4: Adjust to new libc regex implementation.
78018         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78019         all the .c and .h parts of (the new) regex.
78020         Quote the m4 stuff better.
78021         Check for RE_ICASE bug of old gnulib.
78022         Check for REG_STARTEND of recent libc.
78023         Rename local variables from jm_* to gl_*.
78024         Quote operand of "test -f".
78025         Say "recent enough" version of libc, not "version 2".
78026         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78027         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78028         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78029         Remove check for btowc, isascii.
78030         Require AM_LANGINFO_CODESET.
78031
78032 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         * lib/regex.c, regex.h: Sync from libc.
78035         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78036         * lib/regexec.c:
78037         New files, synced from libc, except that regex_internal.h
78038         currently has a small porting fix.
78039
78040 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78043         regex_internal.c, regexec.c.
78044         Add regex_internal.h too, but as a comment, since the libc version
78045         is currently broken in gnulib mode.
78046
78047 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         Support programs like Emacs that use gnulib but not gettext.
78050         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78051         * modules/gettext-h: New file.
78052         * modules/gettext (Files): Remove lib/gettext.h.
78053         (Depends-on): Add gettext-h.
78054         (Makefile.am): Remove lib_SOURCES.
78055         * modules/argmatch, modules/c-stack, modules/closeout:
78056         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78057         * modules/execute, modules/file-type, modules/getaddrinfo:
78058         * modules/getopt, modules/human, modules/javacomp:
78059         * modules/javaexec, modules/mkdir-p, modules/obstack:
78060         * modules/openat, modules/pagealign_alloc, modules/pipe:
78061         * modules/quotearg, modules/regex, modules/rpmatch:
78062         * modules/unicodeio, modules/userspec, modules/version-etc:
78063         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78064         * modules/xsetenv:
78065         Depend on gettext-h, not gettext.
78066
78067 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * gnulib-tool (func_import): Add support for 'public domain' license.
78070         * modules/alloca, modules/atexit, modules/memmove:
78071         Now public domain, not GPL.
78072         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78073         * modules/realloc, modules/strerror, modules/strtod:
78074         Now LGPL, not GPL.
78075
78076 2005-07-05  Bruno Haible  <bruno@clisp.org>
78077
78078         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78079         autoconf CVS. Needed for mingw.
78080
78081 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         Remove the dependency of the strftime module on the tzset module.
78084         * modules/strftime (Depends-on): Remove dependency on tzset.
78085
78086 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         Remove the dependency of the strftime module on the tzset module.
78089         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78090         gl_FUNC_TZSET_CLOBBER.
78091
78092 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         Remove the dependency of the strftime module on the tzset module.
78095         * lib/strftime.c (my_strftime)
78096         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78097         Copy the input structure, to work around some of the bug with
78098         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78099         Solaris releases, you should also use the tzset module, but we won't
78100         require it as a dependency any more since we don't want LGPLed code
78101         to depend on GPLed code.
78102
78103 2005-07-02  Jim Meyering  <jim@meyering.net>
78104
78105         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78106         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78107         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78108         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78109
78110 2005-07-02  Jim Meyering  <jim@meyering.net>
78111
78112         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78113
78114 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78117         declares only 'struct timespec;' (!).
78118
78119 2005-07-01  Jim Meyering  <jim@meyering.net>
78120
78121         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78122         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78123         * lib/save-cwd.c, tempname.c:
78124         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78125         and don't include <sys/file.h>).
78126
78127 2005-06-29  Jim Meyering  <jim@meyering.net>
78128
78129         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78130         type name.  Use the variable name instead.
78131         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78132         Likewise.
78133
78134 2005-06-28  Simon Josefsson  <jas@extundo.com>
78135
78136         * modules/check-version (Files): Add check-version.m4.
78137
78138 2005-06-28  Simon Josefsson  <jas@extundo.com>
78139
78140         * m4/check-version.m4: New file, suggested by Jim Meyering
78141         <jim@meyering.net>.
78142
78143 2005-06-28  Simon Josefsson  <jas@extundo.com>
78144
78145         * lib/check-version.h, lib/check-version.c: New files.
78146
78147 2005-06-28  Simon Josefsson  <jas@extundo.com>
78148
78149         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78150         collision with global variable.  Better indentation.  Don't
78151         increment buffer pointer beyond buffer end.  Based on comments
78152         from Paul Eggert <eggert@cs.ucla.edu>.
78153
78154         * lib/base64.h: Indent.
78155
78156 2005-06-28  Simon Josefsson  <jas@extundo.com>
78157
78158         * doc/gnulib.texi (Library version handling): New section.
78159
78160 2005-06-28  Jim Meyering  <jim@meyering.net>
78161
78162         * check-module (find_included_lib_files): Hard-code another
78163         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78164         but modules/fts-lgpl (correctly) does not list those files.
78165
78166         * modules/canonicalize (Files): Add lib/pathmax.h.
78167
78168 2005-06-25  Simon Josefsson  <jas@extundo.com>
78169
78170         * modules/check-version: New file.
78171
78172 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78173
78174         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78175         initializer of struct addrinfo, as an indication that we don't
78176         care how many members the structure has.
78177
78178 2005-06-24  Derek Price  <derek@ximbiot.com>
78179         and Bruno Haible  <bruno@clisp.org>
78180
78181         Remove stat module & update lstat.
78182         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78183         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78184         * m4/stat.m4: Remove this file.
78185
78186 2005-06-24  Derek Price  <derek@ximbiot.com>
78187         and Bruno Haible  <bruno@clisp.org>
78188
78189         Remove stat module & update lstat.
78190         * lib/stat.c: Remove this file...
78191         (slash_aware_lstat): ...moving this content and its support...
78192         * lib/lstat.c (rpl_lstat): ...into here.
78193         * lib/lstat.h: New file.
78194
78195 2005-06-24  Derek Price  <derek@ximbiot.com>
78196         and Bruno Haible  <bruno@clisp.org>
78197
78198         Remove stat module & update lstat.
78199         * config/srclist.txt (libc sources): Remove stat.
78200
78201 2005-06-24  Derek Price  <derek@ximbiot.com>
78202         and Bruno Haible  <bruno@clisp.org>
78203
78204         Remove stat module & update lstat.
78205         * MODULES.html.sh (stat): Remove.
78206         * MODULES.html: Regenerated.
78207         * modules/lstat (Description): Correct function name.
78208         (Files): Add "lstat.h".
78209         (Depends-on): Remove stat, add xalloc, stat-macros.
78210         * modules/stat: Remove this file.
78211         (Include): Add "lstat.h", remove <sys/stat.h>.
78212
78213 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78214
78215         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78216         (ranged_convert): Don't save conversion in a temporary struct.
78217         This causes a warning with GCC 4.0.0, and anyway in the typical
78218         case it's not worth the extra 100 bytes or so of code.
78219         (ranged_convert, __mktime_internal): When calling a function via a
78220         pointer P, use P () rather than (*P) (), as we now assume C89 or
78221         better.
78222
78223 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78226         "who -r" failed to give output.  Problem reported by Tim Waugh.
78227
78228         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78229         (xcalloc): Use it to avoid needless tests.
78230         Problem reported by Jim Meyering.
78231
78232 2005-06-20  Derek Price  <derek@ximbiot.com>
78233
78234         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78235         unnecessary for Autoconfs > 2.59c.
78236
78237 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78238
78239         * lib/argp.h (__option_is_short): Check upper limit of
78240         __key. Isprint() requires its argument to have the value
78241         of an unsigned char or EOF.
78242
78243 2005-06-16  Jim Meyering  <jim@meyering.net>
78244
78245         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78246         when either N or S is zero.
78247
78248 2005-06-16  Derek Price  <derek@ximbiot.com>
78249
78250         * m4/bison.m4: Declare YACC & YFLAGS precious.
78251
78252 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78255         multibyte string or pattern, fall back on unibyte matching.
78256         Problem reported by James Youngman.
78257
78258 2005-06-08  Bruno Haible  <bruno@clisp.org>
78259
78260         * modules/csharpcomp: New file.
78261         * MODULES.html.sh (C#): Add csharpcomp.
78262
78263 2005-06-08  Bruno Haible  <bruno@clisp.org>
78264
78265         * m4/csharpcomp.m4: New file, from GNU gettext.
78266
78267 2005-06-08  Bruno Haible  <bruno@clisp.org>
78268
78269         * lib/csharpcomp.h: New file, from GNU gettext.
78270         * lib/csharpcomp.c: New file, from GNU gettext.
78271         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78272
78273 2005-06-08  Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78276         warning on mingw.
78277
78278 2005-06-07  Derek Price  <derek@ximbiot.com>
78279
78280         Sync from CVS.
78281         * lib/glob_.h: Indent nested #ifdef.
78282
78283 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         Sync from coreutils.
78286         Use "file name" when talking about file names, instead of "filename"
78287         or "path", as per the GNU coding standards.
78288         * lib/mkdir-p.c: Renamed from makepath.c.
78289         (make_dir_parents): Renamed from make_path.  All callers changed.
78290         * lib/mkdir-p.h: Likewise.  All includers changed.
78291         * lib/filenamecat.c: Renamed from path-concat.c.
78292         (file_name_concat): Renamed from path_concat.  All callers changed.
78293         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78294         * lib/filenamecat.h: Likewise.  All includers changed.
78295         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78296         in comments or local variable names.
78297         * lib/basename.c: Likewise.
78298         * lib/canonicalize.c, canonicalize.h: Likewise.
78299         * lib/dirname.c, dirname.h: Likewise.
78300         * lib/euidaccess.c: Likewise.
78301         * lib/exclude.c: Likewise
78302         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78303         * lib/fsusage.c, fsuage.h: Likewise.
78304         * lib/fts.c, fts_.h: Likewise.
78305         * lib/getcwd.c: Likewise.
78306         * lib/getloadavg.c: Likewise.
78307         * lib/mkstemp.c: Likewise.
78308         * lib/mountlist.c, mountlist.h: Likewise.
78309         * lib/openat.c, openat.h: Likewise.
78310         * lib/readlink-stub.c: Likewise.
78311         * lib/readutmp.c, readutmp.h: Likewise.
78312         * lib/rename.c: Likewise.
78313         * lib/rmdir.c: Likewise.
78314         * lib/same.c: Likewise.
78315         * lib/savedir.c: Likewise.
78316         * lib/stripslash.c: Likewise.
78317         * lib/tempname.c: Likewise.
78318         * lib/xreadlink.c: Likewise.
78319         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78320         All uses changed.
78321         * lib/exclude.h: Likewise.
78322
78323         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78324         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78325         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78326         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78327         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78328         files have been getting away with it for years (MORE/BSD 4.3
78329         is extinct now).
78330         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78331         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78332
78333         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78334         Define to 256, not 255, as per modern POSIX.
78335
78336 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78337
78338         Sync from coreutils.
78339         Use "file name" when talking about file names, instead of "filename"
78340         or "path", as per the GNU coding standards.
78341         * MODULES.html.sh: mkdir-p renamed from makepath.
78342         filenamecat renamed from path-concat.
78343         * modules/filenamecat: Renamed from modules/path-concat.
78344         (Files): filenamecat.h and filenamecat.c renamed from
78345         path-concat.h and path-concat.c.
78346         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78347         (Include): filenamecat.h, not path-concat.h.
78348         * modules/mkdir-p: Renamed from modules/makepath.
78349         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78350         makepath.c.
78351         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78352         (Include): mkdir-p.h, not makepath.h.
78353
78354 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         Sync from coreutils.
78357         * m4/mkdir-p.m4: Renamed from makepath.m4.
78358         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78359         Rename files from makepath.c to mkdir-p.c, and from
78360         makepath.h to mkdir-p.h.
78361         * m4/filenamecat.m4: Renamed from path-concat.m4.
78362         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78363         Rename files from path-concat.c to filenamecat.c,
78364         and from path-concat.h to filenamecat.h.
78365         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78366         "file name" in local variables or comments.
78367         * m4/rename.m4: Likewise.
78368
78369 2005-06-01  Bruno Haible  <bruno@clisp.org>
78370
78371         * modules/csharpexec: New file.
78372         * MODULES.html.sh (C#): New section.
78373
78374 2005-06-01  Bruno Haible  <bruno@clisp.org>
78375
78376         * m4/csharp.m4: New file, from GNU gettext.
78377         * m4/csharpexec.m4: New file, from GNU gettext.
78378
78379 2005-06-01  Bruno Haible  <bruno@clisp.org>
78380
78381         * lib/csharpexec.h: New file, from GNU gettext.
78382         * lib/csharpexec.c: New file, from GNU gettext.
78383         * lib/csharpexec.sh.in: New file, from GNU gettext.
78384
78385 2005-05-31  Derek Price  <derek@ximbiot.com>
78386             Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         Sync from cvs.
78389         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78390
78391 2005-05-31  Derek Price  <derek@ximbiot.com>
78392             Paul Eggert  <eggert@cs.ucla.edu>
78393
78394         Sync from cvs.
78395         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78396
78397 2005-05-29  Derek Price  <derek@ximbiot.com>
78398
78399         * config/srclist.txt (glob_.h, glob.c): Add these files.
78400
78401 2005-05-29  Derek Price  <derek@ximbiot.com>
78402
78403         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78404         * modules/glob: New file.
78405         * modules/getlogin_r: Add link to POSIX spec in description.
78406
78407 2005-05-29  Derek Price  <derek@ximbiot.com>
78408             Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * m4/glob.m4: New file.
78411
78412 2005-05-29  Derek Price  <derek@ximbiot.com>
78413             Paul Eggert  <eggert@cs.ucla.edu>
78414
78415         * lib/glob_.h, lib/glob.c: New files.
78416
78417 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78420         * modules/fts-lgpl (Depends-on): Remove gettext.
78421
78422 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78425         and don't require gt_INTTYPES_PRI.
78426
78427 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78430
78431         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78432         the configuration hassle isn't worth it.
78433         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78434         (LONGEST_MODIFIER, PRIuMAX): Remove.
78435
78436 2005-05-27  Bruno Haible  <bruno@clisp.org>
78437
78438         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78439
78440 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78443         _POSIX_PTHREAD_SEMANTICS for Solaris.
78444
78445 2005-05-25  Derek Price  <derek@ximbiot.com>
78446
78447         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78448
78449 2005-05-25  Derek Price  <derek@ximbiot.com>
78450             Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78453         * lib/getlogin_r.c, getlogin_r.h: New files.
78454
78455 2005-05-25  Bruno Haible  <bruno@clisp.org>
78456             Derek Price  <derek@ximbiot.com>
78457
78458         * lib/getlogin_r.h: Simplify API documentation.
78459
78460 2005-05-23  Derek Price  <derek@ximbiot.com>
78461
78462         * modules/minmax (Files): Add m4/minmax.m4.
78463         (configure.ac): Add gl_MINMAX.
78464
78465 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78468         so that unistd-safer.h (GPL'ed code) need not be included.
78469
78470 2005-05-22  Bruno Haible  <bruno@clisp.org>
78471
78472         * m4/minmax.m4: New file.
78473         Based on a patch by Derek Price <derek@ximbiot.com>.
78474
78475 2005-05-22  Bruno Haible  <bruno@clisp.org>
78476
78477         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78478         (INT64_MIN): Fix definition.
78479         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78480
78481         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78482         NEED_SIGNED_INT_TYPES.
78483
78484         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78485         HAVE_SYSTEM_INTTYPES.
78486
78487 2005-05-22  Bruno Haible  <bruno@clisp.org>
78488
78489         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78490         Also include <sys/param.h> if it defines MIN, MAX.
78491         Based on a patch by Derek Price <derek@ximbiot.com>.
78492
78493 2005-05-21  Jim Meyering  <jim@meyering.net>
78494
78495         * modules/fts (Files): Add m4/inttypes-pri.m4.
78496         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78497
78498 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         New fts module.
78501         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78502         (setup_dir, free_dir): New functions.
78503         (enter_dir, leave_dir): Define trivial
78504         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78505         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78506         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78507         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78508         Move to fts-cycle.c.
78509         (fts_open): Use setup_dir.
78510         (fts_close): Use free_dir.
78511         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78512         This adds a label and some gotos, but the alternatives were messier.
78513         Check for memory allocation failure when entering a dir.
78514         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78515         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78516         (FTS): New member fts_cycle, that is a union that contains the
78517         old active_dir_ht and cycle_state.  All uses changed to mention
78518         fts_cycle.ht and fts_cycle.state.
78519         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78520         fts.c, with the following changes:
78521         (setup_dir, free_dir): New functions.
78522         (enter_dir): Now returns bool.  Return true if successful, false
78523         if memory exhausted.  All callers changed.
78524         Do not bother partly cleaning up on
78525         memory allocation failure; that is free_dir's job.
78526         However, free ad if hash_insert fails, to avoid memory leak.
78527         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78528         fts->fts_options to see which union member to use.
78529
78530 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78533         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78534
78535 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78538
78539 2005-05-20  Jim Meyering  <jim@meyering.net>
78540
78541         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78542         Now a macro, to pacify GCC.
78543
78544 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78545
78546         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78547         of -1.
78548
78549 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78550
78551         * lib/chown.c (rpl_chown): Return -1 on failure.
78552
78553 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78556         Don't check for stddef.h.
78557         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78558         don't use its results.
78559         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78560         since we include them unconditionally.  Don't require
78561         AM_STDBOOL_H, since stdbool is a prerequisite.
78562         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78563         since we assume C89 or better.
78564         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78565         as we don't use their results.
78566         Don't check for fchdir, memmove, memset, strrchr, as we use
78567         them unconditionally.
78568         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78569         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78570
78571 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78574         Include <stddef.h> unconditionally, since we assume C89 now.
78575         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78576         * lib/fts.c: Include fts_.h first, to check interface.
78577         Do not include intprops.h; no longer needed.
78578         Include cycle-check.h and hash.h, since fts_.h no longer does.
78579         Remove unnecessary casts of closedir to void.
78580         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78581         decide whether to decrement nlinks.
78582         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78583         (FTS): Use struct hash_table * instead of Hash_table, so that
78584         we no longer need to include hash.h here.
78585
78586 2005-05-18  Jim Meyering  <jim@meyering.net>
78587
78588         * modules/dirfd (License): Change to LGPL.  Most of the code
78589         is already in the public domain.
78590
78591 2005-05-18  Jim Meyering  <jim@meyering.net>
78592
78593         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78594         Reported by Yoann Vandoorselaere.
78595
78596 2005-05-17  Jim Meyering  <jim@meyering.net>
78597
78598         * m4/fts.m4: New file, from coreutils.
78599
78600 2005-05-17  Jim Meyering  <jim@meyering.net>
78601
78602         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78603
78604 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         Sync from coreutils.
78607         * m4/unlinkdir.m4: New file.
78608
78609 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         Sync from coreutils.
78612         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78613         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78614         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78615         White space changes only.
78616         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78617         special.
78618         * lib/yesno.c: Include getline.h, not ctype.h.
78619         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78620         Use getline to remove arbitrary restriction on response length.
78621
78622 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         * config/srclist-update: Spell out "Street" in FSF postal
78625         mail address; this is the style the FSF seems to prefer.
78626
78627         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78628         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78629         this updates FSF postal mail address.
78630
78631         Sync from coreutils.
78632         * modules/unlinkdir: New file.
78633         * modules/yesno (Depends-on): Add getline.
78634         * MODULES.html.sh (File system functions): Add unlinkdir.
78635
78636 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78639         lib/strsep.h:
78640         Change the initial comment to refer to GPL, not LGPL.
78641         gnulib-tool will change it to LGPL as needed.
78642
78643         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78644         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78645         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78646         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78647         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78648         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78649         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78650         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78651         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78652         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78653         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78654         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78655         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78656         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78657         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78658         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78659         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78660         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78661         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78662         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78663         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78664         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78665         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78666         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78667         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78668         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78669         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78670         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78671         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78672         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78673         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78674         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78675         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78676         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78677         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78678         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78679         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78680         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78681         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78682         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78683         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78684         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78685         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78686         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78687         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78688         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78689         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78690         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78691         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78692         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78693         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78694         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78695         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78696         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78697         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78698         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78699         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78700         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78701         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78702         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78703         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78704         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78705         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78706         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78707         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78708         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78709         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78710         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78711         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78712         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78713         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78714         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78715         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78716         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78717         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78718         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78719         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78720         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78721         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78722         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78723         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78724         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78725         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78726         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78727         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78728         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78729         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78730         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78731         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78732         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78733         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78734         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78735         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78736         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78737         lib/yesno.c, lib/yesno.h:
78738         Update FSF postal mail address.
78739
78740 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78743         tests/test-memmem.c, tests/test-stpncpy.c:
78744         Update FSF postal mail address.
78745
78746 2005-05-13  Bruno Haible  <bruno@clisp.org>
78747
78748         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78749         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78750         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78751         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78752         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78753         Add support for 64-bit integers in the MSVC compiler.
78754
78755 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78756
78757         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78758
78759 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78760
78761         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78762
78763 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78764
78765         * doc/getdate.texi (General date syntax): Don't say that date
78766         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78767         Problem reported by Nic Ferrier.
78768
78769 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78770
78771         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78772         specified in ai_socktype. Fix invalid ai_protocol
78773         check. ai_protocol is usually set to 0 or depending on
78774         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78775         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78776         ai_socktype / ai_protocol in the returned addrinfo structure.
78777
78778 2005-05-10  Simon Josefsson  <jas@extundo.com>
78779
78780         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78781         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78782
78783 2005-05-10  Karl Berry  <karl@gnu.org>
78784
78785         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78786         (from http://www.gnu.org/licenses).
78787         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78788         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78789         fdl.texi suffices.
78790
78791 2005-05-10  Karl Berry  <karl@gnu.org>
78792
78793         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78794         (COPYING.DOC): remove.
78795
78796         * config/srclist-update: new FSF address.
78797
78798 2005-05-10  Derek Price  <derek@ximbiot.com>
78799
78800         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78801         possible.
78802
78803 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78804             Bruno Haible  <bruno@clisp.org>
78805
78806         * modules/inet_ntop: New file.
78807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78808         inet_ntop.
78809
78810 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78811             Bruno Haible  <bruno@clisp.org>
78812
78813         * m4/inet_ntop.m4: New file.
78814
78815 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78816             Bruno Haible  <bruno@clisp.org>
78817
78818         * lib/inet_ntop.h: New file.
78819         * lib/inet_ntop.c: New file, from glibc with modifications.
78820
78821 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * modules/time_r (License): Change to LGPL.
78824         * modules/extensions (License): Change to LGPL.  Actually,
78825         the license is more permissive than that, but currently gnulib-tool
78826         doesn't know how to handle more-permissive licenses.
78827
78828         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78829         Problem reported by Dave Love.
78830
78831 2005-05-08  Jim Meyering  <jim@meyering.net>
78832
78833         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78834         blank.
78835
78836 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * modules/argmatch (Depends-on): Add stdbool.
78839         * modules/backupfile (Depends-on): Likewise.
78840         * modules/chdir-long (Depends-on): Likewise.
78841         * modules/closeout (Depends-on): Likewise.
78842         * modules/cycle-check (Depends-on): Likewise.
78843         * modules/dirname (Depends-on): Likewise.
78844         * modules/fnmatch (Depends-on): Likewise.
78845         * modules/fsusage (Depends-on): Likewise.
78846         * modules/fwriteerror (Depends-on): Likewise.
78847         * modules/getcwd (Depends-on): Likewise.
78848         * modules/getloadavg (Depends-on): Likewise.
78849         * modules/hard-locale (Depends-on): Likewise.
78850         * modules/makepath (Depends-on): Likewise.
78851         * modules/mountlist (Depends-on): Likewise.
78852         * modules/nanosleep (Depends-on): Likewise.
78853         * modules/posixtm (Depends-on): Likewise.
78854         * modules/quotearg (Depends-on): Likewise.
78855         * modules/readtokens (Depends-on): Likewise.
78856         * modules/readtokens0 (Depends-on): Likewise.
78857         * modules/readutmp (Depends-on): Likewise.
78858         * modules/save-cwd (Depends-on): Likewise.
78859         * modules/strftime (Depends-on): Likewise.
78860         * modules/userspec (Depends-on): Likewise.
78861         * modules/utimecmp (Depends-on): Likewise.
78862         * modules/xgetcwd (Depends-on): Likewise.
78863         * modules/xnanosleep (Depends-on): Likewise.
78864         * modules/xstrtod (Depends-on): Likewise.
78865         * modules/yesno (Depends-on): Likewise.
78866
78867 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78870         needless checks.
78871
78872 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78873
78874         Merge from coreutils.  Among other things,
78875         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78876         * lib/fd-safer.c: New file.
78877         * lib/fcntl-safer.h, open-safer.c: Remove.
78878         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78879         * lib/dup-safer.c: Include unistd-safer.h first.
78880         Don't include errno.h.
78881         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78882         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78883         * lib/file-type.c: Rely on file-type.h change.
78884         * lib/getloadavg.c: Include unistd-safer.h.
78885         (getloadavg): Use safer open.
78886         * lib/getusershell.c: Include "stdio-safer.h".
78887         (getusershell): Use safer fopen.
78888         * lib/long-options.c (long_options): Use NULL rather than 0.
78889         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78890         'free'.
78891         * lib/modechange.c: Likewise.
78892         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78893         (MODE_DONE): New constant.
78894         (struct mode_change): Remove 'next' member.
78895         (make_node_op_equals): New function; like the old one of the
78896         same name, except it allocates an array.
78897         (mode_compile, mode_create_from_ref): Use it.
78898         (mode_compile): Allocate result as an array, not a linked list.
78899         Parse octal string ourself, so that we catch mistakes like "+0".
78900         (mode_adjust): Arg is an array, not a linked list.
78901         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78902         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78903         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78904         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78905         Remove.  This is now stat-macros.h's job.
78906         (talloc): Remove.  All callers replaced by xalloc, so that
78907         our invokers don't have to worry about reporting memory failures.
78908         (make_node_op_equals): Remove.
78909         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78910         New constants.
78911         (struct mode_change): Moved here from modechange.h.
78912         (mode_append_entry): Remove.
78913         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78914         apps to have incorrect behavior.  Use simpler algorithm for head
78915         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78916         Detect more invalid usages rather than having somewhat-random behavior.
78917         Don't insert an "a=" action, as that leads to incorrect behavior.
78918         (mode_compile, mode_create_from_ref): Return NULL on error instead
78919         of an enum, since now there's only one way to have an error.  All
78920         callers changed.
78921         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78922         at the correct time.  Simplify calculation of "+u" and its ilk.
78923         Don't mishandle "+X".
78924         (mode_free): Remove "register" and localize decls.
78925         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78926         (struct mode_change): Move to modechange.c; callers don't
78927         need to see this stuff.
78928         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78929         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78930         (mode_change, mode_adjust): Reflect the new signatures noted above.
78931         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78932         that might redefine system include files.
78933         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78934         (my_usleep): Use NULL rather than (void *) 0.
78935         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78936         Use siginterrupt to specify that system calls should be interrupted.
78937         (rpl_nanosleep): Move initialization of suspended closer to call of
78938         my_usleep.
78939         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78940         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78941         (desirable_utmp_entry): New function.
78942         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78943         using x2nrealloc, to simplify logic.
78944         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78945         size calculation.  Do not assume utmp file is a regular file.
78946         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78947         (READ_UTMP_CHECK_PIDS): New constant.
78948         * lib/save-cwd.c: Include unistd-safer.h.
78949         (save_cwd): Use fd_safer.
78950         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78951         [!_LIBC] Include "stat-macros.h" instead.
78952         * lib/unistd-safer.h (fd_safer): New decl.
78953
78954 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78955
78956         * modules/getloadavg (Depends-on): Add unistd-safer.
78957         * modules/getusershell (Depends-on): Add stdio-safer.
78958         * modules/lstat (Depends-on): Remove xalloc.
78959         * modules/mkstemp (Depends-on): Add stat-macros.
78960         * modules/modechange (Depends-on): Remove xstrtol.
78961         Add stat-macros, xalloc.
78962         * modules/save-cwd (Depends-on): Add unistd-safer.
78963         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78964         * modules/unistd-safer (Files): Add lib/fd-safer.c
78965         (Makefile.am): Remove lib_SOURCES.
78966
78967         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78968         Remove fcntl-safer; unistd-safer supersedes it.
78969
78970 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78973         AC_HEADER_STAT.
78974         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78975         (gl_PREREQ_CHOWN): Remove.
78976         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78977         it.  Don't require AC_HEADER_STAT.
78978         (gl_PREREQ_LSTAT): Remove.
78979         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78980         Don't require AC_HEADER_STAT.
78981         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78982         (gl_PREREQ_RMDIR): Remove.
78983         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78984         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78985         the stat-macros module a prerequisite.
78986         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78987         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78988         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78989         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78990         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78991         variable names.
78992         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78993         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78994         variable prefixes.
78995         * m4/fcntl-safer.m4: Remove.
78996         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78997         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78998         Invoke gl_PREREQ_FD_SAFER.
78999         (gl_PREREQ_FD_SAFER): New macro.
79000         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79001         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79002         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79003         Remove duplicate call to AC_LIBOBJ(readutmp).
79004         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79005
79006         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79007         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79008
79009 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         * MODULES.html.sh (Misc): Add byteswap.
79012
79013 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79014
79015         * modules/getcwd (Depends-on): Add extensions.
79016         * modules/openat (Depends-on): Likewise.
79017
79018 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79019
79020         * modules/byteswap: New file.
79021
79022 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79023
79024         * m4/byteswap.m4: New file.
79025
79026 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79027
79028         * lib/byteswap_.h: New file.
79029
79030 2005-04-25  Karl Berry  <karl@gnu.org>
79031
79032         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79033
79034 2005-04-25  Albert Chin  <china@thewrittenword.com>
79035
79036         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79037         Toolkit C bug.
79038
79039 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79040
79041         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79042         (func_ln_if_changed): Remove forcibly for no error message
79043         in case file does not exist.
79044
79045 2005-04-19  Simon Josefsson  <jas@extundo.com>
79046
79047         * gnulib-tool (Options): Make --symlink mean --symbolic.
79048
79049 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79050
79051         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79052
79053 2005-04-16  Simon Josefsson  <jas@extundo.com>
79054
79055         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79056
79057 2005-04-15  Simon Josefsson  <jas@extundo.com>
79058
79059         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79060
79061 2005-04-15  Simon Josefsson  <jas@extundo.com>
79062
79063         * gnulib-tool: Rename --symlink to --symbolic.
79064
79065 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79066
79067         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79068         symbolic links to files instead of copying/moving.  Add --aux-dir,
79069         specifying directory relative --dir where auxiliary build tools
79070         are placed.
79071
79072 2005-04-14  Bruno Haible  <bruno@clisp.org>
79073
79074         * modules/allocsa (License): Change to LGPL.
79075         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79076
79077 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79080         that "UTC +1 second" continues to work.  Problem reported
79081         by Dmitry V. Levin.
79082         (relunit_snumber): New rule.
79083         (relunit): Use it.
79084
79085 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * lib/getdate.y (universal_time_zone_table): New constant.
79088         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79089         universal_time_zone_table.
79090         (lookup_zone): Prefer universal_time_zone_table to
79091         local_time_zone_table, so that "GMT" time stamps are allowed in
79092         London during the summer.  Problem reported by Ian Abbott.
79093
79094 2005-04-12  Jim Meyering  <jim@meyering.net>
79095
79096         * lib/human.c (humblock): Set *options even when returning due to
79097         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79098         warning from gcc-4.
79099
79100 2005-04-09  Jim Meyering  <jim@meyering.net>
79101
79102         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79103         -Wuninitialized: initialize tm0.tm_year.
79104
79105 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79108         count, since there's no maximum.  All uses changed.
79109         Add member dsts_seen.
79110         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79111         not being INT_MAX.
79112         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79113         Use pc_rels_seen to decide whther a date is absolute.
79114
79115         * lib/getdate.y (number): Don't overwrite year.
79116         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79117         check.
79118
79119 2005-04-02  Simon Josefsson  <jas@extundo.com>
79120
79121         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79122         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79123
79124 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79125
79126         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79127         where no absolute path name can be longer than PATH_MAX.
79128
79129 2005-03-27  Jim Meyering  <jim@meyering.net>
79130
79131         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79132
79133 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79136         "one's complement" -> "ones' complement" in comment, as per Knuth.
79137         "value of type" -> "type or expression" in comment.
79138         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79139
79140 2005-03-26  Jim Meyering  <jim@meyering.net>
79141
79142         Comment nits.
79143         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79144         Correct typos: s/or/of/.
79145
79146 2005-03-26  Jim Meyering  <jim@meyering.net>
79147
79148         * modules/check-include-files: Move to ../ and rename to...
79149         * check-module: ...this.
79150
79151 2005-03-25  Jim Meyering  <jim@meyering.net>
79152
79153         * modules/xvasprintf (Files): Add xalloc.h.
79154
79155 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79156
79157         * modules/gettext (Files): config/config.rpath ->
79158         build-aux/config.rpath
79159         * modules/iconv (Files): Likewise.
79160         Problem reported by Oskar Liljeblad.
79161
79162 2005-03-23  Jim Meyering  <jim@meyering.net>
79163
79164         * modules/check-include-files: New script to check for
79165         missing dependencies, multiple includes, etc.
79166
79167         * modules/c-strtold (Depends-on): Add xalloc.
79168         * modules/c-strtod (Depends-on): Add xalloc.
79169         * modules/hash (Depends-on): Add xalloc.
79170         (Files): Remove lib/xalloc.h.
79171
79172         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79173         * modules/userspec (Files): Add lib/inttostr.h.
79174
79175 2005-03-23  Jim Meyering  <jim@meyering.net>
79176
79177         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79178
79179 2005-03-22  Jim Meyering  <jim@meyering.net>
79180
79181         * modules/stat-macros: New module.
79182         * modules/canonicalize, modules/euidaccess, modules/file-type,
79183         * modules/filemode, modules/lchown, modules/makepath,
79184         * modules/rmdir, modules/stat: Depend on new stat-macros module
79185         rather than listing lib/stat-macros.h manually.
79186         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79187
79188 2005-03-22  Jim Meyering  <jim@meyering.net>
79189
79190         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79191
79192 2005-03-22  Bruno Haible  <bruno@clisp.org>
79193
79194         * config/srclist.txt: Replace target directory 'config' with
79195         'build-aux'.
79196         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79197         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79198         ../build-aux/.
79199
79200 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79201
79202         * modules/chdir-long (Depends-on): Add mempcpy.
79203
79204         * modules/acl, modules/backupfile, modules/c-strtod,
79205         modules/c-strtold, modules/canon-host, modules/canonicalize,
79206         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79207         modules/exclude, modules/exitfail, modules/file-type,
79208         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79209         modules/getdate, modules/getline, modules/getpagesize,
79210         modules/getpass, modules/getugroups, modules/group-member,
79211         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79212         modules/inttostr, modules/long-options, modules/makepath,
79213         modules/md5, modules/memcasecmp, modules/memcoll,
79214         modules/modechange, modules/mountlist, modules/path-concat,
79215         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79216         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79217         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79218         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79219         modules/strftime, modules/strndup, modules/strverscmp,
79220         modules/timespec, modules/unlocked-io, modules/userspec,
79221         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79222         modules/yesno:
79223         Remove lib_SOURCES line from Makefile.am section, as this is now
79224         done automatically by the corresponding Autoconf macro.
79225
79226 2005-03-21  Jim Meyering  <jim@meyering.net>
79227
79228         Changes imported from coreutils.
79229
79230         * lib/cycle-check.c: Don't include xalloc.h.
79231
79232         * lib/path-concat.c: Don't include assert.h.
79233         (path_concat): Remove assertion that would have triggered
79234         for ABASE starting with more than one slash.
79235         Reported by Andreas Schwab.
79236
79237         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79238         properly when ABASE is an absolute file name.
79239         Correct the description of this function.
79240         Include <assert.h>.
79241         Add an assertion and a test driver.
79242         This fixes a bug introduced on 2004-07-02.
79243         Andreas Schwab reported the resulting failure of cp --parents:
79244         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79245
79246 2005-03-21  Jim Meyering  <jim@meyering.net>
79247
79248         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79249         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79250
79251 2005-03-21  Jim Meyering  <jim@meyering.net>
79252         and  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79255         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79256         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79257         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79258         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79259         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79260         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79261         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79262         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79263         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79264         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79265         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79266         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79267         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79268         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79269         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79270         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79271         for these modules.
79272
79273 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79276         (which shouldn't happen), generate nothing instead of returning 0
79277         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79278
79279 2005-03-16  Bruno Haible  <bruno@clisp.org>
79280
79281         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79282         HAVE_LONGLONG_64BIT.
79283
79284 2005-03-16  Bruno Haible  <bruno@clisp.org>
79285
79286         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79287         HAVE_LONGLONG_64BIT.
79288
79289 2005-03-16  Bruno Haible  <bruno@clisp.org>
79290
79291         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79292         HAVE_LONGLONG_64BIT.
79293
79294 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79297         reliably distinguish strftime failure from empty output on POSIX
79298         hosts.
79299
79300 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79303         (iconv_string): Don't guess a size-zero buffer, as that might cause
79304         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79305         result would be 'too large', where 'too large' is (heuristically)
79306         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79307         overflow concerns.  This will prevent some unwanted malloc failures
79308         when the inputs are very large.
79309
79310 2005-03-15  Karl Berry  <karl@gnu.org>
79311
79312         * config/srclist.txt (config.rpath): from gettext.
79313         * config/config.rpath: update.
79314
79315 2005-03-15  Bruno Haible  <bruno@clisp.org>
79316
79317         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79318         to 'negate'.
79319
79320         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79321         variable.
79322
79323         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79324         results.
79325
79326 2005-03-14  Simon Josefsson  <jas@extundo.com>
79327
79328         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79329         <fx@gnu.org>.
79330
79331 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79334         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79335         intprops.h.
79336         * lib/strtol.c: Likewise.
79337
79338 2005-03-14  Jim Meyering  <jim@meyering.net>
79339
79340         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79341         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79342         to be nonzero so that we (and caller) can detect the difference
79343         between a valid zero-length expansion and an error return, even
79344         when the underlying strftime fails before writing anything into
79345         that location.
79346
79347 2005-03-14  Bruno Haible  <bruno@clisp.org>
79348
79349         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79350         Update from GNU gettext 0.14.3.
79351
79352 2005-03-10  Jim Meyering  <jim@meyering.net>
79353
79354         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79355
79356 2005-03-10  Jim Meyering  <jim@meyering.net>
79357
79358         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79359         so that this module works on systems without fchdir.
79360
79361 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         Factor int-properties macros into a single file, except for
79364         glibc-related files.
79365         * lib/intprops.h: New file.
79366         * lib/getloadavg.c: Include it instead of limits.h.
79367         (INT_STRLEN_BOUND): Remove.
79368         * lib/human.c: Include intprops.h.
79369         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79370         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79371         302/1000.
79372         * lib/inttostr.h: Include intprops.h instead of limits.h.
79373         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79374         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79375         for consistency with intprops.h.
79376         (time_t_is_integer, twos_complement_arithmetic): Use them.
79377         * lib/sig2str.h: Include <signal.h>, intprops.h.
79378         (INT_STRLEN_BOUND): Remove.
79379         * lib/strftime.c (TYPE_SIGNED): Remove.
79380         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79381         * lib/strtol.c: Adjust comments to match intprops.h.
79382         * lib/userspec.c: Include intprops.h.
79383         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79384         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79385         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79386         instead of rolling our own expressions.
79387         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79388
79389         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79390         instead of int.
79391         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79392         the right thing even if adding 1900 would overflow.  Similarly
79393         for tm_mon + 1 and tm_yday + 1.
79394         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79395         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79396         (DO_SIGNED_NUMBER): New macro.
79397         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79398
79399 2005-03-07  Bruno Haible  <bruno@clisp.org>
79400
79401         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79402
79403 2005-03-07  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79406
79407 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79408
79409         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79410         (func_import): Only replace files via --import when they have actually
79411         changed.
79412
79413 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79414
79415         * m4/mmap-anon.m4: New file.
79416         * m4/pagealign_alloc.m4: New file.
79417
79418 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79419             Bruno Haible  <bruno@clisp.org>
79420
79421         * modules/pagealign_alloc: New file.
79422         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79423
79424 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79425             Bruno Haible  <bruno@clisp.org>
79426
79427         * lib/pagealign_alloc.h: New file.
79428         * lib/pagealign_alloc.c: New file.
79429
79430 2005-03-03  Bruno Haible  <bruno@clisp.org>
79431
79432         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79433         Use an all-permissive copyright notice, recommended by RMS.
79434
79435 2005-03-02  Bruno Haible  <bruno@clisp.org>
79436
79437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79438         of AIX, the replacement has to be done only after <string.h> is
79439         included, therefore not in config.h. stpncpy.h does the replacement,
79440         and stpncpy.c uses it.
79441
79442 2005-03-02  Bruno Haible  <bruno@clisp.org>
79443
79444         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79445         stpncpy.c uses it.
79446
79447 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79450         The workaround isn't strictly needed for POSIX conformance, and
79451         it's too much of a pain to configure and maintain.  We'll ask
79452         people to fix their kernels instead.
79453         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79454         (NANOSLEEP_BUG_WORKAROUND): Remove.
79455         (xnanosleep): Remove the workaround.
79456
79457 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79460         Reported by Derek Price.
79461         (Include): Add "timespec.h".
79462
79463         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79464
79465 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79468         to detect nanosleep bug.
79469
79470 2005-03-01  Bruno Haible  <bruno@clisp.org>
79471
79472         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79473
79474 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * modules/gethrxtime: New file.
79477         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79478         (Depends-on): Add gethrxtime.
79479         (configure.ac): Add gl_XNANOSLEEP.
79480         (Makefile.am): Remove lib_SOURCES line.
79481
79482 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79485         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79486
79487 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79488
79489         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79490         * lib/timespec.h (gettime): Return void, since it always
79491         succeeds now.  All uses changed.
79492         * lib/gettime.c (gettime): Likewise.
79493         [HAVE_NANOTIME]: Prefer nanotime.
79494         Assume gettimeofday succeeds, as POSIX requires.
79495         Assime time () succeeds, since other code already does.
79496         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79497         (timespec_subtract): Remove.
79498         (NANOSLEEP_BUG_WORKAROUND): New constant.
79499         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79500         things considerably.  Use it only on GNU/Linux hosts, since the
79501         workaround shouldn't be needed elsewhere.
79502
79503 2005-02-24  Bruno Haible  <bruno@clisp.org>
79504
79505         * modules/gettext (Files): Add m4/glibc2.m4.
79506
79507 2005-02-24  Bruno Haible  <bruno@clisp.org>
79508
79509         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79510         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79511         * m4/progtest.m4:
79512         Update from GNU gettext 0.14.2.
79513         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79514
79515 2005-02-24  Bruno Haible  <bruno@clisp.org>
79516
79517         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79518         * lib/config.charset: Update from GNU gettext 0.14.2.
79519
79520 2005-02-24  Bruno Haible  <bruno@clisp.org>
79521
79522         * lib/gettext.h: Update from GNU gettext 0.14.2.
79523
79524 2005-02-23  Simon Josefsson  <jas@extundo.com>
79525
79526         * m4/iconvme.m4: New file.
79527
79528 2005-02-23  Jim Meyering  <jim@meyering.net>
79529
79530         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79531         change.
79532         Thanks to Bruno Haible for catching it.
79533
79534 2005-02-22  Simon Josefsson  <jas@extundo.com>
79535
79536         * modules/iconvme: New file.
79537
79538         * MODULES.html.sh: Add iconvme.
79539
79540 2005-02-22  Simon Josefsson  <jas@extundo.com>
79541
79542         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79543
79544 2005-02-22  Simon Josefsson  <jas@extundo.com>
79545
79546         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79547
79548 2005-02-22  Jim Meyering  <jim@meyering.net>
79549
79550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79551         s/ifndef/ifdef/.
79552
79553 2005-02-20  Neil Conway  <neilc@samurai.com>
79554
79555         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79556         returned by OSX/Darwin if the specified buffer is not large
79557         enough for the hostname.
79558
79559 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79560
79561         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79562         pass it to _help, otherwise the latter coredumps trying to
79563         dereference state.root_argp.
79564
79565 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * modules/chdir-long (Depends-on): Add memrchr.
79568         * modules/memrchr (Files): Add lib/memrchr.h.
79569         (Include): "memrchr.h".
79570
79571 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79574
79575 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * lib/memrchr.h: New file.
79578         * lib/chdir-long.c: Include it.
79579         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79580         Don't bother including stddef.h.
79581
79582 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79585         inclusion.
79586         Include <sys/types.h>, for dev_t.
79587         (ME_DUMMY, ME_REMOTE): Move from here....
79588         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79589         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79590         Dmitry V. Levin.
79591         Include mountlist.h first, to test the interface.
79592
79593 2005-01-29  Bruno Haible  <bruno@clisp.org>
79594
79595         * lib/progname.c (program_name): Initialize.
79596         Needed when linking statically on MacOS X.
79597
79598 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         Sync from coreutils.
79601         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79602         (Depends-on): Add c-strtod.
79603         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79604
79605 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         Sync from coreutils.
79608         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79609
79610         Remove files that are specific to coreutils.
79611         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79612
79613 2005-01-28  Bruno Haible  <bruno@clisp.org>
79614
79615         * modules/javacomp: New file.
79616         * MODULES.html.sh (Java): Add javacomp.
79617
79618 2005-01-28  Bruno Haible  <bruno@clisp.org>
79619
79620         * m4/javacomp.m4: New file, from GNU gettext.
79621
79622 2005-01-28  Bruno Haible  <bruno@clisp.org>
79623
79624         * lib/javacomp.sh.in: New file, from GNU gettext.
79625         * lib/javacomp.h: New file, from GNU gettext.
79626         * lib/javacomp.c: New file, from GNU gettext.
79627
79628 2005-01-26  Simon Josefsson  <jas@extundo.com>
79629
79630         * lib/gai_strerror.c: Use GPL in header.
79631
79632 2005-01-26  Bruno Haible  <bruno@clisp.org>
79633
79634         * modules/javaexec: New file.
79635         * MODULES.html.sh (Java): Add javaexec.
79636
79637 2005-01-26  Bruno Haible  <bruno@clisp.org>
79638
79639         * m4/javaexec.m4: New file, from GNU gettext.
79640
79641 2005-01-26  Bruno Haible  <bruno@clisp.org>
79642
79643         * lib/javaexec.sh.in: New file, from GNU gettext.
79644         * lib/javaexec.h: New file, from GNU gettext.
79645         * lib/javaexec.c: New file, from GNU gettext.
79646
79647 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79648
79649         * modules/lchown (Depends-on): Remove lchown.h
79650
79651 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79652
79653         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79654         must be defined if the header file was not found, in order
79655         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79656
79657 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79658
79659         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79660         initializers for struct pentry_state.
79661         (__argp_error): Check return value of __asprintf
79662         (__argp_failure): Translate error message
79663
79664         * lib/argp-parse.c: Removed braces around the expansion of N_()
79665
79666 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79669         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79670         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79671         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79672         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79673         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79674         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79675         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79676         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79677         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79678         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79679         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79680         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79681         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79682         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79683         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79684         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79685         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79686         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79687         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79688         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79689         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79690         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79691         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79692         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79693         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79694         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79695         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79696         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79697         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79698         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79699         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79700         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79701         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79702         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79703         Use an all-permissive copyright notice, recommended by RMS.
79704
79705 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79706
79707         * modules/chdir-long (Depends-on): Remove mempcpy.
79708
79709 2005-01-21  Jim Meyering  <jim@meyering.net>
79710
79711         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79712         same value as for Solaris 9.
79713
79714         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79715         component length.  This included changing the parameter to be
79716         of type `char *' rather than `char const *'.
79717         * lib/chdir-long.h (chdir_long): Update prototype.
79718
79719         * lib/openat.c (fdopendir, fstatat): New functions.
79720         * lib/openat.h: Include headers required for use of DIR and struct
79721         stat.
79722         [AT_SYMLINK_NOFOLLOW]: Define.
79723         (fdopendir, fstatat): Add prototypes.
79724
79725 2005-01-21  Bruno Haible  <bruno@clisp.org>
79726
79727         * modules/classpath: New file.
79728         * MODULES.html.sh (Java): Add classpath.
79729
79730 2005-01-21  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/classpath.h: New file, from GNU gettext.
79733         * lib/classpath.c: New file, from GNU gettext.
79734
79735 2005-01-20  Simon Josefsson  <jas@extundo.com>
79736
79737         * modules/version-etc-fsf: New file.
79738
79739 2005-01-20  Simon Josefsson  <jas@extundo.com>
79740
79741         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79742         * lib/version-etc.c: Remove version_etc_copyright.
79743         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79744         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79745
79746 2005-01-20  Simon Josefsson  <jas@extundo.com>
79747
79748         * lib/base64.h (isbase64): Add.
79749
79750         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79751         using a unsigned prototype, don't inline.
79752         (base64_decode): Use it.
79753
79754 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79757         it.
79758
79759 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * lib/save-cwd.c (save_cwd): Remove code to support the case
79762         where fchdir is missing or flaky.
79763
79764 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79767
79768 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79771         AC_LIBSOURCES now does this.
79772         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79773         with new ullong_max module.
79774
79775 2005-01-19  Bruno Haible  <bruno@clisp.org>
79776
79777         * modules/sh-quote: New file.
79778         * MODULES.html.sh (Executing programs): Add sh-quote.
79779
79780 2005-01-19  Bruno Haible  <bruno@clisp.org>
79781
79782         * lib/sh-quote.h: New file, from GNU gettext.
79783         * lib/sh-quote.c: New file, from GNU gettext.
79784
79785 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         Merge from coreutils.
79788         * m4/ullong_max.m4: New file.
79789         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79790         (gl_MACROS): Assume localeconv exists.
79791
79792 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         Merge changes from coreutils, as described below in several
79795         changelogs dated today.
79796
79797         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79798         (O_DIRECTORY): Remove; not needed here, since "." must be
79799         a directory.  All uses removed.
79800         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79801         universal on Suns, and we also need to test for IRIX.
79802         Revamp code to use 'if' rather than '#if'.
79803         Avoid unnecessary comparison of cwd->desc to 0.
79804
79805         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79806         for known valid error numbers rather than observed invalid ones.
79807
79808 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         * modules/ullong_max: New file.
79811
79812         * modules/chdir-long, modules/openat: New files.
79813         * modules/save-cwd (Depends-on): Depend on chdir-long.
79814         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79815
79816 2005-01-18  Jim Meyering  <jim@meyering.net>
79817
79818         Merge from coreutils.
79819         * m4/chdir-long.m4, m4/openat.m4: New files.
79820         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79821         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79822         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79823         is sane and DOES follow symlinks.  Besides, testing 20 different
79824         systems found no broken chown implementations.
79825         Prompted by a change in rsync's copy of this macro.
79826         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79827
79828         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79829
79830         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79831         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79832         NULL-means-set-to-current-time semantics.
79833         Remove temporary file immediately, rather than waiting
79834         for configure's at-exit trap code to do it.
79835
79836 2005-01-18  Jim Meyering  <jim@meyering.net>
79837
79838         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79839
79840         * lib/utimens.c (futimens): Account for the fact that futimes
79841         can also fail with errno == ENOSYS or errno == ENOENT.
79842         Patch from Dmitry V. Levin.
79843
79844         Change the name of the robust chdir function from chdir to chdir_long.
79845         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79846         (restore_cwd): Use chdir_long, not chdir.
79847         * lib/chdir-long.c: Renamed from chdir.c.
79848         * lib/chdir-long.h: Renamed from chdir.h.
79849         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79850         Hurd.
79851
79852 2005-01-18  Bruno Haible  <bruno@clisp.org>
79853
79854         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79855         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79856         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79857         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79858         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79859         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79860         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79861         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79862         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79863         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79864         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79865         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79866         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79867         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79868         Use an all-permissive copyright notice, recommended by RMS.
79869
79870 2005-01-18  Bob Proulx  <bob@proulx.com>
79871
79872         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79873         simplify offsetof() macro construct to avoid compile failure with
79874         native HP-UX 11.0 ANSI C compiler.
79875
79876 2005-01-17  Bruno Haible  <bruno@clisp.org>
79877
79878         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79879         redundant because stpncpy.m4 takes care of it.
79880
79881 2005-01-17  Bruno Haible  <bruno@clisp.org>
79882
79883         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79884
79885 2005-01-17  Bruno Haible  <bruno@clisp.org>
79886
79887         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79888         used.
79889
79890 2005-01-17  Bruno Haible  <bruno@clisp.org>
79891
79892         * lib/fwriteerror.h (fwriteerror): Change specification to include
79893         fclose.
79894         * lib/fwriteerror.c: Include <stdbool.h>.
79895         (fwriteerror): At the end, close the file stream. Record whether
79896         stdout was already closed.
79897
79898 2005-01-17  Bruno Haible  <bruno@clisp.org>
79899
79900         * lib/execute.c (environ): Declare if needed.
79901         * lib/pipe.c (environ): Likewise.
79902         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79903
79904 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79905
79906         * modules/argp: Depend on vsnprintf
79907
79908 2005-01-10  Jim Meyering  <jim@meyering.net>
79909
79910         * modules/closeout (Depends-on): Add atexit.
79911
79912 2005-01-06  Bruno Haible  <bruno@clisp.org>
79913
79914         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79915
79916 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79919         definitions to be after all include files, to avoid collisions.
79920         Problem reported by Bob Proulx.
79921
79922 2005-01-04  Jim Meyering  <jim@meyering.net>
79923
79924         Changes imported from coreutils.
79925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79926         as the mkstemp template, use a temporary directory and an
79927         8.3-friendly template to avoid trouble on systems like DJGPP.
79928         Reported by Juan M. Guerrero via Stepan Kasal.
79929         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79930         close. Remove the temporary directory right away, rather than waiting
79931         for configure's at-exit trap code to do it.
79932         Suggestion from Stepan Kasal.
79933
79934 2005-01-01  Simon Josefsson  <jas@extundo.com>
79935
79936         * gnulib-tool: Print #include directives when --import'ing.
79937
79938 2004-12-28  Simon Josefsson  <jas@extundo.com>
79939
79940         * tests/test-base64.c: Include required header files.  Remove
79941         unused variables.
79942
79943 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79944
79945         * modules/error (Depends-on): Remove gettext.
79946
79947 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79950         not needed.  This removes a dependency on the gettext module.
79951         [defined _LIBC]: Do not include <libintl.h>; not needed.
79952
79953 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79956         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79957
79958 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79959
79960         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79961         HAVE_DECL_STRTOLD.
79962
79963 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79964
79965         * modules/getdate (Depends-on): Remove alloca-opt.
79966
79967 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79970
79971 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79972
79973         * lib/argp-parse.c: Include <stddef.h>.
79974         (alignof, alignto): New macros.
79975         (parser_init): Don't assume that void * is aligned sufficiently
79976         for struct option.
79977
79978         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79979         need to extend the stack.
79980         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79981         large.
79982
79983 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79984
79985         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79986
79987 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79990         (2004-10-24) change.  Apparently this was a false alarm.
79991
79992         * modules/getdate: Depend on alloca-opt, not alloca.
79993
79994 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79995
79996         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79997         Remove now-obsolete comment about AIX.
79998         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79999         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80000         (YYMAXDEPTH): New macro.
80001
80002 2004-12-18  Simon Josefsson  <jas@extundo.com>
80003
80004         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80005
80006 2004-12-18  Bruno Haible  <bruno@clisp.org>
80007
80008         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80009
80010 2004-12-18  Bruno Haible  <bruno@clisp.org>
80011
80012         * lib/fatal-signal.c (fatal_signals): Make non-const.
80013         (init_fatal_signals): New function.
80014         (uninstall_handlers, install_handlers): Ignore signals that were set to
80015         SIG_IGN.
80016         (at_fatal_signal): Call init_fatal_signals.
80017         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80018         SIG_IGN.
80019         Reported by Paul Eggert.
80020
80021 2004-12-18  Bruno Haible  <bruno@clisp.org>
80022
80023         * doc/alloca.texi: New file.
80024         * doc/alloca-opt.texi: New file.
80025
80026 2004-12-17  Jim Meyering  <jim@meyering.net>
80027
80028         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80029         Otherwise, install-sh could exit with improper exit status when
80030         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80031
80032 2004-12-16  Simon Josefsson  <jas@extundo.com>
80033
80034         * tests/test-base64.c: Add license.
80035
80036 2004-12-15  Stepan Kasal  <address@hidden>
80037
80038         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80039
80040 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * modules/getcwd (Files): Add m4/d-ino.m4.
80043         Suggested by Mark D. Baushke.
80044
80045 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * lib/getdate.y (textint): New member "negative".
80048         (time_zone_hhmm): New function.
80049         Expect 14 shift-reduce conflicts, not 13.
80050         (o_colon_minutes): New rule.
80051         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80052         (yylex): Set the "negative" member of signed numbers.
80053
80054 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * doc/getdate.texi (Time of day items, Time zone items):
80057         Describe new formats +00:00, UTC+00:00.
80058
80059 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80062         spurious "-l"s.  Problem reported by Stepan Kasal.
80063
80064 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80067         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80068
80069 2004-12-04  Simon Josefsson  <jas@extundo.com>
80070
80071         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80072         Vandoorselaere <yoann@prelude-ids.org>.
80073
80074 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         Changes imported from coreutils.
80077         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80078         exist.
80079         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80080
80081 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         Changes imported from coreutils.
80084         * lib/hard-locale.c: Assume <locale.h> exists.
80085         Include "strdup.h".
80086         (GLIBC_VERSION): New macro.
80087         (hard_locale): Assume setlocale exists.
80088         Rewrite to avoid #ifdef.
80089         Use strdup rather than malloc + strcpy.
80090         * lib/human.c: Assume <locale.h> exists.
80091         (human_readable): Assume localeconv exists.
80092
80093 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * modules/hard-locale (Depends-on): Add strdup.
80096
80097 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80098
80099         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80100         convert T2, not T.  (Imported from libc.)
80101
80102 2004-11-30  Simon Josefsson  <jas@extundo.com>
80103
80104         * modules/restrict (License): Change to LGPL.
80105
80106 2004-11-30  Simon Josefsson  <jas@extundo.com>
80107
80108         * m4/restrict.m4: Add copyright and copying conditions.
80109
80110 2004-11-30  Simon Josefsson  <jas@extundo.com>
80111
80112         * m4/base64.m4: New file.
80113
80114 2004-11-30  Simon Josefsson  <jas@extundo.com>
80115
80116         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80117         base64.
80118
80119         * tests/test-base64.c: New file.
80120
80121         * modules/base64: New file.
80122
80123 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80126         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80127
80128         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80129
80130 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80133         (__getcwd.c): Don't restore errno; glibc doesn't.
80134         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80135         first, falling back to our code only if its results look suspicious.
80136         Ensure that the resulting buffer is only as large as necessary.
80137
80138         * lib/readutmp.c: Include readutmp.h first.
80139         Include <errno.h>, since readutmp.h no longer does that.
80140         * lib/readutmp.h: Don't include <errno.h>,
80141         <sys/param.h>, <time.h>; not needed to establish interface.
80142         (errno): Remove decl.
80143         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80144         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80145         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80146
80147 2004-11-28  Simon Josefsson  <jas@extundo.com>
80148
80149         * lib/base64.h, base64.c: New file.
80150
80151 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80154
80155 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80156
80157         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80158         (Depends-on): Remove pathmax, same.  Add mempcpy.
80159         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80160         (Makefile.am): Append getcwd.h to lib_SOURCES.
80161         (Include): Add getcwd.h.
80162         (Maintainer): Change from Jim Meyering to "all, glibc",
80163         since getdate now uses intended-for-glibc code.
80164         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80165         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80166
80167 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80170         HP's ANSI C compiler.
80171         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80172         Declaring int functions causes warnings on some modern systems and
80173         shouldn't be needed to compile on ancient ones.
80174         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80175         defined.
80176
80177         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80178         with the following changes.
80179         (__set_errno): Parenthesize properly.
80180         Include <stdbool.h>.
80181         (MIN, MAX, MATCHING_INO): New macros.
80182         (__getcwd): Define with prototype, not K&R form.
80183         Use heuristics to allocate default buffer on stack if possible.
80184         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80185         behavior, and to avoid the PATH_MAX limit when computing
80186         ../../../../...
80187         Use MATCHING_INO to compare inode number to file.
80188         Check for arithmetic overflow in size calculations.
80189         Fix bug in reallocation of dot array that caused getcwd to fail
80190         on directories nested deeper than 75.
80191         Be more careful about saving errno on error.
80192         Do not use realloc; use only free+malloc, as this is a bit
80193         more flexible and avoids a needless copy operation.
80194         Do not inspect st_dev and st_ino for symbolic links; POSIX
80195         doesn't specify the latter.
80196         Check for closedir errors.
80197         Avoid needless casts.
80198         Use "#ifdef weak_alias" around weak_alias, to be like other
80199         glibc code.
80200         The following changes to getcwd.c have effect only when used in
80201         gnulib; they have no effect inside glibc proper.
80202         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80203         as alloca isn't used.
80204         (alloca, __alloca): Likewise.
80205         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80206         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80207         unconditionally, as gnulib assumes C89 or better.
80208         Do not include <sys/param.h>.
80209         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80210         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80211         better.
80212         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80213         Include <dirent.h> in a way that is compatible with modern Autoconf.
80214         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80215         New macros, if not already defined.
80216         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80217         Use "_LIBC", not "defined _LIBC", for consistency.
80218         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80219         a mempcpy module.
80220         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80221         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80222         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80223         credit only to Jim Meyering and adjust the copyright dates.
80224         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80225         <stdlib.h>, <unistd.h>, "pathmax.h".
80226         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80227         (INITIAL_BUFFER_SIZE): Remove.
80228         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80229
80230 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80231
80232         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80233         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80234         Use the _ONCE methods, for efficiency.
80235         Check for fcntl.h.  In test program, include <errno.h>
80236         and <fcntl.h> if available.  Remove old K&R cruft from
80237         test program.  Check for common errors in GNU/Linux,
80238         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80239         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80240         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80241         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80242         name accordingly.
80243         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80244         accommodate new getcwd.c.
80245         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80246         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80247         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80248         that's all we need now.
80249
80250 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80251
80252         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80253         argp-parse.c depends on getopt internals, that means we should
80254         always use our getopt, to be on the safe side.
80255         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80256         order not to spoil the result of an eventual previous invocation
80257         of gl_GETOPT_SUBSTITUTE.
80258
80259 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80260
80261         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80262         redefinition warnings. To avoid them, include the defines
80263         in `#if !defined __need_getopt ... #endif'. The only place
80264         where __getopt_argv_const is used is in definitions
80265         of getopt_long and getopt_long_only below, which are as well
80266         protected by `#ifndef __need_getopt'.
80267         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80268         __need_getopt after including <stdio.h> and <unistd.h> These
80269         headers might have defined it.
80270
80271 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80274
80275 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80276
80277         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80278         (futimens): New function, which uses futimes if available.
80279         (futimens, utimens): Support timespec==NULL, with same semantics
80280         as utime and utimens.
80281         * lib/utimens.h (futimens): New decl.
80282
80283 2004-11-23  Jim Meyering  <jim@meyering.net>
80284
80285         * lib/getopt_.h: Remove trailing blanks.
80286
80287 2004-11-23  Jim Meyering  <jim@meyering.net>
80288
80289         * lib/__fpending.c: Add comment.
80290
80291 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80292
80293         * modules/canonicalize (Depends-on): Add xreadlink.
80294         Problem reported by James Youngman.
80295
80296 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80299         New macros.
80300         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80301         optopt): Use them instead of invoking ## directly; otherwise, the
80302         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80303
80304 2004-11-19  Bruno Haible  <bruno@clisp.org>
80305
80306         * lib/strtok_r.c: Move comments from here...
80307         * lib/strtok_r.h: ... to here.
80308
80309 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80312         implementations that mishandle size_t overflow.
80313
80314 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80317         might fail.  Problem reported by Yoann Vandoorselaere.
80318         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80319         implementations that mishandle size_t overflow.
80320
80321 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80322
80323         * modules/canon-host (Depends-on): Add strdup.
80324
80325 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80328
80329 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         * lib/canon-host.c: Include "strdup.h".
80332         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80333         Use strdup instead of malloc/strcpy to duplicate strings.
80334
80335         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80336         (human_space_before_unit): New constant.
80337         * lib/human.c (human_readable): Support it.
80338
80339         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80340         (xgetcwd): Set errno correctly when failing.
80341         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80342         the failure is actually due to a PATH_MAX problem.
80343
80344         Further getopt changes to make it more likely that glibc will
80345         buy the changes back.
80346         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80347         (getopt): Use it, so to preserve glibc semantic
80348         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80349         when compiling for libc.
80350         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80351         (getopt_long, getopt_long_only): Use it.
80352
80353         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80354         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80355         (getopt): Argv is now char * const *, as per standard.
80356         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80357         not char *__getopt_argv_const *.
80358         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80359         _getopt_long_only_r): Likewise.
80360         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80361         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80362         _getopt_long_r, _getopt_long_only_r): Likewise.
80363         * lib/getopt_.h (__getopt_argv_const): Remove.
80364         (getopt): Argv is now char * const *, as per standard.
80365
80366         * lib/getdate.y (tORDINAL): New token.
80367         (day, relunit): Allow it for relative times.
80368         (relative_time_table): Use tORDINAL for ordinals.
80369
80370 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80373         Document that "second" isn't allowed as an ordinal number.
80374
80375 2004-11-16  Jim Meyering  <jim@meyering.net>
80376
80377         * modules/closeout (Depends-on): Add fpending.
80378
80379 2004-11-15  Jim Meyering  <jim@meyering.net>
80380
80381         * lib/closeout.c: Include "__fpending.h" once again.
80382         Include <stdbool.h>.
80383         (close_stdout): Don't fail just because stdout was closed initially,
80384         since some programs don't write to stdout in the normal course of
80385         operation (other than --version and --help), and we don't want this
80386         function to make e.g. `touch file >&-' fail.
80387         But do fail if it was closed and someone has tried to write to it.
80388         E.g., `printf foo >&-' must fail.
80389
80390 2004-11-13  Jim Meyering  <jim@meyering.net>
80391
80392         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80393
80394 2004-11-12  Simon Josefsson  <jas@extundo.com>
80395
80396         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80397         small doc fix is still pending.
80398
80399 2004-11-11  Simon Josefsson  <jas@extundo.com>
80400
80401         * modules/strtok_r: New file.
80402
80403         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80404         strtok_r.
80405
80406 2004-11-11  Simon Josefsson  <jas@extundo.com>
80407
80408         * m4/strtok_r.m4: New file.
80409
80410         * m4/getopt.m4: Replace opterr.
80411
80412 2004-11-11  Simon Josefsson  <jas@extundo.com>
80413
80414         * lib/strtok_r.h, strtok_r.c: New file.
80415
80416 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80419         of replacing opterr, getopt, etc.  This should handle the
80420         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80421
80422 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80425         we can stop lying to compilers about the constness of argv when we
80426         are compiled outside glibc.
80427         (getopt, getopt_long, getopt_long_only): Use it.
80428         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80429         _getopt_internal, getopt): Likewise.
80430         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80431         _getopt_long_only_r): Likewise.
80432         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80433         _getopt_long_r, _getopt_long_only_r): Likewise.
80434
80435         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80436         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80437         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80438         the other external symbols.
80439         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80440         declaration, since the above renaming now works around collisions.
80441
80442 2004-11-11  Jim Meyering  <jim@meyering.net>
80443
80444         * lib/linebreak.c: Remove trailing blanks.
80445         * lib/alloca_.h: Likewise.
80446         * lib/acosl.c: Likewise.
80447         * lib/euidaccess.c: Likewise.
80448         * lib/allocsa.h: Likewise.
80449
80450 2004-11-10  Simon Josefsson  <jas@extundo.com>
80451
80452         * m4/getaddrinfo.m4: New file.
80453
80454 2004-11-10  Simon Josefsson  <jas@extundo.com>
80455
80456         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80457
80458 2004-11-10  Simon Josefsson  <jas@extundo.com>
80459
80460         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80461         getaddrinfo.
80462
80463         * modules/getaddrinfo: New file.
80464
80465 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80468
80469 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * lib/mktime.c (SHR): New macro, which is a portable
80472         substitute for >> that should work even on Crays.
80473         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80474         Problem reported by Mark D. Baushke in
80475         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80476         * lib/getdate.y (SHR): Likewise.
80477         (tm_diff): Use it.
80478         * lib/strftime.c (SHR): Likewise.
80479         (tm_diff): Use it.
80480         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80481         quote_these_too, so that right shifts are well defined.  All uses
80482         changed.
80483
80484 2004-11-10  Jim Meyering  <jim@meyering.net>
80485
80486         Ensure that no close failure goes unreported.
80487         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80488         return early when it seems there's nothing to flush.
80489         Don't include __fpending.h.
80490
80491 2004-11-10  Jim Meyering  <jim@meyering.net>
80492
80493         * modules/closeout (Depends-on): Remove fpending.
80494
80495 2004-11-10  Jim Meyering  <jim@meyering.net>
80496
80497         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80498
80499 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80502         gl_FUNC_STRFTIME.
80503         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80504         and AC_REQUIRE when possible, to avoid duplicate checks.
80505         Check for <wchar.h>.
80506
80507 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80510
80511 2004-11-09  Bruno Haible  <bruno@clisp.org>
80512
80513         * m4/sockpfaf.m4: New file.
80514
80515 2004-11-05  Bruno Haible  <bruno@clisp.org>
80516
80517         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80518         Reported by Mark D. Baushke <mdb@cvshome.org>.
80519
80520 2004-11-04  Bruno Haible  <bruno@clisp.org>
80521
80522         2004-09-11  Bruno Haible  <bruno@clisp.org>
80523                 * allocsa.valgrind: New file.
80524         2004-02-06  Bruno Haible  <bruno@clisp.org>
80525                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80526                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80527                 Reported by Christopher Seip <chris.seip@hp.com>.
80528
80529 2004-11-04  Bruno Haible  <bruno@clisp.org>
80530
80531         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80532         (Makefile.am): Distribute it.
80533
80534 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80537         with errno == ERANGE if the buffer is too small.
80538         Problem reported by Mark D. Baushke.
80539
80540 2004-11-03  Albert Chin  <china@thewrittenword.com>
80541             Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80544         equivalent, substitute $ac_type for equivalent type rather than
80545         blindly using uint32_t *always* which won't work if uint32_t is not
80546         available.  Define _UINT32_T to work around typedef of uint32_t if
80547         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80548         2.5.1.
80549
80550 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80551
80552         * m4/jm-macros.m4: Sync from coreutils.
80553         (gl_MACROS): Check for mbrlen, for pathchk.
80554         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80555
80556 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         * lib/xreadlink.c (MAXSIZE): New macro.
80559         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80560         size does not exceed MAXSIZE.  Avoid cast.
80561         As suggested by Mark D. Baushke in
80562         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80563         if readlink fails with buffer size just under MAXSIZE, try again
80564         with MAXSIZE.
80565
80566 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80567
80568         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80569
80570 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80571         and  Paul Eggert  <eggert@cs.ucla.edu>
80572
80573         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80574         (get_date): Overparenthesize to avoid GCC warning.
80575
80576 2004-11-02  Bruno Haible  <bruno@clisp.org>
80577
80578         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80579         returns void.
80580
80581 2004-11-02  Bruno Haible  <bruno@clisp.org>
80582
80583         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80584         function returns void.
80585
80586 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80587
80588         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80589         fflush_unlocked, flockfile, funlockfile, funlockfile,
80590         fputs_unlocked, putc_unlocked.
80591
80592 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80595         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80596         already declared.
80597
80598 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * modules/getdate (Files): Add doc/getdate.texi.
80601         (Depends-on): Add setenv, xalloc.
80602
80603 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * lib/getdate.y: Add support for TZ="foo" within a date string.
80606         Fix some bugs near time_t boundaries.  Reject dates with
80607         out-of-range components, e.g., "Sept 31".
80608         Include <stdlib.h>, "setenv.h", "xalloc.h".
80609         (ISDIGIT_LOCALE): Remove; unused.
80610         Note that the TZ and time functions used here are not reentrant.
80611         (mktime_ok, get_tz): New functions.
80612         (TZBUFSIZE): New constant.
80613         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80614         This requires that we sometimes generate our own TZ="XXX..." setting.
80615
80616 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         * doc/getdate.texi: New file, from coreutils with modifications for
80619         the new TZ parsing.
80620
80621 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80622
80623         * lib/mktime.c (not_equal_tm): Remove redundant check.
80624
80625 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         * modules/regex (lib_SOURCES): Add regex.c.
80628         Reported by James Youngman in
80629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80630
80631 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * lib/getdate.y: Use Bison 1.875 features, and some minor
80634         code cleanups.  This change does not affect semantics.
80635         Don't include <stdlib.h>; no longer needed.
80636         Don't include unlocked-io.h; only the "#if TEST" code uses
80637         stdio, and performance isn't crucial there.
80638         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80639         Bison 1.875 features as described below.
80640         All uses of "PC." replaced by "pc->".
80641         (YYSTYPE): Add a forward declaration.
80642         (yylex, yyerror): Use full prototypes in forward decls.
80643         Use "%pure-parser" rather than obsolescent "%pure_parser".
80644         Use %parse-param and %lex-param instead of obsolescent
80645         YYPARSE_PARAM and YYLEX_PARAM.
80646         (meridian_table, month_and_day_table, time_units_table,
80647         relative_time_table, time_zone_table, military_table,
80648         lookup_zone, lookup_word, get_date):
80649         Use NULL instead of 0 where appropriate.
80650         (to_hour): Avoid abort (), to avoid a dependency on
80651         stdlib.h.
80652         (yyerror, yylex): Now accepts parser_control * arg.
80653         (main) [TEST]: Use '\0' rather than 0 for char.
80654
80655 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80656
80657         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80658
80659 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80660
80661         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80662         It's now the caller's responsibility to handle the case where
80663         !HAVE_GETPAGESIZE && !defined getpagesize.
80664
80665         * lib/mktime.c (leapyear): Arg is long int, not int.
80666
80667 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80668
80669         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80670
80671 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80672
80673         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80674         missing.  Problem reported by James Youngman.
80675
80676 2004-10-16  Simon Josefsson  <jas@extundo.com>
80677
80678         * gnulib-tool: Fix comments.  Fix parse problem.
80679         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80680
80681 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80682
80683         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80684         implementation of getopt_long.  Problem reported by Alexander Taler in:
80685         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80686
80687 2004-10-15  Bruno Haible  <bruno@clisp.org>
80688
80689         * gnulib-tool: Untabify. Initialize supplied_libname.
80690         (func_usage): More homogenous output.
80691         (func_modules_transitive_closure, func_modules_to_filelist,
80692         func_emit_lib_Makefile_am): New functions.
80693         (func_import): New function, extracted from big case statement. Use
80694         func_get_license, func_modules_transitive_closure,
80695         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80696         opt_lgpl. Don't use test -a, as it's not portable.
80697         (func_create_testdir): Use func_modules_transitive_closure,
80698         func_modules_to_filelist, func_emit_lib_Makefile_am.
80699
80700 2004-10-15  Bruno Haible  <bruno@clisp.org>
80701
80702         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80703
80704 2004-10-15  Bruno Haible  <bruno@clisp.org>
80705
80706         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80707         the portions belonging to each module.
80708         Suggested by Derek Robert Price <derek@ximbiot.com>.
80709
80710 2004-10-12  Simon Josefsson  <jas@extundo.com>
80711
80712         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80713         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80714         to real functions.
80715
80716 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80717
80718         * modules/vsnprintf: New file.
80719
80720 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80721
80722         * m4/vsnprintf.m4: New file.
80723
80724 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80725
80726         * lib/vsnprintf.h: New file.
80727         * lib/vsnprintf.c: New file.
80728
80729 2004-10-11  Bruno Haible  <bruno@clisp.org>
80730
80731         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80732         vsnprintf.
80733
80734 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80737
80738 2004-10-07  Bruno Haible  <bruno@clisp.org>
80739
80740         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80741         fits into the provided buffer.
80742
80743 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * lib/diacrit.c, diacrit.h: Add GPL notice.
80746
80747         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80748         notice.
80749         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80750         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80751         This avoids a potential constant-folding bug.
80752
80753 2004-10-05  Bruno Haible  <bruno@clisp.org>
80754
80755         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80756         for the declaration of strsep.
80757
80758 2004-10-05  Bruno Haible  <bruno@clisp.org>
80759
80760         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80761
80762 2004-10-04  Simon Josefsson  <jas@extundo.com>
80763
80764         * modules/memmem: New file.
80765         * tests/test-memmem.c: New file.
80766         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80767
80768 2004-10-04  Simon Josefsson  <jas@extundo.com>
80769
80770         * m4/memmem.m4: New file.
80771
80772 2004-10-04  Simon Josefsson  <jas@extundo.com>
80773
80774         * lib/memmem.h: New file.
80775         * lib/memmem.c: New file, taken from glibc.
80776
80777 2004-10-04  Simon Josefsson  <jas@extundo.com>
80778
80779         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80780         '#ifdef USE_UNLOCKED_IO'.
80781
80782 2004-10-04  Simon Josefsson  <jas@extundo.com>
80783
80784         * config/srclist.txt: Add memmem from glibc.
80785
80786 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80789
80790         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80791         modules/exclude, modules/getdate, modules/getline,
80792         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80793         modules/getusershell, modules/linebuffer, modules/md5,
80794         modules/mountlist, modules/posixtm, modules/readtokens,
80795         modules/readutmp, modules/regex, modules/sha1,
80796         modules/version-etc, modules/yesno:
80797         Remove dependency on unlocked-io.
80798
80799 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80800
80801         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80802
80803         * m4/unlocked-io.m4: Add copyright notice.
80804         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80805
80806 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80809         * lib/xmalloc.c (xmemdup): Likewise.
80810         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80811         XFREE): Remove these long-obsolescent macros.
80812         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80813         * lib/xstrdup.c: Remove.
80814
80815         * lib/regex.c (re_comp): Cast gettext return value to char *,
80816         Problem reported by Martin Neitzel via Mark D. Baushke.
80817
80818 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80821         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80822         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80823         regex.c, sha1.c, version-etc.c, yesno.c:
80824         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80825         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80826         the includer's responsibility.
80827
80828         Sync from coreutils.
80829
80830         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80831         points to the start of a string, as the C Standard says the
80832         resulting behavior is undefined.
80833
80834         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80835         simple -> simple_backups, numbered_existing ->
80836         numbered_existing_backups, numbered -> numbered_backups
80837         to avoid shadowing problems.  All uses changed.
80838         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80839         * lib/backupfile.c (check_extension, numbered_backup):
80840         Rename locals to avoid shadowing 'basename'.
80841         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80842         once.
80843
80844         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80845         * lib/.cvsignore: Add getopt.h.
80846
80847 2004-10-04  Bruno Haible  <bruno@clisp.org>
80848
80849         * modules/README: New file.
80850         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80851         not a module.
80852
80853 2004-10-02  Jim Meyering  <jim@meyering.net>
80854
80855         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80856
80857 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80858
80859         * modules/strsep: New file.
80860
80861 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80862
80863         * m4/strsep.m4: New file.
80864
80865 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80866
80867         * lib/strsep.h: New file.
80868         * lib/strsep.c: New file.
80869
80870 2004-10-01  Simon Josefsson  <jas@extundo.com>
80871
80872         * lib/snprintf.c (snprintf): Handle size==0.
80873
80874 2004-10-01  Simon Josefsson  <jas@extundo.com>
80875             Bruno Haible  <bruno@clisp.org>
80876
80877         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80878         (snprintf): Declare 'args'.
80879
80880 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * lib/snprintf.c: Remove comments as to why each header is needed.
80883
80884 2004-10-01  Bruno Haible  <bruno@clisp.org>
80885
80886         * MODULES.html.sh: Add strsep.
80887
80888 2004-09-30  Simon Josefsson  <jas@extundo.com>
80889
80890         * modules/snprintf: New file.
80891
80892 2004-09-30  Simon Josefsson  <jas@extundo.com>
80893
80894         * m4/snprintf.m4: New file.
80895
80896 2004-09-30  Simon Josefsson  <jas@extundo.com>
80897
80898         * lib/snprintf.h, lib/snprintf.c: New files.
80899
80900 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80901
80902         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80903         (hol_entry_help): Never translate an empty string.
80904         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80905         * lib/argp.h (OPTION_NO_TRANS): New option.
80906
80907 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * modules/argp (Maintainer): Replace Simon Josefsson
80910         by Sergey Poznyakoff.
80911
80912 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80913
80914         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80915         changes merged back into glibc.
80916
80917 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80918
80919         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80920
80921 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80922
80923         * lib/xvasprintf.c: Include xalloc.h.
80924         (xvasprintf): Use xalloc_die, not xmalloc_die.
80925
80926 2004-09-29  Bruno Haible  <bruno@clisp.org>
80927
80928         * modules/alloca-opt: New file, derived from modules/alloca.
80929         * modules/allocsa: Depend on alloca-opt instead of alloca.
80930         * modules/setenv: Likewise.
80931         * modules/vasnprintf: Likewise.
80932         * MODULES.html.sh: Add alloca-opt.
80933
80934 2004-09-28  Simon Josefsson  <jas@extundo.com>
80935
80936         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80937         LGPL, and to replace license template from GPL to LGPL.
80938
80939 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80940
80941         * modules/dummy: Change license to LGPL.
80942
80943 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80946
80947 2004-09-24  Simon Josefsson  <jas@extundo.com>
80948
80949         * modules/minmax (License): Change from GPL to LGPL.
80950
80951 2004-09-23  Simon Josefsson  <jas@extundo.com>
80952
80953         * gnulib-tool (--import): Typo.
80954
80955 2004-09-23  Simon Josefsson  <jas@extundo.com>
80956
80957         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80958
80959 2004-09-22  Bruno Haible  <bruno@clisp.org>
80960
80961         * modules/*: Add 'License' field.
80962         * gnulib-tool: Accept --extract-license option.
80963         (func_get_license): New function.
80964
80965 2004-09-21  Bruno Haible  <bruno@clisp.org>
80966
80967         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80968         Reported by Simon Josefsson.
80969
80970 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80973         gl_AC_TYPE_LONG_LONG.
80974
80975 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80978
80979 2004-09-18  Simon Josefsson  <jas@extundo.com>
80980         and  Paul Eggert  <eggert@cs.ucla.edu>
80981
80982         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80983         calls with autoreconf.  Define GL_LIB.
80984
80985 2004-09-14  Karl Berry  <karl@gnu.org>
80986
80987         * config/srclist.txt: unsync setenv.c, sigh.
80988
80989 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80990
80991         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80992         Problem reported by Bruno Haible in:
80993         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80994
80995 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * config/srclist.txt: Comment out argp-pvh.c.
80998
80999 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81002         in case some system header has #define'd it.  Problem reported by
81003         Soeren D. Schulze in
81004         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81005
81006 2004-09-09  Karl Berry  <karl@gnu.org>
81007
81008         * regex.[ch]: delete from the root.  These were supposed to be
81009                 synced with emacs cvs, but this has not happened for about
81010                 a year, and anyway nothing else uses emacs regex.[ch].
81011                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81012                 lib/regex[.ch] is untouched.
81013
81014 2004-09-09  Bruno Haible  <bruno@clisp.org>
81015
81016         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81017
81018 2004-09-09  Bruno Haible  <bruno@clisp.org>
81019
81020         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81021         modifications.
81022         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81023
81024 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81025
81026         * modules/xvasprintf: New file.
81027         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81028
81029 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81030
81031         * lib/xvasprintf.h: New file.
81032         * lib/xvasprintf.c: New file.
81033         * lib/xasprintf.c: New file.
81034
81035 2004-09-08  Bruno Haible  <bruno@clisp.org>
81036
81037         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81038
81039 2004-09-08  Bruno Haible  <bruno@clisp.org>
81040
81041         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81042         length is > INT_MAX.
81043         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81044         more.
81045
81046 2004-09-08  Bruno Haible  <bruno@clisp.org>
81047
81048         * lib/stdint_.h: New file, taken from GNU clisp.
81049
81050 2004-09-08  Bruno Haible  <bruno@clisp.org>
81051             Oskar Liljeblad  <oskar@osk.mine.nu>
81052
81053         * modules/stdint: New file.
81054         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81055
81056 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81057
81058         Import from coreutils.
81059         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81060         strings on unbounded length.  alloca's performance benefits aren't
81061         that important here.
81062         (V_STRDUP): Remove.
81063         (parse_with_separator): New function, with most of the internals
81064         of the old parse_user_spec.  Allow user to omit both user and group,
81065         for compatibility with FreeBSD.
81066         Clone only the user name, not the entire spec.
81067         Do not set *uid, *gid unless entirely successful.
81068         Avoid memory leak in some failing cases.
81069         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81070         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81071         (parse_user_spec): Rewrite to use parse_with_separator.
81072
81073 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         * modules/userspec: Don't depend on alloca.
81076
81077 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81080
81081 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81084         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81085         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81086
81087 2004-08-16  Simon Josefsson  <jas@extundo.com>
81088
81089         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81090         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81091         Add --dry-run for --import.
81092         Let user provided command line parameters override configure.ac
81093         settings.
81094
81095 2004-08-12  Simon Josefsson  <jas@extundo.com>
81096
81097         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81098         as discussed with Paul Eggert in threads rooted at
81099         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81100         and
81101         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81102         Before, the test was empty, and relied on ELIDE_CODE in source
81103         code.)
81104         (gl_PREREQ_GETOPT): New macro.
81105         (gl_GETOPT): Use them.
81106
81107 2004-08-12  Simon Josefsson  <jas@extundo.com>
81108
81109         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81110         * lib/getopt_.h: Renamed from getopt.h.
81111
81112 2004-08-12  Simon Josefsson  <jas@extundo.com>
81113
81114         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81115         Change default library name from libfoo to libgnu.
81116         Now, if you have a configure.ac that says:
81117                 gl_SOURCE_BASE(gl)
81118                 gl_M4_BASE(gl/m4)
81119                 gl_MODULES(error getopt etcetera)
81120                 gl_INIT
81121         you can import all you need by running:
81122                 ../gnulib/gnulib-tool --import
81123
81124         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81125         (Makefile.am): Rewrite, use logic from argz.
81126         (Include): Use <getopt.h> instead of "getopt.h".
81127
81128 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * modules/argp (Files): Add m4/unlocked-io.m4.
81131         (Depends-on): Add extensions.
81132
81133 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81134
81135         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81136         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81137         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81138         Check for program_invocation_name, program_invocation_short_name,
81139         flockfile, funlockfile, features.h, _getopt_long_only_r.
81140
81141 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81144         its complicated substitute.
81145         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81146         and program_invocation_name.
81147         (__argp_basename) [!_LIBC]: Remove; the only use was
81148         replaced by its body.
81149         (__argp_short_program_name): Change condition from
81150         !defined __argp_short_program_name to
81151         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81152         to match argp-namefrob.h.
81153         (__argp_failure): Don't assume strerror_r returns char *.
81154         * lib/argp-parse.c (N_): Define unconditionally.
81155         (argp_default_options): Fill out initializers with 0 to avoid
81156         gcc warnings.
81157
81158 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81161         getopt1.c.
81162
81163 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         Merge from coreutils.
81166
81167         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81168
81169         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81170         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81171
81172 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         Merge from coreutils.
81175
81176         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81177         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81178         for Reliant Unix 5.43.
81179
81180         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81181         (union fooround): Use uintmax_t, not long int.
81182         The rest is a merge from libc:
81183         [defined _LIBC]: Include <shlib-compat.h>.
81184         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81185
81186         * lib/settime.c (settime): Recode to avoid warning with
81187         Sun Forte C 6U2.
81188
81189         * lib/strverscmp.c: Convert to UTF-8.
81190
81191 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81194         m4/uintmax_t.m4.
81195
81196 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         * modules/xalloc-die: New file.
81199         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81200
81201         * modules/md5 (Files): Add m4/uint32_t.m4.
81202         * modules/sha1: Renamed from modules/sha.
81203         (Files):
81204         Rename lib/sha.h to lib/sha1.h.
81205         Rename lib/sha.c to lib/sha1.c.
81206         Rename m4/sha.m4 to m4/sha1.m4.
81207         (lib_SOURCES): Likewise.
81208         (configure.ac): Rename gl_SHA to gl_SHA1.
81209         (Include): sha.h -> sha1.h.
81210
81211 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81212
81213         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81214         * m4/sha1.m4: Renamed from sha.m4.
81215         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81216
81217 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         * lib/obstack.h (obstack_empty_p):
81220         Don't assume that chunk->contents is suitably aligned.
81221         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81222         Likewise. Problem reported by Benno in
81223         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81224
81225         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81226         readable.  This could be improved further but it'd take some work.
81227
81228 2004-08-08  Simon Josefsson  <jas@extundo.com>
81229
81230         * modules/xgethostname (Depends-on): Remove exit and error (not
81231         used).
81232
81233         * modules/getpass-gnu: Add getpass.h.
81234         (Depends-on): Add stdbool.
81235         * modules/getpass: Add getpass.h.
81236
81237 2004-08-08  Simon Josefsson  <jas@extundo.com>
81238
81239         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81240         Check getpass declaration.
81241
81242 2004-08-08  Simon Josefsson  <jas@extundo.com>
81243
81244         * lib/xgethostname.c: Don't include error.h (not used).
81245
81246         * lib/getpass.h: Add.
81247         * lib/getpass.c: Include getpass.h first.
81248
81249 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * lib/xalloc-die.c: New file.
81252         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81253         All uses removed.
81254         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81255         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81256         xalloc-die.c.
81257         (_, N_, xalloc_die): Move to xalloc-die.c.
81258         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81259         so that we needn't mess with xalloc_msg_memory_exhausted.
81260
81261         * lib/sha1.h: Renamed from sha.h.
81262         (SHA1_H): Renamed from _SHA_H.
81263         (sha1_ctx): Renamed from sha_ctx.
81264         (sha1_init_ctx): Renamed from sha_init_ctx.
81265         (sha1_process_block): Renamed from sha_process_block.
81266         (sha1_process_bytes): Renamed from sha_process_bytes.
81267         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81268         (sha1_read_ctx): Renamed from sha_read_ctx.
81269         (sha1_stream): Renamed from sha_stream.
81270         (sha1_buffer): Renamed from sha_buffer.
81271         * lib/sha1.c: Likewise; renamed from sha.c.
81272         Do not include <sys/types.h>.
81273         Include <stddef.h> rather than <stdlib.h>.
81274
81275 2004-08-08  Bruno Haible  <bruno@clisp.org>
81276
81277         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81278         FILESYSTEM_PREFIX_LEN.
81279         * lib/progreloc.c: Likewise.
81280         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81281
81282 2004-08-06  Simon Josefsson  <jas@extundo.com>
81283
81284         * modules/progname (Depends-on): Don't depend on stdbool.
81285
81286 2004-08-06  Simon Josefsson  <jas@extundo.com>
81287
81288         * modules/getsubopt: New file.
81289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81290         getsubopt.
81291
81292 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         More merge from coreutils.
81295
81296         * m4/utimens.m4, m4/utimecmp.m4: New files.
81297         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81298         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81299         prereq.m4, sha.m4: Import changes from coreutils.
81300
81301 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81302
81303         More merge from coreutils.
81304         * modules/raise, modules/readtokens0, modules/utimens:
81305         * modules/utimecmp, module/xnanosleep: New files.
81306         * modules/strftime: Add lib/strftime.h.
81307         Change include from <time.h> to "strftime.h".
81308         * modules/yesno: Add lib/yesno.h.
81309         * modules/backupfile: Remove lib/addext.c.
81310         * modules/euidaccess: Add stat-macros.h.
81311         * modules/canonicalize, modules/euidaccess,
81312         modules/filemode, modules/lchown, modules/makepath,
81313         modules/rmdir, modules/stat: Likewise.
81314
81315 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81316
81317         Merge from tar.
81318         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81319         SIZE_MAX is a valid preprocessor constant.
81320         (__argp_basename): Change from "#ifndef _LIBC"
81321         to "#ifndef __argp_short_program_name", so that
81322         we don't compile these functions for tar.
81323
81324         More merges from coreutils.
81325         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81326         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81327         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81328         * lib/addext.c: Remove; no longer needed.
81329         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81330         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81331         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81332         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81333         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81334         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81335         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81336         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81337         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81338         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81339         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81340         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81341         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81342         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81343         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81344         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81345         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81346         Import changes from coreutils.
81347
81348 2004-08-05  Simon Josefsson  <jas@extundo.com>
81349
81350         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81351
81352 2004-08-05  Simon Josefsson  <jas@extundo.com>
81353
81354         * m4/getsubopt.m4: New file.
81355
81356 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         Merge from coreutils.
81359
81360         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81361         * m4/getcwd-path-max.m4: New files.
81362
81363         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81364         FILESYSTEM_PREFIX_LEN ->
81365         FILE_SYSTEM_PREFIX_LEN.
81366         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81367         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81368         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81369         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81370
81371         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81372         prerequisite modules now handle the DOS stuff.
81373         Don't check for unistd.h.
81374
81375 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         Merge from coreutils.
81378
81379         * lib/.gdb-history: Remove; this doesn't belong here.
81380
81381         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81382         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81383         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81384         * lib/getcwd.c: New files.
81385
81386         * lib/dirname.h: Include <stdbool.h>.
81387         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81388         for consistency with POSIX terminology.  All uses changed.
81389         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81390         (strip_trailing_slashes): Use bool for booleans.
81391         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81392
81393         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81394         sometimes returns a positive errno value even when it succeeds.
81395         (print_errno_message) [!LIBC]: Fall back on strerror if
81396         __strerror_r fails.
81397
81398         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81399         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81400         (longest_relative_suffix): New function.
81401         (path_concat): Use it.  Assume first argument is not NULL.
81402         Port to DOS.  Omit redundant separators.
81403         Report an error instead of returning NULL.
81404         Use mempcpy instead of memcpy.
81405         (xpath_concat): Remove: not declared or used.
81406
81407         * lib/same.h: Include <stdbool.h>
81408         (same_name): Return bool, not int.
81409         * lib/same.c (same_name): Likewise.
81410         (errno): Don't declare; we assume C89 or better now.
81411
81412         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81413         if not already defined.
81414
81415         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81416         * lib/dup-safer.c (errno): Likewise.
81417
81418 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         Merge from coreutils.
81421         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81422         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81423         * modules/path-concat: Don't depend on strdup.
81424
81425 2004-08-03  Simon Josefsson  <jas@extundo.com>
81426
81427         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81428         * lib/progname.h: Don't include stdbool.h.
81429
81430 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81431
81432         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81433         * MODULES.html.sh (func_all_modules): Remove fatal.
81434
81435 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81438
81439 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81442         working.
81443
81444 2004-08-02  Simon Josefsson  <jas@extundo.com>
81445
81446         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81447         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81448         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81449
81450 2004-08-01  Simon Josefsson  <jas@extundo.com>
81451
81452         * lib/xgetdomainname.c: Include stdlib.h, for free().
81453
81454 2004-07-19  Bruno Haible  <bruno@clisp.org>
81455
81456         * MODULES.html.sh (func_all_modules): Add dummy.
81457
81458 2004-07-16  Simon Josefsson  <jas@extundo.com>
81459
81460         * modules/dummy: New file.
81461
81462 2004-07-16  Simon Josefsson  <jas@extundo.com>
81463
81464         * lib/dummy.c: New file.
81465
81466 2004-07-16  Bruno Haible  <bruno@clisp.org>
81467
81468         * lib/backupfile.h: Add extern "C" for C++.
81469         * lib/closeout.h: Likewise.
81470         * lib/copy-file.h: Likewise.
81471         * lib/findprog.h: Likewise.
81472         * lib/full-write.h: Likewise.
81473         * lib/pathname.h: Likewise.
81474         * lib/progname.h: Likewise.
81475         * lib/stpcpy.h: Likewise.
81476         * lib/stpncpy.h: Likewise.
81477         * lib/strcase.h: Likewise.
81478         * lib/strstr.h: Likewise.
81479         * lib/xalloc.h: Likewise.
81480
81481         * lib/mbswidth.h: Add extern "C" for C++.
81482         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81483
81484 2004-07-13  Robert Millan  <robertmh@gnu.org>
81485
81486         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81487
81488 2004-07-09  Simon Josefsson  <jas@extundo.com>
81489
81490         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81491         failed without this.)
81492
81493 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         * modules/chown (Files): Add lib/fchown-stub.c, since
81496         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81497
81498 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         * lib/fchown-stub.c: New file.
81501
81502 2004-06-24  Jim Meyering  <jim@meyering.net>
81503
81504         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81505
81506 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81507
81508         * modules/argz: Omit "#include".
81509
81510         * MODULES.html.sh (func_all_modules): Add calloc, to match
81511         2004-06-01 addition of calloc module.
81512
81513 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81514
81515         * m4/argz.m4: New file, which is autoupdated from libtool.
81516
81517 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81518
81519         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81520         libtool.
81521
81522 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         * config/srclist-update: Don't insist on "USA." before the
81525         close-comment, as libtool omits the period and puts the */ on a
81526         separate line.
81527         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81528         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81529
81530 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81531
81532         * modules/argz: New file.
81533         * MODULES.html.sh (func_all_modules): Add argz.
81534
81535 2004-06-12  Jim Meyering  <jim@meyering.net>
81536         and  Paul Eggert  <eggert@cs.ucla.edu>
81537
81538         * modules/hash (Files): Add lib/xalloc.h.
81539         * modules/pipe (Depends-on): Add wait-process.
81540         * modules/stat (Depends-on): Add xalloc.
81541         * modules/userspec (Files): Add lib/userspec.h.
81542         * modules/xstrto
81543
81544         Upgrade from gettext-0.13.
81545         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81546         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81547         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81548
81549 2004-06-10  Jim Meyering  <jim@meyering.net>
81550
81551         * lib/calloc.c: New file.
81552
81553 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81554
81555         * lib/getdate.y (yylex): Allow space between sign and number.
81556         Problem reported by Dan Jacobson.
81557
81558 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81559
81560         Merge from coreutils CVS.
81561
81562         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81563         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81564         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81565         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81566         xstrtol.m4: Fix copyright date and/or serial number.
81567
81568         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81569         See if we need an fchown replacement.
81570         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81571         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81572         and use the replacement function if we detect either defect.
81573
81574         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81575         gl_UTIMECMP.
81576
81577 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81578         and  Jim Meyering  <jim@meyering.net>
81579
81580         Merge from coreutils CVS.
81581
81582         * lib/stat-macros.h: New file, with contents from file-type.h
81583         and coreutils' system.h.
81584         * lib/file-type.c: Include "stat-macros.h".
81585         * lib/file-type.h (file_type): Move all macro definitions to new file,
81586         stat-macros.h.
81587
81588         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81589         Wrap old code with this conditional.
81590         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81591         function that does not dereference symlinks.
81592         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81593
81594         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81595         dependency problems.
81596         (xreadlink): Accept new arg SIZE, for efficiency.
81597         All decls and uses changed.
81598         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81599
81600         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81601         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81602
81603         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81604         sysexits.h.
81605
81606 2004-06-01  Jim Meyering  <jim@meyering.net>
81607
81608         * m4/calloc.m4: New file.
81609
81610 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81611
81612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81613         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81614         Also, fix a typo in a diagnostic.
81615
81616 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81619         or AC_FUNC_REALLOC.
81620
81621 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81624         macros to be defined.
81625         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81626         the allocator returns NULL because the requested size is zero.
81627
81628 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81629
81630         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81631         var.  Add comment explaining why libc still defines it.  This
81632         merges the following patch from glibc:
81633         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81634
81635 2004-05-20  Andreas Schwab  <schwab@suse.de>
81636
81637         * m4/free.m4: Replace free if it not known to work, not the other
81638         way round.
81639
81640 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81641
81642         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81643         present in glibc since revision 1.1 of this file.
81644         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81645         obstack_alignment_mask, obstack_alloc, obstack_base,
81646         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81647         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81648         obstack_grow0, obstack_init, obstack_int_grow,
81649         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81650         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81651         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81652         nonexistent functions.
81653
81654 2004-05-18  Karl Berry  <karl@gnu.org>
81655
81656         * config/srclist.txt: break link for vasnprintf.c.
81657
81658 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         Port obstack to the AS/400, where pointers are 16 bytes wide and
81661         you cannot cast an integer to a valid pointer.  This patch is
81662         currently waiting to be integrated into glibc; see
81663         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81664
81665         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81666         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81667         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81668         (struct obstack): temp member is now a union of a pointer and
81669         an integer, instead of an integer.  All integer uses changed.
81670         This does not affect the physical layout of struct obstack,
81671         except on hosts (like the AS/400) where the size or alignment of
81672         void * is greater than that of ptrdiff_t.
81673         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81674         __STDC__)]: Store temporary in pointer member of union, not
81675         integer member.
81676         * lib/obstack.c: Include <stddef.h>, for offsetof.
81677         (struct fooalign): Remove; it doesn't need a name.
81678         (union fooround): Change double to long double, and add void *.
81679         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81680         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81681         not a macro.  Hence the values are always int; so remove all
81682         casts-to-int in uses.
81683
81684 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81685
81686         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81687         we can get this patch merged into glibc.
81688
81689 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81690             Paul Eggert  <eggert@cs.ucla.edu>
81691
81692         * m4/argp: Depend on alloca.
81693
81694 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81695             Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81698         freecoding.
81699
81700 2004-05-17  Bruno Haible  <bruno@clisp.org>
81701
81702         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81703         precision that consists of a '.' followed by an empty digit string.
81704         Patch by Tor Lillqvist <tml@iki.fi>.
81705
81706 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81707
81708         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81709         for backward compatibility with older code.  We need our own
81710         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81711         it under some other name, and our alloca.h will define it.
81712
81713 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81714             Derek Price  <derek@ximbiot.com>
81715
81716         * lib/alloca.c: Include <alloca.h>, to get our interface.
81717         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81718         include <alloca.h> first.  Use C89 prototype for alloca; this
81719         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81720         Use #elif for simplicity, since we can assume C89 now.
81721         Don't try to source the system alloca.h since it will not be found
81722         and to prevent recursively including its replacement.
81723         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81724         * lib/regex.c: Likewise.
81725
81726 2004-05-16  Derek Price  <derek@ximbiot.com>
81727             Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         getline cleanup.  This changes the getndelim2 API: both order of
81730         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81731         no delimiter).
81732
81733         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81734         interface does that.
81735         (getline): Always use getdelim, so that we don't have two
81736         copies of this code.
81737         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81738         if available.
81739         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81740         (GETNDELIM2_MAXIMUM): New macro.
81741         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81742         instead of the old practice of delim2==0.  All callers changed.
81743         Return -1 on overflow, instead of returning junk.
81744         Do not set *linesize unless allocation succeeds.
81745         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81746         that we include sys/types.h.
81747         * lib/getnline.h: Likewise.
81748         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81749         (getndelim2): Reorder arguments.
81750         * lib/getnline.c (getnline, getndelim):
81751         Don't discard the NMAX argument.
81752         (getnline): Invoke getndelim, to avoid code duplication.
81753         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81754         of (size_t) -1 by callers of the getnline family.
81755
81756 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81757
81758         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81759         Check for gettimeofday.
81760         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81761         Check for settimeofday, stime.
81762
81763 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * lib/nanosleep.c (suspended): Change its type from int to
81766         sig_atomic_t volatile.
81767         (first_call): Make it private to rpl_nanosleep, and have it
81768         be zero initially as that's a bit faster.
81769         (my_usleep): Round up fractional times instead of truncating them,
81770         as this is the usual meaning for 'sleep'.
81771
81772         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81773         doesn't work.
81774         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81775         (ENOSYS): Define if not defined.
81776         (settime): Fall back on stime if it exists and settimeofday fails.
81777         But don't bother with fallbacks if a method fails with errno == EPERM.
81778
81779 2004-05-11  Jim Meyering  <jim@meyering.net>
81780
81781         Prior to this change, the save_cwd caller required read access to the
81782         current directory on most systems (ones with the fchdir function).
81783
81784         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81785         fails, try write-only, and finally, resort to using xgetcwd.
81786
81787 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * lib/obstack.c, obstack.h: Import changes from libc.
81790
81791 2004-04-28  Bruno Haible  <bruno@clisp.org>
81792
81793         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81794         also implicitly appends .exe to executables.
81795         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81796         accepts Windows pathnames.
81797         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81798         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81799         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81800         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81801         Reported by Derek Robert Price <derek@ximbiot.com>.
81802
81803 2004-04-21  Karl Berry  <karl@gnu.org>
81804
81805         * config/srclist.txt (localcharset.c): break sync.
81806
81807 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81808
81809         * m4/host-os.m4: Add a copyright notice.
81810
81811 2004-04-20  Jim Meyering  <jim@meyering.net>
81812
81813         Change UTILS_ to gl_ in AC_DEFINE'd names.
81814         Change utils_- and jm_-prefixed variables, too.
81815         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81816         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81818
81819         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81820         Don't emit trailing blanks.
81821         Also rename jm_-prefixed variables to have gl_ prefix.
81822
81823         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81824         Also rename jm_-prefixed variables to have gl_ prefix.
81825
81826         * m4/jm-macros.m4: Reflect the renamings.
81827         * m4/prereq.m4: Likewise.
81828
81829 2004-04-20  Jim Meyering  <jim@meyering.net>
81830
81831         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81832         memory.
81833
81834 2004-04-20  Jim Meyering  <jim@meyering.net>
81835             Bruno Haible  <bruno@clisp.org>
81836
81837         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81838         memory when realloc fails.
81839
81840 2004-04-19  Jim Meyering  <jim@meyering.net>
81841
81842         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81843         now that readutmp.c may call `free (0)'.
81844
81845 2004-04-19  Bruno Haible  <bruno@clisp.org>
81846
81847         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81848         * m4/inttypes_h.m4: Likewise.
81849         * m4/stdint_h.m4: Likewise.
81850         * m4/intmax_t.m4: Likewise.
81851         * m4/uintmax_t.m4: Likewise.
81852
81853 2004-04-18  Jim Meyering  <jim@meyering.net>
81854
81855         * m4/prereq.m4: Don't forbid jm_ prefix.
81856
81857         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81858         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81859         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81860         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81861         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81862         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81863         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81864         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81865         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81866         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81867         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81868         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81869         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81870         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81871         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81872         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81873         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81874         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81875         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81876
81877 2004-04-18  Jim Meyering  <jim@meyering.net>
81878
81879         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81880         failure, don't leak memory and do call END_UTMP_ENT.
81881
81882 2004-04-16  Jim Meyering  <jim@meyering.net>
81883
81884         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81885         coreutils' stat program.
81886         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81887
81888 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81889
81890         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81891         C89.
81892         (CHAR_BIT): Remove, since we assume C89.
81893         Include <stdint.h> if available, as per current Autoconf CVS advice.
81894
81895 2004-03-31  Jim Meyering  <jim@meyering.net>
81896
81897         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81898         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81899         * m4/xalloc.m4: Likewise.
81900
81901 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81902
81903         Merge from coreutils.
81904
81905         * m4/inttostr.m4: New file.
81906         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81907         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81908         Require gl_CLOCK_TIME.
81909         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81910
81911 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81912
81913         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81914         not bool, to be more consistent with Unix conventions.
81915         Suggested by Bruno Haible.
81916
81917         Merge from coreutils.
81918
81919         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81920         * lib/umaxtostr.c: New files.
81921
81922         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81923         the usual <time.h> dance.
81924         (get_date): Change signature to support fractional time stamps.
81925         All callers changed.
81926         * lib/getdate.y: Include "getdate.h" first, as we can now
81927         assume C89 and don't need to worry about 'const'.
81928         Similarly, include "unlocked-io.h" near start, not in middle.
81929         Include <limits.h>.
81930         (textint.value): Use long int rather than int.
81931         (textint.digits): Use size_t rather than int.
81932         (BILLION, LOG10_BILLION): New constants.
81933         (parser_control): New member rel_ns.  Members day_ordinal,
81934         time_zone, month, day, hour, minutes, rel_year, rel_month,
81935         rel_day, rel_hour, rel_minutes, rel_seconds
81936         are now long int, not int.  Member seconds is now struct timespec,
81937         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81938         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81939         not int.
81940         (%union.intval): Now long int, not int.
81941         New member timespec.
81942         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81943         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81944         (spec): Now is a timespec or an item list.
81945         (timespec, items): New nonterminals.
81946         (time, rel, relunit, number, get_date):
81947         Add support for fractional seconds.
81948         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81949         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81950         (to_hour): First arg is now long int, not int.
81951         (to_year): Returns long int, not int.
81952         Don't treat year -70 like 70.
81953         (tm_diff): Returns long int, not int.
81954         (lookup_word): Use bool instead of int when appropriate.
81955         (yylex): Use size_t for count, not int.
81956         Detect overflow when parsing large integer constants.
81957         Add support for fractions.
81958         (get_date): Make pointers 'const' if possible.
81959         Use more-portable code to detect integer overflow.
81960         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81961         Don't use ctime; it's not reliable if the year has >4 digits.
81962
81963         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81964         This is for compatibility with BSD.
81965
81966         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81967         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81968         From coreutils' system.h.
81969
81970         * lib/userspec.c: Don't include "posixver.h".
81971         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81972         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81973         compatible extension.  Simplify code by removing a boolean int
81974         that was always nonzero if a string was nonnull.
81975
81976 2004-03-30  Jim Meyering  <jim@meyering.net>
81977
81978         Merge from coreutils.
81979
81980         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81981         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81982         on some systems one must include <grp.h> before it.
81983         Reported by Christian Krackowizer.
81984
81985 2004-03-30  Jim Meyering  <jim@meyering.net>
81986
81987         Merge from coreutils.
81988
81989         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81990
81991         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81992         an empty input stream.
81993
81994         * lib/readtokens.c: Include <stdbool.h>.
81995         (readtoken): Use `size_t' rather than int/long.
81996         All callers adjusted.
81997         Use `bool' rather than `int' where appropriate.
81998         Use memset rather than an explicit loop.
81999         Use x2nrealloc rather than xrealloc.
82000         Allow the use of `\0' as a delimiter.
82001         (readtokens): Likewise.
82002         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82003
82004 2004-03-30  Jim Meyering  <jim@meyering.net>
82005
82006         * m4/realloc.m4: Remove file, since now it does no more than
82007         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82008         the `configure.ac' section of module/realloc.
82009         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82010
82011 2004-03-30  Bruno Haible  <bruno@clisp.org>
82012
82013         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82014         nonnull.
82015
82016 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82017
82018         Merge changes to getloadavg.c from coreutils and Emacs.
82019
82020         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82021         Define to an expression, not to the empty string.
82022         Include cloexec.h and xalloc.h.
82023         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82024         Use set_cloexec_flag rather than rolling our own.
82025         * lib/cloexec.c, lib/cloexec.h: New files.
82026
82027 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82028
82029         * m4/cloexec.m4: New file.
82030
82031 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82032
82033         * lib/getopt.h: Sync with libc CVS.
82034
82035 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82036             Bruno Haible  <bruno@clisp.org>
82037
82038         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82039         mbswidth.
82040
82041 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82042             Bruno Haible  <bruno@clisp.org>
82043
82044         * lib/mbswidth.h: Include <wchar.h> only if
82045         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82046         <wchar.h>.
82047         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82048
82049 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82050
82051         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82052         Sync with libc CVS.
82053         * lib/getopt_int.h: New file, also synced from libc.
82054
82055 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82056
82057         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82058         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82059         Bring back getopt.c, getopt.h, getopt1.c.
82060
82061 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82062
82063         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82064         All uses changed.  Check for sa_sigaction member; this fixes
82065         a bug first reported by Jason Andrade in
82066         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82067
82068 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82069
82070         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82071         '#if' expressions.  Unlike the code it replaces, it does not
82072         depend on (defined _SC_PAGESIZE).  However, it does depend on
82073         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82074         first reported by Jason Andrade in
82075         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82076
82077 2004-02-25  Simon Josefsson  <jas@extundo.com>
82078
82079         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82080
82081 2004-02-25  Simon Josefsson  <jas@extundo.com>
82082
82083         * lib/strdup.h: New file.
82084         * lib/strdup.c: Include it.
82085         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82086         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82087
82088 2004-02-23  Karl Berry  <karl@gnu.org>
82089
82090         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82091         (from fencepost.gnu.org:/gd/gnuorg).
82092
82093 2004-02-23  Karl Berry  <karl@gnu.org>
82094
82095         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82096         * config/srclist.txt: add maintain/standards documents.
82097
82098 2004-02-18  Bruno Haible  <bruno@clisp.org>
82099
82100         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82101         Reported by Derek Robert Price <derek@ximbiot.com>.
82102
82103 2004-02-16  Karl Berry  <karl@gnu.org>
82104
82105         * config/mkinstalldirs, install-sh: update from automake.
82106
82107 2004-02-06  Karl Berry  <karl@gnu.org>
82108
82109         * m4/po.m4: update from gettext 0.14.1.
82110
82111 2004-02-06  Karl Berry  <karl@gnu.org>
82112
82113         * lib/config.charset: update from gettext 0.14.1.
82114
82115 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82116
82117         Add comments and code, prompted by suggestions from Bruno Haible
82118         for sh-quote.
82119         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82120         describing the enum quoting_style values.
82121         * lib/quotearg.c (quotearg_alloc): New function.
82122         (quotearg_buffer_restyled): Treat lone { and } as special.
82123         Treat = as special.  Work around bug with older shells
82124         that "see" a '\' that is really the 2nd byte of a multibyte char.
82125         Quote empty string with shell_quoting_style.
82126
82127 2004-02-03  Bruno Haible  <bruno@clisp.org>
82128
82129         * m4/pipe.m4: New file, from GNU gettext.
82130
82131 2004-02-03  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/pipe.h: New file, from GNU gettext.
82134         * lib/pipe.c: New file, from GNU gettext.
82135
82136 2004-01-27  Bruno Haible  <bruno@clisp.org>
82137
82138         * m4/execute.m4: New file, from GNU gettext.
82139
82140 2004-01-27  Bruno Haible  <bruno@clisp.org>
82141
82142         * lib/execute.h: New file, from GNU gettext.
82143         * lib/execute.c: New file, from GNU gettext.
82144         * lib/w32spawn.h: New file, from GNU gettext.
82145
82146 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82147
82148         Merge from diffutils.
82149
82150         * lib/file-type.c (file_type): Add typed memory objects.
82151         * lib/file-type.h (S_TYPEISTMO): New macro.
82152
82153         * lib/c-stack.h (c_stack_action): Remove argv argument.
82154         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82155         (die): Don't calculate message unless segv_action returns.
82156         (get_stack_location, min_address_from_argv, max_address_from_argv,
82157         volatile stack_base, volatile_stack_size): Remove.
82158         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82159         that every segmentation violation is a stack overflow.  (Ouch!)
82160         See Debian bug 136249 (still outstanding) for more info about why
82161         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82162
82163 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82164
82165         Exit-status fix from coreutils.
82166
82167         Use exit_failure consistently in place of EXIT_FAILURE,
82168         so that program exit statuses are consistent on failure.
82169
82170         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82171         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82172         * lib/argmatch.h: Comment fix to match the above.
82173         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82174         Now a macro referring to exit_failure, instead of a separate
82175         variable.  Include "exitfail.h" to get it.
82176         * lib/xstrtol.h: Include "exitfail.h".
82177         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82178
82179         * lib/long-options.c (parse_long_options): Use prototype
82180         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82181         for clarity.
82182
82183 2004-01-21  Jim Meyering  <jim@meyering.net>
82184
82185         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82186         so as not to conflict with a different-sized __mktime_internal
82187         function in GNU libc.
82188         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82189         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82190
82191 2004-01-20  Karl Berry  <karl@gnu.org>
82192
82193         * config/config.guess: update from config.
82194
82195         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82196
82197 2004-01-20  Bruno Haible  <bruno@clisp.org>
82198
82199         Safer stack allocation.
82200         * lib/setenv.c: Include allocsa.h.
82201         (alloca): Remove fallback definition.
82202         (freea): Remove macro.
82203         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82204         instead of freea.
82205
82206 2004-01-20  Bruno Haible  <bruno@clisp.org>
82207
82208         * m4/eealloc.m4: New file, from GNU gettext.
82209
82210 2004-01-20  Bruno Haible  <bruno@clisp.org>
82211
82212         * m4/allocsa.m4: New file, from GNU gettext.
82213
82214 2004-01-20  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/xallocsa.h: New file, from GNU gettext.
82217         * lib/xallocsa.c: New file, from GNU gettext.
82218
82219 2004-01-20  Bruno Haible  <bruno@clisp.org>
82220
82221         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82222
82223 2004-01-20  Bruno Haible  <bruno@clisp.org>
82224
82225         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82226         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82227         specially.
82228
82229 2004-01-20  Bruno Haible  <bruno@clisp.org>
82230
82231         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82232         patch.
82233
82234 2004-01-20  Bruno Haible  <bruno@clisp.org>
82235
82236         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82237
82238 2004-01-20  Bruno Haible  <bruno@clisp.org>
82239
82240         * lib/eealloc.h: New file.
82241
82242 2004-01-20  Bruno Haible  <bruno@clisp.org>
82243
82244         * lib/binary-io.h: Avoid warnings on Cygwin.
82245
82246 2004-01-20  Bruno Haible  <bruno@clisp.org>
82247
82248         * lib/allocsa.h: New file, from GNU gettext.
82249         * lib/allocsa.c: New file, from GNU gettext.
82250
82251 2004-01-18  Karl Berry  <karl@gnu.org>
82252
82253         * doc/gpl.texi, doc/lgpl.texi: new files.
82254
82255 2004-01-18  Karl Berry  <karl@gnu.org>
82256
82257         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82258         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82259
82260 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82261
82262         Merge from coreutils.
82263
82264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82265         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82266         (gl_DEFAULT_POSIX2_VERSION): Move
82267         the documentation from 'configure' into 'config.hin',
82268         so that 'configure --help' isn't burdened by it and
82269         we don't have to worry about its formatting there.
82270         Reword the documentation so that it's more succinct
82271         and can be run together into a single paragraph.
82272         * m4/same.m4 (gl_SAME): Check for pathconf.
82273
82274 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82275
82276         Merge from coreutils.
82277
82278         * lib/posixver.c: Include posixver.h.
82279
82280         * lib/same.c: Include <stdbool.h>, <limits.h>.
82281         (_POSIX_NAME_MAX): Define if not defined.
82282         (MIN): New macro.
82283         (same_name): If file names are silently truncated, report
82284         that the file names are the same if they are the same after
82285         the silent truncation.
82286
82287         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82288         conversion function.
82289         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82290         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82291         longer needed.
82292
82293 2004-01-15  Jim Meyering  <jim@meyering.net>
82294
82295         Merge from coreutils.
82296
82297         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82298         if no library is required.
82299         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82300         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82301         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82302         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82303         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82304         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82305         value, $ac_cv_search_crypt, if it's "none required".
82306         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82307         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82308         not gl_FUNC_GETLOADAVG.
82309         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82310         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82311
82312 2004-01-15  Jim Meyering  <jim@meyering.net>
82313
82314         Merge from coreutils.
82315
82316         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82317         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82318         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82319
82320         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82321         optional configure-time default.
82322
82323         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82324
82325         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82326
82327 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82328
82329         Merge from coreutils.
82330
82331         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82332         value, $ac_cv_search_nanosleep, if it's "none required".
82333
82334 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82335
82336         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82337         with like-named macro in fnmatch.c.
82338         (EXT): Use an internal constant instead.
82339
82340         Merge fnmatch patches from glibc.
82341         * lib/fnmatch.c (mbsinit): Remove define.
82342         Add libc_hidden_ver (__fnmatch, fnmatch).
82343         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82344         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82345
82346 2004-01-14  Karl Berry  <karl@gnu.org>
82347
82348         * config/install-sh: update from automake.
82349
82350 2004-01-13  Karl Berry  <karl@gnu.org>
82351
82352         * config/install-sh: update from automake.
82353
82354 2004-01-09  Karl Berry  <karl@gnu.org>
82355
82356         * config/install-sh: update from automake.
82357
82358 2004-01-05  Karl Berry  <karl@gnu.org>
82359
82360         * config/config.{sub,guess}: update from config.
82361
82362 2003-12-31  Karl Berry  <karl@gnu.org>
82363
82364         * config/depcomp: update from automake.
82365
82366 2003-12-14  Karl Berry  <karl@gnu.org>
82367
82368         * lib/config.charset: update from gettext-runtime.
82369
82370 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82371
82372         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82373         Bug reported by Alfred M. Szmidt.
82374
82375 2003-12-03  Bruno Haible  <bruno@clisp.org>
82376
82377         * m4/gettext.m4: Upgrade from gettext-0.13.
82378         * m4/po.m4: Upgrade from gettext-0.13.
82379         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82380         * m4/intmax.m4: New file, from gettext-0.13.
82381         * m4/printf-posix.m4: New file, from gettext-0.13.
82382
82383 2003-11-29  Karl Berry  <karl@gnu.org>
82384
82385         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82386
82387 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82388             Bruno Haible  <bruno@clisp.org>
82389
82390         * lib/printf-parse.h: Don't include sys/types.h.
82391         (ARG_NONE): New macro.
82392         (char_directive): Change type of *arg_index fields to size_t.
82393         * lib/printf-parse.c: Don't include sys/types.h.
82394         (SSIZE_MAX): Remove macro.
82395         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82396         Remove unnecessary overflow check.
82397         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82398         fields.
82399
82400 2003-11-25  Bruno Haible  <bruno@clisp.org>
82401
82402         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82403
82404 2003-11-25  Bruno Haible  <bruno@clisp.org>
82405
82406         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82407         gt_TYPE_SSIZE_T.
82408
82409 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82410
82411         * modules/alloca: Remove dependency on xalloc.
82412
82413 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/alloca.c: Remove dependency on xalloc module.
82416         (xalloc_die): Remove.
82417         (memory_full) [!defined emacs]: New macro.
82418         [!defined emacs]: Don't include xalloc.h.
82419         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82420         address arithmetic overflows.  Change datatypes a bit to avoid
82421         unnecessary casts.
82422
82423 2003-11-22  Jim Meyering  <jim@meyering.net>
82424
82425         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82426         s/size/size_t/.
82427
82428 2003-11-21  Karl Berry  <karl@gnu.org>
82429
82430         * config/config.{sub,guess}: update from config.
82431
82432 2003-11-18  Karl Berry  <karl@gnu.org>
82433
82434         * config/config.{sub,guess}: update from config.
82435
82436         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82437
82438 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82439
82440         * README: Mention that S+T cannot overflow if S is the size of
82441         an existing object and T is sufficiently small.
82442
82443 2003-11-17  Jim Meyering  <jim@meyering.net>
82444
82445         On systems without utime and without a utimes function capable of
82446         dealing with a NULL struct utimbuf* argument, this utime replacement
82447         could -- in unusual circumstances -- leak a file descriptor.
82448         * lib/utime.c: Include <unistd.h> and <errno.h>.
82449         (utime_null): Be sure to close `fd' and to preserve errno.
82450         Reported by Geoff Collyer via Arnold Robbins.
82451
82452 2003-11-17  Bruno Haible  <bruno@clisp.org>
82453
82454         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82455         (Depends-on): Add xsize.
82456
82457 2003-11-17  Bruno Haible  <bruno@clisp.org>
82458
82459         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82460
82461 2003-11-17  Bruno Haible  <bruno@clisp.org>
82462
82463         * lib/vasnprintf.c (alloca): Remove fallback definition.
82464         (freea): Remove definition.
82465         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82466         Reported by Paul Eggert.
82467
82468 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82469             Bruno Haible  <bruno@clisp.org>
82470
82471         Protect against address arithmetic overflow.
82472         * lib/printf-args.h: Include stddef.h.
82473         (arguments): Change type of field 'count' to size_t.
82474         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82475         'unsigned int' where appropriate.
82476         * lib/printf-parse.h: Include sys/types.h.
82477         (char_directive): Change type of *arg_index fields to ssize_t.
82478         (char_directives): Change type of fields 'count', max_*_length to
82479         size_t.
82480         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82481         (SSIZE_MAX): Define fallback value.
82482         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82483         instead of 'int' where appropriate. Check a_allocated, d_allocated
82484         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82485         * lib/vasnprintf.c: Include xsize.h.
82486         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82487         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82488         overflow. Avoid wraparound when converting a width or precision from
82489         decimal to binary.
82490
82491 2003-11-16  Bruno Haible  <bruno@clisp.org>
82492
82493         Update from GNU gettext.
82494         * lib/printf-parse.c: Generalize to it can be compiled for wide
82495         strings.
82496         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82497         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82498         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82499         SNPRINTF): New macros.
82500         Don't include <alloca.h> if the file is used inside libintl.
82501         (local_wcslen): New function, for Solaris 2.5.1.
82502         (VASNPRINTF): Use it instead of wcslen.
82503
82504 2003-11-16  Bruno Haible  <bruno@clisp.org>
82505
82506         * lib/xsize.h (xmax): New function.
82507         (xsum, xsum3, xsum4): Declare as "pure" functions.
82508
82509 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82510
82511         * modules/xalloc (Files): Undo latest change, since xalloc.h
82512         no longer needs SIZE_MAX or PTRDIFF_MAX.
82513
82514 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82515
82516         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82517         gl_PTRDIFF_MAX.
82518
82519 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82520
82521         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82522         "return", to pacify some unknown compiler.  Problem reported
82523         by Joerg Schilling.
82524
82525 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82526
82527         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82528         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82529         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82530         heuristic is just as accurate as far as we know, and it removes a
82531         dependency on size_max.m4 and ptrdiff_max.m4.
82532
82533 2003-11-11  Bruno Haible  <bruno@clisp.org>
82534
82535         * modules/xsize (Files): Add m4/size_max.m4.
82536         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82537
82538 2003-11-11  Bruno Haible  <bruno@clisp.org>
82539
82540         * m4/size_max.m4: New file.
82541         * m4/ptrdiff_max.m4: New file.
82542         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82543         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82544         (gl_XALLOC): Invoke it.
82545
82546 2003-11-11  Bruno Haible  <bruno@clisp.org>
82547
82548         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82549         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82550         defined.
82551
82552 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82553
82554         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82555         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82556         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82557         From Bruno Haible.
82558         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82559         not (size_t) -1, since it's defined here.
82560
82561 2003-11-09  Karl Berry  <karl@gnu.org>
82562
82563         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82564
82565 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82566
82567         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82568         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82569         Reject sizes of exactly SIZE_MAX bytes.
82570         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82571         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82572
82573 2003-11-05  Bruno Haible  <bruno@clisp.org>
82574
82575         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82576         SIZE_MAX defined in <limits.h> on Solaris.
82577
82578 2003-11-04  Jim Meyering  <jim@meyering.net>
82579
82580         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82581         variable names, rather than @VAR@.
82582         * modules/poll: Likewise.
82583
82584 2003-11-04  Bruno Haible  <bruno@clisp.org>
82585
82586         * modules/xsize: New file.
82587         * modules/linebreak: Depend on xsize.
82588         * MODULES.html.sh (func_all_modules): Add xsize.
82589
82590 2003-11-04  Bruno Haible  <bruno@clisp.org>
82591
82592         * m4/xsize.m4: New file.
82593
82594 2003-11-04  Bruno Haible  <bruno@clisp.org>
82595
82596         * lib/xsize.h: New file.
82597         * lib/linebreak.c: Include xsize.h.
82598         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82599         argument for overflow.
82600         Suggested by Paul Eggert.
82601
82602 2003-11-03  Karl Berry  <karl@gnu.org>
82603
82604         * config/config.{guess,sub}: update from config.
82605
82606 2003-11-03  Jim Meyering  <jim@meyering.net>
82607
82608         * modules/userspec (lib_SOURCES): Add userspec.h.
82609         (Include): Add "userspec.h".
82610         Improve description.
82611
82612 2003-11-03  Jim Meyering  <jim@meyering.net>
82613
82614         * lib/userspec.c: Include "userspec.h".
82615         * lib/userspec.h: New file.
82616
82617 2003-11-03  Bruno Haible  <bruno@clisp.org>
82618
82619         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82620
82621 2003-11-03  Bruno Haible  <bruno@clisp.org>
82622
82623         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82624         available, to avoid (extremely rare) race condition.
82625         Suggested by Paul Eggert.
82626
82627 2003-11-02  Karl Berry  <karl@gnu.org>
82628
82629         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82630
82631 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82632
82633         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82634         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82635         (read_filesystem_list): Set and use me_type_malloced.
82636         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82637         whatever the type happens to be), for brevity and consistency.
82638         Check for size calculation overflow on Alphas running OSF/1.
82639
82640 2003-10-31  Jim Meyering  <jim@meyering.net>
82641
82642         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82643
82644         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82645
82646 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82647             Bruno Haible  <bruno@clisp.org>
82648
82649         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82650         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82651
82652 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82653
82654         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82655         netbsd*-gnu*.  Suggested by Robert Millan.
82656
82657 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82658
82659         * modules/group-member: Depend on stdbool.
82660
82661 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82662
82663         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82664
82665 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82666
82667         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82668         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82669         after the 'gnu' in these cases.  This fixes some bugs in the
82670         previous change, and is based on suggestions by Robert Millan.
82671
82672 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82673
82674         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82675         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82676         no longer needed.
82677         * lib/quotearg.c (quotearg_n_options): Use it.
82678         * lib/group-member.c: Include <stdbool.h>.
82679         (free_group_info): Arg is now const *; don't free arg.
82680         (get_group_info): Now returns bool and accepts struct group_info *,
82681         rather than returning a malloc'ed struct group_info *.
82682         All uses changed.  Check for overflow in internal size calculation.
82683
82684         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82685         rather than xmalloc/xrealloc.
82686         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82687         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82688         conformance bug: the old code used a pointer after freeing the
82689         storage that it addressed.
82690         * lib/hash.c (hash_initialize): Simplify the code by using
82691         xalloc_oversized rather than doing it by hand.
82692         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82693         the buffer preserved.  Use free and xmalloc instead.
82694         * lib/quotearg.c (quotearg_n_options): Likewise.
82695         Use a simpler test for size overflow.  Don't use xalloc_oversized
82696         because unsigned int might be wider than size_t (!); this suggests
82697         that we should switch from unsigned int to size_t for slot numbers.
82698
82699 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82700
82701         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82702         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82703         NetBSD kernels.  Requested by Richard Stallman.
82704
82705 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82706
82707         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82708         to allocate the returned structure.  Do not allocate a subarray,
82709         as x2nrealloc will do that.
82710         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82711         instead of xnrealloc.
82712         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82713
82714 2003-10-27  Bruno Haible  <bruno@clisp.org>
82715
82716         * lib/stdbool_.h: Better support for BeOS.
82717
82718 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82719
82720         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82721         now uses inline.
82722
82723 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82724
82725         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82726         callers that want to do their own size-overflow checking.  Include
82727         <stdbool.h>, since xalloc_oversized returns bool.
82728         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82729         to use xalloc_oversized.
82730
82731         Add two functions x2realloc, x2nrealloc, for programs that grow
82732         arrays dynamically by doubling their sizes.
82733         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82734         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82735         New functions.
82736
82737         Port to C99 semantics for 'inline' of external functions.
82738         Bug reported by Bruno Haible.
82739         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82740         with the old contents of xnmalloc.
82741         (xnmalloc, xmalloc): Use it.
82742         (xnrealloc_inline): New static inline function,
82743         with the old contents of xnrealloc.
82744         (xnrealloc, xrealloc): Use it.
82745
82746         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82747         that.
82748
82749 2003-10-26  Karl Berry  <karl@gnu.org>
82750
82751         * config/srclist.txt (COPYING.DOC): no longer available from
82752         /gd/gnuorg; don't know where the ultimate source is.
82753
82754 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82755
82756         Fix several address-calculation bugs in the hash modules,
82757         plus some minor code cleanup.
82758
82759         * lib/hash.h: Include <stdbool.h>, for bool.
82760         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82761         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82762         hash_get_n_entries, hash_get_max_bucket_length,
82763         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82764         hash_rehash): Use size_t rather than unsigned.
82765         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82766         hash_get_n_buckets_used, hash_get_n_entries,
82767         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82768         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82769         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82770         Likewise.
82771         (SIZE_MAX): Define if not defined.
82772         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82773         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82774         hash_print):
82775         Use const * when possible.
82776         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82777         (check_tuning): Fix bug: if tuning parameters were very close to
82778         0 or 1, rounding errors could have caused subscript violations.
82779         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82780         (hash_initialize): Add 'fail:' label
82781         to free table and return NULL, and use it to simplify code.
82782         Use calloc rather than clearing the storage ourself.
82783         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82784         buffer size calculations.
82785         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82786         Include <stddef.h>, for size_t.
82787         * lib/hash-pjw.c (hash_pjw): Likewise.
82788         Switch to method described by Bruno Haible.
82789         Include <limits.h>, for CHAR_BIT.
82790         (SIZE_BITS): New macro.
82791
82792 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82793
82794         * m4/getline.m4 (AM_FUNC_GETLINE):
82795         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82796         hosts.  Problem reported by Derek Robert Price in
82797         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82798         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82799         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82800
82801 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82802
82803         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82804         ceiling the allocation at NMAX bytes rather than silently
82805         discarding input bytes before NMAX is reached.  This makes
82806         a difference only if NMAX exceeds SIZE_MAX / 2.
82807
82808         * lib/obstack.c: Merge from glibc.
82809         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82810         Add libc_hidden_def (_obstack_newchunk).
82811         (_obstack_free) [! defined _LIBC]: Remove.
82812         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82813         a clone of the function body.
82814         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82815         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82816
82817         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82818         glibc.
82819         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82820         arg to memcpy.
82821
82822         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82823         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82824         Don't use lvalue casts, as GCC plans to remove support for them
82825         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82826         was also present in the non-GCC version, indicating that this
82827         code had always been buggy and had never been widely used.
82828         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82829         Use the fast variant of each macro, rather than copying the
82830         definiens of the fast variant; that way, we'll be more likely to
82831         catch future bugs in the fast variants.
82832
82833 2003-10-20  Bruno Haible  <bruno@clisp.org>
82834
82835         * modules/wait-process: New file.
82836         * MODULES.html.sh (func_all_modules): Add wait-process.
82837
82838 2003-10-20  Bruno Haible  <bruno@clisp.org>
82839
82840         * m4/wait-process.m4: New file.
82841
82842 2003-10-20  Bruno Haible  <bruno@clisp.org>
82843
82844         * lib/wait-process.h: New file, from GNU gettext.
82845         * lib/wait-process.c: New file, from GNU gettext.
82846
82847 2003-10-19  Jim Meyering  <jim@meyering.net>
82848
82849         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82850         HPUX 10.20.
82851
82852 2003-10-18  Karl Berry  <karl@gnu.org>
82853
82854         * config/config.guess: update from config.
82855
82856 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82857
82858         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82859         (getgroups): First arg is int, not size_t.
82860         Don't let 'free' mangle errno.
82861
82862 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82863
82864         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82865
82866 2003-10-16  Karl Berry  <karl@gnu.org>
82867
82868         * config/config.{guess,sub}: update from config.
82869
82870 2003-10-16  Jim Meyering  <jim@meyering.net>
82871
82872         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82873         memcpy.
82874
82875 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82876
82877         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82878         (SIZE_MAX): Remove.
82879         (new_exclude, add_exclude_file): Initial size no longer needs to
82880         be a power of 2.
82881         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82882         our own address arithmetic overflow checking.
82883
82884         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82885         (fnmatch): Do not alloca more than 2000 wide characters;
82886         instead, use malloc for large buffers.
82887         Check for address arithmetic overflow, and return -1
82888         with errno set to ENOMEM in that case.
82889         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82890         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82891         instead, return -1.  Check for address arithmetic overflow.
82892
82893 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82894
82895         Handle invalid suffixes and overflow independently, so that
82896         callers can treat them independently as needed.  Fix some bugs in
82897         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82898         suffix for a human-readable blocksize.  The major caller-visible
82899         change is the addition of a new
82900         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82901         that both overflow and suffix chars were found.
82902
82903         * lib/human.c (humblock): Don't check separately for invalid suffix
82904         char; that is xstrtoumax's job (now that its bug is fixed).
82905         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82906         INTMAX_MAX]: New macros.
82907         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82908         TYPE_MAXIMUM): New macros.
82909         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82910         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82911         if overflow occurs, as it's what __strtol does and it's more useful
82912         in practice.
82913         (__xstrtol): If __strtol reports some error other than ERANGE,
82914         reflect it to the caller as LONGINT_INVALID.  If it reports
82915         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82916         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82917         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82918         value.
82919         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82920         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82921         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82922         [defined UINTMAX_MAX]: New macros.
82923
82924 2003-10-14  Bruno Haible  <bruno@clisp.org>
82925
82926         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82927
82928 2003-10-14  Bruno Haible  <bruno@clisp.org>
82929
82930         * m4/sig_atomic_t: New file, from GNU gettext.
82931         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82932
82933 2003-10-14  Bruno Haible  <bruno@clisp.org>
82934
82935         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82936         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82937         Also use volatile where needed.
82938
82939 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82940
82941         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82942         Change maintainer from Bruno Haible to 'all'.
82943
82944 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82945
82946         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82947
82948 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82949
82950         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82951         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82952         and define in terms of the other primitives.
82953         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82954         (SIZE_MAX): Define if not already defined.
82955         (array_size_overflow): New function.
82956         (xalloc_die): Abort instead of exiting if 'error' returns.
82957         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82958         (xmalloc, xrealloc): Use them.
82959         (xcalloc): Check for address arithmetic overflow.
82960         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82961         a bit faster than strcpy.
82962
82963 2003-10-10  Simon Josefsson  <jas@extundo.com>
82964
82965         * modules/argp (Depends-on): Add restrict and strcase.
82966
82967 2003-10-10  Simon Josefsson  <jas@extundo.com>
82968
82969         * m4/argp.m4: Add AC_C_INLINE.
82970
82971 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82972
82973         Merge getpass from libc, plus a few fixes.
82974
82975         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82976         Include <stdbool.h>.
82977         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82978         __fsetlocking to empty.
82979         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82980         do include <bits/libc-lock.h>.
82981         Do not include <fcntl.h>; not needed.
82982         [_LIBC]: Include <wchar.h>.
82983         (NOTCANCEL_MODE): New macro.
82984         (flockfile, funlockfile) [_LIBC]: New macros.
82985         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82986         [!_LIBC]: New macros.
82987         (call_fclose): New function.
82988         (getpass): Use it.  Save tty stream separately; this simplifies the
82989         code and makes it more reliable if stdin happens to equal stdout.
82990         Invoke __fsetlocking on tty.
82991         Handle thread cancellation if needed.
82992         Namespace cleanup (use __tcgetattr, __getline).
82993         Use bool for Booleans.
82994         [USE_IN_LIBIO]: Handle wide streams.
82995         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82996         stream might go where.
82997
82998         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82999         doesn't have to include <stdio.h> before us.
83000         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83001         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83002         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83003         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83004         if not declared, so that we can use getpass.c code from libc without
83005         rewriting it.
83006         (flockfile, ftrylockfile, funlockfile): New macros.
83007
83008 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83009
83010         * modules/getpass: Depend on stdbool.
83011
83012 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83013
83014         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83015
83016 2003-10-07  Karl Berry  <karl@gnu.org>
83017
83018         * config/config.{guess,sub}: update from config.
83019
83020 2003-10-06  Jim Meyering  <jim@meyering.net>
83021             Bruno Haible  <bruno@clisp.org>
83022
83023         This lets translators provide better translations for the
83024         "Written by ..." part of --version output.
83025         * lib/version-etc.h: Include stdarg.h.
83026         (version_etc_copyright): Declare as readonly.
83027         (version_etc): Make this function variadic with a NULL-terminated list
83028         of author name strings.
83029         (version_etc_va): New declaration.
83030         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83031         (version_etc_copyright): Declare as readonly.
83032         (version_etc_va): New function. Provide a different translatable string
83033         for each possible number of authors < 10. Abbreviate when there are 10
83034         authors or more.
83035         (version_etc): Make this function variadic. Call version_etc_va.
83036         Suggestion from Gary V. Vaughan.
83037
83038         * lib/long-options.h (parse_long_options): Change prototype: the
83039         authors string is moved to the end and becomes variadic.
83040         * lib/long-options.c: Include stdarg.h.
83041         (parse_long_options): Make this function variadic, too.
83042         Call version_etc_va, not version_etc.
83043
83044 2003-10-06  Bruno Haible  <bruno@clisp.org>
83045
83046         * modules/version-etc-2: Remove file.
83047         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83048
83049 2003-10-06  Bruno Haible  <bruno@clisp.org>
83050
83051         * modules/fatal-signal: New file.
83052         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83053
83054 2003-10-06  Bruno Haible  <bruno@clisp.org>
83055
83056         * m4/fatal-signal.m4: New file.
83057         * m4/signalblocking.m4: New file, from GNU gettext.
83058
83059 2003-10-06  Bruno Haible  <bruno@clisp.org>
83060
83061         * lib/version-etc-2.h: Remove file.
83062         * lib/version-etc-2.c: Remove file.
83063
83064 2003-10-06  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/fatal-signal.h: New file, from GNU gettext.
83067         * lib/fatal-signal.c: New file, from GNU gettext.
83068
83069 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83070
83071         * README: Rework advice for preventing empty .o files.
83072         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83073         not <sys/types.h>.
83074
83075 2003-10-04  Karl Berry  <karl@gnu.org>
83076
83077         * lib/argp*: update from libc.
83078
83079 2003-10-04  Karl Berry  <karl@gnu.org>
83080
83081         * config/config.{guess,sub}: update from config.
83082
83083 2003-10-02  Bruno Haible  <bruno@clisp.org>
83084
83085         * modules/lchown (Include): Add lchown.h.
83086         * modules/time_r (Include): Use "..." syntax.
83087         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83088
83089 2003-10-01  Simon Josefsson  <jas@extundo.com>
83090
83091         * MODULES.html.sh (func_all_modules): Move gethostname from section
83092         'based on' to section 'lacking' POSIX:2001.
83093
83094 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83095
83096         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83097         to output mode on the same stream.
83098
83099 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83100
83101         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83102         Fix arg typo in previous patch.
83103
83104 2003-09-28  Jim Meyering  <jim@meyering.net>
83105
83106         * lib/error.c: Correct cpp indentation.
83107
83108 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83109
83110         * modules/free: New file.
83111
83112 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83113
83114         * m4/free.m4: New file.
83115
83116 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83117
83118         * lib/minmax.h (MIN, MAX)
83119         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83120         Omit the special code that used __typeof__, since we worry that
83121         it could be more trouble than it's worth.  See:
83122         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83123         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83124
83125         * lib/free.c: New file.
83126
83127 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83128
83129         Trivial fixes to Makefile.am parts of module listings.
83130         * modules/strstr: Append strstr.h to lib_SOURCES.
83131         * modules/strcase: Likewise, for strcase.h.
83132
83133 2003-09-27  Karl Berry  <karl@gnu.org>
83134
83135         * config/mkinstalldirs: update from automake.
83136
83137 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83138
83139         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83140         (error_tail): Do not loop, reallocating temporary buffer, since
83141         the output cannot contain more wide characters than the input
83142         contains bytes, the size must be big enough already.  This avoids
83143         one potential size overflow calculation.  Check for size overflow
83144         when calculating temporary buffer size.  Free temporary buffer
83145         when done, if it was allocated with malloc; this plugs a memory
83146         leak.  Remove casts from void * to pointers, that are no longer
83147         needed now that we're assuming C89 or better.
83148
83149         Merge error changes from glibc.
83150
83151         * lib/error.c, error.h: Update copyright notice header to match glibc.
83152         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83153         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83154         Disable cancellation while printing error.
83155         * lib/error.h: Prepend __ to parameter names.
83156
83157 2003-09-26  Jim Meyering  <jim@meyering.net>
83158
83159         * lib/error.c (error_tail): Move some declarations
83160         into inner scope where the local variables are used.
83161
83162 2003-09-26  Bruno Haible  <bruno@clisp.org>
83163
83164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83165         stpncpy().
83166         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83167
83168 2003-09-26  Bruno Haible  <bruno@clisp.org>
83169
83170         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83171         (stpncpy): Define as alias for gnu_stpncpy.
83172         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83173
83174 2003-09-25  Simon Josefsson  <jas@extundo.com>
83175
83176         * lib/xgetdomainname.h: New file.
83177         * lib/xgetdomainname.c: New file.
83178
83179 2003-09-25  Simon Josefsson  <jas@extundo.com>
83180             Bruno Haible  <bruno@clisp.org>
83181
83182         * modules/getdomainname: New file.
83183         * modules/xgetdomainname: New file.
83184         * MODULES.html.sh (func_all_modules): Add getdomainname,
83185         xgetdomainname.
83186
83187 2003-09-25  Simon Josefsson  <jas@extundo.com>
83188             Bruno Haible  <bruno@clisp.org>
83189
83190         * m4/getdomainname.m4: New file.
83191
83192 2003-09-25  Simon Josefsson  <jas@extundo.com>
83193             Bruno Haible  <bruno@clisp.org>
83194
83195         * lib/getdomainname.h: New file.
83196         * lib/getdomainname.c: New file.
83197
83198 2003-09-25  Karl Berry  <karl@gnu.org>
83199
83200         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83201
83202 2003-09-25  Karl Berry  <karl@gnu.org>
83203
83204         * config/install-sh: update from automake.
83205
83206 2003-09-25  Bruno Haible  <bruno@clisp.org>
83207
83208         * modules/version-etc-2: New file, from modules/version-etc with
83209         modifications.
83210         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83211
83212 2003-09-25  Bruno Haible  <bruno@clisp.org>
83213
83214         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83215         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83216
83217 2003-09-24  Simon Josefsson  <jas@extundo.com>
83218
83219         * modules/xgethostname: Add xgethostname.h.
83220
83221 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83222
83223         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83224         the buffer associated with the argument.  Bug reported by
83225         Simon Josefsson.
83226
83227 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83228
83229         * README: Document assumptions that 'int' is at least 32 bits
83230         wide, that integer arithmetic is 2's complement without overflow,
83231         that there are no holes in integer values, that adding sizes of
83232         two nonoverlapping objects can't overflow, and that all-bits-zero
83233         yields scalar zero.  Fix spelling and capitalization typos.
83234
83235 2003-09-19  Karl Berry  <karl@gnu.org>
83236
83237         * lib/argp.h: update from libc.
83238
83239 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83240
83241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83242         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83243         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83244
83245 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83246
83247         * gnulib-tool: Use "test -h", not "test -L", for portability
83248         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83249         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83250         (sed_extract_prog): Issue s commands one-by-one, rather than
83251         using \| in one s command.
83252
83253 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83254
83255         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83256         input error, instead of returning NULL the next time we are called
83257         (and therefore losing track of errno).
83258
83259 2003-09-16  Bruno Haible  <bruno@clisp.org>
83260
83261         * gnulib-tool (func_create_testdir): Warn about duplicated
83262         dependencies.
83263
83264 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83265
83266         * modules/argmatch, modules/fatal, modules/obstack,
83267         modules/xalloc, modules/xgethostname: Sort dependencies by
83268         importance, not alphabetically.
83269
83270 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83271
83272         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83273         fails, so that the caller gets the proper errno.
83274
83275         * lib/readutmp.c (read_utmp): Likewise.
83276         Check for fstat error.  Close stream and free storage
83277         when failing.
83278
83279 2003-09-14  Karl Berry  <karl@gnu.org>
83280
83281         * config/srclist.txt (strdup.c): disable for c89 changes.
83282
83283 2003-09-14  Jim Meyering  <jim@meyering.net>
83284
83285         * lib/getloadavg.c: Correct cpp indentation.
83286         * lib/strdup.c: Likewise.
83287         * lib/vasnprintf.c: Likewise.
83288
83289 2003-09-14  Bruno Haible  <bruno@clisp.org>
83290
83291         * modules/fwriteerror: New file.
83292         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83293
83294 2003-09-14  Bruno Haible  <bruno@clisp.org>
83295
83296         * lib/fwriteerror.h: New file.
83297         * lib/fwriteerror.c: New file.
83298
83299 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83300
83301         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83302         modules/xgethostname, modules/xalloc: Depend on exit.
83303
83304 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83305
83306         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83307
83308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83309         and AC_MINIX, too, so that their extensions are available.
83310
83311         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83312         This macro has been superseded by gl_BACKUPFILE.
83313
83314         More patches to assume C89 or better.
83315
83316         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83317
83318         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83319         unconditionally.
83320         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83321         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83322         Include <string.h>, <stdlib.h> unconditionally.
83323         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83324         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83325         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83326         headers or for string.h.
83327         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83328         or strtoul.
83329
83330         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83331         headers.
83332         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83333         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83334         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83335         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83336         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83337         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83338         memcpy, memset.
83339         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83340         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83341         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83342         strtol.
83343         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83344         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83345         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83346         strtoul.
83347
83348 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83349
83350         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83351         * lib/obstack.c [!defined _LIBC]: Likewise.
83352         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83353         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83354         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83355
83356         More changes to assume C89 or better.
83357
83358         * lib/error.c (error_tail): Assume vprintf.
83359
83360         * lib/argmatch.c (getenv): Remove decl.
83361         * lib/progreloc.c (get_full_program_name): Define via prototype.
83362         * lib/setenv.c (clearenv): Likewise.
83363         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83364         needed.
83365         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83366         (malloc, memcpy): Remove decls.
83367         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83368         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83369         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83370         (memcpy): Remove macro.
83371         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83372         (__P): Remove.  All uses removed.
83373         (PTR): Remove.  All uses changed to void *.
83374         (CHAR_BIT, NULL): Remove.
83375         (spaces, zeros, memset_space, memset_zero)
83376         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83377         Remove.
83378         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83379         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83380         Define with prototype.
83381         Remove now-unnecessary prototype decl.
83382         (extra_args_spec): Assume ANSI C.  All uses changed.
83383         (extra_args_spec_iso): Remove.
83384         (my_strftime, emacs_strftimeu): Define via prototype.
83385         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83386         unconditionally.
83387         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83388         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83389         (strtoul, strtol): Remove decls.
83390         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83391         LONG_MAX): Remove.
83392         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83393         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83394         (LOCALE_PARAM_PROTO): New macro.
83395         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83396         (INTERNAL (strtol), strtol): Define with a prototype.
83397         (PARAMS): Remove.  All uses removed.
83398         * lib/tempname.c: Include <string.h> unconditionally.
83399         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83400         * lib/xgethostname.c (main): Define with a prototype.
83401         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83402         Include <stdlib.h> unconditionally.
83403         (calloc, malloc, realloc, free): Remove decls.
83404         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83405         Include <stdlib.h> unconditionally.  Sort include file names.
83406         (strtod): Remove.
83407         (xstrtod): Define with a prototype.
83408         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83409         (strtol, strtoul): Remove decls.
83410
83411 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83412
83413         More patches to assume C89 or better.
83414         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83415         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83416         string.h, memchr, STDC_HEADERS.
83417
83418 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83419
83420         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83421         Include <stdlib.h>, <string.h> unconditionally.
83422         Remove now-unnecessary cast to char *.
83423         * lib/strnlen.c: Include <string.h> unconditionally.
83424         * lib/yesno.c (yesno): Define with a prototype.
83425
83426 2003-09-11  Bruno Haible  <bruno@clisp.org>
83427
83428         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83429
83430 2003-09-10  Jim Meyering  <jim@meyering.net>
83431
83432         * lib/error.c: Correct indentation of cpp directives.
83433
83434 2003-09-10  Bruno Haible  <bruno@clisp.org>
83435
83436         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83437         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83438         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83439         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83440         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83441         <stdlib.h> and <string.h> checks.
83442         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83443         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83444
83445 2003-09-10  Bruno Haible  <bruno@clisp.org>
83446
83447         * lib/strcspn.c: Include <string.h> unconditionally.
83448         * lib/strpbrk.c: Include <string.h> unconditionally.
83449         * lib/strstr.c: Include <string.h> unconditionally.
83450         * lib/unicodeio.c: Include <string.h> unconditionally.
83451         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83452         * lib/unsetenv.c: Likewise.
83453         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83454         * lib/yesno.c: Include <stdlib.h> unconditionally.
83455         (rpmatch): Add prototype.
83456
83457 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83458
83459         More patches to assume C89 or better.
83460         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83461         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83462         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83463         or for string.h.
83464         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83465         stdlib.h.
83466         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83467         C headers.
83468         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83469         string.h.
83470         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83471         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83472         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83473         or for string.h.
83474         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83475         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83476         C headers.
83477         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83478         memcpy.
83479         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83480         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83481         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83482         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83483         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83484         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83485         string.h, free.
83486         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83487         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83488         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83489         C headers, or for string.h.
83490         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83491         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83492         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83493         headers, memory.h, stdlib.h, string.h, strings.h.
83494         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83495         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83496         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83497         strchr.
83498         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83499         headers, memory.h, string.h.
83500         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83501         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83502         free.
83503         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83504         headers.
83505         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83506         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83507         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83508         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83509         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83510
83511 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83512
83513         More K&R removal.
83514
83515         * lib/acosl.c (main): Use a prototype.
83516         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83517         tanl.c: Likewise.
83518
83519         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83520
83521         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83522         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83523         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83524         with a prototype.
83525         * lib/getopt.c (const): Remove macro.
83526         Include <string.h> unconditionally.
83527         (my_index): Remove; all uses changed to strchr.
83528         (strlen): Remove decl.
83529         (exchange): Remove forward decl; no longer needed.
83530         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83531         Define with prototype.
83532         * lib/getopt1.c (const): Remove macro.
83533         (getopt_long, getopt_long_only, main): Define with prototype.
83534
83535         * lib/getugroups.c: Include <string.h> unconditionally.
83536
83537         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83538         (getusershell, setusershell, endusershell, readname, main):
83539         Define with prototypes.
83540
83541         * lib/group-member.c: Include group-member.h first.
83542         Include <stdlib.h> unconditionally.
83543
83544         * lib/hard-locale.c: Include hard-locale.h first.
83545         Include <stdlib.h>, <string.h> unconditionally.
83546
83547         * lib/hash.c (free, malloc): Remove decls.
83548         Include <stdlib.h> unconditionally.
83549
83550         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83551         (getenv): Do not declare.
83552
83553         * lib/idcache.c: Include <string.h> unconditionally.
83554
83555         * lib/long-options.c: Include long-options.h first, to test interface.
83556         Include <stdlib.h> unconditionally.
83557
83558         * lib/makepath.c: Include makepath.h first, to test interface.
83559         Include <stdlib.h> and <string.h> unconditionally.
83560
83561         * lib/linebuffer.c: Include <stdlib.h>.
83562         (free): Remove decl.
83563
83564         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83565         stddef.h. rpl_malloc returns void *, not char *.
83566         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83567         prototype.
83568
83569         * lib/md5.h: Include <limits.h> unconditionally.
83570         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83571         (__P): Remove; all uses removed.
83572         * lib/md5.c: Include "md5.h" first.
83573         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83574         md5_buffer, md5_process_bytes, md5_process_block):
83575         Define with prototypes.
83576         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83577         * lib/sha.c: Include "sha.h" first.
83578         Include <stdlib.h>, <string.h> unconditionally.
83579
83580         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83581         * lib/memcmp.c (__ptr_t): Likewise.
83582         * lib/memrchr.c (__ptr_t): Likewise.
83583         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83584         Include <string.h> unconditionally.
83585         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83586         * lib/memchr.c: Include <stdlib.h> unconditionally.
83587         * lib/memchr.c (LONG_MAX): Remove.
83588         * lib/memrchr.c (LONG_MAX): Likewise.
83589         * lib/memchr.c (__memchr): Define via a prototype.
83590         * lib/memrchr.c (__memrchr): Likewise.
83591         * lib/memcmp.c (__P): Remove, and remove all uses.
83592         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83593         Remove forward decls; no longer needed.
83594         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83595         Use types required by C89 in prototype.
83596
83597         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83598         * lib/savedir.c: Likewise.
83599         * lib/mkdir.c (free): Remove decl.
83600         * lib/rmdir.c (rmdir): Define with a prototype.
83601         * lib/savedir.c: Include savedir.h first, to test interface.
83602
83603         * lib/mktime.c (STDC_HEADERS): Remove.
83604         Include <stdlib.h>, <string.h> unconditionally.
83605
83606         * lib/modechange.c: Include <stdlib.h> unconditionally.
83607         (malloc): Remove decl.
83608
83609         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83610         (free): Remove decl.
83611
83612         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83613         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83614         (This type really should be intptr_t, but that's a C99ism.)
83615         (_obstack_memcpy): Remove: all uses changed to memcpy.
83616         Include <string.h> unconditionally.
83617         (struct obstack): Assume __STDC__ for types of members
83618         chunkfun, freefun, extra_arg.
83619         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83620         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83621         obstack_begin, obstack_specify_allocation,
83622         obstack_specify_allocation_with_arg, obstack_chunkfun,
83623         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83624         Remove unprototyped decls and the macros that use them.
83625         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83626         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83627         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83628         (defined __STDC__ && __STDC__)]:
83629         Remove nonprototyped code.
83630         Include <stdlib.h> unconditionally.
83631         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83632         _obstack_allocated_p, _obstack_free, obstack_free,
83633         _obstack_memory_used, print_and_abort):
83634         Define using prototypes.
83635         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83636         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83637         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83638         obstack_next_free, obstack_object_size, obstack_room) [0]:
83639         Remove unused, unprototyped code.
83640
83641         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83642
83643         * lib/physmem.c (physmem_total, physmem_available, main): Define
83644         with prototypes.
83645
83646         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83647         (main): Define with a prototype.
83648
83649         * lib/posixver.c (getenv): Remove decl.
83650
83651         * lib/putenv.c (malloc): Returns void *, not char *.
83652         Include <string.h> unconditionally.
83653         (strchr, memcpy, NULL): Do not define.
83654
83655         * lib/readtokens.c: Include readtokens.h first, to test interface.
83656         Include <stdlib.h>, <string.h> unconditionally.
83657         (init_tokenbuffer): Define with a prototype.
83658
83659         * lib/regex.c (PARAMS): Remove.  All uses removed.
83660         All uses of _RE_ARGS removed, too.
83661         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83662         unconditionally.
83663         (bzero): Assume memset exists.
83664         (memcmp, memcpy, NULL): Remove.
83665         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83666         char, or assignments to local vars of type signed char.
83667         (init_syntax_once, PREFIX(extract_number_and_incr),
83668         PREFIX(print_partial_compiled_pattern),
83669         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83670         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83671         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83672         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83673         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83674         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83675         wcs_compile_range, byte_compile_range, truncate_wchar,
83676         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83677         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83678         count_mbs_length, wcs_re_match_2_internal,
83679         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83680         PREFIX(alt_match_null_string_p),
83681         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83682         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83683         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83684         now-unnecessary declaration, if any.
83685         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83686         regcomp, regexec):
83687         Remove now-unnecessary casts among pointer types.
83688         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83689
83690         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83691         (free): Remove decl.
83692
83693         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83694
83695         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83696         (free): Remove decl.
83697
83698         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83699         * lib/xgetcwd.c: Likewise.
83700
83701         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83702         (free): Remove decl.
83703
83704         * lib/strchrnul.c (strchrnul): Define with a prototype.
83705         Fix bug: c_in was not converted to char before searching.
83706
83707         The following changes are not K&R related:
83708
83709         * lib/group-member.h: Include <sys/types.h>, so that this file is
83710         self-contained.
83711         * lib/makepath.h: Likewise.
83712
83713         * lib/getusershell.c (readname, default_index, line_size, readname):
83714         Use size_t, not int, for sizes.
83715         (readname): If the size overflows, report an error instead of
83716         looping forever.
83717
83718 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83719
83720         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83721         libc.
83722
83723 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83724
83725         * README: New section: portability guidelines.
83726
83727 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83728
83729         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83730         C89 spec.
83731
83732 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83733
83734         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83735
83736 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83737
83738         Assume C89 or better; remove K&R cruft.
83739         A few of these changes were first proposed by Derek Robert Price
83740         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83741
83742         * lib/addext.c: Include <string.h> unconditionally.
83743         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83744         Don't declare getenv or malloc.
83745
83746         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83747         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83748         (NULL): Remove.
83749         (find_stack_direction, alloca): Use prototypes.
83750
83751         * lib/atexit.c (atexit): Define using a prototype.
83752
83753         * lib/basename.c, dirname.c, stripslash.c:
83754         Include <string.h> unconditionally.
83755
83756         * lib/bcopy.c: Include <stddef.h>.
83757         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83758
83759         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83760
83761         * lib/error.h (error, error_at_line, error_print_progname)
83762         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83763         * lib/error.c: Include error.h first, to check interface.
83764         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83765         (VA_START): Remove; all uses changeed to va_start.
83766         (exit, strerror): Remove decls.
83767         (error_print_progname): Prototype uncondionally.
83768         Don't include <errno.h>; no longer needed.
83769         (private_strerror): Remove.
83770         (error_tail): Always define.
83771         (error, error_at_line): Assume C89 or better; always use prototypes.
83772         * lib/fatal.c: Include "fatal.h" first, to test interface.
83773         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83774         (VA_START): Remove; all uses changed to va_start.
83775         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83776         this case.
83777         (exit): Remove decl.
83778         (fatal): Prototype unconditionally.  Assume va_start works.
83779         Abort at end, to pacify gcc.
83780
83781         * lib/euidaccess.c (main): Define with a prototype.
83782
83783         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83784
83785         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83786
83787         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83788         prototypes.
83789         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83790         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83791         (getenv): Remove decl.
83792         (fnmatch): Define using a prototype.
83793         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83794         (FCT): Define using a prototype.
83795
83796         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83797
83798         * lib/gethostname.c: Include <stddef.h>.
83799         (gethostname): Define with prototype.  Length is size_t, not int.
83800
83801 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83802
83803         Assume C89 or better; remove K&R cruft.
83804         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83805         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83806         string.h, getenv, malloc.
83807         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83808         headers.
83809         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83810         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83811         do not check for strerror.
83812         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83813         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83814         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83815         do not check for doprnt or vprintf.
83816         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83817         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83818
83819 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83820
83821         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83822         getversion.c should have been removed then, but was accidentally
83823         preserved.
83824
83825         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83826         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83827
83828 2003-09-08  Karl Berry  <karl@gnu.org>
83829
83830         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83831                 config, forget about prep.
83832
83833         * config/depcomp, missing: update from automake.
83834
83835 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83836
83837         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83838         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83839
83840 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83841
83842         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83843         copy_tm_result.  Bug reported by Simon Josefsson in
83844         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83845
83846 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83847
83848         * m4/time_r.m4: New file.
83849         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83850         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83851         is. Check for timegm declaration.
83852         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83853         Do not check for gmtime_r.
83854         Replace mktime if __mktime_internal does not exist and if mktime
83855         hasn't been replaced already.
83856
83857 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83858
83859         * lib/time_r.c, lib/time_r.h: New files.
83860
83861         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83862         __localtime_r.
83863         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83864         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83865
83866         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83867         __gmtime_r.
83868         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83869         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83870         Include <time_r.h>.
83871
83872         * lib/timegm.c: Switch to glibc implementation, with the following
83873         changes:
83874         [defined HAVE_CONFIG_H]: Include <config.h>.
83875         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83876         (__mktime_internal) [!defined _LIBC]: New decl.
83877         (__gmtime_r) [!defined _LIBC]: New macro and function.
83878         (timegm): Use a prototype, since gnulib assumes C89.
83879         Do not bother declaring tmp to be const, as it's not really usefu.
83880         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83881         (timegm): Declare only if HAVE_DECL_TIMEGM.
83882
83883 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83884
83885         * MODULES.html.sh (func_all_modules): Add time_r.
83886         * modules/time_r: New file.
83887         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83888         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83889
83890 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83891
83892         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83893         Bug reported by Lute Kamstra in
83894         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83895
83896         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83897         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83898         course with correspondingly smaller numbers for tomorrow and
83899         yesterday.  From Tadayoshi Funaba.  Originally installed into
83900         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83901         coreutils merge?).
83902
83903 2003-08-31  Simon Josefsson  <jas@extundo.com>
83904
83905         * modules/timegm: New file.
83906         * MODULES.html.sh (func_all_modules): Add timegm.
83907
83908 2003-08-31  Simon Josefsson  <jas@extundo.com>
83909
83910         * m4/timegm.m4: New file.
83911
83912 2003-08-31  Simon Josefsson  <jas@extundo.com>
83913
83914         * lib/timegm.h: New file.
83915         * lib/timegm.c: New file.  Based on
83916         wget-1.8.2/src/http.c:mktime_from_utc.
83917
83918 2003-08-31  Karl Berry  <karl@gnu.org>
83919
83920         * lib/argp.h: update from libc.
83921
83922 2003-08-28  Bruno Haible  <bruno@clisp.org>
83923
83924         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83925         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83926         followed by '#define fnmatch fnmatch_posix' gives an error.
83927
83928 2003-08-28  Bruno Haible  <bruno@clisp.org>
83929
83930         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83931         warning on QNX, which defines O_BINARY to 000000.
83932
83933 2003-08-27  Jim Meyering  <jim@meyering.net>
83934
83935         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83936         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83937         would fail after 32.  Reported by Danny Levinson.  Details here:
83938         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83939
83940 2003-08-24  Bruno Haible  <bruno@clisp.org>
83941
83942         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83943         MSVC7 <stdio.h> is included later.
83944
83945 2003-08-22  Simon Josefsson  <jas@extundo.com>
83946
83947         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83948
83949 2003-08-20  Karl Berry  <karl@gnu.org>
83950
83951         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83952
83953 2003-08-20  Bruno Haible  <bruno@clisp.org>
83954
83955         * modules/progname: New file.
83956         * MODULES.html.sh (func_all_modules): Add progname.
83957
83958 2003-08-20  Bruno Haible  <bruno@clisp.org>
83959
83960         * lib/progname.h: New file, from GNU gettext.
83961         * lib/progname.c: New file, from GNU gettext.
83962         * lib/progreloc.c: New file, from GNU gettext.
83963
83964 2003-08-19  Jim Meyering  <jim@meyering.net>
83965
83966         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83967         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83968
83969 2003-08-19  Bruno Haible  <bruno@clisp.org>
83970
83971         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83972         more.
83973
83974 2003-08-19  Bruno Haible  <bruno@clisp.org>
83975
83976         * lib/xstrdup.c: Assume <string.h> exists.
83977
83978 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83979
83980         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83981         in makefile rules.
83982
83983 2003-08-18  Jim Meyering  <jim@meyering.net>
83984
83985         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83986         * m4/lib-ld.m4: Likewise.
83987
83988 2003-08-18  Jim Meyering  <jim@meyering.net>
83989
83990         * lib/setenv.h: Indent nested cpp directive.
83991         * lib/vasnprintf.c: Remove trailing blanks.
83992
83993 2003-08-17  Simon Josefsson  <jas@extundo.com>
83994
83995         * modules/xstrndup: New file.
83996         * MODULES.html.sh (func_all_modules): Add xstrndup.
83997
83998 2003-08-17  Simon Josefsson  <jas@extundo.com>
83999
84000         * modules/argp: Fix autoconf macro name. Add more dependencies.
84001
84002 2003-08-17  Simon Josefsson  <jas@extundo.com>
84003
84004         * m4/xstrndup.m4: New file.
84005
84006 2003-08-17  Simon Josefsson  <jas@extundo.com>
84007
84008         * m4/argp.m4: New file.
84009
84010 2003-08-17  Simon Josefsson  <jas@extundo.com>
84011             Bruno Haible  <bruno@clisp.org>
84012
84013         * lib/xstrndup.h: New file.
84014         * lib/xstrndup.c: New file.
84015
84016 2003-08-17  Bruno Haible  <bruno@clisp.org>
84017
84018         * modules/strndup (Files, Include): Add lib/strndup.h.
84019
84020 2003-08-17  Bruno Haible  <bruno@clisp.org>
84021
84022         * modules/euidaccess (Files): Add lib/euidaccess.h.
84023
84024 2003-08-17  Bruno Haible  <bruno@clisp.org>
84025
84026         * lib/strndup.h: New file.
84027
84028 2003-08-17  Bruno Haible  <bruno@clisp.org>
84029
84030         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84031         like AC_GNU_SOURCE.
84032         * modules/extensions (configure.ac): Comment out the invocation of
84033         gl_USE_SYSTEM_EXTENSIONS.
84034
84035 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84036
84037         Merges from coreutils, etc.
84038         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84039         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84040         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84041         fixing a typo.
84042         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84043         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84044
84045 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84046
84047         Document merge from coreutils.
84048         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84049         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84050         * modules/utime: Add m4/utimes-null.m4.
84051
84052 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84053
84054         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84055         space, undoing this 2003-08-12 change:
84056         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84057
84058 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84059
84060         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84061         strtoul.c from libc, undoing this 2003-08-12 change:
84062         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84063
84064 2003-08-16  Jim Meyering  <jim@meyering.net>
84065
84066         Merges from coreutils.
84067         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84068         prefix.  Adjust cache variables similarly.  Create 500 rather than
84069         just 300 files, to exercise bug on Darwin6.5, too.
84070         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84071         $missing_dir.
84072         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84073         AM_SYS_POSIX_TERMIOS.
84074         Reported by mkc@mathdogs.com.
84075         Also change use of $am_cv_sys_posix_termios
84076         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84077         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84078         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84079         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84080         in /proc/mounts until it finds one with matching device number.  This
84081         is unnecessary when the FILE argument *is* a mount point.  No stat call
84082         is necessary in that case.  So, disable the statvfs-testing code on
84083         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84084         as RedHat bug# 84846.
84085         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84086         to 1MB, so as not to render systems with no stack size limit (e.g.,
84087         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84088         Include <unistd.h>.  On some systems,
84089         it is required for the definition of _SC_PAGESIZE.
84090
84091 2003-08-16  Jim Meyering  <jim@meyering.net>
84092
84093         Merge from coreutils.
84094         * lib/xstrtoimax.c: #else #if -> #elif.
84095         * lib/xstrtoumax.c: Likewise.
84096
84097 2003-08-16  Jim Meyering  <jim@meyering.net>
84098
84099         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84100         * m4/utimes.m4: Removed.
84101         * m4/utimes-null.m4: Renamed from utimes.m4.
84102
84103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84104         to 1MB, so as not to render systems with no stack size limit (e.g.,
84105         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84106         Include <unistd.h>.  On some systems,
84107         it is required for the definition of _SC_PAGESIZE.
84108
84109 2003-08-16  Jim Meyering  <jim@meyering.net>
84110         and Paul Eggert  <eggert@cs.ucla.edu>
84111
84112         Merges from coreutils, etc.
84113
84114         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84115         using the latest version from cvs.  This avoids problems with #line
84116         directives using a vendor (Sun) compiler.
84117         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84118         Don't set GETGROUPS_LIB here; now it's
84119         done via getgroups.m4's wrapper function.
84120         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84121         rather than just in sh-util/configure.in, so that the
84122         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84123         same.
84124         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84125         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84126         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84127         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84128         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84129         Remove code that is now done by the newly-required macros.
84130         Append $(EXEEXT) to DF_PROG.
84131         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84132         Do not invoke or require the following here,
84133         since prereq.m4 or some gnulib .m4 now does this for us:
84134         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84135         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84136         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84137         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84138         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84139         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84140         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84141         AC_FUNC_OBSTACK.
84142         Do not replace the following functions, as this is now the job
84143         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84144         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84145         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84146         atexit getpass, strdup, getpagesize.
84147         Replace 'raise'.
84148         Do not check for the following functions, as this is now the job
84149         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84150         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84151         setregid.
84152         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84153         Check for sys/sysctl.h.
84154         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84155         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84156         of checking for ssize_t ourselves.
84157
84158         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84159         Require every macro that gnulib/modules/* suggests for us.
84160         (jm_PREREQ_ADDEXT): New macro.
84161         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84162         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84163
84164         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84165         (gl_PHYSMEM): Use it.
84166         Also check for `table' function.
84167         Check for new headers and functions.
84168         Add check for sys/sysmp.h.
84169         With suggestions from Kaveh Ghazi.
84170         Ignore headers that are present but cannot be compiled.  This
84171         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84172         C 5.4.
84173
84174 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84175
84176         Document merge from coreutils.
84177         * modules/userspec: Depend on posixver.
84178         * modules/strftime: Depend on tzset.
84179
84180 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84181
84182         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84183         rather than tab, after '#' in shell-script copyright notices.
84184         Suggested by Bruno Haible.
84185
84186 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84187
84188         * config/srclist-update: Use three spaces, rather than tab, after '#'
84189         in shell-script copyright notices.  Suggested by Bruno Haible.
84190         Remove unnecessary parenthesization in regular expression.
84191
84192 2003-08-15  Jim Meyering  <jim@meyering.net>
84193
84194         Merge from coreutils.
84195         * lib/xgethostname.c: Include <stdlib.h>.
84196         (xghostname): Don't exit for anything other than memory-related
84197         failure; just return NULL.
84198         * lib/userspec.c: Include "posixver.h".
84199         (parse_user_spec): Accept `.' as a separator only
84200         in pre-POSIX-200112 mode.
84201         * lib/strtoimax.c: Use #elif rather than #else #if.
84202         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84203         Remove function, now that we can rely on a working tzset function.
84204         [!_LIBC]: Ensure that the required autoconf test has been run.
84205         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84206         Use underlying_strftime for %r.
84207         * lib/sha.c: Merge in some clean-up and optimization changes from
84208         glibc.
84209         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84210         Ensure that it is a multiple of 64.
84211         Rearrange loop exit tests so as to avoid performing an
84212         additional fread after encountering an error or EOF.
84213         * lib/realloc.c: Update copyright date.
84214
84215 2003-08-15  Jim Meyering  <jim@meyering.net>
84216         and Paul Eggert  <eggert@twinsun.com>
84217
84218         Merge from coreutils.
84219         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84220         member but strut utmpx does not.  Needed for AIX 4.3.3.
84221         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84222
84223 2003-08-15  Jim Meyering  <jim@meyering.net>
84224         and Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         Merges from coreutils, etc.
84227         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84228         Require gl_FUNC_TZSET_CLOBBER.
84229         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84230         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84231         members.
84232
84233 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84234
84235         Help the merge from coreutils.
84236         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84237         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84238         * m4/tzset.m4: Use it too.
84239
84240 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84241
84242         * modules/tzset: New file.
84243
84244 2003-08-14  Jim Meyering  <jim@meyering.net>
84245
84246         Merges from coreutils.
84247         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84248         variable names, rather than @FNMATCH_H@.
84249         * modules/alloca: Likewise for $(ALLOCA_H).
84250
84251         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84252         the three copies of the literal target, `fnmatch.h'.
84253         * modules/alloca (alloca.h): Likewise.
84254
84255 2003-08-14  Jim Meyering  <jim@meyering.net>
84256
84257         Merge from coreutils.
84258         * m4/tzset.m4: New file.
84259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84260         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84261         otherwise, AIX 5.1 systems would end up using the latter.
84262         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84263         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84264         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84265         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84266
84267 2003-08-14  Jim Meyering  <jim@meyering.net>
84268
84269         Merge from coreutils.
84270         * lib/obstack.h: Whitespace changes.
84271         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84272         and xcalloc return values.
84273         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84274         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84275         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84276         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84277         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84278         error from mntctl.
84279         Use mntctl's return value to drive the entry-processing loop, since
84280         we can't rely on the value of the vmt_length member in the last
84281         entry.  On some systems doing so could result in exhausting
84282         virtual memory.  Based in part on a patch from Mike Jetzer.
84283
84284 2003-08-14  Jim Meyering  <jim@meyering.net>
84285         and Paul Eggert  <eggert@twinsun.com>
84286
84287         Merges from coreutils, plus other fixes.
84288         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84289         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84290         for credits and details.  Thanks to Kaveh Ghazi for helping
84291         to keep these files in sync.
84292         (ARRAY_SIZE): Define it.
84293         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84294         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84295         (memcasecmp): Don't assume size_t fits in unsigned int.
84296         Remove casts and duplicate code.
84297         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84298         (memcpy): Remove definition.
84299         Merge in some clean-up and optimization changes from glibc.
84300         [BLOCKSIZE]: Move definition to top of file.
84301         Ensure that it is a multiple of 64.
84302         Rearrange loop exit tests so as to avoid performing an
84303         additional fread after encountering an error or EOF.
84304         * lib/md5.h (md5_uintptr): Define.
84305         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84306         return to the initial working directory.  Preserve errno
84307         for caller.
84308         * lib/idcache.c: Include "xalloc.h".
84309         (xmalloc, xrealloc): Remove decls.
84310         (getuser): Remove casts no longer required in C89.
84311         * lib/human.c: Include stdio.h, for sprintf.
84312         * lib/group-member.c: Include "xalloc.h".
84313         (xmalloc, xrealloc): Remove decls.
84314         (get_group_info): Remove casts no longer required in C89.
84315         * lib/getusershell.c (readname): Remove casts no longer required in
84316         C89.
84317         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84318         * lib/getline.c: Whitespace fix, from coreutils.
84319
84320 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84321
84322         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84323         Check for isascii.
84324
84325         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84326         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84327         Undo previous (whitespace-only) change.
84328
84329 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84330
84331         * lib/exclude.c: Include <ctype.h>
84332         (IN_CTYPE_DOMAIN): New macro.
84333         (is_space): New fn.
84334         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84335         and empty lines.
84336
84337         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84338         Undo previous (whitespace-only) change.
84339
84340 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84341
84342         * config/srclist-update: Change update back to the old behavior,
84343         leaving whitespace alone.  Use one 'sed' command rather than a
84344         pipeline.
84345         (fixlicense): Now a variable, not a function.
84346         (remove_trailing_blanks): Remove.
84347         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84348         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84349         Undo previous (whitespace-only) change.
84350
84351 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84352
84353         Merge from coreutils.
84354         * modules/euidaccess: Add lib_SOURCES, include for new
84355         file euidaccess.h
84356
84357 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84358
84359         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84360         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84361         Normalize leading white space and remove trailing white space.
84362
84363         Merge from coreutils
84364         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84365
84366         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84367         0.12.1.  These files are now being upgraded automatically by
84368         ../config/srclist-update.
84369
84370 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84371
84372         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84373         Normalize leading white space and remove trailing white space.
84374         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84375         notice, as per ../config/srclist-update.
84376
84377         Merge from coreutils.
84378         * lib/euidaccess.h: New file.
84379         * lib/euidaccess.c: Include it.
84380         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84381         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84382         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84383
84384 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84385
84386         * config/srclist-update: Add copyright notice.
84387         (remove_id_lines, remove_trailing_blanks): New constants.
84388         (fixfile): Use them to normalize spacing a bit in copied files.
84389         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84390         Normalize leading white space and remove trailing white space.
84391
84392         * config/texinfo.tex: Sync with texinfo.
84393
84394         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84395         strtoul.c from libc, to merge coreutils whitespace changes.
84396
84397         * config/srclist.txt: Get the following m4 files from gettext:
84398         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84399         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84400         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84401         wint_t.m4.
84402
84403 2003-08-12  Karl Berry  <karl@gnu.org>
84404
84405         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84406         been made.
84407
84408 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84409
84410         * modules/gnu-source, m4/gnu-source.m4:
84411         Remove; we're assuming Autoconf 2.54 or later now.
84412         Suggested by Bruno Haible.
84413         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84414
84415 2003-08-11  Bruno Haible  <bruno@clisp.org>
84416
84417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84418
84419 2003-08-11  Bruno Haible  <bruno@clisp.org>
84420
84421         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84422         (vasnprintf): Use it instead of wcslen.
84423
84424 2003-08-11  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84427         value to ensure that _Bool promotes to int. Use #define for _Bool when
84428         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84429
84430 2003-08-10  Karl Berry  <karl@gnu.org>
84431
84432         * lib/regex.h: update from libc (whitespace fix).
84433
84434 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84435
84436         Merge some files from coreutils.  These changes were
84437         originally made by Jim Meyering.
84438         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84439         many older Unixes require this.
84440         * lib/alloca.c (alloca): Remove cast to argument of free;
84441         no longer needed in C89.
84442         * lib/alloca_.h, regex.h: Fix white space to match
84443         what GNU indent does.
84444
84445 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84446
84447         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84448         apparently Emacs's Unicode mode got confused before my 2003-08-05
84449         checkin.
84450
84451 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84452
84453         * m4/extensions.m4: New file.
84454         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84455         Require gl_USE_SYSTEM_EXTENSIONS.
84456         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84457         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84458
84459 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84460
84461         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84462         * modules/extensions, modules/gnu-source: New files.
84463         * modules/timespec, modules/unlocked-io: Depend on extensions.
84464
84465 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84466
84467         * modules/restrict: New file.
84468         * MODULES.html.sh (func_all_modules): Add restrict.
84469         * modules/regex: Depend on restrict.
84470
84471 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84472
84473         * m4/restrict.m4: New file.
84474         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84475
84476 2003-08-07  Bruno Haible  <bruno@clisp.org>
84477
84478         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84479         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84480
84481 2003-08-07  Bruno Haible  <bruno@clisp.org>
84482
84483         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84484         makes the module 'getndelim2' compatible with the module 'getline'.
84485
84486 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84487
84488         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84489         byte with "\201" to avoid glitches when editing that source file
84490         with multi-gnome-terminal.
84491
84492 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84493
84494         * lib/bumpalloc.h: Remove.
84495
84496 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84497
84498         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84499         * modules/bumpalloc: Remove.
84500
84501 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84502
84503         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84504         GNU coding style.
84505
84506         Merge from coreutils.
84507         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84508         1. From glibc.
84509         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84510         from Karl Berry, implemented by Jim Meyering.
84511         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84512         from Dmitry V. Levin.
84513         Remove anachronistic cast of xrealloc.
84514         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84515         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84516         type. Otherwise, it wouldn't compile with at least /bin/cc on
84517         ymp-cray-unicos9.0.2.X.
84518         Combine two mostly-identical uses of alloca into one.
84519         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84520
84521 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84522
84523         [From Emacs.]
84524
84525         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84526         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84527         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84528         obsolete NLIST_NAME_UNION.
84529         [__GNU__]: Undef BSD and FSCALE.
84530         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84531
84532 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84533
84534         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84535         an enum type, so that it's guaranteed to promote to int.  See:
84536         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84537
84538 2003-08-03  Karl Berry  <karl@gnu.org>
84539
84540         * config/depcomp: update from automake.
84541
84542 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84543
84544         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84545         (strerror): Don't assume that a printable int fits in 14 bytes.
84546
84547 2003-07-31  Bruno Haible  <bruno@clisp.org>
84548
84549         * modules/getpass-gnu: New file.
84550         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84551
84552 2003-07-31  Bruno Haible  <bruno@clisp.org>
84553
84554         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84555
84556 2003-07-24  Karl Berry  <karl@gnu.org>
84557
84558         * config/missing: update from automake.
84559
84560 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84561             Bruno Haible  <bruno@clisp.org>
84562
84563         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84564         * lib/getline.c (getline, getdelim): Likewise.
84565         Remove _GNU_SOURCE define; now it's defined in config.h through
84566         m4/getline.m4.
84567
84568 2003-07-23  Karl Berry  <karl@gnu.org>
84569
84570         * config/config.sub: update from prep.
84571
84572 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84573
84574         * modules/xalloc (Depends-on): Add exitfail.
84575         * modules/xmemcoll: Likewise.
84576
84577 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84578
84579         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84580         over-parenthesization in macros.
84581
84582         Sync with coreutils.
84583
84584         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84585         required by C99.
84586
84587         Use `exit_failure' for xalloc and xmemcoll instead of their own
84588         private exit-failure variables.
84589         * lib/xalloc.h (xalloc_exit_failure): Remove.
84590         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84591         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84592         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84593         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84594         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84595
84596 2003-07-20  Jim Meyering  <jim@meyering.net>
84597
84598         * modules/closeout (Depends-on): Add exitfail.
84599         Suggestion from Bruno Haible.
84600
84601 2003-07-19  Karl Berry  <karl@gnu.org>
84602
84603         * config/config.sub: update from prep.
84604
84605 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84606
84607         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84608         Remove.
84609         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84610         to test that it can stand by itself.  Include "exitfail.h".
84611         Clients should set exit_failure instead.
84612         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84613
84614 2003-07-18  Bruno Haible  <bruno@clisp.org>
84615
84616         * modules/getndelim2: New file.
84617         * modules/getline: Share files with module getndelim2.
84618         * modules/getnline: Depend on getndelim2 instead of sharing files with
84619         it. Add getnline.c to lib_SOURCES.
84620         * MODULES.html.sh (func_all_modules): Add getndelim2.
84621
84622 2003-07-18  Bruno Haible  <bruno@clisp.org>
84623
84624         * m4/getndelim2.m4: New file.
84625         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84626         invoke gl_PREREQ_GETNDELIM2.
84627         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84628         gl_PREREQ_GETNDELIM2.
84629         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84630         gl_GETNDELIM2.
84631
84632 2003-07-18  Bruno Haible  <bruno@clisp.org>
84633
84634         * lib/getndelim2.h: New file.
84635         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84636         getndelim2.h.
84637         (getndelim2): Make non-static. Change return type to ssize_t.
84638         * lib/getline.h: Change argument names.
84639         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84640         * lib/getnline.c: Include getndelim2.h.
84641
84642 2003-07-18  Andreas Schwab  <schwab@suse.de>
84643
84644         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84645
84646 2003-07-17  Karl Berry  <karl@gnu.org>
84647
84648         * config/config.sub: update from prep.
84649
84650 2003-07-17  Bruno Haible  <bruno@clisp.org>
84651
84652         * modules/getnline: New file.
84653         * modules/getline: Add lib/getndelim2.c to source file list.
84654         * MODULES.html.sh (func_all_modules): Add getnline.
84655
84656 2003-07-17  Bruno Haible  <bruno@clisp.org>
84657
84658         * m4/getnline.m4: New file.
84659
84660 2003-07-17  Bruno Haible  <bruno@clisp.org>
84661
84662         * m4/Makefile.am.in: Remove file.
84663         * m4/Makefile.am: Remove file.
84664         * m4/Makefile.in: Remove file.
84665
84666 2003-07-17  Bruno Haible  <bruno@clisp.org>
84667
84668         * lib/getnline.h: New file.
84669         * lib/getnline.c: New file.
84670         * lib/getndelim2.c: New file, extracted from getline.c.
84671         (getndelim2): Renamed from getdelim2, with added nmax argument.
84672         * lib/getline.c: Include getndelim2.c.
84673         (getdelim2): Moved out to getndelim2.c.
84674         (getline, getdelim): Update.
84675
84676 2003-07-17  Bruno Haible  <bruno@clisp.org>
84677
84678         * lib/Makefile.am: Remove file.
84679         * lib/Makefile.in: Remove file.
84680
84681 2003-07-17  Bruno Haible  <bruno@clisp.org>
84682
84683         * configure.in: Remove file.
84684         * Makefile.in: Remove file.
84685
84686 2003-07-17  Bruno Haible  <bruno@clisp.org>
84687
84688         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84689
84690 2003-07-16  Karl Berry  <karl@gnu.org>
84691
84692         * config/srclist-update: was running fixlicense twice, which caused
84693                 texinfo.tex to be nullified for some reason.  Simplify,
84694                 $gplsrc is no longer needed as far as I can see?
84695
84696 2003-07-16  Jim Meyering  <jim@meyering.net>
84697
84698         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84699
84700 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84701
84702         * config/srclist.txt: Get the following files from gettext-runtime/intl
84703         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84704         ref-del.sin.  From Bruno Haible.
84705         * config/srclist-update (fixfile): Change grep pattern again, since the
84706         previous fix didn't work (there was another trailing $).  Use
84707         '[$]' to escape the $s.
84708
84709 2003-07-15  Karl Berry  <karl@gnu.org>
84710
84711         * lib/vasnprintf.c: update from gettext.
84712
84713 2003-07-15  Karl Berry  <karl@gnu.org>
84714
84715         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84716         gets expanded when surrounded by '$'.
84717
84718 2003-07-15  Jim Meyering  <jim@meyering.net>
84719
84720         * modules/save-cwd: Don't depend on error.  From Derek Price.
84721
84722 2003-07-15  Jim Meyering  <jim@meyering.net>
84723
84724         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84725
84726 2003-07-14  Simon Josefsson  <jas@extundo.com>
84727
84728         * modules/mempcpy: New file.
84729         * MODULES.html.sh (func_all_modules): Add mempcpy.
84730
84731 2003-07-14  Simon Josefsson  <jas@extundo.com>
84732
84733         * m4/mempcpy.m4: New file.
84734
84735 2003-07-14  Simon Josefsson  <jas@extundo.com>
84736
84737         * lib/mempcpy.h: New file.
84738         * lib/mempcpy.c: New file.
84739
84740 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84741
84742         * modules/getdate, modules/posixtm: Depend on mktime.
84743
84744 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84745
84746         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84747         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84748         unicodeio.c, unicodeio.h, unlocked-io.h:
84749         Switch from LGPL to GPL.
84750
84751 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84752
84753         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84754         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84755         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84756         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84757         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84758         updated automatically by ../config/srclist-update.  This changes
84759         their license from LPGL to GPL.
84760
84761 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84762
84763         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84764         assumed to refer to the root of the most recent stable gettext version.
84765         * config/srclistvars.sh: Add defaults for eggert.
84766         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84767         Match "This program" as well as "The program".  This is needed
84768         for gettext.
84769
84770 2003-07-14  Jim Meyering  <jim@meyering.net>
84771
84772         Don't emit diagnostics.  Let callers do that.
84773         * lib/save-cwd.c: Don't include "error.h".
84774         (save_cwd): Don't call error.  Ensure that errno is valid
84775         when returning nonzero.
84776
84777         * lib/save-cwd.h (restore_cwd): Update prototype.
84778         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84779         Simplify.  Don't call error upon failure.  Let callers do that.
84780         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84781         when auditing is enabled.  But don't bother updating the #if.
84782
84783 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84784
84785         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84786         it breaks C++ compilation.
84787         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84788
84789 2003-07-10  Simon Josefsson  <jas@extundo.com>
84790
84791         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84792
84793 2003-07-10  Jim Meyering  <jim@meyering.net>
84794
84795         * m4/clock_time.m4: Remove trailing blank.
84796         * m4/intmax_t.m4: Likewise.
84797
84798 2003-07-10  Jim Meyering  <jim@meyering.net>
84799
84800         * lib/vasnprintf.c: Remove trailing blanks.
84801         Make cpp indentation consistent.
84802
84803 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84804
84805         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84806         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84807         Switch from LGPL to GPL.
84808
84809 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84810
84811         * config/srclist.txt: Sort sublists.  Add
84812         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84813         that differ from gnulib for one reason or another; we'd like this list
84814         to be smaller but for now let's document what we have.
84815
84816 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84817
84818         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84819         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84820         and sweeter "eval x=$x".
84821         * config/srclist.txt: Get lib/argp* from glibc.
84822
84823 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84824
84825         * lib/mktime.c: Fix some boundary cases and remove need for floating
84826         point.
84827
84828         Issue a compile-time diagnostic if time_t is floating point, or if
84829         two's complement arithmetic is not in effect, or if arithmetic
84830         right shift does not propagate the sign.  These assumptions were
84831         all in the original code but they weren't checked.
84832
84833         (TIME_T_MIDPOINT, verify): New macros.
84834         (__isleap): Remove; it has integer overflow problems.
84835         (leapyear): New function, without those problems.
84836         (ydhms_tm_diff): Remove; splitting into two parts.
84837         (ydhms_diff): New function, containing the arithmetic part of
84838         the old ydhms_tm_diff function.  Issue a compile-time
84839         diagnostic if we are not using C99 integer division.
84840         Avoid casts when possible.
84841         (guess_time_tm): New function, containing the checking part of
84842         the old ydhms_tm_diff function.  Return the new value, rather than
84843         the difference between it and the old.  Accept a new argument T
84844         so that *T specifies the old value.  Check for overflow in the result.
84845
84846         (__mktime_internal): Use a time_t offset, not a long int offset.
84847         This undoes the 2003-06-04 change, which is no longer needed now
84848         that we have better overflow checking.
84849         (localtime_offset): Likewise.
84850
84851         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84852         and long are 64-bit but int is only 32-bit.
84853         (ydhms_diff): Use long int to store year1 and yday1.
84854         Issue a compile-time diagnostic if long int is not wide enough.
84855
84856         (__mktime_internal): Use long int to store adjusted year and yday.
84857         Use plain C rather than preprocessor commands, if that doesn't
84858         affect efficiency.
84859         Check for overflow (and try to repair) after each probe
84860         rather than checking only at the very end.  This avoids some bugs
84861         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84862         does not equal GMT offset at maximum time).
84863         Use integer to check for overflow rather than floating point; this
84864         is more portable to non-IEEE hosts, and is a tad faster.
84865         When we detect that we are oscillating between two values,
84866         don't check whether tm_isdst has the requested value, since
84867         we already know the answer.  When tm_isdst has the wrong value,
84868         use a different heuristic to find the right one, based on the
84869         extreme values actually observed in practice in tz2003a,
84870         rather than the (overly optimistic) "previous 3 calendar quarters".
84871
84872         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84873         "T const" to accommodate glibc style.
84874         (check_result): Use less-confusing report format.  "long" -> "long int.
84875         (main): Likewise.
84876         Don't loop if the iteration overflows time_t.
84877         Allow a negative step in the iteration.
84878
84879 2003-07-06  Karl Berry  <karl@gnu.org>
84880
84881         * config/depcomp: update from automake.
84882         * config/config.sub: update from prep.
84883
84884 2003-07-03  Karl Berry  <karl@gnu.org>
84885
84886         * config/config.guess: update from prep.
84887
84888 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84889
84890         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84891         xreadlink.c now includes it unconditionally.
84892
84893 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84894
84895         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84896         having it depend on HAVE_SYS_TYPES_H.
84897
84898 2003-07-01  Bruno Haible  <bruno@clisp.org>
84899
84900         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84901         <sys/types.h> should be sufficient.
84902         Reported by Paul Eggert.
84903
84904 2003-06-26  Karl Berry  <karl@gnu.org>
84905
84906         * config/depcomp: update from automake.
84907
84908 2003-06-26  Bruno Haible  <bruno@clisp.org>
84909
84910         * modules/human: Depend on module stdbool.
84911
84912 2003-06-25  Bruno Haible  <bruno@clisp.org>
84913
84914         * modules/readlink: New file.
84915         * modules/xreadlink: Depend on it.
84916         * MODULES.html.sh (func_all_modules): Add readlink.
84917
84918 2003-06-25  Bruno Haible  <bruno@clisp.org>
84919
84920         * m4/readlink.m4: New file.
84921
84922 2003-06-25  Bruno Haible  <bruno@clisp.org>
84923
84924         * lib/readlink.c: New file.
84925
84926 2003-06-22  Karl Berry  <karl@gnu.org>
84927
84928         * config/srclist.txt: update mkinstalldirs from automake.
84929         * config/mkinstalldirs: update.
84930
84931 2003-06-22  Bruno Haible  <bruno@clisp.org>
84932
84933         Portability to mingw32.
84934         * m4/ssize_t.m4: New file, from GNU gettext.
84935         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84936         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84937
84938 2003-06-22  Bruno Haible  <bruno@clisp.org>
84939
84940         * modules/safe-read: Add m4/ssize_t.m4.
84941         * modules/xreadlink: Add m4/ssize_t.m4.
84942
84943 2003-06-20  Bruno Haible  <bruno@clisp.org>
84944
84945         Assume C89, so PARAMS isn't needed.
84946         * lib/unicodeio.h (PARAMS): Remove.
84947         * lib/unicodeio.c: Don't use PARAMS.
84948
84949 2003-06-18  Karl Berry  <karl@gnu.org>
84950
84951         * config/config.{guess,sub}: update from prep.
84952
84953 2003-06-18  Jim Meyering  <jim@meyering.net>
84954
84955         Merge changes from coreutils.
84956         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84957         Remove explicit declarations of xmalloc and realloc.
84958         Include xalloc.h.
84959         (read_utmp): Remove anachronistic cast of xmalloc.
84960
84961 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84962
84963         Assume C89, so PARAMS isn't needed.
84964         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84965         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84966         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84967         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84968         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84969         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84970         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84971         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84972         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84973         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84974         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84975         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84976         no longer needed. Anyway, config.h should always be included before any
84977         other file.
84978
84979 2003-06-11  Simon Josefsson  <jas@extundo.com>
84980
84981         * modules/sysexits: New file.
84982         * MODULES.html.sh (func_all_modules): Add sysexits.
84983
84984 2003-06-11  Simon Josefsson  <jas@extundo.com>
84985
84986         * lib/sysexit_.h: New file.
84987
84988 2003-06-11  Derek Price  <derek@ximbiot.com>
84989
84990         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84991         necessary.
84992
84993 2003-06-11  Bruno Haible  <bruno@clisp.org>
84994
84995         * m4/sysexits.m4: New file.
84996
84997 2003-06-10  Simon Josefsson  <jas@extundo.com>
84998
84999         * lib/argp.h: New file, from glibc.
85000         * lib/argp-ba.c: New file, from glibc.
85001         * lib/argp-eexst.c: New file, from glibc.
85002         * lib/argp-fmtstream.c: New file, from glibc.
85003         * lib/argp-fmtstream.h: New file, from glibc.
85004         * lib/argp-fs-xinl.c: New file, from glibc.
85005         * lib/argp-help.c: New file, from glibc.
85006         * lib/argp-namefrob.h: New file, from glibc.
85007         * lib/argp-parse.c: New file, from glibc.
85008         * lib/argp-pv.c: New file, from glibc.
85009         * lib/argp-pvh.c: New file, from glibc.
85010         * lib/argp-xinl.c: New file, from glibc.
85011
85012 2003-06-10  Simon Josefsson  <jas@extundo.com>
85013
85014         * modules/strchrnul: New file.
85015
85016 2003-06-10  Simon Josefsson  <jas@extundo.com>
85017
85018         * modules/argp: New file.
85019
85020 2003-06-10  Simon Josefsson  <jas@extundo.com>
85021
85022         * m4/strchrnul.m4: New file.
85023
85024 2003-06-10  Simon Josefsson  <jas@extundo.com>
85025
85026         * lib/strchrnul.h: New file.
85027         * lib/strchrnul.c: New file.
85028
85029 2003-06-10  Bruno Haible  <bruno@clisp.org>
85030
85031         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85032
85033 2003-06-07  Karl Berry  <karl@gnu.org>
85034
85035         * config/config.{guess,sub}: update from prep.
85036
85037 2003-06-07  Jim Meyering  <jim@meyering.net>
85038
85039         * modules/strtod: Use $(...) notation, not @...@ for
85040         AC_REPLACE'd variables.
85041         * modules/localcharset: Likewise.
85042
85043 2003-06-07  Jim Meyering  <jim@meyering.net>
85044
85045         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85046         in place of my name in the copyright comment.
85047         Remove definition and uses of __P.
85048
85049         From coreutils.
85050         * lib/stat.c: Don't declare xmalloc explicitly.
85051         Instead, include "xalloc.h".
85052         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85053         xrealloc, and xcalloc return values.
85054         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85055         Improve comment.
85056         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85057
85058 2003-06-07  Bruno Haible  <bruno@clisp.org>
85059
85060         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85061         avoid AC_CONFIG_LINKS.
85062         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85063         fnmatch.h, to avoid AC_CONFIG_LINKS.
85064         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85065
85066 2003-06-07  Bruno Haible  <bruno@clisp.org>
85067
85068         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85069         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85070         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85071         directory.
85072         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85073         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85074         directory.
85075
85076 2003-06-06  Jim Meyering  <jim@meyering.net>
85077
85078         Merge from coreutils.
85079         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85080         Consolidate declarations and initializations of *_base* locals.
85081
85082         Merge from coreutils.
85083         This avoids a core dump on systems without GNU putenv,
85084         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85085         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85086         (unsetenv): New static function, from GNU libc.
85087         (rpl_putenv): Use it.
85088
85089         * lib/modechange.c: Remove trailing blanks.
85090
85091         Merge from coreutils.
85092         * lib/fsusage.c: Remove declaration of statfs.
85093         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85094
85095         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85096
85097 2003-06-06  Jim Meyering  <jim@meyering.net>
85098
85099         * lib/stdbool_.h: Renamed from stdbool.h.in.
85100
85101 2003-06-06  Jim Meyering  <jim@meyering.net>
85102             Bruno Haible  <bruno@clisp.org>
85103
85104         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85105         Adjust Makefile.am snippet not to redirect directly to target.
85106         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85107
85108 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85109
85110         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85111         mismatch, look in future quarters as well as past.  This fixes a
85112         bug when processing fall-backwards gaps immediately after a long
85113         period of daylight-saving time.
85114
85115         * lib/mktime.c: Assume freestanding C89 or better.
85116         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85117         (__P): Remove; not used.
85118         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85119         (mktime, not_equal_tm, print_tm, check_result,
85120         main): Use prototypes.  Use const * where appropriate.
85121         (main): Fix typo in testing code that uncovered by above changes.
85122         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85123
85124 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85125
85126         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85127         locale.h, localeconv.  This merges changes from coreutils.
85128
85129         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85130         It can be removed after the next Autoconf is released.
85131         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85132         needed.
85133
85134 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85135
85136         * lib/mktime.c: Fix Debian bug 177940
85137         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85138         (localtime_offset): Now long int, not time_t, because we want it
85139         to be guaranteed to be signed.  All uses changed.
85140         (__mktime_internal): If overflow would occur when adding offset,
85141         don't add it.
85142
85143         Merge 'human' changes from coreutils.  Rewrite to support
85144         locale-specific notations like thousands separators.
85145         * lib/human.c: Simplify authorship notice.
85146         Include human.h immediately after config.h.
85147         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85148         <limits.h>: Do not include, since human.h does.
85149         (SIZE_MAX, UINTMAX_MAX): New macros.
85150         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85151         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85152         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85153         (power_letter): Renamed from suffixes.
85154         (generate_suffix_backwards): Remove.
85155         (adjust_value): Now takes int style (because of human.h changes)
85156         and long double value (for greater precision on some platforms).
85157         (group_number): New function.
85158         (human_readable): Use it.  Use integer options, not enum.
85159         Put the options before the sizes in the arg list.
85160         Support all the new options.
85161         The old human_readable function has been removed;
85162         use inttostr.h instead.
85163         (human_readable, default_block_size, humblock):
85164         Use uintmax_t, not int, for block sizes.
85165         (human_readable_inexact, block_size_types): Remove.
85166         (block_size_opts): New constant.
85167         (human_options): Renamed from human_block_size, with new signature
85168         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85169         * lib/human.h: Add copyright and authorship notice.
85170         Include <limits.h> and <stdbool.h> unconditionally.
85171         (PARAMS): Remove.  All uses removed.
85172         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85173         (enum human_inexact_style): Remove tag; now a nameless enum.
85174         (human_floor, human_ceiling, human_round_to_even): Now have
85175         values 2, 0, 1 rather than -1, 1, 0.
85176         (human_group_digits, human_suppress_point_zero, human_autoscale,
85177         human_base_1024, human_SI, human_B): New constants.
85178         (human_readable_inexact, human_block_size): Remove.
85179         (human_readable): Size args are now uintmax_t, not int.
85180         (human_options): New decl.
85181
85182         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85183         unnecessary now that we assume C89 or better.  This change
85184         imported from coreutils.
85185
85186         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85187         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85188         in the 2003-05-30 sync from glibc.
85189
85190         .h files should stand alone, but we shouldn't include <sys/types.h>
85191         if we can get away with just <stddef.h>.
85192
85193         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85194         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85195         rather than <sys/types.h>, as we merely need size_t.
85196         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85197         to get size_t.
85198         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85199         Include <stdio.h>, to get FILE.
85200         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85201         memcasecmp.h has included <stddef.h> and all we need is size_t.
85202         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85203         our interface, instead of including <sys/types.h>
85204
85205 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85206
85207         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85208         now, as glibc mktime is buggy on non-glibc systems.
85209
85210 2003-06-03  Karl Berry  <karl@gnu.org>
85211
85212         * config/config.sub: update from prep.
85213
85214 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85215
85216         [from coreutils]
85217         Fix some minor time-related bugs with POSIX time arguments.
85218         Some valid time stamps were being rejected (notably -1, and
85219         time stamps before 1900 on 64-bit hosts).  And some invalid
85220         time stamps were being accepted, e.g. September 31.
85221
85222         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85223         that we can return (time_t) -1 successfully.
85224         * lib/posixtm.c: Likewise.
85225         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85226         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85227         (t): Remove static var.
85228         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85229         of static var.  All uses changed.
85230         (year): Do not reject years before 1900; they can occur with
85231         64-bit time_t.
85232         (posix_time_parse): Do not check for out-of-range components;
85233         that is now the caller's responsibility, since our checks were
85234         only approximations.
85235         (posixtime): Use mktime to check for out-of-range components,
85236         since it knows them exactly.
85237         If mktime returns (time_t) -1, check whether an error actually occurred
85238         by invoking localtime on -1.
85239         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85240         posixtime failures better.
85241         Improve the test data (in comments only).
85242
85243 2003-06-02  Karl Berry  <karl@gnu.org>
85244
85245         * config/mkinstalldirs (version): new variable.
85246         (--version): new option.
85247         (usage): improve message.
85248
85249 2003-05-30  Karl Berry  <karl@gnu.org>
85250
85251         * lib/mktime.c: update from libc.
85252
85253 2003-05-30  Bruno Haible  <bruno@clisp.org>
85254
85255         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85256         * config/config.rpath: Upgrade to gettext-0.12.1.
85257
85258 2003-05-30  Bruno Haible  <bruno@clisp.org>
85259
85260         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85261         * m4/nls.m4: New file, from gettext-0.12.1.
85262         * m4/po.m4: New file, from gettext-0.12.1.
85263         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85264
85265 2003-05-30  Bruno Haible  <bruno@clisp.org>
85266
85267         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85268         * lib/localcharset.h: Likewise.
85269         * lib/localcharset.c: Likewise.
85270
85271 2003-05-29  Karl Berry  <karl@gnu.org>
85272
85273         * config/config.rpath: update from gettext.
85274
85275 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85276
85277         Assume the headers required for C89 freestanding compilers.
85278         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85279         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85280         * m4/human.m4 (gl_HUMAN): Likewise.
85281         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85282         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85283         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85284         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85285         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85286         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85287
85288 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85289
85290         Assume the headers required for C89 freestanding compilers.
85291         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85292         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85293         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85294         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85295         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85296         define, since <limits.h> is guaranteed to do that.
85297         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85298         * lib/exclude.c: Include <stdbool.h> unconditionally.
85299         * lib/tempname.c: Include <stddef.h> unconditionally.
85300         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85301         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85302         <stddef.h> does that.
85303         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85304         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85305         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85306         needed.
85307         * lib/xstrtol.c: Likewise.
85308         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85309         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85310
85311         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85312         warnings on some platforms.
85313
85314         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85315         arbitrarily.
85316
85317 2003-05-26  Jim Meyering  <jim@meyering.net>
85318
85319         Merge in a change from coreutils:
85320         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85321         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85322         that condition, rather than `-1' which is slightly misleading.
85323         Change the name of the cache variable to have the gl_ prefix.
85324         Prompted by a patch from Richard Dawe for DJGPP.
85325
85326 2003-05-24  Karl Berry  <karl@gnu.org>
85327
85328         * config/config.guess: update from prep.
85329
85330 2003-05-22  Karl Berry  <karl@gnu.org>
85331
85332         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85333
85334 2003-05-20  Karl Berry  <karl@gnu.org>
85335
85336         * config/config.guess: update from prep.
85337
85338 2003-05-18  Karl Berry  <karl@gnu.org>
85339
85340         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85341         might actually be set by the user.
85342
85343         * config/depcomp, install-sh, mdate-sh: update from automake.
85344
85345 2003-05-17  Bruno Haible  <bruno@clisp.org>
85346
85347         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85348         invalid expansion for AC_EGREP_CPP.
85349         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85350         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85351         Suggested by Akim Demaille <akim@epita.fr> in
85352         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85353
85354 2003-05-12  Jim Meyering  <jim@meyering.net>
85355
85356         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85357         the space-padded-by-default conversion specifiers, %e, %k, %l.
85358
85359 2003-05-12  Bruno Haible  <bruno@clisp.org>
85360
85361         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85362         the string is longer than 4 KB.
85363
85364 2003-05-11  Karl Berry  <karl@gnu.org>
85365
85366         * config/config.{guess,sub}: update from prep.
85367
85368 2003-05-09  Bruno Haible  <bruno@clisp.org>
85369
85370         * modules/error: Add m4/strerror_r.m4 to file list.
85371
85372 2003-05-03  Bruno Haible  <bruno@clisp.org>
85373
85374         Upgrade to Unicode-4.0.
85375         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85376         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85377         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85378         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85379         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85380         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85381         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85382         Change width of U+E0100..U+E01EF from 1 to 0.
85383
85384 2003-04-25  Jim Meyering  <jim@meyering.net>
85385
85386         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85387         of type size_t, not int.
85388
85389 2003-04-25  Bruno Haible  <bruno@clisp.org>
85390
85391         * lib/copy-file.c: Include <stddef.h>, for size_t.
85392
85393 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85394
85395         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85396         code which expansion is under static control.  Patch imported from
85397         Akim Demaille's patch to Bison; see
85398         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85399
85400 2003-04-14  Bruno Haible  <bruno@clisp.org>
85401
85402         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85403
85404 2003-04-11  Jim Meyering  <jim@meyering.net>
85405
85406         Merge changes from Coreutils.
85407
85408         2003-03-22  Jim Meyering  <jim@meyering.net>
85409
85410         * lib/strftime.c (widen): Cast alloca return value to proper type.
85411
85412         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85413
85414         From GNU libc.
85415         * lib/strftime.c (my_strftime): Handle very large width
85416         specifications for numeric values correctly.  Improve checks for
85417         overflow.
85418
85419         2003-01-19  Jim Meyering  <jim@meyering.net>
85420
85421         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85422         definitions.
85423         (nl_get_alt_digit) [! defined my_strftime]: Define.
85424         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85425         _nl_get_alt_digit and _nl_get_walt_digit.
85426
85427         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85428         libc. These changes have no effect outside of _LIBC.
85429
85430 2003-04-10  Bruno Haible  <bruno@clisp.org>
85431
85432         * modules/findprog: New file.
85433         * MODULES.html.sh (func_all_modules): Add it.
85434
85435 2003-04-10  Bruno Haible  <bruno@clisp.org>
85436
85437         * m4/findprog.m4: New file.
85438         * m4/eaccess.m4: New file.
85439
85440 2003-04-10  Bruno Haible  <bruno@clisp.org>
85441
85442         * lib/findprog.h: New file, from GNU gettext.
85443         * lib/findprog.c: New file, from GNU gettext.
85444
85445 2003-04-05  Jim Meyering  <jim@meyering.net>
85446
85447         Merge changes from Coreutils.
85448
85449         * lib/exclude.h (PARAMS): Remove definition and uses.
85450         * lib/exclude.c: Remove uses of `PARAMS'.
85451
85452         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85453         Add test-cases for DOS filenames. Declare program_name.
85454         (main): Set up program_name.  Patch by Rich Dawe.
85455
85456         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85457         error from mntctl.
85458         Use mntctl's return value to drive the entry-processing loop, since
85459         we can't rely on the value of the vmt_length member in the last
85460         entry.  On some systems doing so could result in exhausting
85461         virtual memory.  Based in part on a patch from Mike Jetzer.
85462
85463 2003-04-04  Bruno Haible  <bruno@clisp.org>
85464
85465         * modules/linebreak: New file.
85466         * MODULES.html.sh (func_all_modules): Add it.
85467
85468 2003-04-04  Bruno Haible  <bruno@clisp.org>
85469
85470         * m4/linebreak.m4: New file.
85471
85472 2003-04-04  Bruno Haible  <bruno@clisp.org>
85473
85474         * lib/linebreak.h: New file, from GNU gettext.
85475         * lib/linebreak.c: New file, from GNU gettext with slight
85476         modifications.
85477         * lib/lbrkprop.h: New file, from GNU gettext.
85478
85479 2003-04-03  Bruno Haible  <bruno@clisp.org>
85480
85481         * modules/utf8-ucs4: New file.
85482         * modules/utf16-ucs4: New file.
85483         * modules/ucs4-utf8: New file.
85484         * modules/ucs4-utf16: New file.
85485         * MODULES.html.sh (func_all_modules): Add them.
85486
85487 2003-04-03  Bruno Haible  <bruno@clisp.org>
85488
85489         * m4/utf-ucs4.m4: New file.
85490         * m4/ucs4-utf.m4: New file.
85491
85492 2003-04-03  Bruno Haible  <bruno@clisp.org>
85493
85494         * lib/utf8-ucs4.h: New file, from GNU gettext.
85495         * lib/utf16-ucs4.h: New file, from GNU gettext.
85496         * lib/ucs4-utf8.h: New file, from GNU gettext.
85497         * lib/ucs4-utf16.h: New file, from GNU gettext.
85498
85499 2003-04-02  Bruno Haible  <bruno@clisp.org>
85500
85501         * modules/binary-io: New file.
85502         * MODULES.html.sh (func_all_modules): Add it.
85503
85504 2003-04-02  Bruno Haible  <bruno@clisp.org>
85505
85506         * lib/binary-io.h: New file, from GNU gettext.
85507
85508 2003-04-01  Bruno Haible  <bruno@clisp.org>
85509
85510         * modules/pathname: New file.
85511         * MODULES.html.sh (func_all_modules): Add it.
85512
85513 2003-04-01  Bruno Haible  <bruno@clisp.org>
85514
85515         * lib/pathname.h: New file, from GNU gettext.
85516         * lib/concatpath.c: New file, from GNU gettext.
85517
85518 2003-03-30  Bruno Haible  <bruno@clisp.org>
85519
85520         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85521
85522 2003-03-30  Bruno Haible  <bruno@clisp.org>
85523
85524         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85525         function chown() doesn't exist.
85526
85527 2003-03-28  Bruno Haible  <bruno@clisp.org>
85528
85529         * modules/copy-file: New file.
85530         * MODULES.html.sh (func_all_modules): Add it.
85531
85532 2003-03-28  Bruno Haible  <bruno@clisp.org>
85533
85534         * m4/copy-file.m4: New file.
85535
85536 2003-03-28  Bruno Haible  <bruno@clisp.org>
85537
85538         * lib/copy-file.h: New file, from GNU gettext.
85539         * lib/copy-file.c: New file, from GNU gettext.
85540
85541 2003-03-18  Jim Meyering  <jim@meyering.net>
85542
85543         * lib/quote.c (quote_n): Fix typo in comment.
85544
85545 2003-03-18  Bruno Haible  <bruno@clisp.org>
85546
85547         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85548         checking.
85549         * m4/onceonly_2_57.m4: Likewise.
85550
85551 2003-03-17  Bruno Haible  <bruno@clisp.org>
85552
85553         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85554         (m4_quote): Remove macro.
85555         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85556
85557 2003-03-14  Jim Meyering  <jim@meyering.net>
85558
85559         Merge changes from Coreutils.
85560         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85561         to be const, in order to avoid warnings.
85562         (obstack_room): Likewise.
85563         (obstack_empty_p): Likewise.
85564
85565 2003-03-14  Bruno Haible  <bruno@clisp.org>
85566
85567         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85568         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85569
85570 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85571
85572         Merge changes from Bison.
85573         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85574         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85575         when compiling Bison 1.875's `bitset bset = obstack_alloc
85576         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85577         * lib/hash.c: Include <stdbool.h> unconditionally.
85578
85579 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85580
85581         * m4/onceonly.m4 (m4_quote): New macro.
85582         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85583         Quote AC_FOREACH variable-expansions properly.
85584
85585 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85586
85587         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85588
85589 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85590
85591         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85592         Reported by Bruce Becker; see:
85593         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85594
85595 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85596             Bruno Haible  <bruno@clisp.org>
85597
85598         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85599         Reported by John Hughes, see
85600         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85601
85602 2003-02-20  Bruno Haible  <bruno@clisp.org>
85603
85604         * MODULES.html.sh (func_all_modules): Add poll.
85605
85606 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85607
85608         * modules/poll: New file.
85609
85610 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85611
85612         * lib/poll_.h: New file.
85613         * lib/poll.c: New file.
85614
85615 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85616
85617         * m4/poll.m4: New file.
85618
85619 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85620
85621         * modules/mathl: New file.
85622
85623 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85624
85625         * lib/mathl.h: New file.
85626         * lib/acosl.c: New file.
85627         * lib/asinl.c: New file.
85628         * lib/atanl.c: New file.
85629         * lib/ceill.c: New file.
85630         * lib/cosl.c: New file.
85631         * lib/expl.c: New file.
85632         * lib/floorl.c: New file.
85633         * lib/frexpl.c: New file.
85634         * lib/ldexpl.c: New file.
85635         * lib/logl.c: New file.
85636         * lib/sincosl.c: New file.
85637         * lib/sinl.c: New file.
85638         * lib/sqrtl.c: New file.
85639         * lib/tanl.c: New file.
85640         * lib/trigl.c: New file.
85641         * lib/trigl.h: New file.
85642
85643 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85644
85645         * m4/mathl.m4: New file.
85646
85647 2003-02-18  Bruno Haible  <bruno@clisp.org>
85648
85649         * MODULES.html.sh (func_all_modules): Add mathl.
85650
85651 2003-02-17  Bruno Haible  <bruno@clisp.org>
85652
85653         * modules/mkdtemp: New module.
85654         * MODULES.html.sh (func_all_modules): Add it.
85655
85656 2003-02-17  Bruno Haible  <bruno@clisp.org>
85657
85658         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85659
85660 2003-02-17  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/mkdtemp.h: New file, from GNU gettext.
85663         * lib/mkdtemp.c: New file, from GNU gettext.
85664
85665 2003-02-02  Jim Meyering  <jim@meyering.net>
85666
85667         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85668         e.g. glibc-2.2.93.
85669
85670 2003-01-31  Bruno Haible  <bruno@clisp.org>
85671
85672         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85673         'rpl_rename'.
85674         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85675         'rpl_strnlen'.
85676         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85677         'rpl_strtod'.
85678         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85679         'rpl_utime'.
85680
85681 2003-01-31  Bruno Haible  <bruno@clisp.org>
85682
85683         * lib/rename.c: #undef rename before defining rpl_rename.
85684         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85685
85686 2003-01-30  Bruno Haible  <bruno@clisp.org>
85687
85688         * modules/vasnprintf, modules/vasprintf: New modules.
85689         * MODULES.html.sh (func_all_modules): Add them.
85690
85691 2003-01-30  Bruno Haible  <bruno@clisp.org>
85692
85693         * m4/signed.m4: New file, from GNU gettext.
85694         * m4/longdouble.m4: New file, from GNU gettext.
85695         * m4/wchar_t.m4: New file, from GNU gettext.
85696         * m4/wint_t.m4: New file, from GNU gettext.
85697         * m4/vasnprintf.m4: New file.
85698         * m4/vasprintf.m4: New file.
85699
85700 2003-01-30  Bruno Haible  <bruno@clisp.org>
85701
85702         * lib/printf-args.h: New file, from GNU gettext.
85703         * lib/printf-args.c: New file, from GNU gettext.
85704         * lib/printf-parse.h: New file, from GNU gettext.
85705         * lib/printf-parse.c: New file, from GNU gettext.
85706         * lib/vasnprintf.h: New file, from GNU gettext.
85707         * lib/vasnprintf.c: New file, from GNU gettext.
85708         * lib/asnprintf.c: New file, from GNU gettext.
85709         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85710         * lib/vasprintf.c: New file, from GNU gettext.
85711         * lib/asprintf.c: New file, from GNU gettext.
85712
85713 2003-01-29  Bruno Haible  <bruno@clisp.org>
85714
85715         * modules/stpncpy: New module.
85716         * MODULES.html.sh (func_all_modules): Add it.
85717
85718 2003-01-29  Bruno Haible  <bruno@clisp.org>
85719
85720         * m4/stpncpy.m4: New file.
85721
85722 2003-01-29  Bruno Haible  <bruno@clisp.org>
85723
85724         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85725         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85726
85727 2003-01-28  Bruno Haible  <bruno@clisp.org>
85728
85729         * modules/c-ctype: New module.
85730         * MODULES.html.sh (func_all_modules): Add it.
85731
85732 2003-01-28  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85735         Paul Eggert.
85736         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85737         Paul Eggert.
85738
85739 2003-01-27  Bruno Haible  <bruno@clisp.org>
85740
85741         * modules/xsetenv: New module.
85742         * MODULES.html.sh (func_all_modules): Add it.
85743
85744 2003-01-27  Bruno Haible  <bruno@clisp.org>
85745
85746         * lib/xsetenv.h: New file, from GNU gettext.
85747         * lib/xsetenv.c: New file, from GNU gettext.
85748
85749 2003-01-23  Jim Meyering  <jim@meyering.net>
85750
85751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85752         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85753
85754 2003-01-23  Bruno Haible  <bruno@clisp.org>
85755
85756         * modules/minmax: New module.
85757         * MODULES.html.sh (func_all_modules): Add it.
85758
85759 2003-01-23  Bruno Haible  <bruno@clisp.org>
85760
85761         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85762         Eggert.
85763
85764 2003-01-22  Bruno Haible  <bruno@clisp.org>
85765
85766         * modules/exit: New module.
85767         * MODULES.html.sh (func_all_modules): Add it.
85768
85769 2003-01-22  Bruno Haible  <bruno@clisp.org>
85770
85771         * lib/exit.h: New file, from GNU gettext.
85772
85773 2003-01-19  Bruno Haible  <bruno@clisp.org>
85774
85775         * gnulib-tool: Recognize option --extract-maintainer.
85776         (func_get_maintainer): New function.
85777         * modules/*: Add Maintainer entry.
85778
85779 2003-01-16  Jim Meyering  <jim@meyering.net>
85780
85781         * m4/regex.m4: The `regex' struct is both input and output.
85782         Initialize it before each use.  Patch by Tim Waugh.
85783
85784 2003-01-16  Bruno Haible  <bruno@clisp.org>
85785
85786         * MODULES.html.sh: Add a table of contents. Add the module name as
85787         leftmost column. Add hyperlinks.
85788
85789 2003-01-15  Bruno Haible  <bruno@clisp.org>
85790
85791         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85792
85793 2003-01-15  Bruno Haible  <bruno@clisp.org>
85794
85795         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85796         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85797         suffix.
85798
85799 2003-01-15  Bruno Haible  <bruno@clisp.org>
85800
85801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85802
85803 2003-01-15  Bruno Haible  <bruno@clisp.org>
85804
85805         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85806         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85807
85808 2003-01-14  Jim Meyering  <jim@meyering.net>
85809
85810         * lib/same.c (same_name): Tweak a comment.
85811
85812 2003-01-14  Bruno Haible  <bruno@clisp.org>
85813
85814         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85815         when a string comparison is sufficient.
85816
85817 2003-01-14  Bruno Haible  <bruno@clisp.org>
85818
85819         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85820         'unsigned int'.
85821
85822 2003-01-14  Bruno Haible  <bruno@clisp.org>
85823
85824         * lib/hash-pjw.c: Add comment about low quality of this function.
85825
85826 2003-01-13  Bruno Haible  <bruno@clisp.org>
85827
85828         * modules/stpcpy: Distribute lib/stpcpy.h.
85829         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85830
85831 2003-01-13  Bruno Haible  <bruno@clisp.org>
85832
85833         * modules/*: Add a description.
85834         * modules/strpbrk: Fix Makefile.am snippet.
85835         * modules/strtoimax: Fix dependencies.
85836         * modules/strtoumax: Likewise.
85837
85838 2003-01-13  Bruno Haible  <bruno@clisp.org>
85839
85840         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85841         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85842         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85843
85844 2003-01-13  Bruno Haible  <bruno@clisp.org>
85845
85846         * gnulib-tool (func_create_testdir): Store config/* files in the main
85847         directory.
85848         * config.rpath: Move to ...
85849         * config/config.rpath: ... here.
85850         * modules/gettext: Contains config/config.rpath, not config.rpath.
85851         * modules/iconv: Likewise.
85852
85853 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85854
85855         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85856         to avoid collisions with libcurses and libreadline.
85857
85858         * m4/getstr.m4: Remove.
85859         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85860
85861 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85862
85863         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85864         to avoid collisions with libcurses and libreadline.
85865
85866         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85867         * lib/getstr.h, getstr.c: Remove.
85868         * lib/getline.c: Include "getline.h", to check interface.
85869         Move body of old getstr.c here: this defines MIN_CHUNK and
85870         declares getdelim2, which is renamed from getstr.
85871         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85872
85873         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85874         All uses changed.
85875         * lib/linebuffer.h: Likewise.
85876         (readline): Remove backward-compatibility macro.
85877
85878 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85879
85880         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85881         to avoid collisions with libcurses and libreadline.
85882         * getstr: Remove.
85883         * MODULES.html.sh: Remove getstr.
85884         * modules/getline: Depend on unlocked-io, not getstr.
85885
85886 2003-01-12  Jim Meyering  <jim@meyering.net>
85887
85888         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85889
85890 2003-01-10  Bruno Haible  <bruno@clisp.org>
85891
85892         * modules/alloca: Change Makefile.am requirements. Simplify Include
85893         requirements. Add lib/alloca_.h to file list.
85894
85895 2003-01-10  Bruno Haible  <bruno@clisp.org>
85896
85897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85898
85899 2003-01-10  Bruno Haible  <bruno@clisp.org>
85900
85901         * lib/alloca_.h: New file.
85902         * lib/getdate.y: Unconditionally include alloca.h.
85903         * lib/makepath.c: Likewise.
85904         * lib/setenv.c: Likewise.
85905         * lib/userspec.c: Likewise.
85906
85907 2003-01-09  Karl Berry  <karl@gnu.org>
85908
85909         * MODULES.html.sh: include `dirname $0` in PATH, to find
85910         gnulib-tool.
85911
85912 2003-01-09  Bruno Haible  <bruno@clisp.org>
85913
85914         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85915         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85916
85917 2003-01-09  Bruno Haible  <bruno@clisp.org>
85918
85919         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85920
85921 2003-01-09  Bruno Haible  <bruno@clisp.org>
85922
85923         * lib/stdbool.h.in: New file.
85924
85925 2003-01-09  Bruno Haible  <bruno@clisp.org>
85926
85927         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85928         * MODULES.html.sh: Likewise.
85929
85930 2003-01-08  Jim Meyering  <jim@meyering.net>
85931
85932         * lib/full-write.c: Undefine and define-away `const' after inclusion
85933         of errno.h, not before.  Suggestion from Bruno Haible.
85934
85935 2003-01-08  Bruno Haible  <bruno@clisp.org>
85936
85937         * modules/full-read: Depend on full-write.
85938
85939 2003-01-08  Bruno Haible  <bruno@clisp.org>
85940
85941         * lib/safe-read.c: Include specification header first, to ensure its
85942         selfcontainedness.
85943         * lib/full-write.c: Likewise.
85944
85945 2003-01-07  Jim Meyering  <jim@meyering.net>
85946
85947         * lib/full-write.c: Rework so that it may serve to define full_read,
85948         too.
85949         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85950
85951 2003-01-07  Bruno Haible  <bruno@clisp.org>
85952
85953         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85954         <inttypes.h>.
85955         * lib/xstrtol.h: Likewise.
85956         * lib/xstrtoimax.c: Likewise.
85957         * lib/xstrtoumax.c: Likewise.
85958         * lib/human.h: Likewise.
85959
85960         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85961         on systems that have <inttypes.h> but not <stdint.h>.
85962
85963 2003-01-07  Bruno Haible  <bruno@clisp.org>
85964
85965         * MODULES.html.sh: Add copyright notice.
85966         (missed_files): Omit CVS directory entries.
85967         (func_module): Make it work with sed-3.02.
85968         * MODULES.txt: Remove file.
85969
85970 2003-01-06  Jim Meyering  <jim@meyering.net>
85971
85972         * lib/version-etc.c: Update year in translatable copyright string.
85973
85974 2003-01-03  Karl Berry  <karl@gnu.org>
85975
85976         * config/config.{guess,sub}: update from prep.
85977
85978 2003-01-02  Karl Berry  <karl@gnu.org>
85979
85980         * doc/COPYING.DOC: belatedly updated to 1.2.
85981
85982 2003-01-01  Karl Berry  <karl@gnu.org>
85983
85984         * gnulib-tool (func_verify_module): report module name $module in
85985         error message, not $1.
85986         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85987         be created, only if it doesn't exist.
85988         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85989
85990 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85991
85992         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85993
85994 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85995
85996         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85997         memcmp if strcoll doesn't work.
85998
85999 2002-12-31  Bruno Haible  <bruno@clisp.org>
86000
86001         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86002         nonempty.
86003
86004 2002-12-31  Bruno Haible  <bruno@clisp.org>
86005
86006         * lib/memcoll.c (STRCOLL): New macro.
86007         (memcoll): Use it.
86008
86009 2002-12-31  Bruno Haible  <bruno@clisp.org>
86010
86011         * lib/localcharset.h: New file.
86012         * lib/localcharset.c: Include it.
86013         * lib/unicodeio.c: Likewise.
86014
86015 2002-12-31  Bruno Haible  <bruno@clisp.org>
86016
86017         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86018         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86019
86020 2002-12-31  Bruno Haible  <bruno@clisp.org>
86021
86022         * lib/getline.h: Include <stddef.h>, for size_t.
86023
86024         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86025         * lib/unicodeio.c: Don't include <stddef.h>.
86026
86027 2002-12-31  Bruno Haible  <bruno@clisp.org>
86028
86029         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86030         HAVE_TM_ZONE.
86031
86032 2002-12-24  Karl Berry  <karl@gnu.org>
86033
86034         * config/config.guess: update from prep.
86035
86036 2002-12-24  Bruno Haible  <bruno@clisp.org>
86037
86038         General infrasructure.
86039         * m4/README: Rewritten.
86040         * m4/onceonly.m4: New file.
86041         * m4/onceonly_2_57.m4: New file.
86042
86043         Module atexit.
86044         * m4/atexit.m4: New file.
86045
86046         Module strtod.
86047         * m4/strtod.m4: New file.
86048
86049         Module strtol.
86050         * m4/strtol.m4: New file.
86051
86052         Module strtoul.
86053         * m4/strtoul.m4: New file.
86054
86055         Module memchr.
86056         * m4/memchr.m4: New file.
86057
86058         Module memcmp.
86059         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86060         (jm_FUNC_MEMCMP): Invoke it.
86061
86062         Module memcpy.
86063         * m4/memcpy.m4: New file.
86064
86065         Module memmove.
86066         * m4/memmove.m4: New file.
86067
86068         Module memset.
86069         * m4/memset.m4: New file.
86070
86071         Module strcspn.
86072         * m4/strcspn.m4: New file.
86073
86074         Module strpbrk.
86075         * m4/strpbrk.m4: New file.
86076
86077         Module strstr.
86078         * m4/strstr.m4: New file.
86079
86080         Module strerror.
86081         * m4/strerror.m4: New file.
86082
86083         Module mktime.
86084         * m4/mktime.m4: Renamed from jm-mktime.m4.
86085         (gl_PREREQ_MKTIME): New macro.
86086         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86087
86088         Module malloc.
86089         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86090         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86091         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86092
86093         Module realloc.
86094         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86095         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86096         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86097
86098         Module strftime.
86099         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86100         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86101         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86102         gl_TM_GMTOFF.
86103         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86104
86105         Module xalloc.
86106         * m4/xalloc.m4: New file.
86107
86108         Module alloca.
86109         * m4/alloca.m4: New file.
86110
86111         Module putenv.
86112         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86113         (jm_FUNC_PUTENV): Invoke it.
86114
86115         Module setenv.
86116         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86117         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86118         when invoked twice.
86119         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86120         gt_FUNC_SETENV.
86121
86122         Module memrchr.
86123         * m4/memrchr.m4: New file.
86124
86125         Module stpcpy.
86126         * m4/stpcpy.m4: New file.
86127
86128         Module strcase.
86129         * m4/strcase.m4: New file.
86130
86131         Module strdup.
86132         * m4/strdup.m4: New file.
86133
86134         Module strnlen.
86135         * m4/strnlen.m4: New file.
86136
86137         Module strndup.
86138         * m4/strndup.m4: New file.
86139
86140         Module xstrtod.
86141         * m4/xstrtod.m4: New file.
86142
86143         Module xstrtol.
86144         * m4/xstrtol.m4: New file.
86145
86146         Module getdate.
86147         * m4/getdate.m4: New file.
86148
86149         Module unlocked-io.
86150         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86151         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86152         * m4/jm-glibc-io.m4n: Remove file.
86153
86154         Module long-options.
86155         * m4/long-options.m4: New file.
86156
86157         Module md5.
86158         * m4/md5.m4: New file.
86159
86160         Module sha.
86161         * m4/sha.m4: New file.
86162
86163         Module getstr.
86164         * m4/getstr.m4: New file.
86165
86166         Module getline.
86167         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86168         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86169         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86170         simply getline. Infoke gl_PREREQ_GETLINE.
86171
86172         Module obstack.
86173         * m4/obstack.m4: New file.
86174
86175         Module hash.
86176         * m4/hash.m4: New file.
86177
86178         Module readtokens.
86179         * m4/readtokens.m4: New file.
86180
86181         Module strverscmp.
86182         * m4/strverscmp.m4: New file.
86183
86184         Module stdbool.
86185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86186         OSF/1.
86187
86188         Module strtoll.
86189         * m4/strtoll.m4: New file.
86190
86191         Module strtoull.
86192         * m4/strtoull.m4: New file.
86193
86194         Module strtoimax.
86195         * m4/strtoimax.m4: New file.
86196
86197         Module strtoumax.
86198         * m4/strtoumax.m4: New file.
86199
86200         Module xstrtoimax.
86201         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86202         jm_AC_PREREQ_XSTRTOIMAX.
86203         Moved the strtol prerequisites to strtol.m4.
86204         Moved the strtoll prerequisites to strtoll.m4.
86205         Moved the strtoimax prerequisites to strtoimax.m4.
86206
86207         Module xstrtoumax.
86208         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86209         jm_AC_PREREQ_XSTRTOUMAX.
86210         Moved the strtoul prerequisites to strtoul.m4.
86211         Moved the strtoull prerequisites to strtoull.m4.
86212         Moved the strtoumax prerequisites to strtoumax.m4.
86213
86214         Module chown.
86215         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86216         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86217
86218         Module dup2.
86219         * m4/dup2.m4: New file.
86220
86221         Module ftruncate.
86222         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86223         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86224
86225         Module getgroups.
86226         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86227         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86228
86229         Module gettimeofday.
86230         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86231         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86232         gl_PREREQ_GETTIMEOFDAY.
86233
86234         Module mkdir.
86235         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86236         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86237
86238         Module mkstemp.
86239         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86240         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86241         jm_AC_TYPE_UINTMAX_T.
86242         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86243
86244         Module stat.
86245         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86246         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86247
86248         Module lstat.
86249         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86250         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86251
86252         Module timespec.
86253         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86254         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86255         * m4/st_mtim.m4: Indentation.
86256
86257         Module nanosleep.
86258         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86259         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86260         gl_PREREQ_NANOSLEEP.
86261
86262         Module regex.
86263         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86264         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86265         (gl_REGEX): New macro.
86266
86267         Module rename.
86268         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86269         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86270
86271         Module rmdir.
86272         * m4/rmdir.m4: New file.
86273
86274         Module utime.
86275         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86276         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86277         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86278
86279         Module dirname.
86280         * m4/dirname.m4: New file.
86281
86282         Module getopt.
86283         * m4/getopt.m4: New file.
86284
86285         Module unistd-safer.
86286         * m4/unistd-safer.m4: New file.
86287
86288         Module fnmatch.
86289         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86290         declaration.
86291         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86292         (gl_FUNC_FNMATCH_POSIX): New macro.
86293         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86294         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86295         simply fnmatch.
86296
86297         Module exclude.
86298         * m4/exclude.m4: New file.
86299
86300         Module human.
86301         * m4/human.m4: New file.
86302
86303         Module acl.
86304         * m4/acl.m4: Nop.
86305
86306         Module backupfile.
86307         * m4/backupfile.m4: New file.
86308         * m4/d-ino.m4: Indentation.
86309
86310         Module fsusage.
86311         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86312         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86313         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86314
86315         Module dirfd.
86316         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86317         requirements.
86318
86319         Module euidaccess.
86320         * m4/euidaccess.m4: New file.
86321
86322         Module file-type.
86323         * m4/file-type.m4: New file.
86324
86325         Module fileblocks.
86326         * m4/fileblocks.m4: New file.
86327
86328         Module filemode.
86329         * m4/filemode.m4: New file.
86330
86331         Module isdir.
86332         * m4/isdir.m4: New file.
86333
86334         Module lchown.
86335         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86336         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86337
86338         Module makepath.
86339         * m4/makepath.m4: New file.
86340
86341         Module modechange.
86342         * m4/modechange.m4: New file.
86343
86344         Module mountlist.
86345         * m4/mountlist.m4: New file.
86346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86347         Indentation.
86348
86349         Module path-concat.
86350         * m4/path-concat.m4: New file.
86351
86352         Module pathmax.
86353         * m4/pathmax.m4: New file.
86354
86355         Module same.
86356         * m4/same.m4: New file.
86357
86358         Module save-cwd.
86359         * m4/save-cwd.m4: New file.
86360
86361         Module savedir.
86362         * m4/savedir.m4: New file.
86363
86364         Module xgetcwd.
86365         * m4/xgetcwd.m4: New file.
86366         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86367
86368         Module xreadlink.
86369         * m4/xreadlink.m4: New file.
86370
86371         Module safe-read.
86372         * m4/safe-read.m4: New file.
86373
86374         Module safe-write.
86375         * m4/safe-write.m4: New file.
86376
86377         Module closeout.
86378         * m4/closeout.m4: New file.
86379
86380         Module stdio-safer.
86381         * m4/stdio-safer.m4: New file.
86382
86383         Module getpass.
86384         * m4/getpass.m4: New file.
86385
86386         Module getugroups.
86387         * m4/getugroups.m4: New file.
86388
86389         Module group-member.
86390         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86391         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86392
86393         Module idcache.
86394         * m4/idcache.m4: New file.
86395
86396         Module userspec.
86397         * m4/userspec.m4: New file.
86398
86399         Module gettime.
86400         * m4/clock_time.m4: New file.
86401         * m4/gettime.m4: New file.
86402
86403         Module settime.
86404         * m4/settime.m4: New file.
86405
86406         Module posixtm.
86407         * m4/posixtm.m4: New file.
86408
86409         Module gethostname.
86410         * m4/gethostname.m4: New file.
86411
86412         Module canon-host.
86413         * m4/canon-host.m4: New file.
86414
86415         Module gettext.
86416         * m4/codeset.m4: New file, from gettext-0.11.5.
86417         * m4/gettext.m4: New file, from gettext-0.11.5.
86418         * m4/glibc21.m4: New file, from gettext-0.11.5.
86419         * m4/iconv.m4: New file, from gettext-0.11.5.
86420         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86421         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86422         * m4/inttypes.m4: New file, from gettext-0.11.5.
86423         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86424         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86425         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86426         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86427         * m4/lib-link.m4: New file, from gettext-0.11.5.
86428         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86429         * m4/progtest.m4: New file, from gettext-0.11.5.
86430         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86431         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86432         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86433
86434         Module localcharset.
86435         * m4/localcharset.m4: New file.
86436
86437         Module hard-locale.
86438         * m4/hard-locale.m4: New file.
86439
86440         Module mbswidth.
86441         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86442         onceonly macros.
86443         * m4/mbrtowc.m4: Add comment.
86444
86445         Module memcasecmp.
86446         * m4/memcasecmp.m4: New file.
86447
86448         Module memcoll.
86449         * m4/memcoll.m4: New file.
86450
86451         Module unicodeio.
86452         * m4/unicodeio.m4: New file.
86453
86454         Module rpmatch.
86455         * m4/rpmatch.m4: New file.
86456
86457         Module yesno.
86458         * m4/yesno.m4: New file.
86459
86460         Module exitfail.
86461         * m4/exitfail.m4: New file.
86462
86463         Module c-stack.
86464         * m4/c-stack.m4 (gl_C_STACK): New macro.
86465         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86466
86467         Module error.
86468         * m4/error.m4 (gl_ERROR): New macro.
86469         (jm_PREREQ_ERROR): Use onceonly macros.
86470
86471         Module fatal.
86472         * m4/fatal.m4: New file.
86473
86474         Module getloadavg.
86475         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86476         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86477
86478         Module getpagesize.
86479         * m4/getpagesize.m4: New file.
86480
86481         Module getusershell.
86482         * m4/getusershell.m4: New file.
86483
86484         Module physmem.
86485         * m4/physmem.m4: New file.
86486
86487         Module posixver.
86488         * m4/posixver.m4: New file.
86489
86490         Module quotearg.
86491         * m4/quotearg.m4: New file.
86492
86493         Module quote.
86494         * m4/quote.m4: New file.
86495
86496         Module readutmp.
86497         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86498
86499         Module sig2str.
86500         * m4/sig2str.m4: New file.
86501
86502         Other.
86503         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86504         ulonglong.m4.
86505         * m4/intmax_t.m4: New file.
86506         * m4/d-type.m4: Indentation.
86507         * m4/jm-macros.m4: Update.
86508         * m4/prereq.m4 (jm_PREREQ): Update.
86509         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86510         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86511         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86512         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86513         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86514         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86515         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86516         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86517         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86518         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86519         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86520         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86521         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86522         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86523         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86524         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86525         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86526         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86527         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86528
86529 2002-12-24  Bruno Haible  <bruno@clisp.org>
86530
86531         * MODULES.txt: Update according to m4/ changes.
86532
86533         Module gettext.
86534         * config.rpath: New file, from gettext-0.11.5.
86535
86536         * modules/*: New module descriptions.
86537         * gnulib-tool: New file.
86538         * MODULES.html.sh: New file.
86539
86540 2002-12-21  Karl Berry  <karl@gnu.org>
86541
86542         * doc/fdl.texi: update to version 1.2.
86543
86544 2002-12-19  Karl Berry  <karl@gnu.org>
86545
86546         * config/config.guess: update from prep.
86547
86548 2002-12-18  Bruno Haible  <bruno@clisp.org>
86549
86550         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86551         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86552
86553 2002-12-17  Bruno Haible  <bruno@clisp.org>
86554
86555         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86556         stdlib.h, string.h.
86557
86558 2002-12-17  Bruno Haible  <bruno@clisp.org>
86559
86560         * lib/canon-host.c (strdup): Remove unused declaration.
86561
86562         * lib/fsusage.c: Include full_read.h.
86563         (get_fs_usage): Use full_read instead of safe_read.
86564
86565         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86566
86567 2002-12-12  Karl Berry  <karl@gnu.org>
86568
86569         * config/config.guess: update from prep.
86570
86571 2002-12-11  Bruno Haible  <bruno@clisp.org>
86572
86573         * m4/setenv.m4: New file, from gettext-0.11.5.
86574
86575 2002-12-11  Bruno Haible  <bruno@clisp.org>
86576
86577         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86578         not unsetenv().
86579         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86580         modifications:
86581
86582         2002-12-11  Bruno Haible  <bruno@clisp.org>
86583
86584                 * setenv.c (alloca): Fall back to malloc.
86585                 (freea): New macro.
86586                 (setenv): Use freea() to free memory allocated with alloca().
86587
86588         2002-11-13  Bruno Haible  <bruno@clisp.org>
86589
86590                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86591                 function declarations.
86592                 * unsetenv.c (unsetenv): Likewise.
86593
86594         2002-03-04  Bruno Haible  <bruno@clisp.org>
86595
86596                 Portability to AIX 4.3.3.
86597                 * unsetenv.c: New file, extracted from setenv.c.
86598                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86599
86600         2001-12-20  Bruno Haible  <bruno@clisp.org>
86601
86602                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86603                 use malloc instead. For SunOS 4.
86604
86605         2001-12-11  Bruno Haible  <bruno@clisp.org>
86606
86607                 * setenv.c: Declare alloca.
86608                 (compar_fn_t): New typedef.
86609                 (KNOWN_VALUE, STORE_VALUE): Use it.
86610
86611         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86612         setenv.h.
86613
86614 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86615
86616         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86617         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86618         Choose values that are less likely to collide with system fnmatch
86619         options.
86620         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86621         defined (e.g., a pure POSIX system).
86622         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86623         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86624
86625 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86626
86627         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86628         a pain in practice to deal with generated m4 files.  This change
86629         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86630
86631         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86632         and jm-glibc-io.m4, as they are no longer a special case.
86633         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86634         kludge and the auto-generation stuff.  Check only whether the
86635         functions are declared, not whether they exist, since older hosts
86636         that don't declare the functions can't use the optimization anyway.
86637
86638 2002-12-06  Jim Meyering  <jim@meyering.net>
86639
86640         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86641
86642         Merge in changes from libc's misc/error.c, in preparation
86643         for the merge of gnulib's changes back into libc.
86644
86645         * lib/error.c (_): Define only if not already defined.
86646         Move definition to follow all #include directives.
86647         Include unlocked-io.h only if !_LIBC.
86648         [_LIBC]: Include <libio/libioP.h>.
86649         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86650         (fflush): Tweak definition to use INTUSE.
86651         (putc): Define.
86652
86653 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86654
86655         * lib/alloca.c [defined emacs]: Include "lisp.h".
86656         (xalloc_die) [defined emacs]: New macro.
86657         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86658         [! defined emacs]: Include <xalloc.h>.
86659         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86660         (pointer): Typedef to POINTER_TYPE *.
86661         (malloc): Remove decl; we now always use xmalloc.
86662         (alloca): Use old-style definition, since Emacs needs this.
86663         Check for arithmetic overflow when computing combined size.
86664
86665 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86666
86667         Do not generate unlocked-io.h automatically, since it's easier to
86668         maintain it by hand.
86669
86670         * lib/unlocked-io.h: New file, from GNU diffutils,
86671         but with proper copyright notice and attribution.
86672         * lib/gen-uio: Remove.
86673         * lib/Makefile.am: Add copyright notice.
86674         (libfetish_a_SOURCES): Add unlocked-io.h.
86675         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86676         (DISTCLEANFILES, io_functions): Remove macros.
86677         (EXTRA_DIST): Remove gen_uio.
86678         (unlocked-io.h): Remove rule.
86679
86680 2002-12-04  Jim Meyering  <jim@meyering.net>
86681
86682         Reflect the fact that stat.c and lstat.c are no longer generated.
86683         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86684         (DISTCLEANFILES): Likewise.
86685         (EXTRA_DIST): Likewise.
86686         (all_local): Don't depend on stat.c or lstat.c.
86687         (stat.c, lstat.c): Remove rules.
86688         (EXTRA_DIST): Remove xstat.in.
86689
86690         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86691         * lib/stat.c: New file.  Contents mostly from xstat.in.
86692         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86693         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86694
86695         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86696         too.
86697         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86698
86699 2002-12-03  Jim Meyering  <jim@meyering.net>
86700
86701         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86702         but not semantics, to minimize the differences between these two files.
86703         (safe_read): Change comment to mention SAFE_READ_ERROR.
86704
86705         * lib/safe-read.c (IS_EINTR): Define.
86706         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86707
86708 2002-12-02  Jim Meyering  <jim@meyering.net>
86709
86710         * lib/safe-read.c (EINTR): Define.
86711         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86712         (INT_MAX): Provide fallback.
86713         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86714
86715         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86716
86717 2002-12-02  Bruno Haible  <bruno@clisp.org>
86718
86719         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86720         Define, taken from safe-read.c.
86721         (INT_MAX): Provide fallback.
86722         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86723         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86724
86725         * lib/safe-read.c (EINTR): Remove definition.
86726         (safe_read): Don't use EINTR if it is absent.
86727
86728 2002-12-01  Jim Meyering  <jim@meyering.net>
86729
86730         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86731         zero.
86732         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86733
86734 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86735
86736         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86737         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86738         with `if (! (value < limit)) abort ();', for readability.
86739
86740 2002-11-26  Karl Berry  <karl@gnu.org>
86741
86742         * lib/strdup.c: copy from libc again, with jim's ok.
86743         * lib/.cppi-disable: re-add strdup.c
86744
86745 2002-11-25  Karl Berry  <karl@gnu.org>
86746
86747         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86748         instead of "strtol.c".
86749
86750 2002-11-25  Karl Berry  <karl@gnu.org>
86751
86752         * config/install-sh: update from automake for variable quoting, $0 in
86753         error msgs, etc.
86754
86755         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86756         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86757         entry.
86758
86759 2002-11-25  Jim Meyering  <jim@meyering.net>
86760
86761         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86762
86763 2002-11-24  Karl Berry  <karl@gnu.org>
86764
86765         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86766         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86767
86768 2002-11-24  Jim Meyering  <jim@meyering.net>
86769
86770         Update from coreutils:
86771
86772         * lib/mktime.c: Merge in changes from libc.
86773
86774         Avoid a link-time failure on some Linux systems.
86775         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86776         (otherwise).
86777         (__mon_yday): Declare with the STATIC attribute.
86778         (__mktime_internal): Likewise.
86779         Based on a report from Greg Schafer.
86780
86781 2002-11-23  Jim Meyering  <jim@meyering.net>
86782
86783         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86784         Use `unsigned', not `int', as type of index.
86785
86786         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86787
86788         * lib/fsusage.c: Remove unneeded parentheses around operands of
86789         `defined'.
86790
86791 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86792
86793         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86794         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86795         so that we can be included first.
86796         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86797         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86798         No need to include stddef.h or sys/types.h any more.
86799         Surround local include files with "", not "<>".
86800         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86801         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86802         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86803         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86804         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86805         (ISPRINT): Remove; no longer needed now that we assume C89.
86806
86807         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86808         Preserve errno.
86809
86810         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86811         quotearg_char): Use SIZE_MAX rather than
86812         (size_t) -1 when we are talking about "infinity".
86813
86814         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86815
86816 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86817
86818         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86819         hint that one should use `if (! x) abort ();' rather than `assert
86820         (x);', and anyway it's one less thing to worry about configuring.
86821         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86822         hash_rehash, hash_insert): Use abort rather than assert.
86823
86824 2002-11-22  Bruno Haible  <bruno@clisp.org>
86825
86826         * lib/safe-read.h: Assume C89. Add comments.
86827         (safe_read): Change return type to size_t.
86828         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86829         byte counts > SSIZE_MAX correctly.
86830         * lib/safe-write.h: New file.
86831         * lib/safe-write.c: New file.
86832         * lib/full-read.h: New file.
86833         * lib/full-read.c: New file.
86834         * lib/full-write.h: Assume C89. Add comments.
86835         * lib/full-write.c: Include safe-write.h.
86836         (full_write): Rewritten to use safe_write.
86837         Suggested by Jim Meyering and Paul Eggert.
86838
86839 2002-11-21  Jim Meyering  <jim@meyering.net>
86840
86841         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86842
86843         Merge in changes from the coreutils.
86844
86845         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86846         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86847         <stdint.h>.
86848         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86849         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86850         int.  Work more efficiently if X is the same width as uintmax_t.
86851         Do not compare X to -1, to avoid bogus compiler warning.
86852         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86853         Don't assume that f_frsize and f_bsize are the same type.
86854
86855         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86856         warning on FreeBSD.
86857
86858         * lib/makepath.c (make_path): Restore umask *before* creating the final
86859         component.
86860         (make_path): Minor reformatting.
86861
86862         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86863         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86864         HAVE_MALLOC/HAVE_REALLOC.
86865
86866         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86867         dummy ones.  At least on GNU/Linux systems, `auto' means something
86868         else.
86869         From Michael Stone.
86870
86871 2002-11-21  Bruno Haible  <bruno@clisp.org>
86872
86873         Remove case insensitive option matching.
86874         * lib/argmatch.h (argcasematch): Remove declaration.
86875         (ARGCASEMATCH): Remove macro.
86876         (__xargmatch_internal): Remove case_sensitive argument.
86877         (XARGMATCH): Update.
86878         (XARGCASEMATCH): Remove macro.
86879         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86880         case_sensitive argument.
86881         (argcasematch): Remove function.
86882         (__xargmatch_internal): Remove case_sensitive argument.
86883         (main): Use XARGMATCH instead of XARGCASEMATCH.
86884
86885         * lib/xmalloc.c: Change compile-time error message. Add comment about
86886         required autoconf version.
86887
86888 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86889
86890         Merge argmatch cleanups from Bison.  Assume C89.
86891
86892         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86893         Include stdlib.h, for EXIT_FAILURE.
86894         Always include <string.h>, since we assume C89.
86895         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86896         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86897         Include <stddef.h> instead, since it's all we need for size_t.
86898         (PARAMS): Remove.  All uses removed.
86899         (ARRAY_CARDINALITY): Do not bother to #undef.
86900         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86901         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86902         Remove unnecessary parentheses.
86903         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86904         Insert necessary parentheses.
86905         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86906         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86907
86908 2002-11-19  Bruno Haible  <bruno@clisp.org>
86909
86910         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86911         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86912
86913         * lib/mbswidth.h (PARAMS): Remove macro.
86914         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86915         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86916
86917         * lib/gcd.h (PARAMS): Remove macro.
86918         (gcd): Use ANSI C function declarations.
86919         * lib/gcd.c (gcd): Likewise.
86920
86921 2002-11-15  Bruno Haible  <bruno@clisp.org>
86922
86923         * lib/strcspn.c: Include <stddef.h>.
86924         (strcspn): Use ANSI C function declaration. Change return type to
86925         size_t. Use NULL.
86926         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86927         (strpbrk): Use NULL.
86928         * lib/strpbrk.h (PARAMS): Remove macro.
86929         (strpbrk): Use ANSI C function declaration.
86930         * lib/strstr.c: Don't include <sys/types.h>.
86931         * lib/strstr.h (PARAMS): Remove macro.
86932         (strstr): Use ANSI C function declarations.
86933
86934 2002-11-14  Karl Berry  <karl@gnu.org>
86935
86936         * config/mkinstalldirs: `do' on separate line, instead of
86937         `for var; do'.
86938
86939 2002-11-06  Bruno Haible  <bruno@clisp.org>
86940
86941         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86942         * lib/gcd.c (gcd): Likewise.
86943
86944 2002-11-05  Bruno Haible  <bruno@clisp.org>
86945
86946         * lib/gcd.h: New file, from gettext-0.11.5.
86947         * lib/gcd.c: New file, from gettext-0.11.5.
86948
86949 2002-11-05  Bruno Haible  <bruno@clisp.org>
86950
86951         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86952         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86953         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86954         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86955
86956         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86957         <libintl.h>.
86958         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86959         <libintl.h>.
86960
86961         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86962         * lib/human.c: Include gettext.h instead of <libintl.h>.
86963         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86964         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86965         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86966         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86967         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86968         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86969         (textdomain): Remove definition.
86970         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86971
86972         * lib/long-options.c: Remove include of <libintl.h> and definition of
86973         _.
86974         * lib/same.c: Remove include of <libintl.h> and definition of _.
86975
86976 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86977
86978         * lib/config.charset: A few additions for Solaris.
86979
86980 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86981
86982         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86983         * lib/localcharset.c (locale_charset): Declare as extern "C".
86984
86985 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86986
86987         * lib/config.charset: msdos in uk_UA uses CP1125.
86988
86989 2002-11-04  Bruno Haible  <bruno@clisp.org>
86990
86991         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86992         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86993         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86994         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86995         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86996
86997 2002-11-04  Bruno Haible  <bruno@clisp.org>
86998
86999         * lib/localcharset.c (locale_charset): Don't return an empty string.
87000
87001 2002-11-04  Bruno Haible  <bruno@clisp.org>
87002
87003         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87004         aliases.
87005
87006 2002-11-04  Bruno Haible  <bruno@clisp.org>
87007
87008         * lib/config.charset: Update for newest glibc. Add canonical names
87009         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87010
87011 2002-11-04  Bruno Haible  <bruno@clisp.org>
87012
87013         * lib/config.charset: Add support for NetBSD.
87014
87015 2002-11-04  Bruno Haible  <bruno@clisp.org>
87016
87017         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87018
87019 2002-11-01  Bruno Haible  <bruno@clisp.org>
87020
87021         * configure.in: Add AC_CONFIG_AUX_DIR call.
87022         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87023         test/Makefile.
87024         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87025
87026 2002-09-28  Karl Berry  <karl@gnu.org>
87027
87028         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87029         installed automake until the next release, since changes have been
87030         made.
87031
87032 2002-09-25  Karl Berry  <karl@gnu.org>
87033
87034         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87035         * lib/getopt*: copy from libc/posix.
87036         * lib/gettext.h: copy from gettext.
87037         * lib/.cppi-disable: add strdup.c, gettext.h.
87038
87039 2002-09-25  Karl Berry  <karl@gnu.org>
87040
87041         * config/srclist.txt: enable gettext.h check.
87042         * config/config.{guess,sub}: update from prep.
87043         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87044                 from automake 1.6.3.
87045         See srclist*.
87046
87047 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87048
87049         * regex.c (PATFETCH): Remove the translating fetch.
87050         (PATFETCH_RAW): Rename to PATFETCH.
87051         (set_image_of_range): New fun.
87052         (SET_RANGE_TABLE_WORK_AREA): Use it.
87053         (regex_compile): Don't translate the pattern chars so eagerly.
87054         Only do it when inserting an `exactn' bytecode or when handling
87055         a char-range.
87056         (mutually_exclusive_p): Avoid empty statement.
87057
87058 2002-07-06  Jim Meyering  <meyering@lucent.com>
87059
87060         * m4/README: Don't mention Makefile.am.in.
87061         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87062
87063 2002-07-01  Jim Meyering  <meyering@lucent.com>
87064
87065         * lib/c-stack.c: Include sys/time.h.
87066         From Volker Borchert.
87067
87068 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87069
87070         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87071
87072 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87073
87074         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87075         New macro.  Use it uniformly instead of
87076         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87077         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87078         reported by Vin Shelton.
87079
87080 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87081
87082         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87083         Do not assume SA_SIGINFO behavior.
87084         Bug reported by Jim Meyering on NetBSD 1.5.2.
87085
87086 2002-06-22  Jim Meyering  <meyering@lucent.com>
87087
87088         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87090
87091         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87092         now that configure.ac uses AC_GNU_SOURCE.
87093         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87094         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87095
87096         Update to latest tools.  Suggestions from Paul Eggert.
87097         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87098         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87099         * m4/fnmatch.m4: Likewise.
87100         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87101         to AC_HEADER_STDBOOL
87102
87103 2002-06-22  Jim Meyering  <meyering@lucent.com>
87104
87105         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87106         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87107
87108 2002-06-22  Jim Meyering  <meyering@lucent.com>
87109
87110         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87111
87112         * lib/exitfail.c, exitfail.h: Likewise.
87113         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87114
87115         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87116         of fnmatch.h.
87117         (EXTRA_DIST): Add fnmatch_loop.c.
87118         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87119
87120         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87121         * lib/fnmatch.c: Update from diffutils-2.8.2.
87122         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87123         * lib/fnmatch.h: Remove file.
87124
87125 2002-06-21  Jim Meyering  <meyering@lucent.com>
87126
87127         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87128         * m4/mbrtowc.m4: Likewise.
87129
87130         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87131         * m4/mbswidth.m4: Reflect name change:
87132         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87133         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87134
87135         * m4/lib-link.m4: Update from gettext-0.11.2.
87136         * m4/gettext.m4: Likewise.
87137
87138         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87139         From Alfred M. Szmidt.
87140
87141 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87142
87143         * lib/file-type.h: Report an error if neither S_ISREG nor
87144         S_IFREG is defined, instead of using a test specific to glibc
87145         2.2.  This should be safe, since POSIX requires S_ISREG and
87146         Unix Version 7 had S_IFREG.  We don't need to check for
87147         <sys/types.h> since we don't use any symbols that it defines.
87148
87149 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87150
87151         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87152         $@-t, so that each temporary file name is unique and valid in the first
87153         8 characters, for operation under DOS.
87154
87155 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87156
87157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87158
87159 2002-06-15  Jim Meyering  <meyering@lucent.com>
87160
87161         Work even with DJGPP 2.03, which lacks support for symlinks.
87162         From Richard Dawe.
87163         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87164         is defined.
87165         * lib/lchown.c (S_ISLNK): Likewise.
87166
87167 2002-06-15  Jim Meyering  <meyering@lucent.com>
87168
87169         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87170         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87171         have been included before this file.
87172
87173 2002-06-14  Jim Meyering  <meyering@lucent.com>
87174
87175         * lib/file-type.h: Use the version from diffutils-2.8.2.
87176         * lib/file-type.c: Likewise.
87177
87178 2002-06-07  Jim Meyering  <meyering@lucent.com>
87179
87180         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87181         They're needed at least for NetBSD 1.5.2.
87182         ($statxfs_includes): Include those same headers.
87183         ($statxfs_includes): Include sys/vfs.h if available.
87184         ($statxfs_includes): Likewise for sys/statvfs.h.
87185         Check for the following members in both structs statfs and statvfs:
87186         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87187
87188 2002-06-01  Jim Meyering  <meyering@lucent.com>
87189
87190         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87191         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87192
87193 2002-05-28  Jim Meyering  <meyering@lucent.com>
87194
87195         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87196         Reported by Volker Borchert.
87197
87198 2002-05-27  Jim Meyering  <meyering@lucent.com>
87199
87200         Fix a problem seen only on nonconforming systems whereby ls.c's
87201         use of localtime, and then of gettimeofday would cause trouble:
87202         the localtime call used to initialize rpl_gettimeofday's save
87203         mechanism would clobber ls's current local time information so
87204         that in any long listing the first file would always be listed
87205         with date 1970-01-01.  Analysis by Volker Borchert.
87206
87207         * lib/gettimeofday.c (localtime): Undefine.
87208         (rpl_localtime): New function.
87209
87210 2002-05-27  Jim Meyering  <meyering@lucent.com>
87211
87212         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87213         localtime.
87214
87215         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87216         use the replacement function; it wouldn't resolve at link time.
87217         Reported by Volker Borchert.
87218
87219 2002-05-22  Jim Meyering  <meyering@lucent.com>
87220
87221         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87222         file-type.h.
87223         * lib/file-type.h: New file.
87224         * lib/file-type.c (file_type): New file/function.  Extracted from
87225         diffutils.
87226
87227 2002-04-30  Jim Meyering  <meyering@lucent.com>
87228
87229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87230
87231 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87232
87233         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87234
87235 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87236
87237         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87238         Do not check for alloca.h (no longer used) or stdbool.h (was never
87239         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87240
87241 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87242
87243         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87244
87245 2002-04-29  Jim Meyering  <meyering@lucent.com>
87246
87247         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87248         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87249         Use AC_FUNC_STRNLEN here instead.
87250
87251         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87252         With autoconf-2.53a, it's part of AC_PROG_CC.
87253
87254 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87255
87256         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87257         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87258
87259 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87260
87261         * lib/sig2str.h, lib/sig2str.c: New files.
87262         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87263
87264 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87265
87266         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87267         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87268         of 127, since 64 is the largest conceivable number for ancient
87269         nonstandard hosts.
87270         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87271
87272 2002-04-28  Jim Meyering  <meyering@lucent.com>
87273
87274         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87275
87276 2002-04-24  Jim Meyering  <meyering@lucent.com>
87277
87278         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87279         (jm_PREREQ): Use it.
87280
87281         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87282         mach/mach.h fcntl.h.
87283         Check for this function: setlocale.
87284
87285 2002-04-24  Jim Meyering  <meyering@lucent.com>
87286
87287         * lib/gettext.h: New file, from Gettext.
87288         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87289         (libfetish_a_SOURCES): Add gettext.h.
87290
87291 2002-04-16  Jim Meyering  <meyering@lucent.com>
87292
87293         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87294         ut_pid, ut_id, ut_exit.
87295
87296 2002-04-16  Jim Meyering  <meyering@lucent.com>
87297
87298         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87299         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87300         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87301
87302 2002-04-12  Jim Meyering  <meyering@lucent.com>
87303
87304         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87305         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87306         existence of the getmntinfo function.  Needed for Darwin 5.3.
87307
87308         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87309         This is necessary at least on Darwin 5.3.
87310
87311         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87312         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87313         strnlen.o in the library, and that makes some versions of ranlib
87314         object.
87315
87316 2002-04-12  Jim Meyering  <meyering@lucent.com>
87317
87318         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87319
87320 2002-04-09  Jim Meyering  <meyering@lucent.com>
87321
87322         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87323         to be more precise.  Rather than saying we're checking whether the
87324         function `works', say what we're testing.
87325         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87326         Reported by Bruno Haible.
87327
87328 2002-03-10  Jim Meyering  <meyering@lucent.com>
87329
87330         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87331         Suggestion from Santiago Vila.
87332
87333 2002-03-08  Jim Meyering  <meyering@lucent.com>
87334
87335         * lib/rename.c: Mention that this wrapper is needed also on
87336         mips-dec-ultrix4.4 systems.
87337
87338 2002-03-02  Jim Meyering  <meyering@lucent.com>
87339
87340         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87341         not HAVE_CLOCK_SETTIME.
87342
87343 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87344
87345         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87346         Check for clock_settime.
87347
87348 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87349
87350         * lib/nanosleep.h: Rename to....
87351         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87352
87353         * lib/gettime.c: New file.
87354         * lib/settime.c: New file.
87355         * lib/stime.c: Remove.
87356
87357         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87358         timespec.h.  Remove nanosleep.h.
87359
87360 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87361
87362         * m4/acl.m4: New file.
87363         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87364         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87365
87366 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87367
87368         * lib/acl.c, lib/acl.h: New files.
87369         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87370
87371 2002-02-24  Jim Meyering  <meyering@lucent.com>
87372
87373         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87374         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87375         cause trouble.  Reported by Nelson Beebe.
87376
87377 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87378
87379         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87380         compilers that don't know that xalloc_die never returns.
87381
87382 2002-02-20  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/getdate.c: Regenerate using bison-1.33.
87385
87386 2002-02-17  Jim Meyering  <meyering@lucent.com>
87387
87388         * config/config.guess (main): Don't use `head -1'; it's no longer
87389         portable. Use `sed 1q' instead.
87390
87391 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87392
87393         * m4/codeset.m4: Upgrade to gettext-0.11.
87394         * m4/gettext.m4: Upgrade to gettext-0.11.
87395         * m4/glibc21.m4: Upgrade to gettext-0.11.
87396         * m4/iconv.m4: Upgrade to gettext-0.11.
87397         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87398         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87399         * m4/lib-ld.m4: New file, from gettext-0.11.
87400         * m4/lib-link.m4: New file, from gettext-0.11.
87401         * m4/lib-prefix.m4: New file, from gettext-0.11.
87402         * m4/progtest.m4: Upgrade to gettext-0.11.
87403
87404 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87405
87406         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87407         (jm_PREREQ): Use it.
87408
87409 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87410
87411         * lib/posixver.c, lib/posixver.h: New files.
87412         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87413
87414 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87415             Bruno Haible  <bruno@clisp.org>
87416
87417         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87418         (fwrite_success_callback): New declaration.
87419         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87420         print_unicode_char. Call failure callback instead of error.
87421         (fwrite_success_callback): New function.
87422         (exit_failure_callback): New function.
87423         (fallback_failure_callback): New function.
87424         (print_unicode_char): Call unicode_to_mb.
87425
87426 2002-01-26  Jim Meyering  <meyering@lucent.com>
87427
87428         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87429         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87430
87431 2002-01-26  Jim Meyering  <meyering@lucent.com>
87432
87433         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87434
87435 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87436
87437         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87438
87439 2002-01-22  Jim Meyering  <meyering@lucent.com>
87440
87441         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87442         Otherwise, some versions of automake would omit the rule that makes
87443         Makefile from Makefile.in.
87444
87445 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87446
87447         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87448         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87449         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87450         (memcoll): Set errno to zero if there is no error.
87451
87452         * lib/quotearg.c (quotearg_buffer_restyled):
87453         Fix bug with quoting buffers containing NUL when backslashing escapes.
87454         This bug was exposed by the other changes in this patch.
87455         (quotearg_n_options): New arg ARGSIZE.
87456         All callers changed.
87457         (quoting_options_from_style): New function.
87458         (quotearg_n_style): Use it.
87459         (quotearg_n_style_mem): New function.
87460
87461         * lib/quotearg.h (quotearg_n_style_mem): New function.
87462
87463 2002-01-19  Jim Meyering  <meyering@lucent.com>
87464
87465         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87466         Remove useless quotes: DF_PROG="df".
87467         * m4/strnlen.m4: New file.
87468
87469 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87470
87471         * lib/backupfile.c (ISDIGIT): Comment fix.
87472         * lib/getdate.y (ISDIGIT): Likewise.
87473         * lib/posixtm.c (ISDIGIT, year): Likewise.
87474         * lib/strverscmp.c (ISDIGIT): Likewise.
87475         * lib/userspec.c (ISDIGIT): Likewise.
87476
87477 2002-01-16  Jim Meyering  <meyering@lucent.com>
87478
87479         * lib/getdate.y: Add three semicolons, each just before a closing
87480         brace. Bison (as of version 1.31) no longer papers over that mistake.
87481
87482 2002-01-05  Jim Meyering  <meyering@lucent.com>
87483
87484         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87485
87486 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87487
87488         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87489         not silently exit merely because the output buffer happens to
87490         have nothing pending.
87491
87492 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87493
87494         See the big note in ../ChangeLog.
87495         * lib/human.c (suffixes): Prefer K to k for 1024.
87496         (generate_suffix_backwards): New function.
87497         (human_readable_inexact): Use it.
87498         * lib/xstrtol.c (__xstrtol): If there is no number but there
87499         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87500         Accept 'K' as well as 'k'.
87501
87502 2001-12-15  Jim Meyering  <meyering@lucent.com>
87503
87504         * lib/regex.h (__restrict_arr): Update from libc.
87505
87506         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87507         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87508         (STREQ): Define.
87509
87510 2001-12-14  Jim Meyering  <meyering@lucent.com>
87511
87512         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87513         Suggestion from Bruno Haible.
87514
87515 2001-12-10  Jim Meyering  <meyering@lucent.com>
87516
87517         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87518         xrealloc, Instead, include "xalloc.h".
87519         (initbuffer): Don't cast xmalloc return value to char*.
87520         (readline): Reword comment.
87521         Don't cast xrealloc return value to char*
87522         Return NULL, not 0.
87523
87524 2001-12-09  Jim Meyering  <meyering@lucent.com>
87525
87526         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87527         about `signed and unsigned type in conditional expression'.
87528         * lib/posixtm.c (posix_time_parse): Likewise.
87529
87530         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87531
87532         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87533         to avoid a pedantic warning.
87534
87535         * lib/getstr.c: Don't include assert.h.
87536         (getstr): Remove warning-evoking assertions.
87537         Return -1 if offset parameter is out of bounds.
87538         Change the type of a local from int to size_t.
87539
87540         * lib/strftime.c (my_strftime_localtime_r): Include this function
87541         definition in the `#if ! HAVE_TM_GMTOFF' block.
87542
87543         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87544         Include xalloc.h instead.
87545
87546 2001-12-02  Jim Meyering  <meyering@lucent.com>
87547
87548         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87549         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87550         included.
87551
87552         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87553         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87554
87555 2001-11-30  Akim Demaille  <akim@epita.fr>
87556
87557         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87558         before being defined.
87559
87560 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87561
87562         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87563         First arg is int, not unsigned.
87564         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87565         (SIZE_MAX, UINT_MAX): New macros.
87566         (quotearg_n_options): Abort if N is negative.
87567         Avoid overflow check on hosts where size_t is 64 bits and int
87568         is 32 bits, as overflow is impossible there.
87569         Fix off-by-one typo that caused unnecessary reallocation.
87570
87571 2001-11-27  Jim Meyering  <meyering@lucent.com>
87572
87573         * lib/tempname.c: Merge with version from libc.
87574         * lib/regex.c: Likewise.
87575
87576         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87577         systems for which STDC_HEADERS is 0, it was not included, resulting in
87578         a warning about an integer-to-pointer conversion problem with getenv.
87579         Reported by Volker Borchert.
87580
87581 2001-11-26  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/gtod.h: Remove file.
87584         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87585         * lib/gettimeofday.c: Don't include gtod.h.
87586         (GTOD_init): Remove function.
87587         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87588         Suggestion from Volker Borchert.
87589
87590 2001-11-23  Jim Meyering  <meyering@lucent.com>
87591
87592         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87593         it.
87594         * lib/hash.c (struct hash_table): Define it here instead.
87595
87596 2001-11-22  Jim Meyering  <meyering@lucent.com>
87597
87598         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87599
87600 2001-11-20  Jim Meyering  <meyering@lucent.com>
87601
87602         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87603         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87604
87605 2001-11-19  Jim Meyering  <meyering@lucent.com>
87606
87607         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87608         directory.  Use "conftestXXXXXX" as the template.
87609         Suggestion from Paul Eggert.
87610
87611         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87612         immediately, so the test doesn't mistakenly hit the max-open-files
87613         limit.
87614
87615 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87616
87617         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87618         (TEMPORARIES): New macro.
87619         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87620         removes an artificial limitation (e.g. HP-UX 10.20, where
87621         TMP_MAX is 17576).
87622
87623 2001-11-18  Jim Meyering  <meyering@lucent.com>
87624
87625         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87626
87627 2001-11-18  Jim Meyering  <meyering@lucent.com>
87628
87629         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87630         on SunOS 4.
87631
87632         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87633         files will be created before anything else.
87634
87635 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87636
87637         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87638         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87639
87640 2001-11-17  Jim Meyering  <meyering@lucent.com>
87641
87642         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87643         Prompted by a report from Bob Proulx.
87644
87645         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87646         Instead, require UTILS_FUNC_MKSTEMP.
87647
87648 2001-11-17  Jim Meyering  <meyering@lucent.com>
87649
87650         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87651         Now, that's done as part of AC_FUNC_STRTOD.
87652
87653 2001-11-17  Jim Meyering  <meyering@lucent.com>
87654
87655         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87656         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87657         rather than group writable.  Patch by Juan F. Codagnone.
87658
87659         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87660         xrealloc, Instead, include "xalloc.h".
87661
87662         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87663         Remove explicit declarations of xmalloc, xrealloc,
87664         and xstrdup.  Instead, include "xalloc.h".
87665
87666         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87667         unlocked-io.h.
87668         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87669         Likewise.
87670         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87671
87672         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87673         Reported by Padraig Brady.
87674
87675         * lib/mkstemp.c: #undef mkstemp.
87676         Include config.h.
87677         (rpl_mkstemp): Rename from mkstemp.
87678         Protoize.
87679
87680 2001-11-16  Jim Meyering  <meyering@lucent.com>
87681
87682         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87683         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87684         determine the amount of total physical memory, use pstat_getstatic.
87685         HPUX-11 doesn't define _SC_PHYS_PAGES.
87686         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87687         If sysconf couldn't be used to determine the amount of available
87688         physical memory, use both pstat_getstatic and pstat_getdynamic.
87689         Based on a patch from Bob Proulx.
87690
87691 2001-11-10  Jim Meyering  <meyering@lucent.com>
87692
87693         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87694         (jm_PREREQ): Use it.
87695
87696 2001-11-09  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/jm-macros.m4: Require autoconf-2.52f.
87699         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87700         Use these AC_-prefixed names, not the AM_-prefixed ones.
87701
87702         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87703
87704 2001-11-05  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87707
87708 2001-11-04  Jim Meyering  <meyering@lucent.com>
87709
87710         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87711         $DEFS.
87712
87713 2001-11-03  Jim Meyering  <meyering@lucent.com>
87714
87715         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87716         of AC_DEFUN.
87717
87718         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87719         know the name of the variable in the macro definition.
87720
87721 2001-11-03  Jim Meyering  <meyering@lucent.com>
87722
87723         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87724         in argmatch_to_argument call.
87725
87726         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87727         argument.
87728
87729         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87730         e.g., a fault due to an attempt to free a NULL pointer.
87731
87732 2001-11-01  Jim Meyering  <meyering@lucent.com>
87733
87734         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87735         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87736
87737 2001-11-01  Jim Meyering  <meyering@lucent.com>
87738
87739         * lib/dirfd.c, lib/dirfd.h: New files.
87740         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87741
87742         * lib/hash.c (hash_print) [TESTING]: Clean up.
87743
87744 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87745
87746         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87747         to avoid a warning if -Wall.
87748
87749 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87750
87751         * README: New file
87752         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87753         (per RMS's instructions, this is now the canonical source)
87754         * lgpl/, gpl/: New directories.
87755
87756 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87757
87758         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87759
87760 2001-10-21  Jim Meyering  <meyering@lucent.com>
87761
87762         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87763         this code would end up calling gettext even in packages built
87764         with --disable-nls.
87765         * lib/getopt.c (_): Likewise.
87766         * lib/regex.c (_): Likewise.
87767
87768 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87769
87770         * m4/error.m4 (jm_PREREQ_ERROR):
87771         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87772         AC_FUNC_STRERROR_R does that.
87773         Check for strerror declaration.
87774
87775         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87776         are supposed to have them these days.
87777         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87778         Merge changes from latest Autoconf CVS.
87779         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87780         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87781         POSIX decided to standardize on the int flavor of strerror_r.
87782
87783 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87784
87785         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87786         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87787         Use strerror_r that is only a macro, even if it is not a function.
87788         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87789         (private_strerror): Use prototypes, not old-style function definition.
87790         (print_errno_message): New function.
87791         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87792         char*-flavored one.
87793         (error_tail, error, error_at_line): Use it.
87794
87795 2001-10-11  Jim Meyering  <meyering@lucent.com>
87796
87797         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87798         and quote_n (1, ... to avoid clobbering a buffer.
87799
87800 2001-10-05  Jim Meyering  <meyering@lucent.com>
87801
87802         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87803         hash-pjw.h.
87804         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87805         * lib/hash-pjw.h: New file.
87806
87807 2001-09-30  Jim Meyering  <meyering@lucent.com>
87808
87809         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87810         `struct fsstat' has the `f_fstypename' member.
87811         Use that to define FS_TYPE, which is now used to make
87812         the getfsstat link test tighter.
87813
87814 2001-09-30  Jim Meyering  <meyering@lucent.com>
87815
87816         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87817         Include <sys/ucred.h>, for Apple Darwin.
87818         Include sys/mount.h and sys/fs_types.h only if available.
87819         (FS_TYPE): Define.
87820         (read_filesystem_list): Use FS_TYPE.
87821
87822 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87823
87824         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87825         a boolean context.
87826
87827 2001-09-29  Jim Meyering  <meyering@lucent.com>
87828
87829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87830         [one-argument getmntent function]): Include stdio.h before mntent.h.
87831         SunOS 4.1.x needs it for the declaration of `FILE'.
87832         Patch by Volker Borchert.
87833
87834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87835         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87836         sys/fs_types.h, and make the link-test for getfsstat guard #include
87837         directives with appropriate #if HAVE_*_H tests so that we can
87838         detect getfsstat on Apple Darwin1.3.7 systems.
87839         Reported by Nelson Beebe.
87840         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87841
87842 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87843
87844         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87845         #defines strtoimax.  Also treat the other strto* functions
87846         like strtoimax.
87847
87848         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87849         Check for strtoul and strtoumax,
87850         as those declarations are made even in the signed case.
87851         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87852         Likewise, for strtol and strtoimax.
87853
87854 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87855
87856         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87857         #defines strtoimax.  Also treat the other strto* functions
87858         like strtoimax.
87859
87860         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87861         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87862         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87863
87864 2001-09-26  Jim Meyering  <meyering@lucent.com>
87865
87866         Most macros in unlocked-io.h had the wrong number of arguments.
87867         * lib/gen-uio: New script.
87868         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87869         * lib/unlocked-io.hin: Remove file.
87870         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87871         rather than trying to embed it here.
87872         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87873         Reported by Padraig Brady.
87874
87875 2001-09-25  Volker Borchert  <bt@teknon.de>
87876
87877         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87878         `result'.
87879
87880 2001-09-24  Jim Meyering  <meyering@lucent.com>
87881
87882         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87883
87884 2001-09-23  Jim Meyering  <meyering@lucent.com>
87885
87886         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87887         instead of the mere test for existence of mntent.h.  The latter
87888         would get a false-positive on AIX 3.4 systems.
87889         In the outer getmntent if-block, don't die if neither of the getmntent
87890         tests succeeds.  Instead, just fall through and continue with the
87891         remaining tests.
87892
87893 2001-09-23  Jim Meyering  <meyering@lucent.com>
87894
87895         * lib/mountlist.c: Remove useless parentheses in #if directives.
87896         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87897         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87898
87899 2001-09-22  Jim Meyering  <meyering@lucent.com>
87900
87901         * m4/gettext.m4: New file.  From gettext.
87902         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87903         * m4/progtest.m4: Likewise
87904         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87905         * m4/glibc21.m4: Likewise.
87906
87907         * m4/libintl.m4: Remove.  No longer used.
87908
87909 2001-09-22  Jim Meyering  <meyering@lucent.com>
87910
87911         * lib/localcharset.c: Update from latest gettext.
87912         * lib/config.charset: Likewise.
87913
87914 2001-09-20  Jim Meyering  <meyering@lucent.com>
87915
87916         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87917         strtoimax.
87918         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87919         strtoumax.
87920
87921 2001-09-20  Jim Meyering  <meyering@lucent.com>
87922
87923         * lib/xstrtol.c (strtoimax): Guard declaration with
87924         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87925         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87926         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87927         (strtoumax): Likewise, for completeness (it wasn't necessary).
87928
87929 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87930
87931         * lib/strtoimax.c (HAVE_LONG_LONG):
87932         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87933         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87934         to work around bug in IBM C compiler.
87935
87936 2001-09-17  Jim Meyering  <meyering@lucent.com>
87937
87938         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87939         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87940         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87941         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87942         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87943         whenever the right hand side need not be expanded by the shell.
87944
87945 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87946
87947         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87948         library.  It's not correct, as some older glibcs are buggy.
87949         fnmatch wasn't fixed until glibc 2.2.
87950
87951         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87952         special shell magic here.
87953
87954 2001-09-16  Jim Meyering  <meyering@lucent.com>
87955
87956         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87957         * m4/jm-macros.m4: Require it.
87958
87959 2001-09-16  Jim Meyering  <meyering@lucent.com>
87960
87961         * lib/mkdir.c: New file.
87962
87963 2001-09-15  Jim Meyering  <meyering@lucent.com>
87964
87965         * m4/jm-macros.m4: Check for help2man.
87966
87967 2001-09-11  Jim Meyering  <meyering@lucent.com>
87968
87969         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87970         The body, by Paul Eggert, was moved here from configure.in.
87971         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87972
87973 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87974
87975         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87976         (jm_PREREQ): Use it.
87977
87978 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87979
87980         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87981         Use ssize_t, not int, to store result of readlink.
87982         Check for ssize_t overflow as well as size_t overflow,
87983         as POSIX says the result of readlink is implementation-defined
87984         when ssize_t overflows.
87985         Remove unnecessary cast to char*.
87986         Use free+malloc instead of realloc, as the storage doesn't need
87987         to be preserved and it's clearer and can be more efficient that way.
87988         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87989         * lib/xreadlink.h (xreadlink): Update prototype.
87990
87991 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87992
87993         * lib/xgetcwd.c: Revert some of the previous change; intead,
87994         fix the HAVE_GETCWD_NULL code to behave more like the
87995         !HAVE_GETCWD_NULL code used to.
87996
87997         Include "xalloc.h".
87998         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87999         invoke xalloc_die.
88000
88001 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88002
88003         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88004         sys/param.h, as pathmax.h includes them.
88005
88006 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88007
88008         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88009         (jm_PREREQ_XGETCWD): New macro.
88010
88011         * m4/getcwd.m4: New file.
88012
88013 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88014
88015         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88016         like the HAVE_GETCWD_NULL code.
88017         Include pathmax.h if not HAVE_GETCWD.
88018         Do not include xalloc.h.
88019         (INITIAL_BUFFER_SIZE): New symbol.
88020         Do not use xmalloc / xrealloc, since the caller is responsible for
88021         handling errors.  Preserve errno around `free' during failure.
88022         Do not overrun buffer when using getwd.
88023
88024 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88025
88026         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88027         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88028         getcwd (NULL, 0).
88029
88030 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88031
88032         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88033         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88034         spotted by Jim Meyering.
88035
88036 2001-09-03  Jim Meyering  <meyering@lucent.com>
88037
88038         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88039         failure.
88040
88041 2001-09-02  Jim Meyering  <meyering@lucent.com>
88042
88043         * lib/error.c: Update from GNU libc.
88044
88045 2001-09-01  Jim Meyering  <meyering@lucent.com>
88046
88047         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88048         Used by df.
88049
88050 2001-09-01  Jim Meyering  <meyering@lucent.com>
88051
88052         * lib/xreadlink.c: New file.
88053         * lib/xreadlink.h: New file.
88054         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88055         xreadlink.h.
88056
88057         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88058         doesn't conflict with sparc Solaris 7's definition in
88059         /usr/include/sys/int_types.h.
88060
88061         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88062         files.
88063         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88064         and strncasecmp as r-values.  Unixware didn't have declarations.
88065
88066 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88067
88068         * lib/xstrtol.h: Add copyright notice.
88069         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88070         LONGINT_INVALID_SUFFIX_CHAR.
88071
88072 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88073
88074         * lib/xstrtol.c (strtoimax): New decl.
88075
88076 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88077
88078         * lib/xgetcwd.c: Don't include pathmax.h.
88079         Include stdlib.h and unistd.h if available.
88080         Include xalloc.h.
88081         (xmalloc, xstrdup, free): Remove decls.
88082         (xgetcwd): Don't assume sizes fit in unsigned.
88083         Check for overflow when computing sizes.
88084         Simplify reallocation code.
88085
88086 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88087
88088         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88089         a directory's st_size can have an arbitrary value, so the old
88090         usage could waste an arbitrary amount of memory.  All uses
88091         changed.
88092         * lib/savedir.h: Update prototype.
88093
88094 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88095
88096         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88097
88098         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88099         old strtoimax.c.
88100
88101         Also, make the following further changes to make this file's
88102         configuration more similar to that of strtol.c:
88103         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88104         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88105         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88106         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88107         changed to signed values.
88108
88109         And make the following changes as well:
88110         Fix copyright notice, as 1999 was missing.
88111         (verify): New macro.
88112         (strtoimax): Check sizes at compile-time, not run-time.
88113         Prefer strtol to strtoll if both work.
88114         (main): Remove; it was not that useful and was a pain to maintain.
88115
88116         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88117
88118 2001-08-31  Jim Meyering  <meyering@lucent.com>
88119
88120         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88121         Use an initial, malloc'd, buffer of length 128 rather than
88122         a statically allocated one of length 1024.
88123
88124 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88125
88126         Simplify code, partly by assuming autoconf 2.52 semantics.
88127
88128         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88129
88130         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88131         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88132         All uses removed.
88133         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88134         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88135         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88136         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88137         jm_AC_HEADER_INTTYPES_H.
88138         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88139
88140         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88141
88142         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88143         Quote first arg of AC_DEFUN.
88144         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88145         since they are needed to parse the include file even if we need
88146         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88147         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88148         but with opposite signedness.
88149
88150 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88151
88152         Merge 'exclude' changes from tar 1.13.22.
88153         This fixes one or two unlikely storage allocation overflow bugs,
88154         but doesn't change user-visible behavior otherwise.
88155
88156 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88157
88158         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88159         (jm_PREREQ_EXCLUDE): New macro.
88160
88161 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88162
88163         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88164         tm to be declared.
88165
88166 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/hash.c: Remove '2001' from copyright notice.
88169
88170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88171
88172         * lib/full-write.h: New file.
88173         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88174         * lib/full-write.c: Correct credits, as cccp.c no longer
88175         exists and anyway it was so heavily changed from the old cccp
88176         code as to be unrecognizable.  Include full-write.h.
88177         (full_write): Return size_t, with short writes meaning failure.
88178         All callers changed.  This fixes a bug with large buffers
88179         on 64-bit hosts.
88180         * lib/utime.c: Include full-write.h.
88181
88182 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88183
88184         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88185         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88186         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88187         Include if available.
88188         (<xalloc.h>): Include
88189         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88190         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88191         collide with FNM macros.
88192         (struct patopts): New struct.
88193         (struct exclude): Use it, as exclude patterns now come with options.
88194         (new_exclude): Support above changes.
88195         (new_exclude, add_exclude_file):
88196         Initial size must now be a power of two to simplify overflow checking.
88197         (free_exclude, fnmatch_no_wildcards): New function.
88198         (excluded_filename): No longer requires options arg, as the options
88199         are determined by add_exclude.  Now returns bool, not int.
88200         (excluded_filename, add_exclude):
88201         Add support for the fancy new exclusion options.
88202         (add_exclude, add_exclude_file): Now takes int options arg.
88203         Check for arithmetic overflow when computing sizes.
88204         (add_exclude_file): xrealloc might modify errno, so don't
88205         realloc until after errno might be used.
88206
88207         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88208         New macros.
88209         (free_exclude): New decl.
88210         (add_exclude, add_exclude_file): Now takes int options arg.
88211         (excluded_filename): No longer requires options arg, as the options
88212         are determined by add_exclude.  Now returns bool, not int.
88213
88214 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88215
88216         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88217
88218 2001-08-27  Jim Meyering  <meyering@lucent.com>
88219
88220         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88221
88222         * lib/version-etc.c (N_): Remove definition.
88223         Revert most of last change.
88224         Instead, simply don't mark the `Copyright...' string for translation.
88225         Based on advice from Paul Eggert.
88226
88227         * lib/strtoxmax.c: Tweak comment.
88228
88229 2001-08-26  Jim Meyering  <meyering@lucent.com>
88230
88231         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88232
88233         * m4/xstrtoimax.m4: New file.
88234         * m4/xstrtoumax.m4: Add comments explaining why we
88235         AC_REPLACE_FUNCS(strtol).
88236
88237 2001-08-26  Jim Meyering  <meyering@lucent.com>
88238
88239         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88240         of copyright with `%s' so translators don't get an untranslated
88241         message in 2002.
88242         (COPYRIGHT_YEAR): Define.
88243         (version_etc): Use fprintf rather than fputs.
88244         Suggestion from Ulrich Drepper.
88245
88246         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88247
88248         * lib/strtoll.c: New file, from GNU libc.
88249         * lib/xstrtoimax.c: New file.
88250
88251         * lib/xstrtol.h: Add xstrtoimax.
88252         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88253         * lib/strtoimax.c: New file.  Likewise, but first define
88254         STRTOUXMAX_SIGNED.
88255
88256         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88257         ...
88258         * lib/strtoxmax.c: ... then renamed to this.
88259
88260 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88261
88262         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88263         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88264         (jm_AC_TYPE_INTMAX_T): New macro.
88265         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88266
88267         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88268
88269         * m4/longlong.m4: Renamed from ulonglong.m4.
88270         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88271         * m4/uintmax_t.m4: Removed.
88272
88273 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88274
88275         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88276         Port to Solaris 8, where 'sed' requires a space after the 'r'
88277         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88278         Redirect output to $tmp just once.
88279
88280 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88281
88282         * lib/addext.c (<errno.h>): Include.
88283         (errno): Declare if not defined.
88284         (addext): Work correctly when pathconf returns -1 and leaves
88285         errno alone because there is no limit.  Also, work even if
88286         pathconf returns a value greater than SIZE_MAX.
88287
88288 2001-08-12  Jim Meyering  <meyering@lucent.com>
88289
88290         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88291         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88292         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88293         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88294         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88295         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88296         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88297         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88298         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88299         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88300         utime.m4, utimes.m4, xstrtoumax.m4:
88301         Quote the first argument in each use of AC_DEFUN.
88302
88303 2001-08-12  Jim Meyering  <meyering@lucent.com>
88304
88305         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88306         Simply `return getcwd (NULL, 0);'.
88307         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88308         Use 1300 as initial value for length, not PATH_MAX.
88309
88310         * lib/pathmax.h: Clean up cpp syntax.
88311
88312 2001-08-12  Jim Meyering  <meyering@lucent.com>
88313
88314         * lib/gettimeofday.c: New file.
88315         * lib/gtod.h: New file.
88316         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88317
88318 2001-08-05  Jim Meyering  <meyering@lucent.com>
88319
88320         * m4/jm-macros.m4: Require autoconf-2.52.
88321
88322 2001-08-04  Jim Meyering  <meyering@lucent.com>
88323
88324         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88325         stmt, to get in sync with glibc.
88326
88327 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88328
88329         The following changes are from gettext 0.10.39 as maintained by
88330         Bruno Haible.
88331
88332         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88333         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88334         with inverted sense.  All uses changed.
88335
88336         * lib/mbswidth.c: Don't include <limits.h>.
88337         Include <stdlib.h> and <string.h> unconditionally.
88338         (iswcntrl, mbsinit, ISCNTRL): New macros.
88339         (mbsnwidth): Use K&R style function declarations.
88340         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88341         can optimize it when MB_CUR_MAX == 1.
88342         The width of control characters is zero, not 1.
88343
88344 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88345
88346         The following changes are from gettext 0.10.39 as maintained by
88347         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88348
88349         * m4/codeset.m4: Upgrade to serial AM1.
88350         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88351         all uses changed.  Quote first arg of AC_DEFUN.
88352         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88353
88354         * m4/iconv.m4: Upgrade to serial AM2.
88355         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88356         Add --with-libconv-prefix.
88357         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88358         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88359         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88360         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88361         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88362
88363         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88364         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88365         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88366         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88367         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88368         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88369         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88370         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88371         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88372
88373         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88374         string.h any more.
88375
88376         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88377         not the default value.
88378
88379         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88380         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88381         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88382         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88383         Also check for iswcntrl, used for wcwidth fallback.
88384         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88385         to Autoconf 2.13.
88386
88387 2001-08-03  Jim Meyering  <meyering@lucent.com>
88388
88389         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88390         as it was in the original.  Reported by Paul Eggert.
88391
88392 2001-07-16  Jim Meyering  <meyering@lucent.com>
88393
88394         * m4/gettimeofday.m4: New file.
88395         Prompted by a report from Bernhard Baehr.
88396
88397 2001-07-15  Jim Meyering  <meyering@lucent.com>
88398
88399         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88400         stuff. Now it's in ../Makefile.cfg.
88401
88402 2001-07-15  Jim Meyering  <meyering@lucent.com>
88403
88404         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88405         (BUILT_SOURCES): Add unlocked-io.h.
88406         (io_functions): Define.
88407         (unlocked-io.h): New rule.
88408         (DISTCLEANFILES): Add unlocked-io.h.
88409         (all-local): Depend on unlocked-io.h, to ensure it is created.
88410
88411         * lib/unlocked-io.hin: New file
88412
88413         * lib/regex.c: Update from glibc.
88414
88415 2001-07-05  Jim Meyering  <meyering@lucent.com>
88416
88417         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88418         recommendation.
88419         (libfetish_a_SOURCES): Put all .h files here instead.
88420         Remove a thus-exposed (better checks in automake) duplicate and
88421         two unnecessary .h files.
88422
88423 2001-07-04  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88426         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88427         distcheck failure.
88428
88429 2001-07-02  Jim Meyering  <meyering@lucent.com>
88430
88431         The following changes were prompted by suggestions from Bruno Haible.
88432
88433         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88434         is now generated.
88435         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88436         definition of EXTRA_DIST.
88437         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88438         ensure that the generated file is created/updated whenever the list
88439         of $(unlocked_functions) is changed.
88440         (jm-glibc-io.m4): New rule.
88441         (unlocked-io.h): New rule -- currently unused.
88442
88443 2001-06-24  Jim Meyering  <meyering@lucent.com>
88444
88445         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88446         unmatched right bracket, rather than kludging it with an extra,
88447         falsely-matching quote in a comment.  Patch by Akim Demaille.
88448
88449 2001-06-11  Jim Meyering  <meyering@lucent.com>
88450
88451         * lib/regex.c: Update from GNU libc.
88452
88453 2001-05-27  Jim Meyering  <meyering@lucent.com>
88454
88455         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88456         Check for ut_type in struct utmp.
88457
88458 2001-05-27  Jim Meyering  <meyering@lucent.com>
88459
88460         * lib/readutmp.h (UT_TYPE): Define.
88461
88462 2001-05-24  Jim Meyering  <meyering@lucent.com>
88463
88464         * lib/argmatch.c: Include "quote.h".
88465         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88466         quote function.  Reported by Göran Uddeborg.
88467
88468 2001-05-22  Jim Meyering  <meyering@lucent.com>
88469
88470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88471         now that we use the package-supplied version unconditionally.
88472         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88473
88474 2001-05-21  Jim Meyering  <meyering@lucent.com>
88475
88476         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88477         shell syntax errors.
88478
88479 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88480
88481         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88482
88483 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88484
88485         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88486         Don't bother to check library strftime, since
88487         we'll be using our own my_strftime function anyway.
88488         Define my_strftime instead of strftime.
88489
88490 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88491
88492         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88493         which is not yet declared.
88494
88495 2001-05-15  Jim Meyering  <meyering@lucent.com>
88496
88497         * m4/regex.m4: Use proper quoting so brackets appear in the test
88498         program.
88499         Reported by, and with help from, Bruno Haible.
88500
88501 2001-05-13  Jim Meyering  <meyering@lucent.com>
88502
88503         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88504         undefined.
88505
88506 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88507
88508         dirname code cleanup.  base_name now behaves more compatibly
88509         with POSIX basename when given file names that have trailing
88510         slashes, and similarly for dir_name.  Add new primitives
88511         base_len and dir_len.  Put the directory-name-related decls
88512         into dirname.h.
88513
88514         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88515         * lib/backupfile.c (base_name): Likewise.
88516         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88517         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88518         * lib/makepath.c (strip_trailing_slashes): Likewise.
88519         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88520         ISSLASH): Likewise.
88521         * lib/rename.c (strip_trailing_slashes): Likewise.
88522         * lib/same.c (base_name): Likewise.
88523         * lib/stripslash.c (ISSLASH): Likewise.
88524
88525         * lib/addext.c: Include <dirname.h> after size_t is defined.
88526         * lib/backupfile.c: Likewise.
88527
88528         * lib/addext.c (addext): Use base_len to trim redundant
88529         trailing slashes instead of doing it ourselves.
88530         But do not trim the last slash if it is not redundant.
88531
88532         * lib/backupfile.c (find_backup_file_name,
88533         max_backup_version): Use base_len instead of rolling it ourselves.
88534         Handle the case of "" and (on DOS) "C:" correctly.
88535
88536         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88537         needed. Include <string.h>, <dirname.h>.
88538         (base_name): Allow file names ending in slashes, other than names
88539         that are all slashes.  In this case, return the basename followed
88540         by the slashes.  This is more general, and can be used in places
88541         where the original base_name purposely had an assertion failure.
88542         (base_len): New function.
88543
88544         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88545         Do not include <assert.h>; no longer needed.
88546         Include xalloc.h.
88547         (memrchr): Remove decl.
88548         (dir_name_r): Remove.
88549         (dir_len): Renamed from dirlen.  All callers changed.
88550         Rewrite in terms of base_name, for simplicity and consistency.
88551         (dir_name): Never return NULL.  All callers changed.
88552         Do not include <stdlib.h> in test program; no longer needed.
88553         return 0; is fine for test program.
88554
88555         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88556         New macros.
88557         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88558
88559         * lib/path-concat.c (path_concat): Use base_len to compute
88560         base length, not strlen; this means we cannot rely on memcpy
88561         to null-terminate.
88562
88563         * lib/same.c (STREQ): Remove.
88564         (same_name): Handle the case where the basename ends in trailing '/'.
88565
88566         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88567         a slash was stripped.  Do not strip the last slash after a
88568         file system prefix.
88569
88570 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88571
88572         * lib/Makefile.am (libfetish_a_SOURCES):
88573         Add strftime.c, since we now compile it on all hosts.
88574
88575         * lib/strftime.c (my_strftime):
88576         Define to nstrftime if emacs, but only if my_strftime is not defined.
88577         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88578         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88579         Add one more extra argument: a nanoseconds value.
88580         All uses changed.
88581         (ns): New macro.
88582         (my_strftime function): Add %N format.
88583         (emacs_strftimeu): Renamed from emacs_strftime,
88584         with extra ut argument.
88585
88586 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88587
88588         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88589
88590 2001-04-21  Jim Meyering  <meyering@lucent.com>
88591
88592         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88593         doesn't interfere.
88594
88595 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88596
88597         * m4/ftruncate.m4: Check for chsize.
88598         Link with ftruncate.o unconditionally if ftruncate is missing.
88599         This was required when cross-compiling to i586-mingw32msvc.
88600
88601 2001-04-08  Jim Meyering  <meyering@lucent.com>
88602
88603         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88604         recomputed; that's necessary when the offset spans a DST transition.
88605         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88606
88607 2001-04-02  Jim Meyering  <meyering@lucent.com>
88608
88609         * lib/regex.h, regex.c: Update from GNU libc.
88610
88611 2001-03-24  Jim Meyering  <meyering@lucent.com>
88612
88613         * m4/jm-macros.m4: Require autoconf-2.49d.
88614
88615 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88616
88617         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88618
88619 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88620
88621         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88622
88623 2001-03-17  Jim Meyering  <meyering@lucent.com>
88624
88625         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88626         now that the version in autoconf is equivalent.
88627         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88628
88629         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88630         Suggestion from Akim Demaille.
88631
88632         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88633         (jm_PREREQ_TEMPNAME): New function.
88634
88635 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88636
88637         * lib/tempname.c (uint64_t): Define to uintmax_t if
88638         not defined, and if UINT64_MAX is not defined.
88639         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88640         Reported by John David Anglin.
88641
88642 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88643
88644         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88645         resolve alias if codeset is empty.
88646         * lib/config.charset (BeOS): Use wildcard syntax.
88647
88648 2001-03-13  Jim Meyering  <meyering@lucent.com>
88649
88650         * lib/path-concat.c (path_concat)
88651         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88652         concatenating e.g., `C:' and `foo'.
88653         From Bruno Haible.
88654
88655 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88656
88657         * lib/localcharset.c (locale_charset): Don't use
88658         setlocale(LC_CTYPE,NULL). Don't return NULL.
88659         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88660
88661 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88662
88663         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88664         support for DOS/DJGPP.
88665
88666 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88667
88668         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88669         lacks mkstemp.  Compile our own tempname.c if we compile our own
88670         mkstemp.c, as mkstemp relies on tempname.
88671
88672 2001-03-01  Jim Meyering  <meyering@lucent.com>
88673
88674         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88675         AH_VERBATIM really does output its argument verbatim.
88676
88677 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88678
88679         * lib/Makefile.am (libfetish_a_SOURCES):
88680         Add dup-safer.c, fopen-safer.c.
88681         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88682
88683         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88684         * lib/unistd-safer.h: New files.
88685
88686 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88687
88688         The mkstemp replacement is taken from glibc 2.2.2, with some
88689         portability fixes for use outside glibc, as follows:
88690
88691         * lib/tempname.c (struct_stat64): New macro.
88692         (direxists, __gen_tempname): Use it.
88693         This avoids a portability problem with Solaris 8.
88694
88695         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88696         (<stddef.h>, <stdint.h>, <string.h>):
88697         Include only if STDC_HEADERS || _LIBC.
88698         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88699         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88700         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88701         (__set_errno): Define this macro if <errno.h> doesn't.
88702         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88703         Define these macros if <stdio.h> doesn't.
88704         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88705         Define these macros if <sys/stat.h>
88706         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88707         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88708         __xstat64): Define if not _LIBC.
88709         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88710         (__gen_tempname): Invoke gettimeofday only if
88711         HAVE_GETTIMEOFDAY || _LIBC;
88712         otherwise, fall back on plain "time".
88713         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88714
88715         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88716
88717         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88718
88719 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88720
88721         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88722
88723 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88724
88725         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88726         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88727         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88728         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88729
88730 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88731
88732         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88733         Remove workaround macros for hosts that have mbrtowc but not
88734         mbstate_t, as we now insist on proper declarations for both
88735         before using mbrtowc.
88736
88737 2001-02-17  Jim Meyering  <meyering@lucent.com>
88738
88739         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88740         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88741         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88742         UnixWare 7.1.1.
88743
88744         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88745         rather than AC_CACHE_VAL.
88746
88747 2001-02-17  Jim Meyering  <meyering@lucent.com>
88748
88749         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88750         around included file name.
88751
88752         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88753
88754         * lib/strftime.c: Update from GNU libc (the only changes were to
88755         comments).
88756
88757 2001-02-17  Jim Meyering  <meyering@lucent.com>
88758
88759         * lib/regex.c: Update from libc.
88760
88761 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88762
88763         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88764         clash.
88765
88766 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88767
88768         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88769         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88770         Reported by Mark Hounschell via Paul Eggert.
88771
88772 2001-02-07  Jim Meyering  <meyering@lucent.com>
88773
88774         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88775
88776 2001-02-05  Jim Meyering  <meyering@lucent.com>
88777
88778         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88779         it includes the patch required for `large file' support with at least
88780         HP-UX's 10.20 /bin/cc.
88781
88782 2001-02-03  Jim Meyering  <meyering@lucent.com>
88783
88784         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88785         AS_IF, now that it works once again (mysteriously).
88786         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88787
88788 2001-01-30  Jim Meyering  <meyering@lucent.com>
88789
88790         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88791         * m4/chown.m4: Rename conftestchown to conftest.chown.
88792         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88793         s/conftestdir2/conftest.d2/.
88794         * m4/utimes.m4: s/conftestdata/conftest.data/
88795         Inspired by Pavel Roskin's change in autoconf.
88796
88797 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88798
88799         * lib/config.charset: Update for FreeBSD 4.2.
88800
88801 2001-01-27  Jim Meyering  <meyering@lucent.com>
88802
88803         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88804         a use of AS_IF.
88805         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88806
88807 2001-01-26  Jim Meyering  <meyering@lucent.com>
88808
88809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88810         quotearg.c includes it.
88811
88812 2001-01-26  Jim Meyering  <meyering@lucent.com>
88813
88814         * lib/quotearg.c: Include stddef.h.
88815         * lib/quote.c: Include stddef.h.
88816         Reported by Axel Kittenberger.
88817
88818         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88819         line in double quotes so that it evokes a better diagnostic.
88820         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88821         Reported by Axel Kittenberger.
88822
88823 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88824
88825         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88826         as if it was a `charset'.
88827
88828 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88829
88830         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88831         has const.
88832
88833 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88834
88835         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88836         to avoid a warning.  Add back 'const' to inptr.
88837
88838 2001-01-20  Jim Meyering  <meyering@lucent.com>
88839
88840         Be sure that headers are checked before used in code compiled
88841         for the type checks.
88842         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88843         In place of that, invoke jm_CHECK_ALL_TYPES.
88844         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88845         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88846         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88847         The check for ssize_t was mistakenly run before the test for unistd.h.
88848
88849         The configure-time check for stdbool.h was missing.
88850         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88851         (jm_PREREQ_HASH): New function.
88852
88853 2001-01-17  Jim Meyering  <meyering@lucent.com>
88854
88855         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88856         for autoconf-2.49c.
88857         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88858
88859 2001-01-16  Jim Meyering  <meyering@lucent.com>
88860
88861         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88862         From Bruno Haible.
88863
88864 2001-01-14  Jim Meyering  <meyering@lucent.com>
88865
88866         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88867         foo and bar.  Create conftestdir/ in the script, not in the C code.
88868         Remove directories in the script, not in the C code.
88869         Remove conftestdir{,2} before trying to create the directory.
88870         Make the entire configure script fail if the mkdir fails.
88871
88872 2001-01-14  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/rename.c: New file.  From Volker Borchert.
88875         Include stdlib.h, string.h or strings.h, and xalloc.h.
88876         Use strip_trailing_slashes rather than open-coding it.
88877
88878 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88879
88880         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88881
88882 2001-01-03  Jim Meyering  <meyering@lucent.com>
88883
88884         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88885         of local `inptr' to avoid warning with some system declarations of
88886         iconv.
88887
88888 2001-01-02  Volker Borchert  <bt@teknon.de>
88889
88890         * m4/rename.m4: New file.
88891         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88892
88893 2001-01-01  Jim Meyering  <meyering@lucent.com>
88894
88895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88896         even on systems with utmpx.h.  It's necessary for the declaration of
88897         utmp's ut_user member.  Reported by Andreas Jaeger.
88898
88899         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88900         available. They are required for the declarations of getgrgid and
88901         getpwuid resp.
88902         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88903         Reported by Andreas Jaeger.
88904
88905 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88906
88907         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88908         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88909         so `make install' also works in VPATH builds.
88910
88911 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88912
88913         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88914         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88915         can be used in subdirectories.
88916
88917 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88918
88919         * lib/modechange.c: Do not assume that mode_t uses the
88920         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88921         the other-execute bit of FOO even if S_IXOTH != 1.
88922
88923         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88924         WOTH, XOTH, ALLM): New macros.
88925         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88926          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88927         Use them.
88928         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88929         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88930         (mode_compile):
88931         No need to use uintmax_t; unsigned long is long enough.
88932         Don't bother to get suffix since we don't use it.
88933
88934 2000-12-26  Jim Meyering  <meyering@lucent.com>
88935
88936         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88937         better with autoheader.
88938
88939 2000-12-24  Jim Meyering  <meyering@lucent.com>
88940
88941         * lib/hash.c (is_prime): Return explicit boolean values.
88942         (hash_get_first): Return NULL to appease Irix5.6's 89.
88943         Reported by Nelson Beebe.
88944
88945 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88946
88947         * lib/localcharset.c (locale_charset): Add support for Win32.
88948
88949 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88950
88951         * lib/physmem.h, lib/physmem.c: New files.
88952
88953         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88954         (noinst_HEADERS): Add physmem.h.
88955
88956         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88957         't' for compatibility with Solaris 8 sort.
88958
88959 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88960
88961         * lib/config.charset: Add support for BeOS.
88962
88963 2000-12-17  Jim Meyering  <meyering@lucent.com>
88964
88965         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88966         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88967
88968 2000-12-16  Jim Meyering  <meyering@lucent.com>
88969
88970         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88971         N and M) would have treated it like `chown N:N FILE'.
88972
88973         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88974
88975 2000-12-16  Jim Meyering  <meyering@lucent.com>
88976
88977         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88978         SHELLS_FILE to a file name that's useful on djgpp systems.
88979         Include stdlib.h.
88980         (ADDITIONAL_DEFAULT_SHELLS): Define.
88981         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88982         Based mostly on a patch from Prashant TR.
88983
88984 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88985
88986         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88987         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88988         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88989
88990 2000-12-08  Andreas Schwab  <schwab@suse.de>
88991
88992         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88993         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88994
88995 2000-12-07  Jim Meyering  <meyering@lucent.com>
88996
88997         * lib/stripslash.c (ISSLASH): Define.
88998         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88999         `/'.
89000         From Prashant TR.
89001
89002         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89003         (dir_name_r): Declare this function as static.
89004         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89005         manifest itself on a name containing a mix of slashes and
89006         backslashes.
89007         Make this function work with names starting with a DOS-style
89008         drive letter and colon prefix.
89009         (dir_name): Append `.' if necessary.
89010         Based mostly on patches from Prashant TR and Eli Zaretskii.
89011
89012         * lib/dirname.h (dir_name_r): Remove prototype.
89013
89014 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89015
89016         * m4/off_t-format.m4: Remove this file.
89017         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89018
89019 2000-12-06  Jim Meyering  <meyering@lucent.com>
89020
89021         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89022         replacement strtoull, we may well need the replacement strtoul, too.
89023         Check for declarations of strtoul and strtoull.
89024         Check for strtol.  Mainly as a cue to cause automake to include
89025         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89026         Check for limits.h -- strtol.c needs it.
89027
89028 2000-12-05  Jim Meyering  <meyering@lucent.com>
89029
89030         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89031
89032 2000-12-04  Jim Meyering  <meyering@lucent.com>
89033
89034         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89035         Also include memory.h, stdlib.h, unistd.h if appropriate.
89036         Reported by Andreas Jaeger (conflicting declaration of malloc).
89037
89038 2000-12-02  Jim Meyering  <meyering@lucent.com>
89039
89040         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89041         * m4/jm-macros.m4 (jm_MACROS): require it.
89042
89043 2000-12-02  Jim Meyering  <meyering@lucent.com>
89044
89045         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89046
89047 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89048
89049         * lib/memrchr.c: Include <config.h> before any system include file.
89050
89051 2000-11-30  Jim Meyering  <meyering@lucent.com>
89052
89053         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89054
89055 2000-11-30  Jim Meyering  <meyering@lucent.com>
89056
89057         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89058
89059 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89060
89061         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89062
89063 2000-11-26  Jim Meyering  <meyering@lucent.com>
89064
89065         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89066
89067 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89068
89069         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89070         size of (size_t) -1; it's not portable.
89071
89072 2000-11-17  Jim Meyering  <meyering@lucent.com>
89073
89074         * lib/strstr.c: Update from GNU libc.
89075
89076 2000-11-17  Akim Demaille  <akim@epita.fr>
89077
89078         * lib/obstack.h: Formatting changes.
89079         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89080         prevent type checking.
89081         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89082         cast the value to (void *): assigning a `foo *' to a `void *'
89083         variable is valid.
89084         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89085
89086 2000-11-16  Jim Meyering  <meyering@lucent.com>
89087
89088         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89089
89090 2000-11-11  Jim Meyering  <meyering@lucent.com>
89091
89092         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89093
89094 2000-11-10  Jim Meyering  <meyering@lucent.com>
89095
89096         * lib/obstack.h: Update from GNU libc.
89097         * lib/obstack.c: Likewise.
89098
89099 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89100
89101         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89102
89103 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89104
89105         * lib/getusershell.c (setusershell): Use rewind rather than
89106         fseek/fseeko, to avoid configuration hassles with fseeko.
89107         Don't bother opening SHELLS_FILE if shellstream is NULL;
89108         it's not necessary.
89109
89110 2000-11-05  Jim Meyering  <meyering@lucent.com>
89111
89112         * lib/makepath.h (make_dir): Declare.
89113         * lib/makepath.c (make_dir): Remove `static' attribute.
89114         Tweak a comment.
89115
89116 2000-11-04  Jim Meyering  <meyering@lucent.com>
89117
89118         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89119
89120 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89121
89122         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89123         last one in a bucket, advance to the next bucket.
89124
89125 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89126
89127         * lib/fnmatch.c: Do not comment out all the code if we are using
89128         the GNU C library, because in some cases we are replacing buggy
89129         code in the GNU C library itself.
89130
89131 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89132
89133         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89134         (regex_compile): Catch bogus \(\1\).
89135
89136 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89137
89138         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89139         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89140         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89141
89142 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89143
89144         * lib/error.h, getline.h, modechange.h:
89145         Remove "2000" from Copyright line, as the file hasn't been
89146         changed this year other than in the copyright notice.
89147
89148         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89149         was changed this year.
89150
89151 2000-10-29  Jim Meyering  <meyering@lucent.com>
89152
89153         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89154         renaming.
89155         * m4/ls-mntd-fs.m4: Likewise
89156
89157 2000-10-29  Jim Meyering  <meyering@lucent.com>
89158
89159         * lib/xstat.in: Fix grammar in comment.
89160
89161 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89162
89163         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89164         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89165         doesn't define __restrict_arr.
89166
89167 2000-10-28  Jim Meyering  <meyering@lucent.com>
89168
89169         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89170         (jm_PREREQ_MEMCHR): New function.
89171
89172 2000-10-28  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/memchr.c: Update from libc.
89175         Adjust for portability:
89176         [HAVE_STDLIB_H]: Include stdlib.h.
89177         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89178         Undef __memchr, too.
89179         [!weak_alias]: Define __memchr to memchr.
89180
89181         * lib/regex.c: Update from libc.
89182         * lib/regex.h: Likewise.
89183         * lib/getopt1.c: Likewise.
89184         * lib/memcmp.c: Likewise.
89185
89186         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89187         Avoid using fseek, when possible -- it's broken by design.
89188         Patch by Ulrich Drepper.
89189
89190 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89191
89192         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89193         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89194         Giving in to popular pressure to shut up the compiler with casts.
89195
89196 2000-10-26  Jim Meyering  <meyering@lucent.com>
89197
89198         * lib/strftime.c: Update from libc.
89199
89200 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89201
89202         * regex.c: More `unsigned char' -> `re_char' changes.
89203         Also change several `int' into `re_wchar_t'.
89204         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89205         (PUSH_FAILURE_POINTER): Don't cast any more.
89206         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89207         We want GCC to complain, since this piece of code makes
89208         re_match non-reentrant, which *should* be fixed.
89209         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89210         (EXTEND_BUFFER): Use RETALLOC.
89211         (SET_LIST_BIT): Don't cast.
89212         (re_wchar_t): New type.
89213         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89214         that those two functions will always properly return.
89215         (IMMEDIATE_QUIT_CHECK): Cast to void.
89216         (analyse_first): Use recursion rather than an explicit stack.
89217         (re_compile_fastmap): Can't fail anymore.
89218         (re_search_2): Don't check re_compile_fastmap for failure.
89219         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89220         Now also sets the new value (passed in a new argument).
89221         (re_match_2_internal): Use it.
89222         Also, use a new var `reg' of type size_t when looping through regs
89223         rather than reuse the inappropriate `mcnt'.
89224
89225 2000-10-25  Jim Meyering  <meyering@lucent.com>
89226
89227         * lib/obstack.c: Update from libc.
89228
89229 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89230
89231         * regex.c (regex_compile): Change the way of handling a range from
89232         a char less than 256 to a char not less than 256.
89233
89234 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89235
89236         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89237         NT-Emacs only.
89238         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89239         so that re_search functions only quit when callers expect them to.
89240
89241 2000-10-23  Jim Meyering  <meyering@lucent.com>
89242
89243         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89244         wrong.  That set_locale call must not have any side effects.
89245         From Paul Eggert.
89246
89247 2000-10-22  Jim Meyering  <meyering@lucent.com>
89248
89249         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89250         [CYCLIC]: Remove now-unused definition.
89251
89252         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89253         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89254         Suggestion from Ulrich Drepper.
89255
89256 2000-10-21  Jim Meyering  <meyering@lucent.com>
89257
89258         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89259         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89260         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89261
89262 2000-10-21  Jim Meyering  <meyering@lucent.com>
89263
89264         * lib/dirname.c (memrchr): Declare if necessary.
89265         (dir_name): Remove the restriction that there be no
89266         trailing slashes.  Now, this code skips past them, effectively
89267         ignoring them.
89268         [TEST_DIRNAME] (main): New unit tests.
89269
89270         * lib/memrchr.c: New file from GNU libc.
89271         Undef __memrchr, too.
89272         [!weak_alias]: Define __memrchr to memrchr.
89273         Guard weak_alias use with `#ifdef weak_alias'.
89274
89275 2000-10-21  Jim Meyering  <meyering@lucent.com>
89276
89277         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89278         (dir_name): Use dir_name_r.
89279         * lib/dirname.h (dir_name_r): Declare it.
89280
89281 2000-10-17  Jim Meyering  <meyering@lucent.com>
89282
89283         * lib/quote.h (PARAMS): Define and use.
89284         Reported by Akim Demaille.
89285
89286         * lib/getopt.c: Update from libc.
89287
89288 2000-10-16  Jim Meyering  <meyering@lucent.com>
89289
89290         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89291         setlocale.
89292         From Jan Fedak.
89293
89294 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89295
89296         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89297
89298 2000-09-25  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/md5.h (rol): Define (from GnuPG).
89301
89302         * lib/sha.c: Give credit (GnuPG) where due.
89303         (M): Use rol rather than open-coding it.
89304         Add a FIXME comment.
89305
89306 2000-09-21  Jim Meyering  <meyering@lucent.com>
89307
89308         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89309         Reported by Michael Stone.
89310
89311 2000-09-20  Jim Meyering  <meyering@lucent.com>
89312
89313         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89314         (noinst_HEADERS): Add sha.h.
89315         Based on code from Scott G. Miller and from GnuPG.
89316
89317 2000-09-18  Jim Meyering  <meyering@lucent.com>
89318
89319         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89320         LIBS. Otherwise, everyone ends up linking with -lelf for some
89321         configurations.
89322         Reported by Mike Stone.
89323
89324 2000-09-15  Jim Meyering  <meyering@lucent.com>
89325
89326         * lib/regex.c: Update from libc.
89327
89328 2000-09-10  Jim Meyering  <meyering@lucent.com>
89329
89330         * lib/getopt.c (_getopt_internal): Update from glibc.
89331
89332 2000-09-09  Jim Meyering  <meyering@lucent.com>
89333
89334         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89335         think it should be used as a general replacement for isascii.
89336         * lib/fnmatch.c: Likewise.
89337         * lib/mbswidth.c: Likewise
89338         * lib/regex.c: Likewise.
89339
89340         Don't use atoi.
89341         * lib/userspec.c: Include sys/param.h and limits.h.
89342         Include xstrtol.h.
89343         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89344         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89345         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89346         UID, GID.  Check range.
89347
89348 2000-09-06  Jim Meyering  <meyering@lucent.com>
89349
89350         * lib/getopt.c (_getopt_internal): Update from glibc.
89351
89352 2000-08-30  Jim Meyering  <meyering@lucent.com>
89353
89354         * lib/strftime.c: Merge in changes from GNU libc.
89355
89356 2000-08-26  Jim Meyering  <meyering@lucent.com>
89357
89358         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89359         * m4/fpending.m4: New file.
89360
89361 2000-08-26  Jim Meyering  <meyering@lucent.com>
89362
89363         * lib/closeout.c: Include "__fpending.h".
89364         (close_stdout_status): Return right away if there's nothing to flush.
89365
89366         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89367         * lib/__fpending.c: New file.
89368         * lib/__fpending.h: New file.
89369
89370 2000-08-20  Jim Meyering  <meyering@lucent.com>
89371
89372         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89373         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89374         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89375
89376 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89377
89378         Improve fileutils installation on systems where running
89379         programs (like install) can't be unlinked.
89380         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89381         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89382
89383 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89384
89385         Standardize on "memory exhausted" instead of "Memory exhausted"
89386         or "virtual memory exhausted".
89387         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89388         "virtual memory exhausted".
89389         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89390         our own message.
89391         * lib/userspec.c (parse_user_spec): Likewise.
89392         * lib/bumpalloc.h: comment fix
89393         * lib/same.c, userspec.c: Include xalloc.h.
89394
89395         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89396         not char *const and pointing to a constant array.
89397         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89398         (xrealloc): Comment fix.
89399
89400         * lib/userspec.c (parse_user_spec):
89401         Don't translate a message until just before returning,
89402         to avoid unnecessary translation.
89403
89404 2000-08-07  Jim Meyering  <meyering@lucent.com>
89405
89406         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89407         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89408         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89409         getgroups.c, gethostname.c, getopt.h, group-member.c,
89410         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89411         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89412         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89413         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89414         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89415         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89416         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89417         yesno.c: Back out Copyright date changes for each file with no change
89418         this year.  This eases coordination with other programs using the same
89419         source code modules.  From Paul Eggert.
89420
89421 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89422
89423         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89424         not char, for compatibility with glibc 2.1.3 strftime.c.
89425
89426 2000-08-03  Greg McGary  <greg@mcgary.org>
89427
89428         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89429         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89430         (EXTEND_BUFFER): Use them.
89431
89432 2000-08-01  Jim Meyering  <meyering@lucent.com>
89433
89434         * lib/dirname.c (ISSLASH): Define.
89435         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89436         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89437         both `\' and `/' may be use as path separators.
89438         Based on a patch from Prashant TR.
89439
89440 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89441
89442         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89443         slot vector a constant, since it might get modified.
89444
89445 2000-07-31  Jim Meyering  <meyering@lucent.com>
89446
89447         * lib/xmalloc.c: Use `virtual memory exhausted', not
89448         `Memory exhausted'.
89449         * lib/obstack.c (print_and_abort): Likewise.
89450
89451 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89452
89453         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89454         buffer, so that the caller can always quote one small
89455         component of a "memory exhausted" message in slot 0.
89456         From a suggestion by Jim Meyering.
89457
89458 2000-07-30  Jim Meyering  <meyering@lucent.com>
89459
89460         * lib/makepath.c (make_path): Quote the other instance, too.
89461
89462         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89463         (STATIC_BUF_SIZE): Define.
89464         (quotearg_n_options): Use only statically allocated storage when
89465         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89466         than STATIC_BUF_SIZE.
89467
89468 2000-07-29  Jim Meyering  <meyering@lucent.com>
89469
89470         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89471         * lib/dirname.c (dir_name): Likewise.
89472
89473         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89474         `/'.
89475
89476         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89477         (dir_name): Assert that there are no trailing slashes.
89478
89479 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89480
89481         * lib/mbswidth.h (mbswidth): Add a flags argument.
89482         (mbswidth): New declaration.
89483         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89484         * lib/mbswidth.c (mbswidth): Add a flags argument.
89485         (mbsnwidth): New function.
89486
89487 2000-07-24  Jim Meyering  <meyering@lucent.com>
89488
89489         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89490
89491 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89492
89493         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89494
89495 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89496
89497         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89498         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89499         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89500         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89501         invoke multibyte primitives.
89502
89503 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89504
89505         * lib/quotearg.c:
89506         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89507         so that mbstate_t is always defined.
89508
89509         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89510         be 1 in at least one GCC installation, and this configuration
89511         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89512         performance on hosts that have mbrtowc but have only unibyte
89513         locales, but I assume these hosts are rare.
89514
89515 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89516
89517         * lib/mbswidth.c (_XOPEN_SOURCE):
89518         Don't define; this causes problems on Solaris 7.
89519         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89520
89521 2000-07-23  Jim Meyering  <meyering@lucent.com>
89522
89523         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89524         too: getgrgid, getpwuid, getuid.
89525
89526 2000-07-23  Jim Meyering  <meyering@lucent.com>
89527
89528         * lib/basename.c (base_name): Add an assertion.
89529
89530 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89531
89532         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89533         shadow its mbsinit function.
89534
89535 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89536
89537         * lib/mbswidth.h: New file.
89538         * lib/mbswidth.c: New file.
89539         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89540         (noinst_HEADERS): Add mbswidth.h.
89541
89542 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89543
89544         * lib/config.charset: Add support for FreeBSD. Improve support for
89545         HP-UX and IRIX 6.
89546
89547 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89548
89549         * m4/mbswidth.m4: New file.
89550         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89551
89552 2000-07-15  Jim Meyering  <meyering@lucent.com>
89553
89554         * lib/makepath.c: Include quote.h.
89555         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89556         corresponding argument in a `quote (...)' call.
89557         Give better diagnostics.
89558
89559         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89560         (noinst_HEADERS): Add quote.h.
89561
89562         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89563         from tar's src/misc.c.
89564         * lib/quote.h: New file.  Prototypes for same.
89565
89566 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89567
89568         From a suggestion by Bruno Haible.
89569         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89570         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89571         to decide whether to define the BeOS workaround macro;
89572         this adjusts to the change to AC_MBSTATE_T.
89573
89574 2000-07-14  Jim Meyering  <meyering@lucent.com>
89575
89576         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89577         jm_AC_TYPE_UINTMAX_T.
89578
89579 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89580
89581         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89582
89583         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89584         quotearg_buffer_restyled): Add support for
89585         clocale_quoting_style.  Undo previous change to
89586         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89587         and "{RIGHT QUOTATION MARK}" msgids.
89588
89589 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89590
89591         From a suggestion by Bruno Haible.
89592         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89593         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89594         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89595         and mbstate_t, to a single-part test that simply defines mbstate_t.
89596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89597         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89598
89599 2000-07-10  Jim Meyering  <meyering@lucent.com>
89600
89601         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89602
89603         * m4/gnu-source.m4: Output to confdefs.h directly.
89604         Suggestion from Akim Demaille.
89605
89606 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89607
89608         The old behavior of quoting `like this' doesn't look good with
89609         newer, ISO-style fonts.  See:
89610         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89611
89612         Instead, quote "like this" by default.  Let the translator
89613         tailor the locale-specific quoting behavior by providing
89614         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89615
89616         * lib/quotearg.c (N_): New macro.
89617         (gettext_default): New function.
89618         (quotearg_buffer_restyled): Use
89619         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89620         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89621
89622 2000-07-09  Jim Meyering  <meyering@lucent.com>
89623
89624         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89625         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89626
89627         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89628         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89629
89630 2000-07-09  Jim Meyering  <meyering@lucent.com>
89631
89632         * lib/Most files: Update copyright dates to include 2000.
89633
89634 2000-07-08  Jim Meyering  <meyering@lucent.com>
89635
89636         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89637         if not defined.
89638         (xgethostname): Remove now-unnecessary #ifdef.
89639         Move declaration of `err' into loop where it's used.
89640
89641 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89642         and Bruno Haible  <haible@clisp.cons.org>
89643
89644         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89645         only if the test for an object-type mbstate_t fails.  This
89646         prevents us from mistakenly reporting that mbstate_t is a
89647         system object type after we "#define mbstate_t int" to work
89648         around its lack.
89649
89650 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89651         and Bruno Haible  <haible@clisp.cons.org>
89652
89653         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89654
89655 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89656
89657         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89658         to strerror_r.
89659         Include <ctype.h> for use of isalpha.
89660
89661 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89662
89663         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89664         by allocating a larger buffer. Test the gethostname return value for
89665         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89666         returns an error and ENAMETOOLONG isn't defined.
89667
89668 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89669
89670         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89671         dimension.
89672
89673 2000-07-04  Jim Meyering  <meyering@lucent.com>
89674
89675         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89676         of the deprecated AC_CHECKING.
89677
89678 2000-07-04  Jim Meyering  <meyering@lucent.com>
89679
89680         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89681         Reported by Bruno Haible.
89682
89683 2000-07-04  Jim Meyering  <meyering@lucent.com>
89684
89685         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89686         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89687         lacks mbrtowc.
89688
89689 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89690
89691         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89692         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89693
89694 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89695         and Bruno Haible  <haible@clisp.cons.org>
89696
89697         * lib/quotearg.c (mbrtowc):
89698         Assign to *pwc, and return 1 only if result is nonzero.
89699         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89700
89701 2000-07-03  Jim Meyering  <meyering@lucent.com>
89702
89703         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89704
89705 2000-07-03  Jim Meyering  <meyering@lucent.com>
89706
89707         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89708         This is necessary to get a definition of e.g., UTMP_FILE on
89709         HP-UX 10.20.
89710         From Bob Proulx.
89711
89712 2000-07-02  Jim Meyering  <meyering@lucent.com>
89713
89714         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89715
89716         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89717         AC_LIBOBJ(function_name).
89718         * m4/chown.m4: Likewise.
89719         * m4/fnmatch.m4: Likewise.
89720         * m4/ftruncate.m4: Likewise.
89721         * m4/getgroups.m4: Likewise.
89722         * m4/getline.m4: Likewise.
89723         * m4/group-member.m4: Likewise.
89724         * m4/jm-macros.m4: Likewise.
89725         * m4/lstat.m4: Likewise.
89726         * m4/malloc.m4: Likewise.
89727         * m4/memcmp.m4: Likewise.
89728         * m4/nanosleep.m4: Likewise.
89729         * m4/putenv.m4: Likewise.
89730         * m4/realloc.m4: Likewise.
89731         * m4/regex.m4: Likewise.
89732         * m4/stat.m4: Likewise.
89733         * m4/strftime.m4: Likewise.
89734
89735 2000-07-02  Jim Meyering  <meyering@lucent.com>
89736
89737         * lib/quotearg.c (mbstate_t): Don't define here.
89738
89739 2000-07-02  Jim Meyering  <meyering@lucent.com>
89740
89741         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89742
89743 2000-07-01  Jim Meyering  <meyering@lucent.com>
89744
89745         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89746
89747 2000-07-01  Jim Meyering  <meyering@lucent.com>
89748
89749         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89750         problem.
89751
89752 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89753
89754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89755         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89756
89757 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89758
89759         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89760         per change in ../m4/ls-mntd-fs.m4.
89761         (read_filesystem_list): Ignore symbolic links.
89762
89763 2000-06-29  Jim Meyering  <meyering@lucent.com>
89764
89765         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89766         for declaration of strcmp.
89767
89768         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89769
89770         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89771         Avoid warning by casting result to `char *' to remove `const'.
89772
89773 2000-06-28  Jim Meyering  <meyering@lucent.com>
89774
89775         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89776         included by quotearg.c, for which we perform this test.  From
89777         Bruno Haible.
89778
89779 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89780
89781         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89782         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89783         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89784
89785 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89786
89787         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89788
89789 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89790
89791         savedir now sets errno on failure and invokes xmalloc to get memory.
89792         Fix a couple of other minor bugs while we're at it.
89793
89794         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89795         (NAMLEN): Remove macro.
89796         (malloc, realloc): Remove decls.
89797         (stpcpy): Likewise.
89798         ("xalloc.h"): Include.
89799         (NAME_SIZE_DEFAULT): New macro.
89800         (savedir): Use xmalloc / xrealloc to allocate memory.
89801         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89802         Skip "" directory entries.
89803         Use strlen to calculate directory entry length, since the old method
89804         is rarely used these days and isn't worth supporting.
89805         Don't use a pointer after freeing it.
89806         Check for integer overflow when calculating allocation size.
89807         Use memcpy to copy entries, instead of stpcpy.
89808         Set errno properly when returning NULL.
89809         Check for readdir error.
89810
89811 2000-06-26  Jim Meyering  <meyering@lucent.com>
89812
89813         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89814
89815 2000-06-25  Jim Meyering  <meyering@lucent.com>
89816
89817         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89818         Linux header bug when _XOPEN_SOURCE is defined to 500.
89819
89820 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89821
89822         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89823         deficiency.
89824
89825 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89826
89827         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89828         Include xalloc.h.
89829         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89830
89831 2000-06-24  Jim Meyering  <meyering@lucent.com>
89832
89833         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89834         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89835         for which strerror does return char*, but which lacks a conveniently
89836         accessible declaration of the function.  If the compile-test says
89837         strerror_r doesn't work, then resort to a `run'-test that works on
89838         BeOS and segfaults on DEC Unix.
89839
89840 2000-06-24  Jim Meyering  <meyering@lucent.com>
89841
89842         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89843
89844 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89845
89846         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89847         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89848
89849 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89850
89851         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89852         (mbrtowc, mbstate_t): Define substitutes if
89853         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89854         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89855         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89856
89857 2000-06-23  Jim Meyering  <meyering@lucent.com>
89858
89859         * m4/afs.m4: Add missing AC_MSG_RESULT.
89860         Reported by Bruno Haible.
89861
89862         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89863         Suggestion from Bruno Haible.
89864
89865 2000-06-23  Jim Meyering  <meyering@lucent.com>
89866
89867         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89868
89869 2000-06-21  Jim Meyering  <meyering@lucent.com>
89870
89871         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89872
89873 2000-06-21  Jim Meyering  <meyering@lucent.com>
89874
89875         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89876         (noinst_HEADERS): Add getstr.h.
89877
89878         * lib/getline.c (getstr): Move into a separate file.
89879         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89880         the following changes: new parameter, delim2; both delim[12]
89881         parameters have type `int', not `char'.  The latter would lose
89882         with 8-bit delimiters.
89883         * lib/getstr.h: New file.
89884
89885 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89886
89887         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89888         than 1024, return a memory chunk of least possible size, instead
89889         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89890         Use free/xmalloc instead of xrealloc to avoid copying for very long
89891         paths.
89892
89893 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89894
89895         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89896         the empty string.
89897
89898 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89899
89900         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89901         address, not strdup.  Include <stdlib.h> and don't declare free().
89902
89903 2000-06-19  Jim Meyering  <meyering@lucent.com>
89904
89905         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89906
89907 2000-06-18  Jim Meyering  <meyering@lucent.com>
89908
89909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89910
89911         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89912         `checking whether...' message to be consistent with that of the
89913         lstat test.
89914
89915 2000-06-18  Jim Meyering  <meyering@lucent.com>
89916
89917         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89918         Besides, these days every porting target provides a mkdir function.
89919
89920         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89921         needed. (this snippet comes from src/system.h).
89922
89923 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89924
89925         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89926
89927 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89928
89929         * lib/human.c (adjust_value): New function.
89930         (human_readable_inexact): Apply rounding style even when
89931         printing approximate values.
89932
89933 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89934
89935         * lib/human.c (human_readable_inexact): Allow an input block
89936         size that is not a multiple of the output block size, and vice versa.
89937         Reported by Piergiorgio Sartor.
89938
89939 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89940
89941         * lib/getdate.y (get_date): Apply relative times after time
89942         zone indicator, not before.  Reported by Todd A. Jacobs.
89943
89944 2000-06-13  Jim Meyering  <meyering@lucent.com>
89945
89946         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89947
89948         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89949
89950 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89951
89952         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89953
89954 2000-06-12  Jim Meyering  <meyering@lucent.com>
89955
89956         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89957         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89958         optional argument.
89959         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89960         the optional argument, `lib'.
89961
89962 2000-06-08  Jim Meyering  <meyering@lucent.com>
89963
89964         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89965
89966 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89967
89968         Rewrite largefile configuration so that we don't need to run
89969         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89970         AC_CANONICAL_HOST in configure.in -- jmm]
89971
89972         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89973         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89974         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89975         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89976         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89977         All uses changed.
89978         Instead of inspecting the output of getconf, try to compile the
89979         test program without and with the macro definition.
89980         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89981         for getconf.  Instead, check for the needed flags by compiling
89982         test programs.
89983
89984 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89985
89986         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89987
89988 2000-06-04  Jim Meyering  <meyering@lucent.com>
89989
89990         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89991         SunOS 4.1.4 for which gid_t is an unsigned type.
89992
89993 2000-06-03  Jim Meyering  <meyering@lucent.com>
89994
89995         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89996         now that autoconf requires that.
89997
89998         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89999         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90000         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90001
90002 2000-06-03  Jim Meyering  <meyering@lucent.com>
90003
90004         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90005
90006 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90007
90008         * m4/glibc21.m4: New file.
90009         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90010
90011 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90012
90013         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90014         newer, don't install charset.alias.
90015         * lib/config.charset: Change the Linux/glibc rules so they become empty
90016         on glibc-2.1 or newer.
90017
90018 2000-06-02  Jim Meyering  <meyering@lucent.com>
90019
90020         * lib/mountlist.c: Back out last change.  Instead, do this...
90021         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90022         me_dummy member using the same `ignore'-testing code.
90023         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90024         fs_type strings.
90025         From Mark D. Roth.
90026
90027 2000-05-29  Jim Meyering  <meyering@lucent.com>
90028
90029         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90030         mounts with the `ignore' attribute.  Based on a patch from
90031         Mark D. Roth.
90032
90033 2000-05-28  Jim Meyering  <meyering@lucent.com>
90034
90035         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90036         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90037         * m4/stat.m4: Likewise.
90038         * m4/lstat.m4: Likewise.
90039         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90040
90041         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90042         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90043
90044 2000-05-26  Jim Meyering  <meyering@lucent.com>
90045
90046         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90047
90048 2000-05-24  Jim Meyering  <meyering@lucent.com>
90049
90050         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90051         autoconf requires that.
90052         * m4/lib-check.m4: Likewise.
90053         * m4/jm-macros.m4: Likewise.
90054         * m4/strftime.m4: Likewise.
90055
90056         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90057         AC_CHECK_DECLS, now that autoconf requires that.
90058
90059 2000-05-22  Jim Meyering  <meyering@lucent.com>
90060
90061         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90062         * m4/lstat.m4: Likewise.
90063
90064 2000-05-22  Jim Meyering  <meyering@lucent.com>
90065
90066         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90067
90068 2000-05-20  Jim Meyering  <meyering@lucent.com>
90069
90070         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90071         (jm_PREREQ): Use it.
90072
90073 2000-05-18  Jim Meyering  <meyering@lucent.com>
90074
90075         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90076         back, too, since it may have been modified by allocate_entry.
90077         (hash_delete): Rewrite to use neither the assignment operator
90078         nor the comma operator in an if-expression.
90079
90080 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90081
90082         * lib/closeout.c:
90083         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90084         Remove; no longer needed.
90085         "quotearg.h": Add include.
90086         (file_name): Do not bother to explicitly initialize to NULL; it's less
90087         efficient on some hosts.
90088         (close_stdout_status): Remove test as to whether stdout was already
90089         closed; it breaks for the case "echo x | sort >&-".
90090         Quote file name colons.
90091         Do not assume that _("write error") lacks format strings.
90092
90093 2000-05-15  Jim Meyering  <meyering@lucent.com>
90094
90095         * lib/version-etc.c (version_etc_copyright): Update the copyright
90096         string used in all --version output.
90097
90098 2000-05-14  Jim Meyering  <meyering@lucent.com>
90099
90100         * lib/closeout.c (close_stdout_set_file_name): New function.
90101         (close_stdout_status): Use new file-scoped global.
90102         Return right away if fstat says the stdout file descriptor is invalid.
90103         * lib/closeout.h (close_stdout_set_file_name): Declare.
90104
90105 2000-05-10  Jim Meyering  <meyering@lucent.com>
90106
90107         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90108         (close_stdout_set_status): New function.
90109         * lib/closeout.h (close_stdout_set_status): Declare.
90110
90111 2000-05-09  Jim Meyering  <meyering@lucent.com>
90112
90113         * m4/gettext.m4: Rename this...
90114         * m4/libintl.m4: ...to this.
90115
90116 2000-05-08  Jim Meyering  <meyering@lucent.com>
90117
90118         * lib/long-options.c: Don't include closeout.h.
90119         (parse_long_options): Don't call close_stdout for --version.
90120
90121 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90122
90123         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90124         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90125         2.1.3 bug.  This avoids a clash when files like regex.c define
90126         _GNU_SOURCE.
90127
90128 2000-05-06  Jim Meyering  <meyering@lucent.com>
90129
90130         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90131         (AC_REPLACE_FUNCS): Add strnlen.
90132
90133         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90134         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90135
90136         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90137         AC_SEARCH_LIBS call for nanosleep.
90138         (LIB_NANOSLEEP): Set and AC_SUBST.
90139
90140 2000-05-06  Jim Meyering  <meyering@lucent.com>
90141
90142         * lib/strnlen.c: Undefine __strnlen and strnlen.
90143         [!weak_alias]: Define __strnlen to strnlen.
90144
90145         * lib/atexit.c: New file, from libiberty.
90146
90147 2000-05-06  Jim Meyering  <meyering@lucent.com>
90148
90149         * lib/closeout.c (close_stdout_status): Also check for errors on the
90150         stderr stream.
90151
90152 2000-05-05  Jim Meyering  <meyering@lucent.com>
90153
90154         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90155         AC_SEARCH_LIBS call for clock_gettime.
90156         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90157
90158         * m4/search-libs.m4: Update from autoconf.
90159
90160         su doesn't work on Solaris 2.6.
90161         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90162         <shadow.h>.  Reported by Dragos Harabor.
90163
90164 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90165
90166         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90167         memcpy instead of xmalloc, xrealloc, path_concat.
90168         (locale_charset): Treat empty environment variables as absent.
90169         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90170
90171 2000-05-04  Jim Meyering  <meyering@lucent.com>
90172
90173         * lib/getopt.c: Update from glibc.
90174         * lib/obstack.c: Likewise.
90175         * lib/obstack.h: Likewise.
90176         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90177         file
90178
90179         * lib/regex.h: Likewise.
90180         * lib/strndup.c: Likewise.
90181         * lib/strnlen.c: New file, from glibc.
90182
90183 2000-05-03  Jim Meyering  <meyering@lucent.com>
90184
90185         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90186
90187 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90188
90189         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90190         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90191         compile-time test, rather than inspecting host and OS, to
90192         decide whether to define _LARGEFILE_SOURCE.
90193
90194 2000-05-01  Jim Meyering  <meyering@lucent.com>
90195
90196         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90197
90198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90199         Based on a patch from Bruno Haible.
90200
90201 2000-05-01  Jim Meyering  <meyering@lucent.com>
90202
90203         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90204
90205 2000-04-29  Jim Meyering  <meyering@lucent.com>
90206
90207         * lib/path-concat.c: Declare strdup only if it's not defined.
90208         * lib/canon-host.c: Likewise.
90209
90210 2000-04-28  Jim Meyering  <meyering@lucent.com>
90211
90212         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90213         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90214         is included first, then limits.h is included by locale.h by libintl.h.
90215         From John David Anglin.
90216
90217 2000-04-25  Jim Meyering  <meyering@lucent.com>
90218
90219         * lib/makepath.c (S_IRWXUGO): Define.
90220         (make_path): Always perform explicit chmod if MODE specifies any
90221         of the `special' permission bits.  Prompted by a bug report against
90222         install from Mate Wierdl and Joost van Baal.
90223
90224 2000-04-18  Jim Meyering  <meyering@lucent.com>
90225
90226         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90227         (jm_PREREQ): Use it.
90228
90229 2000-04-18  Jim Meyering  <meyering@lucent.com>
90230
90231         * lib/README: New file.
90232
90233         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90234         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90235
90236 2000-04-17  Jim Meyering  <meyering@lucent.com>
90237
90238         Get it right :-)
90239         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90240         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90241         Suggestion from Akim Demaille.
90242
90243 2000-04-17  Jim Meyering  <meyering@lucent.com>
90244
90245         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90246         the definition of it to rpl_strftime also defined-away the system's
90247         declaration.
90248
90249 2000-04-15  Jim Meyering  <meyering@lucent.com>
90250
90251         Use `C' to denote so-called `contiguous' files, the same way
90252         that tar does.
90253         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90254         (ftypelet): Use S_ISCTG.
90255         From Michael Deutschmann.
90256
90257 2000-04-14  Jim Meyering  <meyering@lucent.com>
90258
90259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90260         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90261         clobbered.
90262
90263 2000-04-14  Jim Meyering  <meyering@lucent.com>
90264
90265         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90266
90267 2000-04-13  Jim Meyering  <meyering@lucent.com>
90268
90269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90270         AH_VERBATIM to insert required #ifndef into config.h.in.
90271         Suggestion from Akim Demaille.
90272
90273 2000-04-12  Jim Meyering  <meyering@lucent.com>
90274
90275         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90276         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90277         Christian Krackowizer.
90278
90279         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90280         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90281         (AC_SYS_LARGEFILE): Require.
90282         (AM_C_PROTOTYPES): Require.
90283
90284 2000-04-08  Jim Meyering  <meyering@lucent.com>
90285
90286         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90287         names don't conflict.  Reported by Eli Zaretskii.
90288
90289 2000-04-07  Jim Meyering  <meyering@lucent.com>
90290
90291         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90292         sys/types.h, to work around system header problems on AIX 3.2.5.
90293         From Bruno Haible.
90294
90295 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90296
90297         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90298         bug.  Deal with the different error behavior of Irix iconv.
90299
90300 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90301
90302         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90303         IRIX if the installer said otherwise.
90304
90305 2000-04-05  Jim Meyering  <meyering@lucent.com>
90306
90307         Portability tweaks required for ultrix4.3.
90308         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90309         (jm_CHECK_DECLS): Add getutent to the list of functions.
90310         (_jm_DECL_HEADERS): Add utmpx.h.
90311         From John David Anglin.
90312
90313         * m4/strftime.m4: Back out the 2000-04-02 change.
90314         Instead of that change, simply undefine putenv in the test program.
90315
90316 2000-04-05  Jim Meyering  <meyering@lucent.com>
90317
90318         Portability tweaks required for ultrix4.3.
90319         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90320         getutent.
90321         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90322         * lib/canon-host.c: Declare strdup.
90323         * lib/path-concat.c: Likewise.
90324         From John David Anglin.
90325
90326 2000-04-04  Jim Meyering  <meyering@lucent.com>
90327
90328         Be more DOS 8.3-friendly.
90329         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90330         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90331         * lib/Makefile.am: Reflect renaming.
90332         Reported by Eli Zaretskii.
90333
90334         Use a temporary file name that won't clash with `charset.alias'
90335         in the DOS 8.3 name space.
90336         * lib/Makefile.am (charset_tmp): Define.
90337         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90338         (uninstall-local): Likewise.
90339         Reported by Eli Zaretskii.
90340
90341 2000-04-03  Jim Meyering  <meyering@lucent.com>
90342
90343         * m4/gettext.m4: Fix typo in comment.
90344
90345         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90346         textutils/configure.in).  Suggestion from Paul Eggert.
90347         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90348
90349 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90350
90351         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90352         variable in the shell rather than using putenv, which isn't
90353         portable.  This avoids the configure-time inter-test dependency
90354         on the potentially-renamed putenv function.
90355
90356 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90357
90358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90359         before checking struct stat.st_blksize, so that
90360         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90361
90362 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90363
90364         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90365         since strftime.c uses HAVE_STRFTIME to decide whether to use
90366         the underlying strftime.
90367
90368 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90369
90370         * lib/time/strftime.c (my_strftime): Make sure we call the system
90371         strftime, not ourselves, when invoking the underlying strftime.
90372
90373 2000-03-24  Jim Meyering  <meyering@lucent.com>
90374
90375         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90376         (charset_alias): Define.
90377         (install-exec-local): Factor out common code.
90378         (uninstall-local): Split lines longer than 80.
90379         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90380         (SUFFIXES): Define.
90381         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90382         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90383
90384 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90385
90386         * lib/config.charset: Output a line containing "Packages using this
90387         file".
90388         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90389         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90390         ref-del.sed): New rules.
90391
90392 2000-03-17  Jim Meyering  <meyering@lucent.com>
90393
90394         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90395         Otherwise, include <strings.h>
90396
90397 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90398
90399         * lib/unicodeio.c (utf8_wctomb): New function.
90400         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90401         format instead of in UCS-4 with platform dependent endianness.
90402
90403 2000-03-10  Jim Meyering  <meyering@lucent.com>
90404
90405         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90406         From Marco Franzen.
90407
90408 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90409
90410         * lib/savedir.c (savedir): Work even if directory size is
90411         negative; this can happen with some screwy NFS configurations.
90412
90413 2000-03-06  Jim Meyering  <meyering@lucent.com>
90414
90415         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90416         if it's NULL (because we ran out of memory).  From Bruno Haible.
90417
90418 2000-03-05  Jim Meyering  <meyering@lucent.com>
90419
90420         * lib/localcharset.c ("path-concat.h"): Include.
90421         (get_charset_aliases): Use path_concat instead of ANSI string
90422         concatenation.
90423
90424         * lib/unicodeio.h (PARAMS): Define.
90425         Use it to guard prototype.
90426
90427 2000-03-04  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90430         for lib/localcharset.c.
90431
90432 2000-03-04  Jim Meyering  <meyering@lucent.com>
90433
90434         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90435         installing into it.
90436         (uninstall-local): Uncomment this rule so `make distcheck' works
90437         once again.
90438
90439         * lib/unicodeio.c (<errno.h>): Include it.
90440         (errno): Declare if not defined.
90441
90442         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90443
90444         * lib/config.charset: New version, incorporating remarks from a linux
90445         i18n mailing list.  From Bruno Haible.
90446
90447 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90448
90449         * m4/codeset.m4: New file.
90450         * m4/iconv.m4: New file.
90451         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90452
90453 2000-03-03  Jim Meyering  <meyering@lucent.com>
90454
90455         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90456
90457 2000-03-02  Jim Meyering  <meyering@lucent.com>
90458
90459         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90460         the messages come out on separate lines.
90461
90462         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90463         rather than jm_CHECK_DECLARATIONS.
90464         * m4/decl.m4: Remove now-unused file.
90465
90466         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90467         geteuid.
90468
90469 2000-03-02  Jim Meyering  <meyering@lucent.com>
90470
90471         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90472
90473 2000-03-01  Jim Meyering  <meyering@lucent.com>
90474
90475         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90476         * lib/unicodeio.c: Likewise.
90477
90478 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90479
90480         * lib/config.charset: New file.
90481         * lib/localcharset.c: New file.
90482         * lib/unicodeio.h, lib/unicodeio.c: New files.
90483         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90484         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90485         (noinst_HEADERS): Add unicodeio.h.
90486         (all-local, install-exec-local, charset.alias): New targets.
90487
90488 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90489
90490         * lib/quotearg.c (ALERT_CHAR): New macro.
90491         (quotearg_buffer_restyled): Use it.
90492
90493 2000-02-27  Jim Meyering  <meyering@lucent.com>
90494
90495         * m4/check-decl.m4: Add getenv to the list.
90496
90497 2000-02-27  Jim Meyering  <meyering@lucent.com>
90498
90499         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90500         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90501
90502         * lib/backupfile.c: Guard inclusion of stdlib.h with
90503         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90504         Declare malloc if needed.
90505
90506         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90507         `#ifndef HAVE_DECL..'
90508         now that autoconf always defines the HAVE_DECL_ symbols.
90509         * lib/human.c: Likewise.
90510         * lib/same.c: Likewise.
90511         * lib/strtoumax.c: Likewise.
90512
90513         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90514         declaration check was not run.
90515         * lib/hash.c: Likewise.
90516         * lib/human.c: Likewise.
90517         * lib/same.c: Likewise.
90518         * lib/strtoumax.c: Likewise.
90519
90520         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90521         `.', then first look up the entire `.'-containing string as a login
90522         name.
90523
90524 2000-02-23  Jim Meyering  <meyering@lucent.com>
90525
90526         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90527         in place of my hack.
90528
90529 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90530
90531         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90532         (textint): New typedef.
90533         (parser_control): Member year changed from int to textint.
90534         All uses changed.
90535         (YYSTYPE): Removed; replaced by %union with int and textint members.
90536         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90537         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90538         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90539         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90540         (date, number, to_year): Use width of number in digits, not its value,
90541         to determine whether it's a 2-digit year, or a 2-digit time.
90542         (yylex): Store number of digits of numeric tokens.
90543         Reported by John Kendall.
90544
90545         (parser_control): Changed from struct parser_control to typedef (for
90546         consistency).  All uses changed.
90547
90548         (tID): Removed; not used.
90549         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90550
90551 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90552
90553         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90554         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90555
90556 2000-02-12  Jim Meyering  <meyering@lucent.com>
90557
90558         * lib/userspec.c (ISDIGIT): Define it.
90559         (isdigit): Remove definition.
90560         (is_number): Use ISDIGIT, not isdigit.
90561         <libintl.h>: Include.
90562         (_ and N_): Define.
90563         (parse_user_spec): Mark translatable strings.
90564
90565 2000-02-10  Jim Meyering  <meyering@lucent.com>
90566
90567         With these changes, nanosleep.[ch] are finally enough like the other
90568         lib/* replacement files to compile on a few more losing systems.
90569
90570         * lib/nanosleep.h: Don't include config.h.
90571         Remove prototype from declaration of nanosleep.
90572         (PARAMS): Remove now-unneeded definition.
90573         * lib/nanosleep.c: #undef nanosleep.
90574         (rpl_nanosleep): Rename from nanosleep.
90575
90576 2000-02-10  Jim Meyering  <meyering@lucent.com>
90577
90578         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90579         gnu_nanosleep to rpl_nanosleep.
90580
90581 2000-02-09  Jim Meyering  <meyering@lucent.com>
90582
90583         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90584         struct spwd, rather than in struct passwd.  Reported by GaĂ«l QuĂ©ri.
90585
90586 2000-02-08  Akim Demaille  <akim@epita.fr>
90587
90588         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90589         `[' and `]' and remove uses of `changequote'.
90590         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90591         (AC_SYS_LARGEFILE): Likewise.
90592         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90593         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90594         of changequote.
90595         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90596         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90597         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90598         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90599
90600 2000-02-05  Jim Meyering  <meyering@lucent.com>
90601
90602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90603         Remove explicit use of AC_HEADER_TIME.  It is required by
90604         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90605         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90606         in autoconf whereby the expansion of the latter ended up preceding
90607         the expansion of its prerequisite, AC_HEADER_TIME.
90608         Reported by Volker Borchert.
90609
90610 2000-02-03  Jim Meyering  <meyering@lucent.com>
90611
90612         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90613
90614 2000-02-03  Jim Meyering  <meyering@lucent.com>
90615
90616         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90617         rather than with `#if HAVE_UTMPNAME'.
90618
90619 2000-02-02  Jim Meyering  <meyering@lucent.com>
90620
90621         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90622         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90623         Reported by Eli Zaretskii.
90624
90625 2000-02-01  Jim Meyering  <meyering@lucent.com>
90626
90627         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90628
90629 2000-01-31  Jim Meyering  <meyering@lucent.com>
90630
90631         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90632         functions.  Add the time.h and sys/time.h headers along with the
90633         AC_REQUIRE'ment of AC_HEADER_TIME.
90634
90635 2000-01-31  Jim Meyering  <meyering@lucent.com>
90636
90637         * lib/nanosleep.h (nanosleep): Guard declaration with
90638         `#if ! HAVE_DECL_NANOSLEEP'.
90639         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90640         the declaration in that vendor's sys/timers.h.
90641         Reported by Christian Krackowizer.
90642
90643         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90644         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90645         (ISPRINT): Likewise.
90646         Reported by Tom Tromey.
90647
90648 2000-01-30  Jim Meyering  <meyering@lucent.com>
90649
90650         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90651
90652         * m4/prereq.m4 (utmp_includes): Define.
90653         Check for ut_user and ut_name members in both struct utmpx
90654         and struct utmp.
90655
90656 2000-01-30  Jim Meyering  <meyering@lucent.com>
90657
90658         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90659         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90660         header files where only utmpx.ut_user is declared.
90661
90662         * lib/readutmp.h (UT_USER): Define.
90663
90664 2000-01-29  Jim Meyering  <meyering@lucent.com>
90665
90666         * m4/lib-check.m4: New file containing library-related checks from
90667         fileutils and sh-utils (textutils had none).
90668
90669 2000-01-28  Jim Meyering  <meyering@lucent.com>
90670
90671         * m4/perl.m4: Change format of warning message to look more like that
90672         from the missing script.  Suggestion from François Pinard.
90673
90674 2000-01-25  Jim Meyering  <meyering@lucent.com>
90675
90676         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90677         well as time.h in the compile check.
90678         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90679         Fix typo in cross-compiling case: s/yes/no/.
90680
90681 2000-01-23  Jim Meyering  <meyering@lucent.com>
90682
90683         * m4/jm-macros.m4: Move df-related tests here from
90684         fileutils/configure.in
90685
90686         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90687         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90688
90689         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90690         s/space/ac_fsusage_space/.
90691         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90692
90693         * m4/ftruncate.m4: New file (derived from part of
90694         fileutils/configure.in).
90695         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90696         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90697
90698         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90699         AC_SUBST these here, rather than just in sh-util/configure.in, so
90700         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90701         all the same.
90702         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90703         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90704         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90705         (AC_SUBST(POW_LIBM)): Likewise.
90706         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90707
90708 2000-01-23  Jim Meyering  <meyering@lucent.com>
90709
90710         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90711         obstack.c.
90712
90713 2000-01-22  Jim Meyering  <meyering@lucent.com>
90714
90715         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90716
90717         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90718
90719         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90720         configure.in
90721         (AC_CHECK_HEADERS): Likewise for sh-utils.
90722         (AC_CHECK_HEADERS): Likewise for textutils.
90723         Merge the three lists of headers.
90724
90725         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90726         from fileutils' configure.in.
90727
90728         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90729         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90730         check-decl.m4.
90731
90732         * m4/check-decl.m4: Use #if rather than #ifdef.
90733         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90734         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90735         (_jm_DECL_HEADERS): Define new function.
90736         (jm_CHECK_DECLARATIONS): Require it.
90737
90738 2000-01-22  Jim Meyering  <meyering@lucent.com>
90739
90740         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90741         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90742         Required for some AIX systems.  Reported by Christian Krackowizer.
90743         [TESTING] (main): New function.
90744
90745         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90746         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90747         letters.
90748
90749         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90750         iswprint.
90751
90752         * lib/strverscmp.c (ISDIGIT): Define.
90753         (strverscmp): Use ISDIGIT, not isdigit.
90754
90755 2000-01-19  Jim Meyering  <meyering@lucent.com>
90756
90757         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90758         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90759         defines `struct timespec' in <sys/time.h>
90760
90761         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90762         Thanks to Akim for explaining.
90763
90764 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90765
90766         * lib/nanosleep.c (nanosleep):
90767         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90768         POSIX.1 doesn't require SA_INTERRUPT and some systems
90769         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90770         it's been part of POSIX.1 since day 1 (in 1988).
90771
90772 2000-01-17  Jim Meyering  <meyering@lucent.com>
90773
90774         * lib/interlock: Remove unused file.  Reported by François Pinard.
90775
90776 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90777
90778         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90779         alert, backslash, formfeed, and vertical tab unnecessarily in
90780         shell quoting style.
90781
90782 2000-01-16  Jim Meyering  <meyering@lucent.com>
90783
90784         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90785         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90786         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90787         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90788
90789 2000-01-16  Jim Meyering  <meyering@lucent.com>
90790
90791         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90792         because the latter didn't work.
90793
90794 2000-01-15  Jim Meyering  <meyering@lucent.com>
90795
90796         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90797         (AC_REPLACE_FUNCS): Add memcpy and memset.
90798         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90799         Add strpbrk.
90800         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90801
90802 2000-01-12  Jim Meyering  <meyering@lucent.com>
90803
90804         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90805         (jm_PREREQ): Use it.
90806         (jm_PREREQ_READUTMP): New macro.
90807         (jm_PREREQ): Use it.
90808
90809 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90810
90811         Quote multibyte characters correctly.
90812         * m4/c-bs-a.m4: New file.
90813         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90814         (jm_PREREQ): Use it.
90815
90816 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90817
90818         * m4/uintmax_t.m4: Port to autoconf 2.13.
90819
90820 2000-01-08  Jim Meyering  <meyering@ascend.com>
90821
90822         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90823         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90824
90825 2000-01-04  Jim Meyering  <meyering@ascend.com>
90826
90827         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90828         jm_STRUCT_DIRENT_D_TYPE.
90829         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90830         jm_STRUCT_DIRENT_D_INO.
90831         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90832         jm_STRUCT_UTIMBUF.
90833         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90834         renamings.
90835         * m4/utime.m4: Likewise.
90836
90837         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90838         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90839
90840 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90841
90842         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90843         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90844
90845 2000-01-02  Jim Meyering  <meyering@ascend.com>
90846
90847         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90848         remember if this is necessary.
90849
90850 1999-12-26  Jim Meyering  <meyering@ascend.com>
90851
90852         * m4/jm-macros.m4: Use it here.
90853         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90854
90855 1999-12-23  Jim Meyering  <meyering@ascend.com>
90856
90857         * m4/jm-macros.m4: Check for clock_gettime (moved from
90858         fileutils/configure.in)
90859         Check for gettimeofday.
90860
90861 1999-12-20  Jim Meyering  <meyering@ascend.com>
90862
90863         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90864         autoconf-2.14a-1999-12-20.
90865
90866 1999-12-19  Jim Meyering  <meyering@ascend.com>
90867
90868         * m4/lstat-slash.m4: New file.
90869         * m4/jm-macros.m4: Use the new macro:
90870         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90871
90872 1999-12-07  Jim Meyering  <meyering@ascend.com>
90873
90874         * m4/perl.m4: Require that File::Compare be available, too.
90875         Too many systems seem to lack it.
90876
90877         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90878         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90879
90880 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90881
90882         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90883         problem with the QNX 4.25 shell, which doesn't propagate exit
90884         status of failed commands inside shell assignments.
90885
90886 1999-11-17  Jim Meyering  <meyering@ascend.com>
90887
90888         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90889
90890 1999-11-07  Jim Meyering  <meyering@ascend.com>
90891
90892         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90893
90894 1999-11-06  Jim Meyering  <meyering@ascend.com>
90895
90896         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90897         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90898
90899 1999-11-05  Jim Meyering  <meyering@ascend.com>
90900
90901         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90902         configure.in of textutils, fileutils, and sh-utils into this one
90903         (shared between those packages) file.
90904         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90905         AC_STRUCT_ST_BLKSIZE.
90906
90907 1999-11-03  Jim Meyering  <meyering@ascend.com>
90908
90909         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90910         of AC_CHECK_TYPE checks includes unistd.h.
90911         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90912         Suggestion from Akim Demaille.
90913
90914 1999-10-30  Jim Meyering  <meyering@ascend.com>
90915
90916         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90917         m4-quoted string.
90918         * m4/ls-mntd-fs.m4: Likewise.
90919         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90920         * m4/jm-winsz1.m4: Likewise.
90921
90922         * m4/const.m4: Remove file, since the fix made it into the experimental
90923         version of autoconf.
90924         * m4/mktime.m4: Likewise.
90925
90926         * m4/check-type.m4: Remove file, now that the latest version of
90927         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90928
90929         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90930         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90931         AC_CHECK_TYPE.
90932
90933 1999-10-04  Jim Meyering  <meyering@ascend.com>
90934
90935         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90936
90937 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90938
90939         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90940         2.95.1 bug with HP-UX 10.20.
90941
90942 1999-09-17  Jim Meyering  <meyering@ascend.com>
90943
90944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90945         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90946         due to missing strdup (against sh-utils-2.0).
90947
90948 1999-08-29  Jim Meyering  <meyering@ascend.com>
90949
90950         * m4/jm-macros.m4: Require jm_BISON.
90951         * m4/bison.m4: New file.
90952
90953 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90954
90955         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90956         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90957
90958 1999-08-05  Jim Meyering  <meyering@ascend.com>
90959
90960         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90961         to avoid conflicts with `conftest' on 8+3 filesystems.
90962         Suggestion from Eli Zaretskii.
90963
90964 1999-08-04  Jim Meyering  <meyering@ascend.com>
90965
90966         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90967         fileutils and sh-utils (textutils's getline test was inadequate).
90968         (AM_FUNC_GETLINE): Run this test.
90969         (AC_CHECK_FUNCS): Check for getdelim.
90970         Reported by Bob Proulx.
90971
90972 1999-08-02  Jim Meyering  <meyering@ascend.com>
90973
90974         * m4/jm-macros.m4: Add a comment.
90975
90976 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90977
90978         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90979         <inttypes.h> defines strtoumax as a macro (and not as a
90980         function).
90981
90982 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90983
90984         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90985         that we can shift, multiply and divide unsigned long long
90986         values; Ultrix cc can't do it.
90987
90988 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90989
90990         * m4/mktime.m4: New file, which is a preview of what should appear
90991         in the next public autoconf release.
90992
90993 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90994
90995         * m4/lfs.m4: Remove this file.
90996         * m4/largefile.m4: New file.  It contains the old contents of
90997         lfs.m4, except that all names with prefix AC_LFS have been
90998         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90999         compatible with future autoconf versions.  Also, some minor m4
91000         quoting problems have been fixed.
91001
91002 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91003
91004         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91005         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91006         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91007         and simplify the shell code.
91008
91009 1999-08-01  Jim Meyering  <meyering@ascend.com>
91010
91011         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91012         m4.
91013
91014 1999-07-20  Jim Meyering  <meyering@ascend.com>
91015
91016         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91017
91018 1999-07-15  Jim Meyering  <meyering@ascend.com>
91019
91020         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91021
91022 1999-05-22  Jim Meyering  <meyering@ascend.com>
91023
91024         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91025
91026 1999-05-20  Jim Meyering  <meyering@ascend.com>
91027
91028         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91029         Add a colon after each `then' in case $4 is empty.
91030
91031 1999-05-16  Jim Meyering  <meyering@ascend.com>
91032
91033         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91034
91035 1999-05-10  Jim Meyering  <meyering@ascend.com>
91036
91037         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91038
91039         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91040         AC_FUNC_MKTIME.
91041
91042 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91043
91044         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91045
91046 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91047
91048         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91049         not CPPFLAGS, so that linking works correctly in IRIX.
91050
91051 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91052
91053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91054
91055 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91056
91057         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91058         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91060         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91061         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91062
91063         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91064
91065 1999-04-20  Jim Meyering  <meyering@ascend.com>
91066
91067         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91068         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91069         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91070
91071 1999-04-18  Jim Meyering  <meyering@ascend.com>
91072
91073         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91074         * m4/jm-macros.m4: Use it.
91075
91076 1999-04-06  Jim Meyering  <meyering@ascend.com>
91077
91078         * m4/strftime.m4: Remove test for %f.
91079
91080 1999-03-29  Jim Meyering  <meyering@ascend.com>
91081
91082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91083         superset of the AC_TYPE_* checks in the textutils, fileutils,
91084         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91085         AC_TYPE_PID_T.
91086
91087 1999-03-28  Jim Meyering  <meyering@ascend.com>
91088
91089         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91090         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91091         replaced e.g., in the *.sh files of the sh-utils.
91092
91093 1999-03-20  Jim Meyering  <meyering@ascend.com>
91094
91095         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91096         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91097         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91098
91099 1999-03-19  Jim Meyering  <meyering@ascend.com>
91100
91101         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91102
91103 1999-03-12  Jim Meyering  <meyering@ascend.com>
91104
91105         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91106
91107 1999-03-07  Jim Meyering  <meyering@ascend.com>
91108
91109         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91110         declared.
91111
91112 1999-02-17  Jim Meyering  <meyering@ascend.com>
91113
91114         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91115         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91116
91117 1999-02-07  Jim Meyering  <meyering@ascend.com>
91118
91119         * m4/group-member.m4: New file -- extracted from sh-utils'
91120         configure.in.
91121
91122         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91123         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91124
91125 1999-02-06  Jim Meyering  <meyering@ascend.com>
91126
91127         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91128         * m4/fnmatch.m4: Likewise.
91129         * m4/getgroups.m4: Likewise.
91130         * m4/lstat.m4: Likewise.
91131         * m4/malloc.m4: Likewise.
91132         * m4/putenv.m4: Likewise.
91133         * m4/realloc.m4: Likewise.
91134         * m4/regex.m4: Likewise.
91135         * m4/stat.m4: Likewise.
91136         * m4/strftime.m4: Likewise.
91137         Suggestion from Alain Magloire.
91138
91139         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91140         * m4/fnmatch.m4: Likewise.
91141         * m4/getgroups.m4: Likewise.
91142         * m4/getline.m4: Likewise.
91143         * m4/lstat.m4: Likewise.
91144         * m4/malloc.m4: Likewise.
91145         * m4/memcmp.m4: Likewise.
91146         * m4/putenv.m4: Likewise.
91147         * m4/realloc.m4: Likewise.
91148         * m4/regex.m4: Likewise.
91149         * m4/stat.m4: Likewise.
91150         * m4/strftime.m4: Likewise.
91151         Suggestion from Alain Magloire.
91152
91153         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91154         an argument.
91155
91156         * m4/regex.m4: Add a run-time Test for proper operation of
91157         re_compile_pattern.
91158
91159 1999-01-31  Jim Meyering  <meyering@ascend.com>
91160
91161         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91162
91163 1999-01-30  Jim Meyering  <meyering@ascend.com>
91164
91165         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91166
91167         * m4/jm-mktime.m4: Make this a wrapper around the official
91168         AM_FUNC_MKTIME rather than my private copy, now that the official one
91169         is up to date.
91170         * m4/mktime.m4: Remove file.
91171
91172         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91173         * m4/uptime.m4: Likewise.
91174         * m4/uintmax_t.m4: Likewise.
91175
91176 1999-01-28  Jim Meyering  <meyering@ascend.com>
91177
91178         * m4/jm-macros.m4: Use jm_AFS.
91179         * m4/afs.m4: New file (from fileutils' configure.in).
91180
91181         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91182         * m4/chown.m4: Likewise.
91183         * m4/d-ino.m4: Likewise.
91184         * m4/d-type.m4: Likewise.
91185         * m4/fnmatch.m4: Likewise.
91186         * m4/getgroups.m4: Likewise.
91187         * m4/gettext.m4: Likewise.
91188         * m4/jm-mktime.m4: Likewise.
91189         * m4/jm-winsz2.m4: Likewise.
91190         * m4/lcmessage.m4: Likewise.
91191         * m4/ls-mntd-fs.m4: Likewise.
91192         * m4/malloc.m4: Likewise.
91193         * m4/memcmp.m4: Likewise.
91194         * m4/putenv.m4: Likewise.
91195         * m4/realloc.m4: Likewise.
91196         * m4/st_mtim.m4: Likewise.
91197         * m4/strftime.m4: Likewise.
91198
91199 1999-01-16  Jim Meyering  <meyering@ascend.com>
91200
91201         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91202         (ARGMATCH_DIE_DECL): Define.
91203
91204 1999-01-12  Jim Meyering  <meyering@ascend.com>
91205
91206         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91207         Reported by Lars Hecking.
91208
91209 1999-01-10  Jim Meyering  <meyering@ascend.com>
91210
91211         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91212         gross kludge.
91213         * m4/inttypes_h.m4: Likewise.
91214         * m4/lstat.m4: Likewise.
91215         * m4/malloc.m4: Likewise.
91216         * m4/readdir.m4: Likewise.
91217         * m4/realloc.m4: Likewise.
91218         * m4/st_dm_mode.m4: Likewise.
91219         * m4/stat.m4: Likewise.
91220         * m4/utimbuf.m4: Likewise.
91221         * m4/utimes.m4: Likewise.
91222
91223         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91224         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91225         comments in config.h.in are meaningful.
91226
91227         * m4/jm-macros.m4: Require autoconf-2.13 here.
91228
91229         * m4/regex.m4: By default, don't use the included regex.c on systems
91230         with glibc 2.  Suggestion from Uli Drepper.
91231
91232 1999-01-02  Jim Meyering  <meyering@ascend.com>
91233
91234         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91235
91236 1998-12-18  Jim Meyering  <meyering@ascend.com>
91237
91238         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91239         Based on a suggestion from Lars Hecking.
91240
91241 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91242
91243         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91244
91245 1998-11-16  Jim Meyering  <meyering@ascend.com>
91246
91247         * m4/lfs.m4: Double-quote the `uname...` expression.
91248
91249 1998-11-14  Jim Meyering  <meyering@ascend.com>
91250
91251         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91252         * m4/stat.m4: Likewise.
91253
91254 1998-11-03  Jim Meyering  <meyering@ascend.com>
91255
91256         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91257         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91258
91259 1998-10-18  Jim Meyering  <meyering@ascend.com>
91260
91261         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91262
91263 1998-10-17  Jim Meyering  <meyering@ascend.com>
91264
91265         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91266         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91267         calls for those previously hard-coded headers.  Instead, take a new
91268         parameter.
91269         (jm_CHECK_DECLARATIONS): Reflect interface change.
91270         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91271         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91272
91273         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91274
91275 1998-10-14  Jim Meyering  <meyering@ascend.com>
91276
91277         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91278         instead of "TZ=America/Vancouver".  From Paul Eggert.
91279
91280 1998-10-11  Jim Meyering  <meyering@ascend.com>
91281
91282         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91283         This adds a test for a recently added compatibility fix for mktime.c.
91284         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91285
91286 1998-09-27  Jim Meyering  <meyering@ascend.com>
91287
91288         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91289
91290         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91291         ../configure.in, including a change from Gordon Matzigkeit to allow
91292         cross-compiling for the Hurd.
91293
91294         * m4/glibc.m4: New file/macro to test for the GNU C Library
91295         versions 1 and 2.  From Gordon Matzigkeit.
91296         Indent.
91297
91298 1998-09-21  Jim Meyering  <meyering@ascend.com>
91299
91300         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91301
91302 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91303
91304         Port nanosecond-resolution times to UnixWare 2.1.2 and
91305         pedantic Solaris 2.6.
91306
91307         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91308         AC_STRUCT_ST_MTIM.
91309         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91310         Generate name of ns member, instead of just 1 or undef.
91311         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91312
91313 1998-08-15  Jim Meyering  <meyering@ascend.com>
91314
91315         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91316         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91317         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91318         instead of jm_TYPE_SSIZE_T.
91319
91320 1998-08-12  Jim Meyering  <meyering@ascend.com>
91321
91322         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91323
91324 1998-08-02  Jim Meyering  <meyering@ascend.com>
91325
91326         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91327         in acconfig.h manually.
91328
91329 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91330
91331         * m4/st_mtim.m4: New file.
91332
91333 1998-07-28  Jim Meyering  <meyering@ascend.com>
91334
91335         * m4/utimes.m4: Undef stat.
91336
91337 1998-07-25  Jim Meyering  <meyering@ascend.com>
91338
91339         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91340         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91341
91342 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91343
91344         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91345         uid and gid actually remain unchanged.
91346
91347 1998-07-07  Jim Meyering  <meyering@ascend.com>
91348
91349         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91350
91351 1998-07-04  Jim Meyering  <meyering@ascend.com>
91352
91353         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91354         to prove that this macro can be used in packages without regex.c.
91355
91356 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91357
91358         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91359         is to be used.
91360
91361 1998-07-03  Jim Meyering  <meyering@ascend.com>
91362
91363         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91364
91365         * m4/gettext.m4: New file -- from gettext-0.10.35.
91366         * m4/lcmessage.m4: Likewise.
91367         * m4/progtest.m4: Likewise.
91368
91369         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91370         * m4/jm-macros.m4: Require the new macro.
91371
91372 1998-06-29  Jim Meyering  <meyering@ascend.com>
91373
91374         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91375         for the definition of NGROUPS (used in a system header included
91376         by sys/mount.h).
91377
91378 1998-06-28  Jim Meyering  <meyering@ascend.com>
91379
91380         * m4/ls-mntd-fs.m4: New file.
91381         * m4/fstypename.m4: New file.
91382
91383         * m4/jm-macros.m4: Require the new macro.
91384         * m4/jm-glibc-io.m4: New file.
91385
91386 1998-05-19  Jim Meyering  <meyering@ascend.com>
91387
91388         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91389         * m4/lchown.m4: New file.
91390
91391         * m4/Makefile.am.in: New file.
91392         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91393
91394 1998-05-14  Jim Meyering  <meyering@ascend.com>
91395
91396         * m4/Makefile.am (EXTRA_DIST): Add them.
91397         * m4/jm-macros.m4: New file.
91398         * m4/utimbuf.m4: New file.
91399
91400 1998-05-12  Jim Meyering  <meyering@ascend.com>
91401
91402         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91403
91404 1998-05-11  Jim Meyering  <meyering@ascend.com>
91405
91406         * m4/isc-posix.m4: New file.
91407
91408 1998-05-10  Jim Meyering  <meyering@ascend.com>
91409
91410         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91411
91412 1998-05-09  Jim Meyering  <meyering@ascend.com>
91413
91414         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91415         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91416         with automake.
91417
91418         * m4/ssize_t.m4: New file.
91419         * m4/mktime.m4: Remove file -- the new automake has this now.
91420
91421 1998-04-26  Jim Meyering  <meyering@ascend.com>
91422
91423         * m4/assert.m4: New file.
91424         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91425
91426 1998-04-05  Jim Meyering  <meyering@ascend.com>
91427
91428         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91429         (jm_PREREQ): Use it here.
91430
91431 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91432
91433         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91434         in acconfig.h.
91435
91436 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91437
91438         * m4/prereq.m4: New file.
91439         * m4/error.m4: New file.
91440         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91441
91442 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91443
91444         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91445         cache-check for the same variable -- that defeated the purpose of
91446         the test; the test program was never run.  This was a problem only
91447         on systems with losing getline functions -- HP-UX 10.20 is one.
91448         Reported by Bjorn Helgaas.
91449
91450 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91451
91452         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91453
91454 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91455
91456         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91457
91458         * m4/const.m4: New file.  Use an initializer in this declaration
91459         typedef int charset[2]; const charset x;
91460         Reported by Bob Glickstein.
91461
91462 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91463
91464         * m4/chown.m4: Fix reversed types on -1 args to chown.
91465         From Kaveh Ghazi.
91466
91467 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91468
91469         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91470         Add lseek and memchr.
91471
91472         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91473         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91474         have a 20-character limit on names.
91475
91476 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91477
91478         * m4/inttypes_h.m4: New file.
91479         * m4/uintmax_t.m4: New file.
91480         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91481
91482
91483         -----
91484
91485         Local Variables:
91486         coding: utf-8
91487         End:
91488
91489         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91490
91491         Copying and distribution of this file, with or without
91492         modification, are permitted provided the copyright notice
91493         and this notice are preserved.